Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class CryptoApproveAllowanceTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<CryptoApproveAllowanceTransactionBody,CryptoApproveAllowanceTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<CryptoApproveAllowanceTransactionBody,CryptoApproveAllowanceTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,CryptoApproveAllowanceTransactionBodyOrBuilder,Cloneable
- Enclosing class:
CryptoApproveAllowanceTransactionBody
public static final class CryptoApproveAllowanceTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<CryptoApproveAllowanceTransactionBody,CryptoApproveAllowanceTransactionBody.Builder>
implements CryptoApproveAllowanceTransactionBodyOrBuilder
*
Create ("Approve") allowances for one account to transfer tokens owned
by a different account.<br/>
An allowance permits a "spender" account to independently transfer tokens
owned by a separate "owner" account. Each such allowance permits spending
any amount, up to a specified limit, for fungible/common tokens; a single
specified non-fungible/unique token, or all non-fungible/unique tokens
of a particular token type held by the "owner" account.
If the "owner" account is not specified for any allowance in this
transaction (the `owner` field is not set), the `payer` account for this
transaction SHALL be owner for that allowance.<br/>
Each `owner` account specified in any allowance approved in this
transaction MUST sign this transaction.<br/>
If the `amount` field for any fungible/common allowance in this
transaction is `0`, then that allowance SHOULD match an existing,
previously approved, allowance which SHALL be removed.<br/>
There are three lists in this message. Each list MAY be empty, but
_at least one_ list MUST contain _at least one_ entry.
Example for the `payer` rule.<br/>
- Given an account `0.0.X` that pays for this transaction, and owner
is not specified in an allowance of `200` HBAR to spender account
`0.0.Y`. At consensus the spender account `0.0.Y` will have a new
allowance to spend `200` HBAR from the balance of account `0.0.X`.
### Block Stream Effects
None
Protobuf type proto.CryptoApproveAllowanceTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllCryptoAllowances(Iterable<? extends CryptoAllowance> values) * List of hbar allowances approved by the account owner.addAllNftAllowances(Iterable<? extends NftAllowance> values) * List of non-fungible token allowances approved by the account owner.addAllTokenAllowances(Iterable<? extends TokenAllowance> values) * List of fungible token allowances approved by the account owner.addCryptoAllowances(int index, CryptoAllowance value) * List of hbar allowances approved by the account owner.addCryptoAllowances(int index, CryptoAllowance.Builder builderForValue) * List of hbar allowances approved by the account owner.* List of hbar allowances approved by the account owner.addCryptoAllowances(CryptoAllowance.Builder builderForValue) * List of hbar allowances approved by the account owner.addNftAllowances(int index, NftAllowance value) * List of non-fungible token allowances approved by the account owner.addNftAllowances(int index, NftAllowance.Builder builderForValue) * List of non-fungible token allowances approved by the account owner.addNftAllowances(NftAllowance value) * List of non-fungible token allowances approved by the account owner.addNftAllowances(NftAllowance.Builder builderForValue) * List of non-fungible token allowances approved by the account owner.addTokenAllowances(int index, TokenAllowance value) * List of fungible token allowances approved by the account owner.addTokenAllowances(int index, TokenAllowance.Builder builderForValue) * List of fungible token allowances approved by the account owner.addTokenAllowances(TokenAllowance value) * List of fungible token allowances approved by the account owner.addTokenAllowances(TokenAllowance.Builder builderForValue) * List of fungible token allowances approved by the account owner.* List of hbar allowances approved by the account owner.* List of non-fungible token allowances approved by the account owner.* List of fungible token allowances approved by the account owner.getCryptoAllowances(int index) * List of hbar allowances approved by the account owner.int* List of hbar allowances approved by the account owner.* List of hbar allowances approved by the account owner.getNftAllowances(int index) * List of non-fungible token allowances approved by the account owner.int* List of non-fungible token allowances approved by the account owner.* List of non-fungible token allowances approved by the account owner.getTokenAllowances(int index) * List of fungible token allowances approved by the account owner.int* List of fungible token allowances approved by the account owner.* List of fungible token allowances approved by the account owner.removeCryptoAllowances(int index) * List of hbar allowances approved by the account owner.removeNftAllowances(int index) * List of non-fungible token allowances approved by the account owner.removeTokenAllowances(int index) * List of fungible token allowances approved by the account owner.setCryptoAllowances(int index, CryptoAllowance value) * List of hbar allowances approved by the account owner.setCryptoAllowances(int index, CryptoAllowance.Builder builderForValue) * List of hbar allowances approved by the account owner.setNftAllowances(int index, NftAllowance value) * List of non-fungible token allowances approved by the account owner.setNftAllowances(int index, NftAllowance.Builder builderForValue) * List of non-fungible token allowances approved by the account owner.setTokenAllowances(int index, TokenAllowance value) * List of fungible token allowances approved by the account owner.setTokenAllowances(int index, TokenAllowance.Builder builderForValue) * List of fungible token allowances approved by the account owner.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getCryptoAllowancesList
* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1;- Specified by:
getCryptoAllowancesListin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getCryptoAllowancesCount
public int getCryptoAllowancesCount()* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1;- Specified by:
getCryptoAllowancesCountin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getCryptoAllowances
* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1;- Specified by:
getCryptoAllowancesin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
setCryptoAllowances
public CryptoApproveAllowanceTransactionBody.Builder setCryptoAllowances(int index, CryptoAllowance value) * List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
setCryptoAllowances
public CryptoApproveAllowanceTransactionBody.Builder setCryptoAllowances(int index, CryptoAllowance.Builder builderForValue) * List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
addCryptoAllowances
* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
addCryptoAllowances
public CryptoApproveAllowanceTransactionBody.Builder addCryptoAllowances(int index, CryptoAllowance value) * List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
addCryptoAllowances
public CryptoApproveAllowanceTransactionBody.Builder addCryptoAllowances(CryptoAllowance.Builder builderForValue) * List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
addCryptoAllowances
public CryptoApproveAllowanceTransactionBody.Builder addCryptoAllowances(int index, CryptoAllowance.Builder builderForValue) * List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
addAllCryptoAllowances
public CryptoApproveAllowanceTransactionBody.Builder addAllCryptoAllowances(Iterable<? extends CryptoAllowance> values) * List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
clearCryptoAllowances
* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
removeCryptoAllowances
* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
getNftAllowancesList
* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2;- Specified by:
getNftAllowancesListin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getNftAllowancesCount
public int getNftAllowancesCount()* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2;- Specified by:
getNftAllowancesCountin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getNftAllowances
* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2;- Specified by:
getNftAllowancesin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
setNftAllowances
public CryptoApproveAllowanceTransactionBody.Builder setNftAllowances(int index, NftAllowance value) * List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
setNftAllowances
public CryptoApproveAllowanceTransactionBody.Builder setNftAllowances(int index, NftAllowance.Builder builderForValue) * List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
addNftAllowances
* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
addNftAllowances
public CryptoApproveAllowanceTransactionBody.Builder addNftAllowances(int index, NftAllowance value) * List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
addNftAllowances
public CryptoApproveAllowanceTransactionBody.Builder addNftAllowances(NftAllowance.Builder builderForValue) * List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
addNftAllowances
public CryptoApproveAllowanceTransactionBody.Builder addNftAllowances(int index, NftAllowance.Builder builderForValue) * List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
addAllNftAllowances
public CryptoApproveAllowanceTransactionBody.Builder addAllNftAllowances(Iterable<? extends NftAllowance> values) * List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
clearNftAllowances
* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
removeNftAllowances
* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
getTokenAllowancesList
* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3;- Specified by:
getTokenAllowancesListin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getTokenAllowancesCount
public int getTokenAllowancesCount()* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3;- Specified by:
getTokenAllowancesCountin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getTokenAllowances
* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3;- Specified by:
getTokenAllowancesin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
setTokenAllowances
public CryptoApproveAllowanceTransactionBody.Builder setTokenAllowances(int index, TokenAllowance value) * List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
setTokenAllowances
public CryptoApproveAllowanceTransactionBody.Builder setTokenAllowances(int index, TokenAllowance.Builder builderForValue) * List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
addTokenAllowances
* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
addTokenAllowances
public CryptoApproveAllowanceTransactionBody.Builder addTokenAllowances(int index, TokenAllowance value) * List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
addTokenAllowances
public CryptoApproveAllowanceTransactionBody.Builder addTokenAllowances(TokenAllowance.Builder builderForValue) * List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
addTokenAllowances
public CryptoApproveAllowanceTransactionBody.Builder addTokenAllowances(int index, TokenAllowance.Builder builderForValue) * List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
addAllTokenAllowances
public CryptoApproveAllowanceTransactionBody.Builder addAllTokenAllowances(Iterable<? extends TokenAllowance> values) * List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
clearTokenAllowances
* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
removeTokenAllowances
* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3;
-