NAME

Google::Cloud::Universalledger::V1::Types - Compiled Protocol Buffers messages for google/cloud/universalledger/v1/types.proto

SYNOPSIS

use Google::Cloud::Universalledger::V1::Types;

my $msg = Google::Cloud::Universalledger::V1::Types::ClientTransaction->new({
    operational => $operational,
    transfer_platform_operator_transaction => $transfer_platform_operator_transaction,
    create_currency_operator_transaction => $create_currency_operator_transaction,
    transfer_currency_operator_transaction => $transfer_currency_operator_transaction,
});

# Read or update a field
my $val = $msg->operational();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Universalledger::V1::Types::ClientTransaction->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/universalledger/v1/types.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Universalledger::V1::Types::ClientTransaction

Represents a transaction initiated by a client.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Universalledger::V1::Types::SignedTransaction

A transaction with attached signatures. To submit a transaction, this message should be serialized and included in a [SubmitTransactionRequest][google.cloud.universalledger.v1.SubmitTransactionRequest].

Inherits from Protobuf::Message.

Accessors

  • $msg->serialized_client_transaction() / $msg->serialized_client_transaction($value)

    Type: Bytes

    Required. A serialized [ClientTransaction][google.cloud.universalledger.v1.ClientTransaction] with the transaction details.

  • $msg->sender_signature() / $msg->sender_signature($value)

    Type: Bytes

    Required. The signature of the transaction sender.

    The signature should be computed by signing the `serialized_client_transaction` bytes with their own private key.

    For a transaction chain, the bytes to be signed are computed as the concatenation of:

    - A digest of the serialized client transaction of the entire chain. - A digest of the serialized signed transaction of each unit in the chain, in the order they appear in the chain.

    The digests are computed using SHA-256.

  • $msg->sender_signing_key_slot() / $msg->sender_signing_key_slot($value)

    Type: Enum (Google::Cloud::Universalledger::V1::KeySlot)

    Optional. The key slot of the sender used to sign the transaction. Uses the primary slot of the sender account if not specified.

  • $msg->other_signatures() / $msg->other_signatures($value)

    Type: Bytes

    Optional. The signatures of accounts listed as additional transaction signatories. The number and order of these signatures must match the `signatories` field in the [ClientTransaction][google.cloud.universalledger.v1.ClientTransaction].

    The bytes to be signed are the same as those for the `sender_signature`, which each signatory should sign with their own private key.

    The number and identity of additional signatories depends on the particular transaction kind. For a transaction chain, one signature is needed for each account appearing either as the sender or as a signatory of a unit in the chain.

  • $msg->other_signing_key_slots() / $msg->other_signing_key_slots($value)

    Type: Enum (Google::Cloud::Universalledger::V1::KeySlot)

    Optional. The key slots of the accounts listed as additional transaction signatories. If set, the number and order of these key slots must match the `other_signatures` field in the [SignedTransaction][google.cloud.universalledger.v1.SignedTransaction]. Defaults to the primary slot of each account if not specified.

Google::Cloud::Universalledger::V1::Types::TransactionChain

A transaction chain including multiple transaction units to execute in sequence.

The units will be executed sequentially, in the order they are listed. If all of the units succeed, their cumulative effects will be committed atomically to the world state. Otherwise, if any of them fails, the whole chain will be failed and none of its effects will be applied.

Inherits from Protobuf::Message.

Accessors

  • $msg->units() / $msg->units($value)

    Type: Bytes

    The individual units of the chain. Each unit must be a serialized [SignedTransaction][google.cloud.universalledger.v1.SignedTransaction].

    Note that the serialized bytes are required in order to determine the bytes to be signed for the chain itself.

Google::Cloud::Universalledger::V1::Types::MerkleTree

A Merkle tree with a cryptographic digest of the root node.

Inherits from Protobuf::Message.

Accessors

  • $msg->root_digest_hex() / $msg->root_digest_hex($value)

    Type: String

    Output only. The hexadecimal representation of the digest of the root node. Format: A 64-character hexadecimal string.

  • $msg->num_transactions() / $msg->num_transactions($value)

    Type: Int64

    Output only. The number of transactions in the tree.

Google::Cloud::Universalledger::V1::Types::RoundCertificate

Certificate of the execution of a round by a specific validator.

Inherits from Protobuf::Message.

Accessors

  • $msg->round_id() / $msg->round_id($value)

    Type: Int64

    Output only. The ID of the round for which the certificate is for.

  • $msg->validator_id() / $msg->validator_id($value)

    Type: String

    Output only. The human readable validator identifier. This is used to look up the public key against which the `validator_signatures` is verified.

  • $msg->round_state_checksum_hex() / $msg->round_state_checksum_hex($value)

    Type: String

    Output only. The hex representation of the homomorphic digest over the world state after the effects of this round are applied.

  • $msg->round_delta_checksum_hex() / $msg->round_delta_checksum_hex($value)

    Type: String

    Output only. The hex representation of the homomorphic digest over the aggregated transaction effects of this round.

  • $msg->merkle_tree() / $msg->merkle_tree($value)

    Type: Message (Google::Cloud::Universalledger::V1::Types::MerkleTree)

    Output only. Merkle tree having this round as root node and transaction batches (executed in the round) as the leaves.

  • $msg->validator_signatures() / $msg->validator_signatures($value)

    Type: Bytes

    Optional. The signature of the validator. This is signed over the digest of the preceding payload of this record.

  • $msg->is_finalized() / $msg->is_finalized($value)

    Type: Bool

    Output only. Boolean to indicate if the round is finalized, i.e., whether a sufficient quorum of validators have certified this round with the same certificate.

Google::Cloud::Universalledger::V1::Types::TransactionEffect

Represents an update by some transaction to the world state.

If it has a `delta_val`, it is assumed to be a delta (an integer offset) applied to the previously stored value on a given key. In that case, `new_val` and `old_val` should be empty.

Otherwise, it is assumed to have at least one of `old_val` or `new_val` (or both). An empty `old_val` indicates the value was inserted. An empty `new_val` indicates the value was deleted.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: Bytes

    Output only. The key in the world state that was updated.

  • $msg->old_val() / $msg->old_val($value)

    Type: Bytes

    Output only. The value of the key before the transaction was executed.

  • $msg->new_val() / $msg->new_val($value)

    Type: Bytes

    Output only. The value of the key after the transaction was executed.

  • $msg->delta_val() / $msg->delta_val($value)

    Type: Int64

    Output only. An integer offset that was applied to the previously stored value.

Google::Cloud::Universalledger::V1::Types::TransactionStatus

Represents the status of a transaction execution.

Inherits from Protobuf::Message.

Accessors

  • $msg->code() / $msg->code($value)

    Type: Int32

    Output only. The status code, a numeric value whose meaning is defined by the corresponding [gRPC status code](https://github.com/grpc/grpc/blob/master/doc/statuscodes.md).

  • $msg->message() / $msg->message($value)

    Type: Bytes

    Output only. The error message, if any. Set only if code is not `OK`. This is a string encoded as utf-8 bytes. Stored as bytes to prevent any issues with the determinism of the encoding.

Google::Cloud::Universalledger::V1::Types::TransactionEffects

Effects of the execution of a transaction.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Universalledger::V1::Types::TransactionEvent

An event produced by a transaction.

Inherits from Protobuf::Message.

Accessors

  • $msg->type() / $msg->type($value)

    Type: String

    Output only. The type of event. A special event of type `transaction_output` contains the outputs produced by the transaction—for example, the account ID of a newly created account.

  • $msg->attributes() / $msg->attributes($value)

    Type: Message (Google::Cloud::Universalledger::V1::Types::TransactionEvent::EventAttribute)

    Output only. The event attributes as arbitrary key-value pairs.

Google::Cloud::Universalledger::V1::Types::TransactionCertificate

Certificate of the execution of a specific transaction in a round.

Inherits from Protobuf::Message.

Accessors

  • $msg->transaction_digest_hex() / $msg->transaction_digest_hex($value)

    Type: String

    Output only. The ID of the transaction this certificate is for.

  • $msg->round_id() / $msg->round_id($value)

    Type: Int64

    Output only. The ID of the execution round at which this transaction was executed in.

  • $msg->transaction_effects() / $msg->transaction_effects($value)

    Type: Message (Google::Cloud::Universalledger::V1::Types::TransactionEffects)

    Output only. The effects from the transaction execution.

  • $msg->events() / $msg->events($value)

    Type: Message (Google::Cloud::Universalledger::V1::Types::TransactionEvent)

    Output only. Events produced by the transaction.

  • $msg->transaction_effects_state_checksum_hex() / $msg->transaction_effects_state_checksum_hex($value)

    Type: String

    Output only. Homomorphic checksum of the effects. A 2048 byte value encoded as a hexadecimal string.

  • $msg->certification_results_digest_hex() / $msg->certification_results_digest_hex($value)

    Type: String

    Output only. The cryptographic digest of all the previous fields in sequence. Used to build a Merkle tree for the proof of inclusion.

Google::Cloud::Universalledger::V1::Types::ProofOfInclusion

Certificate of the inclusion of the effects of a transaction in the world state.

Inherits from Protobuf::Message.

Accessors

  • $msg->transaction_certificate() / $msg->transaction_certificate($value)

    Type: Message (Google::Cloud::Universalledger::V1::Types::TransactionCertificate)

    Output only. Certificate of the inclusion of the transaction effects in a specific round.

  • $msg->round_certificate() / $msg->round_certificate($value)

    Type: Message (Google::Cloud::Universalledger::V1::Types::RoundCertificate)

    Output only. Certificate of the execution of the round.

  • $msg->path_to_round_root() / $msg->path_to_round_root($value)

    Type: Message (Google::Cloud::Universalledger::V1::Types::ProofOfInclusion::MerkleTreeNode)

    Output only. Cryptographic proof of inclusion of the transaction effects in the execution round.

    It is given as a path from a given leaf (a transaction digest) to the root of the execution round. The path is represented as a list of (left child, right child) pairs, and the first pair is the left and right children of the given leaf's parent node. For example, assuming the Merkle tree was built with eight leaf digests `[t0, t1, t2, t3, t4, t5, t6, t7]`, having the following structure:

           _____root_digest____
          |                    |
       __ h20__             __h21__
      |        |           |       |
     h10     h11          h12     h13
     | |     | |          | |     | |
    t0 t1   t2 t3        t4 t5   t6 t7

    In here, `path_to_round_root` for `t0` will contain: `[(t0, t1), (h10, h11), (h20, h21)]`.

    One can consecutively compute SHA-256 digests of each path node to verify that the digest of the path produces the same value as the `round_certificate.merkle_tree.root_digest_hex`. Thus, verifying that the leaf was included in the round's Merkle tree.

Google::Cloud::Universalledger::V1::Types::TransactionAttempt

The state of an attempted transaction submission.

Inherits from Protobuf::Message.

Accessors

Enum: TransactionAttempt::TransactionStatus

  • TRANSACTION_STATUS_UNSPECIFIED => 0

  • PENDING => 1

  • FINALIZED => 2

Google::Cloud::Universalledger::V1::Types::SignedQueryRequest

A signed query request from the client.

Inherits from Protobuf::Message.

Accessors

  • $msg->serialized_client_query() / $msg->serialized_client_query($value)

    Type: Bytes

    Required. A protobuf serialized [ClientQuery][google.cloud.universalledger.v1.ClientQuery] to query the Universal Ledger network.

  • $msg->sender_signature() / $msg->sender_signature($value)

    Type: Bytes

    Optional. The signature of the sender of the query request, computed over the `serialized_client_query` bytes. If this field is omitted, the query is treated as anonymous, and only public information will be returned.

    The signature is verified by the server only if the sender identifier is provided in the [ClientQuery][google.cloud.universalledger.v1.ClientQuery]. The signature is rejected if expiry time in the serialized [ClientQuery][google.cloud.universalledger.v1.ClientQuery] is missing, is in the past, or more than 5 minutes in the future.

  • $msg->sender_signing_key_slot() / $msg->sender_signing_key_slot($value)

    Type: Enum (Google::Cloud::Universalledger::V1::KeySlot)

    Optional. The key slot of the sender used to sign the query request. Uses the primary slot of the sender account if not specified.

Google::Cloud::Universalledger::V1::Types::ClientQuery

Represents a query request from a client.

Inherits from Protobuf::Message.

Accessors

  • $msg->account_query() / $msg->account_query($value)

    Type: Message (Google::Cloud::Universalledger::V1::Types::AccountQuery)

    Optional. Query for the details of an account.

  • $msg->transaction_state_query() / $msg->transaction_state_query($value)

    Type: Message (Google::Cloud::Universalledger::V1::Types::TransactionStateQuery)

    Optional. Query for the state of a transaction.

  • $msg->sender_id() / $msg->sender_id($value)

    Type: String

    Optional. The sender of the query request.

  • $msg->expire_time() / $msg->expire_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. The time at which the query will expire. This helps to limit the exposure to replay attacks. This field is required if the [SignedQueryRequest][google.cloud.universalledger.v1.SignedQueryRequest] contains a signature and is optional otherwise. The expiration time must be in the future and at most 5 minutes from the current time, that is `now <= expire_time <= now + 5 min`.

Google::Cloud::Universalledger::V1::Types::AccountQuery

A request to query information about an account.

Inherits from Protobuf::Message.

Accessors

  • $msg->account_id() / $msg->account_id($value)

    Type: String

    Required. The ID of the account to get information about.

  • $msg->round_id() / $msg->round_id($value)

    Type: Int64

    Optional. The ID of the execution round (similar to block "height") at which to request data. The returned account information will be accurate for the world state at this execution round. If unspecified, uses the latest finalized round as known by the serving validator. The state at a given round ID is always consistent and canonical.

Google::Cloud::Universalledger::V1::Types::TransactionStateQuery

A request to query the state of a transaction.

Inherits from Protobuf::Message.

Accessors

  • $msg->transaction_digest_hex() / $msg->transaction_digest_hex($value)

    Type: String

    Required. The transaction ID to get the state of.

Google::Cloud::Universalledger::V1::Types::TransactionState

The state of a transaction.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Universalledger::V1::Types::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.