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

c3

parent f439da0e
This diff is collapsed.
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from . import calmerge_pb2 as facility_dot_calmerge_dot_calmerge__pb2
class CalMergeSrvStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Find = channel.unary_unary(
'/calmerge.CalMergeSrv/Find',
request_serializer=facility_dot_calmerge_dot_calmerge__pb2.FindCalMergeReq.SerializeToString,
response_deserializer=facility_dot_calmerge_dot_calmerge__pb2.FindCalMergeResp.FromString,
)
self.Get = channel.unary_unary(
'/calmerge.CalMergeSrv/Get',
request_serializer=facility_dot_calmerge_dot_calmerge__pb2.GetCalMergeReq.SerializeToString,
response_deserializer=facility_dot_calmerge_dot_calmerge__pb2.GetCalMergeResp.FromString,
)
self.Write = channel.unary_unary(
'/calmerge.CalMergeSrv/Write',
request_serializer=facility_dot_calmerge_dot_calmerge__pb2.WriteCalMergeReq.SerializeToString,
response_deserializer=facility_dot_calmerge_dot_calmerge__pb2.WriteCalMergeResp.FromString,
)
self.UpdateQc1Status = channel.unary_unary(
'/calmerge.CalMergeSrv/UpdateQc1Status',
request_serializer=facility_dot_calmerge_dot_calmerge__pb2.UpdateQc1StatusReq.SerializeToString,
response_deserializer=facility_dot_calmerge_dot_calmerge__pb2.UpdateQc1StatusResp.FromString,
)
self.UpdateProcStatus = channel.unary_unary(
'/calmerge.CalMergeSrv/UpdateProcStatus',
request_serializer=facility_dot_calmerge_dot_calmerge__pb2.UpdateProcStatusReq.SerializeToString,
response_deserializer=facility_dot_calmerge_dot_calmerge__pb2.UpdateProcStatusResp.FromString,
)
class CalMergeSrvServicer(object):
# missing associated documentation comment in .proto file
pass
def Find(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 Get(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 Write(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 UpdateQc1Status(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 UpdateProcStatus(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_CalMergeSrvServicer_to_server(servicer, server):
rpc_method_handlers = {
'Find': grpc.unary_unary_rpc_method_handler(
servicer.Find,
request_deserializer=facility_dot_calmerge_dot_calmerge__pb2.FindCalMergeReq.FromString,
response_serializer=facility_dot_calmerge_dot_calmerge__pb2.FindCalMergeResp.SerializeToString,
),
'Get': grpc.unary_unary_rpc_method_handler(
servicer.Get,
request_deserializer=facility_dot_calmerge_dot_calmerge__pb2.GetCalMergeReq.FromString,
response_serializer=facility_dot_calmerge_dot_calmerge__pb2.GetCalMergeResp.SerializeToString,
),
'Write': grpc.unary_unary_rpc_method_handler(
servicer.Write,
request_deserializer=facility_dot_calmerge_dot_calmerge__pb2.WriteCalMergeReq.FromString,
response_serializer=facility_dot_calmerge_dot_calmerge__pb2.WriteCalMergeResp.SerializeToString,
),
'UpdateQc1Status': grpc.unary_unary_rpc_method_handler(
servicer.UpdateQc1Status,
request_deserializer=facility_dot_calmerge_dot_calmerge__pb2.UpdateQc1StatusReq.FromString,
response_serializer=facility_dot_calmerge_dot_calmerge__pb2.UpdateQc1StatusResp.SerializeToString,
),
'UpdateProcStatus': grpc.unary_unary_rpc_method_handler(
servicer.UpdateProcStatus,
request_deserializer=facility_dot_calmerge_dot_calmerge__pb2.UpdateProcStatusReq.FromString,
response_serializer=facility_dot_calmerge_dot_calmerge__pb2.UpdateProcStatusResp.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'calmerge.CalMergeSrv', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from . import detector_pb2 as facility_dot_detector_dot_detector__pb2
from ...facility.detector import detector_pb2 as facility_dot_detector_dot_detector__pb2
class DetectorSrvStub(object):
......@@ -15,42 +15,42 @@ class DetectorSrvStub(object):
channel: A grpc.Channel.
"""
self.Find = channel.unary_unary(
'/detector.DetectorSrv/Find',
'/facility.detector.DetectorSrv/Find',
request_serializer=facility_dot_detector_dot_detector__pb2.FindDetectorReq.SerializeToString,
response_deserializer=facility_dot_detector_dot_detector__pb2.FindDetectorResp.FromString,
)
self.Get = channel.unary_unary(
'/detector.DetectorSrv/Get',
'/facility.detector.DetectorSrv/Get',
request_serializer=facility_dot_detector_dot_detector__pb2.GetDetectorReq.SerializeToString,
response_deserializer=facility_dot_detector_dot_detector__pb2.GetDetectorResp.FromString,
)
self.Write = channel.unary_unary(
'/detector.DetectorSrv/Write',
'/facility.detector.DetectorSrv/Write',
request_serializer=facility_dot_detector_dot_detector__pb2.WriteDetectorReq.SerializeToString,
response_deserializer=facility_dot_detector_dot_detector__pb2.WriteDetectorResp.FromString,
)
self.Update = channel.unary_unary(
'/detector.DetectorSrv/Update',
'/facility.detector.DetectorSrv/Update',
request_serializer=facility_dot_detector_dot_detector__pb2.UpdateDetectorReq.SerializeToString,
response_deserializer=facility_dot_detector_dot_detector__pb2.UpdateDetectorResp.FromString,
)
self.Delete = channel.unary_unary(
'/detector.DetectorSrv/Delete',
'/facility.detector.DetectorSrv/Delete',
request_serializer=facility_dot_detector_dot_detector__pb2.DeleteDetectorReq.SerializeToString,
response_deserializer=facility_dot_detector_dot_detector__pb2.DeleteDetectorResp.FromString,
)
self.FindStatus = channel.unary_unary(
'/detector.DetectorSrv/FindStatus',
'/facility.detector.DetectorSrv/FindStatus',
request_serializer=facility_dot_detector_dot_detector__pb2.FindStatusReq.SerializeToString,
response_deserializer=facility_dot_detector_dot_detector__pb2.FindStatusResp.FromString,
)
self.GetStatus = channel.unary_unary(
'/detector.DetectorSrv/GetStatus',
'/facility.detector.DetectorSrv/GetStatus',
request_serializer=facility_dot_detector_dot_detector__pb2.GetStatusReq.SerializeToString,
response_deserializer=facility_dot_detector_dot_detector__pb2.GetStatusResp.FromString,
)
self.WriteStatus = channel.unary_unary(
'/detector.DetectorSrv/WriteStatus',
'/facility.detector.DetectorSrv/WriteStatus',
request_serializer=facility_dot_detector_dot_detector__pb2.WriteStatusReq.SerializeToString,
response_deserializer=facility_dot_detector_dot_detector__pb2.WriteStatusResp.FromString,
)
......@@ -161,5 +161,5 @@ def add_DetectorSrvServicer_to_server(servicer, server):
),
}
generic_handler = grpc.method_handlers_generic_handler(
'detector.DetectorSrv', rpc_method_handlers)
'facility.detector.DetectorSrv', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
......@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='level0',
syntax='proto3',
serialized_options=_b('Z$cnlab.net/csst/proto/facility/level0'),
serialized_pb=_b('\n\x1c\x66\x61\x63ility/level0/level0.proto\x12\x06level0\x1a\x12\x63ommon/error.proto\"\x97\x02\n\x0cLevel0Record\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06obs_id\x18\x02 \x01(\x03\x12\x13\n\x0b\x64\x65tector_no\x18\x03 \x01(\t\x12\x10\n\x08obs_type\x18\x04 \x01(\t\x12\x10\n\x08obs_time\x18\x05 \x01(\t\x12\x10\n\x08\x65xp_time\x18\x06 \x01(\x02\x12\x1a\n\x12\x64\x65tector_status_id\x18\x07 \x01(\x03\x12\x10\n\x08\x66ilename\x18\x08 \x01(\t\x12\x11\n\tfile_path\x18\t \x01(\t\x12\x12\n\nqc0_status\x18\n \x01(\r\x12\x10\n\x08qc0_time\x18\x0b \x01(\t\x12\x12\n\nprc_status\x18\x0c \x01(\r\x12\x10\n\x08prc_time\x18\r \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x0e \x01(\t\"\xc4\x02\n\x11\x46indLevel0DataReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64\x65tector_no\x18\x02 \x01(\t\x12\x10\n\x08obs_type\x18\x03 \x01(\t\x12\x16\n\x0e\x65xp_time_start\x18\x04 \x01(\t\x12\x14\n\x0c\x65xp_time_end\x18\x05 \x01(\t\x12\x12\n\nqc0_status\x18\x06 \x01(\r\x12\x12\n\nprc_status\x18\x07 \x01(\r\x12\x11\n\tfile_name\x18\x08 \x01(\t\x12\r\n\x05limit\x18\t \x01(\r\x12H\n\x10other_conditions\x18\n \x03(\x0b\x32..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\"~\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\x14.level0.Level0Record\"\x1e\n\x10GetLevel0DataReq\x12\n\n\x02id\x18\x01 \x01(\x03\"9\n\x11GetLevel0DataResp\x12$\n\x06record\x18\x01 \x01(\x0b\x32\x14.level0.Level0Record\"0\n\x12UpdateQc0StatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\r\"D\n\x13UpdateQc0StatusResp\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(\r\"E\n\x14UpdateProcStatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error2\xa9\x02\n\tLevel0Srv\x12?\n\x04\x46ind\x12\x19.level0.FindLevel0DataReq\x1a\x1a.level0.FindLevel0DataResp\"\x00\x12<\n\x03Get\x12\x18.level0.GetLevel0DataReq\x1a\x19.level0.GetLevel0DataResp\"\x00\x12L\n\x0fUpdateQc0Status\x12\x1a.level0.UpdateQc0StatusReq\x1a\x1b.level0.UpdateQc0StatusResp\"\x00\x12O\n\x10UpdateProcStatus\x12\x1b.level0.UpdateProcStatusReq\x1a\x1c.level0.UpdateProcStatusResp\"\x00\x42&Z$cnlab.net/csst/proto/facility/level0b\x06proto3')
serialized_pb=_b('\n\x1c\x66\x61\x63ility/level0/level0.proto\x12\x06level0\x1a\x12\x63ommon/error.proto\"\x97\x02\n\x0cLevel0Record\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06obs_id\x18\x02 \x01(\x03\x12\x13\n\x0b\x64\x65tector_no\x18\x03 \x01(\t\x12\x10\n\x08obs_type\x18\x04 \x01(\t\x12\x10\n\x08obs_time\x18\x05 \x01(\t\x12\x10\n\x08\x65xp_time\x18\x06 \x01(\x02\x12\x1a\n\x12\x64\x65tector_status_id\x18\x07 \x01(\x03\x12\x10\n\x08\x66ilename\x18\x08 \x01(\t\x12\x11\n\tfile_path\x18\t \x01(\t\x12\x12\n\nqc0_status\x18\n \x01(\r\x12\x10\n\x08qc0_time\x18\x0b \x01(\t\x12\x12\n\nprc_status\x18\x0c \x01(\r\x12\x10\n\x08prc_time\x18\r \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x0e \x01(\t\"\xc4\x02\n\x11\x46indLevel0DataReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64\x65tector_no\x18\x02 \x01(\t\x12\x10\n\x08obs_type\x18\x03 \x01(\t\x12\x16\n\x0e\x65xp_time_start\x18\x04 \x01(\t\x12\x14\n\x0c\x65xp_time_end\x18\x05 \x01(\t\x12\x12\n\nqc0_status\x18\x06 \x01(\r\x12\x12\n\nprc_status\x18\x07 \x01(\r\x12\x11\n\tfile_name\x18\x08 \x01(\t\x12\r\n\x05limit\x18\t \x01(\r\x12H\n\x10other_conditions\x18\n \x03(\x0b\x32..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\"~\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\x14.level0.Level0Record\"\x1e\n\x10GetLevel0DataReq\x12\n\n\x02id\x18\x01 \x01(\x03\"9\n\x11GetLevel0DataResp\x12$\n\x06record\x18\x01 \x01(\x0b\x32\x14.level0.Level0Record\":\n\x12WriteLevel0DataReq\x12$\n\x06record\x18\x01 \x01(\x0b\x32\x14.level0.Level0Record\"j\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\x14.level0.Level0Record\"0\n\x12UpdateQc0StatusReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\r\"D\n\x13UpdateQc0StatusResp\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(\r\"E\n\x14UpdateProcStatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error2\xed\x02\n\tLevel0Srv\x12?\n\x04\x46ind\x12\x19.level0.FindLevel0DataReq\x1a\x1a.level0.FindLevel0DataResp\"\x00\x12<\n\x03Get\x12\x18.level0.GetLevel0DataReq\x1a\x19.level0.GetLevel0DataResp\"\x00\x12\x42\n\x05Write\x12\x1a.level0.WriteLevel0DataReq\x1a\x1b.level0.WriteLevel0DataResp\"\x00\x12L\n\x0fUpdateQc0Status\x12\x1a.level0.UpdateQc0StatusReq\x1a\x1b.level0.UpdateQc0StatusResp\"\x00\x12O\n\x10UpdateProcStatus\x12\x1b.level0.UpdateProcStatusReq\x1a\x1c.level0.UpdateProcStatusResp\"\x00\x42&Z$cnlab.net/csst/proto/facility/level0b\x06proto3')
,
dependencies=[common_dot_error__pb2.DESCRIPTOR,])
......@@ -395,6 +395,82 @@ _GETLEVEL0DATARESP = _descriptor.Descriptor(
)
_WRITELEVEL0DATAREQ = _descriptor.Descriptor(
name='WriteLevel0DataReq',
full_name='level0.WriteLevel0DataReq',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='record', full_name='level0.WriteLevel0DataReq.record', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=888,
serialized_end=946,
)
_WRITELEVEL0DATARESP = _descriptor.Descriptor(
name='WriteLevel0DataResp',
full_name='level0.WriteLevel0DataResp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='success', full_name='level0.WriteLevel0DataResp.success', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error', full_name='level0.WriteLevel0DataResp.error', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='record', full_name='level0.WriteLevel0DataResp.record', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=948,
serialized_end=1054,
)
_UPDATEQC0STATUSREQ = _descriptor.Descriptor(
name='UpdateQc0StatusReq',
full_name='level0.UpdateQc0StatusReq',
......@@ -428,8 +504,8 @@ _UPDATEQC0STATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=888,
serialized_end=936,
serialized_start=1056,
serialized_end=1104,
)
......@@ -466,8 +542,8 @@ _UPDATEQC0STATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=938,
serialized_end=1006,
serialized_start=1106,
serialized_end=1174,
)
......@@ -504,8 +580,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1008,
serialized_end=1057,
serialized_start=1176,
serialized_end=1225,
)
......@@ -542,8 +618,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1059,
serialized_end=1128,
serialized_start=1227,
serialized_end=1296,
)
_FINDLEVEL0DATAREQ_OTHERCONDITIONSENTRY.containing_type = _FINDLEVEL0DATAREQ
......@@ -551,6 +627,9 @@ _FINDLEVEL0DATAREQ.fields_by_name['other_conditions'].message_type = _FINDLEVEL0
_FINDLEVEL0DATARESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_FINDLEVEL0DATARESP.fields_by_name['records'].message_type = _LEVEL0RECORD
_GETLEVEL0DATARESP.fields_by_name['record'].message_type = _LEVEL0RECORD
_WRITELEVEL0DATAREQ.fields_by_name['record'].message_type = _LEVEL0RECORD
_WRITELEVEL0DATARESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_WRITELEVEL0DATARESP.fields_by_name['record'].message_type = _LEVEL0RECORD
_UPDATEQC0STATUSRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_UPDATEPROCSTATUSRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
DESCRIPTOR.message_types_by_name['Level0Record'] = _LEVEL0RECORD
......@@ -558,6 +637,8 @@ DESCRIPTOR.message_types_by_name['FindLevel0DataReq'] = _FINDLEVEL0DATAREQ
DESCRIPTOR.message_types_by_name['FindLevel0DataResp'] = _FINDLEVEL0DATARESP
DESCRIPTOR.message_types_by_name['GetLevel0DataReq'] = _GETLEVEL0DATAREQ
DESCRIPTOR.message_types_by_name['GetLevel0DataResp'] = _GETLEVEL0DATARESP
DESCRIPTOR.message_types_by_name['WriteLevel0DataReq'] = _WRITELEVEL0DATAREQ
DESCRIPTOR.message_types_by_name['WriteLevel0DataResp'] = _WRITELEVEL0DATARESP
DESCRIPTOR.message_types_by_name['UpdateQc0StatusReq'] = _UPDATEQC0STATUSREQ
DESCRIPTOR.message_types_by_name['UpdateQc0StatusResp'] = _UPDATEQC0STATUSRESP
DESCRIPTOR.message_types_by_name['UpdateProcStatusReq'] = _UPDATEPROCSTATUSREQ
......@@ -607,6 +688,20 @@ GetLevel0DataResp = _reflection.GeneratedProtocolMessageType('GetLevel0DataResp'
})
_sym_db.RegisterMessage(GetLevel0DataResp)
WriteLevel0DataReq = _reflection.GeneratedProtocolMessageType('WriteLevel0DataReq', (_message.Message,), {
'DESCRIPTOR' : _WRITELEVEL0DATAREQ,
'__module__' : 'facility.level0.level0_pb2'
# @@protoc_insertion_point(class_scope:level0.WriteLevel0DataReq)
})
_sym_db.RegisterMessage(WriteLevel0DataReq)
WriteLevel0DataResp = _reflection.GeneratedProtocolMessageType('WriteLevel0DataResp', (_message.Message,), {
'DESCRIPTOR' : _WRITELEVEL0DATARESP,
'__module__' : 'facility.level0.level0_pb2'
# @@protoc_insertion_point(class_scope:level0.WriteLevel0DataResp)
})
_sym_db.RegisterMessage(WriteLevel0DataResp)
UpdateQc0StatusReq = _reflection.GeneratedProtocolMessageType('UpdateQc0StatusReq', (_message.Message,), {
'DESCRIPTOR' : _UPDATEQC0STATUSREQ,
'__module__' : 'facility.level0.level0_pb2'
......@@ -645,8 +740,8 @@ _LEVEL0SRV = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=1131,
serialized_end=1428,
serialized_start=1299,
serialized_end=1664,
methods=[
_descriptor.MethodDescriptor(
name='Find',
......@@ -666,10 +761,19 @@ _LEVEL0SRV = _descriptor.ServiceDescriptor(
output_type=_GETLEVEL0DATARESP,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='Write',
full_name='level0.Level0Srv.Write',
index=2,
containing_service=None,
input_type=_WRITELEVEL0DATAREQ,
output_type=_WRITELEVEL0DATARESP,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='UpdateQc0Status',
full_name='level0.Level0Srv.UpdateQc0Status',
index=2,
index=3,
containing_service=None,
input_type=_UPDATEQC0STATUSREQ,
output_type=_UPDATEQC0STATUSRESP,
......@@ -678,7 +782,7 @@ _LEVEL0SRV = _descriptor.ServiceDescriptor(
_descriptor.MethodDescriptor(
name='UpdateProcStatus',
full_name='level0.Level0Srv.UpdateProcStatus',
index=3,
index=4,
containing_service=None,
input_type=_UPDATEPROCSTATUSREQ,
output_type=_UPDATEPROCSTATUSRESP,
......
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from . import level0_pb2 as facility_dot_level0_dot_level0__pb2
from ...facility.level0 import level0_pb2 as facility_dot_level0_dot_level0__pb2
class Level0SrvStub(object):
......@@ -24,6 +24,11 @@ class Level0SrvStub(object):
request_serializer=facility_dot_level0_dot_level0__pb2.GetLevel0DataReq.SerializeToString,
response_deserializer=facility_dot_level0_dot_level0__pb2.GetLevel0DataResp.FromString,
)
self.Write = channel.unary_unary(
'/level0.Level0Srv/Write',
request_serializer=facility_dot_level0_dot_level0__pb2.WriteLevel0DataReq.SerializeToString,
response_deserializer=facility_dot_level0_dot_level0__pb2.WriteLevel0DataResp.FromString,
)
self.UpdateQc0Status = channel.unary_unary(
'/level0.Level0Srv/UpdateQc0Status',
request_serializer=facility_dot_level0_dot_level0__pb2.UpdateQc0StatusReq.SerializeToString,
......@@ -54,6 +59,13 @@ class Level0SrvServicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Write(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 UpdateQc0Status(self, request, context):
# missing associated documentation comment in .proto file
pass
......@@ -81,6 +93,11 @@ def add_Level0SrvServicer_to_server(servicer, server):
request_deserializer=facility_dot_level0_dot_level0__pb2.GetLevel0DataReq.FromString,
response_serializer=facility_dot_level0_dot_level0__pb2.GetLevel0DataResp.SerializeToString,
),
'Write': grpc.unary_unary_rpc_method_handler(
servicer.Write,
request_deserializer=facility_dot_level0_dot_level0__pb2.WriteLevel0DataReq.FromString,
response_serializer=facility_dot_level0_dot_level0__pb2.WriteLevel0DataResp.SerializeToString,
),
'UpdateQc0Status': grpc.unary_unary_rpc_method_handler(
servicer.UpdateQc0Status,
request_deserializer=facility_dot_level0_dot_level0__pb2.UpdateQc0StatusReq.FromString,
......
......@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='observation',
syntax='proto3',
serialized_options=_b('Z)cnlab.net/csst/proto/facility/observation'),
serialized_pb=_b('\n&facility/observation/observation.proto\x12\x0bobservation\x1a\x12\x63ommon/error.proto\"\x90\x02\n\x0bObservation\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x10\n\x08obs_time\x18\x02 \x01(\t\x12\x10\n\x08\x65xp_time\x18\x03 \x01(\x02\x12\x11\n\tmodule_id\x18\x04 \x01(\t\x12\x10\n\x08obs_type\x18\x05 \x01(\t\x12\x1a\n\x12\x66\x61\x63ility_status_id\x18\x06 \x01(\x03\x12\x18\n\x10module_status_id\x18\x07 \x01(\x03\x12\x12\n\nqc0_status\x18\x08 \x01(\r\x12\x10\n\x08qc0_time\x18\t \x01(\t\x12\x12\n\nprc_status\x18\n \x01(\r\x12\x10\n\x08prc_time\x18\x0b \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x0c \x01(\t\x12\x15\n\rimport_status\x18\r \x01(\r\"\xa6\x02\n\x12\x46indObservationReq\x12\x11\n\tmodule_id\x18\x01 \x01(\t\x12\x10\n\x08obs_type\x18\x02 \x01(\t\x12\x16\n\x0e\x65xp_time_start\x18\x03 \x01(\t\x12\x14\n\x0c\x65xp_time_end\x18\x04 \x01(\t\x12\x12\n\nqc0_status\x18\x05 \x01(\r\x12\x12\n\nprc_status\x18\x06 \x01(\r\x12\r\n\x05limit\x18\x07 \x01(\r\x12N\n\x10other_conditions\x18\x08 \x03(\x0b\x32\x34.observation.FindObservationReq.OtherConditionsEntry\x1a\x36\n\x14OtherConditionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x83\x01\n\x13\x46indObservationResp\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\x18.observation.Observation\"#\n\x11GetObservationReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\x03\"C\n\x12GetObservationResp\x12-\n\x0bobservation\x18\x01 \x01(\x0b\x32\x18.observation.Observation\"\xaa\x01\n\x13WriteObservationReq\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x16\n\x0e\x65xp_begin_time\x18\x02 \x01(\x03\x12\x14\n\x0c\x65xp_end_time\x18\x03 \x01(\x03\x12\x11\n\tmodule_id\x18\x04 \x01(\t\x12\x10\n\x08obs_type\x18\x05 \x01(\t\x12\x1a\n\x12\x66\x61\x63ility_status_id\x18\x06 \x01(\x03\x12\x18\n\x10module_status_id\x18\x07 \x01(\x03\"t\n\x14WriteObservationResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12-\n\x0bobservation\x18\x03 \x01(\x0b\x32\x18.observation.Observation\"4\n\x12UpdateQc0StatusReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\r\"D\n\x13UpdateQc0StatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\"5\n\x13UpdateProcStatusReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\r\"E\n\x14UpdateProcStatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error2\xac\x03\n\x0eObservationSrv\x12K\n\x04\x46ind\x12\x1f.observation.FindObservationReq\x1a .observation.FindObservationResp\"\x00\x12H\n\x03Get\x12\x1e.observation.GetObservationReq\x1a\x1f.observation.GetObservationResp\"\x00\x12P\n\x05Write\x12 .observation.WriteObservationReq\x1a!.observation.WriteObservationResp\"\x00(\x01\x12V\n\x0fUpdateQc0Status\x12\x1f.observation.UpdateQc0StatusReq\x1a .observation.UpdateQc0StatusResp\"\x00\x12Y\n\x10UpdateProcStatus\x12 .observation.UpdateProcStatusReq\x1a!.observation.UpdateProcStatusResp\"\x00\x42+Z)cnlab.net/csst/proto/facility/observationb\x06proto3')
serialized_pb=_b('\n&facility/observation/observation.proto\x12\x0bobservation\x1a\x12\x63ommon/error.proto\"\x90\x02\n\x0bObservation\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x10\n\x08obs_time\x18\x02 \x01(\t\x12\x10\n\x08\x65xp_time\x18\x03 \x01(\x02\x12\x11\n\tmodule_id\x18\x04 \x01(\t\x12\x10\n\x08obs_type\x18\x05 \x01(\t\x12\x1a\n\x12\x66\x61\x63ility_status_id\x18\x06 \x01(\x03\x12\x18\n\x10module_status_id\x18\x07 \x01(\x03\x12\x12\n\nqc0_status\x18\x08 \x01(\r\x12\x10\n\x08qc0_time\x18\t \x01(\t\x12\x12\n\nprc_status\x18\n \x01(\r\x12\x10\n\x08prc_time\x18\x0b \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x0c \x01(\t\x12\x15\n\rimport_status\x18\r \x01(\r\"\xa6\x02\n\x12\x46indObservationReq\x12\x11\n\tmodule_id\x18\x01 \x01(\t\x12\x10\n\x08obs_type\x18\x02 \x01(\t\x12\x16\n\x0e\x65xp_time_start\x18\x03 \x01(\t\x12\x14\n\x0c\x65xp_time_end\x18\x04 \x01(\t\x12\x12\n\nqc0_status\x18\x05 \x01(\r\x12\x12\n\nprc_status\x18\x06 \x01(\r\x12\r\n\x05limit\x18\x07 \x01(\r\x12N\n\x10other_conditions\x18\x08 \x03(\x0b\x32\x34.observation.FindObservationReq.OtherConditionsEntry\x1a\x36\n\x14OtherConditionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x83\x01\n\x13\x46indObservationResp\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\x18.observation.Observation\"#\n\x11GetObservationReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\x03\"C\n\x12GetObservationResp\x12-\n\x0bobservation\x18\x01 \x01(\x0b\x32\x18.observation.Observation\"?\n\x13WriteObservationReq\x12(\n\x06record\x18\x01 \x01(\x0b\x32\x18.observation.Observation\"o\n\x14WriteObservationResp\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\x18.observation.Observation\"4\n\x12UpdateQc0StatusReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\r\"D\n\x13UpdateQc0StatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\"5\n\x13UpdateProcStatusReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\r\"E\n\x14UpdateProcStatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error2\xaa\x03\n\x0eObservationSrv\x12K\n\x04\x46ind\x12\x1f.observation.FindObservationReq\x1a .observation.FindObservationResp\"\x00\x12H\n\x03Get\x12\x1e.observation.GetObservationReq\x1a\x1f.observation.GetObservationResp\"\x00\x12N\n\x05Write\x12 .observation.WriteObservationReq\x1a!.observation.WriteObservationResp\"\x00\x12V\n\x0fUpdateQc0Status\x12\x1f.observation.UpdateQc0StatusReq\x1a .observation.UpdateQc0StatusResp\"\x00\x12Y\n\x10UpdateProcStatus\x12 .observation.UpdateProcStatusReq\x1a!.observation.UpdateProcStatusResp\"\x00\x42+Z)cnlab.net/csst/proto/facility/observationb\x06proto3')
,
dependencies=[common_dot_error__pb2.DESCRIPTOR,])
......@@ -382,51 +382,9 @@ _WRITEOBSERVATIONREQ = _descriptor.Descriptor(
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='observation.WriteObservationReq.id', index=0,
number=1, 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='exp_begin_time', full_name='observation.WriteObservationReq.exp_begin_time', index=1,
number=2, 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='exp_end_time', full_name='observation.WriteObservationReq.exp_end_time', index=2,
number=3, 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='module_id', full_name='observation.WriteObservationReq.module_id', index=3,
number=4, 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_type', full_name='observation.WriteObservationReq.obs_type', index=4,
number=5, 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='facility_status_id', full_name='observation.WriteObservationReq.facility_status_id', index=5,
number=6, 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='module_status_id', full_name='observation.WriteObservationReq.module_status_id', index=6,
number=7, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
name='record', full_name='observation.WriteObservationReq.record', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
......@@ -442,8 +400,8 @@ _WRITEOBSERVATIONREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=888,
serialized_end=1058,
serialized_start=887,
serialized_end=950,
)
......@@ -469,7 +427,7 @@ _WRITEOBSERVATIONRESP = _descriptor.Descriptor(
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='observation', full_name='observation.WriteObservationResp.observation', index=2,
name='record', full_name='observation.WriteObservationResp.record', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
......@@ -487,8 +445,8 @@ _WRITEOBSERVATIONRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1060,
serialized_end=1176,
serialized_start=952,
serialized_end=1063,
)
......@@ -525,8 +483,8 @@ _UPDATEQC0STATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1178,
serialized_end=1230,
serialized_start=1065,
serialized_end=1117,
)
......@@ -563,8 +521,8 @@ _UPDATEQC0STATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1232,
serialized_end=1300,
serialized_start=1119,
serialized_end=1187,
)
......@@ -601,8 +559,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1302,
serialized_end=1355,
serialized_start=1189,
serialized_end=1242,
)
......@@ -639,8 +597,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1357,
serialized_end=1426,
serialized_start=1244,
serialized_end=1313,
)
_FINDOBSERVATIONREQ_OTHERCONDITIONSENTRY.containing_type = _FINDOBSERVATIONREQ
......@@ -648,8 +606,9 @@ _FINDOBSERVATIONREQ.fields_by_name['other_conditions'].message_type = _FINDOBSER
_FINDOBSERVATIONRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_FINDOBSERVATIONRESP.fields_by_name['records'].message_type = _OBSERVATION
_GETOBSERVATIONRESP.fields_by_name['observation'].message_type = _OBSERVATION
_WRITEOBSERVATIONREQ.fields_by_name['record'].message_type = _OBSERVATION
_WRITEOBSERVATIONRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_WRITEOBSERVATIONRESP.fields_by_name['observation'].message_type = _OBSERVATION
_WRITEOBSERVATIONRESP.fields_by_name['record'].message_type = _OBSERVATION
_UPDATEQC0STATUSRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_UPDATEPROCSTATUSRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
DESCRIPTOR.message_types_by_name['Observation'] = _OBSERVATION
......@@ -760,8 +719,8 @@ _OBSERVATIONSRV = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=1429,
serialized_end=1857,
serialized_start=1316,
serialized_end=1742,
methods=[
_descriptor.MethodDescriptor(
name='Find',
......
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from . import observation_pb2 as facility_dot_observation_dot_observation__pb2
from ...facility.observation import observation_pb2 as facility_dot_observation_dot_observation__pb2
class ObservationSrvStub(object):
......@@ -24,7 +24,7 @@ class ObservationSrvStub(object):
request_serializer=facility_dot_observation_dot_observation__pb2.GetObservationReq.SerializeToString,
response_deserializer=facility_dot_observation_dot_observation__pb2.GetObservationResp.FromString,
)
self.Write = channel.stream_unary(
self.Write = channel.unary_unary(
'/observation.ObservationSrv/Write',
request_serializer=facility_dot_observation_dot_observation__pb2.WriteObservationReq.SerializeToString,
response_deserializer=facility_dot_observation_dot_observation__pb2.WriteObservationResp.FromString,
......@@ -59,7 +59,7 @@ class ObservationSrvServicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Write(self, request_iterator, context):
def Write(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
......@@ -93,7 +93,7 @@ def add_ObservationSrvServicer_to_server(servicer, server):
request_deserializer=facility_dot_observation_dot_observation__pb2.GetObservationReq.FromString,
response_serializer=facility_dot_observation_dot_observation__pb2.GetObservationResp.SerializeToString,
),
'Write': grpc.stream_unary_rpc_method_handler(
'Write': grpc.unary_unary_rpc_method_handler(
servicer.Write,
request_deserializer=facility_dot_observation_dot_observation__pb2.WriteObservationReq.FromString,
response_serializer=facility_dot_observation_dot_observation__pb2.WriteObservationResp.SerializeToString,
......
This diff is collapsed.
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from ...ifs.level1 import level1_pb2 as ifs_dot_level1_dot_level1__pb2
class Level1SrvStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Find = channel.unary_unary(
'/ifs.level1.Level1Srv/Find',
request_serializer=ifs_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString,
response_deserializer=ifs_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString,
)
self.Get = channel.unary_unary(
'/ifs.level1.Level1Srv/Get',
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(
'/ifs.level1.Level1Srv/Write',
request_serializer=ifs_dot_level1_dot_level1__pb2.WriteLevel1Req.SerializeToString,
response_deserializer=ifs_dot_level1_dot_level1__pb2.WriteLevel1Resp.FromString,
)
self.UpdateQc1Status = channel.unary_unary(
'/ifs.level1.Level1Srv/UpdateQc1Status',
request_serializer=ifs_dot_level1_dot_level1__pb2.UpdateQc1StatusReq.SerializeToString,
response_deserializer=ifs_dot_level1_dot_level1__pb2.UpdateQc1StatusResp.FromString,
)
self.UpdateProcStatus = channel.unary_unary(
'/ifs.level1.Level1Srv/UpdateProcStatus',
request_serializer=ifs_dot_level1_dot_level1__pb2.UpdateProcStatusReq.SerializeToString,
response_deserializer=ifs_dot_level1_dot_level1__pb2.UpdateProcStatusResp.FromString,
)
class Level1SrvServicer(object):
# missing associated documentation comment in .proto file
pass
def Find(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 Get(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 Write(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 UpdateQc1Status(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 UpdateProcStatus(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_Level1SrvServicer_to_server(servicer, server):
rpc_method_handlers = {
'Find': grpc.unary_unary_rpc_method_handler(
servicer.Find,
request_deserializer=ifs_dot_level1_dot_level1__pb2.FindLevel1Req.FromString,
response_serializer=ifs_dot_level1_dot_level1__pb2.FindLevel1Resp.SerializeToString,
),
'Get': grpc.unary_unary_rpc_method_handler(
servicer.Get,
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(
servicer.Write,
request_deserializer=ifs_dot_level1_dot_level1__pb2.WriteLevel1Req.FromString,
response_serializer=ifs_dot_level1_dot_level1__pb2.WriteLevel1Resp.SerializeToString,
),
'UpdateQc1Status': grpc.unary_unary_rpc_method_handler(
servicer.UpdateQc1Status,
request_deserializer=ifs_dot_level1_dot_level1__pb2.UpdateQc1StatusReq.FromString,
response_serializer=ifs_dot_level1_dot_level1__pb2.UpdateQc1StatusResp.SerializeToString,
),
'UpdateProcStatus': grpc.unary_unary_rpc_method_handler(
servicer.UpdateProcStatus,
request_deserializer=ifs_dot_level1_dot_level1__pb2.UpdateProcStatusReq.FromString,
response_serializer=ifs_dot_level1_dot_level1__pb2.UpdateProcStatusResp.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'ifs.level1.Level1Srv', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
This diff is collapsed.
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from ...msc.level1 import level1_pb2 as msc_dot_level1_dot_level1__pb2
class Level1SrvStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Find = channel.unary_unary(
'/msc.level1.Level1Srv/Find',
request_serializer=msc_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString,
response_deserializer=msc_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString,
)
self.Get = channel.unary_unary(
'/msc.level1.Level1Srv/Get',
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(
'/msc.level1.Level1Srv/Write',
request_serializer=msc_dot_level1_dot_level1__pb2.WriteLevel1Req.SerializeToString,
response_deserializer=msc_dot_level1_dot_level1__pb2.WriteLevel1Resp.FromString,
)
self.UpdateQc1Status = channel.unary_unary(
'/msc.level1.Level1Srv/UpdateQc1Status',
request_serializer=msc_dot_level1_dot_level1__pb2.UpdateQc1StatusReq.SerializeToString,
response_deserializer=msc_dot_level1_dot_level1__pb2.UpdateQc1StatusResp.FromString,
)
self.UpdateProcStatus = channel.unary_unary(
'/msc.level1.Level1Srv/UpdateProcStatus',
request_serializer=msc_dot_level1_dot_level1__pb2.UpdateProcStatusReq.SerializeToString,
response_deserializer=msc_dot_level1_dot_level1__pb2.UpdateProcStatusResp.FromString,
)
class Level1SrvServicer(object):
# missing associated documentation comment in .proto file
pass
def Find(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 Get(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 Write(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 UpdateQc1Status(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 UpdateProcStatus(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_Level1SrvServicer_to_server(servicer, server):
rpc_method_handlers = {
'Find': grpc.unary_unary_rpc_method_handler(
servicer.Find,
request_deserializer=msc_dot_level1_dot_level1__pb2.FindLevel1Req.FromString,
response_serializer=msc_dot_level1_dot_level1__pb2.FindLevel1Resp.SerializeToString,
),
'Get': grpc.unary_unary_rpc_method_handler(
servicer.Get,
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(
servicer.Write,
request_deserializer=msc_dot_level1_dot_level1__pb2.WriteLevel1Req.FromString,
response_serializer=msc_dot_level1_dot_level1__pb2.WriteLevel1Resp.SerializeToString,
),
'UpdateQc1Status': grpc.unary_unary_rpc_method_handler(
servicer.UpdateQc1Status,
request_deserializer=msc_dot_level1_dot_level1__pb2.UpdateQc1StatusReq.FromString,
response_serializer=msc_dot_level1_dot_level1__pb2.UpdateQc1StatusResp.SerializeToString,
),
'UpdateProcStatus': grpc.unary_unary_rpc_method_handler(
servicer.UpdateProcStatus,
request_deserializer=msc_dot_level1_dot_level1__pb2.UpdateProcStatusReq.FromString,
response_serializer=msc_dot_level1_dot_level1__pb2.UpdateProcStatusResp.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'msc.level1.Level1Srv', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
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