// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: token_update.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* At consensus, updates an already created token to the given values.
*
* If no value is given for a field, that field is left unchanged. For an immutable tokens (that is,
* a token without an admin key), only the expiry may be updated. Setting any other field in that
* case will cause the transaction status to resolve to TOKEN_IS_IMMUTABLE.
*
* --- Signing Requirements ---
* 1. Whether or not a token has an admin key, its expiry can be extended with only the transaction
* payer's signature.
* 2. Updating any other field of a mutable token requires the admin key's signature.
* 3. If a new admin key is set, this new key must sign <b>unless</b> it is exactly an empty
* <tt>KeyList</tt>. This special sentinel key removes the existing admin key and causes the
* token to become immutable. (Other <tt>Key</tt> structures without a constituent
* <tt>Ed25519</tt> key will be rejected with <tt>INVALID_ADMIN_KEY</tt>.)
* 4. If a new treasury is set, the new treasury account's key must sign the transaction.
*
* --- Nft Requirements ---
* 1. If a non fungible token has a positive treasury balance, the operation will abort with
* CURRENT_TREASURY_STILL_OWNS_NFTS.
*
*
* Protobuf type {@code proto.TokenUpdateTransactionBody}
*/
public final class TokenUpdateTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
TokenUpdateTransactionBody, TokenUpdateTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:proto.TokenUpdateTransactionBody)
TokenUpdateTransactionBodyOrBuilder {
private TokenUpdateTransactionBody() {
symbol_ = "";
name_ = "";
}
private int bitField0_;
public static final int TOKEN_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.TokenID token_;
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
@java.lang.Override
public boolean hasToken() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getToken() {
return token_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : token_;
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
private void setToken(com.hedera.hashgraph.sdk.proto.TokenID value) {
value.getClass();
token_ = value;
bitField0_ |= 0x00000001;
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeToken(com.hedera.hashgraph.sdk.proto.TokenID value) {
value.getClass();
if (token_ != null &&
token_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) {
token_ =
com.hedera.hashgraph.sdk.proto.TokenID.newBuilder(token_).mergeFrom(value).buildPartial();
} else {
token_ = value;
}
bitField0_ |= 0x00000001;
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
private void clearToken() { token_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int SYMBOL_FIELD_NUMBER = 2;
private java.lang.String symbol_;
/**
*
**
* The new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @return The symbol.
*/
@java.lang.Override
public java.lang.String getSymbol() {
return symbol_;
}
/**
*
**
* The new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @return The bytes for symbol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSymbolBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(symbol_);
}
/**
*
**
* The new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @param value The symbol to set.
*/
private void setSymbol(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
symbol_ = value;
}
/**
*
**
* The new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
*/
private void clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
}
/**
*
**
* The new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @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 NAME_FIELD_NUMBER = 3;
private java.lang.String name_;
/**
*
**
* The new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
*
**
* The new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
*
**
* The new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
name_ = value;
}
/**
*
**
* The new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
*
**
* The new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
* @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 TREASURY_FIELD_NUMBER = 4;
private com.hedera.hashgraph.sdk.proto.AccountID treasury_;
/**
*
**
* The new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
@java.lang.Override
public boolean hasTreasury() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getTreasury() {
return treasury_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasury_;
}
/**
*
**
* The new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
private void setTreasury(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
treasury_ = value;
bitField0_ |= 0x00000002;
}
/**
*
**
* The new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
@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 new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
private void clearTreasury() { treasury_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int ADMINKEY_FIELD_NUMBER = 5;
private com.hedera.hashgraph.sdk.proto.Key adminKey_;
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
@java.lang.Override
public boolean hasAdminKey() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getAdminKey() {
return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_;
}
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
private void setAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
adminKey_ = value;
bitField0_ |= 0x00000004;
}
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
@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 new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
private void clearAdminKey() { adminKey_ = null;
bitField0_ = (bitField0_ & ~0x00000004);
}
public static final int KYCKEY_FIELD_NUMBER = 6;
private com.hedera.hashgraph.sdk.proto.Key kycKey_;
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
@java.lang.Override
public boolean hasKycKey() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKycKey() {
return kycKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : kycKey_;
}
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
private void setKycKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
kycKey_ = value;
bitField0_ |= 0x00000008;
}
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
@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 new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
private void clearKycKey() { kycKey_ = null;
bitField0_ = (bitField0_ & ~0x00000008);
}
public static final int FREEZEKEY_FIELD_NUMBER = 7;
private com.hedera.hashgraph.sdk.proto.Key freezeKey_;
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
@java.lang.Override
public boolean hasFreezeKey() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getFreezeKey() {
return freezeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : freezeKey_;
}
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
private void setFreezeKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
freezeKey_ = value;
bitField0_ |= 0x00000010;
}
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
@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 new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
private void clearFreezeKey() { freezeKey_ = null;
bitField0_ = (bitField0_ & ~0x00000010);
}
public static final int WIPEKEY_FIELD_NUMBER = 8;
private com.hedera.hashgraph.sdk.proto.Key wipeKey_;
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
@java.lang.Override
public boolean hasWipeKey() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getWipeKey() {
return wipeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : wipeKey_;
}
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
private void setWipeKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
wipeKey_ = value;
bitField0_ |= 0x00000020;
}
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
@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 new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
private void clearWipeKey() { wipeKey_ = null;
bitField0_ = (bitField0_ & ~0x00000020);
}
public static final int SUPPLYKEY_FIELD_NUMBER = 9;
private com.hedera.hashgraph.sdk.proto.Key supplyKey_;
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
@java.lang.Override
public boolean hasSupplyKey() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getSupplyKey() {
return supplyKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : supplyKey_;
}
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
private void setSupplyKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
supplyKey_ = value;
bitField0_ |= 0x00000040;
}
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
@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 new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
private void clearSupplyKey() { supplyKey_ = null;
bitField0_ = (bitField0_ & ~0x00000040);
}
public static final int AUTORENEWACCOUNT_FIELD_NUMBER = 10;
private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccount_;
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
@java.lang.Override
public boolean hasAutoRenewAccount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccount() {
return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccount_;
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
private void setAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
autoRenewAccount_ = value;
bitField0_ |= 0x00000080;
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
@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;
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
private void clearAutoRenewAccount() { autoRenewAccount_ = null;
bitField0_ = (bitField0_ & ~0x00000080);
}
public static final int AUTORENEWPERIOD_FIELD_NUMBER = 11;
private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_;
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
private void setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
value.getClass();
autoRenewPeriod_ = value;
bitField0_ |= 0x00000100;
}
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
@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 new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
private void clearAutoRenewPeriod() { autoRenewPeriod_ = null;
bitField0_ = (bitField0_ & ~0x00000100);
}
public static final int EXPIRY_FIELD_NUMBER = 12;
private com.hedera.hashgraph.sdk.proto.Timestamp expiry_;
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
@java.lang.Override
public boolean hasExpiry() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getExpiry() {
return expiry_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expiry_;
}
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
private void setExpiry(com.hedera.hashgraph.sdk.proto.Timestamp value) {
value.getClass();
expiry_ = value;
bitField0_ |= 0x00000200;
}
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
@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 new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
private void clearExpiry() { expiry_ = null;
bitField0_ = (bitField0_ & ~0x00000200);
}
public static final int MEMO_FIELD_NUMBER = 13;
private com.google.protobuf.StringValue memo_;
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
@java.lang.Override
public boolean hasMemo() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
@java.lang.Override
public com.google.protobuf.StringValue getMemo() {
return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_;
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
private void setMemo(com.google.protobuf.StringValue value) {
value.getClass();
memo_ = value;
bitField0_ |= 0x00000400;
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeMemo(com.google.protobuf.StringValue value) {
value.getClass();
if (memo_ != null &&
memo_ != com.google.protobuf.StringValue.getDefaultInstance()) {
memo_ =
com.google.protobuf.StringValue.newBuilder(memo_).mergeFrom(value).buildPartial();
} else {
memo_ = value;
}
bitField0_ |= 0x00000400;
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
private void clearMemo() { memo_ = null;
bitField0_ = (bitField0_ & ~0x00000400);
}
public static final int FEE_SCHEDULE_KEY_FIELD_NUMBER = 14;
private com.hedera.hashgraph.sdk.proto.Key feeScheduleKey_;
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
@java.lang.Override
public boolean hasFeeScheduleKey() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getFeeScheduleKey() {
return feeScheduleKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : feeScheduleKey_;
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
private void setFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
feeScheduleKey_ = value;
bitField0_ |= 0x00000800;
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
@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_ |= 0x00000800;
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
private void clearFeeScheduleKey() { feeScheduleKey_ = null;
bitField0_ = (bitField0_ & ~0x00000800);
}
public static final int PAUSE_KEY_FIELD_NUMBER = 15;
private com.hedera.hashgraph.sdk.proto.Key pauseKey_;
/**
*
**
* The Key which can pause and unpause the Token. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
@java.lang.Override
public boolean hasPauseKey() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
**
* The Key which can pause and unpause the Token. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
@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. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
private void setPauseKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
pauseKey_ = value;
bitField0_ |= 0x00001000;
}
/**
*
**
* The Key which can pause and unpause the Token. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
@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_ |= 0x00001000;
}
/**
*
**
* The Key which can pause and unpause the Token. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
private void clearPauseKey() { pauseKey_ = null;
bitField0_ = (bitField0_ & ~0x00001000);
}
public static final int METADATA_FIELD_NUMBER = 16;
private com.google.protobuf.BytesValue metadata_;
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
@java.lang.Override
public boolean hasMetadata() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
@java.lang.Override
public com.google.protobuf.BytesValue getMetadata() {
return metadata_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : metadata_;
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
private void setMetadata(com.google.protobuf.BytesValue value) {
value.getClass();
metadata_ = value;
bitField0_ |= 0x00002000;
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeMetadata(com.google.protobuf.BytesValue value) {
value.getClass();
if (metadata_ != null &&
metadata_ != com.google.protobuf.BytesValue.getDefaultInstance()) {
metadata_ =
com.google.protobuf.BytesValue.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
bitField0_ |= 0x00002000;
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
private void clearMetadata() { metadata_ = null;
bitField0_ = (bitField0_ & ~0x00002000);
}
public static final int METADATA_KEY_FIELD_NUMBER = 17;
private com.hedera.hashgraph.sdk.proto.Key metadataKey_;
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
@java.lang.Override
public boolean hasMetadataKey() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
@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, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
private void setMetadataKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
metadataKey_ = value;
bitField0_ |= 0x00004000;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
@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_ |= 0x00004000;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
private void clearMetadataKey() { metadataKey_ = null;
bitField0_ = (bitField0_ & ~0x00004000);
}
public static final int KEY_VERIFICATION_MODE_FIELD_NUMBER = 18;
private int keyVerificationMode_;
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
* @return The enum numeric value on the wire for keyVerificationMode.
*/
@java.lang.Override
public int getKeyVerificationModeValue() {
return keyVerificationMode_;
}
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
* @return The keyVerificationMode.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenKeyValidation getKeyVerificationMode() {
com.hedera.hashgraph.sdk.proto.TokenKeyValidation result = com.hedera.hashgraph.sdk.proto.TokenKeyValidation.forNumber(keyVerificationMode_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenKeyValidation.UNRECOGNIZED : result;
}
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
* @param value The enum numeric value on the wire for keyVerificationMode to set.
*/
private void setKeyVerificationModeValue(int value) {
keyVerificationMode_ = value;
}
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
* @param value The keyVerificationMode to set.
*/
private void setKeyVerificationMode(com.hedera.hashgraph.sdk.proto.TokenKeyValidation value) {
keyVerificationMode_ = value.getNumber();
}
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
*/
private void clearKeyVerificationMode() {
keyVerificationMode_ = 0;
}
public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody 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.TokenUpdateTransactionBody prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* At consensus, updates an already created token to the given values.
*
* If no value is given for a field, that field is left unchanged. For an immutable tokens (that is,
* a token without an admin key), only the expiry may be updated. Setting any other field in that
* case will cause the transaction status to resolve to TOKEN_IS_IMMUTABLE.
*
* --- Signing Requirements ---
* 1. Whether or not a token has an admin key, its expiry can be extended with only the transaction
* payer's signature.
* 2. Updating any other field of a mutable token requires the admin key's signature.
* 3. If a new admin key is set, this new key must sign <b>unless</b> it is exactly an empty
* <tt>KeyList</tt>. This special sentinel key removes the existing admin key and causes the
* token to become immutable. (Other <tt>Key</tt> structures without a constituent
* <tt>Ed25519</tt> key will be rejected with <tt>INVALID_ADMIN_KEY</tt>.)
* 4. If a new treasury is set, the new treasury account's key must sign the transaction.
*
* --- Nft Requirements ---
* 1. If a non fungible token has a positive treasury balance, the operation will abort with
* CURRENT_TREASURY_STILL_OWNS_NFTS.
*
*
* Protobuf type {@code proto.TokenUpdateTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.TokenUpdateTransactionBody)
com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBodyOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
@java.lang.Override
public boolean hasToken() {
return instance.hasToken();
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getToken() {
return instance.getToken();
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
public Builder setToken(com.hedera.hashgraph.sdk.proto.TokenID value) {
copyOnWrite();
instance.setToken(value);
return this;
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
public Builder setToken(
com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) {
copyOnWrite();
instance.setToken(builderForValue.build());
return this;
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
public Builder mergeToken(com.hedera.hashgraph.sdk.proto.TokenID value) {
copyOnWrite();
instance.mergeToken(value);
return this;
}
/**
*
**
* The Token to be updated
*
*
* .proto.TokenID token = 1;
*/
public Builder clearToken() { copyOnWrite();
instance.clearToken();
return this;
}
/**
*
**
* The new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @return The symbol.
*/
@java.lang.Override
public java.lang.String getSymbol() {
return instance.getSymbol();
}
/**
*
**
* The new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @return The bytes for symbol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSymbolBytes() {
return instance.getSymbolBytes();
}
/**
*
**
* The new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @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 new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @return This builder for chaining.
*/
public Builder clearSymbol() {
copyOnWrite();
instance.clearSymbol();
return this;
}
/**
*
**
* The new publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @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 new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
*
**
* The new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
*
**
* The new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
* @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 new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
*
**
* The new publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 3;
* @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 new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
@java.lang.Override
public boolean hasTreasury() {
return instance.hasTreasury();
}
/**
*
**
* The new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getTreasury() {
return instance.getTreasury();
}
/**
*
**
* The new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
public Builder setTreasury(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setTreasury(value);
return this;
}
/**
*
**
* The new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
public Builder setTreasury(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setTreasury(builderForValue.build());
return this;
}
/**
*
**
* The new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
public Builder mergeTreasury(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeTreasury(value);
return this;
}
/**
*
**
* The new Treasury account of the Token. If the provided treasury account is not existing or
* deleted, the response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token
* balance held in the previous Treasury Account is transferred to the new one.
*
*
* .proto.AccountID treasury = 4;
*/
public Builder clearTreasury() { copyOnWrite();
instance.clearTreasury();
return this;
}
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
@java.lang.Override
public boolean hasAdminKey() {
return instance.hasAdminKey();
}
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getAdminKey() {
return instance.getAdminKey();
}
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
public Builder setAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setAdminKey(value);
return this;
}
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
public Builder setAdminKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setAdminKey(builderForValue.build());
return this;
}
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
public Builder mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeAdminKey(value);
return this;
}
/**
*
**
* The new admin key of the Token. If Token is immutable, transaction will resolve to
* TOKEN_IS_IMMUTABlE.
*
*
* .proto.Key adminKey = 5;
*/
public Builder clearAdminKey() { copyOnWrite();
instance.clearAdminKey();
return this;
}
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
@java.lang.Override
public boolean hasKycKey() {
return instance.hasKycKey();
}
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKycKey() {
return instance.getKycKey();
}
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
public Builder setKycKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setKycKey(value);
return this;
}
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
public Builder setKycKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setKycKey(builderForValue.build());
return this;
}
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
public Builder mergeKycKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeKycKey(value);
return this;
}
/**
*
**
* The new KYC key of the Token. If Token does not have currently a KYC key, transaction will
* resolve to TOKEN_HAS_NO_KYC_KEY.
*
*
* .proto.Key kycKey = 6;
*/
public Builder clearKycKey() { copyOnWrite();
instance.clearKycKey();
return this;
}
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
@java.lang.Override
public boolean hasFreezeKey() {
return instance.hasFreezeKey();
}
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getFreezeKey() {
return instance.getFreezeKey();
}
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
public Builder setFreezeKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setFreezeKey(value);
return this;
}
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
public Builder setFreezeKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setFreezeKey(builderForValue.build());
return this;
}
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
public Builder mergeFreezeKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeFreezeKey(value);
return this;
}
/**
*
**
* The new Freeze key of the Token. If the Token does not have currently a Freeze key,
* transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
*
*
* .proto.Key freezeKey = 7;
*/
public Builder clearFreezeKey() { copyOnWrite();
instance.clearFreezeKey();
return this;
}
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
@java.lang.Override
public boolean hasWipeKey() {
return instance.hasWipeKey();
}
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getWipeKey() {
return instance.getWipeKey();
}
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
public Builder setWipeKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setWipeKey(value);
return this;
}
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
public Builder setWipeKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setWipeKey(builderForValue.build());
return this;
}
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
public Builder mergeWipeKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeWipeKey(value);
return this;
}
/**
*
**
* The new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction
* will resolve to TOKEN_HAS_NO_WIPE_KEY.
*
*
* .proto.Key wipeKey = 8;
*/
public Builder clearWipeKey() { copyOnWrite();
instance.clearWipeKey();
return this;
}
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
@java.lang.Override
public boolean hasSupplyKey() {
return instance.hasSupplyKey();
}
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getSupplyKey() {
return instance.getSupplyKey();
}
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
public Builder setSupplyKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setSupplyKey(value);
return this;
}
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
public Builder setSupplyKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setSupplyKey(builderForValue.build());
return this;
}
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
public Builder mergeSupplyKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeSupplyKey(value);
return this;
}
/**
*
**
* The new Supply key of the Token. If the Token does not have currently a Supply key,
* transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
*
*
* .proto.Key supplyKey = 9;
*/
public Builder clearSupplyKey() { copyOnWrite();
instance.clearSupplyKey();
return this;
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
@java.lang.Override
public boolean hasAutoRenewAccount() {
return instance.hasAutoRenewAccount();
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccount() {
return instance.getAutoRenewAccount();
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
public Builder setAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setAutoRenewAccount(value);
return this;
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
public Builder setAutoRenewAccount(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setAutoRenewAccount(builderForValue.build());
return this;
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
public Builder mergeAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeAutoRenewAccount(value);
return this;
}
/**
*
**
* The new account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval.
*
*
* .proto.AccountID autoRenewAccount = 10;
*/
public Builder clearAutoRenewAccount() { copyOnWrite();
instance.clearAutoRenewAccount();
return this;
}
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return instance.hasAutoRenewPeriod();
}
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
return instance.getAutoRenewPeriod();
}
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
public Builder setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
copyOnWrite();
instance.setAutoRenewPeriod(value);
return this;
}
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
public Builder setAutoRenewPeriod(
com.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) {
copyOnWrite();
instance.setAutoRenewPeriod(builderForValue.build());
return this;
}
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
public Builder mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
copyOnWrite();
instance.mergeAutoRenewPeriod(value);
return this;
}
/**
*
**
* The new interval at which the auto-renew account will be charged to extend the token's
* expiry.
*
*
* .proto.Duration autoRenewPeriod = 11;
*/
public Builder clearAutoRenewPeriod() { copyOnWrite();
instance.clearAutoRenewPeriod();
return this;
}
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
@java.lang.Override
public boolean hasExpiry() {
return instance.hasExpiry();
}
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getExpiry() {
return instance.getExpiry();
}
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
public Builder setExpiry(com.hedera.hashgraph.sdk.proto.Timestamp value) {
copyOnWrite();
instance.setExpiry(value);
return this;
}
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
public Builder setExpiry(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
copyOnWrite();
instance.setExpiry(builderForValue.build());
return this;
}
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
public Builder mergeExpiry(com.hedera.hashgraph.sdk.proto.Timestamp value) {
copyOnWrite();
instance.mergeExpiry(value);
return this;
}
/**
*
**
* The new expiry time of the token. Expiry can be updated even if admin key is not set. If the
* provided expiry is earlier than the current token expiry, transaction wil resolve to
* INVALID_EXPIRATION_TIME
*
*
* .proto.Timestamp expiry = 12;
*/
public Builder clearExpiry() { copyOnWrite();
instance.clearExpiry();
return this;
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
@java.lang.Override
public boolean hasMemo() {
return instance.hasMemo();
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
@java.lang.Override
public com.google.protobuf.StringValue getMemo() {
return instance.getMemo();
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
public Builder setMemo(com.google.protobuf.StringValue value) {
copyOnWrite();
instance.setMemo(value);
return this;
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
public Builder setMemo(
com.google.protobuf.StringValue.Builder builderForValue) {
copyOnWrite();
instance.setMemo(builderForValue.build());
return this;
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
public Builder mergeMemo(com.google.protobuf.StringValue value) {
copyOnWrite();
instance.mergeMemo(value);
return this;
}
/**
*
**
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 13;
*/
public Builder clearMemo() { copyOnWrite();
instance.clearMemo();
return this;
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
@java.lang.Override
public boolean hasFeeScheduleKey() {
return instance.hasFeeScheduleKey();
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getFeeScheduleKey() {
return instance.getFeeScheduleKey();
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
public Builder setFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setFeeScheduleKey(value);
return this;
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
public Builder setFeeScheduleKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setFeeScheduleKey(builderForValue.build());
return this;
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
public Builder mergeFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeFeeScheduleKey(value);
return this;
}
/**
*
**
* If set, the new key to use to update the token's custom fee schedule; if the token does not
* currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
*
*
* .proto.Key fee_schedule_key = 14;
*/
public Builder clearFeeScheduleKey() { copyOnWrite();
instance.clearFeeScheduleKey();
return this;
}
/**
*
**
* The Key which can pause and unpause the Token. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
@java.lang.Override
public boolean hasPauseKey() {
return instance.hasPauseKey();
}
/**
*
**
* The Key which can pause and unpause the Token. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getPauseKey() {
return instance.getPauseKey();
}
/**
*
**
* The Key which can pause and unpause the Token. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
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. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
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. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
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. If the Token does not currently have a pause key,
* transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
*
*
* .proto.Key pause_key = 15;
*/
public Builder clearPauseKey() { copyOnWrite();
instance.clearPauseKey();
return this;
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
@java.lang.Override
public boolean hasMetadata() {
return instance.hasMetadata();
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
@java.lang.Override
public com.google.protobuf.BytesValue getMetadata() {
return instance.getMetadata();
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
public Builder setMetadata(com.google.protobuf.BytesValue value) {
copyOnWrite();
instance.setMetadata(value);
return this;
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
public Builder setMetadata(
com.google.protobuf.BytesValue.Builder builderForValue) {
copyOnWrite();
instance.setMetadata(builderForValue.build());
return this;
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
public Builder mergeMetadata(com.google.protobuf.BytesValue value) {
copyOnWrite();
instance.mergeMetadata(value);
return this;
}
/**
*
**
* Metadata of the created token definition
*
*
* .google.protobuf.BytesValue metadata = 16;
*/
public Builder clearMetadata() { copyOnWrite();
instance.clearMetadata();
return this;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
@java.lang.Override
public boolean hasMetadataKey() {
return instance.hasMetadataKey();
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
@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, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
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, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
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, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
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, partition definition, and individual NFTs).
* If the Token does not have currently a Metadata key,
* transaction will resolve to TOKEN_HAS_NO_METADATA_KEY
*
*
* .proto.Key metadata_key = 17;
*/
public Builder clearMetadataKey() { copyOnWrite();
instance.clearMetadataKey();
return this;
}
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
* @return The enum numeric value on the wire for keyVerificationMode.
*/
@java.lang.Override
public int getKeyVerificationModeValue() {
return instance.getKeyVerificationModeValue();
}
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
* @param value The keyVerificationMode to set.
* @return This builder for chaining.
*/
public Builder setKeyVerificationModeValue(int value) {
copyOnWrite();
instance.setKeyVerificationModeValue(value);
return this;
}
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
* @return The keyVerificationMode.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenKeyValidation getKeyVerificationMode() {
return instance.getKeyVerificationMode();
}
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
* @param value The enum numeric value on the wire for keyVerificationMode to set.
* @return This builder for chaining.
*/
public Builder setKeyVerificationMode(com.hedera.hashgraph.sdk.proto.TokenKeyValidation value) {
copyOnWrite();
instance.setKeyVerificationMode(value);
return this;
}
/**
*
**
* Determines whether the system should check the validity of the passed keys for update.
*
*
* .proto.TokenKeyValidation key_verification_mode = 18;
* @return This builder for chaining.
*/
public Builder clearKeyVerificationMode() {
copyOnWrite();
instance.clearKeyVerificationMode();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.TokenUpdateTransactionBody)
}
@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.TokenUpdateTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"token_",
"symbol_",
"name_",
"treasury_",
"adminKey_",
"kycKey_",
"freezeKey_",
"wipeKey_",
"supplyKey_",
"autoRenewAccount_",
"autoRenewPeriod_",
"expiry_",
"memo_",
"feeScheduleKey_",
"pauseKey_",
"metadata_",
"metadataKey_",
"keyVerificationMode_",
};
java.lang.String info =
"\u0000\u0012\u0000\u0001\u0001\u0012\u0012\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
"\u0208\u0003\u0208\u0004\u1009\u0001\u0005\u1009\u0002\u0006\u1009\u0003\u0007\u1009" +
"\u0004\b\u1009\u0005\t\u1009\u0006\n\u1009\u0007\u000b\u1009\b\f\u1009\t\r\u1009" +
"\n\u000e\u1009\u000b\u000f\u1009\f\u0010\u1009\r\u0011\u1009\u000e\u0012\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.TokenUpdateTransactionBody.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.TokenUpdateTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody DEFAULT_INSTANCE;
static {
TokenUpdateTransactionBody defaultInstance = new TokenUpdateTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TokenUpdateTransactionBody.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}