# 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 bridgemain_pb2 as proto_dot_bridgemain__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.DbgCmdExec = channel.unary_unary(
                '/bridgemain.BridgeMain/DbgCmdExec',
                request_serializer=proto_dot_base__pb2.String.SerializeToString,
                response_deserializer=proto_dot_base__pb2.Boolean.FromString,
                )
        self.DbgCmdExecDirect = channel.unary_unary(
                '/bridgemain.BridgeMain/DbgCmdExecDirect',
                request_serializer=proto_dot_base__pb2.String.SerializeToString,
                response_deserializer=proto_dot_base__pb2.Boolean.FromString,
                )
        self.DbgEval = channel.unary_unary(
                '/bridgemain.BridgeMain/DbgEval',
                request_serializer=proto_dot_base__pb2.String.SerializeToString,
                response_deserializer=proto_dot_bridgemain__pb2.DbgExprValue.FromString,
                )
        self.GuiCloseApplication = channel.unary_unary(
                '/bridgemain.BridgeMain/GuiCloseApplication',
                request_serializer=proto_dot_base__pb2.Empty.SerializeToString,
                response_deserializer=proto_dot_base__pb2.Empty.FromString,
                )
        self.DbgGetBpList = channel.unary_unary(
                '/bridgemain.BridgeMain/DbgGetBpList',
                request_serializer=proto_dot_base__pb2.Empty.SerializeToString,
                response_deserializer=proto_dot_bridgemain__pb2.BPList.FromString,
                )
        self.DbgGetRegDumpEx = channel.unary_unary(
                '/bridgemain.BridgeMain/DbgGetRegDumpEx',
                request_serializer=proto_dot_base__pb2.Empty.SerializeToString,
                response_deserializer=proto_dot_bridgemain__pb2.RegDump.FromString,
                )


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

    def DbgCmdExec(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 DbgCmdExecDirect(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 DbgEval(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 GuiCloseApplication(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 DbgGetBpList(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 DbgGetRegDumpEx(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_BridgeMainServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'DbgCmdExec': grpc.unary_unary_rpc_method_handler(
                    servicer.DbgCmdExec,
                    request_deserializer=proto_dot_base__pb2.String.FromString,
                    response_serializer=proto_dot_base__pb2.Boolean.SerializeToString,
            ),
            'DbgCmdExecDirect': grpc.unary_unary_rpc_method_handler(
                    servicer.DbgCmdExecDirect,
                    request_deserializer=proto_dot_base__pb2.String.FromString,
                    response_serializer=proto_dot_base__pb2.Boolean.SerializeToString,
            ),
            'DbgEval': grpc.unary_unary_rpc_method_handler(
                    servicer.DbgEval,
                    request_deserializer=proto_dot_base__pb2.String.FromString,
                    response_serializer=proto_dot_bridgemain__pb2.DbgExprValue.SerializeToString,
            ),
            'GuiCloseApplication': grpc.unary_unary_rpc_method_handler(
                    servicer.GuiCloseApplication,
                    request_deserializer=proto_dot_base__pb2.Empty.FromString,
                    response_serializer=proto_dot_base__pb2.Empty.SerializeToString,
            ),
            'DbgGetBpList': grpc.unary_unary_rpc_method_handler(
                    servicer.DbgGetBpList,
                    request_deserializer=proto_dot_base__pb2.Empty.FromString,
                    response_serializer=proto_dot_bridgemain__pb2.BPList.SerializeToString,
            ),
            'DbgGetRegDumpEx': grpc.unary_unary_rpc_method_handler(
                    servicer.DbgGetRegDumpEx,
                    request_deserializer=proto_dot_base__pb2.Empty.FromString,
                    response_serializer=proto_dot_bridgemain__pb2.RegDump.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'bridgemain.BridgeMain', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def DbgCmdExec(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, '/bridgemain.BridgeMain/DbgCmdExec',
            proto_dot_base__pb2.String.SerializeToString,
            proto_dot_base__pb2.Boolean.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DbgCmdExecDirect(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, '/bridgemain.BridgeMain/DbgCmdExecDirect',
            proto_dot_base__pb2.String.SerializeToString,
            proto_dot_base__pb2.Boolean.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DbgEval(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, '/bridgemain.BridgeMain/DbgEval',
            proto_dot_base__pb2.String.SerializeToString,
            proto_dot_bridgemain__pb2.DbgExprValue.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

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

    @staticmethod
    def DbgGetBpList(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, '/bridgemain.BridgeMain/DbgGetBpList',
            proto_dot_base__pb2.Empty.SerializeToString,
            proto_dot_bridgemain__pb2.BPList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DbgGetRegDumpEx(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, '/bridgemain.BridgeMain/DbgGetRegDumpEx',
            proto_dot_base__pb2.Empty.SerializeToString,
            proto_dot_bridgemain__pb2.RegDump.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
