Commit 4df23c34 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

level1 file

parent 508b78ca
......@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='dfs.ifs.level1',
syntax='proto3',
serialized_options=_b('Z\037cnlab.net/csst/proto/ifs/level1'),
serialized_pb=_b('\n\x17ifs/level1/level1.proto\x12\x0e\x64\x66s.ifs.level1\x1a\x12\x63ommon/error.proto\"\xe7\x02\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\x12\n\nprc_params\x18\x05 \x01(\t\x12\x0f\n\x07\x66lat_id\x18\x06 \x01(\x03\x12\x0f\n\x07\x64\x61rk_id\x18\x07 \x01(\x03\x12\x0f\n\x07\x62ias_id\x18\x08 \x01(\x03\x12\x0f\n\x07lamp_id\x18\t \x01(\x03\x12\x0e\n\x06\x61rc_id\x18\n \x01(\x03\x12\x0e\n\x06sky_id\x18\x0b \x01(\x03\x12\x10\n\x08\x66ilename\x18\x0c \x01(\t\x12\x11\n\tfile_path\x18\r \x01(\t\x12\x12\n\nqc1_status\x18\x0e \x01(\x05\x12\x10\n\x08qc1_time\x18\x0f \x01(\t\x12\x12\n\nprc_status\x18\x10 \x01(\x05\x12\x10\n\x08prc_time\x18\x11 \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x12 \x01(\t\x12\x13\n\x0bpipeline_id\x18\x13 \x01(\t\"\xb8\x02\n\rFindLevel1Req\x12\x11\n\tlevel0_id\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x03 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x04 \x01(\t\x12\x12\n\nqc1_status\x18\x05 \x01(\x05\x12\x12\n\nprc_status\x18\x06 \x01(\x05\x12\x10\n\x08\x66ilename\x18\x07 \x01(\t\x12\r\n\x05limit\x18\x08 \x01(\x05\x12L\n\x10other_conditions\x18\t \x03(\x0b\x32\x32.dfs.ifs.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\"\x82\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-\n\x07records\x18\x04 \x03(\x0b\x32\x1c.dfs.ifs.level1.Level1Record\"\x1a\n\x0cGetLevel1Req\x12\n\n\x02id\x18\x01 \x01(\x03\"=\n\rGetLevel1Resp\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.ifs.level1.Level1Record\">\n\x0eWriteLevel1Req\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.ifs.level1.Level1Record\"n\n\x0fWriteLevel1Resp\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.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\xa5\x03\n\tLevel1Srv\x12G\n\x04\x46ind\x12\x1d.dfs.ifs.level1.FindLevel1Req\x1a\x1e.dfs.ifs.level1.FindLevel1Resp\"\x00\x12\x44\n\x03Get\x12\x1c.dfs.ifs.level1.GetLevel1Req\x1a\x1d.dfs.ifs.level1.GetLevel1Resp\"\x00\x12J\n\x05Write\x12\x1e.dfs.ifs.level1.WriteLevel1Req\x1a\x1f.dfs.ifs.level1.WriteLevel1Resp\"\x00\x12\\\n\x0fUpdateQc1Status\x12\".dfs.ifs.level1.UpdateQc1StatusReq\x1a#.dfs.ifs.level1.UpdateQc1StatusResp\"\x00\x12_\n\x10UpdateProcStatus\x12#.dfs.ifs.level1.UpdateProcStatusReq\x1a$.dfs.ifs.level1.UpdateProcStatusResp\"\x00\x42!Z\x1f\x63nlab.net/csst/proto/ifs/level1b\x06proto3')
serialized_pb=_b('\n\x17ifs/level1/level1.proto\x12\x0e\x64\x66s.ifs.level1\x1a\x12\x63ommon/error.proto\"\xe7\x02\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\x12\n\nprc_params\x18\x05 \x01(\t\x12\x0f\n\x07\x66lat_id\x18\x06 \x01(\x03\x12\x0f\n\x07\x64\x61rk_id\x18\x07 \x01(\x03\x12\x0f\n\x07\x62ias_id\x18\x08 \x01(\x03\x12\x0f\n\x07lamp_id\x18\t \x01(\x03\x12\x0e\n\x06\x61rc_id\x18\n \x01(\x03\x12\x0e\n\x06sky_id\x18\x0b \x01(\x03\x12\x10\n\x08\x66ilename\x18\x0c \x01(\t\x12\x11\n\tfile_path\x18\r \x01(\t\x12\x12\n\nqc1_status\x18\x0e \x01(\x05\x12\x10\n\x08qc1_time\x18\x0f \x01(\t\x12\x12\n\nprc_status\x18\x10 \x01(\x05\x12\x10\n\x08prc_time\x18\x11 \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x12 \x01(\t\x12\x13\n\x0bpipeline_id\x18\x13 \x01(\t\"\xb8\x02\n\rFindLevel1Req\x12\x11\n\tlevel0_id\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x03 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x04 \x01(\t\x12\x12\n\nqc1_status\x18\x05 \x01(\x05\x12\x12\n\nprc_status\x18\x06 \x01(\x05\x12\x10\n\x08\x66ilename\x18\x07 \x01(\t\x12\r\n\x05limit\x18\x08 \x01(\x05\x12L\n\x10other_conditions\x18\t \x03(\x0b\x32\x32.dfs.ifs.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\"\x82\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-\n\x07records\x18\x04 \x03(\x0b\x32\x1c.dfs.ifs.level1.Level1Record\"\x1a\n\x0cGetLevel1Req\x12\n\n\x02id\x18\x01 \x01(\x03\"=\n\rGetLevel1Resp\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.ifs.level1.Level1Record\"L\n\x0eWriteLevel1Req\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.ifs.level1.Level1Record\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"n\n\x0fWriteLevel1Resp\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.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\xa7\x03\n\tLevel1Srv\x12G\n\x04\x46ind\x12\x1d.dfs.ifs.level1.FindLevel1Req\x1a\x1e.dfs.ifs.level1.FindLevel1Resp\"\x00\x12\x44\n\x03Get\x12\x1c.dfs.ifs.level1.GetLevel1Req\x1a\x1d.dfs.ifs.level1.GetLevel1Resp\"\x00\x12L\n\x05Write\x12\x1e.dfs.ifs.level1.WriteLevel1Req\x1a\x1f.dfs.ifs.level1.WriteLevel1Resp\"\x00(\x01\x12\\\n\x0fUpdateQc1Status\x12\".dfs.ifs.level1.UpdateQc1StatusReq\x1a#.dfs.ifs.level1.UpdateQc1StatusResp\"\x00\x12_\n\x10UpdateProcStatus\x12#.dfs.ifs.level1.UpdateProcStatusReq\x1a$.dfs.ifs.level1.UpdateProcStatusResp\"\x00\x42!Z\x1f\x63nlab.net/csst/proto/ifs/level1b\x06proto3')
,
dependencies=[common_dot_error__pb2.DESCRIPTOR,])
......@@ -437,6 +437,13 @@ _WRITELEVEL1REQ = _descriptor.Descriptor(
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='data', full_name='dfs.ifs.level1.WriteLevel1Req.data', index=1,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
......@@ -450,7 +457,7 @@ _WRITELEVEL1REQ = _descriptor.Descriptor(
oneofs=[
],
serialized_start=964,
serialized_end=1026,
serialized_end=1040,
)
......@@ -494,8 +501,8 @@ _WRITELEVEL1RESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1028,
serialized_end=1138,
serialized_start=1042,
serialized_end=1152,
)
......@@ -532,8 +539,8 @@ _UPDATEQC1STATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1140,
serialized_end=1188,
serialized_start=1154,
serialized_end=1202,
)
......@@ -570,8 +577,8 @@ _UPDATEQC1STATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1190,
serialized_end=1258,
serialized_start=1204,
serialized_end=1272,
)
......@@ -608,8 +615,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1260,
serialized_end=1309,
serialized_start=1274,
serialized_end=1323,
)
......@@ -646,8 +653,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1311,
serialized_end=1380,
serialized_start=1325,
serialized_end=1394,
)
_FINDLEVEL1REQ_OTHERCONDITIONSENTRY.containing_type = _FINDLEVEL1REQ
......@@ -768,8 +775,8 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=1383,
serialized_end=1804,
serialized_start=1397,
serialized_end=1820,
methods=[
_descriptor.MethodDescriptor(
name='Find',
......
......@@ -24,7 +24,7 @@ class Level1SrvStub(object):
request_serializer=ifs_dot_level1_dot_level1__pb2.GetLevel1Req.SerializeToString,
response_deserializer=ifs_dot_level1_dot_level1__pb2.GetLevel1Resp.FromString,
)
self.Write = channel.unary_unary(
self.Write = channel.stream_unary(
'/dfs.ifs.level1.Level1Srv/Write',
request_serializer=ifs_dot_level1_dot_level1__pb2.WriteLevel1Req.SerializeToString,
response_deserializer=ifs_dot_level1_dot_level1__pb2.WriteLevel1Resp.FromString,
......@@ -59,7 +59,7 @@ class Level1SrvServicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Write(self, request, context):
def Write(self, request_iterator, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
......@@ -93,7 +93,7 @@ def add_Level1SrvServicer_to_server(servicer, server):
request_deserializer=ifs_dot_level1_dot_level1__pb2.GetLevel1Req.FromString,
response_serializer=ifs_dot_level1_dot_level1__pb2.GetLevel1Resp.SerializeToString,
),
'Write': grpc.unary_unary_rpc_method_handler(
'Write': grpc.stream_unary_rpc_method_handler(
servicer.Write,
request_deserializer=ifs_dot_level1_dot_level1__pb2.WriteLevel1Req.FromString,
response_serializer=ifs_dot_level1_dot_level1__pb2.WriteLevel1Resp.SerializeToString,
......
......@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='dfs.msc.level1',
syntax='proto3',
serialized_options=_b('Z\037cnlab.net/csst/proto/msc/level1'),
serialized_pb=_b('\n\x17msc/level1/level1.proto\x12\x0e\x64\x66s.msc.level1\x1a\x12\x63ommon/error.proto\"\xb6\x02\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\x12\n\nprc_params\x18\x05 \x01(\t\x12\x0f\n\x07\x66lat_id\x18\x06 \x01(\x03\x12\x0f\n\x07\x64\x61rk_id\x18\x07 \x01(\x03\x12\x0f\n\x07\x62ias_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\nqc1_status\x18\x0b \x01(\x05\x12\x10\n\x08qc1_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\x12\x13\n\x0bpipeline_id\x18\x10 \x01(\t\"\xb8\x02\n\rFindLevel1Req\x12\x11\n\tlevel0_id\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x03 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x04 \x01(\t\x12\x12\n\nqc1_status\x18\x05 \x01(\x05\x12\x12\n\nprc_status\x18\x06 \x01(\x05\x12\x10\n\x08\x66ilename\x18\x07 \x01(\t\x12\r\n\x05limit\x18\x08 \x01(\x05\x12L\n\x10other_conditions\x18\t \x03(\x0b\x32\x32.dfs.msc.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\"\x82\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-\n\x07records\x18\x04 \x03(\x0b\x32\x1c.dfs.msc.level1.Level1Record\"\x1a\n\x0cGetLevel1Req\x12\n\n\x02id\x18\x01 \x01(\x03\"=\n\rGetLevel1Resp\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.msc.level1.Level1Record\">\n\x0eWriteLevel1Req\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.msc.level1.Level1Record\"n\n\x0fWriteLevel1Resp\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.msc.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\xa5\x03\n\tLevel1Srv\x12G\n\x04\x46ind\x12\x1d.dfs.msc.level1.FindLevel1Req\x1a\x1e.dfs.msc.level1.FindLevel1Resp\"\x00\x12\x44\n\x03Get\x12\x1c.dfs.msc.level1.GetLevel1Req\x1a\x1d.dfs.msc.level1.GetLevel1Resp\"\x00\x12J\n\x05Write\x12\x1e.dfs.msc.level1.WriteLevel1Req\x1a\x1f.dfs.msc.level1.WriteLevel1Resp\"\x00\x12\\\n\x0fUpdateQc1Status\x12\".dfs.msc.level1.UpdateQc1StatusReq\x1a#.dfs.msc.level1.UpdateQc1StatusResp\"\x00\x12_\n\x10UpdateProcStatus\x12#.dfs.msc.level1.UpdateProcStatusReq\x1a$.dfs.msc.level1.UpdateProcStatusResp\"\x00\x42!Z\x1f\x63nlab.net/csst/proto/msc/level1b\x06proto3')
serialized_pb=_b('\n\x17msc/level1/level1.proto\x12\x0e\x64\x66s.msc.level1\x1a\x12\x63ommon/error.proto\"\xb6\x02\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\x12\n\nprc_params\x18\x05 \x01(\t\x12\x0f\n\x07\x66lat_id\x18\x06 \x01(\x03\x12\x0f\n\x07\x64\x61rk_id\x18\x07 \x01(\x03\x12\x0f\n\x07\x62ias_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\nqc1_status\x18\x0b \x01(\x05\x12\x10\n\x08qc1_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\x12\x13\n\x0bpipeline_id\x18\x10 \x01(\t\"\xb8\x02\n\rFindLevel1Req\x12\x11\n\tlevel0_id\x18\x01 \x01(\t\x12\x11\n\tdata_type\x18\x02 \x01(\t\x12\x19\n\x11\x63reate_time_start\x18\x03 \x01(\t\x12\x17\n\x0f\x63reate_time_end\x18\x04 \x01(\t\x12\x12\n\nqc1_status\x18\x05 \x01(\x05\x12\x12\n\nprc_status\x18\x06 \x01(\x05\x12\x10\n\x08\x66ilename\x18\x07 \x01(\t\x12\r\n\x05limit\x18\x08 \x01(\x05\x12L\n\x10other_conditions\x18\t \x03(\x0b\x32\x32.dfs.msc.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\"\x82\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-\n\x07records\x18\x04 \x03(\x0b\x32\x1c.dfs.msc.level1.Level1Record\"\x1a\n\x0cGetLevel1Req\x12\n\n\x02id\x18\x01 \x01(\x03\"=\n\rGetLevel1Resp\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.msc.level1.Level1Record\"L\n\x0eWriteLevel1Req\x12,\n\x06record\x18\x01 \x01(\x0b\x32\x1c.dfs.msc.level1.Level1Record\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"n\n\x0fWriteLevel1Resp\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.msc.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\xa7\x03\n\tLevel1Srv\x12G\n\x04\x46ind\x12\x1d.dfs.msc.level1.FindLevel1Req\x1a\x1e.dfs.msc.level1.FindLevel1Resp\"\x00\x12\x44\n\x03Get\x12\x1c.dfs.msc.level1.GetLevel1Req\x1a\x1d.dfs.msc.level1.GetLevel1Resp\"\x00\x12L\n\x05Write\x12\x1e.dfs.msc.level1.WriteLevel1Req\x1a\x1f.dfs.msc.level1.WriteLevel1Resp\"\x00(\x01\x12\\\n\x0fUpdateQc1Status\x12\".dfs.msc.level1.UpdateQc1StatusReq\x1a#.dfs.msc.level1.UpdateQc1StatusResp\"\x00\x12_\n\x10UpdateProcStatus\x12#.dfs.msc.level1.UpdateProcStatusReq\x1a$.dfs.msc.level1.UpdateProcStatusResp\"\x00\x42!Z\x1f\x63nlab.net/csst/proto/msc/level1b\x06proto3')
,
dependencies=[common_dot_error__pb2.DESCRIPTOR,])
......@@ -416,6 +416,13 @@ _WRITELEVEL1REQ = _descriptor.Descriptor(
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='data', full_name='dfs.msc.level1.WriteLevel1Req.data', index=1,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
......@@ -429,7 +436,7 @@ _WRITELEVEL1REQ = _descriptor.Descriptor(
oneofs=[
],
serialized_start=915,
serialized_end=977,
serialized_end=991,
)
......@@ -473,8 +480,8 @@ _WRITELEVEL1RESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=979,
serialized_end=1089,
serialized_start=993,
serialized_end=1103,
)
......@@ -511,8 +518,8 @@ _UPDATEQC1STATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1091,
serialized_end=1139,
serialized_start=1105,
serialized_end=1153,
)
......@@ -549,8 +556,8 @@ _UPDATEQC1STATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1141,
serialized_end=1209,
serialized_start=1155,
serialized_end=1223,
)
......@@ -587,8 +594,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1211,
serialized_end=1260,
serialized_start=1225,
serialized_end=1274,
)
......@@ -625,8 +632,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1262,
serialized_end=1331,
serialized_start=1276,
serialized_end=1345,
)
_FINDLEVEL1REQ_OTHERCONDITIONSENTRY.containing_type = _FINDLEVEL1REQ
......@@ -747,8 +754,8 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=1334,
serialized_end=1755,
serialized_start=1348,
serialized_end=1771,
methods=[
_descriptor.MethodDescriptor(
name='Find',
......
......@@ -24,7 +24,7 @@ class Level1SrvStub(object):
request_serializer=msc_dot_level1_dot_level1__pb2.GetLevel1Req.SerializeToString,
response_deserializer=msc_dot_level1_dot_level1__pb2.GetLevel1Resp.FromString,
)
self.Write = channel.unary_unary(
self.Write = channel.stream_unary(
'/dfs.msc.level1.Level1Srv/Write',
request_serializer=msc_dot_level1_dot_level1__pb2.WriteLevel1Req.SerializeToString,
response_deserializer=msc_dot_level1_dot_level1__pb2.WriteLevel1Resp.FromString,
......@@ -59,7 +59,7 @@ class Level1SrvServicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Write(self, request, context):
def Write(self, request_iterator, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
......@@ -93,7 +93,7 @@ def add_Level1SrvServicer_to_server(servicer, server):
request_deserializer=msc_dot_level1_dot_level1__pb2.GetLevel1Req.FromString,
response_serializer=msc_dot_level1_dot_level1__pb2.GetLevel1Resp.SerializeToString,
),
'Write': grpc.unary_unary_rpc_method_handler(
'Write': grpc.stream_unary_rpc_method_handler(
servicer.Write,
request_deserializer=msc_dot_level1_dot_level1__pb2.WriteLevel1Req.FromString,
response_serializer=msc_dot_level1_dot_level1__pb2.WriteLevel1Resp.SerializeToString,
......
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