diff --git a/csst_dfs_proto/facility/level2/level2_pb2.py b/csst_dfs_proto/facility/level2/level2_pb2.py index bd458bed42699ea6e95d51fa77c14d1100ff1c1c..5ceb00af129df6882f64aef7763d0b40c01d274e 100644 --- a/csst_dfs_proto/facility/level2/level2_pb2.py +++ b/csst_dfs_proto/facility/level2/level2_pb2.py @@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default() from ...common import error_pb2 as common_dot_error__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66\x61\x63ility/level2/level2.proto\x12\x13\x64\x66s.facility.level2\x1a\x12\x63ommon/error.proto\"\xd4\x02\n\x0cLevel2Record\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x11\n\tlevel1_id\x18\x03 \x01(\x03\x12\x10\n\x08\x62rick_id\x18\x04 \x01(\x03\x12\x11\n\tmodule_id\x18\x05 \x01(\t\x12\x13\n\x0bobject_name\x18\x06 \x01(\t\x12\x11\n\tdata_type\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\nqc2_status\x18\n \x01(\x05\x12\x10\n\x08qc2_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\x0bupdate_time\x18\x0f \x01(\t\x12\x13\n\x0bpipeline_id\x18\x10 \x01(\t\x12\x15\n\rimport_status\x18\x11 \x01(\x05\"\xaf\x03\n\rFindLevel2Req\x12\x11\n\tlevel0_id\x18\x01 \x01(\t\x12\x11\n\tlevel1_id\x18\x02 \x01(\x03\x12\x10\n\x08\x62rick_id\x18\x03 \x01(\x03\x12\x11\n\tdata_type\x18\x04 \x01(\t\x12\x11\n\tmodule_id\x18\x05 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x06 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x07 \x01(\t\x12\x12\n\nqc2_status\x18\x08 \x01(\x05\x12\x12\n\nprc_status\x18\t \x01(\x05\x12\x15\n\rimport_status\x18\n \x01(\x05\x12\x10\n\x08\x66ilename\x18\x0b \x01(\t\x12\x13\n\x0bobject_name\x18\x0c \x01(\t\x12\r\n\x05limit\x18\r \x01(\x05\x12\x0c\n\x04page\x18\x0e \x01(\x05\x12Q\n\x10other_conditions\x18\x0f \x03(\x0b\x32\x37.dfs.facility.level2.FindLevel2Req.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\x46indLevel2Resp\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.level2.Level2Record\"\x1a\n\x0cGetLevel2Req\x12\n\n\x02id\x18\x01 \x01(\x03\"B\n\rGetLevel2Resp\x12\x31\n\x06record\x18\x01 \x01(\x0b\x32!.dfs.facility.level2.Level2Record\"Q\n\x0eWriteLevel2Req\x12\x31\n\x06record\x18\x01 \x01(\x0b\x32!.dfs.facility.level2.Level2Record\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"s\n\x0fWriteLevel2Resp\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.level2.Level2Record\"0\n\x12UpdateQc2StatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\x05\"D\n\x13UpdateQc2StatusResp\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.Error\"2\n\x14\x46indLevel2CatalogReq\x12\x0b\n\x03sql\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x05\"k\n\x15\x46indLevel2CatalogResp\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\x0f\n\x07records\x18\x04 \x01(\x0c\")\n\x14\x46indExistedBricksReq\x12\x11\n\tdata_type\x18\x01 \x01(\t\"Y\n\x15\x46indExistedBricksResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12\x11\n\tbrick_ids\x18\x03 \x03(\x05\"\x19\n\nExecSQLReq\x12\x0b\n\x03sql\x18\x01 \x01(\t\"P\n\x0b\x45xecSQLResp\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.Error2\x81\x06\n\tLevel2Srv\x12Q\n\x04\x46ind\x12\".dfs.facility.level2.FindLevel2Req\x1a#.dfs.facility.level2.FindLevel2Resp\"\x00\x12h\n\x0b\x46indCatalog\x12).dfs.facility.level2.FindLevel2CatalogReq\x1a*.dfs.facility.level2.FindLevel2CatalogResp\"\x00\x30\x01\x12l\n\x11\x46indExistedBricks\x12).dfs.facility.level2.FindExistedBricksReq\x1a*.dfs.facility.level2.FindExistedBricksResp\"\x00\x12N\n\x03Get\x12!.dfs.facility.level2.GetLevel2Req\x1a\".dfs.facility.level2.GetLevel2Resp\"\x00\x12V\n\x05Write\x12#.dfs.facility.level2.WriteLevel2Req\x1a$.dfs.facility.level2.WriteLevel2Resp\"\x00(\x01\x12\x66\n\x0fUpdateQc2Status\x12\'.dfs.facility.level2.UpdateQc2StatusReq\x1a(.dfs.facility.level2.UpdateQc2StatusResp\"\x00\x12i\n\x10UpdateProcStatus\x12(.dfs.facility.level2.UpdateProcStatusReq\x1a).dfs.facility.level2.UpdateProcStatusResp\"\x00\x12N\n\x07\x45xecSQL\x12\x1f.dfs.facility.level2.ExecSQLReq\x1a .dfs.facility.level2.ExecSQLResp\"\x00\x42&Z$cnlab.net/csst/proto/facility/level2b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66\x61\x63ility/level2/level2.proto\x12\x13\x64\x66s.facility.level2\x1a\x12\x63ommon/error.proto\"\xd4\x02\n\x0cLevel2Record\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x11\n\tlevel1_id\x18\x03 \x01(\x03\x12\x10\n\x08\x62rick_id\x18\x04 \x01(\x03\x12\x11\n\tmodule_id\x18\x05 \x01(\t\x12\x13\n\x0bobject_name\x18\x06 \x01(\t\x12\x11\n\tdata_type\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\nqc2_status\x18\n \x01(\x05\x12\x10\n\x08qc2_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\x0bupdate_time\x18\x0f \x01(\t\x12\x13\n\x0bpipeline_id\x18\x10 \x01(\t\x12\x15\n\rimport_status\x18\x11 \x01(\x05\"\xaf\x03\n\rFindLevel2Req\x12\x11\n\tlevel0_id\x18\x01 \x01(\t\x12\x11\n\tlevel1_id\x18\x02 \x01(\x03\x12\x10\n\x08\x62rick_id\x18\x03 \x01(\x03\x12\x11\n\tdata_type\x18\x04 \x01(\t\x12\x11\n\tmodule_id\x18\x05 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x06 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x07 \x01(\t\x12\x12\n\nqc2_status\x18\x08 \x01(\x05\x12\x12\n\nprc_status\x18\t \x01(\x05\x12\x15\n\rimport_status\x18\n \x01(\x05\x12\x10\n\x08\x66ilename\x18\x0b \x01(\t\x12\x13\n\x0bobject_name\x18\x0c \x01(\t\x12\r\n\x05limit\x18\r \x01(\x05\x12\x0c\n\x04page\x18\x0e \x01(\x05\x12Q\n\x10other_conditions\x18\x0f \x03(\x0b\x32\x37.dfs.facility.level2.FindLevel2Req.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\x46indLevel2Resp\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.level2.Level2Record\"\x1a\n\x0cGetLevel2Req\x12\n\n\x02id\x18\x01 \x01(\x03\"B\n\rGetLevel2Resp\x12\x31\n\x06record\x18\x01 \x01(\x0b\x32!.dfs.facility.level2.Level2Record\"Q\n\x0eWriteLevel2Req\x12\x31\n\x06record\x18\x01 \x01(\x0b\x32!.dfs.facility.level2.Level2Record\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"s\n\x0fWriteLevel2Resp\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.level2.Level2Record\"0\n\x12UpdateQc2StatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\x05\"D\n\x13UpdateQc2StatusResp\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.Error\"2\n\x14\x46indLevel2CatalogReq\x12\x0b\n\x03sql\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x05\"k\n\x15\x46indLevel2CatalogResp\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\x0f\n\x07records\x18\x04 \x01(\x0c\")\n\x14\x46indExistedBricksReq\x12\x11\n\tdata_type\x18\x01 \x01(\t\"Y\n\x15\x46indExistedBricksResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12\x11\n\tbrick_ids\x18\x03 \x03(\x05\"\x19\n\nExecSQLReq\x12\x0b\n\x03sql\x18\x01 \x01(\t\"P\n\x0b\x45xecSQLResp\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\"J\n\x0c\x43oordCondReq\x12\x11\n\tdata_type\x18\x01 \x01(\t\x12\n\n\x02ra\x18\x02 \x01(\x01\x12\x0b\n\x03\x64\x65\x63\x18\x03 \x01(\x01\x12\x0e\n\x06radius\x18\x04 \x01(\x01\"e\n\rCoordCondResp\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\x11\n\tcondition\x18\x04 \x01(\t2\xd7\x06\n\tLevel2Srv\x12Q\n\x04\x46ind\x12\".dfs.facility.level2.FindLevel2Req\x1a#.dfs.facility.level2.FindLevel2Resp\"\x00\x12h\n\x0b\x46indCatalog\x12).dfs.facility.level2.FindLevel2CatalogReq\x1a*.dfs.facility.level2.FindLevel2CatalogResp\"\x00\x30\x01\x12l\n\x11\x46indExistedBricks\x12).dfs.facility.level2.FindExistedBricksReq\x1a*.dfs.facility.level2.FindExistedBricksResp\"\x00\x12N\n\x03Get\x12!.dfs.facility.level2.GetLevel2Req\x1a\".dfs.facility.level2.GetLevel2Resp\"\x00\x12V\n\x05Write\x12#.dfs.facility.level2.WriteLevel2Req\x1a$.dfs.facility.level2.WriteLevel2Resp\"\x00(\x01\x12\x66\n\x0fUpdateQc2Status\x12\'.dfs.facility.level2.UpdateQc2StatusReq\x1a(.dfs.facility.level2.UpdateQc2StatusResp\"\x00\x12i\n\x10UpdateProcStatus\x12(.dfs.facility.level2.UpdateProcStatusReq\x1a).dfs.facility.level2.UpdateProcStatusResp\"\x00\x12N\n\x07\x45xecSQL\x12\x1f.dfs.facility.level2.ExecSQLReq\x1a .dfs.facility.level2.ExecSQLResp\"\x00\x12T\n\tCoordCond\x12!.dfs.facility.level2.CoordCondReq\x1a\".dfs.facility.level2.CoordCondResp\"\x00\x42&Z$cnlab.net/csst/proto/facility/level2b\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'facility.level2.level2_pb2', globals()) @@ -60,6 +60,10 @@ if _descriptor._USE_C_DESCRIPTORS == False: _EXECSQLREQ._serialized_end=1846 _EXECSQLRESP._serialized_start=1848 _EXECSQLRESP._serialized_end=1928 - _LEVEL2SRV._serialized_start=1931 - _LEVEL2SRV._serialized_end=2700 + _COORDCONDREQ._serialized_start=1930 + _COORDCONDREQ._serialized_end=2004 + _COORDCONDRESP._serialized_start=2006 + _COORDCONDRESP._serialized_end=2107 + _LEVEL2SRV._serialized_start=2110 + _LEVEL2SRV._serialized_end=2965 # @@protoc_insertion_point(module_scope) diff --git a/csst_dfs_proto/facility/level2/level2_pb2_grpc.py b/csst_dfs_proto/facility/level2/level2_pb2_grpc.py index 8bc5a0dd45ecfc6e27baf2ca8c50e5873edec0e9..752ee77f2f9f6a7868fbed1bd50fcf5774be3c38 100644 --- a/csst_dfs_proto/facility/level2/level2_pb2_grpc.py +++ b/csst_dfs_proto/facility/level2/level2_pb2_grpc.py @@ -54,6 +54,11 @@ class Level2SrvStub(object): request_serializer=facility_dot_level2_dot_level2__pb2.ExecSQLReq.SerializeToString, response_deserializer=facility_dot_level2_dot_level2__pb2.ExecSQLResp.FromString, ) + self.CoordCond = channel.unary_unary( + '/dfs.facility.level2.Level2Srv/CoordCond', + request_serializer=facility_dot_level2_dot_level2__pb2.CoordCondReq.SerializeToString, + response_deserializer=facility_dot_level2_dot_level2__pb2.CoordCondResp.FromString, + ) class Level2SrvServicer(object): @@ -107,6 +112,12 @@ class Level2SrvServicer(object): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def CoordCond(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 add_Level2SrvServicer_to_server(servicer, server): rpc_method_handlers = { @@ -150,6 +161,11 @@ def add_Level2SrvServicer_to_server(servicer, server): request_deserializer=facility_dot_level2_dot_level2__pb2.ExecSQLReq.FromString, response_serializer=facility_dot_level2_dot_level2__pb2.ExecSQLResp.SerializeToString, ), + 'CoordCond': grpc.unary_unary_rpc_method_handler( + servicer.CoordCond, + request_deserializer=facility_dot_level2_dot_level2__pb2.CoordCondReq.FromString, + response_serializer=facility_dot_level2_dot_level2__pb2.CoordCondResp.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'dfs.facility.level2.Level2Srv', rpc_method_handlers) @@ -295,3 +311,20 @@ class Level2Srv(object): facility_dot_level2_dot_level2__pb2.ExecSQLResp.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CoordCond(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.level2.Level2Srv/CoordCond', + facility_dot_level2_dot_level2__pb2.CoordCondReq.SerializeToString, + facility_dot_level2_dot_level2__pb2.CoordCondResp.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata)