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

import quality_verification_ddx_pb2 as quality__verification__ddx__pb2


class QualityVerificationDdxGrpcStub(object):
    """*
    The quality verification service definition.
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetProjectWorkspaces = channel.unary_unary(
                '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetProjectWorkspaces',
                request_serializer=quality__verification__ddx__pb2.GetProjectWorkspacesRequest.SerializeToString,
                response_deserializer=quality__verification__ddx__pb2.GetProjectWorkspacesResponse.FromString,
                )
        self.GetQualitySpecificationRefs = channel.unary_unary(
                '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetQualitySpecificationRefs',
                request_serializer=quality__verification__ddx__pb2.GetSpecificationRefsRequest.SerializeToString,
                response_deserializer=quality__verification__ddx__pb2.GetSpecificationRefsResponse.FromString,
                )
        self.GetQualitySpecification = channel.unary_unary(
                '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetQualitySpecification',
                request_serializer=quality__verification__ddx__pb2.GetSpecificationRequest.SerializeToString,
                response_deserializer=quality__verification__ddx__pb2.GetSpecificationResponse.FromString,
                )
        self.GetQualityCondition = channel.unary_unary(
                '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetQualityCondition',
                request_serializer=quality__verification__ddx__pb2.GetConditionRequest.SerializeToString,
                response_deserializer=quality__verification__ddx__pb2.GetConditionResponse.FromString,
                )
        self.GetDatasetDetails = channel.unary_unary(
                '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetDatasetDetails',
                request_serializer=quality__verification__ddx__pb2.GetDatasetDetailsRequest.SerializeToString,
                response_deserializer=quality__verification__ddx__pb2.GetDatasetDetailsResponse.FromString,
                )


class QualityVerificationDdxGrpcServicer(object):
    """*
    The quality verification service definition.
    """

    def GetProjectWorkspaces(self, request, context):
        """*
        Gets the project workspace candidates for the specified object classes.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def GetQualitySpecificationRefs(self, request, context):
        """*
        Gets the quality specification references (id/name pairs) for the specified object classes.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def GetQualitySpecification(self, request, context):
        """*
        Gets a full quality specification from the data dictionary in form of a 
        ConditionListSpecificationMsg.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def GetQualityCondition(self, request, context):
        """*
        Gets a quality condition
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def GetDatasetDetails(self, request, context):
        """*
        Gets dataset details, such as the attributes and object category collections.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_QualityVerificationDdxGrpcServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetProjectWorkspaces': grpc.unary_unary_rpc_method_handler(
                    servicer.GetProjectWorkspaces,
                    request_deserializer=quality__verification__ddx__pb2.GetProjectWorkspacesRequest.FromString,
                    response_serializer=quality__verification__ddx__pb2.GetProjectWorkspacesResponse.SerializeToString,
            ),
            'GetQualitySpecificationRefs': grpc.unary_unary_rpc_method_handler(
                    servicer.GetQualitySpecificationRefs,
                    request_deserializer=quality__verification__ddx__pb2.GetSpecificationRefsRequest.FromString,
                    response_serializer=quality__verification__ddx__pb2.GetSpecificationRefsResponse.SerializeToString,
            ),
            'GetQualitySpecification': grpc.unary_unary_rpc_method_handler(
                    servicer.GetQualitySpecification,
                    request_deserializer=quality__verification__ddx__pb2.GetSpecificationRequest.FromString,
                    response_serializer=quality__verification__ddx__pb2.GetSpecificationResponse.SerializeToString,
            ),
            'GetQualityCondition': grpc.unary_unary_rpc_method_handler(
                    servicer.GetQualityCondition,
                    request_deserializer=quality__verification__ddx__pb2.GetConditionRequest.FromString,
                    response_serializer=quality__verification__ddx__pb2.GetConditionResponse.SerializeToString,
            ),
            'GetDatasetDetails': grpc.unary_unary_rpc_method_handler(
                    servicer.GetDatasetDetails,
                    request_deserializer=quality__verification__ddx__pb2.GetDatasetDetailsRequest.FromString,
                    response_serializer=quality__verification__ddx__pb2.GetDatasetDetailsResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class QualityVerificationDdxGrpc(object):
    """*
    The quality verification service definition.
    """

    @staticmethod
    def GetProjectWorkspaces(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, '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetProjectWorkspaces',
            quality__verification__ddx__pb2.GetProjectWorkspacesRequest.SerializeToString,
            quality__verification__ddx__pb2.GetProjectWorkspacesResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetQualitySpecificationRefs(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, '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetQualitySpecificationRefs',
            quality__verification__ddx__pb2.GetSpecificationRefsRequest.SerializeToString,
            quality__verification__ddx__pb2.GetSpecificationRefsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetQualitySpecification(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, '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetQualitySpecification',
            quality__verification__ddx__pb2.GetSpecificationRequest.SerializeToString,
            quality__verification__ddx__pb2.GetSpecificationResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetQualityCondition(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, '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetQualityCondition',
            quality__verification__ddx__pb2.GetConditionRequest.SerializeToString,
            quality__verification__ddx__pb2.GetConditionResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetDatasetDetails(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, '/ProSuite.Microservices.Definitions.QA.QualityVerificationDdxGrpc/GetDatasetDetails',
            quality__verification__ddx__pb2.GetDatasetDetailsRequest.SerializeToString,
            quality__verification__ddx__pb2.GetDatasetDetailsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
