Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface NftAllowanceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
NftAllowance,NftAllowance.Builder
@Generated
public interface NftAllowanceOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.BoolValue* A flag indicating this allowance applies to all tokens of the specified (non-fungible/unique) type.* A spender-owner account identifier.<br/> This account identifier identifies a `spender` for whom an existing `approved_for_all` allowance was previously created.getOwner()* An owner account identifier.<br/> This is the account identifier of the account granting an allowance for the `spender` to transfer tokens held by this account.longgetSerialNumbers(int index) * A list of token serial numbers.<br/> The list of serial numbers that the spender is permitted to transfer.int* A list of token serial numbers.<br/> The list of serial numbers that the spender is permitted to transfer.* A list of token serial numbers.<br/> The list of serial numbers that the spender is permitted to transfer.* A spender account identifier.<br/> This is the account identifier of the account permitted to transfer tokens held by the `owner`.* A token identifier.<br/> This identifies the type of token the `spender` is permitted to transfer from the `owner`.boolean* A flag indicating this allowance applies to all tokens of the specified (non-fungible/unique) type.boolean* A spender-owner account identifier.<br/> This account identifier identifies a `spender` for whom an existing `approved_for_all` allowance was previously created.booleanhasOwner()* An owner account identifier.<br/> This is the account identifier of the account granting an allowance for the `spender` to transfer tokens held by this account.boolean* A spender account identifier.<br/> This is the account identifier of the account permitted to transfer tokens held by the `owner`.boolean* A token identifier.<br/> This identifies the type of token the `spender` is permitted to transfer from the `owner`.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasTokenId
boolean hasTokenId()* A token identifier.<br/> This identifies the type of token the `spender` is permitted to transfer from the `owner`. <p> The identified token type MUST be a non-fungible/unique token.
.proto.TokenID tokenId = 1;- Returns:
- Whether the tokenId field is set.
-
getTokenId
TokenID getTokenId()* A token identifier.<br/> This identifies the type of token the `spender` is permitted to transfer from the `owner`. <p> The identified token type MUST be a non-fungible/unique token.
.proto.TokenID tokenId = 1;- Returns:
- The tokenId.
-
hasOwner
boolean hasOwner()* An owner account identifier.<br/> This is the account identifier of the account granting an allowance for the `spender` to transfer tokens held by this account.
.proto.AccountID owner = 2;- Returns:
- Whether the owner field is set.
-
getOwner
AccountID getOwner()* An owner account identifier.<br/> This is the account identifier of the account granting an allowance for the `spender` to transfer tokens held by this account.
.proto.AccountID owner = 2;- Returns:
- The owner.
-
hasSpender
boolean hasSpender()* A spender account identifier.<br/> This is the account identifier of the account permitted to transfer tokens held by the `owner`.
.proto.AccountID spender = 3;- Returns:
- Whether the spender field is set.
-
getSpender
AccountID getSpender()* A spender account identifier.<br/> This is the account identifier of the account permitted to transfer tokens held by the `owner`.
.proto.AccountID spender = 3;- Returns:
- The spender.
-
getSerialNumbersList
* A list of token serial numbers.<br/> The list of serial numbers that the spender is permitted to transfer. <p> The `owner` MUST currently hold each token identified in this list.
repeated int64 serial_numbers = 4;- Returns:
- A list containing the serialNumbers.
-
getSerialNumbersCount
int getSerialNumbersCount()* A list of token serial numbers.<br/> The list of serial numbers that the spender is permitted to transfer. <p> The `owner` MUST currently hold each token identified in this list.
repeated int64 serial_numbers = 4;- Returns:
- The count of serialNumbers.
-
getSerialNumbers
long getSerialNumbers(int index) * A list of token serial numbers.<br/> The list of serial numbers that the spender is permitted to transfer. <p> The `owner` MUST currently hold each token identified in this list.
repeated int64 serial_numbers = 4;- Parameters:
index- The index of the element to return.- Returns:
- The serialNumbers at the given index.
-
hasApprovedForAll
boolean hasApprovedForAll()* A flag indicating this allowance applies to all tokens of the specified (non-fungible/unique) type. <p> If true, the `spender` SHALL be permitted to transfer any or all of the `owner`'s tokens of the specified token type. This SHALL apply not only to currently owned tokens, but to all such tokens acquired in the future, unless the allowance is `delete`d.
.google.protobuf.BoolValue approved_for_all = 5;- Returns:
- Whether the approvedForAll field is set.
-
getApprovedForAll
com.google.protobuf.BoolValue getApprovedForAll()* A flag indicating this allowance applies to all tokens of the specified (non-fungible/unique) type. <p> If true, the `spender` SHALL be permitted to transfer any or all of the `owner`'s tokens of the specified token type. This SHALL apply not only to currently owned tokens, but to all such tokens acquired in the future, unless the allowance is `delete`d.
.google.protobuf.BoolValue approved_for_all = 5;- Returns:
- The approvedForAll.
-
hasDelegatingSpender
boolean hasDelegatingSpender()* A spender-owner account identifier.<br/> This account identifier identifies a `spender` for whom an existing `approved_for_all` allowance was previously created. This enables an account with such broad access to grant allowances to transfer individual tokens from the original owner without involving that original owner. <p> If this is set, the account identified MUST sign this transaction, but the `owner` account MAY NOT sign this transaction.<br/> If this is set, there MUST exist an active `approved_for_all` allowance from the `owner` for the `delegating_spender` to transfer all tokens of the type identified by the `tokenId` field.<br/> If this value is set, the `approved_for_all` flag MUST be `false`.
.proto.AccountID delegating_spender = 6;- Returns:
- Whether the delegatingSpender field is set.
-
getDelegatingSpender
AccountID getDelegatingSpender()* A spender-owner account identifier.<br/> This account identifier identifies a `spender` for whom an existing `approved_for_all` allowance was previously created. This enables an account with such broad access to grant allowances to transfer individual tokens from the original owner without involving that original owner. <p> If this is set, the account identified MUST sign this transaction, but the `owner` account MAY NOT sign this transaction.<br/> If this is set, there MUST exist an active `approved_for_all` allowance from the `owner` for the `delegating_spender` to transfer all tokens of the type identified by the `tokenId` field.<br/> If this value is set, the `approved_for_all` flag MUST be `false`.
.proto.AccountID delegating_spender = 6;- Returns:
- The delegatingSpender.
-