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

import data_pb2 as data__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.run = channel.unary_unary(
        '/RPC/run',
        request_serializer=data__pb2.ReqData.SerializeToString,
        response_deserializer=data__pb2.ResData.FromString,
        )


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

  def run(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_RPCServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'run': grpc.unary_unary_rpc_method_handler(
          servicer.run,
          request_deserializer=data__pb2.ReqData.FromString,
          response_serializer=data__pb2.ResData.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'RPC', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
