java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Token,Token.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Token,Token.Builder>
com.hedera.hashgraph.sdk.proto.Token.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,TokenOrBuilder,Cloneable
- Enclosing class:
Token
public static final class Token.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Token,Token.Builder>
implements TokenOrBuilder
* An Hedera Token Service(HTS) token. A token SHALL represent a fungible or non-fungible unit of exchange.<br/> The specified Treasury Account SHALL receive the initial supply of tokens and SHALL determine distribution of all tokens once minted.Protobuf type
proto.Token-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllCustomFees(Iterable<? extends CustomFee> values) * A custom fee schedule for this token.addCustomFees(int index, CustomFee value) * A custom fee schedule for this token.addCustomFees(int index, CustomFee.Builder builderForValue) * A custom fee schedule for this token.addCustomFees(CustomFee value) * A custom fee schedule for this token.addCustomFees(CustomFee.Builder builderForValue) * A custom fee schedule for this token.* A flag indicating that accounts associated to this token are frozen by default.* A flag indicating that accounts associated with this token are granted KYC by default.* Access control for general modification of this token.* An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration.* A number of seconds by which the network should automatically extend this token's expiration.* A custom fee schedule for this token.* A number of decimal places for this token.* A flag indicating that this token is deleted.* An expiration time for this token, in seconds since the epoch.* Access control of the `custom_fees` field for this token.* Access control to freeze this token.* Access control for KYC for this token.* A last used serial number for this token.* A maximum supply of this token.<br/> This is the maximum number of tokens of this type that may be issued.* A short description of this token.* A Token "Metadata".* Access Control of metadata update for this token.* A human-readable name for this token.* A flag indicating that this token is paused.* Access control of pause/unpause for this token.* Access control of token mint/burn for this token.* A supply type for this token.* A human-readable symbol for the token.* A unique identifier for this token.* A type for this token.* A _current_ total supply of this token, expressed in the smallest unit of the token.* A treasury account identifier for this token.* Access control of account wipe for this token.boolean* A flag indicating that accounts associated to this token are frozen by default.boolean* A flag indicating that accounts associated with this token are granted KYC by default.* Access control for general modification of this token.* An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration.long* A number of seconds by which the network should automatically extend this token's expiration.getCustomFees(int index) * A custom fee schedule for this token.int* A custom fee schedule for this token.* A custom fee schedule for this token.int* A number of decimal places for this token.boolean* A flag indicating that this token is deleted.long* An expiration time for this token, in seconds since the epoch.* Access control of the `custom_fees` field for this token.* Access control to freeze this token.* Access control for KYC for this token.long* A last used serial number for this token.long* A maximum supply of this token.<br/> This is the maximum number of tokens of this type that may be issued.getMemo()* A short description of this token.com.google.protobuf.ByteString* A short description of this token.com.google.protobuf.ByteString* A Token "Metadata".* Access Control of metadata update for this token.getName()* A human-readable name for this token.com.google.protobuf.ByteString* A human-readable name for this token.boolean* A flag indicating that this token is paused.* Access control of pause/unpause for this token.* Access control of token mint/burn for this token.* A supply type for this token.int* A supply type for this token.* A human-readable symbol for the token.com.google.protobuf.ByteString* A human-readable symbol for the token.* A unique identifier for this token.* A type for this token.int* A type for this token.long* A _current_ total supply of this token, expressed in the smallest unit of the token.* A treasury account identifier for this token.* Access control of account wipe for this token.boolean* Access control for general modification of this token.boolean* An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration.boolean* Access control of the `custom_fees` field for this token.boolean* Access control to freeze this token.boolean* Access control for KYC for this token.boolean* Access Control of metadata update for this token.boolean* Access control of pause/unpause for this token.boolean* Access control of token mint/burn for this token.boolean* A unique identifier for this token.boolean* A treasury account identifier for this token.boolean* Access control of account wipe for this token.mergeAdminKey(Key value) * Access control for general modification of this token.mergeAutoRenewAccountId(AccountID value) * An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration.mergeFeeScheduleKey(Key value) * Access control of the `custom_fees` field for this token.mergeFreezeKey(Key value) * Access control to freeze this token.mergeKycKey(Key value) * Access control for KYC for this token.mergeMetadataKey(Key value) * Access Control of metadata update for this token.mergePauseKey(Key value) * Access control of pause/unpause for this token.mergeSupplyKey(Key value) * Access control of token mint/burn for this token.mergeTokenId(TokenID value) * A unique identifier for this token.mergeTreasuryAccountId(AccountID value) * A treasury account identifier for this token.mergeWipeKey(Key value) * Access control of account wipe for this token.removeCustomFees(int index) * A custom fee schedule for this token.setAccountsFrozenByDefault(boolean value) * A flag indicating that accounts associated to this token are frozen by default.setAccountsKycGrantedByDefault(boolean value) * A flag indicating that accounts associated with this token are granted KYC by default.setAdminKey(Key value) * Access control for general modification of this token.setAdminKey(Key.Builder builderForValue) * Access control for general modification of this token.setAutoRenewAccountId(AccountID value) * An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration.setAutoRenewAccountId(AccountID.Builder builderForValue) * An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration.setAutoRenewSeconds(long value) * A number of seconds by which the network should automatically extend this token's expiration.setCustomFees(int index, CustomFee value) * A custom fee schedule for this token.setCustomFees(int index, CustomFee.Builder builderForValue) * A custom fee schedule for this token.setDecimals(int value) * A number of decimal places for this token.setDeleted(boolean value) * A flag indicating that this token is deleted.setExpirationSecond(long value) * An expiration time for this token, in seconds since the epoch.setFeeScheduleKey(Key value) * Access control of the `custom_fees` field for this token.setFeeScheduleKey(Key.Builder builderForValue) * Access control of the `custom_fees` field for this token.setFreezeKey(Key value) * Access control to freeze this token.setFreezeKey(Key.Builder builderForValue) * Access control to freeze this token.* Access control for KYC for this token.setKycKey(Key.Builder builderForValue) * Access control for KYC for this token.setLastUsedSerialNumber(long value) * A last used serial number for this token.setMaxSupply(long value) * A maximum supply of this token.<br/> This is the maximum number of tokens of this type that may be issued.* A short description of this token.setMemoBytes(com.google.protobuf.ByteString value) * A short description of this token.setMetadata(com.google.protobuf.ByteString value) * A Token "Metadata".setMetadataKey(Key value) * Access Control of metadata update for this token.setMetadataKey(Key.Builder builderForValue) * Access Control of metadata update for this token.* A human-readable name for this token.setNameBytes(com.google.protobuf.ByteString value) * A human-readable name for this token.setPaused(boolean value) * A flag indicating that this token is paused.setPauseKey(Key value) * Access control of pause/unpause for this token.setPauseKey(Key.Builder builderForValue) * Access control of pause/unpause for this token.setSupplyKey(Key value) * Access control of token mint/burn for this token.setSupplyKey(Key.Builder builderForValue) * Access control of token mint/burn for this token.setSupplyType(TokenSupplyType value) * A supply type for this token.setSupplyTypeValue(int value) * A supply type for this token.* A human-readable symbol for the token.setSymbolBytes(com.google.protobuf.ByteString value) * A human-readable symbol for the token.setTokenId(TokenID value) * A unique identifier for this token.setTokenId(TokenID.Builder builderForValue) * A unique identifier for this token.setTokenType(TokenType value) * A type for this token.setTokenTypeValue(int value) * A type for this token.setTotalSupply(long value) * A _current_ total supply of this token, expressed in the smallest unit of the token.setTreasuryAccountId(AccountID value) * A treasury account identifier for this token.setTreasuryAccountId(AccountID.Builder builderForValue) * A treasury account identifier for this token.setWipeKey(Key value) * Access control of account wipe for this token.setWipeKey(Key.Builder builderForValue) * Access control of account wipe for this token.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 unique identifier for this token.
.proto.TokenID token_id = 1;- Specified by:
hasTokenIdin interfaceTokenOrBuilder- Returns:
- Whether the tokenId field is set.
-
getTokenId
* A unique identifier for this token.
.proto.TokenID token_id = 1;- Specified by:
getTokenIdin interfaceTokenOrBuilder- Returns:
- The tokenId.
-
setTokenId
* A unique identifier for this token.
.proto.TokenID token_id = 1; -
setTokenId
* A unique identifier for this token.
.proto.TokenID token_id = 1; -
mergeTokenId
* A unique identifier for this token.
.proto.TokenID token_id = 1; -
clearTokenId
* A unique identifier for this token.
.proto.TokenID token_id = 1; -
getName
* A human-readable name for this token. <p> This value MAY NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string name = 2;- Specified by:
getNamein interfaceTokenOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()* A human-readable name for this token. <p> This value MAY NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string name = 2;- Specified by:
getNameBytesin interfaceTokenOrBuilder- Returns:
- The bytes for name.
-
setName
* A human-readable name for this token. <p> This value MAY NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
* A human-readable name for this token. <p> This value MAY NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
* A human-readable name for this token. <p> This value MAY NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string name = 2;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getSymbol
* A human-readable symbol for the token. <p> This value SHALL NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string symbol = 3;- Specified by:
getSymbolin interfaceTokenOrBuilder- Returns:
- The symbol.
-
getSymbolBytes
public com.google.protobuf.ByteString getSymbolBytes()* A human-readable symbol for the token. <p> This value SHALL NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string symbol = 3;- Specified by:
getSymbolBytesin interfaceTokenOrBuilder- Returns:
- The bytes for symbol.
-
setSymbol
* A human-readable symbol for the token. <p> This value SHALL NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string symbol = 3;- Parameters:
value- The symbol to set.- Returns:
- This builder for chaining.
-
clearSymbol
* A human-readable symbol for the token. <p> This value SHALL NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string symbol = 3;- Returns:
- This builder for chaining.
-
setSymbolBytes
* A human-readable symbol for the token. <p> This value SHALL NOT be unique.<br/> This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
string symbol = 3;- Parameters:
value- The bytes for symbol to set.- Returns:
- This builder for chaining.
-
getDecimals
public int getDecimals()* A number of decimal places for this token. <p> If decimals are 8 or 11, then the number of whole tokens can be at most billions or millions, respectively. More decimals allows for a more finely-divided token, but also limits the maximum total supply. <p> Examples <ul> <li>Bitcoin satoshis (21 million whole tokens with 8 decimals).</li> <li>Hedera tinybar (50 billion whole tokens with 8 decimals).</li> <li>Bitcoin milli-satoshis (21 million whole tokens with 11 decimals).</li> <li>Theoretical limit is roughly 92.2 billion with 8 decimals, or 92.2 million with 11 decimals.</li> </ul> All token amounts in the network are stored as integer amounts, with each unit representing 10<sup>-decimals</sup> whole tokens. <p> For tokens with `token_type` set to `NON_FUNGIBLE_UNIQUE` this MUST be 0.
int32 decimals = 4;- Specified by:
getDecimalsin interfaceTokenOrBuilder- Returns:
- The decimals.
-
setDecimals
* A number of decimal places for this token. <p> If decimals are 8 or 11, then the number of whole tokens can be at most billions or millions, respectively. More decimals allows for a more finely-divided token, but also limits the maximum total supply. <p> Examples <ul> <li>Bitcoin satoshis (21 million whole tokens with 8 decimals).</li> <li>Hedera tinybar (50 billion whole tokens with 8 decimals).</li> <li>Bitcoin milli-satoshis (21 million whole tokens with 11 decimals).</li> <li>Theoretical limit is roughly 92.2 billion with 8 decimals, or 92.2 million with 11 decimals.</li> </ul> All token amounts in the network are stored as integer amounts, with each unit representing 10<sup>-decimals</sup> whole tokens. <p> For tokens with `token_type` set to `NON_FUNGIBLE_UNIQUE` this MUST be 0.
int32 decimals = 4;- Parameters:
value- The decimals to set.- Returns:
- This builder for chaining.
-
clearDecimals
* A number of decimal places for this token. <p> If decimals are 8 or 11, then the number of whole tokens can be at most billions or millions, respectively. More decimals allows for a more finely-divided token, but also limits the maximum total supply. <p> Examples <ul> <li>Bitcoin satoshis (21 million whole tokens with 8 decimals).</li> <li>Hedera tinybar (50 billion whole tokens with 8 decimals).</li> <li>Bitcoin milli-satoshis (21 million whole tokens with 11 decimals).</li> <li>Theoretical limit is roughly 92.2 billion with 8 decimals, or 92.2 million with 11 decimals.</li> </ul> All token amounts in the network are stored as integer amounts, with each unit representing 10<sup>-decimals</sup> whole tokens. <p> For tokens with `token_type` set to `NON_FUNGIBLE_UNIQUE` this MUST be 0.
int32 decimals = 4;- Returns:
- This builder for chaining.
-
getTotalSupply
public long getTotalSupply()* A _current_ total supply of this token, expressed in the smallest unit of the token. <p> The number of _whole_ tokens this represents is (total_supply / 10<sup>decimals</sup>). The value of total supply, MUST be within the positive range of a twos-compliment signed 64-bit integer. The `total_supply`, therefore MUST be between 1, and 9,223,372,036,854,775,807, inclusive. <p> This value SHALL be reduced when a `token_burn` or `token_wipe_account` operation is executed, and SHALL be increased when a `token_mint` operation is executed.
int64 total_supply = 5;- Specified by:
getTotalSupplyin interfaceTokenOrBuilder- Returns:
- The totalSupply.
-
setTotalSupply
* A _current_ total supply of this token, expressed in the smallest unit of the token. <p> The number of _whole_ tokens this represents is (total_supply / 10<sup>decimals</sup>). The value of total supply, MUST be within the positive range of a twos-compliment signed 64-bit integer. The `total_supply`, therefore MUST be between 1, and 9,223,372,036,854,775,807, inclusive. <p> This value SHALL be reduced when a `token_burn` or `token_wipe_account` operation is executed, and SHALL be increased when a `token_mint` operation is executed.
int64 total_supply = 5;- Parameters:
value- The totalSupply to set.- Returns:
- This builder for chaining.
-
clearTotalSupply
* A _current_ total supply of this token, expressed in the smallest unit of the token. <p> The number of _whole_ tokens this represents is (total_supply / 10<sup>decimals</sup>). The value of total supply, MUST be within the positive range of a twos-compliment signed 64-bit integer. The `total_supply`, therefore MUST be between 1, and 9,223,372,036,854,775,807, inclusive. <p> This value SHALL be reduced when a `token_burn` or `token_wipe_account` operation is executed, and SHALL be increased when a `token_mint` operation is executed.
int64 total_supply = 5;- Returns:
- This builder for chaining.
-
hasTreasuryAccountId
public boolean hasTreasuryAccountId()* A treasury account identifier for this token. <p> When the token is created, the initial supply given in the token create transaction SHALL be minted and deposited in the treasury account.<br/> All token mint transactions for this token SHALL deposit the new minted tokens in the treasury account.<br/> All token burn transactions for this token SHALL remove the tokens to be burned from the treasury account.
.proto.AccountID treasury_account_id = 6;- Specified by:
hasTreasuryAccountIdin interfaceTokenOrBuilder- Returns:
- Whether the treasuryAccountId field is set.
-
getTreasuryAccountId
* A treasury account identifier for this token. <p> When the token is created, the initial supply given in the token create transaction SHALL be minted and deposited in the treasury account.<br/> All token mint transactions for this token SHALL deposit the new minted tokens in the treasury account.<br/> All token burn transactions for this token SHALL remove the tokens to be burned from the treasury account.
.proto.AccountID treasury_account_id = 6;- Specified by:
getTreasuryAccountIdin interfaceTokenOrBuilder- Returns:
- The treasuryAccountId.
-
setTreasuryAccountId
* A treasury account identifier for this token. <p> When the token is created, the initial supply given in the token create transaction SHALL be minted and deposited in the treasury account.<br/> All token mint transactions for this token SHALL deposit the new minted tokens in the treasury account.<br/> All token burn transactions for this token SHALL remove the tokens to be burned from the treasury account.
.proto.AccountID treasury_account_id = 6; -
setTreasuryAccountId
* A treasury account identifier for this token. <p> When the token is created, the initial supply given in the token create transaction SHALL be minted and deposited in the treasury account.<br/> All token mint transactions for this token SHALL deposit the new minted tokens in the treasury account.<br/> All token burn transactions for this token SHALL remove the tokens to be burned from the treasury account.
.proto.AccountID treasury_account_id = 6; -
mergeTreasuryAccountId
* A treasury account identifier for this token. <p> When the token is created, the initial supply given in the token create transaction SHALL be minted and deposited in the treasury account.<br/> All token mint transactions for this token SHALL deposit the new minted tokens in the treasury account.<br/> All token burn transactions for this token SHALL remove the tokens to be burned from the treasury account.
.proto.AccountID treasury_account_id = 6; -
clearTreasuryAccountId
* A treasury account identifier for this token. <p> When the token is created, the initial supply given in the token create transaction SHALL be minted and deposited in the treasury account.<br/> All token mint transactions for this token SHALL deposit the new minted tokens in the treasury account.<br/> All token burn transactions for this token SHALL remove the tokens to be burned from the treasury account.
.proto.AccountID treasury_account_id = 6; -
hasAdminKey
public boolean hasAdminKey()* Access control for general modification of this token. <p> This key MUST sign any `token_update` transaction that changes any attribute of the token other than expiration_time. Other attributes of this token MAY be changed by transactions other than `token_update`, and MUST be signed by one of the other purpose-specific keys assigned to the token.<br/> This value can be set during token creation, and SHALL NOT be modified thereafter, unless the update transaction is signed by both the existing `admin_key` and the new `admin_key`.<br/> If the `admin_key` is not set for a token, that token SHALL be immutable.
.proto.Key admin_key = 7;- Specified by:
hasAdminKeyin interfaceTokenOrBuilder- Returns:
- Whether the adminKey field is set.
-
getAdminKey
* Access control for general modification of this token. <p> This key MUST sign any `token_update` transaction that changes any attribute of the token other than expiration_time. Other attributes of this token MAY be changed by transactions other than `token_update`, and MUST be signed by one of the other purpose-specific keys assigned to the token.<br/> This value can be set during token creation, and SHALL NOT be modified thereafter, unless the update transaction is signed by both the existing `admin_key` and the new `admin_key`.<br/> If the `admin_key` is not set for a token, that token SHALL be immutable.
.proto.Key admin_key = 7;- Specified by:
getAdminKeyin interfaceTokenOrBuilder- Returns:
- The adminKey.
-
setAdminKey
* Access control for general modification of this token. <p> This key MUST sign any `token_update` transaction that changes any attribute of the token other than expiration_time. Other attributes of this token MAY be changed by transactions other than `token_update`, and MUST be signed by one of the other purpose-specific keys assigned to the token.<br/> This value can be set during token creation, and SHALL NOT be modified thereafter, unless the update transaction is signed by both the existing `admin_key` and the new `admin_key`.<br/> If the `admin_key` is not set for a token, that token SHALL be immutable.
.proto.Key admin_key = 7; -
setAdminKey
* Access control for general modification of this token. <p> This key MUST sign any `token_update` transaction that changes any attribute of the token other than expiration_time. Other attributes of this token MAY be changed by transactions other than `token_update`, and MUST be signed by one of the other purpose-specific keys assigned to the token.<br/> This value can be set during token creation, and SHALL NOT be modified thereafter, unless the update transaction is signed by both the existing `admin_key` and the new `admin_key`.<br/> If the `admin_key` is not set for a token, that token SHALL be immutable.
.proto.Key admin_key = 7; -
mergeAdminKey
* Access control for general modification of this token. <p> This key MUST sign any `token_update` transaction that changes any attribute of the token other than expiration_time. Other attributes of this token MAY be changed by transactions other than `token_update`, and MUST be signed by one of the other purpose-specific keys assigned to the token.<br/> This value can be set during token creation, and SHALL NOT be modified thereafter, unless the update transaction is signed by both the existing `admin_key` and the new `admin_key`.<br/> If the `admin_key` is not set for a token, that token SHALL be immutable.
.proto.Key admin_key = 7; -
clearAdminKey
* Access control for general modification of this token. <p> This key MUST sign any `token_update` transaction that changes any attribute of the token other than expiration_time. Other attributes of this token MAY be changed by transactions other than `token_update`, and MUST be signed by one of the other purpose-specific keys assigned to the token.<br/> This value can be set during token creation, and SHALL NOT be modified thereafter, unless the update transaction is signed by both the existing `admin_key` and the new `admin_key`.<br/> If the `admin_key` is not set for a token, that token SHALL be immutable.
.proto.Key admin_key = 7; -
hasKycKey
public boolean hasKycKey()* Access control for KYC for this token. <p> Know Your Customer (KYC) status may be granted for an account by a token grant kyc transaction signed by this key.<br/> If this key is not set, then KYC status cannot be granted to an account for this token, and any `TokenGrantKyc` transaction attempting to grant kyc to an account for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key kyc_key = 8;- Specified by:
hasKycKeyin interfaceTokenOrBuilder- Returns:
- Whether the kycKey field is set.
-
getKycKey
* Access control for KYC for this token. <p> Know Your Customer (KYC) status may be granted for an account by a token grant kyc transaction signed by this key.<br/> If this key is not set, then KYC status cannot be granted to an account for this token, and any `TokenGrantKyc` transaction attempting to grant kyc to an account for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key kyc_key = 8;- Specified by:
getKycKeyin interfaceTokenOrBuilder- Returns:
- The kycKey.
-
setKycKey
* Access control for KYC for this token. <p> Know Your Customer (KYC) status may be granted for an account by a token grant kyc transaction signed by this key.<br/> If this key is not set, then KYC status cannot be granted to an account for this token, and any `TokenGrantKyc` transaction attempting to grant kyc to an account for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key kyc_key = 8; -
setKycKey
* Access control for KYC for this token. <p> Know Your Customer (KYC) status may be granted for an account by a token grant kyc transaction signed by this key.<br/> If this key is not set, then KYC status cannot be granted to an account for this token, and any `TokenGrantKyc` transaction attempting to grant kyc to an account for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key kyc_key = 8; -
mergeKycKey
* Access control for KYC for this token. <p> Know Your Customer (KYC) status may be granted for an account by a token grant kyc transaction signed by this key.<br/> If this key is not set, then KYC status cannot be granted to an account for this token, and any `TokenGrantKyc` transaction attempting to grant kyc to an account for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key kyc_key = 8; -
clearKycKey
* Access control for KYC for this token. <p> Know Your Customer (KYC) status may be granted for an account by a token grant kyc transaction signed by this key.<br/> If this key is not set, then KYC status cannot be granted to an account for this token, and any `TokenGrantKyc` transaction attempting to grant kyc to an account for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key kyc_key = 8; -
hasFreezeKey
public boolean hasFreezeKey()* Access control to freeze this token. <p> A token may be frozen for an account, preventing any transaction from transferring that token for that specified account, by a token freeze account transaction signed by this key.<br/> If this key is not set, the token cannot be frozen, and any transaction attempting to freeze the token for an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key freeze_key = 9;- Specified by:
hasFreezeKeyin interfaceTokenOrBuilder- Returns:
- Whether the freezeKey field is set.
-
getFreezeKey
* Access control to freeze this token. <p> A token may be frozen for an account, preventing any transaction from transferring that token for that specified account, by a token freeze account transaction signed by this key.<br/> If this key is not set, the token cannot be frozen, and any transaction attempting to freeze the token for an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key freeze_key = 9;- Specified by:
getFreezeKeyin interfaceTokenOrBuilder- Returns:
- The freezeKey.
-
setFreezeKey
* Access control to freeze this token. <p> A token may be frozen for an account, preventing any transaction from transferring that token for that specified account, by a token freeze account transaction signed by this key.<br/> If this key is not set, the token cannot be frozen, and any transaction attempting to freeze the token for an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key freeze_key = 9; -
setFreezeKey
* Access control to freeze this token. <p> A token may be frozen for an account, preventing any transaction from transferring that token for that specified account, by a token freeze account transaction signed by this key.<br/> If this key is not set, the token cannot be frozen, and any transaction attempting to freeze the token for an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key freeze_key = 9; -
mergeFreezeKey
* Access control to freeze this token. <p> A token may be frozen for an account, preventing any transaction from transferring that token for that specified account, by a token freeze account transaction signed by this key.<br/> If this key is not set, the token cannot be frozen, and any transaction attempting to freeze the token for an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key freeze_key = 9; -
clearFreezeKey
* Access control to freeze this token. <p> A token may be frozen for an account, preventing any transaction from transferring that token for that specified account, by a token freeze account transaction signed by this key.<br/> If this key is not set, the token cannot be frozen, and any transaction attempting to freeze the token for an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key freeze_key = 9; -
hasWipeKey
public boolean hasWipeKey()* Access control of account wipe for this token. <p> A token may be wiped, removing and burning tokens from a specific account, by a token wipe transaction, which MUST be signed by this key. The `treasury_account` cannot be subjected to a token wipe. A token burn transaction, signed by the `supply_key`, serves to burn tokens held by the `treasury_account` instead.<br/> If this key is not set, the token cannot be wiped, and any transaction attempting to wipe the token from an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key wipe_key = 10;- Specified by:
hasWipeKeyin interfaceTokenOrBuilder- Returns:
- Whether the wipeKey field is set.
-
getWipeKey
* Access control of account wipe for this token. <p> A token may be wiped, removing and burning tokens from a specific account, by a token wipe transaction, which MUST be signed by this key. The `treasury_account` cannot be subjected to a token wipe. A token burn transaction, signed by the `supply_key`, serves to burn tokens held by the `treasury_account` instead.<br/> If this key is not set, the token cannot be wiped, and any transaction attempting to wipe the token from an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key wipe_key = 10;- Specified by:
getWipeKeyin interfaceTokenOrBuilder- Returns:
- The wipeKey.
-
setWipeKey
* Access control of account wipe for this token. <p> A token may be wiped, removing and burning tokens from a specific account, by a token wipe transaction, which MUST be signed by this key. The `treasury_account` cannot be subjected to a token wipe. A token burn transaction, signed by the `supply_key`, serves to burn tokens held by the `treasury_account` instead.<br/> If this key is not set, the token cannot be wiped, and any transaction attempting to wipe the token from an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key wipe_key = 10; -
setWipeKey
* Access control of account wipe for this token. <p> A token may be wiped, removing and burning tokens from a specific account, by a token wipe transaction, which MUST be signed by this key. The `treasury_account` cannot be subjected to a token wipe. A token burn transaction, signed by the `supply_key`, serves to burn tokens held by the `treasury_account` instead.<br/> If this key is not set, the token cannot be wiped, and any transaction attempting to wipe the token from an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key wipe_key = 10; -
mergeWipeKey
* Access control of account wipe for this token. <p> A token may be wiped, removing and burning tokens from a specific account, by a token wipe transaction, which MUST be signed by this key. The `treasury_account` cannot be subjected to a token wipe. A token burn transaction, signed by the `supply_key`, serves to burn tokens held by the `treasury_account` instead.<br/> If this key is not set, the token cannot be wiped, and any transaction attempting to wipe the token from an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key wipe_key = 10; -
clearWipeKey
* Access control of account wipe for this token. <p> A token may be wiped, removing and burning tokens from a specific account, by a token wipe transaction, which MUST be signed by this key. The `treasury_account` cannot be subjected to a token wipe. A token burn transaction, signed by the `supply_key`, serves to burn tokens held by the `treasury_account` instead.<br/> If this key is not set, the token cannot be wiped, and any transaction attempting to wipe the token from an account SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key wipe_key = 10; -
hasSupplyKey
public boolean hasSupplyKey()* Access control of token mint/burn for this token. <p> A token mint transaction MUST be signed by this key, and any token mint transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> A token burn transaction MUST be signed by this key, and any token burn transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key supply_key = 11;- Specified by:
hasSupplyKeyin interfaceTokenOrBuilder- Returns:
- Whether the supplyKey field is set.
-
getSupplyKey
* Access control of token mint/burn for this token. <p> A token mint transaction MUST be signed by this key, and any token mint transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> A token burn transaction MUST be signed by this key, and any token burn transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key supply_key = 11;- Specified by:
getSupplyKeyin interfaceTokenOrBuilder- Returns:
- The supplyKey.
-
setSupplyKey
* Access control of token mint/burn for this token. <p> A token mint transaction MUST be signed by this key, and any token mint transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> A token burn transaction MUST be signed by this key, and any token burn transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key supply_key = 11; -
setSupplyKey
* Access control of token mint/burn for this token. <p> A token mint transaction MUST be signed by this key, and any token mint transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> A token burn transaction MUST be signed by this key, and any token burn transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key supply_key = 11; -
mergeSupplyKey
* Access control of token mint/burn for this token. <p> A token mint transaction MUST be signed by this key, and any token mint transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> A token burn transaction MUST be signed by this key, and any token burn transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key supply_key = 11; -
clearSupplyKey
* Access control of token mint/burn for this token. <p> A token mint transaction MUST be signed by this key, and any token mint transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> A token burn transaction MUST be signed by this key, and any token burn transaction not signed by the current `supply_key` for that token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key supply_key = 11; -
hasFeeScheduleKey
public boolean hasFeeScheduleKey()* Access control of the `custom_fees` field for this token. <p> The token custom fee schedule may be changed, modifying the fees charged for transferring that token, by a token update transaction, which MUST be signed by this key.<br/> If this key is not set, the token custom fee schedule cannot be changed, and any transaction attempting to change the custom fee schedule for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key fee_schedule_key = 12;- Specified by:
hasFeeScheduleKeyin interfaceTokenOrBuilder- Returns:
- Whether the feeScheduleKey field is set.
-
getFeeScheduleKey
* Access control of the `custom_fees` field for this token. <p> The token custom fee schedule may be changed, modifying the fees charged for transferring that token, by a token update transaction, which MUST be signed by this key.<br/> If this key is not set, the token custom fee schedule cannot be changed, and any transaction attempting to change the custom fee schedule for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key fee_schedule_key = 12;- Specified by:
getFeeScheduleKeyin interfaceTokenOrBuilder- Returns:
- The feeScheduleKey.
-
setFeeScheduleKey
* Access control of the `custom_fees` field for this token. <p> The token custom fee schedule may be changed, modifying the fees charged for transferring that token, by a token update transaction, which MUST be signed by this key.<br/> If this key is not set, the token custom fee schedule cannot be changed, and any transaction attempting to change the custom fee schedule for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key fee_schedule_key = 12; -
setFeeScheduleKey
* Access control of the `custom_fees` field for this token. <p> The token custom fee schedule may be changed, modifying the fees charged for transferring that token, by a token update transaction, which MUST be signed by this key.<br/> If this key is not set, the token custom fee schedule cannot be changed, and any transaction attempting to change the custom fee schedule for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key fee_schedule_key = 12; -
mergeFeeScheduleKey
* Access control of the `custom_fees` field for this token. <p> The token custom fee schedule may be changed, modifying the fees charged for transferring that token, by a token update transaction, which MUST be signed by this key.<br/> If this key is not set, the token custom fee schedule cannot be changed, and any transaction attempting to change the custom fee schedule for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key fee_schedule_key = 12; -
clearFeeScheduleKey
* Access control of the `custom_fees` field for this token. <p> The token custom fee schedule may be changed, modifying the fees charged for transferring that token, by a token update transaction, which MUST be signed by this key.<br/> If this key is not set, the token custom fee schedule cannot be changed, and any transaction attempting to change the custom fee schedule for this token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key fee_schedule_key = 12; -
hasPauseKey
public boolean hasPauseKey()* Access control of pause/unpause for this token. <p> A token may be paused, preventing any transaction from transferring that token, by a token update transaction signed by this key.<br/> If this key is not set, the token cannot be paused, and any transaction attempting to pause the token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key pause_key = 13;- Specified by:
hasPauseKeyin interfaceTokenOrBuilder- Returns:
- Whether the pauseKey field is set.
-
getPauseKey
* Access control of pause/unpause for this token. <p> A token may be paused, preventing any transaction from transferring that token, by a token update transaction signed by this key.<br/> If this key is not set, the token cannot be paused, and any transaction attempting to pause the token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key pause_key = 13;- Specified by:
getPauseKeyin interfaceTokenOrBuilder- Returns:
- The pauseKey.
-
setPauseKey
* Access control of pause/unpause for this token. <p> A token may be paused, preventing any transaction from transferring that token, by a token update transaction signed by this key.<br/> If this key is not set, the token cannot be paused, and any transaction attempting to pause the token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key pause_key = 13; -
setPauseKey
* Access control of pause/unpause for this token. <p> A token may be paused, preventing any transaction from transferring that token, by a token update transaction signed by this key.<br/> If this key is not set, the token cannot be paused, and any transaction attempting to pause the token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key pause_key = 13; -
mergePauseKey
* Access control of pause/unpause for this token. <p> A token may be paused, preventing any transaction from transferring that token, by a token update transaction signed by this key.<br/> If this key is not set, the token cannot be paused, and any transaction attempting to pause the token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key pause_key = 13; -
clearPauseKey
* Access control of pause/unpause for this token. <p> A token may be paused, preventing any transaction from transferring that token, by a token update transaction signed by this key.<br/> If this key is not set, the token cannot be paused, and any transaction attempting to pause the token SHALL NOT succeed.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key pause_key = 13; -
getLastUsedSerialNumber
public long getLastUsedSerialNumber()* A last used serial number for this token. <p> This SHALL apply only to non-fungible tokens.<br/> When a new NFT is minted, the serial number to apply SHALL be calculated from this value.
int64 last_used_serial_number = 14;- Specified by:
getLastUsedSerialNumberin interfaceTokenOrBuilder- Returns:
- The lastUsedSerialNumber.
-
setLastUsedSerialNumber
* A last used serial number for this token. <p> This SHALL apply only to non-fungible tokens.<br/> When a new NFT is minted, the serial number to apply SHALL be calculated from this value.
int64 last_used_serial_number = 14;- Parameters:
value- The lastUsedSerialNumber to set.- Returns:
- This builder for chaining.
-
clearLastUsedSerialNumber
* A last used serial number for this token. <p> This SHALL apply only to non-fungible tokens.<br/> When a new NFT is minted, the serial number to apply SHALL be calculated from this value.
int64 last_used_serial_number = 14;- Returns:
- This builder for chaining.
-
getDeleted
public boolean getDeleted()* A flag indicating that this token is deleted. <p> A transaction involving a deleted token MUST NOT succeed.
bool deleted = 15;- Specified by:
getDeletedin interfaceTokenOrBuilder- Returns:
- The deleted.
-
setDeleted
* A flag indicating that this token is deleted. <p> A transaction involving a deleted token MUST NOT succeed.
bool deleted = 15;- Parameters:
value- The deleted to set.- Returns:
- This builder for chaining.
-
clearDeleted
* A flag indicating that this token is deleted. <p> A transaction involving a deleted token MUST NOT succeed.
bool deleted = 15;- Returns:
- This builder for chaining.
-
getTokenTypeValue
public int getTokenTypeValue()* A type for this token. <p> A token SHALL be either `FUNGIBLE_COMMON` or `NON_FUNGIBLE_UNIQUE`.<br/> If this value was omitted during token creation, `FUNGIBLE_COMMON` SHALL be used.
.proto.TokenType token_type = 16;- Specified by:
getTokenTypeValuein interfaceTokenOrBuilder- Returns:
- The enum numeric value on the wire for tokenType.
-
setTokenTypeValue
* A type for this token. <p> A token SHALL be either `FUNGIBLE_COMMON` or `NON_FUNGIBLE_UNIQUE`.<br/> If this value was omitted during token creation, `FUNGIBLE_COMMON` SHALL be used.
.proto.TokenType token_type = 16;- Parameters:
value- The tokenType to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getTokenType
* A type for this token. <p> A token SHALL be either `FUNGIBLE_COMMON` or `NON_FUNGIBLE_UNIQUE`.<br/> If this value was omitted during token creation, `FUNGIBLE_COMMON` SHALL be used.
.proto.TokenType token_type = 16;- Specified by:
getTokenTypein interfaceTokenOrBuilder- Returns:
- The tokenType.
-
setTokenType
* A type for this token. <p> A token SHALL be either `FUNGIBLE_COMMON` or `NON_FUNGIBLE_UNIQUE`.<br/> If this value was omitted during token creation, `FUNGIBLE_COMMON` SHALL be used.
.proto.TokenType token_type = 16;- Parameters:
value- The enum numeric value on the wire for tokenType to set.- Returns:
- This builder for chaining.
-
clearTokenType
* A type for this token. <p> A token SHALL be either `FUNGIBLE_COMMON` or `NON_FUNGIBLE_UNIQUE`.<br/> If this value was omitted during token creation, `FUNGIBLE_COMMON` SHALL be used.
.proto.TokenType token_type = 16;- Returns:
- This builder for chaining.
-
getSupplyTypeValue
public int getSupplyTypeValue()* A supply type for this token. <p> A token SHALL have either `INFINITE` or `FINITE` supply type.<br/> If this value was omitted during token creation, the value `INFINITE` SHALL be used.
.proto.TokenSupplyType supply_type = 17;- Specified by:
getSupplyTypeValuein interfaceTokenOrBuilder- Returns:
- The enum numeric value on the wire for supplyType.
-
setSupplyTypeValue
* A supply type for this token. <p> A token SHALL have either `INFINITE` or `FINITE` supply type.<br/> If this value was omitted during token creation, the value `INFINITE` SHALL be used.
.proto.TokenSupplyType supply_type = 17;- Parameters:
value- The supplyType to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getSupplyType
* A supply type for this token. <p> A token SHALL have either `INFINITE` or `FINITE` supply type.<br/> If this value was omitted during token creation, the value `INFINITE` SHALL be used.
.proto.TokenSupplyType supply_type = 17;- Specified by:
getSupplyTypein interfaceTokenOrBuilder- Returns:
- The supplyType.
-
setSupplyType
* A supply type for this token. <p> A token SHALL have either `INFINITE` or `FINITE` supply type.<br/> If this value was omitted during token creation, the value `INFINITE` SHALL be used.
.proto.TokenSupplyType supply_type = 17;- Parameters:
value- The enum numeric value on the wire for supplyType to set.- Returns:
- This builder for chaining.
-
clearSupplyType
* A supply type for this token. <p> A token SHALL have either `INFINITE` or `FINITE` supply type.<br/> If this value was omitted during token creation, the value `INFINITE` SHALL be used.
.proto.TokenSupplyType supply_type = 17;- Returns:
- This builder for chaining.
-
hasAutoRenewAccountId
public boolean hasAutoRenewAccountId()* An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration. <p> This field is OPTIONAL. If it is not set then renewal fees SHALL be charged to the account identified by `treasury_account_id`.
.proto.AccountID auto_renew_account_id = 18;- Specified by:
hasAutoRenewAccountIdin interfaceTokenOrBuilder- Returns:
- Whether the autoRenewAccountId field is set.
-
getAutoRenewAccountId
* An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration. <p> This field is OPTIONAL. If it is not set then renewal fees SHALL be charged to the account identified by `treasury_account_id`.
.proto.AccountID auto_renew_account_id = 18;- Specified by:
getAutoRenewAccountIdin interfaceTokenOrBuilder- Returns:
- The autoRenewAccountId.
-
setAutoRenewAccountId
* An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration. <p> This field is OPTIONAL. If it is not set then renewal fees SHALL be charged to the account identified by `treasury_account_id`.
.proto.AccountID auto_renew_account_id = 18; -
setAutoRenewAccountId
* An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration. <p> This field is OPTIONAL. If it is not set then renewal fees SHALL be charged to the account identified by `treasury_account_id`.
.proto.AccountID auto_renew_account_id = 18; -
mergeAutoRenewAccountId
* An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration. <p> This field is OPTIONAL. If it is not set then renewal fees SHALL be charged to the account identified by `treasury_account_id`.
.proto.AccountID auto_renew_account_id = 18; -
clearAutoRenewAccountId
* An identifier for the account (if any) that the network will attempt to charge for this token's auto-renewal upon expiration. <p> This field is OPTIONAL. If it is not set then renewal fees SHALL be charged to the account identified by `treasury_account_id`.
.proto.AccountID auto_renew_account_id = 18; -
getAutoRenewSeconds
public long getAutoRenewSeconds()* A number of seconds by which the network should automatically extend this token's expiration. <p> If the token has a valid auto-renew account, and is not deleted upon expiration, the network SHALL attempt to automatically renew this token.<br/> If this is not provided in an allowed range on token creation, the transaction SHALL fail with `INVALID_AUTO_RENEWAL_PERIOD`.<br/> The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
int64 auto_renew_seconds = 19;- Specified by:
getAutoRenewSecondsin interfaceTokenOrBuilder- Returns:
- The autoRenewSeconds.
-
setAutoRenewSeconds
* A number of seconds by which the network should automatically extend this token's expiration. <p> If the token has a valid auto-renew account, and is not deleted upon expiration, the network SHALL attempt to automatically renew this token.<br/> If this is not provided in an allowed range on token creation, the transaction SHALL fail with `INVALID_AUTO_RENEWAL_PERIOD`.<br/> The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
int64 auto_renew_seconds = 19;- Parameters:
value- The autoRenewSeconds to set.- Returns:
- This builder for chaining.
-
clearAutoRenewSeconds
* A number of seconds by which the network should automatically extend this token's expiration. <p> If the token has a valid auto-renew account, and is not deleted upon expiration, the network SHALL attempt to automatically renew this token.<br/> If this is not provided in an allowed range on token creation, the transaction SHALL fail with `INVALID_AUTO_RENEWAL_PERIOD`.<br/> The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
int64 auto_renew_seconds = 19;- Returns:
- This builder for chaining.
-
getExpirationSecond
public long getExpirationSecond()* An expiration time for this token, in seconds since the epoch. <p> For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
int64 expiration_second = 20;- Specified by:
getExpirationSecondin interfaceTokenOrBuilder- Returns:
- The expirationSecond.
-
setExpirationSecond
* An expiration time for this token, in seconds since the epoch. <p> For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
int64 expiration_second = 20;- Parameters:
value- The expirationSecond to set.- Returns:
- This builder for chaining.
-
clearExpirationSecond
* An expiration time for this token, in seconds since the epoch. <p> For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
int64 expiration_second = 20;- Returns:
- This builder for chaining.
-
getMemo
* A short description of this token. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 21;- Specified by:
getMemoin interfaceTokenOrBuilder- Returns:
- The memo.
-
getMemoBytes
public com.google.protobuf.ByteString getMemoBytes()* A short description of this token. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 21;- Specified by:
getMemoBytesin interfaceTokenOrBuilder- Returns:
- The bytes for memo.
-
setMemo
* A short description of this token. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 21;- Parameters:
value- The memo to set.- Returns:
- This builder for chaining.
-
clearMemo
* A short description of this token. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 21;- Returns:
- This builder for chaining.
-
setMemoBytes
* A short description of this token. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 21;- Parameters:
value- The bytes for memo to set.- Returns:
- This builder for chaining.
-
getMaxSupply
public long getMaxSupply()* A maximum supply of this token.<br/> This is the maximum number of tokens of this type that may be issued. <p> This limit SHALL apply regardless of `token_type`.<br/> If `supply_type` is `INFINITE` then this value MUST be 0.<br/> If `supply_type` is `FINITE`, then this value MUST be greater than 0.
int64 max_supply = 22;- Specified by:
getMaxSupplyin interfaceTokenOrBuilder- Returns:
- The maxSupply.
-
setMaxSupply
* A maximum supply of this token.<br/> This is the maximum number of tokens of this type that may be issued. <p> This limit SHALL apply regardless of `token_type`.<br/> If `supply_type` is `INFINITE` then this value MUST be 0.<br/> If `supply_type` is `FINITE`, then this value MUST be greater than 0.
int64 max_supply = 22;- Parameters:
value- The maxSupply to set.- Returns:
- This builder for chaining.
-
clearMaxSupply
* A maximum supply of this token.<br/> This is the maximum number of tokens of this type that may be issued. <p> This limit SHALL apply regardless of `token_type`.<br/> If `supply_type` is `INFINITE` then this value MUST be 0.<br/> If `supply_type` is `FINITE`, then this value MUST be greater than 0.
int64 max_supply = 22;- Returns:
- This builder for chaining.
-
getPaused
public boolean getPaused()* A flag indicating that this token is paused. <p> A transaction involving a paused token, other than token_unpause, MUST NOT succeed.
bool paused = 23;- Specified by:
getPausedin interfaceTokenOrBuilder- Returns:
- The paused.
-
setPaused
* A flag indicating that this token is paused. <p> A transaction involving a paused token, other than token_unpause, MUST NOT succeed.
bool paused = 23;- Parameters:
value- The paused to set.- Returns:
- This builder for chaining.
-
clearPaused
* A flag indicating that this token is paused. <p> A transaction involving a paused token, other than token_unpause, MUST NOT succeed.
bool paused = 23;- Returns:
- This builder for chaining.
-
getAccountsFrozenByDefault
public boolean getAccountsFrozenByDefault()* A flag indicating that accounts associated to this token are frozen by default. <p> Accounts newly associated with this token CANNOT transact in the token until unfrozen.<br/> This SHALL NOT prevent a `tokenReject` transaction to return the tokens from an account to the treasury account.
bool accounts_frozen_by_default = 24;- Specified by:
getAccountsFrozenByDefaultin interfaceTokenOrBuilder- Returns:
- The accountsFrozenByDefault.
-
setAccountsFrozenByDefault
* A flag indicating that accounts associated to this token are frozen by default. <p> Accounts newly associated with this token CANNOT transact in the token until unfrozen.<br/> This SHALL NOT prevent a `tokenReject` transaction to return the tokens from an account to the treasury account.
bool accounts_frozen_by_default = 24;- Parameters:
value- The accountsFrozenByDefault to set.- Returns:
- This builder for chaining.
-
clearAccountsFrozenByDefault
* A flag indicating that accounts associated to this token are frozen by default. <p> Accounts newly associated with this token CANNOT transact in the token until unfrozen.<br/> This SHALL NOT prevent a `tokenReject` transaction to return the tokens from an account to the treasury account.
bool accounts_frozen_by_default = 24;- Returns:
- This builder for chaining.
-
getAccountsKycGrantedByDefault
public boolean getAccountsKycGrantedByDefault()* A flag indicating that accounts associated with this token are granted KYC by default.
bool accounts_kyc_granted_by_default = 25;- Specified by:
getAccountsKycGrantedByDefaultin interfaceTokenOrBuilder- Returns:
- The accountsKycGrantedByDefault.
-
setAccountsKycGrantedByDefault
* A flag indicating that accounts associated with this token are granted KYC by default.
bool accounts_kyc_granted_by_default = 25;- Parameters:
value- The accountsKycGrantedByDefault to set.- Returns:
- This builder for chaining.
-
clearAccountsKycGrantedByDefault
* A flag indicating that accounts associated with this token are granted KYC by default.
bool accounts_kyc_granted_by_default = 25;- Returns:
- This builder for chaining.
-
getCustomFeesList
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26;- Specified by:
getCustomFeesListin interfaceTokenOrBuilder
-
getCustomFeesCount
public int getCustomFeesCount()* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26;- Specified by:
getCustomFeesCountin interfaceTokenOrBuilder
-
getCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26;- Specified by:
getCustomFeesin interfaceTokenOrBuilder
-
setCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26; -
setCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26; -
addCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26; -
addCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26; -
addCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26; -
addCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26; -
addAllCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26; -
clearCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26; -
removeCustomFees
* A custom fee schedule for this token.
repeated .proto.CustomFee custom_fees = 26; -
getMetadata
public com.google.protobuf.ByteString getMetadata()* A Token "Metadata". <p> This value, if set, SHALL NOT exceed 100 bytes.
bytes metadata = 27;- Specified by:
getMetadatain interfaceTokenOrBuilder- Returns:
- The metadata.
-
setMetadata
* A Token "Metadata". <p> This value, if set, SHALL NOT exceed 100 bytes.
bytes metadata = 27;- Parameters:
value- The metadata to set.- Returns:
- This builder for chaining.
-
clearMetadata
* A Token "Metadata". <p> This value, if set, SHALL NOT exceed 100 bytes.
bytes metadata = 27;- Returns:
- This builder for chaining.
-
hasMetadataKey
public boolean hasMetadataKey()* Access Control of metadata update for this token. <p> A transaction to update the `metadata` field of this token MUST be signed by this key.<br/> If this token is a non-fungible/unique token type, a transaction to update the `metadata` field of any individual serialized unique token of this type MUST be signed by this key.<br/> If this key is not set, the token metadata SHALL NOT be changed after it is created.<br/> If this key is not set, the metadata for any individual serialized token of this type SHALL NOT be changed after it is created.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key metadata_key = 28;- Specified by:
hasMetadataKeyin interfaceTokenOrBuilder- Returns:
- Whether the metadataKey field is set.
-
getMetadataKey
* Access Control of metadata update for this token. <p> A transaction to update the `metadata` field of this token MUST be signed by this key.<br/> If this token is a non-fungible/unique token type, a transaction to update the `metadata` field of any individual serialized unique token of this type MUST be signed by this key.<br/> If this key is not set, the token metadata SHALL NOT be changed after it is created.<br/> If this key is not set, the metadata for any individual serialized token of this type SHALL NOT be changed after it is created.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key metadata_key = 28;- Specified by:
getMetadataKeyin interfaceTokenOrBuilder- Returns:
- The metadataKey.
-
setMetadataKey
* Access Control of metadata update for this token. <p> A transaction to update the `metadata` field of this token MUST be signed by this key.<br/> If this token is a non-fungible/unique token type, a transaction to update the `metadata` field of any individual serialized unique token of this type MUST be signed by this key.<br/> If this key is not set, the token metadata SHALL NOT be changed after it is created.<br/> If this key is not set, the metadata for any individual serialized token of this type SHALL NOT be changed after it is created.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key metadata_key = 28; -
setMetadataKey
* Access Control of metadata update for this token. <p> A transaction to update the `metadata` field of this token MUST be signed by this key.<br/> If this token is a non-fungible/unique token type, a transaction to update the `metadata` field of any individual serialized unique token of this type MUST be signed by this key.<br/> If this key is not set, the token metadata SHALL NOT be changed after it is created.<br/> If this key is not set, the metadata for any individual serialized token of this type SHALL NOT be changed after it is created.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key metadata_key = 28; -
mergeMetadataKey
* Access Control of metadata update for this token. <p> A transaction to update the `metadata` field of this token MUST be signed by this key.<br/> If this token is a non-fungible/unique token type, a transaction to update the `metadata` field of any individual serialized unique token of this type MUST be signed by this key.<br/> If this key is not set, the token metadata SHALL NOT be changed after it is created.<br/> If this key is not set, the metadata for any individual serialized token of this type SHALL NOT be changed after it is created.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key metadata_key = 28; -
clearMetadataKey
* Access Control of metadata update for this token. <p> A transaction to update the `metadata` field of this token MUST be signed by this key.<br/> If this token is a non-fungible/unique token type, a transaction to update the `metadata` field of any individual serialized unique token of this type MUST be signed by this key.<br/> If this key is not set, the token metadata SHALL NOT be changed after it is created.<br/> If this key is not set, the metadata for any individual serialized token of this type SHALL NOT be changed after it is created.<br/> This key MAY be set when the token is created, and MAY be set or modified via a token update transaction signed by the `admin_key`.<br/> If `admin_key` is not set, this value, whether set or unset, SHALL be immutable.
.proto.Key metadata_key = 28;
-