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

from model.model.v1alpha import model_definition_pb2 as model_dot_model_dot_v1alpha_dot_model__definition__pb2
from model.model.v1alpha import model_pb2 as model_dot_model_dot_v1alpha_dot_model__pb2


class ModelPublicServiceStub(object):
    """Model service responds to external access
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.Liveness = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/Liveness',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.LivenessRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.LivenessResponse.FromString,
                )
        self.Readiness = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/Readiness',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.ReadinessRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.ReadinessResponse.FromString,
                )
        self.ListModelDefinitions = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/ListModelDefinitions',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__definition__pb2.ListModelDefinitionsRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__definition__pb2.ListModelDefinitionsResponse.FromString,
                )
        self.GetModelDefinition = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/GetModelDefinition',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__definition__pb2.GetModelDefinitionRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__definition__pb2.GetModelDefinitionResponse.FromString,
                )
        self.ListModels = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/ListModels',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.ListModelsRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.ListModelsResponse.FromString,
                )
        self.LookUpModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/LookUpModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.LookUpModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.LookUpModelResponse.FromString,
                )
        self.ListUserModels = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/ListUserModels',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.ListUserModelsRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.ListUserModelsResponse.FromString,
                )
        self.CreateUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/CreateUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelResponse.FromString,
                )
        self.CreateUserModelBinaryFileUpload = channel.stream_unary(
                '/model.model.v1alpha.ModelPublicService/CreateUserModelBinaryFileUpload',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelBinaryFileUploadRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelBinaryFileUploadResponse.FromString,
                )
        self.GetUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/GetUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelResponse.FromString,
                )
        self.UpdateUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/UpdateUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.UpdateUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.UpdateUserModelResponse.FromString,
                )
        self.DeleteUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/DeleteUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.DeleteUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.DeleteUserModelResponse.FromString,
                )
        self.RenameUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/RenameUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.RenameUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.RenameUserModelResponse.FromString,
                )
        self.PublishUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/PublishUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.PublishUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.PublishUserModelResponse.FromString,
                )
        self.UnpublishUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/UnpublishUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.UnpublishUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.UnpublishUserModelResponse.FromString,
                )
        self.DeployUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/DeployUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.DeployUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.DeployUserModelResponse.FromString,
                )
        self.UndeployUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/UndeployUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.UndeployUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.UndeployUserModelResponse.FromString,
                )
        self.GetUserModelCard = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/GetUserModelCard',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelCardRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelCardResponse.FromString,
                )
        self.WatchUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/WatchUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.WatchUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.WatchUserModelResponse.FromString,
                )
        self.TriggerUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/TriggerUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelResponse.FromString,
                )
        self.TriggerUserModelBinaryFileUpload = channel.stream_unary(
                '/model.model.v1alpha.ModelPublicService/TriggerUserModelBinaryFileUpload',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelBinaryFileUploadRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelBinaryFileUploadResponse.FromString,
                )
        self.TestUserModel = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/TestUserModel',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelResponse.FromString,
                )
        self.TestUserModelBinaryFileUpload = channel.stream_unary(
                '/model.model.v1alpha.ModelPublicService/TestUserModelBinaryFileUpload',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelBinaryFileUploadRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelBinaryFileUploadResponse.FromString,
                )
        self.GetModelOperation = channel.unary_unary(
                '/model.model.v1alpha.ModelPublicService/GetModelOperation',
                request_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetModelOperationRequest.SerializeToString,
                response_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetModelOperationResponse.FromString,
                )


class ModelPublicServiceServicer(object):
    """Model 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 ListModelDefinitions(self, request, context):
        """ListModelDefinitions method receives a ListModelDefinitionsRequest message
        and returns a ListModelDefinitionsResponse
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

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

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

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

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

    def CreateUserModelBinaryFileUpload(self, request_iterator, context):
        """CreateUserModelBinaryFileUpload method receives a
        CreateUserModelBinaryFileUploadRequest message and returns a
        CreateUserModelBinaryFileUploadResponse message.

        Endpoint: "POST /v1alpha/users/*/models:multipart"
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

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

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

    def RenameUserModel(self, request, context):
        """RenameUserModel method rename a model
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

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

    def DeployUserModel(self, request, context):
        """DeployUserModel deploy a model to online state
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def UndeployUserModel(self, request, context):
        """UndeployUserModel undeploy a model to offline state
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

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

    def TriggerUserModel(self, request, context):
        """/////////////////////////////////////////////////////

        TriggerUserModel method receives a TriggerUserModelRequest message
        and returns a TriggerUserModelResponse message.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def TriggerUserModelBinaryFileUpload(self, request_iterator, context):
        """TriggerUserModelBinaryFileUpload method receives a
        TriggerUserModelBinaryFileUploadRequest message and returns a
        TriggerUserModelBinaryFileUploadResponse message.

        Endpoint: "POST/v1alpha/{name=models/*}/trigger-multipart"
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

    def TestUserModelBinaryFileUpload(self, request_iterator, context):
        """TestUserModelBinaryFileUpload method receives a
        TestUserModelBinaryFileUploadRequest message and returns a
        TestUserModelBinaryFileUploadResponse message.

        Endpoint: "POST/v1alpha/{name=users/*/models/*}/test-multipart"
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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


