All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody Maven / Gradle / Ivy

The newest version!
// 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.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.TokenUpdateTransactionBody) TokenUpdateTransactionBodyOrBuilder { private static final long serialVersionUID = 0L; // Use TokenUpdateTransactionBody.newBuilder() to construct. private TokenUpdateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenUpdateTransactionBody() { symbol_ = ""; name_ = ""; keyVerificationMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TokenUpdateTransactionBody(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.TokenUpdate.internal_static_proto_TokenUpdateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.TokenUpdate.internal_static_proto_TokenUpdateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody.class, com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody.Builder.class); } 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; * @return Whether the token field is set. */ @java.lang.Override public boolean hasToken() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The Token to be updated
   * 
* * .proto.TokenID token = 1; * @return The token. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenOrBuilder() { return token_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : token_; } public static final int SYMBOL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object 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() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } } /** *
   **
   * 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() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object 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() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   **
   * 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() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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; * @return Whether the treasury field is set. */ @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; * @return The treasury. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getTreasuryOrBuilder() { return treasury_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasury_; } 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; * @return Whether the adminKey field is set. */ @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; * @return The adminKey. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } 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; * @return Whether the kycKey field is set. */ @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; * @return The kycKey. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKycKeyOrBuilder() { return kycKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : kycKey_; } 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; * @return Whether the freezeKey field is set. */ @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; * @return The freezeKey. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getFreezeKeyOrBuilder() { return freezeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : freezeKey_; } 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; * @return Whether the wipeKey field is set. */ @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; * @return The wipeKey. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getWipeKeyOrBuilder() { return wipeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : wipeKey_; } 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; * @return Whether the supplyKey field is set. */ @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; * @return The supplyKey. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getSupplyKeyOrBuilder() { return supplyKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : supplyKey_; } 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; * @return Whether the autoRenewAccount field is set. */ @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; * @return The autoRenewAccount. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountOrBuilder() { return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccount_; } 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; * @return Whether the autoRenewPeriod field is set. */ @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; * @return The autoRenewPeriod. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_; } 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; * @return Whether the expiry field is set. */ @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; * @return The expiry. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpiryOrBuilder() { return expiry_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expiry_; } 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; * @return Whether the memo field is set. */ @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; * @return The memo. */ @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; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getMemoOrBuilder() { return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_; } 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; * @return Whether the feeScheduleKey field is set. */ @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; * @return The feeScheduleKey. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getFeeScheduleKeyOrBuilder() { return feeScheduleKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : feeScheduleKey_; } 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; * @return Whether the pauseKey field is set. */ @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; * @return The pauseKey. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getPauseKeyOrBuilder() { return pauseKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : pauseKey_; } 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; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return ((bitField0_ & 0x00002000) != 0); } /** *
   **
   * Metadata of the created token definition
   * 
* * .google.protobuf.BytesValue metadata = 16; * @return The metadata. */ @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; */ @java.lang.Override public com.google.protobuf.BytesValueOrBuilder getMetadataOrBuilder() { return metadata_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : metadata_; } 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; * @return Whether the metadataKey field is set. */ @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; * @return The metadataKey. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getMetadataKeyOrBuilder() { return metadataKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : metadataKey_; } public static final int KEY_VERIFICATION_MODE_FIELD_NUMBER = 18; private int keyVerificationMode_ = 0; /** *
   **
   * 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; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getToken()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(symbol_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getTreasury()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getAdminKey()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getKycKey()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getFreezeKey()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getWipeKey()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(9, getSupplyKey()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(10, getAutoRenewAccount()); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(11, getAutoRenewPeriod()); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(12, getExpiry()); } if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(13, getMemo()); } if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(14, getFeeScheduleKey()); } if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(15, getPauseKey()); } if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(16, getMetadata()); } if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(17, getMetadataKey()); } if (keyVerificationMode_ != com.hedera.hashgraph.sdk.proto.TokenKeyValidation.FULL_VALIDATION.getNumber()) { output.writeEnum(18, keyVerificationMode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getToken()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(symbol_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTreasury()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAdminKey()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getKycKey()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getFreezeKey()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getWipeKey()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getSupplyKey()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getAutoRenewAccount()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getAutoRenewPeriod()); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getExpiry()); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getMemo()); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getFeeScheduleKey()); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getPauseKey()); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getMetadata()); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getMetadataKey()); } if (keyVerificationMode_ != com.hedera.hashgraph.sdk.proto.TokenKeyValidation.FULL_VALIDATION.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(18, keyVerificationMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody other = (com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody) obj; if (hasToken() != other.hasToken()) return false; if (hasToken()) { if (!getToken() .equals(other.getToken())) return false; } if (!getSymbol() .equals(other.getSymbol())) return false; if (!getName() .equals(other.getName())) return false; if (hasTreasury() != other.hasTreasury()) return false; if (hasTreasury()) { if (!getTreasury() .equals(other.getTreasury())) return false; } if (hasAdminKey() != other.hasAdminKey()) return false; if (hasAdminKey()) { if (!getAdminKey() .equals(other.getAdminKey())) return false; } if (hasKycKey() != other.hasKycKey()) return false; if (hasKycKey()) { if (!getKycKey() .equals(other.getKycKey())) return false; } if (hasFreezeKey() != other.hasFreezeKey()) return false; if (hasFreezeKey()) { if (!getFreezeKey() .equals(other.getFreezeKey())) return false; } if (hasWipeKey() != other.hasWipeKey()) return false; if (hasWipeKey()) { if (!getWipeKey() .equals(other.getWipeKey())) return false; } if (hasSupplyKey() != other.hasSupplyKey()) return false; if (hasSupplyKey()) { if (!getSupplyKey() .equals(other.getSupplyKey())) return false; } if (hasAutoRenewAccount() != other.hasAutoRenewAccount()) return false; if (hasAutoRenewAccount()) { if (!getAutoRenewAccount() .equals(other.getAutoRenewAccount())) return false; } if (hasAutoRenewPeriod() != other.hasAutoRenewPeriod()) return false; if (hasAutoRenewPeriod()) { if (!getAutoRenewPeriod() .equals(other.getAutoRenewPeriod())) return false; } if (hasExpiry() != other.hasExpiry()) return false; if (hasExpiry()) { if (!getExpiry() .equals(other.getExpiry())) return false; } if (hasMemo() != other.hasMemo()) return false; if (hasMemo()) { if (!getMemo() .equals(other.getMemo())) return false; } if (hasFeeScheduleKey() != other.hasFeeScheduleKey()) return false; if (hasFeeScheduleKey()) { if (!getFeeScheduleKey() .equals(other.getFeeScheduleKey())) return false; } if (hasPauseKey() != other.hasPauseKey()) return false; if (hasPauseKey()) { if (!getPauseKey() .equals(other.getPauseKey())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) return false; } if (hasMetadataKey() != other.hasMetadataKey()) return false; if (hasMetadataKey()) { if (!getMetadataKey() .equals(other.getMetadataKey())) return false; } if (keyVerificationMode_ != other.keyVerificationMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasToken()) { hash = (37 * hash) + TOKEN_FIELD_NUMBER; hash = (53 * hash) + getToken().hashCode(); } hash = (37 * hash) + SYMBOL_FIELD_NUMBER; hash = (53 * hash) + getSymbol().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasTreasury()) { hash = (37 * hash) + TREASURY_FIELD_NUMBER; hash = (53 * hash) + getTreasury().hashCode(); } if (hasAdminKey()) { hash = (37 * hash) + ADMINKEY_FIELD_NUMBER; hash = (53 * hash) + getAdminKey().hashCode(); } if (hasKycKey()) { hash = (37 * hash) + KYCKEY_FIELD_NUMBER; hash = (53 * hash) + getKycKey().hashCode(); } if (hasFreezeKey()) { hash = (37 * hash) + FREEZEKEY_FIELD_NUMBER; hash = (53 * hash) + getFreezeKey().hashCode(); } if (hasWipeKey()) { hash = (37 * hash) + WIPEKEY_FIELD_NUMBER; hash = (53 * hash) + getWipeKey().hashCode(); } if (hasSupplyKey()) { hash = (37 * hash) + SUPPLYKEY_FIELD_NUMBER; hash = (53 * hash) + getSupplyKey().hashCode(); } if (hasAutoRenewAccount()) { hash = (37 * hash) + AUTORENEWACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getAutoRenewAccount().hashCode(); } if (hasAutoRenewPeriod()) { hash = (37 * hash) + AUTORENEWPERIOD_FIELD_NUMBER; hash = (53 * hash) + getAutoRenewPeriod().hashCode(); } if (hasExpiry()) { hash = (37 * hash) + EXPIRY_FIELD_NUMBER; hash = (53 * hash) + getExpiry().hashCode(); } if (hasMemo()) { hash = (37 * hash) + MEMO_FIELD_NUMBER; hash = (53 * hash) + getMemo().hashCode(); } if (hasFeeScheduleKey()) { hash = (37 * hash) + FEE_SCHEDULE_KEY_FIELD_NUMBER; hash = (53 * hash) + getFeeScheduleKey().hashCode(); } if (hasPauseKey()) { hash = (37 * hash) + PAUSE_KEY_FIELD_NUMBER; hash = (53 * hash) + getPauseKey().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (hasMetadataKey()) { hash = (37 * hash) + METADATA_KEY_FIELD_NUMBER; hash = (53 * hash) + getMetadataKey().hashCode(); } hash = (37 * hash) + KEY_VERIFICATION_MODE_FIELD_NUMBER; hash = (53 * hash) + keyVerificationMode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * 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.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.TokenUpdateTransactionBody) com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.TokenUpdate.internal_static_proto_TokenUpdateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.TokenUpdate.internal_static_proto_TokenUpdateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody.class, com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTokenFieldBuilder(); getTreasuryFieldBuilder(); getAdminKeyFieldBuilder(); getKycKeyFieldBuilder(); getFreezeKeyFieldBuilder(); getWipeKeyFieldBuilder(); getSupplyKeyFieldBuilder(); getAutoRenewAccountFieldBuilder(); getAutoRenewPeriodFieldBuilder(); getExpiryFieldBuilder(); getMemoFieldBuilder(); getFeeScheduleKeyFieldBuilder(); getPauseKeyFieldBuilder(); getMetadataFieldBuilder(); getMetadataKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; token_ = null; if (tokenBuilder_ != null) { tokenBuilder_.dispose(); tokenBuilder_ = null; } symbol_ = ""; name_ = ""; treasury_ = null; if (treasuryBuilder_ != null) { treasuryBuilder_.dispose(); treasuryBuilder_ = null; } adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } kycKey_ = null; if (kycKeyBuilder_ != null) { kycKeyBuilder_.dispose(); kycKeyBuilder_ = null; } freezeKey_ = null; if (freezeKeyBuilder_ != null) { freezeKeyBuilder_.dispose(); freezeKeyBuilder_ = null; } wipeKey_ = null; if (wipeKeyBuilder_ != null) { wipeKeyBuilder_.dispose(); wipeKeyBuilder_ = null; } supplyKey_ = null; if (supplyKeyBuilder_ != null) { supplyKeyBuilder_.dispose(); supplyKeyBuilder_ = null; } autoRenewAccount_ = null; if (autoRenewAccountBuilder_ != null) { autoRenewAccountBuilder_.dispose(); autoRenewAccountBuilder_ = null; } autoRenewPeriod_ = null; if (autoRenewPeriodBuilder_ != null) { autoRenewPeriodBuilder_.dispose(); autoRenewPeriodBuilder_ = null; } expiry_ = null; if (expiryBuilder_ != null) { expiryBuilder_.dispose(); expiryBuilder_ = null; } memo_ = null; if (memoBuilder_ != null) { memoBuilder_.dispose(); memoBuilder_ = null; } feeScheduleKey_ = null; if (feeScheduleKeyBuilder_ != null) { feeScheduleKeyBuilder_.dispose(); feeScheduleKeyBuilder_ = null; } pauseKey_ = null; if (pauseKeyBuilder_ != null) { pauseKeyBuilder_.dispose(); pauseKeyBuilder_ = null; } metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } metadataKey_ = null; if (metadataKeyBuilder_ != null) { metadataKeyBuilder_.dispose(); metadataKeyBuilder_ = null; } keyVerificationMode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.TokenUpdate.internal_static_proto_TokenUpdateTransactionBody_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody build() { com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody buildPartial() { com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody result = new com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.token_ = tokenBuilder_ == null ? token_ : tokenBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.symbol_ = symbol_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.treasury_ = treasuryBuilder_ == null ? treasury_ : treasuryBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.adminKey_ = adminKeyBuilder_ == null ? adminKey_ : adminKeyBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.kycKey_ = kycKeyBuilder_ == null ? kycKey_ : kycKeyBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.freezeKey_ = freezeKeyBuilder_ == null ? freezeKey_ : freezeKeyBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.wipeKey_ = wipeKeyBuilder_ == null ? wipeKey_ : wipeKeyBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { result.supplyKey_ = supplyKeyBuilder_ == null ? supplyKey_ : supplyKeyBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { result.autoRenewAccount_ = autoRenewAccountBuilder_ == null ? autoRenewAccount_ : autoRenewAccountBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000400) != 0)) { result.autoRenewPeriod_ = autoRenewPeriodBuilder_ == null ? autoRenewPeriod_ : autoRenewPeriodBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000800) != 0)) { result.expiry_ = expiryBuilder_ == null ? expiry_ : expiryBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00001000) != 0)) { result.memo_ = memoBuilder_ == null ? memo_ : memoBuilder_.build(); to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00002000) != 0)) { result.feeScheduleKey_ = feeScheduleKeyBuilder_ == null ? feeScheduleKey_ : feeScheduleKeyBuilder_.build(); to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00004000) != 0)) { result.pauseKey_ = pauseKeyBuilder_ == null ? pauseKey_ : pauseKeyBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00008000) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00010000) != 0)) { result.metadataKey_ = metadataKeyBuilder_ == null ? metadataKey_ : metadataKeyBuilder_.build(); to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00020000) != 0)) { result.keyVerificationMode_ = keyVerificationMode_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody) { return mergeFrom((com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody other) { if (other == com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody.getDefaultInstance()) return this; if (other.hasToken()) { mergeToken(other.getToken()); } if (!other.getSymbol().isEmpty()) { symbol_ = other.symbol_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasTreasury()) { mergeTreasury(other.getTreasury()); } if (other.hasAdminKey()) { mergeAdminKey(other.getAdminKey()); } if (other.hasKycKey()) { mergeKycKey(other.getKycKey()); } if (other.hasFreezeKey()) { mergeFreezeKey(other.getFreezeKey()); } if (other.hasWipeKey()) { mergeWipeKey(other.getWipeKey()); } if (other.hasSupplyKey()) { mergeSupplyKey(other.getSupplyKey()); } if (other.hasAutoRenewAccount()) { mergeAutoRenewAccount(other.getAutoRenewAccount()); } if (other.hasAutoRenewPeriod()) { mergeAutoRenewPeriod(other.getAutoRenewPeriod()); } if (other.hasExpiry()) { mergeExpiry(other.getExpiry()); } if (other.hasMemo()) { mergeMemo(other.getMemo()); } if (other.hasFeeScheduleKey()) { mergeFeeScheduleKey(other.getFeeScheduleKey()); } if (other.hasPauseKey()) { mergePauseKey(other.getPauseKey()); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasMetadataKey()) { mergeMetadataKey(other.getMetadataKey()); } if (other.keyVerificationMode_ != 0) { setKeyVerificationModeValue(other.getKeyVerificationModeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTokenFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { symbol_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getTreasuryFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getAdminKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getKycKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getFreezeKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getWipeKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getSupplyKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getAutoRenewAccountFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { input.readMessage( getAutoRenewPeriodFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 90 case 98: { input.readMessage( getExpiryFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 98 case 106: { input.readMessage( getMemoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 case 114: { input.readMessage( getFeeScheduleKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 114 case 122: { input.readMessage( getPauseKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 122 case 130: { input.readMessage( getMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 130 case 138: { input.readMessage( getMetadataKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00010000; break; } // case 138 case 144: { keyVerificationMode_ = input.readEnum(); bitField0_ |= 0x00020000; break; } // case 144 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.TokenID token_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> tokenBuilder_; /** *
     **
     * The Token to be updated
     * 
* * .proto.TokenID token = 1; * @return Whether the token field is set. */ public boolean hasToken() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The Token to be updated
     * 
