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

from x.fx.gravity.v1 import tx_pb2 as fx_dot_gravity_dot_v1_dot_tx__pb2


class MsgStub(object):
    """Msg defines the state transitions possible within gravity
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.ValsetConfirm = channel.unary_unary(
                '/fx.gravity.v1.Msg/ValsetConfirm',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetConfirm.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetConfirmResponse.FromString,
                )
        self.SendToEth = channel.unary_unary(
                '/fx.gravity.v1.Msg/SendToEth',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSendToEth.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSendToEthResponse.FromString,
                )
        self.RequestBatch = channel.unary_unary(
                '/fx.gravity.v1.Msg/RequestBatch',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgRequestBatch.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgRequestBatchResponse.FromString,
                )
        self.ConfirmBatch = channel.unary_unary(
                '/fx.gravity.v1.Msg/ConfirmBatch',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgConfirmBatch.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgConfirmBatchResponse.FromString,
                )
        self.DepositClaim = channel.unary_unary(
                '/fx.gravity.v1.Msg/DepositClaim',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgDepositClaim.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgDepositClaimResponse.FromString,
                )
        self.WithdrawClaim = channel.unary_unary(
                '/fx.gravity.v1.Msg/WithdrawClaim',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgWithdrawClaim.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgWithdrawClaimResponse.FromString,
                )
        self.ValsetUpdateClaim = channel.unary_unary(
                '/fx.gravity.v1.Msg/ValsetUpdateClaim',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetUpdatedClaim.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetUpdatedClaimResponse.FromString,
                )
        self.SetOrchestratorAddress = channel.unary_unary(
                '/fx.gravity.v1.Msg/SetOrchestratorAddress',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSetOrchestratorAddress.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSetOrchestratorAddressResponse.FromString,
                )
        self.CancelSendToEth = channel.unary_unary(
                '/fx.gravity.v1.Msg/CancelSendToEth',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgCancelSendToEth.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgCancelSendToEthResponse.FromString,
                )
        self.FxOriginatedTokenClaim = channel.unary_unary(
                '/fx.gravity.v1.Msg/FxOriginatedTokenClaim',
                request_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgFxOriginatedTokenClaim.SerializeToString,
                response_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgFxOriginatedTokenClaimResponse.FromString,
                )


class MsgServicer(object):
    """Msg defines the state transitions possible within gravity
    """

    def ValsetConfirm(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 SendToEth(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 RequestBatch(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 ConfirmBatch(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 DepositClaim(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 WithdrawClaim(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 ValsetUpdateClaim(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 SetOrchestratorAddress(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 CancelSendToEth(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 FxOriginatedTokenClaim(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_MsgServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'ValsetConfirm': grpc.unary_unary_rpc_method_handler(
                    servicer.ValsetConfirm,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetConfirm.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetConfirmResponse.SerializeToString,
            ),
            'SendToEth': grpc.unary_unary_rpc_method_handler(
                    servicer.SendToEth,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSendToEth.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSendToEthResponse.SerializeToString,
            ),
            'RequestBatch': grpc.unary_unary_rpc_method_handler(
                    servicer.RequestBatch,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgRequestBatch.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgRequestBatchResponse.SerializeToString,
            ),
            'ConfirmBatch': grpc.unary_unary_rpc_method_handler(
                    servicer.ConfirmBatch,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgConfirmBatch.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgConfirmBatchResponse.SerializeToString,
            ),
            'DepositClaim': grpc.unary_unary_rpc_method_handler(
                    servicer.DepositClaim,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgDepositClaim.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgDepositClaimResponse.SerializeToString,
            ),
            'WithdrawClaim': grpc.unary_unary_rpc_method_handler(
                    servicer.WithdrawClaim,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgWithdrawClaim.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgWithdrawClaimResponse.SerializeToString,
            ),
            'ValsetUpdateClaim': grpc.unary_unary_rpc_method_handler(
                    servicer.ValsetUpdateClaim,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetUpdatedClaim.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetUpdatedClaimResponse.SerializeToString,
            ),
            'SetOrchestratorAddress': grpc.unary_unary_rpc_method_handler(
                    servicer.SetOrchestratorAddress,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSetOrchestratorAddress.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSetOrchestratorAddressResponse.SerializeToString,
            ),
            'CancelSendToEth': grpc.unary_unary_rpc_method_handler(
                    servicer.CancelSendToEth,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgCancelSendToEth.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgCancelSendToEthResponse.SerializeToString,
            ),
            'FxOriginatedTokenClaim': grpc.unary_unary_rpc_method_handler(
                    servicer.FxOriginatedTokenClaim,
                    request_deserializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgFxOriginatedTokenClaim.FromString,
                    response_serializer=fx_dot_gravity_dot_v1_dot_tx__pb2.MsgFxOriginatedTokenClaimResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'fx.gravity.v1.Msg', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class Msg(object):
    """Msg defines the state transitions possible within gravity
    """

    @staticmethod
    def ValsetConfirm(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, '/fx.gravity.v1.Msg/ValsetConfirm',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetConfirm.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetConfirmResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def SendToEth(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, '/fx.gravity.v1.Msg/SendToEth',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSendToEth.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSendToEthResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def RequestBatch(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, '/fx.gravity.v1.Msg/RequestBatch',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgRequestBatch.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgRequestBatchResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ConfirmBatch(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, '/fx.gravity.v1.Msg/ConfirmBatch',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgConfirmBatch.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgConfirmBatchResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DepositClaim(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, '/fx.gravity.v1.Msg/DepositClaim',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgDepositClaim.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgDepositClaimResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def WithdrawClaim(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, '/fx.gravity.v1.Msg/WithdrawClaim',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgWithdrawClaim.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgWithdrawClaimResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ValsetUpdateClaim(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, '/fx.gravity.v1.Msg/ValsetUpdateClaim',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetUpdatedClaim.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgValsetUpdatedClaimResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def SetOrchestratorAddress(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, '/fx.gravity.v1.Msg/SetOrchestratorAddress',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSetOrchestratorAddress.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgSetOrchestratorAddressResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CancelSendToEth(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, '/fx.gravity.v1.Msg/CancelSendToEth',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgCancelSendToEth.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgCancelSendToEthResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def FxOriginatedTokenClaim(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, '/fx.gravity.v1.Msg/FxOriginatedTokenClaim',
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgFxOriginatedTokenClaim.SerializeToString,
            fx_dot_gravity_dot_v1_dot_tx__pb2.MsgFxOriginatedTokenClaimResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
