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

import ApiService_pb2 as ApiService__pb2


class ApiServiceStub(object):
    """Missing associated documentation comment in .proto file."""

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

        Args:
            channel: A grpc.Channel.
        """
        self.HelloWorld = channel.unary_unary(
                '/innotescus.api.ApiService/HelloWorld',
                request_serializer=ApiService__pb2.HelloWorldRequest.SerializeToString,
                response_deserializer=ApiService__pb2.HelloWorldResponse.FromString,
                )
        self.GetProjects = channel.unary_unary(
                '/innotescus.api.ApiService/GetProjects',
                request_serializer=ApiService__pb2.GetProjectsRequest.SerializeToString,
                response_deserializer=ApiService__pb2.GetProjectsResponse.FromString,
                )
        self.CreateProject = channel.unary_unary(
                '/innotescus.api.ApiService/CreateProject',
                request_serializer=ApiService__pb2.CreateProjectRequest.SerializeToString,
                response_deserializer=ApiService__pb2.CreateProjectResponse.FromString,
                )
        self.DeleteProject = channel.unary_unary(
                '/innotescus.api.ApiService/DeleteProject',
                request_serializer=ApiService__pb2.DeleteProjectRequest.SerializeToString,
                response_deserializer=ApiService__pb2.DeleteProjectResponse.FromString,
                )
        self.UploadData = channel.unary_unary(
                '/innotescus.api.ApiService/UploadData',
                request_serializer=ApiService__pb2.UploadDataRequest.SerializeToString,
                response_deserializer=ApiService__pb2.UploadDataResponse.FromString,
                )
        self.DeleteDataset = channel.unary_unary(
                '/innotescus.api.ApiService/DeleteDataset',
                request_serializer=ApiService__pb2.DeleteDatasetRequest.SerializeToString,
                response_deserializer=ApiService__pb2.DeleteDatasetResponse.FromString,
                )
        self.StartExport = channel.unary_unary(
                '/innotescus.api.ApiService/StartExport',
                request_serializer=ApiService__pb2.StartExportRequest.SerializeToString,
                response_deserializer=ApiService__pb2.StartExportResponse.FromString,
                )
        self.DownloadExport = channel.unary_unary(
                '/innotescus.api.ApiService/DownloadExport',
                request_serializer=ApiService__pb2.DownloadExportRequest.SerializeToString,
                response_deserializer=ApiService__pb2.DownloadExportResponse.FromString,
                )
        self.UploadAnnotations = channel.unary_unary(
                '/innotescus.api.ApiService/UploadAnnotations',
                request_serializer=ApiService__pb2.UploadAnnotationsRequest.SerializeToString,
                response_deserializer=ApiService__pb2.UploadAnnotationsResponse.FromString,
                )
        self.CreateTask = channel.unary_unary(
                '/innotescus.api.ApiService/CreateTask',
                request_serializer=ApiService__pb2.CreateTaskRequest.SerializeToString,
                response_deserializer=ApiService__pb2.CreateTaskResponse.FromString,
                )
        self.AssignTaskToDatasets = channel.unary_unary(
                '/innotescus.api.ApiService/AssignTaskToDatasets',
                request_serializer=ApiService__pb2.AssignTaskToDatasetsRequest.SerializeToString,
                response_deserializer=ApiService__pb2.AssignTaskToDatasetsResponse.FromString,
                )
        self.DeleteTask = channel.unary_unary(
                '/innotescus.api.ApiService/DeleteTask',
                request_serializer=ApiService__pb2.DeleteTaskRequest.SerializeToString,
                response_deserializer=ApiService__pb2.DeleteTaskResponse.FromString,
                )
        self.GetInProgressJobs = channel.unary_unary(
                '/innotescus.api.ApiService/GetInProgressJobs',
                request_serializer=ApiService__pb2.GetInProgressJobsRequest.SerializeToString,
                response_deserializer=ApiService__pb2.GetInProgressJobsResponse.FromString,
                )
        self.GetJobStatus = channel.unary_unary(
                '/innotescus.api.ApiService/GetJobStatus',
                request_serializer=ApiService__pb2.GetJobStatusRequest.SerializeToString,
                response_deserializer=ApiService__pb2.GetJobStatusResponse.FromString,
                )


class ApiServiceServicer(object):
    """Missing associated documentation comment in .proto file."""

    def HelloWorld(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

    def CreateProject(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def DeleteProject(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

    def DeleteDataset(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

    def DownloadExport(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def UploadAnnotations(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

    def AssignTaskToDatasets(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def DeleteTask(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

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

    def GetJobStatus(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_ApiServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'HelloWorld': grpc.unary_unary_rpc_method_handler(
                    servicer.HelloWorld,
                    request_deserializer=ApiService__pb2.HelloWorldRequest.FromString,
                    response_serializer=ApiService__pb2.HelloWorldResponse.SerializeToString,
            ),
            'GetProjects': grpc.unary_unary_rpc_method_handler(
                    servicer.GetProjects,
                    request_deserializer=ApiService__pb2.GetProjectsRequest.FromString,
                    response_serializer=ApiService__pb2.GetProjectsResponse.SerializeToString,
            ),
            'CreateProject': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateProject,
                    request_deserializer=ApiService__pb2.CreateProjectRequest.FromString,
                    response_serializer=ApiService__pb2.CreateProjectResponse.SerializeToString,
            ),
            'DeleteProject': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteProject,
                    request_deserializer=ApiService__pb2.DeleteProjectRequest.FromString,
                    response_serializer=ApiService__pb2.DeleteProjectResponse.SerializeToString,
            ),
            'UploadData': grpc.unary_unary_rpc_method_handler(
                    servicer.UploadData,
                    request_deserializer=ApiService__pb2.UploadDataRequest.FromString,
                    response_serializer=ApiService__pb2.UploadDataResponse.SerializeToString,
            ),
            'DeleteDataset': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteDataset,
                    request_deserializer=ApiService__pb2.DeleteDatasetRequest.FromString,
                    response_serializer=ApiService__pb2.DeleteDatasetResponse.SerializeToString,
            ),
            'StartExport': grpc.unary_unary_rpc_method_handler(
                    servicer.StartExport,
                    request_deserializer=ApiService__pb2.StartExportRequest.FromString,
                    response_serializer=ApiService__pb2.StartExportResponse.SerializeToString,
            ),
            'DownloadExport': grpc.unary_unary_rpc_method_handler(
                    servicer.DownloadExport,
                    request_deserializer=ApiService__pb2.DownloadExportRequest.FromString,
                    response_serializer=ApiService__pb2.DownloadExportResponse.SerializeToString,
            ),
            'UploadAnnotations': grpc.unary_unary_rpc_method_handler(
                    servicer.UploadAnnotations,
                    request_deserializer=ApiService__pb2.UploadAnnotationsRequest.FromString,
                    response_serializer=ApiService__pb2.UploadAnnotationsResponse.SerializeToString,
            ),
            'CreateTask': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateTask,
                    request_deserializer=ApiService__pb2.CreateTaskRequest.FromString,
                    response_serializer=ApiService__pb2.CreateTaskResponse.SerializeToString,
            ),
            'AssignTaskToDatasets': grpc.unary_unary_rpc_method_handler(
                    servicer.AssignTaskToDatasets,
                    request_deserializer=ApiService__pb2.AssignTaskToDatasetsRequest.FromString,
                    response_serializer=ApiService__pb2.AssignTaskToDatasetsResponse.SerializeToString,
            ),
            'DeleteTask': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteTask,
                    request_deserializer=ApiService__pb2.DeleteTaskRequest.FromString,
                    response_serializer=ApiService__pb2.DeleteTaskResponse.SerializeToString,
            ),
            'GetInProgressJobs': grpc.unary_unary_rpc_method_handler(
                    servicer.GetInProgressJobs,
                    request_deserializer=ApiService__pb2.GetInProgressJobsRequest.FromString,
                    response_serializer=ApiService__pb2.GetInProgressJobsResponse.SerializeToString,
            ),
            'GetJobStatus': grpc.unary_unary_rpc_method_handler(
                    servicer.GetJobStatus,
                    request_deserializer=ApiService__pb2.GetJobStatusRequest.FromString,
                    response_serializer=ApiService__pb2.GetJobStatusResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'innotescus.api.ApiService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class ApiService(object):
    """Missing associated documentation comment in .proto file."""

    @staticmethod
    def HelloWorld(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, '/innotescus.api.ApiService/HelloWorld',
            ApiService__pb2.HelloWorldRequest.SerializeToString,
            ApiService__pb2.HelloWorldResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetProjects(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, '/innotescus.api.ApiService/GetProjects',
            ApiService__pb2.GetProjectsRequest.SerializeToString,
            ApiService__pb2.GetProjectsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreateProject(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, '/innotescus.api.ApiService/CreateProject',
            ApiService__pb2.CreateProjectRequest.SerializeToString,
            ApiService__pb2.CreateProjectResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteProject(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, '/innotescus.api.ApiService/DeleteProject',
            ApiService__pb2.DeleteProjectRequest.SerializeToString,
            ApiService__pb2.DeleteProjectResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def UploadData(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, '/innotescus.api.ApiService/UploadData',
            ApiService__pb2.UploadDataRequest.SerializeToString,
            ApiService__pb2.UploadDataResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteDataset(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, '/innotescus.api.ApiService/DeleteDataset',
            ApiService__pb2.DeleteDatasetRequest.SerializeToString,
            ApiService__pb2.DeleteDatasetResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def StartExport(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, '/innotescus.api.ApiService/StartExport',
            ApiService__pb2.StartExportRequest.SerializeToString,
            ApiService__pb2.StartExportResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DownloadExport(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, '/innotescus.api.ApiService/DownloadExport',
            ApiService__pb2.DownloadExportRequest.SerializeToString,
            ApiService__pb2.DownloadExportResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def UploadAnnotations(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, '/innotescus.api.ApiService/UploadAnnotations',
            ApiService__pb2.UploadAnnotationsRequest.SerializeToString,
            ApiService__pb2.UploadAnnotationsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreateTask(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, '/innotescus.api.ApiService/CreateTask',
            ApiService__pb2.CreateTaskRequest.SerializeToString,
            ApiService__pb2.CreateTaskResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def AssignTaskToDatasets(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, '/innotescus.api.ApiService/AssignTaskToDatasets',
            ApiService__pb2.AssignTaskToDatasetsRequest.SerializeToString,
            ApiService__pb2.AssignTaskToDatasetsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteTask(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, '/innotescus.api.ApiService/DeleteTask',
            ApiService__pb2.DeleteTaskRequest.SerializeToString,
            ApiService__pb2.DeleteTaskResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetInProgressJobs(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, '/innotescus.api.ApiService/GetInProgressJobs',
            ApiService__pb2.GetInProgressJobsRequest.SerializeToString,
            ApiService__pb2.GetInProgressJobsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetJobStatus(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, '/innotescus.api.ApiService/GetJobStatus',
            ApiService__pb2.GetJobStatusRequest.SerializeToString,
            ApiService__pb2.GetJobStatusResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
