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

add other data

parent 050dc0c8
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: facility/otherdata/otherdata.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from ...common import error_pb2 as common_dot_error__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"facility/otherdata/otherdata.proto\x12\x16\x64\x66s.facility.otherdata\x1a\x12\x63ommon/error.proto\"\xb7\x01\n\x0fOtherDataRecord\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0e\n\x06obs_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65tector_no\x18\x03 \x01(\t\x12\x11\n\tmodule_id\x18\x04 \x01(\t\x12\x11\n\tfile_type\x18\x05 \x01(\t\x12\x10\n\x08\x66ilename\x18\x06 \x01(\t\x12\x11\n\tfile_path\x18\x07 \x01(\t\x12\x13\n\x0b\x63reate_time\x18\x08 \x01(\t\x12\x13\n\x0bpipeline_id\x18\t \x01(\t\"\xc7\x01\n\x10\x46indOtherDataReq\x12\x0e\n\x06obs_id\x18\x01 \x01(\t\x12\x11\n\tmodule_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65tector_no\x18\x03 \x01(\t\x12\x11\n\tfile_type\x18\x04 \x01(\t\x12\x10\n\x08\x66ilename\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\x13\n\x0bpipeline_id\x18\x08 \x01(\t\x12\r\n\x05limit\x18\t \x01(\x05\"\x90\x01\n\x11\x46indOtherDataResp\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\x38\n\x07records\x18\x04 \x03(\x0b\x32\'.dfs.facility.otherdata.OtherDataRecord\"\x1d\n\x0fGetOtherDataReq\x12\n\n\x02id\x18\x01 \x01(\x03\"K\n\x10GetOtherDataResp\x12\x37\n\x06record\x18\x01 \x01(\x0b\x32\'.dfs.facility.otherdata.OtherDataRecord\"Z\n\x11WriteOtherDataReq\x12\x37\n\x06record\x18\x01 \x01(\x0b\x32\'.dfs.facility.otherdata.OtherDataRecord\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"|\n\x12WriteOtherDataResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12\x37\n\x06record\x18\x03 \x01(\x0b\x32\'.dfs.facility.otherdata.OtherDataRecord2\xad\x02\n\x0cOtherDataSrv\x12]\n\x04\x46ind\x12(.dfs.facility.otherdata.FindOtherDataReq\x1a).dfs.facility.otherdata.FindOtherDataResp\"\x00\x12Z\n\x03Get\x12\'.dfs.facility.otherdata.GetOtherDataReq\x1a(.dfs.facility.otherdata.GetOtherDataResp\"\x00\x12\x62\n\x05Write\x12).dfs.facility.otherdata.WriteOtherDataReq\x1a*.dfs.facility.otherdata.WriteOtherDataResp\"\x00(\x01\x42)Z\'cnlab.net/csst/proto/facility/otherdatab\x06proto3')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'facility.otherdata.otherdata_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'Z\'cnlab.net/csst/proto/facility/otherdata'
_OTHERDATARECORD._serialized_start=83
_OTHERDATARECORD._serialized_end=266
_FINDOTHERDATAREQ._serialized_start=269
_FINDOTHERDATAREQ._serialized_end=468
_FINDOTHERDATARESP._serialized_start=471
_FINDOTHERDATARESP._serialized_end=615
_GETOTHERDATAREQ._serialized_start=617
_GETOTHERDATAREQ._serialized_end=646
_GETOTHERDATARESP._serialized_start=648
_GETOTHERDATARESP._serialized_end=723
_WRITEOTHERDATAREQ._serialized_start=725
_WRITEOTHERDATAREQ._serialized_end=815
_WRITEOTHERDATARESP._serialized_start=817
_WRITEOTHERDATARESP._serialized_end=941
_OTHERDATASRV._serialized_start=944
_OTHERDATASRV._serialized_end=1245
# @@protoc_insertion_point(module_scope)
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from . import otherdata_pb2 as facility_dot_otherdata_dot_otherdata__pb2
class OtherDataSrvStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Find = channel.unary_unary(
'/dfs.facility.otherdata.OtherDataSrv/Find',
request_serializer=facility_dot_otherdata_dot_otherdata__pb2.FindOtherDataReq.SerializeToString,
response_deserializer=facility_dot_otherdata_dot_otherdata__pb2.FindOtherDataResp.FromString,
)
self.Get = channel.unary_unary(
'/dfs.facility.otherdata.OtherDataSrv/Get',
request_serializer=facility_dot_otherdata_dot_otherdata__pb2.GetOtherDataReq.SerializeToString,
response_deserializer=facility_dot_otherdata_dot_otherdata__pb2.GetOtherDataResp.FromString,
)
self.Write = channel.stream_unary(
'/dfs.facility.otherdata.OtherDataSrv/Write',
request_serializer=facility_dot_otherdata_dot_otherdata__pb2.WriteOtherDataReq.SerializeToString,
response_deserializer=facility_dot_otherdata_dot_otherdata__pb2.WriteOtherDataResp.FromString,
)
class OtherDataSrvServicer(object):
"""Missing associated documentation comment in .proto file."""
def Find(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 Get(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 Write(self, request_iterator, 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_OtherDataSrvServicer_to_server(servicer, server):
rpc_method_handlers = {
'Find': grpc.unary_unary_rpc_method_handler(
servicer.Find,
request_deserializer=facility_dot_otherdata_dot_otherdata__pb2.FindOtherDataReq.FromString,
response_serializer=facility_dot_otherdata_dot_otherdata__pb2.FindOtherDataResp.SerializeToString,
),
'Get': grpc.unary_unary_rpc_method_handler(
servicer.Get,
request_deserializer=facility_dot_otherdata_dot_otherdata__pb2.GetOtherDataReq.FromString,
response_serializer=facility_dot_otherdata_dot_otherdata__pb2.GetOtherDataResp.SerializeToString,
),
'Write': grpc.stream_unary_rpc_method_handler(
servicer.Write,
request_deserializer=facility_dot_otherdata_dot_otherdata__pb2.WriteOtherDataReq.FromString,
response_serializer=facility_dot_otherdata_dot_otherdata__pb2.WriteOtherDataResp.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'dfs.facility.otherdata.OtherDataSrv', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class OtherDataSrv(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def Find(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.otherdata.OtherDataSrv/Find',
facility_dot_otherdata_dot_otherdata__pb2.FindOtherDataReq.SerializeToString,
facility_dot_otherdata_dot_otherdata__pb2.FindOtherDataResp.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def Get(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.otherdata.OtherDataSrv/Get',
facility_dot_otherdata_dot_otherdata__pb2.GetOtherDataReq.SerializeToString,
facility_dot_otherdata_dot_otherdata__pb2.GetOtherDataResp.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def Write(request_iterator,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.stream_unary(request_iterator, target, '/dfs.facility.otherdata.OtherDataSrv/Write',
facility_dot_otherdata_dot_otherdata__pb2.WriteOtherDataReq.SerializeToString,
facility_dot_otherdata_dot_otherdata__pb2.WriteOtherDataResp.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
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