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

from ..uac import ResourceV2_pb2 as uac_dot_ResourceV2__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.getResources = channel.unary_unary(
        '/ai.verta.uac.ResourceServiceV2/getResources',
        request_serializer=uac_dot_ResourceV2__pb2.GetResourcesV2.SerializeToString,
        response_deserializer=uac_dot_ResourceV2__pb2.GetResourcesV2.Response.FromString,
        )


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

  def getResources(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_ResourceServiceV2Servicer_to_server(servicer, server):
  rpc_method_handlers = {
      'getResources': grpc.unary_unary_rpc_method_handler(
          servicer.getResources,
          request_deserializer=uac_dot_ResourceV2__pb2.GetResourcesV2.FromString,
          response_serializer=uac_dot_ResourceV2__pb2.GetResourcesV2.Response.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.verta.uac.ResourceServiceV2', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
