# 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 metric_pb2 as core_dot_mgmt_dot_v1alpha_dot_metric__pb2
from core.mgmt.v1alpha import mgmt_pb2 as core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2


class MgmtPublicServiceStub(object):
    """Mgmt service responds to external access
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.Liveness = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/Liveness',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LivenessRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LivenessResponse.FromString,
                )
        self.Readiness = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/Readiness',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ReadinessRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ReadinessResponse.FromString,
                )
        self.QueryAuthenticatedUser = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/QueryAuthenticatedUser',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.QueryAuthenticatedUserRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.QueryAuthenticatedUserResponse.FromString,
                )
        self.PatchAuthenticatedUser = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/PatchAuthenticatedUser',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.PatchAuthenticatedUserRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.PatchAuthenticatedUserResponse.FromString,
                )
        self.ExistUsername = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/ExistUsername',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ExistUsernameRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ExistUsernameResponse.FromString,
                )
        self.CreateToken = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/CreateToken',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateTokenRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateTokenResponse.FromString,
                )
        self.ListTokens = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/ListTokens',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListTokensRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListTokensResponse.FromString,
                )
        self.GetToken = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/GetToken',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetTokenRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetTokenResponse.FromString,
                )
        self.DeleteToken = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/DeleteToken',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteTokenRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteTokenResponse.FromString,
                )
        self.ValidateToken = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/ValidateToken',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ValidateTokenRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ValidateTokenResponse.FromString,
                )
        self.ListPipelineTriggerRecords = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/ListPipelineTriggerRecords',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerRecordsRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerRecordsResponse.FromString,
                )
        self.ListPipelineTriggerTableRecords = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/ListPipelineTriggerTableRecords',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerTableRecordsRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerTableRecordsResponse.FromString,
                )
        self.ListPipelineTriggerChartRecords = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/ListPipelineTriggerChartRecords',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerChartRecordsRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerChartRecordsResponse.FromString,
                )
        self.ListConnectorExecuteRecords = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/ListConnectorExecuteRecords',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteRecordsRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteRecordsResponse.FromString,
                )
        self.ListConnectorExecuteTableRecords = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/ListConnectorExecuteTableRecords',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteTableRecordsRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteTableRecordsResponse.FromString,
                )
        self.ListConnectorExecuteChartRecords = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/ListConnectorExecuteChartRecords',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteChartRecordsRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteChartRecordsResponse.FromString,
                )
        self.AuthTokenIssuer = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/AuthTokenIssuer',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthTokenIssuerRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthTokenIssuerResponse.FromString,
                )
        self.AuthLogin = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/AuthLogin',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLoginRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLoginResponse.FromString,
                )
        self.AuthLogout = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/AuthLogout',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLogoutRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLogoutResponse.FromString,
                )
        self.AuthChangePassword = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/AuthChangePassword',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthChangePasswordRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthChangePasswordResponse.FromString,
                )
        self.AuthValidateAccessToken = channel.unary_unary(
                '/core.mgmt.v1alpha.MgmtPublicService/AuthValidateAccessToken',
                request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthValidateAccessTokenRequest.SerializeToString,
                response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthValidateAccessTokenResponse.FromString,
                )


class MgmtPublicServiceServicer(object):
    """Mgmt service responds to external access
    """

    def Liveness(self, request, context):
        """Liveness method receives a LivenessRequest message and returns a
        LivenessResponse message.
        See https://github.com/grpc/grpc/blob/master/doc/health-checking.md
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def Readiness(self, request, context):
        """Readiness method receives a ReadinessRequest message and returns a
        ReadinessResponse message.
        See https://github.com/grpc/grpc/blob/master/doc/health-checking.md
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

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

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

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

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

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

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

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

    def ListPipelineTriggerRecords(self, request, context):
        """========== Metric endpoints

        ListPipelineTriggerRecords method receives a
        ListPipelineTriggerRecordsRequest message and returns a
        ListPipelineTriggerRecordsResponse message.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

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

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

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

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

    def AuthTokenIssuer(self, request, context):
        """AuthTokenIssuer endpoint
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def AuthLogin(self, request, context):
        """Auth Login endpoint
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def AuthLogout(self, request, context):
        """Auth Logout endpoint
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def AuthChangePassword(self, request, context):
        """Auth Change password endpoint
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def AuthValidateAccessToken(self, request, context):
        """Auth AccessToken validation endpoint
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_MgmtPublicServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Liveness': grpc.unary_unary_rpc_method_handler(
                    servicer.Liveness,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LivenessRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LivenessResponse.SerializeToString,
            ),
            'Readiness': grpc.unary_unary_rpc_method_handler(
                    servicer.Readiness,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ReadinessRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ReadinessResponse.SerializeToString,
            ),
            'QueryAuthenticatedUser': grpc.unary_unary_rpc_method_handler(
                    servicer.QueryAuthenticatedUser,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.QueryAuthenticatedUserRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.QueryAuthenticatedUserResponse.SerializeToString,
            ),
            'PatchAuthenticatedUser': grpc.unary_unary_rpc_method_handler(
                    servicer.PatchAuthenticatedUser,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.PatchAuthenticatedUserRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.PatchAuthenticatedUserResponse.SerializeToString,
            ),
            'ExistUsername': grpc.unary_unary_rpc_method_handler(
                    servicer.ExistUsername,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ExistUsernameRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ExistUsernameResponse.SerializeToString,
            ),
            'CreateToken': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateToken,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateTokenRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateTokenResponse.SerializeToString,
            ),
            'ListTokens': grpc.unary_unary_rpc_method_handler(
                    servicer.ListTokens,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListTokensRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListTokensResponse.SerializeToString,
            ),
            'GetToken': grpc.unary_unary_rpc_method_handler(
                    servicer.GetToken,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetTokenRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetTokenResponse.SerializeToString,
            ),
            'DeleteToken': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteToken,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteTokenRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteTokenResponse.SerializeToString,
            ),
            'ValidateToken': grpc.unary_unary_rpc_method_handler(
                    servicer.ValidateToken,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ValidateTokenRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ValidateTokenResponse.SerializeToString,
            ),
            'ListPipelineTriggerRecords': grpc.unary_unary_rpc_method_handler(
                    servicer.ListPipelineTriggerRecords,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerRecordsRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerRecordsResponse.SerializeToString,
            ),
            'ListPipelineTriggerTableRecords': grpc.unary_unary_rpc_method_handler(
                    servicer.ListPipelineTriggerTableRecords,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerTableRecordsRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerTableRecordsResponse.SerializeToString,
            ),
            'ListPipelineTriggerChartRecords': grpc.unary_unary_rpc_method_handler(
                    servicer.ListPipelineTriggerChartRecords,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerChartRecordsRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerChartRecordsResponse.SerializeToString,
            ),
            'ListConnectorExecuteRecords': grpc.unary_unary_rpc_method_handler(
                    servicer.ListConnectorExecuteRecords,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteRecordsRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteRecordsResponse.SerializeToString,
            ),
            'ListConnectorExecuteTableRecords': grpc.unary_unary_rpc_method_handler(
                    servicer.ListConnectorExecuteTableRecords,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteTableRecordsRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteTableRecordsResponse.SerializeToString,
            ),
            'ListConnectorExecuteChartRecords': grpc.unary_unary_rpc_method_handler(
                    servicer.ListConnectorExecuteChartRecords,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteChartRecordsRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteChartRecordsResponse.SerializeToString,
            ),
            'AuthTokenIssuer': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthTokenIssuer,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthTokenIssuerRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthTokenIssuerResponse.SerializeToString,
            ),
            'AuthLogin': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthLogin,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLoginRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLoginResponse.SerializeToString,
            ),
            'AuthLogout': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthLogout,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLogoutRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLogoutResponse.SerializeToString,
            ),
            'AuthChangePassword': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthChangePassword,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthChangePasswordRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthChangePasswordResponse.SerializeToString,
            ),
            'AuthValidateAccessToken': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthValidateAccessToken,
                    request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthValidateAccessTokenRequest.FromString,
                    response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthValidateAccessTokenResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'core.mgmt.v1alpha.MgmtPublicService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def Liveness(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.MgmtPublicService/Liveness',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LivenessRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LivenessResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Readiness(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.MgmtPublicService/Readiness',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ReadinessRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ReadinessResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def QueryAuthenticatedUser(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.MgmtPublicService/QueryAuthenticatedUser',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.QueryAuthenticatedUserRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.QueryAuthenticatedUserResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def PatchAuthenticatedUser(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.MgmtPublicService/PatchAuthenticatedUser',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.PatchAuthenticatedUserRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.PatchAuthenticatedUserResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ExistUsername(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.MgmtPublicService/ExistUsername',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ExistUsernameRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ExistUsernameResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreateToken(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.MgmtPublicService/CreateToken',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateTokenRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.CreateTokenResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListTokens(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.MgmtPublicService/ListTokens',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListTokensRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ListTokensResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetToken(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.MgmtPublicService/GetToken',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetTokenRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetTokenResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteToken(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.MgmtPublicService/DeleteToken',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteTokenRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteTokenResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ValidateToken(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.MgmtPublicService/ValidateToken',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ValidateTokenRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.ValidateTokenResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListPipelineTriggerRecords(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.MgmtPublicService/ListPipelineTriggerRecords',
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerRecordsRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerRecordsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListPipelineTriggerTableRecords(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.MgmtPublicService/ListPipelineTriggerTableRecords',
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerTableRecordsRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerTableRecordsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListPipelineTriggerChartRecords(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.MgmtPublicService/ListPipelineTriggerChartRecords',
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerChartRecordsRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListPipelineTriggerChartRecordsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListConnectorExecuteRecords(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.MgmtPublicService/ListConnectorExecuteRecords',
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteRecordsRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteRecordsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListConnectorExecuteTableRecords(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.MgmtPublicService/ListConnectorExecuteTableRecords',
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteTableRecordsRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteTableRecordsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListConnectorExecuteChartRecords(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.MgmtPublicService/ListConnectorExecuteChartRecords',
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteChartRecordsRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_metric__pb2.ListConnectorExecuteChartRecordsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def AuthTokenIssuer(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.MgmtPublicService/AuthTokenIssuer',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthTokenIssuerRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthTokenIssuerResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def AuthLogin(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.MgmtPublicService/AuthLogin',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLoginRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLoginResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def AuthLogout(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.MgmtPublicService/AuthLogout',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLogoutRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthLogoutResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def AuthChangePassword(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.MgmtPublicService/AuthChangePassword',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthChangePasswordRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthChangePasswordResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def AuthValidateAccessToken(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.MgmtPublicService/AuthValidateAccessToken',
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthValidateAccessTokenRequest.SerializeToString,
            core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.AuthValidateAccessTokenResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
