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

from global_vo_grpc_service.protos import workflow_analyzer_api_pb2 as global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetEstimatesByTotalAoiKm2 = channel.unary_unary(
                '/WorkflowAnalyzerApi/GetEstimatesByTotalAoiKm2',
                request_serializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.GetEstimatesByTotalAoiKm2Request.SerializeToString,
                response_deserializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.WorkflowAnalyzerResponse.FromString,
                )
        self.GetEstimatesByTotalImages = channel.unary_unary(
                '/WorkflowAnalyzerApi/GetEstimatesByTotalImages',
                request_serializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.GetEstimatesByTotalImagesRequest.SerializeToString,
                response_deserializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.WorkflowAnalyzerResponse.FromString,
                )
        self.GetEstimatesByMissionId = channel.unary_unary(
                '/WorkflowAnalyzerApi/GetEstimatesByMissionId',
                request_serializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.GetEstimatesByMissionIdRequest.SerializeToString,
                response_deserializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.WorkflowAnalyzerResponse.FromString,
                )


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

    def GetEstimatesByTotalAoiKm2(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 GetEstimatesByTotalImages(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 GetEstimatesByMissionId(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_WorkflowAnalyzerApiServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetEstimatesByTotalAoiKm2': grpc.unary_unary_rpc_method_handler(
                    servicer.GetEstimatesByTotalAoiKm2,
                    request_deserializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.GetEstimatesByTotalAoiKm2Request.FromString,
                    response_serializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.WorkflowAnalyzerResponse.SerializeToString,
            ),
            'GetEstimatesByTotalImages': grpc.unary_unary_rpc_method_handler(
                    servicer.GetEstimatesByTotalImages,
                    request_deserializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.GetEstimatesByTotalImagesRequest.FromString,
                    response_serializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.WorkflowAnalyzerResponse.SerializeToString,
            ),
            'GetEstimatesByMissionId': grpc.unary_unary_rpc_method_handler(
                    servicer.GetEstimatesByMissionId,
                    request_deserializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.GetEstimatesByMissionIdRequest.FromString,
                    response_serializer=global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.WorkflowAnalyzerResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'WorkflowAnalyzerApi', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def GetEstimatesByTotalAoiKm2(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, '/WorkflowAnalyzerApi/GetEstimatesByTotalAoiKm2',
            global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.GetEstimatesByTotalAoiKm2Request.SerializeToString,
            global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.WorkflowAnalyzerResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetEstimatesByTotalImages(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, '/WorkflowAnalyzerApi/GetEstimatesByTotalImages',
            global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.GetEstimatesByTotalImagesRequest.SerializeToString,
            global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.WorkflowAnalyzerResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetEstimatesByMissionId(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, '/WorkflowAnalyzerApi/GetEstimatesByMissionId',
            global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.GetEstimatesByMissionIdRequest.SerializeToString,
            global__vo__grpc__service_dot_protos_dot_workflow__analyzer__api__pb2.WorkflowAnalyzerResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
