All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: token_airdrop.proto

// Protobuf Java Version: 3.25.4
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Airdrop one or more tokens to one or more accounts.
 *
 * ### Effects
 * This distributes tokens from the balance of one or more sending account(s) to the balance
 * of one or more recipient accounts. Accounts MAY receive the tokens in one of four ways.
 *
 *  - An account already associated to the token to be distributed SHALL receive the
 *    airdropped tokens immediately to the recipient account balance.<br/>
 *    The fee for this transfer SHALL include the transfer, the airdrop fee, and any custom fees.
 *  - An account with available automatic association slots SHALL be automatically
 *    associated to the token, and SHALL immediately receive the airdropped tokens to the
 *    recipient account balance.<br/>
 *    The fee for this transfer SHALL include the transfer, the association, the cost to renew
 *    that association once, the airdrop fee, and any custom fees.
 *  - An account with "receiver signature required" set SHALL have a "Pending Airdrop" created
 *    and must claim that airdrop with a `claimAirdrop` transaction.<br/>
 *    The fee for this transfer SHALL include the transfer, the association, the cost to renew
 *    that association once, the airdrop fee, and any custom fees. If the pending airdrop is not
 *    claimed immediately, the `sender` SHALL pay the cost to renew the token association, and
 *    the cost to maintain the pending airdrop, until the pending airdrop is claimed or cancelled.
 *  - An account with no available automatic association slots SHALL have a "Pending Airdrop"
 *    created and must claim that airdrop with a `claimAirdrop` transaction.<br/>
 *    The fee for this transfer SHALL include the transfer, the association, the cost to renew
 *    that association once, the airdrop fee, and any custom fees. If the pending airdrop is not
 *    claimed immediately, the `sender` SHALL pay the cost to renew the token association, and
 *    the cost to maintain the pending airdrop, until the pending airdrop is claimed or cancelled.
 *
 * If an airdrop would create a pending airdrop for a fungible/common token, and a pending airdrop
 * for the same sender, receiver, and token already exists, the existing pending airdrop
 * SHALL be updated to add the new amount to the existing airdrop, rather than creating a new
 * pending airdrop.
 *
 * Any airdrop that completes immediately SHALL be irreversible. Any airdrop that results in a
 * "Pending Airdrop" MAY be canceled via a `cancelAirdrop` transaction.
 *
 * All transfer fees (including custom fees and royalties), as well as the rent cost for the
 * first auto-renewal period for any automatic-association slot occupied by the airdropped
 * tokens, SHALL be charged to the account paying for this transaction.
 *
 * ### Record Stream Effects
 * - Each successful transfer SHALL be recorded in `token_transfer_list` for the transaction record.
 * - Each successful transfer that consumes an automatic association slot SHALL populate the
 *   `automatic_association` field for the record.
 * - Each pending transfer _created_ SHALL be added to the `pending_airdrops` field for the record.
 * - Each pending transfer _updated_ SHALL be added to the `pending_airdrops` field for the record.
 * 
* * Protobuf type {@code proto.TokenAirdropTransactionBody} */ public final class TokenAirdropTransactionBody extends com.google.protobuf.GeneratedMessageLite< TokenAirdropTransactionBody, TokenAirdropTransactionBody.Builder> implements // @@protoc_insertion_point(message_implements:proto.TokenAirdropTransactionBody) TokenAirdropTransactionBodyOrBuilder { private TokenAirdropTransactionBody() { tokenTransfers_ = emptyProtobufList(); } public static final int TOKEN_TRANSFERS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.ProtobufList tokenTransfers_; /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ @java.lang.Override public java.util.List getTokenTransfersList() { return tokenTransfers_; } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public java.util.List getTokenTransfersOrBuilderList() { return tokenTransfers_; } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ @java.lang.Override public int getTokenTransfersCount() { return tokenTransfers_.size(); } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenTransferList getTokenTransfers(int index) { return tokenTransfers_.get(index); } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public com.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder getTokenTransfersOrBuilder( int index) { return tokenTransfers_.get(index); } private void ensureTokenTransfersIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = tokenTransfers_; if (!tmp.isModifiable()) { tokenTransfers_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ private void setTokenTransfers( int index, com.hedera.hashgraph.sdk.proto.TokenTransferList value) { value.getClass(); ensureTokenTransfersIsMutable(); tokenTransfers_.set(index, value); } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ private void addTokenTransfers(com.hedera.hashgraph.sdk.proto.TokenTransferList value) { value.getClass(); ensureTokenTransfersIsMutable(); tokenTransfers_.add(value); } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ private void addTokenTransfers( int index, com.hedera.hashgraph.sdk.proto.TokenTransferList value) { value.getClass(); ensureTokenTransfersIsMutable(); tokenTransfers_.add(index, value); } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ private void addAllTokenTransfers( java.lang.Iterable values) { ensureTokenTransfersIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, tokenTransfers_); } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ private void clearTokenTransfers() { tokenTransfers_ = emptyProtobufList(); } /** *
   **
   * A list of token transfers representing one or more airdrops.
   * The sender for each transfer MUST have sufficient balance to complete the transfers.
   *
   * All token transfers MUST successfully transfer tokens or create a pending airdrop
   * for this transaction to succeed.
   * This list MUST contain between 1 and 10 transfers, inclusive.
   *
   * Note that each transfer of fungible/common tokens requires both a debit and
   * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
   * TokenTransferList for that transfer.
   * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ private void removeTokenTransfers(int index) { ensureTokenTransfersIsMutable(); tokenTransfers_.remove(index); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Airdrop one or more tokens to one or more accounts.
   *
   * ### Effects
   * This distributes tokens from the balance of one or more sending account(s) to the balance
   * of one or more recipient accounts. Accounts MAY receive the tokens in one of four ways.
   *
   *  - An account already associated to the token to be distributed SHALL receive the
   *    airdropped tokens immediately to the recipient account balance.<br/>
   *    The fee for this transfer SHALL include the transfer, the airdrop fee, and any custom fees.
   *  - An account with available automatic association slots SHALL be automatically
   *    associated to the token, and SHALL immediately receive the airdropped tokens to the
   *    recipient account balance.<br/>
   *    The fee for this transfer SHALL include the transfer, the association, the cost to renew
   *    that association once, the airdrop fee, and any custom fees.
   *  - An account with "receiver signature required" set SHALL have a "Pending Airdrop" created
   *    and must claim that airdrop with a `claimAirdrop` transaction.<br/>
   *    The fee for this transfer SHALL include the transfer, the association, the cost to renew
   *    that association once, the airdrop fee, and any custom fees. If the pending airdrop is not
   *    claimed immediately, the `sender` SHALL pay the cost to renew the token association, and
   *    the cost to maintain the pending airdrop, until the pending airdrop is claimed or cancelled.
   *  - An account with no available automatic association slots SHALL have a "Pending Airdrop"
   *    created and must claim that airdrop with a `claimAirdrop` transaction.<br/>
   *    The fee for this transfer SHALL include the transfer, the association, the cost to renew
   *    that association once, the airdrop fee, and any custom fees. If the pending airdrop is not
   *    claimed immediately, the `sender` SHALL pay the cost to renew the token association, and
   *    the cost to maintain the pending airdrop, until the pending airdrop is claimed or cancelled.
   *
   * If an airdrop would create a pending airdrop for a fungible/common token, and a pending airdrop
   * for the same sender, receiver, and token already exists, the existing pending airdrop
   * SHALL be updated to add the new amount to the existing airdrop, rather than creating a new
   * pending airdrop.
   *
   * Any airdrop that completes immediately SHALL be irreversible. Any airdrop that results in a
   * "Pending Airdrop" MAY be canceled via a `cancelAirdrop` transaction.
   *
   * All transfer fees (including custom fees and royalties), as well as the rent cost for the
   * first auto-renewal period for any automatic-association slot occupied by the airdropped
   * tokens, SHALL be charged to the account paying for this transaction.
   *
   * ### Record Stream Effects
   * - Each successful transfer SHALL be recorded in `token_transfer_list` for the transaction record.
   * - Each successful transfer that consumes an automatic association slot SHALL populate the
   *   `automatic_association` field for the record.
   * - Each pending transfer _created_ SHALL be added to the `pending_airdrops` field for the record.
   * - Each pending transfer _updated_ SHALL be added to the `pending_airdrops` field for the record.
   * 
* * Protobuf type {@code proto.TokenAirdropTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody, Builder> implements // @@protoc_insertion_point(builder_implements:proto.TokenAirdropTransactionBody) com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBodyOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ @java.lang.Override public java.util.List getTokenTransfersList() { return java.util.Collections.unmodifiableList( instance.getTokenTransfersList()); } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ @java.lang.Override public int getTokenTransfersCount() { return instance.getTokenTransfersCount(); }/** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenTransferList getTokenTransfers(int index) { return instance.getTokenTransfers(index); } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public Builder setTokenTransfers( int index, com.hedera.hashgraph.sdk.proto.TokenTransferList value) { copyOnWrite(); instance.setTokenTransfers(index, value); return this; } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public Builder setTokenTransfers( int index, com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder builderForValue) { copyOnWrite(); instance.setTokenTransfers(index, builderForValue.build()); return this; } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public Builder addTokenTransfers(com.hedera.hashgraph.sdk.proto.TokenTransferList value) { copyOnWrite(); instance.addTokenTransfers(value); return this; } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public Builder addTokenTransfers( int index, com.hedera.hashgraph.sdk.proto.TokenTransferList value) { copyOnWrite(); instance.addTokenTransfers(index, value); return this; } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public Builder addTokenTransfers( com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder builderForValue) { copyOnWrite(); instance.addTokenTransfers(builderForValue.build()); return this; } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public Builder addTokenTransfers( int index, com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder builderForValue) { copyOnWrite(); instance.addTokenTransfers(index, builderForValue.build()); return this; } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public Builder addAllTokenTransfers( java.lang.Iterable values) { copyOnWrite(); instance.addAllTokenTransfers(values); return this; } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public Builder clearTokenTransfers() { copyOnWrite(); instance.clearTokenTransfers(); return this; } /** *
     **
     * A list of token transfers representing one or more airdrops.
     * The sender for each transfer MUST have sufficient balance to complete the transfers.
     *
     * All token transfers MUST successfully transfer tokens or create a pending airdrop
     * for this transaction to succeed.
     * This list MUST contain between 1 and 10 transfers, inclusive.
     *
     * Note that each transfer of fungible/common tokens requires both a debit and
     * a credit, so each _fungible_ token transfer MUST have _balanced_ entries in the
     * TokenTransferList for that transfer.
     * 
* * repeated .proto.TokenTransferList token_transfers = 1; */ public Builder removeTokenTransfers(int index) { copyOnWrite(); instance.removeTokenTransfers(index); return this; } // @@protoc_insertion_point(builder_scope:proto.TokenAirdropTransactionBody) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "tokenTransfers_", com.hedera.hashgraph.sdk.proto.TokenTransferList.class, }; java.lang.String info = "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.TokenAirdropTransactionBody) private static final com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody DEFAULT_INSTANCE; static { TokenAirdropTransactionBody defaultInstance = new TokenAirdropTransactionBody(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( TokenAirdropTransactionBody.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy