Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class NftRemoveAllowance.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<NftRemoveAllowance,NftRemoveAllowance.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<NftRemoveAllowance,NftRemoveAllowance.Builder>
com.hedera.hashgraph.sdk.proto.NftRemoveAllowance.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,NftRemoveAllowanceOrBuilder,Cloneable
- Enclosing class:
NftRemoveAllowance
public static final class NftRemoveAllowance.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<NftRemoveAllowance,NftRemoveAllowance.Builder>
implements NftRemoveAllowanceOrBuilder
* A single allowance for one non-fungible/unique token. This is specific to removal, and the allowance is identified for that specific purpose. All fields in this message are REQUIRED. The `serial_numbers` list MUST NOT be empty. The combination of field values in this message MUST match existing allowances for one or more individual non-fungible/unique tokens. ### Removing an allowance that is `approve_for_all` To remove an allowance that has set the `approve_for_all` flag, the `owner` account must first _approve_ a **new** allowance for a specific serial number using a `cryptoApproveAllowance`, and then, if desired, that newly approved allowance to a specific serial number may be deleted in a separate `cryptoDeleteAllowance` transaction.Protobuf type
proto.NftRemoveAllowance-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllSerialNumbers(Iterable<? extends Long> values) * The list of serial numbers to remove allowances from.addSerialNumbers(long value) * The list of serial numbers to remove allowances from.* An `owner` account identifier.* The list of serial numbers to remove allowances from.* A token identifier.getOwner()* An `owner` account identifier.longgetSerialNumbers(int index) * The list of serial numbers to remove allowances from.int* The list of serial numbers to remove allowances from.* The list of serial numbers to remove allowances from.* A token identifier.booleanhasOwner()* An `owner` account identifier.boolean* A token identifier.mergeOwner(AccountID value) * An `owner` account identifier.mergeTokenId(TokenID value) * A token identifier.* An `owner` account identifier.setOwner(AccountID.Builder builderForValue) * An `owner` account identifier.setSerialNumbers(int index, long value) * The list of serial numbers to remove allowances from.setTokenId(TokenID value) * A token identifier.setTokenId(TokenID.Builder builderForValue) * A token identifier.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()* A token identifier. <p> This MUST be a valid token identifier for a non-fungible/unique token type.
.proto.TokenID token_id = 1;- Specified by:
hasTokenIdin interfaceNftRemoveAllowanceOrBuilder- Returns:
- Whether the tokenId field is set.
-
getTokenId
* A token identifier. <p> This MUST be a valid token identifier for a non-fungible/unique token type.
.proto.TokenID token_id = 1;- Specified by:
getTokenIdin interfaceNftRemoveAllowanceOrBuilder- Returns:
- The tokenId.
-
setTokenId
* A token identifier. <p> This MUST be a valid token identifier for a non-fungible/unique token type.
.proto.TokenID token_id = 1; -
setTokenId
* A token identifier. <p> This MUST be a valid token identifier for a non-fungible/unique token type.
.proto.TokenID token_id = 1; -
mergeTokenId
* A token identifier. <p> This MUST be a valid token identifier for a non-fungible/unique token type.
.proto.TokenID token_id = 1; -
clearTokenId
* A token identifier. <p> This MUST be a valid token identifier for a non-fungible/unique token type.
.proto.TokenID token_id = 1; -
hasOwner
public boolean hasOwner()* An `owner` account identifier. <p> This account MUST sign the transaction containing this message.
.proto.AccountID owner = 2;- Specified by:
hasOwnerin interfaceNftRemoveAllowanceOrBuilder- Returns:
- Whether the owner field is set.
-
getOwner
* An `owner` account identifier. <p> This account MUST sign the transaction containing this message.
.proto.AccountID owner = 2;- Specified by:
getOwnerin interfaceNftRemoveAllowanceOrBuilder- Returns:
- The owner.
-
setOwner
* An `owner` account identifier. <p> This account MUST sign the transaction containing this message.
.proto.AccountID owner = 2; -
setOwner
* An `owner` account identifier. <p> This account MUST sign the transaction containing this message.
.proto.AccountID owner = 2; -
mergeOwner
* An `owner` account identifier. <p> This account MUST sign the transaction containing this message.
.proto.AccountID owner = 2; -
clearOwner
* An `owner` account identifier. <p> This account MUST sign the transaction containing this message.
.proto.AccountID owner = 2; -
getSerialNumbersList
* The list of serial numbers to remove allowances from. <p> This list MUST NOT be empty.
repeated int64 serial_numbers = 3;- Specified by:
getSerialNumbersListin interfaceNftRemoveAllowanceOrBuilder- Returns:
- A list containing the serialNumbers.
-
getSerialNumbersCount
public int getSerialNumbersCount()* The list of serial numbers to remove allowances from. <p> This list MUST NOT be empty.
repeated int64 serial_numbers = 3;- Specified by:
getSerialNumbersCountin interfaceNftRemoveAllowanceOrBuilder- Returns:
- The count of serialNumbers.
-
getSerialNumbers
public long getSerialNumbers(int index) * The list of serial numbers to remove allowances from. <p> This list MUST NOT be empty.
repeated int64 serial_numbers = 3;- Specified by:
getSerialNumbersin interfaceNftRemoveAllowanceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The serialNumbers at the given index.
-
setSerialNumbers
* The list of serial numbers to remove allowances from. <p> This list MUST NOT be empty.
repeated int64 serial_numbers = 3;- Parameters:
value- The serialNumbers to set.- Returns:
- This builder for chaining.
-
addSerialNumbers
* The list of serial numbers to remove allowances from. <p> This list MUST NOT be empty.
repeated int64 serial_numbers = 3;- Parameters:
value- The serialNumbers to add.- Returns:
- This builder for chaining.
-
addAllSerialNumbers
* The list of serial numbers to remove allowances from. <p> This list MUST NOT be empty.
repeated int64 serial_numbers = 3;- Parameters:
values- The serialNumbers to add.- Returns:
- This builder for chaining.
-
clearSerialNumbers
* The list of serial numbers to remove allowances from. <p> This list MUST NOT be empty.
repeated int64 serial_numbers = 3;- Returns:
- This builder for chaining.
-