Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface TokenAllowanceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
TokenAllowance,TokenAllowance.Builder
@Generated
public interface TokenAllowanceOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong* An amount of fractional tokens (10<sup>-decimals</sup> tokens).<br/> This is the amount of tokens held by the `owner` that the `spender` is permitted to transfer.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.* 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`.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 fungible/common 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 fungible/common 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.
-
getAmount
long getAmount()* An amount of fractional tokens (10<sup>-decimals</sup> tokens).<br/> This is the amount of tokens held by the `owner` that the `spender` is permitted to transfer. <p> This value MUST be a whole number.<br/> This value MUST be greater than 0 to create a new allowance.<br/> This value MAY be exactly `0` to _remove_ an existing allowance.<br/>
int64 amount = 4;- Returns:
- The amount.
-