# 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 ChecklistService_pb2 as registry_dot_ChecklistService__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.searchChecklistItemValues = channel.unary_unary(
        '/ai.verta.registry.ChecklistService/searchChecklistItemValues',
        request_serializer=registry_dot_ChecklistService__pb2.SearchChecklistItemValues.SerializeToString,
        response_deserializer=registry_dot_ChecklistService__pb2.SearchChecklistItemValues.Response.FromString,
        )
    self.searchChecklistTemplates = channel.unary_unary(
        '/ai.verta.registry.ChecklistService/searchChecklistTemplates',
        request_serializer=registry_dot_ChecklistService__pb2.SearchChecklistTemplates.SerializeToString,
        response_deserializer=registry_dot_ChecklistService__pb2.SearchChecklistTemplates.Response.FromString,
        )
    self.searchChecklistTemplatesV1 = channel.unary_unary(
        '/ai.verta.registry.ChecklistService/searchChecklistTemplatesV1',
        request_serializer=registry_dot_ChecklistService__pb2.SearchChecklistTemplates.SerializeToString,
        response_deserializer=registry_dot_ChecklistService__pb2.SearchChecklistTemplates.Response.FromString,
        )
    self.setChecklistItemValues = channel.unary_unary(
        '/ai.verta.registry.ChecklistService/setChecklistItemValues',
        request_serializer=registry_dot_ChecklistService__pb2.SetChecklistItemValues.SerializeToString,
        response_deserializer=registry_dot_ChecklistService__pb2.SetChecklistItemValues.Response.FromString,
        )
    self.setChecklistTemplate = channel.unary_unary(
        '/ai.verta.registry.ChecklistService/setChecklistTemplate',
        request_serializer=registry_dot_ChecklistService__pb2.SetChecklistTemplate.SerializeToString,
        response_deserializer=registry_dot_ChecklistService__pb2.SetChecklistTemplate.Response.FromString,
        )
    self.deleteChecklistTemplate = channel.unary_unary(
        '/ai.verta.registry.ChecklistService/deleteChecklistTemplate',
        request_serializer=registry_dot_ChecklistService__pb2.DeleteChecklistTemplate.SerializeToString,
        response_deserializer=common_dot_CommonService__pb2.Empty.FromString,
        )


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

  def searchChecklistItemValues(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 searchChecklistTemplates(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 searchChecklistTemplatesV1(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 setChecklistItemValues(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 setChecklistTemplate(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 deleteChecklistTemplate(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_ChecklistServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'searchChecklistItemValues': grpc.unary_unary_rpc_method_handler(
          servicer.searchChecklistItemValues,
          request_deserializer=registry_dot_ChecklistService__pb2.SearchChecklistItemValues.FromString,
          response_serializer=registry_dot_ChecklistService__pb2.SearchChecklistItemValues.Response.SerializeToString,
      ),
      'searchChecklistTemplates': grpc.unary_unary_rpc_method_handler(
          servicer.searchChecklistTemplates,
          request_deserializer=registry_dot_ChecklistService__pb2.SearchChecklistTemplates.FromString,
          response_serializer=registry_dot_ChecklistService__pb2.SearchChecklistTemplates.Response.SerializeToString,
      ),
      'searchChecklistTemplatesV1': grpc.unary_unary_rpc_method_handler(
          servicer.searchChecklistTemplatesV1,
          request_deserializer=registry_dot_ChecklistService__pb2.SearchChecklistTemplates.FromString,
          response_serializer=registry_dot_ChecklistService__pb2.SearchChecklistTemplates.Response.SerializeToString,
      ),
      'setChecklistItemValues': grpc.unary_unary_rpc_method_handler(
          servicer.setChecklistItemValues,
          request_deserializer=registry_dot_ChecklistService__pb2.SetChecklistItemValues.FromString,
          response_serializer=registry_dot_ChecklistService__pb2.SetChecklistItemValues.Response.SerializeToString,
      ),
      'setChecklistTemplate': grpc.unary_unary_rpc_method_handler(
          servicer.setChecklistTemplate,
          request_deserializer=registry_dot_ChecklistService__pb2.SetChecklistTemplate.FromString,
          response_serializer=registry_dot_ChecklistService__pb2.SetChecklistTemplate.Response.SerializeToString,
      ),
      'deleteChecklistTemplate': grpc.unary_unary_rpc_method_handler(
          servicer.deleteChecklistTemplate,
          request_deserializer=registry_dot_ChecklistService__pb2.DeleteChecklistTemplate.FromString,
          response_serializer=common_dot_CommonService__pb2.Empty.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.verta.registry.ChecklistService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
