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

from vdp.connector.v1alpha import connector_definition_pb2 as vdp_dot_connector_dot_v1alpha_dot_connector__definition__pb2
from vdp.connector.v1alpha import connector_pb2 as vdp_dot_connector_dot_v1alpha_dot_connector__pb2


class ConnectorPrivateServiceStub(object):
    """Connector service responds to internal access
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.LookUpConnectorDefinitionAdmin = channel.unary_unary(
                '/vdp.connector.v1alpha.ConnectorPrivateService/LookUpConnectorDefinitionAdmin',
                request_serializer=vdp_dot_connector_dot_v1alpha_dot_connector__definition__pb2.LookUpConnectorDefinitionAdminRequest.SerializeToString,
                response_deserializer=vdp_dot_connector_dot_v1alpha_dot_connector__definition__pb2.LookUpConnectorDefinitionAdminResponse.FromString,
                )
        self.ListConnectorResourcesAdmin = channel.unary_unary(
                '/vdp.connector.v1alpha.ConnectorPrivateService/ListConnectorResourcesAdmin',
                request_serializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.ListConnectorResourcesAdminRequest.SerializeToString,
                response_deserializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.ListConnectorResourcesAdminResponse.FromString,
                )
        self.LookUpConnectorResourceAdmin = channel.unary_unary(
                '/vdp.connector.v1alpha.ConnectorPrivateService/LookUpConnectorResourceAdmin',
                request_serializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.LookUpConnectorResourceAdminRequest.SerializeToString,
                response_deserializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.LookUpConnectorResourceAdminResponse.FromString,
                )
        self.CheckConnectorResource = channel.unary_unary(
                '/vdp.connector.v1alpha.ConnectorPrivateService/CheckConnectorResource',
                request_serializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.CheckConnectorResourceRequest.SerializeToString,
                response_deserializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.CheckConnectorResourceResponse.FromString,
                )


class ConnectorPrivateServiceServicer(object):
    """Connector service responds to internal access
    """

    def LookUpConnectorDefinitionAdmin(self, request, context):
        """LookUpConnectorDefinitionAdmin method receives a
        LookUpConnectorDefinitionAdminRequest message and returns a
        LookUpConnectorDefinitionAdminResponse
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListConnectorResourcesAdmin(self, request, context):
        """ListConnectorResourcesAdmin method receives a ListConnectorResourcesAdminRequest
        message and returns a ListConnectorResourcesResponse message.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def LookUpConnectorResourceAdmin(self, request, context):
        """LookUpConnectorResourceAdmin method receives a
        LookUpConnectorResourceAdminRequest message and returns a
        LookUpConnectorResourceAdminResponse
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def CheckConnectorResource(self, request, context):
        """CheckConnectorResource method receives a CheckConnectorResourceRequest message and returns a
        CheckConnectorResourceResponse
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_ConnectorPrivateServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'LookUpConnectorDefinitionAdmin': grpc.unary_unary_rpc_method_handler(
                    servicer.LookUpConnectorDefinitionAdmin,
                    request_deserializer=vdp_dot_connector_dot_v1alpha_dot_connector__definition__pb2.LookUpConnectorDefinitionAdminRequest.FromString,
                    response_serializer=vdp_dot_connector_dot_v1alpha_dot_connector__definition__pb2.LookUpConnectorDefinitionAdminResponse.SerializeToString,
            ),
            'ListConnectorResourcesAdmin': grpc.unary_unary_rpc_method_handler(
                    servicer.ListConnectorResourcesAdmin,
                    request_deserializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.ListConnectorResourcesAdminRequest.FromString,
                    response_serializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.ListConnectorResourcesAdminResponse.SerializeToString,
            ),
            'LookUpConnectorResourceAdmin': grpc.unary_unary_rpc_method_handler(
                    servicer.LookUpConnectorResourceAdmin,
                    request_deserializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.LookUpConnectorResourceAdminRequest.FromString,
                    response_serializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.LookUpConnectorResourceAdminResponse.SerializeToString,
            ),
            'CheckConnectorResource': grpc.unary_unary_rpc_method_handler(
                    servicer.CheckConnectorResource,
                    request_deserializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.CheckConnectorResourceRequest.FromString,
                    response_serializer=vdp_dot_connector_dot_v1alpha_dot_connector__pb2.CheckConnectorResourceResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'vdp.connector.v1alpha.ConnectorPrivateService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class ConnectorPrivateService(object):
    """Connector service responds to internal access
    """

    @staticmethod
    def LookUpConnectorDefinitionAdmin(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, '/vdp.connector.v1alpha.ConnectorPrivateService/LookUpConnectorDefinitionAdmin',
            vdp_dot_connector_dot_v1alpha_dot_connector__definition__pb2.LookUpConnectorDefinitionAdminRequest.SerializeToString,
            vdp_dot_connector_dot_v1alpha_dot_connector__definition__pb2.LookUpConnectorDefinitionAdminResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListConnectorResourcesAdmin(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, '/vdp.connector.v1alpha.ConnectorPrivateService/ListConnectorResourcesAdmin',
            vdp_dot_connector_dot_v1alpha_dot_connector__pb2.ListConnectorResourcesAdminRequest.SerializeToString,
            vdp_dot_connector_dot_v1alpha_dot_connector__pb2.ListConnectorResourcesAdminResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def LookUpConnectorResourceAdmin(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, '/vdp.connector.v1alpha.ConnectorPrivateService/LookUpConnectorResourceAdmin',
            vdp_dot_connector_dot_v1alpha_dot_connector__pb2.LookUpConnectorResourceAdminRequest.SerializeToString,
            vdp_dot_connector_dot_v1alpha_dot_connector__pb2.LookUpConnectorResourceAdminResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CheckConnectorResource(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, '/vdp.connector.v1alpha.ConnectorPrivateService/CheckConnectorResource',
            vdp_dot_connector_dot_v1alpha_dot_connector__pb2.CheckConnectorResourceRequest.SerializeToString,
            vdp_dot_connector_dot_v1alpha_dot_connector__pb2.CheckConnectorResourceResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
