# 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.OpenStream = channel.unary_stream( '/StreamServer/OpenStream', request_serializer=def__pb2.RequestCmd.SerializeToString, response_deserializer=def__pb2.clouds.FromString, ) self.CloseStream = channel.unary_stream( '/StreamServer/CloseStream', request_serializer=def__pb2.RequestCmd.SerializeToString, response_deserializer=def__pb2.clouds.FromString, ) class StreamServerServicer(object): """Missing associated documentation comment in .proto file.""" def OpenStream(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 CloseStream(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 = { 'OpenStream': grpc.unary_stream_rpc_method_handler( servicer.OpenStream, request_deserializer=def__pb2.RequestCmd.FromString, response_serializer=def__pb2.clouds.SerializeToString, ), 'CloseStream': grpc.unary_stream_rpc_method_handler( servicer.CloseStream, request_deserializer=def__pb2.RequestCmd.FromString, response_serializer=def__pb2.clouds.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( '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 OpenStream(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, '/StreamServer/OpenStream', def__pb2.RequestCmd.SerializeToString, def__pb2.clouds.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def CloseStream(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, '/StreamServer/CloseStream', def__pb2.RequestCmd.SerializeToString, def__pb2.clouds.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata)