# @generated by generate_proto_mypy_stubs.py.  Do not edit!
import sys
from google.protobuf.descriptor import (
    Descriptor as google___protobuf___descriptor___Descriptor,
)

from google.protobuf.message import (
    Message as google___protobuf___message___Message,
)

from .payment_pb2 import (
    Payment as payment_pb2___Payment,
)

from typing import (
    Optional as typing___Optional,
    Text as typing___Text,
    Union as typing___Union,
)

from typing_extensions import (
    Literal as typing_extensions___Literal,
)

from .xrp_amount_pb2 import (
    XRPAmount as xrp_amount_pb2___XRPAmount,
)


builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
if sys.version_info < (3,):
    builtin___buffer = buffer
    builtin___unicode = unicode


class Transaction(google___protobuf___message___Message):
    DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
    account = ... # type: typing___Text
    sequence = ... # type: builtin___int
    signing_public_key_hex = ... # type: typing___Text
    last_ledger_sequence = ... # type: builtin___int

    @property
    def fee(self) -> xrp_amount_pb2___XRPAmount: ...

    @property
    def payment(self) -> payment_pb2___Payment: ...

    def __init__(self,
        *,
        account : typing___Optional[typing___Text] = None,
        fee : typing___Optional[xrp_amount_pb2___XRPAmount] = None,
        sequence : typing___Optional[builtin___int] = None,
        payment : typing___Optional[payment_pb2___Payment] = None,
        signing_public_key_hex : typing___Optional[typing___Text] = None,
        last_ledger_sequence : typing___Optional[builtin___int] = None,
        ) -> None: ...
    if sys.version_info >= (3,):
        @classmethod
        def FromString(cls, s: builtin___bytes) -> Transaction: ...
    else:
        @classmethod
        def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> Transaction: ...
    def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    if sys.version_info >= (3,):
        def HasField(self, field_name: typing_extensions___Literal[u"fee",u"payment",u"transaction_data"]) -> builtin___bool: ...
        def ClearField(self, field_name: typing_extensions___Literal[u"account",u"fee",u"last_ledger_sequence",u"payment",u"sequence",u"signing_public_key_hex",u"transaction_data"]) -> None: ...
    else:
        def HasField(self, field_name: typing_extensions___Literal[u"fee",b"fee",u"payment",b"payment",u"transaction_data",b"transaction_data"]) -> builtin___bool: ...
        def ClearField(self, field_name: typing_extensions___Literal[u"account",b"account",u"fee",b"fee",u"last_ledger_sequence",b"last_ledger_sequence",u"payment",b"payment",u"sequence",b"sequence",u"signing_public_key_hex",b"signing_public_key_hex",u"transaction_data",b"transaction_data"]) -> None: ...
    def WhichOneof(self, oneof_group: typing_extensions___Literal[u"transaction_data",b"transaction_data"]) -> typing_extensions___Literal["payment"]: ...
