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

from ..proto import base_pb2 as proto_dot_base__pb2
from ..proto import module_pb2 as proto_dot_module__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetMainModuleBase = channel.unary_unary(
                '/module.Module/GetMainModuleBase',
                request_serializer=proto_dot_base__pb2.Empty.SerializeToString,
                response_deserializer=proto_dot_base__pb2.Address.FromString,
                )
        self.GetMainModuleSize = channel.unary_unary(
                '/module.Module/GetMainModuleSize',
                request_serializer=proto_dot_base__pb2.Empty.SerializeToString,
                response_deserializer=proto_dot_base__pb2.UnsignedNumberValue.FromString,
                )
        self.GetMainModuleEntry = channel.unary_unary(
                '/module.Module/GetMainModuleEntry',
                request_serializer=proto_dot_base__pb2.Empty.SerializeToString,
                response_deserializer=proto_dot_base__pb2.Address.FromString,
                )
        self.GetList = channel.unary_unary(
                '/module.Module/GetList',
                request_serializer=proto_dot_base__pb2.Empty.SerializeToString,
                response_deserializer=proto_dot_module__pb2.ModulesList.FromString,
                )


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

    def GetMainModuleBase(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 GetMainModuleSize(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 GetMainModuleEntry(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 GetList(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_ModuleServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetMainModuleBase': grpc.unary_unary_rpc_method_handler(
                    servicer.GetMainModuleBase,
                    request_deserializer=proto_dot_base__pb2.Empty.FromString,
                    response_serializer=proto_dot_base__pb2.Address.SerializeToString,
            ),
            'GetMainModuleSize': grpc.unary_unary_rpc_method_handler(
                    servicer.GetMainModuleSize,
                    request_deserializer=proto_dot_base__pb2.Empty.FromString,
                    response_serializer=proto_dot_base__pb2.UnsignedNumberValue.SerializeToString,
            ),
            'GetMainModuleEntry': grpc.unary_unary_rpc_method_handler(
                    servicer.GetMainModuleEntry,
                    request_deserializer=proto_dot_base__pb2.Empty.FromString,
                    response_serializer=proto_dot_base__pb2.Address.SerializeToString,
            ),
            'GetList': grpc.unary_unary_rpc_method_handler(
                    servicer.GetList,
                    request_deserializer=proto_dot_base__pb2.Empty.FromString,
                    response_serializer=proto_dot_module__pb2.ModulesList.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'module.Module', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def GetMainModuleBase(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, '/module.Module/GetMainModuleBase',
            proto_dot_base__pb2.Empty.SerializeToString,
            proto_dot_base__pb2.Address.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetMainModuleSize(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, '/module.Module/GetMainModuleSize',
            proto_dot_base__pb2.Empty.SerializeToString,
            proto_dot_base__pb2.UnsignedNumberValue.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetMainModuleEntry(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, '/module.Module/GetMainModuleEntry',
            proto_dot_base__pb2.Empty.SerializeToString,
            proto_dot_base__pb2.Address.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetList(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, '/module.Module/GetList',
            proto_dot_base__pb2.Empty.SerializeToString,
            proto_dot_module__pb2.ModulesList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
