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

from net.happygears.proto import NSGPythonSDK_pb2 as net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2
from net.happygears.proto import NSG_pb2 as net_dot_happygears_dot_proto_dot_NSG__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.Heartbeat = channel.unary_unary(
                '/net.happygears.proto.nsg_python_sdk.Lifecycle/Heartbeat',
                request_serializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.ServiceInfo.SerializeToString,
                response_deserializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.StatusResp.FromString,
                )


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

    def Heartbeat(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_LifecycleServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Heartbeat': grpc.unary_unary_rpc_method_handler(
                    servicer.Heartbeat,
                    request_deserializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.ServiceInfo.FromString,
                    response_serializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.StatusResp.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'net.happygears.proto.nsg_python_sdk.Lifecycle', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def Heartbeat(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, '/net.happygears.proto.nsg_python_sdk.Lifecycle/Heartbeat',
            net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.ServiceInfo.SerializeToString,
            net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.StatusResp.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.Tags = channel.unary_unary(
                '/net.happygears.proto.nsg_python_sdk.AppRequest/Tags',
                request_serializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.TagsAppRequest.SerializeToString,
                response_deserializer=net_dot_happygears_dot_proto_dot_NSG__pb2.TagUpdateJournalV2.FromString,
                )
        self.Variables = channel.unary_unary(
                '/net.happygears.proto.nsg_python_sdk.AppRequest/Variables',
                request_serializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.VariablesAppRequest.SerializeToString,
                response_deserializer=net_dot_happygears_dot_proto_dot_NSG__pb2.PollingVariableMap.FromString,
                )
        self.Views = channel.unary_unary(
                '/net.happygears.proto.nsg_python_sdk.AppRequest/Views',
                request_serializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.ViewsAppRequest.SerializeToString,
                response_deserializer=net_dot_happygears_dot_proto_dot_NSG__pb2.ViewAssignments.FromString,
                )


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

    def Tags(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 Variables(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 Views(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_AppRequestServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Tags': grpc.unary_unary_rpc_method_handler(
                    servicer.Tags,
                    request_deserializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.TagsAppRequest.FromString,
                    response_serializer=net_dot_happygears_dot_proto_dot_NSG__pb2.TagUpdateJournalV2.SerializeToString,
            ),
            'Variables': grpc.unary_unary_rpc_method_handler(
                    servicer.Variables,
                    request_deserializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.VariablesAppRequest.FromString,
                    response_serializer=net_dot_happygears_dot_proto_dot_NSG__pb2.PollingVariableMap.SerializeToString,
            ),
            'Views': grpc.unary_unary_rpc_method_handler(
                    servicer.Views,
                    request_deserializer=net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.ViewsAppRequest.FromString,
                    response_serializer=net_dot_happygears_dot_proto_dot_NSG__pb2.ViewAssignments.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'net.happygears.proto.nsg_python_sdk.AppRequest', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def Tags(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, '/net.happygears.proto.nsg_python_sdk.AppRequest/Tags',
            net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.TagsAppRequest.SerializeToString,
            net_dot_happygears_dot_proto_dot_NSG__pb2.TagUpdateJournalV2.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Variables(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, '/net.happygears.proto.nsg_python_sdk.AppRequest/Variables',
            net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.VariablesAppRequest.SerializeToString,
            net_dot_happygears_dot_proto_dot_NSG__pb2.PollingVariableMap.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Views(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, '/net.happygears.proto.nsg_python_sdk.AppRequest/Views',
            net_dot_happygears_dot_proto_dot_NSGPythonSDK__pb2.ViewsAppRequest.SerializeToString,
            net_dot_happygears_dot_proto_dot_NSG__pb2.ViewAssignments.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
