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

from fsai_grpc_api.protos import metric_api_pb2 as fsai__grpc__api_dot_protos_dot_metric__api__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.FindMissionDetectionCounts = channel.unary_unary(
                '/MetricApi/FindMissionDetectionCounts',
                request_serializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionsCountRequest.SerializeToString,
                response_deserializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionsCountResponse.FromString,
                )
        self.FindMissionDetectionCountsByState = channel.unary_unary(
                '/MetricApi/FindMissionDetectionCountsByState',
                request_serializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionCountsByStateRequest.SerializeToString,
                response_deserializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionCountsByStateResponse.FromString,
                )
        self.GetTotalImagesByMissionId = channel.unary_unary(
                '/MetricApi/GetTotalImagesByMissionId',
                request_serializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.GetTotalImagesByMissionIdRequest.SerializeToString,
                response_deserializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.GetTotalImagesByMissionIdResponse.FromString,
                )


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

    def FindMissionDetectionCounts(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 FindMissionDetectionCountsByState(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 GetTotalImagesByMissionId(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_MetricApiServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'FindMissionDetectionCounts': grpc.unary_unary_rpc_method_handler(
                    servicer.FindMissionDetectionCounts,
                    request_deserializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionsCountRequest.FromString,
                    response_serializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionsCountResponse.SerializeToString,
            ),
            'FindMissionDetectionCountsByState': grpc.unary_unary_rpc_method_handler(
                    servicer.FindMissionDetectionCountsByState,
                    request_deserializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionCountsByStateRequest.FromString,
                    response_serializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionCountsByStateResponse.SerializeToString,
            ),
            'GetTotalImagesByMissionId': grpc.unary_unary_rpc_method_handler(
                    servicer.GetTotalImagesByMissionId,
                    request_deserializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.GetTotalImagesByMissionIdRequest.FromString,
                    response_serializer=fsai__grpc__api_dot_protos_dot_metric__api__pb2.GetTotalImagesByMissionIdResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'MetricApi', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def FindMissionDetectionCounts(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, '/MetricApi/FindMissionDetectionCounts',
            fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionsCountRequest.SerializeToString,
            fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionsCountResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def FindMissionDetectionCountsByState(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, '/MetricApi/FindMissionDetectionCountsByState',
            fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionCountsByStateRequest.SerializeToString,
            fsai__grpc__api_dot_protos_dot_metric__api__pb2.FindMissionDetectionCountsByStateResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetTotalImagesByMissionId(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, '/MetricApi/GetTotalImagesByMissionId',
            fsai__grpc__api_dot_protos_dot_metric__api__pb2.GetTotalImagesByMissionIdRequest.SerializeToString,
            fsai__grpc__api_dot_protos_dot_metric__api__pb2.GetTotalImagesByMissionIdResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
