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

from ..uac import ServiceAccount_pb2 as uac_dot_ServiceAccount__pb2
from ..uac import UACService_pb2 as uac_dot_UACService__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.createServiceAccount = channel.unary_unary(
        '/ai.verta.uac.ServiceAccountService/createServiceAccount',
        request_serializer=uac_dot_ServiceAccount__pb2.CreateServiceAccountRequest.SerializeToString,
        response_deserializer=uac_dot_ServiceAccount__pb2.ServiceAccount.FromString,
        )
    self.findServiceAccount = channel.unary_unary(
        '/ai.verta.uac.ServiceAccountService/findServiceAccount',
        request_serializer=uac_dot_ServiceAccount__pb2.FindServiceAccountRequest.SerializeToString,
        response_deserializer=uac_dot_ServiceAccount__pb2.FindServiceAccountRequest.Response.FromString,
        )
    self.deleteServiceAccount = channel.unary_unary(
        '/ai.verta.uac.ServiceAccountService/deleteServiceAccount',
        request_serializer=uac_dot_ServiceAccount__pb2.DeleteServiceAccountRequest.SerializeToString,
        response_deserializer=uac_dot_UACService__pb2.Empty.FromString,
        )
    self.updateServiceAccount = channel.unary_unary(
        '/ai.verta.uac.ServiceAccountService/updateServiceAccount',
        request_serializer=uac_dot_ServiceAccount__pb2.UpdateServiceAccountRequest.SerializeToString,
        response_deserializer=uac_dot_ServiceAccount__pb2.ServiceAccount.FromString,
        )


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

  def createServiceAccount(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 findServiceAccount(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 deleteServiceAccount(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 updateServiceAccount(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_ServiceAccountServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'createServiceAccount': grpc.unary_unary_rpc_method_handler(
          servicer.createServiceAccount,
          request_deserializer=uac_dot_ServiceAccount__pb2.CreateServiceAccountRequest.FromString,
          response_serializer=uac_dot_ServiceAccount__pb2.ServiceAccount.SerializeToString,
      ),
      'findServiceAccount': grpc.unary_unary_rpc_method_handler(
          servicer.findServiceAccount,
          request_deserializer=uac_dot_ServiceAccount__pb2.FindServiceAccountRequest.FromString,
          response_serializer=uac_dot_ServiceAccount__pb2.FindServiceAccountRequest.Response.SerializeToString,
      ),
      'deleteServiceAccount': grpc.unary_unary_rpc_method_handler(
          servicer.deleteServiceAccount,
          request_deserializer=uac_dot_ServiceAccount__pb2.DeleteServiceAccountRequest.FromString,
          response_serializer=uac_dot_UACService__pb2.Empty.SerializeToString,
      ),
      'updateServiceAccount': grpc.unary_unary_rpc_method_handler(
          servicer.updateServiceAccount,
          request_deserializer=uac_dot_ServiceAccount__pb2.UpdateServiceAccountRequest.FromString,
          response_serializer=uac_dot_ServiceAccount__pb2.ServiceAccount.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.verta.uac.ServiceAccountService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
