# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from faucetconfrpc import faucetconfrpc_pb2 as faucetconfrpc__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetConfigFile = channel.unary_unary(
                '/faucetconfserver.FaucetConfServer/GetConfigFile',
                request_serializer=faucetconfrpc__pb2.GetConfigFileRequest.SerializeToString,
                response_deserializer=faucetconfrpc__pb2.GetConfigFileReply.FromString,
                )
        self.SetConfigFile = channel.unary_unary(
                '/faucetconfserver.FaucetConfServer/SetConfigFile',
                request_serializer=faucetconfrpc__pb2.SetConfigFileRequest.SerializeToString,
                response_deserializer=faucetconfrpc__pb2.SetConfigFileReply.FromString,
                )
        self.DelConfigFromFile = channel.unary_unary(
                '/faucetconfserver.FaucetConfServer/DelConfigFromFile',
                request_serializer=faucetconfrpc__pb2.DelConfigFromFileRequest.SerializeToString,
                response_deserializer=faucetconfrpc__pb2.DelConfigFromFileReply.FromString,
                )
        self.AddPortMirror = channel.unary_unary(
                '/faucetconfserver.FaucetConfServer/AddPortMirror',
                request_serializer=faucetconfrpc__pb2.AddPortMirrorRequest.SerializeToString,
                response_deserializer=faucetconfrpc__pb2.AddPortMirrorReply.FromString,
                )
        self.RemovePortMirror = channel.unary_unary(
                '/faucetconfserver.FaucetConfServer/RemovePortMirror',
                request_serializer=faucetconfrpc__pb2.RemovePortMirrorRequest.SerializeToString,
                response_deserializer=faucetconfrpc__pb2.RemovePortMirrorReply.FromString,
                )
        self.AddPortAcl = channel.unary_unary(
                '/faucetconfserver.FaucetConfServer/AddPortAcl',
                request_serializer=faucetconfrpc__pb2.AddPortAclRequest.SerializeToString,
                response_deserializer=faucetconfrpc__pb2.AddPortAclReply.FromString,
                )
        self.RemovePortAcl = channel.unary_unary(
                '/faucetconfserver.FaucetConfServer/RemovePortAcl',
                request_serializer=faucetconfrpc__pb2.RemovePortAclRequest.SerializeToString,
                response_deserializer=faucetconfrpc__pb2.RemovePortAclReply.FromString,
                )


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

    def GetConfigFile(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 SetConfigFile(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 DelConfigFromFile(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 AddPortMirror(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 RemovePortMirror(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 AddPortAcl(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 RemovePortAcl(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_FaucetConfServerServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetConfigFile': grpc.unary_unary_rpc_method_handler(
                    servicer.GetConfigFile,
                    request_deserializer=faucetconfrpc__pb2.GetConfigFileRequest.FromString,
                    response_serializer=faucetconfrpc__pb2.GetConfigFileReply.SerializeToString,
            ),
            'SetConfigFile': grpc.unary_unary_rpc_method_handler(
                    servicer.SetConfigFile,
                    request_deserializer=faucetconfrpc__pb2.SetConfigFileRequest.FromString,
                    response_serializer=faucetconfrpc__pb2.SetConfigFileReply.SerializeToString,
            ),
            'DelConfigFromFile': grpc.unary_unary_rpc_method_handler(
                    servicer.DelConfigFromFile,
                    request_deserializer=faucetconfrpc__pb2.DelConfigFromFileRequest.FromString,
                    response_serializer=faucetconfrpc__pb2.DelConfigFromFileReply.SerializeToString,
            ),
            'AddPortMirror': grpc.unary_unary_rpc_method_handler(
                    servicer.AddPortMirror,
                    request_deserializer=faucetconfrpc__pb2.AddPortMirrorRequest.FromString,
                    response_serializer=faucetconfrpc__pb2.AddPortMirrorReply.SerializeToString,
            ),
            'RemovePortMirror': grpc.unary_unary_rpc_method_handler(
                    servicer.RemovePortMirror,
                    request_deserializer=faucetconfrpc__pb2.RemovePortMirrorRequest.FromString,
                    response_serializer=faucetconfrpc__pb2.RemovePortMirrorReply.SerializeToString,
            ),
            'AddPortAcl': grpc.unary_unary_rpc_method_handler(
                    servicer.AddPortAcl,
                    request_deserializer=faucetconfrpc__pb2.AddPortAclRequest.FromString,
                    response_serializer=faucetconfrpc__pb2.AddPortAclReply.SerializeToString,
            ),
            'RemovePortAcl': grpc.unary_unary_rpc_method_handler(
                    servicer.RemovePortAcl,
                    request_deserializer=faucetconfrpc__pb2.RemovePortAclRequest.FromString,
                    response_serializer=faucetconfrpc__pb2.RemovePortAclReply.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'faucetconfserver.FaucetConfServer', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def GetConfigFile(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/faucetconfserver.FaucetConfServer/GetConfigFile',
            faucetconfrpc__pb2.GetConfigFileRequest.SerializeToString,
            faucetconfrpc__pb2.GetConfigFileReply.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def SetConfigFile(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/faucetconfserver.FaucetConfServer/SetConfigFile',
            faucetconfrpc__pb2.SetConfigFileRequest.SerializeToString,
            faucetconfrpc__pb2.SetConfigFileReply.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DelConfigFromFile(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/faucetconfserver.FaucetConfServer/DelConfigFromFile',
            faucetconfrpc__pb2.DelConfigFromFileRequest.SerializeToString,
            faucetconfrpc__pb2.DelConfigFromFileReply.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def AddPortMirror(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/faucetconfserver.FaucetConfServer/AddPortMirror',
            faucetconfrpc__pb2.AddPortMirrorRequest.SerializeToString,
            faucetconfrpc__pb2.AddPortMirrorReply.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def RemovePortMirror(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/faucetconfserver.FaucetConfServer/RemovePortMirror',
            faucetconfrpc__pb2.RemovePortMirrorRequest.SerializeToString,
            faucetconfrpc__pb2.RemovePortMirrorReply.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def AddPortAcl(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/faucetconfserver.FaucetConfServer/AddPortAcl',
            faucetconfrpc__pb2.AddPortAclRequest.SerializeToString,
            faucetconfrpc__pb2.AddPortAclReply.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def RemovePortAcl(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/faucetconfserver.FaucetConfServer/RemovePortAcl',
            faucetconfrpc__pb2.RemovePortAclRequest.SerializeToString,
            faucetconfrpc__pb2.RemovePortAclReply.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)
