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

from dl import dl_elt_project_extraction_pb2 as dl_dot_dl__elt__project__extraction__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.ProjectExtraction = channel.unary_stream(
                '/ocf.dl.project_extraction.ProjectExtraction/ProjectExtraction',
                request_serializer=dl_dot_dl__elt__project__extraction__pb2.ProjectExtractionRequest.SerializeToString,
                response_deserializer=dl_dot_dl__elt__project__extraction__pb2.ProjectExtractionResponse.FromString,
                )


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

    def ProjectExtraction(self, request, context):
        """Extract all objects for DS mapping from ELT systems
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_ProjectExtractionServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'ProjectExtraction': grpc.unary_stream_rpc_method_handler(
                    servicer.ProjectExtraction,
                    request_deserializer=dl_dot_dl__elt__project__extraction__pb2.ProjectExtractionRequest.FromString,
                    response_serializer=dl_dot_dl__elt__project__extraction__pb2.ProjectExtractionResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'ocf.dl.project_extraction.ProjectExtraction', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def ProjectExtraction(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_stream(request, target, '/ocf.dl.project_extraction.ProjectExtraction/ProjectExtraction',
            dl_dot_dl__elt__project__extraction__pb2.ProjectExtractionRequest.SerializeToString,
            dl_dot_dl__elt__project__extraction__pb2.ProjectExtractionResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
