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

from kessel.inventory.v1beta1.relationships import k8spolicy_ispropagatedto_k8scluster_service_pb2 as kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.CreateK8SPolicyIsPropagatedToK8SCluster = channel.unary_unary(
                '/kessel.inventory.v1beta1.relationships.KesselK8SPolicyIsPropagatedToK8SClusterService/CreateK8SPolicyIsPropagatedToK8SCluster',
                request_serializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.CreateK8SPolicyIsPropagatedToK8SClusterRequest.SerializeToString,
                response_deserializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.CreateK8SPolicyIsPropagatedToK8SClusterResponse.FromString,
                _registered_method=True)
        self.UpdateK8SPolicyIsPropagatedToK8SCluster = channel.unary_unary(
                '/kessel.inventory.v1beta1.relationships.KesselK8SPolicyIsPropagatedToK8SClusterService/UpdateK8SPolicyIsPropagatedToK8SCluster',
                request_serializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.UpdateK8SPolicyIsPropagatedToK8SClusterRequest.SerializeToString,
                response_deserializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.UpdateK8SPolicyIsPropagatedToK8SClusterResponse.FromString,
                _registered_method=True)
        self.DeleteK8SPolicyIsPropagatedToK8SCluster = channel.unary_unary(
                '/kessel.inventory.v1beta1.relationships.KesselK8SPolicyIsPropagatedToK8SClusterService/DeleteK8SPolicyIsPropagatedToK8SCluster',
                request_serializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.DeleteK8SPolicyIsPropagatedToK8SClusterRequest.SerializeToString,
                response_deserializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.DeleteK8SPolicyIsPropagatedToK8SClusterResponse.FromString,
                _registered_method=True)


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

    def CreateK8SPolicyIsPropagatedToK8SCluster(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 UpdateK8SPolicyIsPropagatedToK8SCluster(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 DeleteK8SPolicyIsPropagatedToK8SCluster(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_KesselK8SPolicyIsPropagatedToK8SClusterServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'CreateK8SPolicyIsPropagatedToK8SCluster': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateK8SPolicyIsPropagatedToK8SCluster,
                    request_deserializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.CreateK8SPolicyIsPropagatedToK8SClusterRequest.FromString,
                    response_serializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.CreateK8SPolicyIsPropagatedToK8SClusterResponse.SerializeToString,
            ),
            'UpdateK8SPolicyIsPropagatedToK8SCluster': grpc.unary_unary_rpc_method_handler(
                    servicer.UpdateK8SPolicyIsPropagatedToK8SCluster,
                    request_deserializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.UpdateK8SPolicyIsPropagatedToK8SClusterRequest.FromString,
                    response_serializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.UpdateK8SPolicyIsPropagatedToK8SClusterResponse.SerializeToString,
            ),
            'DeleteK8SPolicyIsPropagatedToK8SCluster': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteK8SPolicyIsPropagatedToK8SCluster,
                    request_deserializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.DeleteK8SPolicyIsPropagatedToK8SClusterRequest.FromString,
                    response_serializer=kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.DeleteK8SPolicyIsPropagatedToK8SClusterResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'kessel.inventory.v1beta1.relationships.KesselK8SPolicyIsPropagatedToK8SClusterService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('kessel.inventory.v1beta1.relationships.KesselK8SPolicyIsPropagatedToK8SClusterService', rpc_method_handlers)


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

    @staticmethod
    def CreateK8SPolicyIsPropagatedToK8SCluster(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,
            '/kessel.inventory.v1beta1.relationships.KesselK8SPolicyIsPropagatedToK8SClusterService/CreateK8SPolicyIsPropagatedToK8SCluster',
            kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.CreateK8SPolicyIsPropagatedToK8SClusterRequest.SerializeToString,
            kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.CreateK8SPolicyIsPropagatedToK8SClusterResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def UpdateK8SPolicyIsPropagatedToK8SCluster(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,
            '/kessel.inventory.v1beta1.relationships.KesselK8SPolicyIsPropagatedToK8SClusterService/UpdateK8SPolicyIsPropagatedToK8SCluster',
            kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.UpdateK8SPolicyIsPropagatedToK8SClusterRequest.SerializeToString,
            kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.UpdateK8SPolicyIsPropagatedToK8SClusterResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def DeleteK8SPolicyIsPropagatedToK8SCluster(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,
            '/kessel.inventory.v1beta1.relationships.KesselK8SPolicyIsPropagatedToK8SClusterService/DeleteK8SPolicyIsPropagatedToK8SCluster',
            kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.DeleteK8SPolicyIsPropagatedToK8SClusterRequest.SerializeToString,
            kessel_dot_inventory_dot_v1beta1_dot_relationships_dot_k8spolicy__ispropagatedto__k8scluster__service__pb2.DeleteK8SPolicyIsPropagatedToK8SClusterResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)
