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

from result import result_pb2 as result_dot_result__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.SendResult = channel.unary_unary(
        '/result.ResultService/SendResult',
        request_serializer=result_dot_result__pb2.Result.SerializeToString,
        response_deserializer=result_dot_result__pb2.ResultResponse.FromString,
        )


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

  def SendResult(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_ResultServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'SendResult': grpc.unary_unary_rpc_method_handler(
          servicer.SendResult,
          request_deserializer=result_dot_result__pb2.Result.FromString,
          response_serializer=result_dot_result__pb2.ResultResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'result.ResultService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
