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

from ..registry import DashboardService_pb2 as registry_dot_DashboardService__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.getDashboard = channel.unary_unary(
        '/ai.verta.registry.DashboardService/getDashboard',
        request_serializer=registry_dot_DashboardService__pb2.GetDashboard.SerializeToString,
        response_deserializer=registry_dot_DashboardService__pb2.GetDashboard.Response.FromString,
        )
    self.getTopModels = channel.unary_unary(
        '/ai.verta.registry.DashboardService/getTopModels',
        request_serializer=registry_dot_DashboardService__pb2.TopModels.SerializeToString,
        response_deserializer=registry_dot_DashboardService__pb2.TopModels.Response.FromString,
        )


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

  def getDashboard(self, request, context):
    """Gets information for a named dashboard. organization_id can be provided as a query parameter.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def getTopModels(self, request, context):
    """Gets a list of models sorted by model attribute
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_DashboardServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'getDashboard': grpc.unary_unary_rpc_method_handler(
          servicer.getDashboard,
          request_deserializer=registry_dot_DashboardService__pb2.GetDashboard.FromString,
          response_serializer=registry_dot_DashboardService__pb2.GetDashboard.Response.SerializeToString,
      ),
      'getTopModels': grpc.unary_unary_rpc_method_handler(
          servicer.getTopModels,
          request_deserializer=registry_dot_DashboardService__pb2.TopModels.FromString,
          response_serializer=registry_dot_DashboardService__pb2.TopModels.Response.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.verta.registry.DashboardService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
