123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
- """Client and server classes corresponding to protobuf-defined services."""
- import grpc
- import def_pb2 as def__pb2
- class StreamServerStub(object):
- """Missing associated documentation comment in .proto file."""
- def __init__(self, channel):
- """Constructor.
- Args:
- channel: A grpc.Channel.
- """
- self.OpenImageStream = channel.unary_stream(
- '/JetStream.StreamServer/OpenImageStream',
- request_serializer=def__pb2.RequestCmd.SerializeToString,
- response_deserializer=def__pb2.ResImage.FromString,
- )
- self.OpenMeasureDataStream = channel.unary_stream(
- '/JetStream.StreamServer/OpenMeasureDataStream',
- request_serializer=def__pb2.RequestCmd.SerializeToString,
- response_deserializer=def__pb2.MeasureInfo.FromString,
- )
- self.CloseImageStream = channel.unary_unary(
- '/JetStream.StreamServer/CloseImageStream',
- request_serializer=def__pb2.RequestCmd.SerializeToString,
- response_deserializer=def__pb2.Response.FromString,
- )
- self.CloseMeasureDataStream = channel.unary_unary(
- '/JetStream.StreamServer/CloseMeasureDataStream',
- request_serializer=def__pb2.RequestCmd.SerializeToString,
- response_deserializer=def__pb2.Response.FromString,
- )
- self.GetCloud = channel.unary_unary(
- '/JetStream.StreamServer/GetCloud',
- request_serializer=def__pb2.RequestCmd.SerializeToString,
- response_deserializer=def__pb2.ResCloud.FromString,
- )
- self.GetImage = channel.unary_unary(
- '/JetStream.StreamServer/GetImage',
- request_serializer=def__pb2.RequestCmd.SerializeToString,
- response_deserializer=def__pb2.ResImage.FromString,
- )
- self.setTofTransformation = channel.unary_unary(
- '/JetStream.StreamServer/setTofTransformation',
- request_serializer=def__pb2.RequestCmd.SerializeToString,
- response_deserializer=def__pb2.Response.FromString,
- )
- self.saveTofTransformation = channel.unary_unary(
- '/JetStream.StreamServer/saveTofTransformation',
- request_serializer=def__pb2.RequestCmd.SerializeToString,
- response_deserializer=def__pb2.Response.FromString,
- )
- class StreamServerServicer(object):
- """Missing associated documentation comment in .proto file."""
- def OpenImageStream(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 OpenMeasureDataStream(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 CloseImageStream(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 CloseMeasureDataStream(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 GetCloud(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 GetImage(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 setTofTransformation(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 saveTofTransformation(self, request, context):
- """Missing associated documentation comment in .proto file."""
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
- context.set_details('Method not implemented!')
- raise NotImplementedError('Method not implemented!')
- def add_StreamServerServicer_to_server(servicer, server):
- rpc_method_handlers = {
- 'OpenImageStream': grpc.unary_stream_rpc_method_handler(
- servicer.OpenImageStream,
- request_deserializer=def__pb2.RequestCmd.FromString,
- response_serializer=def__pb2.ResImage.SerializeToString,
- ),
- 'OpenMeasureDataStream': grpc.unary_stream_rpc_method_handler(
- servicer.OpenMeasureDataStream,
- request_deserializer=def__pb2.RequestCmd.FromString,
- response_serializer=def__pb2.MeasureInfo.SerializeToString,
- ),
- 'CloseImageStream': grpc.unary_unary_rpc_method_handler(
- servicer.CloseImageStream,
- request_deserializer=def__pb2.RequestCmd.FromString,
- response_serializer=def__pb2.Response.SerializeToString,
- ),
- 'CloseMeasureDataStream': grpc.unary_unary_rpc_method_handler(
- servicer.CloseMeasureDataStream,
- request_deserializer=def__pb2.RequestCmd.FromString,
- response_serializer=def__pb2.Response.SerializeToString,
- ),
- 'GetCloud': grpc.unary_unary_rpc_method_handler(
- servicer.GetCloud,
- request_deserializer=def__pb2.RequestCmd.FromString,
- response_serializer=def__pb2.ResCloud.SerializeToString,
- ),
- 'GetImage': grpc.unary_unary_rpc_method_handler(
- servicer.GetImage,
- request_deserializer=def__pb2.RequestCmd.FromString,
- response_serializer=def__pb2.ResImage.SerializeToString,
- ),
- 'setTofTransformation': grpc.unary_unary_rpc_method_handler(
- servicer.setTofTransformation,
- request_deserializer=def__pb2.RequestCmd.FromString,
- response_serializer=def__pb2.Response.SerializeToString,
- ),
- 'saveTofTransformation': grpc.unary_unary_rpc_method_handler(
- servicer.saveTofTransformation,
- request_deserializer=def__pb2.RequestCmd.FromString,
- response_serializer=def__pb2.Response.SerializeToString,
- ),
- }
- generic_handler = grpc.method_handlers_generic_handler(
- 'JetStream.StreamServer', rpc_method_handlers)
- server.add_generic_rpc_handlers((generic_handler,))
- # This class is part of an EXPERIMENTAL API.
- class StreamServer(object):
- """Missing associated documentation comment in .proto file."""
- @staticmethod
- def OpenImageStream(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_stream(request, target, '/JetStream.StreamServer/OpenImageStream',
- def__pb2.RequestCmd.SerializeToString,
- def__pb2.ResImage.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def OpenMeasureDataStream(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_stream(request, target, '/JetStream.StreamServer/OpenMeasureDataStream',
- def__pb2.RequestCmd.SerializeToString,
- def__pb2.MeasureInfo.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def CloseImageStream(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, '/JetStream.StreamServer/CloseImageStream',
- def__pb2.RequestCmd.SerializeToString,
- def__pb2.Response.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def CloseMeasureDataStream(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, '/JetStream.StreamServer/CloseMeasureDataStream',
- def__pb2.RequestCmd.SerializeToString,
- def__pb2.Response.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def GetCloud(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, '/JetStream.StreamServer/GetCloud',
- def__pb2.RequestCmd.SerializeToString,
- def__pb2.ResCloud.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def GetImage(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, '/JetStream.StreamServer/GetImage',
- def__pb2.RequestCmd.SerializeToString,
- def__pb2.ResImage.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def setTofTransformation(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, '/JetStream.StreamServer/setTofTransformation',
- def__pb2.RequestCmd.SerializeToString,
- def__pb2.Response.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def saveTofTransformation(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, '/JetStream.StreamServer/saveTofTransformation',
- def__pb2.RequestCmd.SerializeToString,
- def__pb2.Response.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|