Commit 952e9518 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

bugs

parent 2c219ab9
......@@ -3,6 +3,7 @@ import grpc
from . import level2producer_pb2 as facility_dot_level2producer_dot_level2producer__pb2
class Level2ProducerSrvStub(object):
# missing associated documentation comment in .proto file
pass
......
......@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='dfs.ifs.level0',
syntax='proto3',
serialized_options=_b('Z\037cnlab.net/csst/proto/ifs/level0'),
serialized_pb=_b('\n\x17ifs/level0/level0.proto\x12\x0e\x64\x66s.ifs.level0\x1a\x12\x63ommon/error.proto\"\xbf\x02\n\x0cLevel0Record\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x0e\n\x06obs_id\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65tector_no\x18\x04 \x01(\t\x12\x10\n\x08obs_type\x18\x05 \x01(\t\x12\x13\n\x0bobject_name\x18\x06 \x01(\t\x12\x10\n\x08obs_time\x18\x07 \x01(\t\x12\x10\n\x08\x65xp_time\x18\x08 \x01(\x02\x12\x1a\n\x12\x64\x65tector_status_id\x18\t \x01(\x03\x12\x10\n\x08\x66ilename\x18\n \x01(\t\x12\x11\n\tfile_path\x18\x0b \x01(\t\x12\x12\n\nqc0_status\x18\x0c \x01(\x05\x12\x10\n\x08qc0_time\x18\r \x01(\t\x12\x12\n\nprc_status\x18\x0e \x01(\x05\x12\x10\n\x08prc_time\x18\x0f \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x10 \x01(\t\"\xe1\x02\n\x11\x46indLevel0DataReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65tector_no\x18\x02 \x01(\t\x12\x10\n\x08obs_type\x18\x03 \x01(\t\x12\x13\n\x0bobject_name\x18\x04 \x01(\t\x12\x16\n\x0e\x65xp_time_start\x18\x05 \x01(\t\x12\x14\n\x0c\x65xp_time_end\x18\x06 \x01(\t\x12\x12\n\nqc0_status\x18\x07 \x01(\x05\x12\x12\n\nprc_status\x18\x08 \x01(\x05\x12\x11\n\tfile_name\x18\t \x01(\t\x12\r\n\x05limit\x18\n \x01(\x05\x12P\n\x10other_conditions\x18\x0b \x03(\x0b\x32\x36.dfs.ifs.level0.FindLevel0DataReq.OtherConditionsEntry\x1a\x36\n\x14OtherConditionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x86\x01\n\x12\x46indLevel0DataResp\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-\n\x07records\x18\x04 \x03(\x0b\x32\x1c.dfs.ifs.level0.Level0Record\"1\n\x10GetLevel0DataReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\"A\n\x11GetLevel0DataResp\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.ifs.level0.Level0Record\"B\n\x12WriteLevel0DataReq\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.ifs.level0.Level0Record\"r\n\x13WriteLevel0DataResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12,\n\x06record\x18\x03 \x01(\x0b\x32\x1c.dfs.ifs.level0.Level0Record\"C\n\x12UpdateQc0StatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\x05\"D\n\x13UpdateQc0StatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\"D\n\x13UpdateProcStatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \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\xbd\x03\n\tLevel0Srv\x12O\n\x04\x46ind\x12!.dfs.ifs.level0.FindLevel0DataReq\x1a\".dfs.ifs.level0.FindLevel0DataResp\"\x00\x12L\n\x03Get\x12 .dfs.ifs.level0.GetLevel0DataReq\x1a!.dfs.ifs.level0.GetLevel0DataResp\"\x00\x12R\n\x05Write\x12\".dfs.ifs.level0.WriteLevel0DataReq\x1a#.dfs.ifs.level0.WriteLevel0DataResp\"\x00\x12\\\n\x0fUpdateQc0Status\x12\".dfs.ifs.level0.UpdateQc0StatusReq\x1a#.dfs.ifs.level0.UpdateQc0StatusResp\"\x00\x12_\n\x10UpdateProcStatus\x12#.dfs.ifs.level0.UpdateProcStatusReq\x1a$.dfs.ifs.level0.UpdateProcStatusResp\"\x00\x42!Z\x1f\x63nlab.net/csst/proto/ifs/level0b\x06proto3')
serialized_pb=_b('\n\x17ifs/level0/level0.proto\x12\x0e\x64\x66s.ifs.level0\x1a\x12\x63ommon/error.proto\"\xaa\x02\n\x0cLevel0Record\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x0e\n\x06obs_id\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65tector_no\x18\x04 \x01(\t\x12\x10\n\x08obs_type\x18\x05 \x01(\t\x12\x10\n\x08obs_time\x18\x06 \x01(\t\x12\x10\n\x08\x65xp_time\x18\x07 \x01(\x02\x12\x1a\n\x12\x64\x65tector_status_id\x18\x08 \x01(\x03\x12\x10\n\x08\x66ilename\x18\t \x01(\t\x12\x11\n\tfile_path\x18\n \x01(\t\x12\x12\n\nqc0_status\x18\x0b \x01(\x05\x12\x10\n\x08qc0_time\x18\x0c \x01(\t\x12\x12\n\nprc_status\x18\r \x01(\x05\x12\x10\n\x08prc_time\x18\x0e \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x0f \x01(\t\"\x9b\x03\n\x11\x46indLevel0DataReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65tector_no\x18\x02 \x01(\t\x12\x10\n\x08obs_type\x18\x03 \x01(\t\x12\x13\n\x0bobject_name\x18\x04 \x01(\t\x12\x16\n\x0e\x65xp_time_start\x18\x05 \x01(\t\x12\x14\n\x0c\x65xp_time_end\x18\x06 \x01(\t\x12\x12\n\nqc0_status\x18\x07 \x01(\x05\x12\x12\n\nprc_status\x18\x08 \x01(\x05\x12\x11\n\tfile_name\x18\t \x01(\t\x12\r\n\x05limit\x18\n \x01(\x05\x12\x0f\n\x07version\x18\x0b \x01(\t\x12\n\n\x02ra\x18\x0c \x01(\x01\x12\x0b\n\x03\x64\x65\x63\x18\r \x01(\x01\x12\x0e\n\x06radius\x18\x0e \x01(\x02\x12P\n\x10other_conditions\x18\x0f \x03(\x0b\x32\x36.dfs.ifs.level0.FindLevel0DataReq.OtherConditionsEntry\x1a\x36\n\x14OtherConditionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x86\x01\n\x12\x46indLevel0DataResp\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-\n\x07records\x18\x04 \x03(\x0b\x32\x1c.dfs.ifs.level0.Level0Record\"1\n\x10GetLevel0DataReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\"A\n\x11GetLevel0DataResp\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.ifs.level0.Level0Record\"B\n\x12WriteLevel0DataReq\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.ifs.level0.Level0Record\"r\n\x13WriteLevel0DataResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12,\n\x06record\x18\x03 \x01(\x0b\x32\x1c.dfs.ifs.level0.Level0Record\"C\n\x12UpdateQc0StatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\x05\"D\n\x13UpdateQc0StatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\"D\n\x13UpdateProcStatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tlevel0_id\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \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\xbd\x03\n\tLevel0Srv\x12O\n\x04\x46ind\x12!.dfs.ifs.level0.FindLevel0DataReq\x1a\".dfs.ifs.level0.FindLevel0DataResp\"\x00\x12L\n\x03Get\x12 .dfs.ifs.level0.GetLevel0DataReq\x1a!.dfs.ifs.level0.GetLevel0DataResp\"\x00\x12R\n\x05Write\x12\".dfs.ifs.level0.WriteLevel0DataReq\x1a#.dfs.ifs.level0.WriteLevel0DataResp\"\x00\x12\\\n\x0fUpdateQc0Status\x12\".dfs.ifs.level0.UpdateQc0StatusReq\x1a#.dfs.ifs.level0.UpdateQc0StatusResp\"\x00\x12_\n\x10UpdateProcStatus\x12#.dfs.ifs.level0.UpdateProcStatusReq\x1a$.dfs.ifs.level0.UpdateProcStatusResp\"\x00\x42!Z\x1f\x63nlab.net/csst/proto/ifs/level0b\x06proto3')
,
dependencies=[common_dot_error__pb2.DESCRIPTOR,])
......@@ -71,78 +71,71 @@ _LEVEL0RECORD = _descriptor.Descriptor(
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='object_name', full_name='dfs.ifs.level0.Level0Record.object_name', index=5,
name='obs_time', full_name='dfs.ifs.level0.Level0Record.obs_time', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='obs_time', full_name='dfs.ifs.level0.Level0Record.obs_time', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='exp_time', full_name='dfs.ifs.level0.Level0Record.exp_time', index=7,
number=8, type=2, cpp_type=6, label=1,
name='exp_time', full_name='dfs.ifs.level0.Level0Record.exp_time', index=6,
number=7, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='detector_status_id', full_name='dfs.ifs.level0.Level0Record.detector_status_id', index=8,
number=9, type=3, cpp_type=2, label=1,
name='detector_status_id', full_name='dfs.ifs.level0.Level0Record.detector_status_id', index=7,
number=8, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='filename', full_name='dfs.ifs.level0.Level0Record.filename', index=9,
number=10, type=9, cpp_type=9, label=1,
name='filename', full_name='dfs.ifs.level0.Level0Record.filename', index=8,
number=9, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='file_path', full_name='dfs.ifs.level0.Level0Record.file_path', index=10,
number=11, type=9, cpp_type=9, label=1,
name='file_path', full_name='dfs.ifs.level0.Level0Record.file_path', index=9,
number=10, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='qc0_status', full_name='dfs.ifs.level0.Level0Record.qc0_status', index=11,
number=12, type=5, cpp_type=1, label=1,
name='qc0_status', full_name='dfs.ifs.level0.Level0Record.qc0_status', index=10,
number=11, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='qc0_time', full_name='dfs.ifs.level0.Level0Record.qc0_time', index=12,
number=13, type=9, cpp_type=9, label=1,
name='qc0_time', full_name='dfs.ifs.level0.Level0Record.qc0_time', index=11,
number=12, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='prc_status', full_name='dfs.ifs.level0.Level0Record.prc_status', index=13,
number=14, type=5, cpp_type=1, label=1,
name='prc_status', full_name='dfs.ifs.level0.Level0Record.prc_status', index=12,
number=13, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='prc_time', full_name='dfs.ifs.level0.Level0Record.prc_time', index=14,
number=15, type=9, cpp_type=9, label=1,
name='prc_time', full_name='dfs.ifs.level0.Level0Record.prc_time', index=13,
number=14, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='create_time', full_name='dfs.ifs.level0.Level0Record.create_time', index=15,
number=16, type=9, cpp_type=9, label=1,
name='create_time', full_name='dfs.ifs.level0.Level0Record.create_time', index=14,
number=15, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
......@@ -160,7 +153,7 @@ _LEVEL0RECORD = _descriptor.Descriptor(
oneofs=[
],
serialized_start=64,
serialized_end=383,
serialized_end=362,
)
......@@ -197,8 +190,8 @@ _FINDLEVEL0DATAREQ_OTHERCONDITIONSENTRY = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=685,
serialized_end=739,
serialized_start=722,
serialized_end=776,
)
_FINDLEVEL0DATAREQ = _descriptor.Descriptor(
......@@ -279,8 +272,36 @@ _FINDLEVEL0DATAREQ = _descriptor.Descriptor(
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='other_conditions', full_name='dfs.ifs.level0.FindLevel0DataReq.other_conditions', index=10,
number=11, type=11, cpp_type=10, label=3,
name='version', full_name='dfs.ifs.level0.FindLevel0DataReq.version', index=10,
number=11, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ra', full_name='dfs.ifs.level0.FindLevel0DataReq.ra', index=11,
number=12, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dec', full_name='dfs.ifs.level0.FindLevel0DataReq.dec', index=12,
number=13, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='radius', full_name='dfs.ifs.level0.FindLevel0DataReq.radius', index=13,
number=14, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='other_conditions', full_name='dfs.ifs.level0.FindLevel0DataReq.other_conditions', index=14,
number=15, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
......@@ -297,8 +318,8 @@ _FINDLEVEL0DATAREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=386,
serialized_end=739,
serialized_start=365,
serialized_end=776,
)
......@@ -349,8 +370,8 @@ _FINDLEVEL0DATARESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=742,
serialized_end=876,
serialized_start=779,
serialized_end=913,
)
......@@ -387,8 +408,8 @@ _GETLEVEL0DATAREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=878,
serialized_end=927,
serialized_start=915,
serialized_end=964,
)
......@@ -418,8 +439,8 @@ _GETLEVEL0DATARESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=929,
serialized_end=994,
serialized_start=966,
serialized_end=1031,
)
......@@ -449,8 +470,8 @@ _WRITELEVEL0DATAREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=996,
serialized_end=1062,
serialized_start=1033,
serialized_end=1099,
)
......@@ -494,8 +515,8 @@ _WRITELEVEL0DATARESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1064,
serialized_end=1178,
serialized_start=1101,
serialized_end=1215,
)
......@@ -539,8 +560,8 @@ _UPDATEQC0STATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1180,
serialized_end=1247,
serialized_start=1217,
serialized_end=1284,
)
......@@ -577,8 +598,8 @@ _UPDATEQC0STATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1249,
serialized_end=1317,
serialized_start=1286,
serialized_end=1354,
)
......@@ -622,8 +643,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1319,
serialized_end=1387,
serialized_start=1356,
serialized_end=1424,
)
......@@ -660,8 +681,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1389,
serialized_end=1458,
serialized_start=1426,
serialized_end=1495,
)
_FINDLEVEL0DATAREQ_OTHERCONDITIONSENTRY.containing_type = _FINDLEVEL0DATAREQ
......@@ -782,8 +803,8 @@ _LEVEL0SRV = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=1461,
serialized_end=1906,
serialized_start=1498,
serialized_end=1943,
methods=[
_descriptor.MethodDescriptor(
name='Find',
......
This diff is collapsed.
......@@ -33,7 +33,7 @@ class Level2SrvStub(object):
'/dfs.msc.level2.Level2Srv/Write',
request_serializer=msc_dot_level2_dot_level2__pb2.WriteLevel2Req.SerializeToString,
response_deserializer=msc_dot_level2_dot_level2__pb2.WriteLevel2Resp.FromString,
)
)
self.UpdateQc2Status = channel.unary_unary(
'/dfs.msc.level2.Level2Srv/UpdateQc2Status',
request_serializer=msc_dot_level2_dot_level2__pb2.UpdateQc2StatusReq.SerializeToString,
......@@ -44,6 +44,11 @@ class Level2SrvStub(object):
request_serializer=msc_dot_level2_dot_level2__pb2.UpdateProcStatusReq.SerializeToString,
response_deserializer=msc_dot_level2_dot_level2__pb2.UpdateProcStatusResp.FromString,
)
self.DeleteCatalogByLevel2Id = channel.unary_unary(
'/dfs.msc.level2.Level2Srv/DeleteCatalogByLevel2Id',
request_serializer=msc_dot_level2_dot_level2__pb2.DeleteCatalogByLevel2IdReq.SerializeToString,
response_deserializer=msc_dot_level2_dot_level2__pb2.DeleteCatalogByLevel2IdResp.FromString,
)
class Level2SrvServicer(object):
......@@ -92,6 +97,13 @@ class Level2SrvServicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteCatalogByLevel2Id(self, request, context):
# missing associated documentation comment in .proto file
pass
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 = {
......@@ -125,6 +137,11 @@ def add_Level2SrvServicer_to_server(servicer, server):
request_deserializer=msc_dot_level2_dot_level2__pb2.UpdateProcStatusReq.FromString,
response_serializer=msc_dot_level2_dot_level2__pb2.UpdateProcStatusResp.SerializeToString,
),
'DeleteCatalogByLevel2Id': grpc.unary_unary_rpc_method_handler(
servicer.DeleteCatalogByLevel2Id,
request_deserializer=msc_dot_level2_dot_level2__pb2.DeleteCatalogByLevel2IdReq.FromString,
response_serializer=msc_dot_level2_dot_level2__pb2.DeleteCatalogByLevel2IdResp.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'dfs.msc.level2.Level2Srv', rpc_method_handlers)
......
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