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

import rpc_pb2 as rpc__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.Parse = channel.unary_unary(
        '/udelnlp.BllipParser/Parse',
        request_serializer=rpc__pb2.BllipParserRequest.SerializeToString,
        response_deserializer=rpc__pb2.BllipParserResponse.FromString,
        )


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

  def Parse(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_BllipParserServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'Parse': grpc.unary_unary_rpc_method_handler(
          servicer.Parse,
          request_deserializer=rpc__pb2.BllipParserRequest.FromString,
          response_serializer=rpc__pb2.BllipParserResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'udelnlp.BllipParser', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.ProcessDocument = channel.unary_unary(
        '/udelnlp.NlpService/ProcessDocument',
        request_serializer=rpc__pb2.Request.SerializeToString,
        response_deserializer=rpc__pb2.Response.FromString,
        )
    self.EdgProcessDocument = channel.unary_unary(
        '/udelnlp.NlpService/EdgProcessDocument',
        request_serializer=rpc__pb2.EdgRequest.SerializeToString,
        response_deserializer=rpc__pb2.Response.FromString,
        )


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

  def ProcessDocument(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 EdgProcessDocument(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_NlpServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'ProcessDocument': grpc.unary_unary_rpc_method_handler(
          servicer.ProcessDocument,
          request_deserializer=rpc__pb2.Request.FromString,
          response_serializer=rpc__pb2.Response.SerializeToString,
      ),
      'EdgProcessDocument': grpc.unary_unary_rpc_method_handler(
          servicer.EdgProcessDocument,
          request_deserializer=rpc__pb2.EdgRequest.FromString,
          response_serializer=rpc__pb2.Response.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'udelnlp.NlpService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
