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

from . import MetricsService_pb2 as MetricsService__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.GetMetricsStatus = channel.unary_unary(
        '/xgt.MetricsService/GetMetricsStatus',
        request_serializer=MetricsService__pb2.MetricsStatusRequest.SerializeToString,
        response_deserializer=MetricsService__pb2.MetricsStatusResponse.FromString,
        )
    self.ClearMetrics = channel.unary_unary(
        '/xgt.MetricsService/ClearMetrics',
        request_serializer=MetricsService__pb2.ClearMetricsRequest.SerializeToString,
        response_deserializer=MetricsService__pb2.ClearMetricsResponse.FromString,
        )


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

  def GetMetricsStatus(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 ClearMetrics(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_MetricsServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetMetricsStatus': grpc.unary_unary_rpc_method_handler(
          servicer.GetMetricsStatus,
          request_deserializer=MetricsService__pb2.MetricsStatusRequest.FromString,
          response_serializer=MetricsService__pb2.MetricsStatusResponse.SerializeToString,
      ),
      'ClearMetrics': grpc.unary_unary_rpc_method_handler(
          servicer.ClearMetrics,
          request_deserializer=MetricsService__pb2.ClearMetricsRequest.FromString,
          response_serializer=MetricsService__pb2.ClearMetricsResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'xgt.MetricsService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
