# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

from core.mgmt.v1alpha import mgmt_pb2 as core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2


class MgmtPrivateServiceStub(object):
    """Mgmt service responds to internal access
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.ListUsersAdmin = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPrivateService/ListUsersAdmin',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListUsersAdminRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListUsersAdminResponse.FromString,
                )
        self.CreateUserAdmin = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPrivateService/CreateUserAdmin',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateUserAdminRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateUserAdminResponse.FromString,
                )
        self.GetUserAdmin = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPrivateService/GetUserAdmin',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminResponse.FromString,
                )
        self.UpdateUserAdmin = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPrivateService/UpdateUserAdmin',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminResponse.FromString,
                )
        self.DeleteUserAdmin = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPrivateService/DeleteUserAdmin',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminResponse.FromString,
                )
        self.LookUpUserAdmin = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPrivateService/LookUpUserAdmin',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LookUpUserAdminRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LookUpUserAdminResponse.FromString,
                )


class MgmtPrivateServiceServicer(object):
    """Mgmt service responds to internal access
    """

    def ListUsersAdmin(self, request, context):
        """ListUsersAdmin method receives a ListUsersAdminRequest message and returns
        a ListUsersAdminResponse message.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def CreateUserAdmin(self, request, context):
        """CreateUserAdmin receives a CreateUserAdminRequest message and returns a
        a GetUserAdminResponse
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def GetUserAdmin(self, request, context):
        """GetUserAdmin method receives a GetUserAdminRequest message and returns
        a GetUserAdminResponse message.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def UpdateUserAdmin(self, request, context):
        """UpdateUserAdmin method receives a UpdateUserAdminRequest message and
        returns a UpdateUserAdminResponse
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def DeleteUserAdmin(self, request, context):
        """DeleteUserAdmin method receives a DeleteUserAdminRequest message and
        returns a DeleteUserAdminResponse
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def LookUpUserAdmin(self, request, context):
        """LookUpUserAdmin method receives a LookUpUserAdminRequest message and
        returns a LookUpUserAdminResponse
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_MgmtPrivateServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'ListUsersAdmin': grpc.unary_unary_rpc_method_handler(
                    servicer.ListUsersAdmin,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListUsersAdminRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListUsersAdminResponse.SerializeToString,
            ),
            'CreateUserAdmin': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateUserAdmin,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateUserAdminRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateUserAdminResponse.SerializeToString,
            ),
            'GetUserAdmin': grpc.unary_unary_rpc_method_handler(
                    servicer.GetUserAdmin,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminResponse.SerializeToString,
            ),
            'UpdateUserAdmin': grpc.unary_unary_rpc_method_handler(
                    servicer.UpdateUserAdmin,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminResponse.SerializeToString,
            ),
            'DeleteUserAdmin': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteUserAdmin,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminResponse.SerializeToString,
            ),
            'LookUpUserAdmin': grpc.unary_unary_rpc_method_handler(
                    servicer.LookUpUserAdmin,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LookUpUserAdminRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LookUpUserAdminResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'core.mgmt.v1alpha.MgmtPrivateService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class MgmtPrivateService(object):
    """Mgmt service responds to internal access
    """

    @staticmethod
    def ListUsersAdmin(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/core.mgmt.v1alpha.MgmtPrivateService/ListUsersAdmin',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListUsersAdminRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListUsersAdminResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreateUserAdmin(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/core.mgmt.v1alpha.MgmtPrivateService/CreateUserAdmin',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateUserAdminRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateUserAdminResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetUserAdmin(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/core.mgmt.v1alpha.MgmtPrivateService/GetUserAdmin',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def UpdateUserAdmin(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/core.mgmt.v1alpha.MgmtPrivateService/UpdateUserAdmin',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteUserAdmin(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/core.mgmt.v1alpha.MgmtPrivateService/DeleteUserAdmin',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def LookUpUserAdmin(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/core.mgmt.v1alpha.MgmtPrivateService/LookUpUserAdmin',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LookUpUserAdminRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LookUpUserAdminResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