* * .proto.TokenID token = 1; * @return The token. */ public com.hedera.hashgraph.sdk.proto.TokenID getToken() { if (tokenBuilder_ == null) { return token_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : token_; } else { return tokenBuilder_.getMessage(); } } /** *
     **
     * The Token to be updated
     * 
* * .proto.TokenID token = 1; */ public Builder setToken(com.hedera.hashgraph.sdk.proto.TokenID value) { if (tokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } token_ = value; } else { tokenBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The Token to be updated
     * 
* * .proto.TokenID token = 1; */ public Builder setToken( com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) { if (tokenBuilder_ == null) { token_ = builderForValue.build(); } else { tokenBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The Token to be updated
     * 
* * .proto.TokenID token = 1; */ public Builder mergeToken(com.hedera.hashgraph.sdk.proto.TokenID value) { if (tokenBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && token_ != null && token_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) { getTokenBuilder().mergeFrom(value); } else { token_ = value; } } else { tokenBuilder_.mergeFrom(value); } if (token_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The Token to be updated
     * 
* * .proto.TokenID token = 1; */ public Builder clearToken() { bitField0_ = (bitField0_ & ~0x00000001); token_ = null; if (tokenBuilder_ != null) { tokenBuilder_.dispose(); tokenBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The Token to be updated
     * 
* * .proto.TokenID token = 1; */ public com.hedera.hashgraph.sdk.proto.TokenID.Builder getTokenBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTokenFieldBuilder().getBuilder(); } /** *
     **
     * The Token to be updated
     * 
* * .proto.TokenID token = 1; */ public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenOrBuilder() { if (tokenBuilder_ != null) { return tokenBuilder_.getMessageOrBuilder(); } else { return token_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : token_; } } /** *
     **
     * The Token to be updated
     * 
* * .proto.TokenID token = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> getTokenFieldBuilder() { if (tokenBuilder_ == null) { tokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>( getToken(), getParentForChildren(), isClean()); token_ = null; } return tokenBuilder_; } private java.lang.Object 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. */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * 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. */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * 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) { if (value == null) { throw new NullPointerException(); } symbol_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { symbol_ = getDefaultInstance().getSymbol(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); 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) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); symbol_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object 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. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * 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. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * 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) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); 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) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.AccountID treasury_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> treasuryBuilder_; /** *
     **
     * 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; * @return Whether the treasury field is set. */ public boolean hasTreasury() { return ((bitField0_ & 0x00000008) != 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; * @return The treasury. */ public com.hedera.hashgraph.sdk.proto.AccountID getTreasury() { if (treasuryBuilder_ == null) { return treasury_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasury_; } else { return treasuryBuilder_.getMessage(); } } /** *
     **
     * 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) { if (treasuryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } treasury_ = value; } else { treasuryBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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) { if (treasuryBuilder_ == null) { treasury_ = builderForValue.build(); } else { treasuryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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) { if (treasuryBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && treasury_ != null && treasury_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getTreasuryBuilder().mergeFrom(value); } else { treasury_ = value; } } else { treasuryBuilder_.mergeFrom(value); } if (treasury_ != null) { bitField0_ |= 0x00000008; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000008); treasury_ = null; if (treasuryBuilder_ != null) { treasuryBuilder_.dispose(); treasuryBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.AccountID.Builder getTreasuryBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTreasuryFieldBuilder().getBuilder(); } /** *
     **
     * 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 com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getTreasuryOrBuilder() { if (treasuryBuilder_ != null) { return treasuryBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getTreasuryFieldBuilder() { if (treasuryBuilder_ == null) { treasuryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getTreasury(), getParentForChildren(), isClean()); treasury_ = null; } return treasuryBuilder_; } private com.hedera.hashgraph.sdk.proto.Key adminKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> adminKeyBuilder_; /** *
     **
     * The new admin key of the Token. If Token is immutable, transaction will resolve to
     * TOKEN_IS_IMMUTABlE.
     * 
* * .proto.Key adminKey = 5; * @return Whether the adminKey field is set. */ public boolean hasAdminKey() { return ((bitField0_ & 0x00000010) != 0); } /** *
     **
     * The new admin key of the Token. If Token is immutable, transaction will resolve to
     * TOKEN_IS_IMMUTABlE.
     * 
* * .proto.Key adminKey = 5; * @return The adminKey. */ public com.hedera.hashgraph.sdk.proto.Key getAdminKey() { if (adminKeyBuilder_ == null) { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } else { return adminKeyBuilder_.getMessage(); } } /** *
     **
     * 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) { if (adminKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminKey_ = value; } else { adminKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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) { if (adminKeyBuilder_ == null) { adminKey_ = builderForValue.build(); } else { adminKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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) { if (adminKeyBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && adminKey_ != null && adminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getAdminKeyBuilder().mergeFrom(value); } else { adminKey_ = value; } } else { adminKeyBuilder_.mergeFrom(value); } if (adminKey_ != null) { bitField0_ |= 0x00000010; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000010); adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Key.Builder getAdminKeyBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * The new admin key of the Token. If Token is immutable, transaction will resolve to
     * TOKEN_IS_IMMUTABlE.
     * 
* * .proto.Key adminKey = 5; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { if (adminKeyBuilder_ != null) { return adminKeyBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getAdminKeyFieldBuilder() { if (adminKeyBuilder_ == null) { adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getAdminKey(), getParentForChildren(), isClean()); adminKey_ = null; } return adminKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key kycKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> kycKeyBuilder_; /** *
     **
     * 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; * @return Whether the kycKey field is set. */ public boolean hasKycKey() { return ((bitField0_ & 0x00000020) != 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; * @return The kycKey. */ public com.hedera.hashgraph.sdk.proto.Key getKycKey() { if (kycKeyBuilder_ == null) { return kycKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : kycKey_; } else { return kycKeyBuilder_.getMessage(); } } /** *
     **
     * 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) { if (kycKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kycKey_ = value; } else { kycKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); 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) { if (kycKeyBuilder_ == null) { kycKey_ = builderForValue.build(); } else { kycKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); 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) { if (kycKeyBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && kycKey_ != null && kycKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getKycKeyBuilder().mergeFrom(value); } else { kycKey_ = value; } } else { kycKeyBuilder_.mergeFrom(value); } if (kycKey_ != null) { bitField0_ |= 0x00000020; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000020); kycKey_ = null; if (kycKeyBuilder_ != null) { kycKeyBuilder_.dispose(); kycKeyBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Key.Builder getKycKeyBuilder() { bitField0_ |= 0x00000020; onChanged(); return getKycKeyFieldBuilder().getBuilder(); } /** *
     **
     * 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 com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKycKeyOrBuilder() { if (kycKeyBuilder_ != null) { return kycKeyBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getKycKeyFieldBuilder() { if (kycKeyBuilder_ == null) { kycKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getKycKey(), getParentForChildren(), isClean()); kycKey_ = null; } return kycKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key freezeKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> freezeKeyBuilder_; /** *
     **
     * 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; * @return Whether the freezeKey field is set. */ public boolean hasFreezeKey() { return ((bitField0_ & 0x00000040) != 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; * @return The freezeKey. */ public com.hedera.hashgraph.sdk.proto.Key getFreezeKey() { if (freezeKeyBuilder_ == null) { return freezeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : freezeKey_; } else { return freezeKeyBuilder_.getMessage(); } } /** *
     **
     * 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) { if (freezeKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } freezeKey_ = value; } else { freezeKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); 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) { if (freezeKeyBuilder_ == null) { freezeKey_ = builderForValue.build(); } else { freezeKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); 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) { if (freezeKeyBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && freezeKey_ != null && freezeKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getFreezeKeyBuilder().mergeFrom(value); } else { freezeKey_ = value; } } else { freezeKeyBuilder_.mergeFrom(value); } if (freezeKey_ != null) { bitField0_ |= 0x00000040; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000040); freezeKey_ = null; if (freezeKeyBuilder_ != null) { freezeKeyBuilder_.dispose(); freezeKeyBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Key.Builder getFreezeKeyBuilder() { bitField0_ |= 0x00000040; onChanged(); return getFreezeKeyFieldBuilder().getBuilder(); } /** *
     **
     * 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 com.hedera.hashgraph.sdk.proto.KeyOrBuilder getFreezeKeyOrBuilder() { if (freezeKeyBuilder_ != null) { return freezeKeyBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getFreezeKeyFieldBuilder() { if (freezeKeyBuilder_ == null) { freezeKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getFreezeKey(), getParentForChildren(), isClean()); freezeKey_ = null; } return freezeKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key wipeKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> wipeKeyBuilder_; /** *
     **
     * 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; * @return Whether the wipeKey field is set. */ public boolean hasWipeKey() { return ((bitField0_ & 0x00000080) != 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; * @return The wipeKey. */ public com.hedera.hashgraph.sdk.proto.Key getWipeKey() { if (wipeKeyBuilder_ == null) { return wipeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : wipeKey_; } else { return wipeKeyBuilder_.getMessage(); } } /** *
     **
     * 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) { if (wipeKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wipeKey_ = value; } else { wipeKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); 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) { if (wipeKeyBuilder_ == null) { wipeKey_ = builderForValue.build(); } else { wipeKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); 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) { if (wipeKeyBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && wipeKey_ != null && wipeKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getWipeKeyBuilder().mergeFrom(value); } else { wipeKey_ = value; } } else { wipeKeyBuilder_.mergeFrom(value); } if (wipeKey_ != null) { bitField0_ |= 0x00000080; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000080); wipeKey_ = null; if (wipeKeyBuilder_ != null) { wipeKeyBuilder_.dispose(); wipeKeyBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Key.Builder getWipeKeyBuilder() { bitField0_ |= 0x00000080; onChanged(); return getWipeKeyFieldBuilder().getBuilder(); } /** *
     **
     * 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 com.hedera.hashgraph.sdk.proto.KeyOrBuilder getWipeKeyOrBuilder() { if (wipeKeyBuilder_ != null) { return wipeKeyBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getWipeKeyFieldBuilder() { if (wipeKeyBuilder_ == null) { wipeKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getWipeKey(), getParentForChildren(), isClean()); wipeKey_ = null; } return wipeKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key supplyKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> supplyKeyBuilder_; /** *
     **
     * 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; * @return Whether the supplyKey field is set. */ public boolean hasSupplyKey() { return ((bitField0_ & 0x00000100) != 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; * @return The supplyKey. */ public com.hedera.hashgraph.sdk.proto.Key getSupplyKey() { if (supplyKeyBuilder_ == null) { return supplyKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : supplyKey_; } else { return supplyKeyBuilder_.getMessage(); } } /** *
     **
     * 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) { if (supplyKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } supplyKey_ = value; } else { supplyKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); 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) { if (supplyKeyBuilder_ == null) { supplyKey_ = builderForValue.build(); } else { supplyKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); 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) { if (supplyKeyBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && supplyKey_ != null && supplyKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getSupplyKeyBuilder().mergeFrom(value); } else { supplyKey_ = value; } } else { supplyKeyBuilder_.mergeFrom(value); } if (supplyKey_ != null) { bitField0_ |= 0x00000100; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000100); supplyKey_ = null; if (supplyKeyBuilder_ != null) { supplyKeyBuilder_.dispose(); supplyKeyBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Key.Builder getSupplyKeyBuilder() { bitField0_ |= 0x00000100; onChanged(); return getSupplyKeyFieldBuilder().getBuilder(); } /** *
     **
     * 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 com.hedera.hashgraph.sdk.proto.KeyOrBuilder getSupplyKeyOrBuilder() { if (supplyKeyBuilder_ != null) { return supplyKeyBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getSupplyKeyFieldBuilder() { if (supplyKeyBuilder_ == null) { supplyKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getSupplyKey(), getParentForChildren(), isClean()); supplyKey_ = null; } return supplyKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccount_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> autoRenewAccountBuilder_; /** *
     **
     * The new account which will be automatically charged to renew the token's expiration, at
     * autoRenewPeriod interval.
     * 
* * .proto.AccountID autoRenewAccount = 10; * @return Whether the autoRenewAccount field is set. */ public boolean hasAutoRenewAccount() { return ((bitField0_ & 0x00000200) != 0); } /** *
     **
     * The new account which will be automatically charged to renew the token's expiration, at
     * autoRenewPeriod interval.
     * 
* * .proto.AccountID autoRenewAccount = 10; * @return The autoRenewAccount. */ public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccount() { if (autoRenewAccountBuilder_ == null) { return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccount_; } else { return autoRenewAccountBuilder_.getMessage(); } } /** *
     **
     * 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) { if (autoRenewAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewAccount_ = value; } else { autoRenewAccountBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); 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) { if (autoRenewAccountBuilder_ == null) { autoRenewAccount_ = builderForValue.build(); } else { autoRenewAccountBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); 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) { if (autoRenewAccountBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && autoRenewAccount_ != null && autoRenewAccount_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAutoRenewAccountBuilder().mergeFrom(value); } else { autoRenewAccount_ = value; } } else { autoRenewAccountBuilder_.mergeFrom(value); } if (autoRenewAccount_ != null) { bitField0_ |= 0x00000200; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000200); autoRenewAccount_ = null; if (autoRenewAccountBuilder_ != null) { autoRenewAccountBuilder_.dispose(); autoRenewAccountBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The new account which will be automatically charged to renew the token's expiration, at
     * autoRenewPeriod interval.
     * 
* * .proto.AccountID autoRenewAccount = 10; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAutoRenewAccountBuilder() { bitField0_ |= 0x00000200; onChanged(); return getAutoRenewAccountFieldBuilder().getBuilder(); } /** *
     **
     * The new account which will be automatically charged to renew the token's expiration, at
     * autoRenewPeriod interval.
     * 
* * .proto.AccountID autoRenewAccount = 10; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountOrBuilder() { if (autoRenewAccountBuilder_ != null) { return autoRenewAccountBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAutoRenewAccountFieldBuilder() { if (autoRenewAccountBuilder_ == null) { autoRenewAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getAutoRenewAccount(), getParentForChildren(), isClean()); autoRenewAccount_ = null; } return autoRenewAccountBuilder_; } private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> autoRenewPeriodBuilder_; /** *
     **
     * The new interval at which the auto-renew account will be charged to extend the token's
     * expiry.
     * 
* * .proto.Duration autoRenewPeriod = 11; * @return Whether the autoRenewPeriod field is set. */ public boolean hasAutoRenewPeriod() { return ((bitField0_ & 0x00000400) != 0); } /** *
     **
     * The new interval at which the auto-renew account will be charged to extend the token's
     * expiry.
     * 
* * .proto.Duration autoRenewPeriod = 11; * @return The autoRenewPeriod. */ public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() { if (autoRenewPeriodBuilder_ == null) { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_; } else { return autoRenewPeriodBuilder_.getMessage(); } } /** *
     **
     * 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) { if (autoRenewPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewPeriod_ = value; } else { autoRenewPeriodBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); 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) { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = builderForValue.build(); } else { autoRenewPeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); 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) { if (autoRenewPeriodBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && autoRenewPeriod_ != null && autoRenewPeriod_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) { getAutoRenewPeriodBuilder().mergeFrom(value); } else { autoRenewPeriod_ = value; } } else { autoRenewPeriodBuilder_.mergeFrom(value); } if (autoRenewPeriod_ != null) { bitField0_ |= 0x00000400; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000400); autoRenewPeriod_ = null; if (autoRenewPeriodBuilder_ != null) { autoRenewPeriodBuilder_.dispose(); autoRenewPeriodBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Duration.Builder getAutoRenewPeriodBuilder() { bitField0_ |= 0x00000400; onChanged(); return getAutoRenewPeriodFieldBuilder().getBuilder(); } /** *
     **
     * The new interval at which the auto-renew account will be charged to extend the token's
     * expiry.
     * 
* * .proto.Duration autoRenewPeriod = 11; */ public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() { if (autoRenewPeriodBuilder_ != null) { return autoRenewPeriodBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> getAutoRenewPeriodFieldBuilder() { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>( getAutoRenewPeriod(), getParentForChildren(), isClean()); autoRenewPeriod_ = null; } return autoRenewPeriodBuilder_; } private com.hedera.hashgraph.sdk.proto.Timestamp expiry_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> expiryBuilder_; /** *
     **
     * 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; * @return Whether the expiry field is set. */ public boolean hasExpiry() { return ((bitField0_ & 0x00000800) != 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; * @return The expiry. */ public com.hedera.hashgraph.sdk.proto.Timestamp getExpiry() { if (expiryBuilder_ == null) { return expiry_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expiry_; } else { return expiryBuilder_.getMessage(); } } /** *
     **
     * 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) { if (expiryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expiry_ = value; } else { expiryBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); 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) { if (expiryBuilder_ == null) { expiry_ = builderForValue.build(); } else { expiryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); 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) { if (expiryBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && expiry_ != null && expiry_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) { getExpiryBuilder().mergeFrom(value); } else { expiry_ = value; } } else { expiryBuilder_.mergeFrom(value); } if (expiry_ != null) { bitField0_ |= 0x00000800; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000800); expiry_ = null; if (expiryBuilder_ != null) { expiryBuilder_.dispose(); expiryBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpiryBuilder() { bitField0_ |= 0x00000800; onChanged(); return getExpiryFieldBuilder().getBuilder(); } /** *
     **
     * 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 com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpiryOrBuilder() { if (expiryBuilder_ != null) { return expiryBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> getExpiryFieldBuilder() { if (expiryBuilder_ == null) { expiryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>( getExpiry(), getParentForChildren(), isClean()); expiry_ = null; } return expiryBuilder_; } private com.google.protobuf.StringValue memo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> memoBuilder_; /** *
     **
     * If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memo = 13; * @return Whether the memo field is set. */ public boolean hasMemo() { return ((bitField0_ & 0x00001000) != 0); } /** *
     **
     * If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memo = 13; * @return The memo. */ public com.google.protobuf.StringValue getMemo() { if (memoBuilder_ == null) { return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_; } else { return memoBuilder_.getMessage(); } } /** *
     **
     * 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) { if (memoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } memo_ = value; } else { memoBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); 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) { if (memoBuilder_ == null) { memo_ = builderForValue.build(); } else { memoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); 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) { if (memoBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && memo_ != null && memo_ != com.google.protobuf.StringValue.getDefaultInstance()) { getMemoBuilder().mergeFrom(value); } else { memo_ = value; } } else { memoBuilder_.mergeFrom(value); } if (memo_ != null) { bitField0_ |= 0x00001000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00001000); memo_ = null; if (memoBuilder_ != null) { memoBuilder_.dispose(); memoBuilder_ = null; } onChanged(); 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 com.google.protobuf.StringValue.Builder getMemoBuilder() { bitField0_ |= 0x00001000; onChanged(); return getMemoFieldBuilder().getBuilder(); } /** *
     **
     * If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memo = 13; */ public com.google.protobuf.StringValueOrBuilder getMemoOrBuilder() { if (memoBuilder_ != null) { return memoBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getMemoFieldBuilder() { if (memoBuilder_ == null) { memoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getMemo(), getParentForChildren(), isClean()); memo_ = null; } return memoBuilder_; } private com.hedera.hashgraph.sdk.proto.Key feeScheduleKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> feeScheduleKeyBuilder_; /** *
     **
     * 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; * @return Whether the feeScheduleKey field is set. */ public boolean hasFeeScheduleKey() { return ((bitField0_ & 0x00002000) != 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; * @return The feeScheduleKey. */ public com.hedera.hashgraph.sdk.proto.Key getFeeScheduleKey() { if (feeScheduleKeyBuilder_ == null) { return feeScheduleKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : feeScheduleKey_; } else { return feeScheduleKeyBuilder_.getMessage(); } } /** *
     **
     * 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) { if (feeScheduleKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } feeScheduleKey_ = value; } else { feeScheduleKeyBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); 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) { if (feeScheduleKeyBuilder_ == null) { feeScheduleKey_ = builderForValue.build(); } else { feeScheduleKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); 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) { if (feeScheduleKeyBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && feeScheduleKey_ != null && feeScheduleKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getFeeScheduleKeyBuilder().mergeFrom(value); } else { feeScheduleKey_ = value; } } else { feeScheduleKeyBuilder_.mergeFrom(value); } if (feeScheduleKey_ != null) { bitField0_ |= 0x00002000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00002000); feeScheduleKey_ = null; if (feeScheduleKeyBuilder_ != null) { feeScheduleKeyBuilder_.dispose(); feeScheduleKeyBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Key.Builder getFeeScheduleKeyBuilder() { bitField0_ |= 0x00002000; onChanged(); return getFeeScheduleKeyFieldBuilder().getBuilder(); } /** *
     **
     * 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 com.hedera.hashgraph.sdk.proto.KeyOrBuilder getFeeScheduleKeyOrBuilder() { if (feeScheduleKeyBuilder_ != null) { return feeScheduleKeyBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getFeeScheduleKeyFieldBuilder() { if (feeScheduleKeyBuilder_ == null) { feeScheduleKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getFeeScheduleKey(), getParentForChildren(), isClean()); feeScheduleKey_ = null; } return feeScheduleKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key pauseKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> pauseKeyBuilder_; /** *
     **
     * 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; * @return Whether the pauseKey field is set. */ public boolean hasPauseKey() { return ((bitField0_ & 0x00004000) != 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; * @return The pauseKey. */ public com.hedera.hashgraph.sdk.proto.Key getPauseKey() { if (pauseKeyBuilder_ == null) { return pauseKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : pauseKey_; } else { return pauseKeyBuilder_.getMessage(); } } /** *
     **
     * 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) { if (pauseKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pauseKey_ = value; } else { pauseKeyBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); 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) { if (pauseKeyBuilder_ == null) { pauseKey_ = builderForValue.build(); } else { pauseKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); 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) { if (pauseKeyBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && pauseKey_ != null && pauseKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getPauseKeyBuilder().mergeFrom(value); } else { pauseKey_ = value; } } else { pauseKeyBuilder_.mergeFrom(value); } if (pauseKey_ != null) { bitField0_ |= 0x00004000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00004000); pauseKey_ = null; if (pauseKeyBuilder_ != null) { pauseKeyBuilder_.dispose(); pauseKeyBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Key.Builder getPauseKeyBuilder() { bitField0_ |= 0x00004000; onChanged(); return getPauseKeyFieldBuilder().getBuilder(); } /** *
     **
     * 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 com.hedera.hashgraph.sdk.proto.KeyOrBuilder getPauseKeyOrBuilder() { if (pauseKeyBuilder_ != null) { return pauseKeyBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getPauseKeyFieldBuilder() { if (pauseKeyBuilder_ == null) { pauseKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getPauseKey(), getParentForChildren(), isClean()); pauseKey_ = null; } return pauseKeyBuilder_; } private com.google.protobuf.BytesValue metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> metadataBuilder_; /** *
     **
     * Metadata of the created token definition
     * 
* * .google.protobuf.BytesValue metadata = 16; * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00008000) != 0); } /** *
     **
     * Metadata of the created token definition
     * 
* * .google.protobuf.BytesValue metadata = 16; * @return The metadata. */ public com.google.protobuf.BytesValue getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
     **
     * Metadata of the created token definition
     * 
* * .google.protobuf.BytesValue metadata = 16; */ public Builder setMetadata(com.google.protobuf.BytesValue value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     **
     * Metadata of the created token definition
     * 
* * .google.protobuf.BytesValue metadata = 16; */ public Builder setMetadata( com.google.protobuf.BytesValue.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     **
     * Metadata of the created token definition
     * 
* * .google.protobuf.BytesValue metadata = 16; */ public Builder mergeMetadata(com.google.protobuf.BytesValue value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && metadata_ != null && metadata_ != com.google.protobuf.BytesValue.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } } else { metadataBuilder_.mergeFrom(value); } if (metadata_ != null) { bitField0_ |= 0x00008000; onChanged(); } return this; } /** *
     **
     * Metadata of the created token definition
     * 
* * .google.protobuf.BytesValue metadata = 16; */ public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00008000); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Metadata of the created token definition
     * 
* * .google.protobuf.BytesValue metadata = 16; */ public com.google.protobuf.BytesValue.Builder getMetadataBuilder() { bitField0_ |= 0x00008000; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
     **
     * Metadata of the created token definition
     * 
* * .google.protobuf.BytesValue metadata = 16; */ public com.google.protobuf.BytesValueOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : metadata_; } } /** *
     **
     * Metadata of the created token definition
     * 
* * .google.protobuf.BytesValue metadata = 16; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private com.hedera.hashgraph.sdk.proto.Key metadataKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> metadataKeyBuilder_; /** *
     **
     * 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; * @return Whether the metadataKey field is set. */ public boolean hasMetadataKey() { return ((bitField0_ & 0x00010000) != 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; * @return The metadataKey. */ public com.hedera.hashgraph.sdk.proto.Key getMetadataKey() { if (metadataKeyBuilder_ == null) { return metadataKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : metadataKey_; } else { return metadataKeyBuilder_.getMessage(); } } /** *
     **
     * 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) { if (metadataKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadataKey_ = value; } else { metadataKeyBuilder_.setMessage(value); } bitField0_ |= 0x00010000; onChanged(); 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) { if (metadataKeyBuilder_ == null) { metadataKey_ = builderForValue.build(); } else { metadataKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; onChanged(); 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) { if (metadataKeyBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) && metadataKey_ != null && metadataKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getMetadataKeyBuilder().mergeFrom(value); } else { metadataKey_ = value; } } else { metadataKeyBuilder_.mergeFrom(value); } if (metadataKey_ != null) { bitField0_ |= 0x00010000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00010000); metadataKey_ = null; if (metadataKeyBuilder_ != null) { metadataKeyBuilder_.dispose(); metadataKeyBuilder_ = null; } onChanged(); 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 com.hedera.hashgraph.sdk.proto.Key.Builder getMetadataKeyBuilder() { bitField0_ |= 0x00010000; onChanged(); return getMetadataKeyFieldBuilder().getBuilder(); } /** *
     **
     * 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 com.hedera.hashgraph.sdk.proto.KeyOrBuilder getMetadataKeyOrBuilder() { if (metadataKeyBuilder_ != null) { return metadataKeyBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getMetadataKeyFieldBuilder() { if (metadataKeyBuilder_ == null) { metadataKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getMetadataKey(), getParentForChildren(), isClean()); metadataKey_ = null; } return metadataKeyBuilder_; } private int keyVerificationMode_ = 0; /** *
     **
     * 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; * @param value The enum numeric value on the wire for keyVerificationMode to set. * @return This builder for chaining. */ public Builder setKeyVerificationModeValue(int value) { keyVerificationMode_ = value; bitField0_ |= 0x00020000; onChanged(); 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() { 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 keyVerificationMode to set. * @return This builder for chaining. */ public Builder setKeyVerificationMode(com.hedera.hashgraph.sdk.proto.TokenKeyValidation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; keyVerificationMode_ = value.getNumber(); onChanged(); 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() { bitField0_ = (bitField0_ & ~0x00020000); keyVerificationMode_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.TokenUpdateTransactionBody) } // @@protoc_insertion_point(class_scope:proto.TokenUpdateTransactionBody) private static final com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody(); } public static com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenUpdateTransactionBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy