Ejemplo n.º 1
0
class ContentDeltaChunksDeltaChunk(betterproto.Message):
    sha_source: bytes = betterproto.bytes_field(1)
    sha_target: bytes = betterproto.bytes_field(2)
    size_original: int = betterproto.uint32_field(3)
    patch_method: int = betterproto.uint32_field(4)
    chunk: bytes = betterproto.bytes_field(5)
    size_delta: int = betterproto.uint32_field(6)
Ejemplo n.º 2
0
class TypedValue(betterproto.Message):
    """
    TypedValue is used to encode a value being sent between the client and
    target (originated by either entity).
    """

    string_val: str = betterproto.string_field(1, group="value")
    int_val: int = betterproto.int64_field(2, group="value")
    uint_val: int = betterproto.uint64_field(3, group="value")
    bool_val: bool = betterproto.bool_field(4, group="value")
    bytes_val: bytes = betterproto.bytes_field(5, group="value")
    float_val: float = betterproto.float_field(6, group="value")
    decimal_val: "Decimal64" = betterproto.message_field(7, group="value")
    leaflist_val: "ScalarArray" = betterproto.message_field(8, group="value")
    any_val: "betterproto_lib_google_protobuf.Any" = betterproto.message_field(
        9, group="value")
    json_val: bytes = betterproto.bytes_field(10, group="value")
    json_ietf_val: bytes = betterproto.bytes_field(11, group="value")
    ascii_val: str = betterproto.string_field(12, group="value")
    # Protobuf binary encoded bytes. The message type is not included. See the
    # specification at
    # github.com/openconfig/reference/blob/master/rpc/gnmi/protobuf-vals.md for a
    # complete specification.
    proto_bytes: bytes = betterproto.bytes_field(13, group="value")

    def __post_init__(self) -> None:
        super().__post_init__()
Ejemplo n.º 3
0
class CMsgClientLogonResponse(betterproto.Message):
    eresult: int = betterproto.int32_field(1)
    out_of_game_heartbeat_seconds: int = betterproto.int32_field(2)
    in_game_heartbeat_seconds: int = betterproto.int32_field(3)
    deprecated_public_ip: int = betterproto.uint32_field(4)
    rtime32_server_time: int = betterproto.fixed32_field(5)
    account_flags: int = betterproto.uint32_field(6)
    cell_id: int = betterproto.uint32_field(7)
    email_domain: str = betterproto.string_field(8)
    steam2_ticket: bytes = betterproto.bytes_field(9)
    eresult_extended: int = betterproto.int32_field(10)
    webapi_authenticate_user_nonce: str = betterproto.string_field(11)
    cell_id_ping_threshold: int = betterproto.uint32_field(12)
    deprecated_use_pics: bool = betterproto.bool_field(13)
    vanity_url: str = betterproto.string_field(14)
    public_ip: CMsgIpAddress = betterproto.message_field(15)
    client_supplied_steamid: int = betterproto.fixed64_field(20)
    ip_country_code: str = betterproto.string_field(21)
    parental_settings: bytes = betterproto.bytes_field(22)
    parental_setting_signature: bytes = betterproto.bytes_field(23)
    count_loginfailures_to_migrate: int = betterproto.int32_field(24)
    count_disconnects_to_migrate: int = betterproto.int32_field(25)
    ogs_data_report_time_window: int = betterproto.int32_field(26)
    client_instance_id: int = betterproto.uint64_field(27)
    force_client_update_check: bool = betterproto.bool_field(28)
    agreement_session_url: str = betterproto.string_field(29)
Ejemplo n.º 4
0
class CMsgClientP2PConnectionInfo(betterproto.Message):
    steam_id_dest: int = betterproto.fixed64_field(1)
    steam_id_src: int = betterproto.fixed64_field(2)
    app_id: int = betterproto.uint32_field(3)
    candidate: bytes = betterproto.bytes_field(4)
    legacy_connection_id_src: int = betterproto.fixed64_field(5)
    rendezvous: bytes = betterproto.bytes_field(6)
Ejemplo n.º 5
0
class CMsgClientPICSProductInfoResponsePackageInfo(betterproto.Message):
    packageid: int = betterproto.uint32_field(1)
    change_number: int = betterproto.uint32_field(2)
    missing_token: bool = betterproto.bool_field(3)
    sha: bytes = betterproto.bytes_field(4)
    buffer: bytes = betterproto.bytes_field(5)
    size: int = betterproto.uint32_field(6)
Ejemplo n.º 6
0
class CMsgClientGamesPlayedGamePlayed(betterproto.Message):
    steam_id_gs: int = betterproto.uint64_field(1)
    game_id: int = betterproto.fixed64_field(2)
    deprecated_game_ip_address: int = betterproto.uint32_field(3)
    game_port: int = betterproto.uint32_field(4)
    is_secure: bool = betterproto.bool_field(5)
    token: bytes = betterproto.bytes_field(6)
    game_extra_info: str = betterproto.string_field(7)
    game_data_blob: bytes = betterproto.bytes_field(8)
    process_id: int = betterproto.uint32_field(9)
    streaming_provider_id: int = betterproto.uint32_field(10)
    game_flags: int = betterproto.uint32_field(11)
    owner_id: int = betterproto.uint32_field(12)
    vr_hmd_vendor: str = betterproto.string_field(13)
    vr_hmd_model: str = betterproto.string_field(14)
    launch_option_type: int = betterproto.uint32_field(15)
    primary_controller_type: int = betterproto.int32_field(16)
    primary_steam_controller_serial: str = betterproto.string_field(17)
    total_steam_controller_count: int = betterproto.uint32_field(18)
    total_non_steam_controller_count: int = betterproto.uint32_field(19)
    controller_workshop_file_id: int = betterproto.uint64_field(20)
    launch_source: int = betterproto.uint32_field(21)
    vr_hmd_runtime: int = betterproto.uint32_field(22)
    game_ip_address: CMsgIpAddress = betterproto.message_field(23)
    controller_connection_type: int = betterproto.uint32_field(24)
Ejemplo n.º 7
0
class PackRequest(betterproto.Message):
    sender_key: "__keys_v1__.JsonWebKey" = betterproto.message_field(1)
    receiver_key: "__keys_v1__.JsonWebKey" = betterproto.message_field(2)
    associated_data: bytes = betterproto.bytes_field(3)
    plaintext: bytes = betterproto.bytes_field(4)
    mode: "___pbmse_v1__.EncryptionMode" = betterproto.enum_field(5)
    algorithm: "___pbmse_v1__.EncryptionAlgorithm" = betterproto.enum_field(6)
Ejemplo n.º 8
0
class CreateOberonProofRequest(betterproto.Message):
    """Create a proof that holder knows the token"""

    data: bytes = betterproto.bytes_field(1)
    token: bytes = betterproto.bytes_field(2)
    blinding: List[bytes] = betterproto.bytes_field(3)
    nonce: bytes = betterproto.bytes_field(4)
Ejemplo n.º 9
0
class VerifyOberonProofRequest(betterproto.Message):
    """Verify the presented proof is valid"""

    proof: bytes = betterproto.bytes_field(1)
    data: bytes = betterproto.bytes_field(2)
    nonce: bytes = betterproto.bytes_field(3)
    pk: bytes = betterproto.bytes_field(4)
Ejemplo n.º 10
0
class EventResponse(betterproto.Message):
    header: headers.ResponseHeader = betterproto.message_field(1)
    type: "EventResponseType" = betterproto.enum_field(2)
    previous_value: bytes = betterproto.bytes_field(3)
    previous_version: int = betterproto.uint64_field(4)
    new_value: bytes = betterproto.bytes_field(5)
    new_version: int = betterproto.uint64_field(6)
Ejemplo n.º 11
0
class Transaction(betterproto.Message):
    # See Wallet.java for detailed description of pool semantics
    version: int = betterproto.int32_field(1)
    hash: bytes = betterproto.bytes_field(2)
    # If pool is not present, that means either:  - This Transaction is either
    # not in a wallet at all (the proto is re-used elsewhere)  - Or it is stored
    # but for other purposes, for example, because it is the overriding
    # transaction of a double spend.  - Or the Pool enum got a new value which
    # your software is too old to parse.
    pool: "TransactionPool" = betterproto.enum_field(3)
    lock_time: int = betterproto.uint32_field(4)
    updated_at: int = betterproto.int64_field(5)
    transaction_input: List["TransactionInput"] = betterproto.message_field(6)
    transaction_output: List["TransactionOutput"] = betterproto.message_field(
        7)
    # A list of blocks in which the transaction has been observed (on any chain).
    # Also, a number used to disambiguate ordering within a block.
    block_hash: List[bytes] = betterproto.bytes_field(8)
    block_relativity_offsets: List[int] = betterproto.int32_field(11)
    # Data describing where the transaction is in the chain.
    confidence: "TransactionConfidence" = betterproto.message_field(9)
    purpose: "TransactionPurpose" = betterproto.enum_field(10)
    # Exchange rate that was valid when the transaction was sent.
    exchange_rate: "ExchangeRate" = betterproto.message_field(12)
    # Memo of the transaction. It can be used to record the memo of the payment
    # request that initiated the transaction.
    memo: str = betterproto.string_field(13)
Ejemplo n.º 12
0
Archivo: map.py Proyecto: emakeev/api
class ReplaceRequest(betterproto.Message):
    header: headers.RequestHeader = betterproto.message_field(1)
    key: str = betterproto.string_field(2)
    previous_value: bytes = betterproto.bytes_field(3)
    previous_version: int = betterproto.uint64_field(4)
    new_value: bytes = betterproto.bytes_field(5)
    ttl: timedelta = betterproto.message_field(6)
Ejemplo n.º 13
0
class Key(betterproto.Message):
    """
    * A key used to control Bitcoin spending. Either the private key, the
    public key or both may be present.  It is recommended that if the private
    key is provided that the public key is provided too because deriving it is
    slow. If only the public key is provided, the key can only be used to watch
    the blockchain and verify transactions, and not for spending.
    """

    type: "KeyType" = betterproto.enum_field(1)
    # Either the private EC key bytes (without any ASN.1 wrapping), or the
    # deterministic root seed. If the secret is encrypted, or this is a "watching
    # entry" then this is missing.
    secret_bytes: bytes = betterproto.bytes_field(2)
    # If the secret data is encrypted, then secret_bytes is missing and this
    # field is set.
    encrypted_data: "EncryptedData" = betterproto.message_field(6)
    # The public EC key derived from the private key. We allow both to be stored
    # to avoid mobile clients having to do lots of slow EC math on startup. For
    # DETERMINISTIC_MNEMONIC entries this is missing.
    public_key: bytes = betterproto.bytes_field(3)
    # User-provided label associated with the key.
    label: str = betterproto.string_field(4)
    # Timestamp stored as millis since epoch. Useful for skipping block bodies
    # before this point. Only reason it's optional is that some very old wallets
    # don't have this data.
    creation_timestamp: int = betterproto.int64_field(5)
    deterministic_key: "DeterministicKey" = betterproto.message_field(7)
    # The seed for a deterministic key hierarchy.  Derived from the mnemonic, but
    # cached here for quick startup.  Only applicable to a DETERMINISTIC_MNEMONIC
    # key entry.
    deterministic_seed: bytes = betterproto.bytes_field(8)
    # Encrypted version of the seed
    encrypted_deterministic_seed: "EncryptedData" = betterproto.message_field(
        9)
Ejemplo n.º 14
0
class CMsgClientPersonaStateFriend(betterproto.Message):
    friendid: int = betterproto.fixed64_field(1)
    persona_state: int = betterproto.uint32_field(2)
    game_played_app_id: int = betterproto.uint32_field(3)
    game_server_ip: int = betterproto.uint32_field(4)
    game_server_port: int = betterproto.uint32_field(5)
    persona_state_flags: int = betterproto.uint32_field(6)
    online_session_instances: int = betterproto.uint32_field(7)
    persona_set_by_user: bool = betterproto.bool_field(10)
    player_name: str = betterproto.string_field(15)
    query_port: int = betterproto.uint32_field(20)
    steamid_source: int = betterproto.fixed64_field(25)
    avatar_hash: bytes = betterproto.bytes_field(31)
    last_logoff: int = betterproto.uint32_field(45)
    last_logon: int = betterproto.uint32_field(46)
    last_seen_online: int = betterproto.uint32_field(47)
    clan_rank: int = betterproto.uint32_field(50)
    game_name: str = betterproto.string_field(55)
    gameid: int = betterproto.fixed64_field(56)
    game_data_blob: bytes = betterproto.bytes_field(60)
    clan_data: "CMsgClientPersonaStateFriendClanData" = betterproto.message_field(
        64)
    clan_tag: str = betterproto.string_field(65)
    rich_presence: List[
        "CMsgClientPersonaStateFriendKv"] = betterproto.message_field(71)
    broadcast_id: int = betterproto.fixed64_field(72)
    game_lobby_id: int = betterproto.fixed64_field(73)
    watching_broadcast_accountid: int = betterproto.uint32_field(74)
    watching_broadcast_appid: int = betterproto.uint32_field(75)
    watching_broadcast_viewers: int = betterproto.uint32_field(76)
    watching_broadcast_title: str = betterproto.string_field(77)
    is_community_banned: bool = betterproto.bool_field(78)
    player_name_pending_review: bool = betterproto.bool_field(79)
    avatar_pending_review: bool = betterproto.bool_field(80)
