![JAR search and dependency download from the Maven repository](/logo.png)
com.hedera.hashgraph.sdk.proto.TokenInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Hedera™ Hashgraph SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: token_get_info.proto
// Protobuf Java Version: 3.25.4
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* The metadata about a Token instance
*
*
* Protobuf type {@code proto.TokenInfo}
*/
public final class TokenInfo extends
com.google.protobuf.GeneratedMessageLite<
TokenInfo, TokenInfo.Builder> implements
// @@protoc_insertion_point(message_implements:proto.TokenInfo)
TokenInfoOrBuilder {
private TokenInfo() {
name_ = "";
symbol_ = "";
memo_ = "";
customFees_ = emptyProtobufList();
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
metadata_ = com.google.protobuf.ByteString.EMPTY;
}
private int bitField0_;
public static final int TOKENID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.TokenID tokenId_;
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.Override
public boolean hasTokenId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getTokenId() {
return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
private void setTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
value.getClass();
tokenId_ = value;
bitField0_ |= 0x00000001;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
value.getClass();
if (tokenId_ != null &&
tokenId_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) {
tokenId_ =
com.hedera.hashgraph.sdk.proto.TokenID.newBuilder(tokenId_).mergeFrom(value).buildPartial();
} else {
tokenId_ = value;
}
bitField0_ |= 0x00000001;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
private void clearTokenId() { tokenId_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int NAME_FIELD_NUMBER = 2;
private java.lang.String name_;
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
name_ = value;
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @param value The bytes for name to set.
*/
private void setNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
}
public static final int SYMBOL_FIELD_NUMBER = 3;
private java.lang.String symbol_;
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @return The symbol.
*/
@java.lang.Override
public java.lang.String getSymbol() {
return symbol_;
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @return The bytes for symbol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSymbolBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(symbol_);
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @param value The symbol to set.
*/
private void setSymbol(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
symbol_ = value;
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
*/
private void clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @param value The bytes for symbol to set.
*/
private void setSymbolBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
symbol_ = value.toStringUtf8();
}
public static final int DECIMALS_FIELD_NUMBER = 4;
private int decimals_;
/**
*
**
* The number of decimal places a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 decimals = 4;
* @return The decimals.
*/
@java.lang.Override
public int getDecimals() {
return decimals_;
}
/**
*
**
* The number of decimal places a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 decimals = 4;
* @param value The decimals to set.
*/
private void setDecimals(int value) {
decimals_ = value;
}
/**
*
**
* The number of decimal places a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 decimals = 4;
*/
private void clearDecimals() {
decimals_ = 0;
}
public static final int TOTALSUPPLY_FIELD_NUMBER = 5;
private long totalSupply_;
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
* @return The totalSupply.
*/
@java.lang.Override
public long getTotalSupply() {
return totalSupply_;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
* @param value The totalSupply to set.
*/
private void setTotalSupply(long value) {
totalSupply_ = value;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
*/
private void clearTotalSupply() {
totalSupply_ = 0L;
}
public static final int TREASURY_FIELD_NUMBER = 6;
private com.hedera.hashgraph.sdk.proto.AccountID treasury_;
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
@java.lang.Override
public boolean hasTreasury() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getTreasury() {
return treasury_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasury_;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
private void setTreasury(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
treasury_ = value;
bitField0_ |= 0x00000002;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeTreasury(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
if (treasury_ != null &&
treasury_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
treasury_ =
com.hedera.hashgraph.sdk.proto.AccountID.newBuilder(treasury_).mergeFrom(value).buildPartial();
} else {
treasury_ = value;
}
bitField0_ |= 0x00000002;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
private void clearTreasury() { treasury_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int ADMINKEY_FIELD_NUMBER = 7;
private com.hedera.hashgraph.sdk.proto.Key adminKey_;
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
@java.lang.Override
public boolean hasAdminKey() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getAdminKey() {
return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
private void setAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
adminKey_ = value;
bitField0_ |= 0x00000004;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (adminKey_ != null &&
adminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
adminKey_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(adminKey_).mergeFrom(value).buildPartial();
} else {
adminKey_ = value;
}
bitField0_ |= 0x00000004;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
private void clearAdminKey() { adminKey_ = null;
bitField0_ = (bitField0_ & ~0x00000004);
}
public static final int KYCKEY_FIELD_NUMBER = 8;
private com.hedera.hashgraph.sdk.proto.Key kycKey_;
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
@java.lang.Override
public boolean hasKycKey() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKycKey() {
return kycKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : kycKey_;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
private void setKycKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
kycKey_ = value;
bitField0_ |= 0x00000008;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeKycKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (kycKey_ != null &&
kycKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
kycKey_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(kycKey_).mergeFrom(value).buildPartial();
} else {
kycKey_ = value;
}
bitField0_ |= 0x00000008;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
private void clearKycKey() { kycKey_ = null;
bitField0_ = (bitField0_ & ~0x00000008);
}
public static final int FREEZEKEY_FIELD_NUMBER = 9;
private com.hedera.hashgraph.sdk.proto.Key freezeKey_;
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
@java.lang.Override
public boolean hasFreezeKey() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getFreezeKey() {
return freezeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : freezeKey_;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
private void setFreezeKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
freezeKey_ = value;
bitField0_ |= 0x00000010;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeFreezeKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (freezeKey_ != null &&
freezeKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
freezeKey_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(freezeKey_).mergeFrom(value).buildPartial();
} else {
freezeKey_ = value;
}
bitField0_ |= 0x00000010;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
private void clearFreezeKey() { freezeKey_ = null;
bitField0_ = (bitField0_ & ~0x00000010);
}
public static final int WIPEKEY_FIELD_NUMBER = 10;
private com.hedera.hashgraph.sdk.proto.Key wipeKey_;
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
@java.lang.Override
public boolean hasWipeKey() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getWipeKey() {
return wipeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : wipeKey_;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
private void setWipeKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
wipeKey_ = value;
bitField0_ |= 0x00000020;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeWipeKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (wipeKey_ != null &&
wipeKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
wipeKey_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(wipeKey_).mergeFrom(value).buildPartial();
} else {
wipeKey_ = value;
}
bitField0_ |= 0x00000020;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
private void clearWipeKey() { wipeKey_ = null;
bitField0_ = (bitField0_ & ~0x00000020);
}
public static final int SUPPLYKEY_FIELD_NUMBER = 11;
private com.hedera.hashgraph.sdk.proto.Key supplyKey_;
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
@java.lang.Override
public boolean hasSupplyKey() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getSupplyKey() {
return supplyKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : supplyKey_;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
private void setSupplyKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
supplyKey_ = value;
bitField0_ |= 0x00000040;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSupplyKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (supplyKey_ != null &&
supplyKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
supplyKey_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(supplyKey_).mergeFrom(value).buildPartial();
} else {
supplyKey_ = value;
}
bitField0_ |= 0x00000040;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
private void clearSupplyKey() { supplyKey_ = null;
bitField0_ = (bitField0_ & ~0x00000040);
}
public static final int DEFAULTFREEZESTATUS_FIELD_NUMBER = 12;
private int defaultFreezeStatus_;
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return The enum numeric value on the wire for defaultFreezeStatus.
*/
@java.lang.Override
public int getDefaultFreezeStatusValue() {
return defaultFreezeStatus_;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return The defaultFreezeStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenFreezeStatus getDefaultFreezeStatus() {
com.hedera.hashgraph.sdk.proto.TokenFreezeStatus result = com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.forNumber(defaultFreezeStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.UNRECOGNIZED : result;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @param value The enum numeric value on the wire for defaultFreezeStatus to set.
*/
private void setDefaultFreezeStatusValue(int value) {
defaultFreezeStatus_ = value;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @param value The defaultFreezeStatus to set.
*/
private void setDefaultFreezeStatus(com.hedera.hashgraph.sdk.proto.TokenFreezeStatus value) {
defaultFreezeStatus_ = value.getNumber();
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
*/
private void clearDefaultFreezeStatus() {
defaultFreezeStatus_ = 0;
}
public static final int DEFAULTKYCSTATUS_FIELD_NUMBER = 13;
private int defaultKycStatus_;
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return The enum numeric value on the wire for defaultKycStatus.
*/
@java.lang.Override
public int getDefaultKycStatusValue() {
return defaultKycStatus_;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return The defaultKycStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenKycStatus getDefaultKycStatus() {
com.hedera.hashgraph.sdk.proto.TokenKycStatus result = com.hedera.hashgraph.sdk.proto.TokenKycStatus.forNumber(defaultKycStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenKycStatus.UNRECOGNIZED : result;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @param value The enum numeric value on the wire for defaultKycStatus to set.
*/
private void setDefaultKycStatusValue(int value) {
defaultKycStatus_ = value;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @param value The defaultKycStatus to set.
*/
private void setDefaultKycStatus(com.hedera.hashgraph.sdk.proto.TokenKycStatus value) {
defaultKycStatus_ = value.getNumber();
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
*/
private void clearDefaultKycStatus() {
defaultKycStatus_ = 0;
}
public static final int DELETED_FIELD_NUMBER = 14;
private boolean deleted_;
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return deleted_;
}
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
* @param value The deleted to set.
*/
private void setDeleted(boolean value) {
deleted_ = value;
}
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
*/
private void clearDeleted() {
deleted_ = false;
}
public static final int AUTORENEWACCOUNT_FIELD_NUMBER = 15;
private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccount_;
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
@java.lang.Override
public boolean hasAutoRenewAccount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccount() {
return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccount_;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
private void setAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
autoRenewAccount_ = value;
bitField0_ |= 0x00000080;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
if (autoRenewAccount_ != null &&
autoRenewAccount_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
autoRenewAccount_ =
com.hedera.hashgraph.sdk.proto.AccountID.newBuilder(autoRenewAccount_).mergeFrom(value).buildPartial();
} else {
autoRenewAccount_ = value;
}
bitField0_ |= 0x00000080;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
private void clearAutoRenewAccount() { autoRenewAccount_ = null;
bitField0_ = (bitField0_ & ~0x00000080);
}
public static final int AUTORENEWPERIOD_FIELD_NUMBER = 16;
private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_;
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
private void setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
value.getClass();
autoRenewPeriod_ = value;
bitField0_ |= 0x00000100;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
value.getClass();
if (autoRenewPeriod_ != null &&
autoRenewPeriod_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) {
autoRenewPeriod_ =
com.hedera.hashgraph.sdk.proto.Duration.newBuilder(autoRenewPeriod_).mergeFrom(value).buildPartial();
} else {
autoRenewPeriod_ = value;
}
bitField0_ |= 0x00000100;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
private void clearAutoRenewPeriod() { autoRenewPeriod_ = null;
bitField0_ = (bitField0_ & ~0x00000100);
}
public static final int EXPIRY_FIELD_NUMBER = 17;
private com.hedera.hashgraph.sdk.proto.Timestamp expiry_;
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
@java.lang.Override
public boolean hasExpiry() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getExpiry() {
return expiry_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expiry_;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
private void setExpiry(com.hedera.hashgraph.sdk.proto.Timestamp value) {
value.getClass();
expiry_ = value;
bitField0_ |= 0x00000200;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeExpiry(com.hedera.hashgraph.sdk.proto.Timestamp value) {
value.getClass();
if (expiry_ != null &&
expiry_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
expiry_ =
com.hedera.hashgraph.sdk.proto.Timestamp.newBuilder(expiry_).mergeFrom(value).buildPartial();
} else {
expiry_ = value;
}
bitField0_ |= 0x00000200;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
private void clearExpiry() { expiry_ = null;
bitField0_ = (bitField0_ & ~0x00000200);
}
public static final int MEMO_FIELD_NUMBER = 18;
private java.lang.String memo_;
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
return memo_;
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(memo_);
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @param value The memo to set.
*/
private void setMemo(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
memo_ = value;
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
*/
private void clearMemo() {
memo_ = getDefaultInstance().getMemo();
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @param value The bytes for memo to set.
*/
private void setMemoBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
memo_ = value.toStringUtf8();
}
public static final int TOKENTYPE_FIELD_NUMBER = 19;
private int tokenType_;
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @return The enum numeric value on the wire for tokenType.
*/
@java.lang.Override
public int getTokenTypeValue() {
return tokenType_;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @return The tokenType.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenType getTokenType() {
com.hedera.hashgraph.sdk.proto.TokenType result = com.hedera.hashgraph.sdk.proto.TokenType.forNumber(tokenType_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenType.UNRECOGNIZED : result;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @param value The enum numeric value on the wire for tokenType to set.
*/
private void setTokenTypeValue(int value) {
tokenType_ = value;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @param value The tokenType to set.
*/
private void setTokenType(com.hedera.hashgraph.sdk.proto.TokenType value) {
tokenType_ = value.getNumber();
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
*/
private void clearTokenType() {
tokenType_ = 0;
}
public static final int SUPPLYTYPE_FIELD_NUMBER = 20;
private int supplyType_;
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @return The enum numeric value on the wire for supplyType.
*/
@java.lang.Override
public int getSupplyTypeValue() {
return supplyType_;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @return The supplyType.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenSupplyType getSupplyType() {
com.hedera.hashgraph.sdk.proto.TokenSupplyType result = com.hedera.hashgraph.sdk.proto.TokenSupplyType.forNumber(supplyType_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenSupplyType.UNRECOGNIZED : result;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @param value The enum numeric value on the wire for supplyType to set.
*/
private void setSupplyTypeValue(int value) {
supplyType_ = value;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @param value The supplyType to set.
*/
private void setSupplyType(com.hedera.hashgraph.sdk.proto.TokenSupplyType value) {
supplyType_ = value.getNumber();
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
*/
private void clearSupplyType() {
supplyType_ = 0;
}
public static final int MAXSUPPLY_FIELD_NUMBER = 21;
private long maxSupply_;
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
* @return The maxSupply.
*/
@java.lang.Override
public long getMaxSupply() {
return maxSupply_;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
* @param value The maxSupply to set.
*/
private void setMaxSupply(long value) {
maxSupply_ = value;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
*/
private void clearMaxSupply() {
maxSupply_ = 0L;
}
public static final int FEE_SCHEDULE_KEY_FIELD_NUMBER = 22;
private com.hedera.hashgraph.sdk.proto.Key feeScheduleKey_;
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
@java.lang.Override
public boolean hasFeeScheduleKey() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getFeeScheduleKey() {
return feeScheduleKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : feeScheduleKey_;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
private void setFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
feeScheduleKey_ = value;
bitField0_ |= 0x00000400;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (feeScheduleKey_ != null &&
feeScheduleKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
feeScheduleKey_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(feeScheduleKey_).mergeFrom(value).buildPartial();
} else {
feeScheduleKey_ = value;
}
bitField0_ |= 0x00000400;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
private void clearFeeScheduleKey() { feeScheduleKey_ = null;
bitField0_ = (bitField0_ & ~0x00000400);
}
public static final int CUSTOM_FEES_FIELD_NUMBER = 23;
private com.google.protobuf.Internal.ProtobufList customFees_;
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public java.util.List getCustomFeesList() {
return customFees_;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder>
getCustomFeesOrBuilderList() {
return customFees_;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public int getCustomFeesCount() {
return customFees_.size();
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CustomFee getCustomFees(int index) {
return customFees_.get(index);
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder getCustomFeesOrBuilder(
int index) {
return customFees_.get(index);
}
private void ensureCustomFeesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = customFees_;
if (!tmp.isModifiable()) {
customFees_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
private void setCustomFees(
int index, com.hedera.hashgraph.sdk.proto.CustomFee value) {
value.getClass();
ensureCustomFeesIsMutable();
customFees_.set(index, value);
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
private void addCustomFees(com.hedera.hashgraph.sdk.proto.CustomFee value) {
value.getClass();
ensureCustomFeesIsMutable();
customFees_.add(value);
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
private void addCustomFees(
int index, com.hedera.hashgraph.sdk.proto.CustomFee value) {
value.getClass();
ensureCustomFeesIsMutable();
customFees_.add(index, value);
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
private void addAllCustomFees(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.CustomFee> values) {
ensureCustomFeesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, customFees_);
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
private void clearCustomFees() {
customFees_ = emptyProtobufList();
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
private void removeCustomFees(int index) {
ensureCustomFeesIsMutable();
customFees_.remove(index);
}
public static final int PAUSE_KEY_FIELD_NUMBER = 24;
private com.hedera.hashgraph.sdk.proto.Key pauseKey_;
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
@java.lang.Override
public boolean hasPauseKey() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getPauseKey() {
return pauseKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : pauseKey_;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
private void setPauseKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
pauseKey_ = value;
bitField0_ |= 0x00000800;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergePauseKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (pauseKey_ != null &&
pauseKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
pauseKey_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(pauseKey_).mergeFrom(value).buildPartial();
} else {
pauseKey_ = value;
}
bitField0_ |= 0x00000800;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
private void clearPauseKey() { pauseKey_ = null;
bitField0_ = (bitField0_ & ~0x00000800);
}
public static final int PAUSE_STATUS_FIELD_NUMBER = 25;
private int pauseStatus_;
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return The enum numeric value on the wire for pauseStatus.
*/
@java.lang.Override
public int getPauseStatusValue() {
return pauseStatus_;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return The pauseStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenPauseStatus getPauseStatus() {
com.hedera.hashgraph.sdk.proto.TokenPauseStatus result = com.hedera.hashgraph.sdk.proto.TokenPauseStatus.forNumber(pauseStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenPauseStatus.UNRECOGNIZED : result;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @param value The enum numeric value on the wire for pauseStatus to set.
*/
private void setPauseStatusValue(int value) {
pauseStatus_ = value;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @param value The pauseStatus to set.
*/
private void setPauseStatus(com.hedera.hashgraph.sdk.proto.TokenPauseStatus value) {
pauseStatus_ = value.getNumber();
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
*/
private void clearPauseStatus() {
pauseStatus_ = 0;
}
public static final int LEDGER_ID_FIELD_NUMBER = 26;
private com.google.protobuf.ByteString ledgerId_;
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
* @param value The ledgerId to set.
*/
private void setLedgerId(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
ledgerId_ = value;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
*/
private void clearLedgerId() {
ledgerId_ = getDefaultInstance().getLedgerId();
}
public static final int METADATA_FIELD_NUMBER = 27;
private com.google.protobuf.ByteString metadata_;
/**
*
**
* Represents the metadata of the token definition.
*
*
* bytes metadata = 27;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadata() {
return metadata_;
}
/**
*
**
* Represents the metadata of the token definition.
*
*
* bytes metadata = 27;
* @param value The metadata to set.
*/
private void setMetadata(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
metadata_ = value;
}
/**
*
**
* Represents the metadata of the token definition.
*
*
* bytes metadata = 27;
*/
private void clearMetadata() {
metadata_ = getDefaultInstance().getMetadata();
}
public static final int METADATA_KEY_FIELD_NUMBER = 28;
private com.hedera.hashgraph.sdk.proto.Key metadataKey_;
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
@java.lang.Override
public boolean hasMetadataKey() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getMetadataKey() {
return metadataKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : metadataKey_;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
private void setMetadataKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
metadataKey_ = value;
bitField0_ |= 0x00001000;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeMetadataKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (metadataKey_ != null &&
metadataKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
metadataKey_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(metadataKey_).mergeFrom(value).buildPartial();
} else {
metadataKey_ = value;
}
bitField0_ |= 0x00001000;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
private void clearMetadataKey() { metadataKey_ = null;
bitField0_ = (bitField0_ & ~0x00001000);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.TokenInfo prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* The metadata about a Token instance
*
*
* Protobuf type {@code proto.TokenInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.TokenInfo, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.TokenInfo)
com.hedera.hashgraph.sdk.proto.TokenInfoOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.TokenInfo.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.Override
public boolean hasTokenId() {
return instance.hasTokenId();
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getTokenId() {
return instance.getTokenId();
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
public Builder setTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
copyOnWrite();
instance.setTokenId(value);
return this;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
public Builder setTokenId(
com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) {
copyOnWrite();
instance.setTokenId(builderForValue.build());
return this;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
public Builder mergeTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
copyOnWrite();
instance.mergeTokenId(value);
return this;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
public Builder clearTokenId() { copyOnWrite();
instance.clearTokenId();
return this;
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNameBytes(value);
return this;
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @return The symbol.
*/
@java.lang.Override
public java.lang.String getSymbol() {
return instance.getSymbol();
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @return The bytes for symbol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSymbolBytes() {
return instance.getSymbolBytes();
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @param value The symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbol(
java.lang.String value) {
copyOnWrite();
instance.setSymbol(value);
return this;
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @return This builder for chaining.
*/
public Builder clearSymbol() {
copyOnWrite();
instance.clearSymbol();
return this;
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @param value The bytes for symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSymbolBytes(value);
return this;
}
/**
*
**
* The number of decimal places a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 decimals = 4;
* @return The decimals.
*/
@java.lang.Override
public int getDecimals() {
return instance.getDecimals();
}
/**
*
**
* The number of decimal places a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 decimals = 4;
* @param value The decimals to set.
* @return This builder for chaining.
*/
public Builder setDecimals(int value) {
copyOnWrite();
instance.setDecimals(value);
return this;
}
/**
*
**
* The number of decimal places a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 decimals = 4;
* @return This builder for chaining.
*/
public Builder clearDecimals() {
copyOnWrite();
instance.clearDecimals();
return this;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
* @return The totalSupply.
*/
@java.lang.Override
public long getTotalSupply() {
return instance.getTotalSupply();
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
* @param value The totalSupply to set.
* @return This builder for chaining.
*/
public Builder setTotalSupply(long value) {
copyOnWrite();
instance.setTotalSupply(value);
return this;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
* @return This builder for chaining.
*/
public Builder clearTotalSupply() {
copyOnWrite();
instance.clearTotalSupply();
return this;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
@java.lang.Override
public boolean hasTreasury() {
return instance.hasTreasury();
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getTreasury() {
return instance.getTreasury();
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public Builder setTreasury(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setTreasury(value);
return this;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public Builder setTreasury(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setTreasury(builderForValue.build());
return this;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public Builder mergeTreasury(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeTreasury(value);
return this;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public Builder clearTreasury() { copyOnWrite();
instance.clearTreasury();
return this;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
@java.lang.Override
public boolean hasAdminKey() {
return instance.hasAdminKey();
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getAdminKey() {
return instance.getAdminKey();
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
public Builder setAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setAdminKey(value);
return this;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
public Builder setAdminKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setAdminKey(builderForValue.build());
return this;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
public Builder mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeAdminKey(value);
return this;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
public Builder clearAdminKey() { copyOnWrite();
instance.clearAdminKey();
return this;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
@java.lang.Override
public boolean hasKycKey() {
return instance.hasKycKey();
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKycKey() {
return instance.getKycKey();
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
public Builder setKycKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setKycKey(value);
return this;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
public Builder setKycKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setKycKey(builderForValue.build());
return this;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
public Builder mergeKycKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeKycKey(value);
return this;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
public Builder clearKycKey() { copyOnWrite();
instance.clearKycKey();
return this;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
@java.lang.Override
public boolean hasFreezeKey() {
return instance.hasFreezeKey();
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getFreezeKey() {
return instance.getFreezeKey();
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
public Builder setFreezeKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setFreezeKey(value);
return this;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
public Builder setFreezeKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setFreezeKey(builderForValue.build());
return this;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
public Builder mergeFreezeKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeFreezeKey(value);
return this;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
public Builder clearFreezeKey() { copyOnWrite();
instance.clearFreezeKey();
return this;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
@java.lang.Override
public boolean hasWipeKey() {
return instance.hasWipeKey();
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getWipeKey() {
return instance.getWipeKey();
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
public Builder setWipeKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setWipeKey(value);
return this;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
public Builder setWipeKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setWipeKey(builderForValue.build());
return this;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
public Builder mergeWipeKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeWipeKey(value);
return this;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
public Builder clearWipeKey() { copyOnWrite();
instance.clearWipeKey();
return this;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
@java.lang.Override
public boolean hasSupplyKey() {
return instance.hasSupplyKey();
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getSupplyKey() {
return instance.getSupplyKey();
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
public Builder setSupplyKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setSupplyKey(value);
return this;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
public Builder setSupplyKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setSupplyKey(builderForValue.build());
return this;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
public Builder mergeSupplyKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeSupplyKey(value);
return this;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
public Builder clearSupplyKey() { copyOnWrite();
instance.clearSupplyKey();
return this;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return The enum numeric value on the wire for defaultFreezeStatus.
*/
@java.lang.Override
public int getDefaultFreezeStatusValue() {
return instance.getDefaultFreezeStatusValue();
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @param value The defaultFreezeStatus to set.
* @return This builder for chaining.
*/
public Builder setDefaultFreezeStatusValue(int value) {
copyOnWrite();
instance.setDefaultFreezeStatusValue(value);
return this;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return The defaultFreezeStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenFreezeStatus getDefaultFreezeStatus() {
return instance.getDefaultFreezeStatus();
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @param value The enum numeric value on the wire for defaultFreezeStatus to set.
* @return This builder for chaining.
*/
public Builder setDefaultFreezeStatus(com.hedera.hashgraph.sdk.proto.TokenFreezeStatus value) {
copyOnWrite();
instance.setDefaultFreezeStatus(value);
return this;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return This builder for chaining.
*/
public Builder clearDefaultFreezeStatus() {
copyOnWrite();
instance.clearDefaultFreezeStatus();
return this;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return The enum numeric value on the wire for defaultKycStatus.
*/
@java.lang.Override
public int getDefaultKycStatusValue() {
return instance.getDefaultKycStatusValue();
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @param value The defaultKycStatus to set.
* @return This builder for chaining.
*/
public Builder setDefaultKycStatusValue(int value) {
copyOnWrite();
instance.setDefaultKycStatusValue(value);
return this;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return The defaultKycStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenKycStatus getDefaultKycStatus() {
return instance.getDefaultKycStatus();
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @param value The enum numeric value on the wire for defaultKycStatus to set.
* @return This builder for chaining.
*/
public Builder setDefaultKycStatus(com.hedera.hashgraph.sdk.proto.TokenKycStatus value) {
copyOnWrite();
instance.setDefaultKycStatus(value);
return this;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return This builder for chaining.
*/
public Builder clearDefaultKycStatus() {
copyOnWrite();
instance.clearDefaultKycStatus();
return this;
}
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return instance.getDeleted();
}
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
* @param value The deleted to set.
* @return This builder for chaining.
*/
public Builder setDeleted(boolean value) {
copyOnWrite();
instance.setDeleted(value);
return this;
}
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
* @return This builder for chaining.
*/
public Builder clearDeleted() {
copyOnWrite();
instance.clearDeleted();
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
@java.lang.Override
public boolean hasAutoRenewAccount() {
return instance.hasAutoRenewAccount();
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccount() {
return instance.getAutoRenewAccount();
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public Builder setAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setAutoRenewAccount(value);
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public Builder setAutoRenewAccount(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setAutoRenewAccount(builderForValue.build());
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public Builder mergeAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeAutoRenewAccount(value);
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public Builder clearAutoRenewAccount() { copyOnWrite();
instance.clearAutoRenewAccount();
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return instance.hasAutoRenewPeriod();
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
return instance.getAutoRenewPeriod();
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public Builder setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
copyOnWrite();
instance.setAutoRenewPeriod(value);
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public Builder setAutoRenewPeriod(
com.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) {
copyOnWrite();
instance.setAutoRenewPeriod(builderForValue.build());
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public Builder mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
copyOnWrite();
instance.mergeAutoRenewPeriod(value);
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public Builder clearAutoRenewPeriod() { copyOnWrite();
instance.clearAutoRenewPeriod();
return this;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
@java.lang.Override
public boolean hasExpiry() {
return instance.hasExpiry();
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getExpiry() {
return instance.getExpiry();
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public Builder setExpiry(com.hedera.hashgraph.sdk.proto.Timestamp value) {
copyOnWrite();
instance.setExpiry(value);
return this;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public Builder setExpiry(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
copyOnWrite();
instance.setExpiry(builderForValue.build());
return this;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public Builder mergeExpiry(com.hedera.hashgraph.sdk.proto.Timestamp value) {
copyOnWrite();
instance.mergeExpiry(value);
return this;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public Builder clearExpiry() { copyOnWrite();
instance.clearExpiry();
return this;
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
return instance.getMemo();
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
return instance.getMemoBytes();
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
copyOnWrite();
instance.setMemo(value);
return this;
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @return This builder for chaining.
*/
public Builder clearMemo() {
copyOnWrite();
instance.clearMemo();
return this;
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setMemoBytes(value);
return this;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @return The enum numeric value on the wire for tokenType.
*/
@java.lang.Override
public int getTokenTypeValue() {
return instance.getTokenTypeValue();
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @param value The tokenType to set.
* @return This builder for chaining.
*/
public Builder setTokenTypeValue(int value) {
copyOnWrite();
instance.setTokenTypeValue(value);
return this;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @return The tokenType.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenType getTokenType() {
return instance.getTokenType();
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @param value The enum numeric value on the wire for tokenType to set.
* @return This builder for chaining.
*/
public Builder setTokenType(com.hedera.hashgraph.sdk.proto.TokenType value) {
copyOnWrite();
instance.setTokenType(value);
return this;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @return This builder for chaining.
*/
public Builder clearTokenType() {
copyOnWrite();
instance.clearTokenType();
return this;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @return The enum numeric value on the wire for supplyType.
*/
@java.lang.Override
public int getSupplyTypeValue() {
return instance.getSupplyTypeValue();
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @param value The supplyType to set.
* @return This builder for chaining.
*/
public Builder setSupplyTypeValue(int value) {
copyOnWrite();
instance.setSupplyTypeValue(value);
return this;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @return The supplyType.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenSupplyType getSupplyType() {
return instance.getSupplyType();
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @param value The enum numeric value on the wire for supplyType to set.
* @return This builder for chaining.
*/
public Builder setSupplyType(com.hedera.hashgraph.sdk.proto.TokenSupplyType value) {
copyOnWrite();
instance.setSupplyType(value);
return this;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @return This builder for chaining.
*/
public Builder clearSupplyType() {
copyOnWrite();
instance.clearSupplyType();
return this;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
* @return The maxSupply.
*/
@java.lang.Override
public long getMaxSupply() {
return instance.getMaxSupply();
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
* @param value The maxSupply to set.
* @return This builder for chaining.
*/
public Builder setMaxSupply(long value) {
copyOnWrite();
instance.setMaxSupply(value);
return this;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
* @return This builder for chaining.
*/
public Builder clearMaxSupply() {
copyOnWrite();
instance.clearMaxSupply();
return this;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
@java.lang.Override
public boolean hasFeeScheduleKey() {
return instance.hasFeeScheduleKey();
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getFeeScheduleKey() {
return instance.getFeeScheduleKey();
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
public Builder setFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setFeeScheduleKey(value);
return this;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
public Builder setFeeScheduleKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setFeeScheduleKey(builderForValue.build());
return this;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
public Builder mergeFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeFeeScheduleKey(value);
return this;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
public Builder clearFeeScheduleKey() { copyOnWrite();
instance.clearFeeScheduleKey();
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public java.util.List getCustomFeesList() {
return java.util.Collections.unmodifiableList(
instance.getCustomFeesList());
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public int getCustomFeesCount() {
return instance.getCustomFeesCount();
}/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CustomFee getCustomFees(int index) {
return instance.getCustomFees(index);
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder setCustomFees(
int index, com.hedera.hashgraph.sdk.proto.CustomFee value) {
copyOnWrite();
instance.setCustomFees(index, value);
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder setCustomFees(
int index, com.hedera.hashgraph.sdk.proto.CustomFee.Builder builderForValue) {
copyOnWrite();
instance.setCustomFees(index,
builderForValue.build());
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder addCustomFees(com.hedera.hashgraph.sdk.proto.CustomFee value) {
copyOnWrite();
instance.addCustomFees(value);
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder addCustomFees(
int index, com.hedera.hashgraph.sdk.proto.CustomFee value) {
copyOnWrite();
instance.addCustomFees(index, value);
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder addCustomFees(
com.hedera.hashgraph.sdk.proto.CustomFee.Builder builderForValue) {
copyOnWrite();
instance.addCustomFees(builderForValue.build());
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder addCustomFees(
int index, com.hedera.hashgraph.sdk.proto.CustomFee.Builder builderForValue) {
copyOnWrite();
instance.addCustomFees(index,
builderForValue.build());
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder addAllCustomFees(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.CustomFee> values) {
copyOnWrite();
instance.addAllCustomFees(values);
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder clearCustomFees() {
copyOnWrite();
instance.clearCustomFees();
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder removeCustomFees(int index) {
copyOnWrite();
instance.removeCustomFees(index);
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
@java.lang.Override
public boolean hasPauseKey() {
return instance.hasPauseKey();
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getPauseKey() {
return instance.getPauseKey();
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
public Builder setPauseKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setPauseKey(value);
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
public Builder setPauseKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setPauseKey(builderForValue.build());
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
public Builder mergePauseKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergePauseKey(value);
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
public Builder clearPauseKey() { copyOnWrite();
instance.clearPauseKey();
return this;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return The enum numeric value on the wire for pauseStatus.
*/
@java.lang.Override
public int getPauseStatusValue() {
return instance.getPauseStatusValue();
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @param value The pauseStatus to set.
* @return This builder for chaining.
*/
public Builder setPauseStatusValue(int value) {
copyOnWrite();
instance.setPauseStatusValue(value);
return this;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return The pauseStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenPauseStatus getPauseStatus() {
return instance.getPauseStatus();
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @param value The enum numeric value on the wire for pauseStatus to set.
* @return This builder for chaining.
*/
public Builder setPauseStatus(com.hedera.hashgraph.sdk.proto.TokenPauseStatus value) {
copyOnWrite();
instance.setPauseStatus(value);
return this;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return This builder for chaining.
*/
public Builder clearPauseStatus() {
copyOnWrite();
instance.clearPauseStatus();
return this;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return instance.getLedgerId();
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
* @param value The ledgerId to set.
* @return This builder for chaining.
*/
public Builder setLedgerId(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setLedgerId(value);
return this;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
* @return This builder for chaining.
*/
public Builder clearLedgerId() {
copyOnWrite();
instance.clearLedgerId();
return this;
}
/**
*
**
* Represents the metadata of the token definition.
*
*
* bytes metadata = 27;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadata() {
return instance.getMetadata();
}
/**
*
**
* Represents the metadata of the token definition.
*
*
* bytes metadata = 27;
* @param value The metadata to set.
* @return This builder for chaining.
*/
public Builder setMetadata(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setMetadata(value);
return this;
}
/**
*
**
* Represents the metadata of the token definition.
*
*
* bytes metadata = 27;
* @return This builder for chaining.
*/
public Builder clearMetadata() {
copyOnWrite();
instance.clearMetadata();
return this;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
@java.lang.Override
public boolean hasMetadataKey() {
return instance.hasMetadataKey();
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getMetadataKey() {
return instance.getMetadataKey();
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
public Builder setMetadataKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setMetadataKey(value);
return this;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
public Builder setMetadataKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setMetadataKey(builderForValue.build());
return this;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
public Builder mergeMetadataKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeMetadataKey(value);
return this;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
public Builder clearMetadataKey() { copyOnWrite();
instance.clearMetadataKey();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.TokenInfo)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.TokenInfo();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"tokenId_",
"name_",
"symbol_",
"decimals_",
"totalSupply_",
"treasury_",
"adminKey_",
"kycKey_",
"freezeKey_",
"wipeKey_",
"supplyKey_",
"defaultFreezeStatus_",
"defaultKycStatus_",
"deleted_",
"autoRenewAccount_",
"autoRenewPeriod_",
"expiry_",
"memo_",
"tokenType_",
"supplyType_",
"maxSupply_",
"feeScheduleKey_",
"customFees_",
com.hedera.hashgraph.sdk.proto.CustomFee.class,
"pauseKey_",
"pauseStatus_",
"ledgerId_",
"metadata_",
"metadataKey_",
};
java.lang.String info =
"\u0000\u001c\u0000\u0001\u0001\u001c\u001c\u0000\u0001\u0000\u0001\u1009\u0000\u0002" +
"\u0208\u0003\u0208\u0004\u000b\u0005\u0003\u0006\u1009\u0001\u0007\u1009\u0002\b" +
"\u1009\u0003\t\u1009\u0004\n\u1009\u0005\u000b\u1009\u0006\f\f\r\f\u000e\u0007\u000f" +
"\u1009\u0007\u0010\u1009\b\u0011\u1009\t\u0012\u0208\u0013\f\u0014\f\u0015\u0002" +
"\u0016\u1009\n\u0017\u001b\u0018\u1009\u000b\u0019\f\u001a\n\u001b\n\u001c\u1009" +
"\f";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.TokenInfo.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.TokenInfo)
private static final com.hedera.hashgraph.sdk.proto.TokenInfo DEFAULT_INSTANCE;
static {
TokenInfo defaultInstance = new TokenInfo();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TokenInfo.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy