# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from easyfl.pb import server_service_pb2 as easyfl_dot_pb_dot_server__service__pb2 class ServerServiceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.Upload = channel.unary_unary( '/easyfl.pb.ServerService/Upload', request_serializer=easyfl_dot_pb_dot_server__service__pb2.UploadRequest.SerializeToString, response_deserializer=easyfl_dot_pb_dot_server__service__pb2.UploadResponse.FromString, ) self.Run = channel.unary_unary( '/easyfl.pb.ServerService/Run', request_serializer=easyfl_dot_pb_dot_server__service__pb2.RunRequest.SerializeToString, response_deserializer=easyfl_dot_pb_dot_server__service__pb2.RunResponse.FromString, ) self.Stop = channel.unary_unary( '/easyfl.pb.ServerService/Stop', request_serializer=easyfl_dot_pb_dot_server__service__pb2.StopRequest.SerializeToString, response_deserializer=easyfl_dot_pb_dot_server__service__pb2.StopResponse.FromString, ) class ServerServiceServicer(object): """Missing associated documentation comment in .proto file.""" def Upload(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 Run(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 Stop(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_ServerServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'Upload': grpc.unary_unary_rpc_method_handler( servicer.Upload, request_deserializer=easyfl_dot_pb_dot_server__service__pb2.UploadRequest.FromString, response_serializer=easyfl_dot_pb_dot_server__service__pb2.UploadResponse.SerializeToString, ), 'Run': grpc.unary_unary_rpc_method_handler( servicer.Run, request_deserializer=easyfl_dot_pb_dot_server__service__pb2.RunRequest.FromString, response_serializer=easyfl_dot_pb_dot_server__service__pb2.RunResponse.SerializeToString, ), 'Stop': grpc.unary_unary_rpc_method_handler( servicer.Stop, request_deserializer=easyfl_dot_pb_dot_server__service__pb2.StopRequest.FromString, response_serializer=easyfl_dot_pb_dot_server__service__pb2.StopResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'easyfl.pb.ServerService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. class ServerService(object): """Missing associated documentation comment in .proto file.""" @staticmethod def Upload(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, '/easyfl.pb.ServerService/Upload', easyfl_dot_pb_dot_server__service__pb2.UploadRequest.SerializeToString, easyfl_dot_pb_dot_server__service__pb2.UploadResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def Run(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, '/easyfl.pb.ServerService/Run', easyfl_dot_pb_dot_server__service__pb2.RunRequest.SerializeToString, easyfl_dot_pb_dot_server__service__pb2.RunResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def Stop(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, '/easyfl.pb.ServerService/Stop', easyfl_dot_pb_dot_server__service__pb2.StopRequest.SerializeToString, easyfl_dot_pb_dot_server__service__pb2.StopResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata)