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

from ..common import CommonService_pb2 as common_dot_CommonService__pb2
from ..registry import CustomAttributeService_pb2 as registry_dot_CustomAttributeService__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.searchCustomAttributeDefinitions = channel.unary_unary(
        '/ai.verta.registry.CustomAttributeService/searchCustomAttributeDefinitions',
        request_serializer=registry_dot_CustomAttributeService__pb2.SearchCustomAttributeDefinitions.SerializeToString,
        response_deserializer=registry_dot_CustomAttributeService__pb2.SearchCustomAttributeDefinitions.Response.FromString,
        )
    self.setCustomAttributeDefinition = channel.unary_unary(
        '/ai.verta.registry.CustomAttributeService/setCustomAttributeDefinition',
        request_serializer=registry_dot_CustomAttributeService__pb2.SetCustomAttributeDefinition.SerializeToString,
        response_deserializer=registry_dot_CustomAttributeService__pb2.SetCustomAttributeDefinition.Response.FromString,
        )
    self.deleteCustomAttributeDefinition = channel.unary_unary(
        '/ai.verta.registry.CustomAttributeService/deleteCustomAttributeDefinition',
        request_serializer=registry_dot_CustomAttributeService__pb2.DeleteCustomAttributeDefinition.SerializeToString,
        response_deserializer=common_dot_CommonService__pb2.Empty.FromString,
        )
    self.searchCustomAttributeValues = channel.unary_unary(
        '/ai.verta.registry.CustomAttributeService/searchCustomAttributeValues',
        request_serializer=registry_dot_CustomAttributeService__pb2.SearchCustomAttributeValues.SerializeToString,
        response_deserializer=registry_dot_CustomAttributeService__pb2.SearchCustomAttributeValues.Response.FromString,
        )


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

  def searchCustomAttributeDefinitions(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 setCustomAttributeDefinition(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 deleteCustomAttributeDefinition(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 searchCustomAttributeValues(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_CustomAttributeServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'searchCustomAttributeDefinitions': grpc.unary_unary_rpc_method_handler(
          servicer.searchCustomAttributeDefinitions,
          request_deserializer=registry_dot_CustomAttributeService__pb2.SearchCustomAttributeDefinitions.FromString,
          response_serializer=registry_dot_CustomAttributeService__pb2.SearchCustomAttributeDefinitions.Response.SerializeToString,
      ),
      'setCustomAttributeDefinition': grpc.unary_unary_rpc_method_handler(
          servicer.setCustomAttributeDefinition,
          request_deserializer=registry_dot_CustomAttributeService__pb2.SetCustomAttributeDefinition.FromString,
          response_serializer=registry_dot_CustomAttributeService__pb2.SetCustomAttributeDefinition.Response.SerializeToString,
      ),
      'deleteCustomAttributeDefinition': grpc.unary_unary_rpc_method_handler(
          servicer.deleteCustomAttributeDefinition,
          request_deserializer=registry_dot_CustomAttributeService__pb2.DeleteCustomAttributeDefinition.FromString,
          response_serializer=common_dot_CommonService__pb2.Empty.SerializeToString,
      ),
      'searchCustomAttributeValues': grpc.unary_unary_rpc_method_handler(
          servicer.searchCustomAttributeValues,
          request_deserializer=registry_dot_CustomAttributeService__pb2.SearchCustomAttributeValues.FromString,
          response_serializer=registry_dot_CustomAttributeService__pb2.SearchCustomAttributeValues.Response.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.verta.registry.CustomAttributeService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
