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

from ..monitoring import Labels_pb2 as monitoring_dot_Labels__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.findLabels = channel.unary_unary(
        '/ai.verta.monitoring.LabelService/findLabels',
        request_serializer=monitoring_dot_Labels__pb2.FindSampleLabelsRequest.SerializeToString,
        response_deserializer=monitoring_dot_Labels__pb2.FindSampleLabelsRequest.Response.FromString,
        )
    self.findLabelValues = channel.unary_unary(
        '/ai.verta.monitoring.LabelService/findLabelValues',
        request_serializer=monitoring_dot_Labels__pb2.FindSampleLabelValuesRequest.SerializeToString,
        response_deserializer=monitoring_dot_Labels__pb2.FindSampleLabelValuesRequest.Response.FromString,
        )


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

  def findLabels(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 findLabelValues(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_LabelServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'findLabels': grpc.unary_unary_rpc_method_handler(
          servicer.findLabels,
          request_deserializer=monitoring_dot_Labels__pb2.FindSampleLabelsRequest.FromString,
          response_serializer=monitoring_dot_Labels__pb2.FindSampleLabelsRequest.Response.SerializeToString,
      ),
      'findLabelValues': grpc.unary_unary_rpc_method_handler(
          servicer.findLabelValues,
          request_deserializer=monitoring_dot_Labels__pb2.FindSampleLabelValuesRequest.FromString,
          response_serializer=monitoring_dot_Labels__pb2.FindSampleLabelValuesRequest.Response.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.verta.monitoring.LabelService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
