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

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

from .common_pb2 import (
    Date as org___xrpl___rpc___v1___common_pb2___Date,
)

from .ledger_pb2 import (
    LedgerRange as org___xrpl___rpc___v1___ledger_pb2___LedgerRange,
)

from .meta_pb2 import (
    Meta as org___xrpl___rpc___v1___meta_pb2___Meta,
)

from .transaction_pb2 import (
    Transaction as org___xrpl___rpc___v1___transaction_pb2___Transaction,
)

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

from typing_extensions import (
    Literal as typing_extensions___Literal,
)


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


DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...

class GetTransactionRequest(google___protobuf___message___Message):
    DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
    hash: builtin___bytes = ...
    binary: builtin___bool = ...
    client_ip: typing___Text = ...

    @property
    def ledger_range(self) -> org___xrpl___rpc___v1___ledger_pb2___LedgerRange: ...

    def __init__(self,
        *,
        hash : typing___Optional[builtin___bytes] = None,
        binary : typing___Optional[builtin___bool] = None,
        ledger_range : typing___Optional[org___xrpl___rpc___v1___ledger_pb2___LedgerRange] = None,
        client_ip : typing___Optional[typing___Text] = None,
        ) -> None: ...
    if sys.version_info >= (3,):
        @classmethod
        def FromString(cls, s: builtin___bytes) -> GetTransactionRequest: ...
    else:
        @classmethod
        def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> GetTransactionRequest: ...
    def HasField(self, field_name: typing_extensions___Literal[u"ledger_range",b"ledger_range"]) -> builtin___bool: ...
    def ClearField(self, field_name: typing_extensions___Literal[u"binary",b"binary",u"client_ip",b"client_ip",u"hash",b"hash",u"ledger_range",b"ledger_range"]) -> None: ...
type___GetTransactionRequest = GetTransactionRequest

class GetTransactionResponse(google___protobuf___message___Message):
    DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
    transaction_binary: builtin___bytes = ...
    ledger_index: builtin___int = ...
    hash: builtin___bytes = ...
    validated: builtin___bool = ...
    meta_binary: builtin___bytes = ...

    @property
    def transaction(self) -> org___xrpl___rpc___v1___transaction_pb2___Transaction: ...

    @property
    def meta(self) -> org___xrpl___rpc___v1___meta_pb2___Meta: ...

    @property
    def date(self) -> org___xrpl___rpc___v1___common_pb2___Date: ...

    def __init__(self,
        *,
        transaction : typing___Optional[org___xrpl___rpc___v1___transaction_pb2___Transaction] = None,
        transaction_binary : typing___Optional[builtin___bytes] = None,
        ledger_index : typing___Optional[builtin___int] = None,
        hash : typing___Optional[builtin___bytes] = None,
        validated : typing___Optional[builtin___bool] = None,
        meta : typing___Optional[org___xrpl___rpc___v1___meta_pb2___Meta] = None,
        meta_binary : typing___Optional[builtin___bytes] = None,
        date : typing___Optional[org___xrpl___rpc___v1___common_pb2___Date] = None,
        ) -> None: ...
    if sys.version_info >= (3,):
        @classmethod
        def FromString(cls, s: builtin___bytes) -> GetTransactionResponse: ...
    else:
        @classmethod
        def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> GetTransactionResponse: ...
    def HasField(self, field_name: typing_extensions___Literal[u"date",b"date",u"meta",b"meta",u"meta_binary",b"meta_binary",u"serialized_meta",b"serialized_meta",u"serialized_transaction",b"serialized_transaction",u"transaction",b"transaction",u"transaction_binary",b"transaction_binary"]) -> builtin___bool: ...
    def ClearField(self, field_name: typing_extensions___Literal[u"date",b"date",u"hash",b"hash",u"ledger_index",b"ledger_index",u"meta",b"meta",u"meta_binary",b"meta_binary",u"serialized_meta",b"serialized_meta",u"serialized_transaction",b"serialized_transaction",u"transaction",b"transaction",u"transaction_binary",b"transaction_binary",u"validated",b"validated"]) -> None: ...
    @typing___overload
    def WhichOneof(self, oneof_group: typing_extensions___Literal[u"serialized_meta",b"serialized_meta"]) -> typing_extensions___Literal["meta","meta_binary"]: ...
    @typing___overload
    def WhichOneof(self, oneof_group: typing_extensions___Literal[u"serialized_transaction",b"serialized_transaction"]) -> typing_extensions___Literal["transaction","transaction_binary"]: ...
type___GetTransactionResponse = GetTransactionResponse