Ejemplo n.º 15
0
class PayloadFileMapping(betterproto.Message):
    filename: str = betterproto.string_field(1)
    size: int = betterproto.uint64_field(2)
    flags: int = betterproto.uint32_field(3)
    sha_filename: bytes = betterproto.bytes_field(4)
    sha_content: bytes = betterproto.bytes_field(5)
    chunks: List["PayloadFileMappingChunkData"] = betterproto.message_field(6)
    linktarget: str = betterproto.string_field(7)
Ejemplo n.º 16
0
class Account(betterproto.Message):
    address: bytes = betterproto.bytes_field(1)
    balance: int = betterproto.uint64_field(2)
    code: bytes = betterproto.bytes_field(3)
    keys: List["AccountKey"] = betterproto.message_field(4)
    contracts: Dict[str,
                    bytes] = betterproto.map_field(5, betterproto.TYPE_STRING,
                                                   betterproto.TYPE_BYTES)
Ejemplo n.º 17
0
class ControlRequest(betterproto.Message):
    """ControlRequest E2 control request"""

    header: "RequestHeader" = betterproto.message_field(1)
    e2_node_id: str = betterproto.string_field(2)
    control_header: bytes = betterproto.bytes_field(3)
    control_message: bytes = betterproto.bytes_field(4)
    control_ack_request: "ControlAckRequest" = betterproto.enum_field(5)
Ejemplo n.º 18
0
class CMsgClientPICSProductInfoResponseAppInfo(betterproto.Message):
    appid: int = betterproto.uint32_field(1)
    change_number: int = betterproto.uint32_field(2)
    missing_token: bool = betterproto.bool_field(3)
    sha: bytes = betterproto.bytes_field(4)
    buffer: bytes = betterproto.bytes_field(5)
    only_public: bool = betterproto.bool_field(6)
    size: int = betterproto.uint32_field(7)
Ejemplo n.º 19
0
class TransactionOutput(betterproto.Message):
    value: int = betterproto.int64_field(1)
    script_bytes: bytes = betterproto.bytes_field(2)
    # If spent, the hash of the transaction doing the spend.
    spent_by_transaction_hash: bytes = betterproto.bytes_field(3)
    # If spent, the index of the transaction input of the transaction doing the
    # spend.
    spent_by_transaction_index: int = betterproto.int32_field(4)
Ejemplo n.º 20
0
class CMsgClientUFSUploadFileResponse(betterproto.Message):
    eresult: int = betterproto.int32_field(1)
    sha_file: bytes = betterproto.bytes_field(2)
    use_http: bool = betterproto.bool_field(3)
    http_host: str = betterproto.string_field(4)
    http_url: str = betterproto.string_field(5)
    kv_headers: bytes = betterproto.bytes_field(6)
    use_https: bool = betterproto.bool_field(7)
    encrypt_file: bool = betterproto.bool_field(8)
Ejemplo n.º 21
0
class CMsgClientUpdateMachineAuth(betterproto.Message):
    filename: str = betterproto.string_field(1)
    offset: int = betterproto.uint32_field(2)
    cubtowrite: int = betterproto.uint32_field(3)
    bytes_: bytes = betterproto.bytes_field(4)
    otp_type: int = betterproto.uint32_field(5)
    otp_identifier: str = betterproto.string_field(6)
    otp_sharedsecret: bytes = betterproto.bytes_field(7)
    otp_timedrift: int = betterproto.uint32_field(8)
Ejemplo n.º 22
0
class Block(betterproto.Message):
    id: bytes = betterproto.bytes_field(1)
    parent_id: bytes = betterproto.bytes_field(2)
    height: int = betterproto.uint64_field(3)
    timestamp: datetime = betterproto.message_field(4)
    collection_guarantees: List[
        "CollectionGuarantee"] = betterproto.message_field(5)
    block_seals: List["BlockSeal"] = betterproto.message_field(6)
    signatures: List[bytes] = betterproto.bytes_field(7)
