Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class GrantedNftAllowance.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<GrantedNftAllowance,GrantedNftAllowance.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<GrantedNftAllowance,GrantedNftAllowance.Builder>
com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,GrantedNftAllowanceOrBuilder,Cloneable
- Enclosing class:
GrantedNftAllowance
public static final class GrantedNftAllowance.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<GrantedNftAllowance,GrantedNftAllowance.Builder>
implements GrantedNftAllowanceOrBuilder
* 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/unique 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/unique 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/unique tokens of the specified type owned by the funding account.Protobuf type
proto.GrantedNftAllowance-
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.mergeSpender(AccountID value) * The identifier for the spending account associated with this allowance.mergeTokenId(TokenID value) * The identifier for the token associated with this allowance.setSpender(AccountID value) * The identifier for the spending account associated with this allowance.setSpender(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 interfaceGrantedNftAllowanceOrBuilder- 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 interfaceGrantedNftAllowanceOrBuilder- 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; -
hasSpender
public boolean hasSpender()* 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 = 2;- Specified by:
hasSpenderin interfaceGrantedNftAllowanceOrBuilder- Returns:
- Whether the spender field is set.
-
getSpender
* 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 = 2;- Specified by:
getSpenderin interfaceGrantedNftAllowanceOrBuilder- Returns:
- The spender.
-
setSpender
* 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 = 2; -
setSpender
* 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 = 2; -
mergeSpender
* 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 = 2; -
clearSpender
* 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 = 2;
-