Commit a98cdd43 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

find sls by qc1 status

parent 0984ca62
......@@ -19,7 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='dfs.facility.level1',
syntax='proto3',
serialized_options=b'Z$cnlab.net/csst/proto/facility/level1',
serialized_pb=b'\n\x1c\x66\x61\x63ility/level1/level1.proto\x12\x13\x64\x66s.facility.level1\x1a\x12\x63ommon/error.proto\"\x9e\x03\n\x0cLevel1Record\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x11\n\tdata_type\x18\x03 \x01(\t\x12\x12\n\ncor_sci_id\x18\x04 \x01(\x03\x12\x11\n\tmodule_id\x18\x05 \x01(\t\x12\x12\n\nprc_params\x18\x06 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t\x12\x10\n\x08\x66ilename\x18\x08 \x01(\t\x12\x11\n\tfile_path\x18\t \x01(\t\x12\x12\n\nqc1_status\x18\n \x01(\x05\x12\x10\n\x08qc1_time\x18\x0b \x01(\t\x12\x12\n\nprc_status\x18\x0c \x01(\x05\x12\x10\n\x08prc_time\x18\r \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x0e \x01(\t\x12\x13\n\x0bpipeline_id\x18\x0f \x01(\t\x12\x0e\n\x06header\x18\x10 \x01(\t\x12\x39\n\x04refs\x18\x11 \x03(\x0b\x32+.dfs.facility.level1.Level1Record.RefsEntry\x1a+\n\tRefsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd0\x02\n\rFindLevel1Req\x12\x11\n\tlevel0_id\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x11\n\tmodule_id\x18\x03 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x04 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x05 \x01(\t\x12\x12\n\nqc1_status\x18\x06 \x01(\x05\x12\x12\n\nprc_status\x18\x07 \x01(\x05\x12\x10\n\x08\x66ilename\x18\x08 \x01(\t\x12\r\n\x05limit\x18\t \x01(\x05\x12Q\n\x10other_conditions\x18\n \x03(\x0b\x32\x37.dfs.facility.level1.FindLevel1Req.OtherConditionsEntry\x1a\x36\n\x14OtherConditionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x87\x01\n\x0e\x46indLevel1Resp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x12\n\ntotalCount\x18\x02 \x01(\x05\x12\x1c\n\x05\x65rror\x18\x03 \x01(\x0b\x32\r.common.Error\x12\x32\n\x07records\x18\x04 \x03(\x0b\x32!.dfs.facility.level1.Level1Record\"&\n\x11\x46indByBrickIdsReq\x12\x11\n\tbrick_ids\x18\x01 \x03(\x05\"w\n\x12\x46indByBrickIdsResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12\x32\n\x07records\x18\x03 \x03(\x0b\x32!.dfs.facility.level1.Level1Record\"@\n\x0cGetLevel1Req\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x11\n\tdata_type\x18\x03 \x01(\t\"B\n\rGetLevel1Resp\x12\x31\n\x06record\x18\x01 \x01(\x0b\x32!.dfs.facility.level1.Level1Record\"Q\n\x0eWriteLevel1Req\x12\x31\n\x06record\x18\x01 \x01(\x0b\x32!.dfs.facility.level1.Level1Record\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"s\n\x0fWriteLevel1Resp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12\x31\n\x06record\x18\x03 \x01(\x0b\x32!.dfs.facility.level1.Level1Record\"0\n\x12UpdateQc1StatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\x05\"D\n\x13UpdateQc1StatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\"1\n\x13UpdateProcStatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\x05\"E\n\x14UpdateProcStatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error2\xbe\x04\n\tLevel1Srv\x12Q\n\x04\x46ind\x12\".dfs.facility.level1.FindLevel1Req\x1a#.dfs.facility.level1.FindLevel1Resp\"\x00\x12\x63\n\x0e\x46indByBrickIds\x12&.dfs.facility.level1.FindByBrickIdsReq\x1a\'.dfs.facility.level1.FindByBrickIdsResp\"\x00\x12N\n\x03Get\x12!.dfs.facility.level1.GetLevel1Req\x1a\".dfs.facility.level1.GetLevel1Resp\"\x00\x12V\n\x05Write\x12#.dfs.facility.level1.WriteLevel1Req\x1a$.dfs.facility.level1.WriteLevel1Resp\"\x00(\x01\x12\x66\n\x0fUpdateQc1Status\x12\'.dfs.facility.level1.UpdateQc1StatusReq\x1a(.dfs.facility.level1.UpdateQc1StatusResp\"\x00\x12i\n\x10UpdateProcStatus\x12(.dfs.facility.level1.UpdateProcStatusReq\x1a).dfs.facility.level1.UpdateProcStatusResp\"\x00\x42&Z$cnlab.net/csst/proto/facility/level1b\x06proto3'
serialized_pb=b'\n\x1c\x66\x61\x63ility/level1/level1.proto\x12\x13\x64\x66s.facility.level1\x1a\x12\x63ommon/error.proto\"\x9e\x03\n\x0cLevel1Record\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x11\n\tdata_type\x18\x03 \x01(\t\x12\x12\n\ncor_sci_id\x18\x04 \x01(\x03\x12\x11\n\tmodule_id\x18\x05 \x01(\t\x12\x12\n\nprc_params\x18\x06 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t\x12\x10\n\x08\x66ilename\x18\x08 \x01(\t\x12\x11\n\tfile_path\x18\t \x01(\t\x12\x12\n\nqc1_status\x18\n \x01(\x05\x12\x10\n\x08qc1_time\x18\x0b \x01(\t\x12\x12\n\nprc_status\x18\x0c \x01(\x05\x12\x10\n\x08prc_time\x18\r \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x0e \x01(\t\x12\x13\n\x0bpipeline_id\x18\x0f \x01(\t\x12\x0e\n\x06header\x18\x10 \x01(\t\x12\x39\n\x04refs\x18\x11 \x03(\x0b\x32+.dfs.facility.level1.Level1Record.RefsEntry\x1a+\n\tRefsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd0\x02\n\rFindLevel1Req\x12\x11\n\tlevel0_id\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x11\n\tmodule_id\x18\x03 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x04 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x05 \x01(\t\x12\x12\n\nqc1_status\x18\x06 \x01(\x05\x12\x12\n\nprc_status\x18\x07 \x01(\x05\x12\x10\n\x08\x66ilename\x18\x08 \x01(\t\x12\r\n\x05limit\x18\t \x01(\x05\x12Q\n\x10other_conditions\x18\n \x03(\x0b\x32\x37.dfs.facility.level1.FindLevel1Req.OtherConditionsEntry\x1a\x36\n\x14OtherConditionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x87\x01\n\x0e\x46indLevel1Resp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x12\n\ntotalCount\x18\x02 \x01(\x05\x12\x1c\n\x05\x65rror\x18\x03 \x01(\x0b\x32\r.common.Error\x12\x32\n\x07records\x18\x04 \x03(\x0b\x32!.dfs.facility.level1.Level1Record\"&\n\x11\x46indByBrickIdsReq\x12\x11\n\tbrick_ids\x18\x01 \x03(\x05\"w\n\x12\x46indByBrickIdsResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12\x32\n\x07records\x18\x03 \x03(\x0b\x32!.dfs.facility.level1.Level1Record\"@\n\x0cGetLevel1Req\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x11\n\tdata_type\x18\x03 \x01(\t\"B\n\rGetLevel1Resp\x12\x31\n\x06record\x18\x01 \x01(\x0b\x32!.dfs.facility.level1.Level1Record\"Q\n\x0eWriteLevel1Req\x12\x31\n\x06record\x18\x01 \x01(\x0b\x32!.dfs.facility.level1.Level1Record\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"s\n\x0fWriteLevel1Resp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12\x31\n\x06record\x18\x03 \x01(\x0b\x32!.dfs.facility.level1.Level1Record\"0\n\x12UpdateQc1StatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\x05\"D\n\x13UpdateQc1StatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\"1\n\x13UpdateProcStatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\x05\"E\n\x14UpdateProcStatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error2\x9c\x05\n\tLevel1Srv\x12Q\n\x04\x46ind\x12\".dfs.facility.level1.FindLevel1Req\x1a#.dfs.facility.level1.FindLevel1Resp\"\x00\x12\x63\n\x0e\x46indByBrickIds\x12&.dfs.facility.level1.FindByBrickIdsReq\x1a\'.dfs.facility.level1.FindByBrickIdsResp\"\x00\x12\\\n\x0f\x46indByQc1Status\x12\".dfs.facility.level1.FindLevel1Req\x1a#.dfs.facility.level1.FindLevel1Resp\"\x00\x12N\n\x03Get\x12!.dfs.facility.level1.GetLevel1Req\x1a\".dfs.facility.level1.GetLevel1Resp\"\x00\x12V\n\x05Write\x12#.dfs.facility.level1.WriteLevel1Req\x1a$.dfs.facility.level1.WriteLevel1Resp\"\x00(\x01\x12\x66\n\x0fUpdateQc1Status\x12\'.dfs.facility.level1.UpdateQc1StatusReq\x1a(.dfs.facility.level1.UpdateQc1StatusResp\"\x00\x12i\n\x10UpdateProcStatus\x12(.dfs.facility.level1.UpdateProcStatusReq\x1a).dfs.facility.level1.UpdateProcStatusResp\"\x00\x42&Z$cnlab.net/csst/proto/facility/level1b\x06proto3'
,
dependencies=[common_dot_error__pb2.DESCRIPTOR,])
......@@ -923,7 +923,7 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
index=0,
serialized_options=None,
serialized_start=1705,
serialized_end=2279,
serialized_end=2373,
methods=[
_descriptor.MethodDescriptor(
name='Find',
......@@ -943,10 +943,19 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
output_type=_FINDBYBRICKIDSRESP,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='FindByQc1Status',
full_name='dfs.facility.level1.Level1Srv.FindByQc1Status',
index=2,
containing_service=None,
input_type=_FINDLEVEL1REQ,
output_type=_FINDLEVEL1RESP,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='Get',
full_name='dfs.facility.level1.Level1Srv.Get',
index=2,
index=3,
containing_service=None,
input_type=_GETLEVEL1REQ,
output_type=_GETLEVEL1RESP,
......@@ -955,7 +964,7 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
_descriptor.MethodDescriptor(
name='Write',
full_name='dfs.facility.level1.Level1Srv.Write',
index=3,
index=4,
containing_service=None,
input_type=_WRITELEVEL1REQ,
output_type=_WRITELEVEL1RESP,
......@@ -964,7 +973,7 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
_descriptor.MethodDescriptor(
name='UpdateQc1Status',
full_name='dfs.facility.level1.Level1Srv.UpdateQc1Status',
index=4,
index=5,
containing_service=None,
input_type=_UPDATEQC1STATUSREQ,
output_type=_UPDATEQC1STATUSRESP,
......@@ -973,7 +982,7 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
_descriptor.MethodDescriptor(
name='UpdateProcStatus',
full_name='dfs.facility.level1.Level1Srv.UpdateProcStatus',
index=5,
index=6,
containing_service=None,
input_type=_UPDATEPROCSTATUSREQ,
output_type=_UPDATEPROCSTATUSRESP,
......
......@@ -23,6 +23,11 @@ class Level1SrvStub(object):
request_serializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsReq.SerializeToString,
response_deserializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsResp.FromString,
)
self.FindByQc1Status = channel.unary_unary(
'/dfs.facility.level1.Level1Srv/FindByQc1Status',
request_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString,
response_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString,
)
self.Get = channel.unary_unary(
'/dfs.facility.level1.Level1Srv/Get',
request_serializer=facility_dot_level1_dot_level1__pb2.GetLevel1Req.SerializeToString,
......@@ -60,6 +65,12 @@ class Level1SrvServicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def FindByQc1Status(self, request, context):
"""Missing associated documentation comment in .proto file"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Get(self, request, context):
"""Missing associated documentation comment in .proto file"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
......@@ -97,6 +108,11 @@ def add_Level1SrvServicer_to_server(servicer, server):
request_deserializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsReq.FromString,
response_serializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsResp.SerializeToString,
),
'FindByQc1Status': grpc.unary_unary_rpc_method_handler(
servicer.FindByQc1Status,
request_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.FromString,
response_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.SerializeToString,
),
'Get': grpc.unary_unary_rpc_method_handler(
servicer.Get,
request_deserializer=facility_dot_level1_dot_level1__pb2.GetLevel1Req.FromString,
......@@ -159,6 +175,22 @@ class Level1Srv(object):
options, channel_credentials,
call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def FindByQc1Status(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/dfs.facility.level1.Level1Srv/FindByQc1Status',
facility_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString,
facility_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString,
options, channel_credentials,
call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def Get(request,
target,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment