<reponame>nkashy1/tensorio-models
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from . import repository_pb2 as repository__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.Healthz = channel.unary_unary(
        '/api.Repository/Healthz',
        request_serializer=repository__pb2.HealthCheckRequest.SerializeToString,
        response_deserializer=repository__pb2.HealthCheckResponse.FromString,
        )
    self.Config = channel.unary_unary(
        '/api.Repository/Config',
        request_serializer=repository__pb2.ConfigRequest.SerializeToString,
        response_deserializer=repository__pb2.ConfigResponse.FromString,
        )
    self.ListModels = channel.unary_unary(
        '/api.Repository/ListModels',
        request_serializer=repository__pb2.ListModelsRequest.SerializeToString,
        response_deserializer=repository__pb2.ListModelsResponse.FromString,
        )
    self.CreateModel = channel.unary_unary(
        '/api.Repository/CreateModel',
        request_serializer=repository__pb2.CreateModelRequest.SerializeToString,
        response_deserializer=repository__pb2.CreateModelResponse.FromString,
        )
    self.GetModel = channel.unary_unary(
        '/api.Repository/GetModel',
        request_serializer=repository__pb2.GetModelRequest.SerializeToString,
        response_deserializer=repository__pb2.GetModelResponse.FromString,
        )
    self.UpdateModel = channel.unary_unary(
        '/api.Repository/UpdateModel',
        request_serializer=repository__pb2.UpdateModelRequest.SerializeToString,
        response_deserializer=repository__pb2.UpdateModelResponse.FromString,
        )
    self.ListHyperparameters = channel.unary_unary(
        '/api.Repository/ListHyperparameters',
        request_serializer=repository__pb2.ListHyperparametersRequest.SerializeToString,
        response_deserializer=repository__pb2.ListHyperparametersResponse.FromString,
        )
    self.CreateHyperparameters = channel.unary_unary(
        '/api.Repository/CreateHyperparameters',
        request_serializer=repository__pb2.CreateHyperparametersRequest.SerializeToString,
        response_deserializer=repository__pb2.CreateHyperparametersResponse.FromString,
        )
    self.GetHyperparameters = channel.unary_unary(
        '/api.Repository/GetHyperparameters',
        request_serializer=repository__pb2.GetHyperparametersRequest.SerializeToString,
        response_deserializer=repository__pb2.GetHyperparametersResponse.FromString,
        )
    self.UpdateHyperparameters = channel.unary_unary(
        '/api.Repository/UpdateHyperparameters',
        request_serializer=repository__pb2.UpdateHyperparametersRequest.SerializeToString,
        response_deserializer=repository__pb2.UpdateHyperparametersResponse.FromString,
        )
    self.ListCheckpoints = channel.unary_unary(
        '/api.Repository/ListCheckpoints',
        request_serializer=repository__pb2.ListCheckpointsRequest.SerializeToString,
        response_deserializer=repository__pb2.ListCheckpointsResponse.FromString,
        )
    self.CreateCheckpoint = channel.unary_unary(
        '/api.Repository/CreateCheckpoint',
        request_serializer=repository__pb2.CreateCheckpointRequest.SerializeToString,
        response_deserializer=repository__pb2.CreateCheckpointResponse.FromString,
        )
    self.GetCheckpoint = channel.unary_unary(
        '/api.Repository/GetCheckpoint',
        request_serializer=repository__pb2.GetCheckpointRequest.SerializeToString,
        response_deserializer=repository__pb2.GetCheckpointResponse.FromString,
        )


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

  def Healthz(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 Config(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 ListModels(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 CreateModel(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 GetModel(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 UpdateModel(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 ListHyperparameters(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 CreateHyperparameters(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 GetHyperparameters(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 UpdateHyperparameters(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 ListCheckpoints(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 CreateCheckpoint(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 GetCheckpoint(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_RepositoryServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'Healthz': grpc.unary_unary_rpc_method_handler(
          servicer.Healthz,
          request_deserializer=repository__pb2.HealthCheckRequest.FromString,
          response_serializer=repository__pb2.HealthCheckResponse.SerializeToString,
      ),
      'Config': grpc.unary_unary_rpc_method_handler(
          servicer.Config,
          request_deserializer=repository__pb2.ConfigRequest.FromString,
          response_serializer=repository__pb2.ConfigResponse.SerializeToString,
      ),
      'ListModels': grpc.unary_unary_rpc_method_handler(
          servicer.ListModels,
          request_deserializer=repository__pb2.ListModelsRequest.FromString,
          response_serializer=repository__pb2.ListModelsResponse.SerializeToString,
      ),
      'CreateModel': grpc.unary_unary_rpc_method_handler(
          servicer.CreateModel,
          request_deserializer=repository__pb2.CreateModelRequest.FromString,
          response_serializer=repository__pb2.CreateModelResponse.SerializeToString,
      ),
      'GetModel': grpc.unary_unary_rpc_method_handler(
          servicer.GetModel,
          request_deserializer=repository__pb2.GetModelRequest.FromString,
          response_serializer=repository__pb2.GetModelResponse.SerializeToString,
      ),
      'UpdateModel': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateModel,
          request_deserializer=repository__pb2.UpdateModelRequest.FromString,
          response_serializer=repository__pb2.UpdateModelResponse.SerializeToString,
      ),
      'ListHyperparameters': grpc.unary_unary_rpc_method_handler(
          servicer.ListHyperparameters,
          request_deserializer=repository__pb2.ListHyperparametersRequest.FromString,
          response_serializer=repository__pb2.ListHyperparametersResponse.SerializeToString,
      ),
      'CreateHyperparameters': grpc.unary_unary_rpc_method_handler(
          servicer.CreateHyperparameters,
          request_deserializer=repository__pb2.CreateHyperparametersRequest.FromString,
          response_serializer=repository__pb2.CreateHyperparametersResponse.SerializeToString,
      ),
      'GetHyperparameters': grpc.unary_unary_rpc_method_handler(
          servicer.GetHyperparameters,
          request_deserializer=repository__pb2.GetHyperparametersRequest.FromString,
          response_serializer=repository__pb2.GetHyperparametersResponse.SerializeToString,
      ),
      'UpdateHyperparameters': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateHyperparameters,
          request_deserializer=repository__pb2.UpdateHyperparametersRequest.FromString,
          response_serializer=repository__pb2.UpdateHyperparametersResponse.SerializeToString,
      ),
      'ListCheckpoints': grpc.unary_unary_rpc_method_handler(
          servicer.ListCheckpoints,
          request_deserializer=repository__pb2.ListCheckpointsRequest.FromString,
          response_serializer=repository__pb2.ListCheckpointsResponse.SerializeToString,
      ),
      'CreateCheckpoint': grpc.unary_unary_rpc_method_handler(
          servicer.CreateCheckpoint,
          request_deserializer=repository__pb2.CreateCheckpointRequest.FromString,
          response_serializer=repository__pb2.CreateCheckpointResponse.SerializeToString,
      ),
      'GetCheckpoint': grpc.unary_unary_rpc_method_handler(
          servicer.GetCheckpoint,
          request_deserializer=repository__pb2.GetCheckpointRequest.FromString,
          response_serializer=repository__pb2.GetCheckpointResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'api.Repository', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))

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

from . import repository_pb2 as repository__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.Healthz = channel.unary_unary(
        '/api.Repository/Healthz',
        request_serializer=repository__pb2.HealthCheckRequest.SerializeToString,
        response_deserializer=repository__pb2.HealthCheckResponse.FromString,
        )
    self.Config = channel.unary_unary(
        '/api.Repository/Config',
        request_serializer=repository__pb2.ConfigRequest.SerializeToString,
        response_deserializer=repository__pb2.ConfigResponse.FromString,
        )
    self.ListModels = channel.unary_unary(
        '/api.Repository/ListModels',
        request_serializer=repository__pb2.ListModelsRequest.SerializeToString,
        response_deserializer=repository__pb2.ListModelsResponse.FromString,
        )
    self.CreateModel = channel.unary_unary(
        '/api.Repository/CreateModel',
        request_serializer=repository__pb2.CreateModelRequest.SerializeToString,
        response_deserializer=repository__pb2.CreateModelResponse.FromString,
        )
    self.GetModel = channel.unary_unary(
        '/api.Repository/GetModel',
        request_serializer=repository__pb2.GetModelRequest.SerializeToString,
        response_deserializer=repository__pb2.GetModelResponse.FromString,
        )
    self.UpdateModel = channel.unary_unary(
        '/api.Repository/UpdateModel',
        request_serializer=repository__pb2.UpdateModelRequest.SerializeToString,
        response_deserializer=repository__pb2.UpdateModelResponse.FromString,
        )
    self.ListHyperparameters = channel.unary_unary(
        '/api.Repository/ListHyperparameters',
        request_serializer=repository__pb2.ListHyperparametersRequest.SerializeToString,
        response_deserializer=repository__pb2.ListHyperparametersResponse.FromString,
        )
    self.CreateHyperparameters = channel.unary_unary(
        '/api.Repository/CreateHyperparameters',
        request_serializer=repository__pb2.CreateHyperparametersRequest.SerializeToString,
        response_deserializer=repository__pb2.CreateHyperparametersResponse.FromString,
        )
    self.GetHyperparameters = channel.unary_unary(
        '/api.Repository/GetHyperparameters',
        request_serializer=repository__pb2.GetHyperparametersRequest.SerializeToString,
        response_deserializer=repository__pb2.GetHyperparametersResponse.FromString,
        )
    self.UpdateHyperparameters = channel.unary_unary(
        '/api.Repository/UpdateHyperparameters',
        request_serializer=repository__pb2.UpdateHyperparametersRequest.SerializeToString,
        response_deserializer=repository__pb2.UpdateHyperparametersResponse.FromString,
        )
    self.ListCheckpoints = channel.unary_unary(
        '/api.Repository/ListCheckpoints',
        request_serializer=repository__pb2.ListCheckpointsRequest.SerializeToString,
        response_deserializer=repository__pb2.ListCheckpointsResponse.FromString,
        )
    self.CreateCheckpoint = channel.unary_unary(
        '/api.Repository/CreateCheckpoint',
        request_serializer=repository__pb2.CreateCheckpointRequest.SerializeToString,
        response_deserializer=repository__pb2.CreateCheckpointResponse.FromString,
        )
    self.GetCheckpoint = channel.unary_unary(
        '/api.Repository/GetCheckpoint',
        request_serializer=repository__pb2.GetCheckpointRequest.SerializeToString,
        response_deserializer=repository__pb2.GetCheckpointResponse.FromString,
        )


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

  def Healthz(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 Config(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 ListModels(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 CreateModel(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 GetModel(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 UpdateModel(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 ListHyperparameters(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 CreateHyperparameters(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 GetHyperparameters(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 UpdateHyperparameters(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 ListCheckpoints(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 CreateCheckpoint(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 GetCheckpoint(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_RepositoryServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'Healthz': grpc.unary_unary_rpc_method_handler(
          servicer.Healthz,
          request_deserializer=repository__pb2.HealthCheckRequest.FromString,
          response_serializer=repository__pb2.HealthCheckResponse.SerializeToString,
      ),
      'Config': grpc.unary_unary_rpc_method_handler(
          servicer.Config,
          request_deserializer=repository__pb2.ConfigRequest.FromString,
          response_serializer=repository__pb2.ConfigResponse.SerializeToString,
      ),
      'ListModels': grpc.unary_unary_rpc_method_handler(
          servicer.ListModels,
          request_deserializer=repository__pb2.ListModelsRequest.FromString,
          response_serializer=repository__pb2.ListModelsResponse.SerializeToString,
      ),
      'CreateModel': grpc.unary_unary_rpc_method_handler(
          servicer.CreateModel,
          request_deserializer=repository__pb2.CreateModelRequest.FromString,
          response_serializer=repository__pb2.CreateModelResponse.SerializeToString,
      ),
      'GetModel': grpc.unary_unary_rpc_method_handler(
          servicer.GetModel,
          request_deserializer=repository__pb2.GetModelRequest.FromString,
          response_serializer=repository__pb2.GetModelResponse.SerializeToString,
      ),
      'UpdateModel': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateModel,
          request_deserializer=repository__pb2.UpdateModelRequest.FromString,
          response_serializer=repository__pb2.UpdateModelResponse.SerializeToString,
      ),
      'ListHyperparameters': grpc.unary_unary_rpc_method_handler(
          servicer.ListHyperparameters,
          request_deserializer=repository__pb2.ListHyperparametersRequest.FromString,
          response_serializer=repository__pb2.ListHyperparametersResponse.SerializeToString,
      ),
      'CreateHyperparameters': grpc.unary_unary_rpc_method_handler(
          servicer.CreateHyperparameters,
          request_deserializer=repository__pb2.CreateHyperparametersRequest.FromString,
          response_serializer=repository__pb2.CreateHyperparametersResponse.SerializeToString,
      ),
      'GetHyperparameters': grpc.unary_unary_rpc_method_handler(
          servicer.GetHyperparameters,
          request_deserializer=repository__pb2.GetHyperparametersRequest.FromString,
          response_serializer=repository__pb2.GetHyperparametersResponse.SerializeToString,
      ),
      'UpdateHyperparameters': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateHyperparameters,
          request_deserializer=repository__pb2.UpdateHyperparametersRequest.FromString,
          response_serializer=repository__pb2.UpdateHyperparametersResponse.SerializeToString,
      ),
      'ListCheckpoints': grpc.unary_unary_rpc_method_handler(
          servicer.ListCheckpoints,
          request_deserializer=repository__pb2.ListCheckpointsRequest.FromString,
          response_serializer=repository__pb2.ListCheckpointsResponse.SerializeToString,
      ),
      'CreateCheckpoint': grpc.unary_unary_rpc_method_handler(
          servicer.CreateCheckpoint,
          request_deserializer=repository__pb2.CreateCheckpointRequest.FromString,
          response_serializer=repository__pb2.CreateCheckpointResponse.SerializeToString,
      ),
      'GetCheckpoint': grpc.unary_unary_rpc_method_handler(
          servicer.GetCheckpoint,
          request_deserializer=repository__pb2.GetCheckpointRequest.FromString,
          response_serializer=repository__pb2.GetCheckpointResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'api.Repository', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! # missing associated documentation comment in .proto file Constructor.      Args:       channel: A grpc.Channel. # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file