# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import proto.service_pb2 as service__pb2 class CallerStub(object): """Missing associated documentation comment in .proto file""" def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.Call = channel.unary_unary( '/main.Caller/Call', request_serializer=service__pb2.Request.SerializeToString, response_deserializer=service__pb2.Response.FromString, ) self.ViewState = channel.unary_unary( '/main.Caller/ViewState', request_serializer=service__pb2.Empty.SerializeToString, response_deserializer=service__pb2.State.FromString, ) class CallerServicer(object): """Missing associated documentation comment in .proto file""" def Call(self, request, context): """远程调用 """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ViewState(self, request, context): """状态查看 """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def add_CallerServicer_to_server(servicer, server): rpc_method_handlers = { 'Call': grpc.unary_unary_rpc_method_handler( servicer.Call, request_deserializer=service__pb2.Request.FromString, response_serializer=service__pb2.Response.SerializeToString, ), 'ViewState': grpc.unary_unary_rpc_method_handler( servicer.ViewState, request_deserializer=service__pb2.Empty.FromString, response_serializer=service__pb2.State.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'main.Caller', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. class Caller(object): """Missing associated documentation comment in .proto file""" @staticmethod def Call(request, target, options=(), channel_credentials=None, call_credentials=None, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/main.Caller/Call', service__pb2.Request.SerializeToString, service__pb2.Response.FromString, options, channel_credentials, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def ViewState(request, target, options=(), channel_credentials=None, call_credentials=None, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/main.Caller/ViewState', service__pb2.Empty.SerializeToString, service__pb2.State.FromString, options, channel_credentials, call_credentials, compression, wait_for_ready, timeout, metadata)