def add_ModelPublicServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Liveness': grpc.unary_unary_rpc_method_handler(
                    servicer.Liveness,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.LivenessRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.LivenessResponse.SerializeToString,
            ),
            'Readiness': grpc.unary_unary_rpc_method_handler(
                    servicer.Readiness,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.ReadinessRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.ReadinessResponse.SerializeToString,
            ),
            'ListModelDefinitions': grpc.unary_unary_rpc_method_handler(
                    servicer.ListModelDefinitions,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__definition__pb2.ListModelDefinitionsRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__definition__pb2.ListModelDefinitionsResponse.SerializeToString,
            ),
            'GetModelDefinition': grpc.unary_unary_rpc_method_handler(
                    servicer.GetModelDefinition,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__definition__pb2.GetModelDefinitionRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__definition__pb2.GetModelDefinitionResponse.SerializeToString,
            ),
            'ListModels': grpc.unary_unary_rpc_method_handler(
                    servicer.ListModels,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.ListModelsRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.ListModelsResponse.SerializeToString,
            ),
            'LookUpModel': grpc.unary_unary_rpc_method_handler(
                    servicer.LookUpModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.LookUpModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.LookUpModelResponse.SerializeToString,
            ),
            'ListUserModels': grpc.unary_unary_rpc_method_handler(
                    servicer.ListUserModels,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.ListUserModelsRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.ListUserModelsResponse.SerializeToString,
            ),
            'CreateUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelResponse.SerializeToString,
            ),
            'CreateUserModelBinaryFileUpload': grpc.stream_unary_rpc_method_handler(
                    servicer.CreateUserModelBinaryFileUpload,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelBinaryFileUploadRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelBinaryFileUploadResponse.SerializeToString,
            ),
            'GetUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.GetUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelResponse.SerializeToString,
            ),
            'UpdateUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.UpdateUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.UpdateUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.UpdateUserModelResponse.SerializeToString,
            ),
            'DeleteUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.DeleteUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.DeleteUserModelResponse.SerializeToString,
            ),
            'RenameUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.RenameUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.RenameUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.RenameUserModelResponse.SerializeToString,
            ),
            'PublishUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.PublishUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.PublishUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.PublishUserModelResponse.SerializeToString,
            ),
            'UnpublishUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.UnpublishUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.UnpublishUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.UnpublishUserModelResponse.SerializeToString,
            ),
            'DeployUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.DeployUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.DeployUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.DeployUserModelResponse.SerializeToString,
            ),
            'UndeployUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.UndeployUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.UndeployUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.UndeployUserModelResponse.SerializeToString,
            ),
            'GetUserModelCard': grpc.unary_unary_rpc_method_handler(
                    servicer.GetUserModelCard,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelCardRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelCardResponse.SerializeToString,
            ),
            'WatchUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.WatchUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.WatchUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.WatchUserModelResponse.SerializeToString,
            ),
            'TriggerUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.TriggerUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelResponse.SerializeToString,
            ),
            'TriggerUserModelBinaryFileUpload': grpc.stream_unary_rpc_method_handler(
                    servicer.TriggerUserModelBinaryFileUpload,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelBinaryFileUploadRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelBinaryFileUploadResponse.SerializeToString,
            ),
            'TestUserModel': grpc.unary_unary_rpc_method_handler(
                    servicer.TestUserModel,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelResponse.SerializeToString,
            ),
            'TestUserModelBinaryFileUpload': grpc.stream_unary_rpc_method_handler(
                    servicer.TestUserModelBinaryFileUpload,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelBinaryFileUploadRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelBinaryFileUploadResponse.SerializeToString,
            ),
            'GetModelOperation': grpc.unary_unary_rpc_method_handler(
                    servicer.GetModelOperation,
                    request_deserializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetModelOperationRequest.FromString,
                    response_serializer=model_dot_model_dot_v1alpha_dot_model__pb2.GetModelOperationResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'model.model.v1alpha.ModelPublicService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class ModelPublicService(object):
    """Model 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, '/model.model.v1alpha.ModelPublicService/Liveness',
            model_dot_model_dot_v1alpha_dot_model__pb2.LivenessRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__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, '/model.model.v1alpha.ModelPublicService/Readiness',
            model_dot_model_dot_v1alpha_dot_model__pb2.ReadinessRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.ReadinessResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListModelDefinitions(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, '/model.model.v1alpha.ModelPublicService/ListModelDefinitions',
            model_dot_model_dot_v1alpha_dot_model__definition__pb2.ListModelDefinitionsRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__definition__pb2.ListModelDefinitionsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetModelDefinition(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, '/model.model.v1alpha.ModelPublicService/GetModelDefinition',
            model_dot_model_dot_v1alpha_dot_model__definition__pb2.GetModelDefinitionRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__definition__pb2.GetModelDefinitionResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListModels(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, '/model.model.v1alpha.ModelPublicService/ListModels',
            model_dot_model_dot_v1alpha_dot_model__pb2.ListModelsRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.ListModelsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def LookUpModel(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, '/model.model.v1alpha.ModelPublicService/LookUpModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.LookUpModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.LookUpModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListUserModels(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, '/model.model.v1alpha.ModelPublicService/ListUserModels',
            model_dot_model_dot_v1alpha_dot_model__pb2.ListUserModelsRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.ListUserModelsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreateUserModel(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, '/model.model.v1alpha.ModelPublicService/CreateUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreateUserModelBinaryFileUpload(request_iterator,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.stream_unary(request_iterator, target, '/model.model.v1alpha.ModelPublicService/CreateUserModelBinaryFileUpload',
            model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelBinaryFileUploadRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.CreateUserModelBinaryFileUploadResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetUserModel(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, '/model.model.v1alpha.ModelPublicService/GetUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def UpdateUserModel(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, '/model.model.v1alpha.ModelPublicService/UpdateUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.UpdateUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.UpdateUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteUserModel(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, '/model.model.v1alpha.ModelPublicService/DeleteUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.DeleteUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.DeleteUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def RenameUserModel(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, '/model.model.v1alpha.ModelPublicService/RenameUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.RenameUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.RenameUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def PublishUserModel(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, '/model.model.v1alpha.ModelPublicService/PublishUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.PublishUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.PublishUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def UnpublishUserModel(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, '/model.model.v1alpha.ModelPublicService/UnpublishUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.UnpublishUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.UnpublishUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeployUserModel(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, '/model.model.v1alpha.ModelPublicService/DeployUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.DeployUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.DeployUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def UndeployUserModel(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, '/model.model.v1alpha.ModelPublicService/UndeployUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.UndeployUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.UndeployUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetUserModelCard(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, '/model.model.v1alpha.ModelPublicService/GetUserModelCard',
            model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelCardRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.GetUserModelCardResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def WatchUserModel(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, '/model.model.v1alpha.ModelPublicService/WatchUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.WatchUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.WatchUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def TriggerUserModel(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, '/model.model.v1alpha.ModelPublicService/TriggerUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def TriggerUserModelBinaryFileUpload(request_iterator,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.stream_unary(request_iterator, target, '/model.model.v1alpha.ModelPublicService/TriggerUserModelBinaryFileUpload',
            model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelBinaryFileUploadRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.TriggerUserModelBinaryFileUploadResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def TestUserModel(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, '/model.model.v1alpha.ModelPublicService/TestUserModel',
            model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def TestUserModelBinaryFileUpload(request_iterator,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.stream_unary(request_iterator, target, '/model.model.v1alpha.ModelPublicService/TestUserModelBinaryFileUpload',
            model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelBinaryFileUploadRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.TestUserModelBinaryFileUploadResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetModelOperation(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, '/model.model.v1alpha.ModelPublicService/GetModelOperation',
            model_dot_model_dot_v1alpha_dot_model__pb2.GetModelOperationRequest.SerializeToString,
            model_dot_model_dot_v1alpha_dot_model__pb2.GetModelOperationResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