Ejemplo n.º 23
0
class CMsgDrmDownloadRequestWithCrashData(betterproto.Message):
    download_flags: int = betterproto.uint32_field(1)
    download_types_known: int = betterproto.uint32_field(2)
    guid_drm: bytes = betterproto.bytes_field(3)
    guid_split: bytes = betterproto.bytes_field(4)
    guid_merge: bytes = betterproto.bytes_field(5)
    module_name: str = betterproto.string_field(6)
    module_path: str = betterproto.string_field(7)
    crash_data: bytes = betterproto.bytes_field(8)
Ejemplo n.º 24
0
class StreamResponse(betterproto.Message):
    """StreamResponse"""

    header: "ResponseHeader" = betterproto.message_field(1)
    indication_header: bytes = betterproto.bytes_field(2)
    indication_message: bytes = betterproto.bytes_field(3)

    def __post_init__(self) -> None:
        super().__post_init__()
class CMsgGCToClientSteamDatagramTicket(betterproto.Message):
    legacy_time_expiry: float = betterproto.fixed32_field(1)
    legacy_authorized_steam_id: float = betterproto.fixed64_field(2)
    legacy_authorized_public_ip: float = betterproto.fixed32_field(3)
    legacy_gameserver_steam_id: float = betterproto.fixed64_field(4)
    legacy_gameserver_net_id: float = betterproto.fixed64_field(5)
    legacy_signature: bytes = betterproto.bytes_field(6)
    legacy_app_id: int = betterproto.uint32_field(7)
    legacy_extra_fields: List[bytes] = betterproto.bytes_field(8)
    serialized_ticket: bytes = betterproto.bytes_field(16)
Ejemplo n.º 26
0
class CMsgClientReadMachineAuthResponse(betterproto.Message):
    filename: str = betterproto.string_field(1)
    eresult: int = betterproto.uint32_field(2)
    filesize: int = betterproto.uint32_field(3)
    sha_file: bytes = betterproto.bytes_field(4)
    getlasterror: int = betterproto.uint32_field(5)
    offset: int = betterproto.uint32_field(6)
    cubread: int = betterproto.uint32_field(7)
    bytes_read: bytes = betterproto.bytes_field(8)
    filename_sentry: str = betterproto.string_field(9)
Ejemplo n.º 27
0
class CMsgClientCheckFileSignatureResponse(betterproto.Message):
    app_id: int = betterproto.uint32_field(1)
    pid: int = betterproto.uint32_field(2)
    eresult: int = betterproto.uint32_field(3)
    filename: str = betterproto.string_field(4)
    esignatureresult: int = betterproto.uint32_field(5)
    sha_file: bytes = betterproto.bytes_field(6)
    signatureheader: bytes = betterproto.bytes_field(7)
    filesize: int = betterproto.uint32_field(8)
    getlasterror: int = betterproto.uint32_field(9)
    evalvesignaturecheckdetail: int = betterproto.uint32_field(10)
Ejemplo n.º 28
0
class CMsgClientServiceCall(betterproto.Message):
    sysid_routing: bytes = betterproto.bytes_field(1)
    call_handle: int = betterproto.uint32_field(2)
    module_crc: int = betterproto.uint32_field(3)
    module_hash: bytes = betterproto.bytes_field(4)
    function_id: int = betterproto.uint32_field(5)
    cub_output_max: int = betterproto.uint32_field(6)
    flags: int = betterproto.uint32_field(7)
    callparameter: bytes = betterproto.bytes_field(8)
    ping_only: bool = betterproto.bool_field(9)
    max_outstanding_calls: int = betterproto.uint32_field(10)
Ejemplo n.º 29
0
class ControlRequest(betterproto.Message):
    """ControlRequest E2 control request"""

    header: "RequestHeader" = betterproto.message_field(1)
    e2_node_id: str = betterproto.string_field(2)
    control_header: bytes = betterproto.bytes_field(3)
    control_message: bytes = betterproto.bytes_field(4)
    control_ack_request: "ControlAckRequest" = betterproto.enum_field(5)

    def __post_init__(self) -> None:
        super().__post_init__()
Ejemplo n.º 30
0
class TransactionInput(betterproto.Message):
    # Hash of the transaction this input is using.
    transaction_out_point_hash: bytes = betterproto.bytes_field(1)
    # Index of transaction output used by this input.
    transaction_out_point_index: int = betterproto.uint32_field(2)
    # Script that contains the signatures/pubkeys.
    script_bytes: bytes = betterproto.bytes_field(3)
    # Sequence number. Currently unused, but intended for contracts in future.
    sequence: int = betterproto.uint32_field(4)
    # Value of connected output, if known
    value: int = betterproto.int64_field(5)