# 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.Detect = channel.unary_unary( '/JetStream.StreamServer/Detect', request_serializer=def__pb2.RequestCmd.SerializeToString, response_deserializer=def__pb2.ResFrame.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, ) 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 Detect(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 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, ), 'Detect': grpc.unary_unary_rpc_method_handler( servicer.Detect, request_deserializer=def__pb2.RequestCmd.FromString, response_serializer=def__pb2.ResFrame.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, ), } 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 Detect(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/Detect', def__pb2.RequestCmd.SerializeToString, def__pb2.ResFrame.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)