Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class AccountApprovalForAllAllowance.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<AccountApprovalForAllAllowance,AccountApprovalForAllAllowance.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<AccountApprovalForAllAllowance,AccountApprovalForAllAllowance.Builder>
com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,AccountApprovalForAllAllowanceOrBuilder,Cloneable
- Enclosing class:
AccountApprovalForAllAllowance
public static final class AccountApprovalForAllAllowance.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<AccountApprovalForAllAllowance,AccountApprovalForAllAllowance.Builder>
implements AccountApprovalForAllAllowanceOrBuilder
* Permission granted by one account (the "funding" account) to another account (the "spender" account) that allows the spender to transfer all serial numbers of a specific non-fungible token (NFT) collection owned by the funding account.<br/> This is a broad permission, as it does not matter how many NFTs of the specified collection the funding account owns, the spender MAY dispose of any or all of them with this allowance.<br/> Each token type (typically a collection of NFTs) SHALL require a separate allowance.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible token, rather than the holding account. An allowance SHALL NOT transfer any tokens directly, it only permits transactions signed only by the spender account to transfer any non-fungible tokens of the specified type owned by the funding account.Protobuf type
proto.AccountApprovalForAllAllowance-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The identifier for the spending account associated with this allowance.* The identifier for the token associated with this allowance.* The identifier for the spending account associated with this allowance.* The identifier for the token associated with this allowance.boolean* The identifier for the spending account associated with this allowance.boolean* The identifier for the token associated with this allowance.mergeSpenderId(AccountID value) * The identifier for the spending account associated with this allowance.mergeTokenId(TokenID value) * The identifier for the token associated with this allowance.setSpenderId(AccountID value) * The identifier for the spending account associated with this allowance.setSpenderId(AccountID.Builder builderForValue) * The identifier for the spending account associated with this allowance.setTokenId(TokenID value) * The identifier for the token associated with this allowance.setTokenId(TokenID.Builder builderForValue) * The identifier for the token associated with this allowance.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
-
hasTokenId
public boolean hasTokenId()* The identifier for the token associated with this allowance. <p> This token MUST be a non-fungible/unique token.
.proto.TokenID token_id = 1;- Specified by:
hasTokenIdin interfaceAccountApprovalForAllAllowanceOrBuilder- Returns:
- Whether the tokenId field is set.
-
getTokenId
* The identifier for the token associated with this allowance. <p> This token MUST be a non-fungible/unique token.
.proto.TokenID token_id = 1;- Specified by:
getTokenIdin interfaceAccountApprovalForAllAllowanceOrBuilder- Returns:
- The tokenId.
-
setTokenId
* The identifier for the token associated with this allowance. <p> This token MUST be a non-fungible/unique token.
.proto.TokenID token_id = 1; -
setTokenId
* The identifier for the token associated with this allowance. <p> This token MUST be a non-fungible/unique token.
.proto.TokenID token_id = 1; -
mergeTokenId
* The identifier for the token associated with this allowance. <p> This token MUST be a non-fungible/unique token.
.proto.TokenID token_id = 1; -
clearTokenId
* The identifier for the token associated with this allowance. <p> This token MUST be a non-fungible/unique token.
.proto.TokenID token_id = 1; -
hasSpenderId
public boolean hasSpenderId()* The identifier for the spending account associated with this allowance. <p> This account SHALL be permitted to sign transactions to spend tokens of the associated token type from the funding/allowing account.
.proto.AccountID spender_id = 2;- Specified by:
hasSpenderIdin interfaceAccountApprovalForAllAllowanceOrBuilder- Returns:
- Whether the spenderId field is set.
-
getSpenderId
* The identifier for the spending account associated with this allowance. <p> This account SHALL be permitted to sign transactions to spend tokens of the associated token type from the funding/allowing account.
.proto.AccountID spender_id = 2;- Specified by:
getSpenderIdin interfaceAccountApprovalForAllAllowanceOrBuilder- Returns:
- The spenderId.
-
setSpenderId
* The identifier for the spending account associated with this allowance. <p> This account SHALL be permitted to sign transactions to spend tokens of the associated token type from the funding/allowing account.
.proto.AccountID spender_id = 2; -
setSpenderId
* The identifier for the spending account associated with this allowance. <p> This account SHALL be permitted to sign transactions to spend tokens of the associated token type from the funding/allowing account.
.proto.AccountID spender_id = 2; -
mergeSpenderId
* The identifier for the spending account associated with this allowance. <p> This account SHALL be permitted to sign transactions to spend tokens of the associated token type from the funding/allowing account.
.proto.AccountID spender_id = 2; -
clearSpenderId
* The identifier for the spending account associated with this allowance. <p> This account SHALL be permitted to sign transactions to spend tokens of the associated token type from the funding/allowing account.
.proto.AccountID spender_id = 2;
-