# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from mmpredict_grpc import mmpredict_pb2 as mmpredict__grpc_dot_mmpredict__pb2


class PredictRequestorStub(object):
  # missing associated documentation comment in .proto file
  pass

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.SendPredictRequest = channel.unary_unary(
        '/mmpredict.PredictRequestor/SendPredictRequest',
        request_serializer=mmpredict__grpc_dot_mmpredict__pb2.PredictRequest.SerializeToString,
        response_deserializer=mmpredict__grpc_dot_mmpredict__pb2.PredictResponse.FromString,
        )
    self.SendPreprocessRequest = channel.unary_unary(
        '/mmpredict.PredictRequestor/SendPreprocessRequest',
        request_serializer=mmpredict__grpc_dot_mmpredict__pb2.PredictRequest.SerializeToString,
        response_deserializer=mmpredict__grpc_dot_mmpredict__pb2.PredictResponse.FromString,
        )
    self.SendBatchPredictRequest = channel.unary_unary(
        '/mmpredict.PredictRequestor/SendBatchPredictRequest',
        request_serializer=mmpredict__grpc_dot_mmpredict__pb2.BatchPredictRequest.SerializeToString,
        response_deserializer=mmpredict__grpc_dot_mmpredict__pb2.PredictResponse.FromString,
        )


class PredictRequestorServicer(object):
  # missing associated documentation comment in .proto file
  pass

  def SendPredictRequest(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SendPreprocessRequest(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SendBatchPredictRequest(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_PredictRequestorServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'SendPredictRequest': grpc.unary_unary_rpc_method_handler(
          servicer.SendPredictRequest,
          request_deserializer=mmpredict__grpc_dot_mmpredict__pb2.PredictRequest.FromString,
          response_serializer=mmpredict__grpc_dot_mmpredict__pb2.PredictResponse.SerializeToString,
      ),
      'SendPreprocessRequest': grpc.unary_unary_rpc_method_handler(
          servicer.SendPreprocessRequest,
          request_deserializer=mmpredict__grpc_dot_mmpredict__pb2.PredictRequest.FromString,
          response_serializer=mmpredict__grpc_dot_mmpredict__pb2.PredictResponse.SerializeToString,
      ),
      'SendBatchPredictRequest': grpc.unary_unary_rpc_method_handler(
          servicer.SendBatchPredictRequest,
          request_deserializer=mmpredict__grpc_dot_mmpredict__pb2.BatchPredictRequest.FromString,
          response_serializer=mmpredict__grpc_dot_mmpredict__pb2.PredictResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'mmpredict.PredictRequestor', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
