Commit 923c9488 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

find by ids

parent d3f0b29f
...@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default() ...@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
from ...common import error_pb2 as common_dot_error__pb2 from ...common import error_pb2 as common_dot_error__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66\x61\x63ility/level1/level1.proto\x12\x13\x64\x66s.facility.level1\x1a\x12\x63ommon/error.proto\"\xb3\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\x13\n\x0b\x64\x65tector_no\x18\x11 \x01(\t\x12\x39\n\x04refs\x18\x12 \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\"\xaf\x03\n\rFindLevel1Req\x12\x0e\n\x06obs_id\x18\x01 \x01(\t\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x11\n\tdata_type\x18\x03 \x01(\t\x12\x11\n\tmodule_id\x18\x04 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x05 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x06 \x01(\t\x12\x12\n\nqc1_status\x18\x07 \x01(\x05\x12\x12\n\nprc_status\x18\x08 \x01(\x05\x12\x10\n\x08\x66ilename\x18\t \x01(\t\x12\r\n\x05limit\x18\n \x01(\x05\x12\x13\n\x0bpipeline_id\x18\x0b \x01(\t\x12\x13\n\x0b\x64\x65tector_no\x18\x0c \x01(\t\x12\x0e\n\x06\x66ilter\x18\r \x01(\t\x12\x13\n\x0bobject_name\x18\x0e \x01(\t\x12Q\n\x10other_conditions\x18\x0f \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') DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66\x61\x63ility/level1/level1.proto\x12\x13\x64\x66s.facility.level1\x1a\x12\x63ommon/error.proto\"\xb3\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\x13\n\x0b\x64\x65tector_no\x18\x11 \x01(\t\x12\x39\n\x04refs\x18\x12 \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\"\xaf\x03\n\rFindLevel1Req\x12\x0e\n\x06obs_id\x18\x01 \x01(\t\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x11\n\tdata_type\x18\x03 \x01(\t\x12\x11\n\tmodule_id\x18\x04 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x05 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x06 \x01(\t\x12\x12\n\nqc1_status\x18\x07 \x01(\x05\x12\x12\n\nprc_status\x18\x08 \x01(\x05\x12\x10\n\x08\x66ilename\x18\t \x01(\t\x12\r\n\x05limit\x18\n \x01(\x05\x12\x13\n\x0bpipeline_id\x18\x0b \x01(\t\x12\x13\n\x0b\x64\x65tector_no\x18\x0c \x01(\t\x12\x0e\n\x06\x66ilter\x18\r \x01(\t\x12\x13\n\x0bobject_name\x18\x0e \x01(\t\x12Q\n\x10other_conditions\x18\x0f \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\"\x1b\n\x0c\x46indByIdsReq\x12\x0b\n\x03ids\x18\x01 \x03(\x05\"r\n\rFindByIdsResp\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\xf2\x05\n\tLevel1Srv\x12Q\n\x04\x46ind\x12\".dfs.facility.level1.FindLevel1Req\x1a#.dfs.facility.level1.FindLevel1Resp\"\x00\x12T\n\tFindByIds\x12!.dfs.facility.level1.FindByIdsReq\x1a\".dfs.facility.level1.FindByIdsResp\"\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')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'facility.level1.level1_pb2', globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'facility.level1.level1_pb2', globals())
...@@ -40,22 +40,26 @@ if _descriptor._USE_C_DESCRIPTORS == False: ...@@ -40,22 +40,26 @@ if _descriptor._USE_C_DESCRIPTORS == False:
_FINDBYBRICKIDSREQ._serialized_end=1121 _FINDBYBRICKIDSREQ._serialized_end=1121
_FINDBYBRICKIDSRESP._serialized_start=1123 _FINDBYBRICKIDSRESP._serialized_start=1123
_FINDBYBRICKIDSRESP._serialized_end=1242 _FINDBYBRICKIDSRESP._serialized_end=1242
_GETLEVEL1REQ._serialized_start=1244 _FINDBYIDSREQ._serialized_start=1244
_GETLEVEL1REQ._serialized_end=1308 _FINDBYIDSREQ._serialized_end=1271
_GETLEVEL1RESP._serialized_start=1310 _FINDBYIDSRESP._serialized_start=1273
_GETLEVEL1RESP._serialized_end=1376 _FINDBYIDSRESP._serialized_end=1387
_WRITELEVEL1REQ._serialized_start=1378 _GETLEVEL1REQ._serialized_start=1389
_WRITELEVEL1REQ._serialized_end=1459 _GETLEVEL1REQ._serialized_end=1453
_WRITELEVEL1RESP._serialized_start=1461 _GETLEVEL1RESP._serialized_start=1455
_WRITELEVEL1RESP._serialized_end=1576 _GETLEVEL1RESP._serialized_end=1521
_UPDATEQC1STATUSREQ._serialized_start=1578 _WRITELEVEL1REQ._serialized_start=1523
_UPDATEQC1STATUSREQ._serialized_end=1626 _WRITELEVEL1REQ._serialized_end=1604
_UPDATEQC1STATUSRESP._serialized_start=1628 _WRITELEVEL1RESP._serialized_start=1606
_UPDATEQC1STATUSRESP._serialized_end=1696 _WRITELEVEL1RESP._serialized_end=1721
_UPDATEPROCSTATUSREQ._serialized_start=1698 _UPDATEQC1STATUSREQ._serialized_start=1723
_UPDATEPROCSTATUSREQ._serialized_end=1747 _UPDATEQC1STATUSREQ._serialized_end=1771
_UPDATEPROCSTATUSRESP._serialized_start=1749 _UPDATEQC1STATUSRESP._serialized_start=1773
_UPDATEPROCSTATUSRESP._serialized_end=1818 _UPDATEQC1STATUSRESP._serialized_end=1841
_LEVEL1SRV._serialized_start=1821 _UPDATEPROCSTATUSREQ._serialized_start=1843
_LEVEL1SRV._serialized_end=2489 _UPDATEPROCSTATUSREQ._serialized_end=1892
_UPDATEPROCSTATUSRESP._serialized_start=1894
_UPDATEPROCSTATUSRESP._serialized_end=1963
_LEVEL1SRV._serialized_start=1966
_LEVEL1SRV._serialized_end=2720
# @@protoc_insertion_point(module_scope) # @@protoc_insertion_point(module_scope)
...@@ -19,6 +19,11 @@ class Level1SrvStub(object): ...@@ -19,6 +19,11 @@ class Level1SrvStub(object):
request_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString, request_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString,
response_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString, response_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString,
) )
self.FindByIds = channel.unary_unary(
'/dfs.facility.level1.Level1Srv/FindByIds',
request_serializer=facility_dot_level1_dot_level1__pb2.FindByIdsReq.SerializeToString,
response_deserializer=facility_dot_level1_dot_level1__pb2.FindByIdsResp.FromString,
)
self.FindByBrickIds = channel.unary_unary( self.FindByBrickIds = channel.unary_unary(
'/dfs.facility.level1.Level1Srv/FindByBrickIds', '/dfs.facility.level1.Level1Srv/FindByBrickIds',
request_serializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsReq.SerializeToString, request_serializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsReq.SerializeToString,
...@@ -60,6 +65,12 @@ class Level1SrvServicer(object): ...@@ -60,6 +65,12 @@ class Level1SrvServicer(object):
context.set_details('Method not implemented!') context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') raise NotImplementedError('Method not implemented!')
def FindByIds(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 FindByBrickIds(self, request, context): def FindByBrickIds(self, request, context):
"""Missing associated documentation comment in .proto file.""" """Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_code(grpc.StatusCode.UNIMPLEMENTED)
...@@ -104,6 +115,11 @@ def add_Level1SrvServicer_to_server(servicer, server): ...@@ -104,6 +115,11 @@ def add_Level1SrvServicer_to_server(servicer, server):
request_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.FromString, request_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.FromString,
response_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.SerializeToString, response_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.SerializeToString,
), ),
'FindByIds': grpc.unary_unary_rpc_method_handler(
servicer.FindByIds,
request_deserializer=facility_dot_level1_dot_level1__pb2.FindByIdsReq.FromString,
response_serializer=facility_dot_level1_dot_level1__pb2.FindByIdsResp.SerializeToString,
),
'FindByBrickIds': grpc.unary_unary_rpc_method_handler( 'FindByBrickIds': grpc.unary_unary_rpc_method_handler(
servicer.FindByBrickIds, servicer.FindByBrickIds,
request_deserializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsReq.FromString, request_deserializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsReq.FromString,
...@@ -161,6 +177,23 @@ class Level1Srv(object): ...@@ -161,6 +177,23 @@ class Level1Srv(object):
options, channel_credentials, options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def FindByIds(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/dfs.facility.level1.Level1Srv/FindByIds',
facility_dot_level1_dot_level1__pb2.FindByIdsReq.SerializeToString,
facility_dot_level1_dot_level1__pb2.FindByIdsResp.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod @staticmethod
def FindByBrickIds(request, def FindByBrickIds(request,
target, 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