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

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

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: contract_update.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * At consensus, updates the fields of a smart contract to the given values.
 * 
 * If no value is given for a field, that field is left unchanged on the contract. For an immutable
 * smart contract (that is, a contract created without an adminKey), only the expirationTime may be
 * updated; setting any other field in this case will cause the transaction status to resolve to
 * MODIFYING_IMMUTABLE_CONTRACT.
 * 
 * --- Signing Requirements ---
 * 1. Whether or not a contract has an admin key, its expiry can be extended with only the
 *    transaction payer's signature.
 * 2. Updating any other field of a mutable contract requires the admin key's signature.
 * 3. If the update transaction includes a new admin key, this new key must also sign <b>unless</b>
 *    it is exactly an empty <tt>KeyList</tt>. This special sentinel key removes the existing admin
 *    key and causes the contract 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 the update transaction sets the AccountID auto_renew_account_id wrapper field to anything
 *    other than the sentinel <tt>0.0.0</tt> value, then the key of the referenced account must sign.
 * 
* * Protobuf type {@code proto.ContractUpdateTransactionBody} */ public final class ContractUpdateTransactionBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ContractUpdateTransactionBody) ContractUpdateTransactionBodyOrBuilder { private static final long serialVersionUID = 0L; // Use ContractUpdateTransactionBody.newBuilder() to construct. private ContractUpdateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContractUpdateTransactionBody() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContractUpdateTransactionBody(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody.class, com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody.Builder.class); } private int bitField0_; private int memoFieldCase_ = 0; @SuppressWarnings("serial") private java.lang.Object memoField_; public enum MemoFieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { @java.lang.Deprecated MEMO(9), MEMOWRAPPER(10), MEMOFIELD_NOT_SET(0); private final int value; private MemoFieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MemoFieldCase valueOf(int value) { return forNumber(value); } public static MemoFieldCase forNumber(int value) { switch (value) { case 9: return MEMO; case 10: return MEMOWRAPPER; case 0: return MEMOFIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MemoFieldCase getMemoFieldCase() { return MemoFieldCase.forNumber( memoFieldCase_); } private int stakedIdCase_ = 0; @SuppressWarnings("serial") private java.lang.Object stakedId_; public enum StakedIdCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STAKED_ACCOUNT_ID(13), STAKED_NODE_ID(14), STAKEDID_NOT_SET(0); private final int value; private StakedIdCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static StakedIdCase valueOf(int value) { return forNumber(value); } public static StakedIdCase forNumber(int value) { switch (value) { case 13: return STAKED_ACCOUNT_ID; case 14: return STAKED_NODE_ID; case 0: return STAKEDID_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public StakedIdCase getStakedIdCase() { return StakedIdCase.forNumber( stakedIdCase_); } public static final int CONTRACTID_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.ContractID contractID_; /** *
   **
   * The id of the contract to be updated
   * 
* * .proto.ContractID contractID = 1; * @return Whether the contractID field is set. */ @java.lang.Override public boolean hasContractID() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The id of the contract to be updated
   * 
* * .proto.ContractID contractID = 1; * @return The contractID. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } /** *
   **
   * The id of the contract to be updated
   * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } public static final int EXPIRATIONTIME_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_; /** *
   **
   * The new expiry of the contract, no earlier than the current expiry (resolves to
   * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
   * 
* * .proto.Timestamp expirationTime = 2; * @return Whether the expirationTime field is set. */ @java.lang.Override public boolean hasExpirationTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * The new expiry of the contract, no earlier than the current expiry (resolves to
   * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
   * 
* * .proto.Timestamp expirationTime = 2; * @return The expirationTime. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_; } /** *
   **
   * The new expiry of the contract, no earlier than the current expiry (resolves to
   * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
   * 
* * .proto.Timestamp expirationTime = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_; } public static final int ADMINKEY_FIELD_NUMBER = 3; private com.hedera.hashgraph.sdk.proto.Key adminKey_; /** *
   **
   * The new key to control updates to the contract
   * 
* * .proto.Key adminKey = 3; * @return Whether the adminKey field is set. */ @java.lang.Override public boolean hasAdminKey() { return ((bitField0_ & 0x00000004) != 0); } /** *
   **
   * The new key to control updates to the contract
   * 
* * .proto.Key adminKey = 3; * @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 key to control updates to the contract
   * 
* * .proto.Key adminKey = 3; */ @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 PROXYACCOUNTID_FIELD_NUMBER = 6; private com.hedera.hashgraph.sdk.proto.AccountID proxyAccountID_; /** *
   **
   * [Deprecated] The new id of the account to which the contract is proxy staked
   * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.proxyAccountID is deprecated. * See contract_update.proto;l=72 * @return Whether the proxyAccountID field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasProxyAccountID() { return ((bitField0_ & 0x00000008) != 0); } /** *
   **
   * [Deprecated] The new id of the account to which the contract is proxy staked
   * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.proxyAccountID is deprecated. * See contract_update.proto;l=72 * @return The proxyAccountID. */ @java.lang.Override @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID getProxyAccountID() { return proxyAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountID_; } /** *
   **
   * [Deprecated] The new id of the account to which the contract is proxy staked
   * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getProxyAccountIDOrBuilder() { return proxyAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountID_; } public static final int AUTORENEWPERIOD_FIELD_NUMBER = 7; private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_; /** *
   **
   * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
   * 
* * .proto.Duration autoRenewPeriod = 7; * @return Whether the autoRenewPeriod field is set. */ @java.lang.Override public boolean hasAutoRenewPeriod() { return ((bitField0_ & 0x00000010) != 0); } /** *
   **
   * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
   * 
* * .proto.Duration autoRenewPeriod = 7; * @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_; } /** *
   **
   * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
   * 
* * .proto.Duration autoRenewPeriod = 7; */ @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 FILEID_FIELD_NUMBER = 8; private com.hedera.hashgraph.sdk.proto.FileID fileID_; /** *
   **
   * This field is unused and will have no impact on the specified smart contract.
   * 
* * .proto.FileID fileID = 8 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.fileID is deprecated. * See contract_update.proto;l=82 * @return Whether the fileID field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasFileID() { return ((bitField0_ & 0x00000020) != 0); } /** *
   **
   * This field is unused and will have no impact on the specified smart contract.
   * 
* * .proto.FileID fileID = 8 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.fileID is deprecated. * See contract_update.proto;l=82 * @return The fileID. */ @java.lang.Override @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FileID getFileID() { return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_; } /** *
   **
   * This field is unused and will have no impact on the specified smart contract.
   * 
* * .proto.FileID fileID = 8 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() { return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_; } public static final int MEMO_FIELD_NUMBER = 9; /** *
   **
   * [Deprecated] If set with a non-zero length, the new memo to be associated with the account
   * (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 9 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.memo is deprecated. * See contract_update.proto;l=92 * @return Whether the memo field is set. */ @java.lang.Deprecated public boolean hasMemo() { return memoFieldCase_ == 9; } /** *
   **
   * [Deprecated] If set with a non-zero length, the new memo to be associated with the account
   * (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 9 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.memo is deprecated. * See contract_update.proto;l=92 * @return The memo. */ @java.lang.Deprecated public java.lang.String getMemo() { java.lang.Object ref = ""; if (memoFieldCase_ == 9) { ref = memoField_; } 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(); if (memoFieldCase_ == 9) { memoField_ = s; } return s; } } /** *
   **
   * [Deprecated] If set with a non-zero length, the new memo to be associated with the account
   * (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 9 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.memo is deprecated. * See contract_update.proto;l=92 * @return The bytes for memo. */ @java.lang.Deprecated public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = ""; if (memoFieldCase_ == 9) { ref = memoField_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (memoFieldCase_ == 9) { memoField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MEMOWRAPPER_FIELD_NUMBER = 10; /** *
   **
   * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
   * 
* * .google.protobuf.StringValue memoWrapper = 10; * @return Whether the memoWrapper field is set. */ @java.lang.Override public boolean hasMemoWrapper() { return memoFieldCase_ == 10; } /** *
   **
   * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
   * 
* * .google.protobuf.StringValue memoWrapper = 10; * @return The memoWrapper. */ @java.lang.Override public com.google.protobuf.StringValue getMemoWrapper() { if (memoFieldCase_ == 10) { return (com.google.protobuf.StringValue) memoField_; } return com.google.protobuf.StringValue.getDefaultInstance(); } /** *
   **
   * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
   * 
* * .google.protobuf.StringValue memoWrapper = 10; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getMemoWrapperOrBuilder() { if (memoFieldCase_ == 10) { return (com.google.protobuf.StringValue) memoField_; } return com.google.protobuf.StringValue.getDefaultInstance(); } public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 11; private com.google.protobuf.Int32Value maxAutomaticTokenAssociations_; /** *
   **
   * If set, modify the maximum number of tokens that can be auto-associated with the
   * contract.<br/>
   * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
   * MUST manually associate with a token before transacting in that token.<br/>
   * This value MAY also be `-1` to indicate no limit.<br/>
   * This value MUST NOT be less than `-1`.
   * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; * @return Whether the maxAutomaticTokenAssociations field is set. */ @java.lang.Override public boolean hasMaxAutomaticTokenAssociations() { return ((bitField0_ & 0x00000040) != 0); } /** *
   **
   * If set, modify the maximum number of tokens that can be auto-associated with the
   * contract.<br/>
   * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
   * MUST manually associate with a token before transacting in that token.<br/>
   * This value MAY also be `-1` to indicate no limit.<br/>
   * This value MUST NOT be less than `-1`.
   * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; * @return The maxAutomaticTokenAssociations. */ @java.lang.Override public com.google.protobuf.Int32Value getMaxAutomaticTokenAssociations() { return maxAutomaticTokenAssociations_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxAutomaticTokenAssociations_; } /** *
   **
   * If set, modify the maximum number of tokens that can be auto-associated with the
   * contract.<br/>
   * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
   * MUST manually associate with a token before transacting in that token.<br/>
   * This value MAY also be `-1` to indicate no limit.<br/>
   * This value MUST NOT be less than `-1`.
   * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getMaxAutomaticTokenAssociationsOrBuilder() { return maxAutomaticTokenAssociations_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxAutomaticTokenAssociations_; } public static final int AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER = 12; private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccountId_; /** *
   **
   * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
   * account. Otherwise it updates the contract's auto-renew account to the referenced account.
   * 
* * .proto.AccountID auto_renew_account_id = 12; * @return Whether the autoRenewAccountId field is set. */ @java.lang.Override public boolean hasAutoRenewAccountId() { return ((bitField0_ & 0x00000080) != 0); } /** *
   **
   * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
   * account. Otherwise it updates the contract's auto-renew account to the referenced account.
   * 
* * .proto.AccountID auto_renew_account_id = 12; * @return The autoRenewAccountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccountId() { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } /** *
   **
   * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
   * account. Otherwise it updates the contract's auto-renew account to the referenced account.
   * 
* * .proto.AccountID auto_renew_account_id = 12; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } public static final int STAKED_ACCOUNT_ID_FIELD_NUMBER = 13; /** *
   **
   * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
   * this field removes the contract's staked account ID.
   * 
* * .proto.AccountID staked_account_id = 13; * @return Whether the stakedAccountId field is set. */ @java.lang.Override public boolean hasStakedAccountId() { return stakedIdCase_ == 13; } /** *
   **
   * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
   * this field removes the contract's staked account ID.
   * 
* * .proto.AccountID staked_account_id = 13; * @return The stakedAccountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() { if (stakedIdCase_ == 13) { return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } /** *
   **
   * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
   * this field removes the contract's staked account ID.
   * 
* * .proto.AccountID staked_account_id = 13; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getStakedAccountIdOrBuilder() { if (stakedIdCase_ == 13) { return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } public static final int STAKED_NODE_ID_FIELD_NUMBER = 14; /** *
   **
   * ID of the new node this contract is staked to. If set to the sentinel <tt>-1</tt>, this field
   * removes the contract's staked node ID.
   * 
* * int64 staked_node_id = 14; * @return Whether the stakedNodeId field is set. */ @java.lang.Override public boolean hasStakedNodeId() { return stakedIdCase_ == 14; } /** *
   **
   * ID of the new node this contract is staked to. If set to the sentinel <tt>-1</tt>, this field
   * removes the contract's staked node ID.
   * 
* * int64 staked_node_id = 14; * @return The stakedNodeId. */ @java.lang.Override public long getStakedNodeId() { if (stakedIdCase_ == 14) { return (java.lang.Long) stakedId_; } return 0L; } public static final int DECLINE_REWARD_FIELD_NUMBER = 15; private com.google.protobuf.BoolValue declineReward_; /** *
   **
   * If true, the contract declines receiving a staking reward.
   * 
* * .google.protobuf.BoolValue decline_reward = 15; * @return Whether the declineReward field is set. */ @java.lang.Override public boolean hasDeclineReward() { return ((bitField0_ & 0x00000100) != 0); } /** *
   **
   * If true, the contract declines receiving a staking reward.
   * 
* * .google.protobuf.BoolValue decline_reward = 15; * @return The declineReward. */ @java.lang.Override public com.google.protobuf.BoolValue getDeclineReward() { return declineReward_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : declineReward_; } /** *
   **
   * If true, the contract declines receiving a staking reward.
   * 
* * .google.protobuf.BoolValue decline_reward = 15; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getDeclineRewardOrBuilder() { return declineReward_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : declineReward_; } 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, getContractID()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpirationTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getAdminKey()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getProxyAccountID()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getAutoRenewPeriod()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getFileID()); } if (memoFieldCase_ == 9) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, memoField_); } if (memoFieldCase_ == 10) { output.writeMessage(10, (com.google.protobuf.StringValue) memoField_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(11, getMaxAutomaticTokenAssociations()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(12, getAutoRenewAccountId()); } if (stakedIdCase_ == 13) { output.writeMessage(13, (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_); } if (stakedIdCase_ == 14) { output.writeInt64( 14, (long)((java.lang.Long) stakedId_)); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(15, getDeclineReward()); } 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, getContractID()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpirationTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAdminKey()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getProxyAccountID()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAutoRenewPeriod()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getFileID()); } if (memoFieldCase_ == 9) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, memoField_); } if (memoFieldCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.google.protobuf.StringValue) memoField_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMaxAutomaticTokenAssociations()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getAutoRenewAccountId()); } if (stakedIdCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_); } if (stakedIdCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 14, (long)((java.lang.Long) stakedId_)); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getDeclineReward()); } 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.ContractUpdateTransactionBody)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody other = (com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody) obj; if (hasContractID() != other.hasContractID()) return false; if (hasContractID()) { if (!getContractID() .equals(other.getContractID())) return false; } if (hasExpirationTime() != other.hasExpirationTime()) return false; if (hasExpirationTime()) { if (!getExpirationTime() .equals(other.getExpirationTime())) return false; } if (hasAdminKey() != other.hasAdminKey()) return false; if (hasAdminKey()) { if (!getAdminKey() .equals(other.getAdminKey())) return false; } if (hasProxyAccountID() != other.hasProxyAccountID()) return false; if (hasProxyAccountID()) { if (!getProxyAccountID() .equals(other.getProxyAccountID())) return false; } if (hasAutoRenewPeriod() != other.hasAutoRenewPeriod()) return false; if (hasAutoRenewPeriod()) { if (!getAutoRenewPeriod() .equals(other.getAutoRenewPeriod())) return false; } if (hasFileID() != other.hasFileID()) return false; if (hasFileID()) { if (!getFileID() .equals(other.getFileID())) return false; } if (hasMaxAutomaticTokenAssociations() != other.hasMaxAutomaticTokenAssociations()) return false; if (hasMaxAutomaticTokenAssociations()) { if (!getMaxAutomaticTokenAssociations() .equals(other.getMaxAutomaticTokenAssociations())) return false; } if (hasAutoRenewAccountId() != other.hasAutoRenewAccountId()) return false; if (hasAutoRenewAccountId()) { if (!getAutoRenewAccountId() .equals(other.getAutoRenewAccountId())) return false; } if (hasDeclineReward() != other.hasDeclineReward()) return false; if (hasDeclineReward()) { if (!getDeclineReward() .equals(other.getDeclineReward())) return false; } if (!getMemoFieldCase().equals(other.getMemoFieldCase())) return false; switch (memoFieldCase_) { case 9: if (!getMemo() .equals(other.getMemo())) return false; break; case 10: if (!getMemoWrapper() .equals(other.getMemoWrapper())) return false; break; case 0: default: } if (!getStakedIdCase().equals(other.getStakedIdCase())) return false; switch (stakedIdCase_) { case 13: if (!getStakedAccountId() .equals(other.getStakedAccountId())) return false; break; case 14: if (getStakedNodeId() != other.getStakedNodeId()) return false; break; case 0: default: } 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 (hasContractID()) { hash = (37 * hash) + CONTRACTID_FIELD_NUMBER; hash = (53 * hash) + getContractID().hashCode(); } if (hasExpirationTime()) { hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER; hash = (53 * hash) + getExpirationTime().hashCode(); } if (hasAdminKey()) { hash = (37 * hash) + ADMINKEY_FIELD_NUMBER; hash = (53 * hash) + getAdminKey().hashCode(); } if (hasProxyAccountID()) { hash = (37 * hash) + PROXYACCOUNTID_FIELD_NUMBER; hash = (53 * hash) + getProxyAccountID().hashCode(); } if (hasAutoRenewPeriod()) { hash = (37 * hash) + AUTORENEWPERIOD_FIELD_NUMBER; hash = (53 * hash) + getAutoRenewPeriod().hashCode(); } if (hasFileID()) { hash = (37 * hash) + FILEID_FIELD_NUMBER; hash = (53 * hash) + getFileID().hashCode(); } if (hasMaxAutomaticTokenAssociations()) { hash = (37 * hash) + MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER; hash = (53 * hash) + getMaxAutomaticTokenAssociations().hashCode(); } if (hasAutoRenewAccountId()) { hash = (37 * hash) + AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAutoRenewAccountId().hashCode(); } if (hasDeclineReward()) { hash = (37 * hash) + DECLINE_REWARD_FIELD_NUMBER; hash = (53 * hash) + getDeclineReward().hashCode(); } switch (memoFieldCase_) { case 9: hash = (37 * hash) + MEMO_FIELD_NUMBER; hash = (53 * hash) + getMemo().hashCode(); break; case 10: hash = (37 * hash) + MEMOWRAPPER_FIELD_NUMBER; hash = (53 * hash) + getMemoWrapper().hashCode(); break; case 0: default: } switch (stakedIdCase_) { case 13: hash = (37 * hash) + STAKED_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getStakedAccountId().hashCode(); break; case 14: hash = (37 * hash) + STAKED_NODE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStakedNodeId()); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody 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 the fields of a smart contract to the given values.
   * 
   * If no value is given for a field, that field is left unchanged on the contract. For an immutable
   * smart contract (that is, a contract created without an adminKey), only the expirationTime may be
   * updated; setting any other field in this case will cause the transaction status to resolve to
   * MODIFYING_IMMUTABLE_CONTRACT.
   * 
   * --- Signing Requirements ---
   * 1. Whether or not a contract has an admin key, its expiry can be extended with only the
   *    transaction payer's signature.
   * 2. Updating any other field of a mutable contract requires the admin key's signature.
   * 3. If the update transaction includes a new admin key, this new key must also sign <b>unless</b>
   *    it is exactly an empty <tt>KeyList</tt>. This special sentinel key removes the existing admin
   *    key and causes the contract 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 the update transaction sets the AccountID auto_renew_account_id wrapper field to anything
   *    other than the sentinel <tt>0.0.0</tt> value, then the key of the referenced account must sign.
   * 
* * Protobuf type {@code proto.ContractUpdateTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ContractUpdateTransactionBody) com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody.class, com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getContractIDFieldBuilder(); getExpirationTimeFieldBuilder(); getAdminKeyFieldBuilder(); getProxyAccountIDFieldBuilder(); getAutoRenewPeriodFieldBuilder(); getFileIDFieldBuilder(); getMaxAutomaticTokenAssociationsFieldBuilder(); getAutoRenewAccountIdFieldBuilder(); getDeclineRewardFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; contractID_ = null; if (contractIDBuilder_ != null) { contractIDBuilder_.dispose(); contractIDBuilder_ = null; } expirationTime_ = null; if (expirationTimeBuilder_ != null) { expirationTimeBuilder_.dispose(); expirationTimeBuilder_ = null; } adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } proxyAccountID_ = null; if (proxyAccountIDBuilder_ != null) { proxyAccountIDBuilder_.dispose(); proxyAccountIDBuilder_ = null; } autoRenewPeriod_ = null; if (autoRenewPeriodBuilder_ != null) { autoRenewPeriodBuilder_.dispose(); autoRenewPeriodBuilder_ = null; } fileID_ = null; if (fileIDBuilder_ != null) { fileIDBuilder_.dispose(); fileIDBuilder_ = null; } if (memoWrapperBuilder_ != null) { memoWrapperBuilder_.clear(); } maxAutomaticTokenAssociations_ = null; if (maxAutomaticTokenAssociationsBuilder_ != null) { maxAutomaticTokenAssociationsBuilder_.dispose(); maxAutomaticTokenAssociationsBuilder_ = null; } autoRenewAccountId_ = null; if (autoRenewAccountIdBuilder_ != null) { autoRenewAccountIdBuilder_.dispose(); autoRenewAccountIdBuilder_ = null; } if (stakedAccountIdBuilder_ != null) { stakedAccountIdBuilder_.clear(); } declineReward_ = null; if (declineRewardBuilder_ != null) { declineRewardBuilder_.dispose(); declineRewardBuilder_ = null; } memoFieldCase_ = 0; memoField_ = null; stakedIdCase_ = 0; stakedId_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody build() { com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody buildPartial() { com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody result = new com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.contractID_ = contractIDBuilder_ == null ? contractID_ : contractIDBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expirationTime_ = expirationTimeBuilder_ == null ? expirationTime_ : expirationTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.adminKey_ = adminKeyBuilder_ == null ? adminKey_ : adminKeyBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.proxyAccountID_ = proxyAccountIDBuilder_ == null ? proxyAccountID_ : proxyAccountIDBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.autoRenewPeriod_ = autoRenewPeriodBuilder_ == null ? autoRenewPeriod_ : autoRenewPeriodBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.fileID_ = fileIDBuilder_ == null ? fileID_ : fileIDBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { result.maxAutomaticTokenAssociations_ = maxAutomaticTokenAssociationsBuilder_ == null ? maxAutomaticTokenAssociations_ : maxAutomaticTokenAssociationsBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { result.autoRenewAccountId_ = autoRenewAccountIdBuilder_ == null ? autoRenewAccountId_ : autoRenewAccountIdBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00001000) != 0)) { result.declineReward_ = declineRewardBuilder_ == null ? declineReward_ : declineRewardBuilder_.build(); to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody result) { result.memoFieldCase_ = memoFieldCase_; result.memoField_ = this.memoField_; if (memoFieldCase_ == 10 && memoWrapperBuilder_ != null) { result.memoField_ = memoWrapperBuilder_.build(); } result.stakedIdCase_ = stakedIdCase_; result.stakedId_ = this.stakedId_; if (stakedIdCase_ == 13 && stakedAccountIdBuilder_ != null) { result.stakedId_ = stakedAccountIdBuilder_.build(); } } @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.ContractUpdateTransactionBody) { return mergeFrom((com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody other) { if (other == com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody.getDefaultInstance()) return this; if (other.hasContractID()) { mergeContractID(other.getContractID()); } if (other.hasExpirationTime()) { mergeExpirationTime(other.getExpirationTime()); } if (other.hasAdminKey()) { mergeAdminKey(other.getAdminKey()); } if (other.hasProxyAccountID()) { mergeProxyAccountID(other.getProxyAccountID()); } if (other.hasAutoRenewPeriod()) { mergeAutoRenewPeriod(other.getAutoRenewPeriod()); } if (other.hasFileID()) { mergeFileID(other.getFileID()); } if (other.hasMaxAutomaticTokenAssociations()) { mergeMaxAutomaticTokenAssociations(other.getMaxAutomaticTokenAssociations()); } if (other.hasAutoRenewAccountId()) { mergeAutoRenewAccountId(other.getAutoRenewAccountId()); } if (other.hasDeclineReward()) { mergeDeclineReward(other.getDeclineReward()); } switch (other.getMemoFieldCase()) { case MEMO: { memoFieldCase_ = 9; memoField_ = other.memoField_; onChanged(); break; } case MEMOWRAPPER: { mergeMemoWrapper(other.getMemoWrapper()); break; } case MEMOFIELD_NOT_SET: { break; } } switch (other.getStakedIdCase()) { case STAKED_ACCOUNT_ID: { mergeStakedAccountId(other.getStakedAccountId()); break; } case STAKED_NODE_ID: { setStakedNodeId(other.getStakedNodeId()); break; } case STAKEDID_NOT_SET: { break; } } 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( getContractIDFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExpirationTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getAdminKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 50: { input.readMessage( getProxyAccountIDFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 50 case 58: { input.readMessage( getAutoRenewPeriodFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 58 case 66: { input.readMessage( getFileIDFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 66 case 74: { java.lang.String s = input.readStringRequireUtf8(); memoFieldCase_ = 9; memoField_ = s; break; } // case 74 case 82: { input.readMessage( getMemoWrapperFieldBuilder().getBuilder(), extensionRegistry); memoFieldCase_ = 10; break; } // case 82 case 90: { input.readMessage( getMaxAutomaticTokenAssociationsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 90 case 98: { input.readMessage( getAutoRenewAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 98 case 106: { input.readMessage( getStakedAccountIdFieldBuilder().getBuilder(), extensionRegistry); stakedIdCase_ = 13; break; } // case 106 case 112: { stakedId_ = input.readInt64(); stakedIdCase_ = 14; break; } // case 112 case 122: { input.readMessage( getDeclineRewardFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 122 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 memoFieldCase_ = 0; private java.lang.Object memoField_; public MemoFieldCase getMemoFieldCase() { return MemoFieldCase.forNumber( memoFieldCase_); } public Builder clearMemoField() { memoFieldCase_ = 0; memoField_ = null; onChanged(); return this; } private int stakedIdCase_ = 0; private java.lang.Object stakedId_; public StakedIdCase getStakedIdCase() { return StakedIdCase.forNumber( stakedIdCase_); } public Builder clearStakedId() { stakedIdCase_ = 0; stakedId_ = null; onChanged(); return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.ContractID contractID_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> contractIDBuilder_; /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; * @return Whether the contractID field is set. */ public boolean hasContractID() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; * @return The contractID. */ public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { if (contractIDBuilder_ == null) { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } else { return contractIDBuilder_.getMessage(); } } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { if (contractIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractID_ = value; } else { contractIDBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID( com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) { if (contractIDBuilder_ == null) { contractID_ = builderForValue.build(); } else { contractIDBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { if (contractIDBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && contractID_ != null && contractID_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) { getContractIDBuilder().mergeFrom(value); } else { contractID_ = value; } } else { contractIDBuilder_.mergeFrom(value); } if (contractID_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public Builder clearContractID() { bitField0_ = (bitField0_ & ~0x00000001); contractID_ = null; if (contractIDBuilder_ != null) { contractIDBuilder_.dispose(); contractIDBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public com.hedera.hashgraph.sdk.proto.ContractID.Builder getContractIDBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContractIDFieldBuilder().getBuilder(); } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() { if (contractIDBuilder_ != null) { return contractIDBuilder_.getMessageOrBuilder(); } else { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> getContractIDFieldBuilder() { if (contractIDBuilder_ == null) { contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>( getContractID(), getParentForChildren(), isClean()); contractID_ = null; } return contractIDBuilder_; } private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> expirationTimeBuilder_; /** *
     **
     * The new expiry of the contract, no earlier than the current expiry (resolves to
     * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
     * 
* * .proto.Timestamp expirationTime = 2; * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * The new expiry of the contract, no earlier than the current expiry (resolves to
     * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
     * 
* * .proto.Timestamp expirationTime = 2; * @return The expirationTime. */ public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** *
     **
     * The new expiry of the contract, no earlier than the current expiry (resolves to
     * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
     * 
* * .proto.Timestamp expirationTime = 2; */ public Builder setExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; } else { expirationTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The new expiry of the contract, no earlier than the current expiry (resolves to
     * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
     * 
* * .proto.Timestamp expirationTime = 2; */ public Builder setExpirationTime( com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The new expiry of the contract, no earlier than the current expiry (resolves to
     * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
     * 
* * .proto.Timestamp expirationTime = 2; */ public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { if (expirationTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expirationTime_ != null && expirationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) { getExpirationTimeBuilder().mergeFrom(value); } else { expirationTime_ = value; } } else { expirationTimeBuilder_.mergeFrom(value); } if (expirationTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * The new expiry of the contract, no earlier than the current expiry (resolves to
     * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
     * 
* * .proto.Timestamp expirationTime = 2; */ public Builder clearExpirationTime() { bitField0_ = (bitField0_ & ~0x00000002); expirationTime_ = null; if (expirationTimeBuilder_ != null) { expirationTimeBuilder_.dispose(); expirationTimeBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The new expiry of the contract, no earlier than the current expiry (resolves to
     * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
     * 
* * .proto.Timestamp expirationTime = 2; */ public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpirationTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } /** *
     **
     * The new expiry of the contract, no earlier than the current expiry (resolves to
     * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
     * 
* * .proto.Timestamp expirationTime = 2; */ public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_; } } /** *
     **
     * The new expiry of the contract, no earlier than the current expiry (resolves to
     * EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
     * 
* * .proto.Timestamp expirationTime = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } 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 key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; * @return Whether the adminKey field is set. */ public boolean hasAdminKey() { return ((bitField0_ & 0x00000004) != 0); } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; * @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 key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ 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_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public Builder setAdminKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (adminKeyBuilder_ == null) { adminKey_ = builderForValue.build(); } else { adminKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public Builder mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { if (adminKeyBuilder_ == null) { if (((bitField0_ & 0x00000004) != 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_ |= 0x00000004; onChanged(); } return this; } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public Builder clearAdminKey() { bitField0_ = (bitField0_ & ~0x00000004); adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getAdminKeyBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ 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 key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ 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.AccountID proxyAccountID_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> proxyAccountIDBuilder_; /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.proxyAccountID is deprecated. * See contract_update.proto;l=72 * @return Whether the proxyAccountID field is set. */ @java.lang.Deprecated public boolean hasProxyAccountID() { return ((bitField0_ & 0x00000008) != 0); } /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.proxyAccountID is deprecated. * See contract_update.proto;l=72 * @return The proxyAccountID. */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID getProxyAccountID() { if (proxyAccountIDBuilder_ == null) { return proxyAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountID_; } else { return proxyAccountIDBuilder_.getMessage(); } } /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; */ @java.lang.Deprecated public Builder setProxyAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (proxyAccountIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } proxyAccountID_ = value; } else { proxyAccountIDBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; */ @java.lang.Deprecated public Builder setProxyAccountID( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (proxyAccountIDBuilder_ == null) { proxyAccountID_ = builderForValue.build(); } else { proxyAccountIDBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeProxyAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (proxyAccountIDBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && proxyAccountID_ != null && proxyAccountID_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getProxyAccountIDBuilder().mergeFrom(value); } else { proxyAccountID_ = value; } } else { proxyAccountIDBuilder_.mergeFrom(value); } if (proxyAccountID_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; */ @java.lang.Deprecated public Builder clearProxyAccountID() { bitField0_ = (bitField0_ & ~0x00000008); proxyAccountID_ = null; if (proxyAccountIDBuilder_ != null) { proxyAccountIDBuilder_.dispose(); proxyAccountIDBuilder_ = null; } onChanged(); return this; } /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID.Builder getProxyAccountIDBuilder() { bitField0_ |= 0x00000008; onChanged(); return getProxyAccountIDFieldBuilder().getBuilder(); } /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getProxyAccountIDOrBuilder() { if (proxyAccountIDBuilder_ != null) { return proxyAccountIDBuilder_.getMessageOrBuilder(); } else { return proxyAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountID_; } } /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getProxyAccountIDFieldBuilder() { if (proxyAccountIDBuilder_ == null) { proxyAccountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getProxyAccountID(), getParentForChildren(), isClean()); proxyAccountID_ = null; } return proxyAccountIDBuilder_; } 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_; /** *
     **
     * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
     * 
* * .proto.Duration autoRenewPeriod = 7; * @return Whether the autoRenewPeriod field is set. */ public boolean hasAutoRenewPeriod() { return ((bitField0_ & 0x00000010) != 0); } /** *
     **
     * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
     * 
* * .proto.Duration autoRenewPeriod = 7; * @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(); } } /** *
     **
     * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ 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_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public Builder setAutoRenewPeriod( com.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = builderForValue.build(); } else { autoRenewPeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public Builder mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) { if (autoRenewPeriodBuilder_ == null) { if (((bitField0_ & 0x00000010) != 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_ |= 0x00000010; onChanged(); } return this; } /** *
     **
     * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public Builder clearAutoRenewPeriod() { bitField0_ = (bitField0_ & ~0x00000010); autoRenewPeriod_ = null; if (autoRenewPeriodBuilder_ != null) { autoRenewPeriodBuilder_.dispose(); autoRenewPeriodBuilder_ = null; } onChanged(); return this; } /** *
     **
     * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public com.hedera.hashgraph.sdk.proto.Duration.Builder getAutoRenewPeriodBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAutoRenewPeriodFieldBuilder().getBuilder(); } /** *
     **
     * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ 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_; } } /** *
     **
     * If an auto-renew account is in use, the lifetime to be added by each auto-renewal.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ 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.FileID fileID_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder> fileIDBuilder_; /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.fileID is deprecated. * See contract_update.proto;l=82 * @return Whether the fileID field is set. */ @java.lang.Deprecated public boolean hasFileID() { return ((bitField0_ & 0x00000020) != 0); } /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.fileID is deprecated. * See contract_update.proto;l=82 * @return The fileID. */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FileID getFileID() { if (fileIDBuilder_ == null) { return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_; } else { return fileIDBuilder_.getMessage(); } } /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; */ @java.lang.Deprecated public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) { if (fileIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileID_ = value; } else { fileIDBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; */ @java.lang.Deprecated public Builder setFileID( com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) { if (fileIDBuilder_ == null) { fileID_ = builderForValue.build(); } else { fileIDBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) { if (fileIDBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && fileID_ != null && fileID_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) { getFileIDBuilder().mergeFrom(value); } else { fileID_ = value; } } else { fileIDBuilder_.mergeFrom(value); } if (fileID_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; */ @java.lang.Deprecated public Builder clearFileID() { bitField0_ = (bitField0_ & ~0x00000020); fileID_ = null; if (fileIDBuilder_ != null) { fileIDBuilder_.dispose(); fileIDBuilder_ = null; } onChanged(); return this; } /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FileID.Builder getFileIDBuilder() { bitField0_ |= 0x00000020; onChanged(); return getFileIDFieldBuilder().getBuilder(); } /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() { if (fileIDBuilder_ != null) { return fileIDBuilder_.getMessageOrBuilder(); } else { return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_; } } /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder> getFileIDFieldBuilder() { if (fileIDBuilder_ == null) { fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>( getFileID(), getParentForChildren(), isClean()); fileID_ = null; } return fileIDBuilder_; } /** *
     **
     * [Deprecated] If set with a non-zero length, the new memo to be associated with the account
     * (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 9 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.memo is deprecated. * See contract_update.proto;l=92 * @return Whether the memo field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasMemo() { return memoFieldCase_ == 9; } /** *
     **
     * [Deprecated] If set with a non-zero length, the new memo to be associated with the account
     * (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 9 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.memo is deprecated. * See contract_update.proto;l=92 * @return The memo. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getMemo() { java.lang.Object ref = ""; if (memoFieldCase_ == 9) { ref = memoField_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (memoFieldCase_ == 9) { memoField_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     **
     * [Deprecated] If set with a non-zero length, the new memo to be associated with the account
     * (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 9 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.memo is deprecated. * See contract_update.proto;l=92 * @return The bytes for memo. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = ""; if (memoFieldCase_ == 9) { ref = memoField_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (memoFieldCase_ == 9) { memoField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * [Deprecated] If set with a non-zero length, the new memo to be associated with the account
     * (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 9 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.memo is deprecated. * See contract_update.proto;l=92 * @param value The memo to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setMemo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } memoFieldCase_ = 9; memoField_ = value; onChanged(); return this; } /** *
     **
     * [Deprecated] If set with a non-zero length, the new memo to be associated with the account
     * (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 9 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.memo is deprecated. * See contract_update.proto;l=92 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearMemo() { if (memoFieldCase_ == 9) { memoFieldCase_ = 0; memoField_ = null; onChanged(); } return this; } /** *
     **
     * [Deprecated] If set with a non-zero length, the new memo to be associated with the account
     * (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 9 [deprecated = true]; * @deprecated proto.ContractUpdateTransactionBody.memo is deprecated. * See contract_update.proto;l=92 * @param value The bytes for memo to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setMemoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); memoFieldCase_ = 9; memoField_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> memoWrapperBuilder_; /** *
     **
     * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memoWrapper = 10; * @return Whether the memoWrapper field is set. */ @java.lang.Override public boolean hasMemoWrapper() { return memoFieldCase_ == 10; } /** *
     **
     * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memoWrapper = 10; * @return The memoWrapper. */ @java.lang.Override public com.google.protobuf.StringValue getMemoWrapper() { if (memoWrapperBuilder_ == null) { if (memoFieldCase_ == 10) { return (com.google.protobuf.StringValue) memoField_; } return com.google.protobuf.StringValue.getDefaultInstance(); } else { if (memoFieldCase_ == 10) { return memoWrapperBuilder_.getMessage(); } return com.google.protobuf.StringValue.getDefaultInstance(); } } /** *
     **
     * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memoWrapper = 10; */ public Builder setMemoWrapper(com.google.protobuf.StringValue value) { if (memoWrapperBuilder_ == null) { if (value == null) { throw new NullPointerException(); } memoField_ = value; onChanged(); } else { memoWrapperBuilder_.setMessage(value); } memoFieldCase_ = 10; return this; } /** *
     **
     * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memoWrapper = 10; */ public Builder setMemoWrapper( com.google.protobuf.StringValue.Builder builderForValue) { if (memoWrapperBuilder_ == null) { memoField_ = builderForValue.build(); onChanged(); } else { memoWrapperBuilder_.setMessage(builderForValue.build()); } memoFieldCase_ = 10; return this; } /** *
     **
     * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memoWrapper = 10; */ public Builder mergeMemoWrapper(com.google.protobuf.StringValue value) { if (memoWrapperBuilder_ == null) { if (memoFieldCase_ == 10 && memoField_ != com.google.protobuf.StringValue.getDefaultInstance()) { memoField_ = com.google.protobuf.StringValue.newBuilder((com.google.protobuf.StringValue) memoField_) .mergeFrom(value).buildPartial(); } else { memoField_ = value; } onChanged(); } else { if (memoFieldCase_ == 10) { memoWrapperBuilder_.mergeFrom(value); } else { memoWrapperBuilder_.setMessage(value); } } memoFieldCase_ = 10; return this; } /** *
     **
     * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memoWrapper = 10; */ public Builder clearMemoWrapper() { if (memoWrapperBuilder_ == null) { if (memoFieldCase_ == 10) { memoFieldCase_ = 0; memoField_ = null; onChanged(); } } else { if (memoFieldCase_ == 10) { memoFieldCase_ = 0; memoField_ = null; } memoWrapperBuilder_.clear(); } return this; } /** *
     **
     * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memoWrapper = 10; */ public com.google.protobuf.StringValue.Builder getMemoWrapperBuilder() { return getMemoWrapperFieldBuilder().getBuilder(); } /** *
     **
     * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memoWrapper = 10; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getMemoWrapperOrBuilder() { if ((memoFieldCase_ == 10) && (memoWrapperBuilder_ != null)) { return memoWrapperBuilder_.getMessageOrBuilder(); } else { if (memoFieldCase_ == 10) { return (com.google.protobuf.StringValue) memoField_; } return com.google.protobuf.StringValue.getDefaultInstance(); } } /** *
     **
     * If set, the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
     * 
* * .google.protobuf.StringValue memoWrapper = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getMemoWrapperFieldBuilder() { if (memoWrapperBuilder_ == null) { if (!(memoFieldCase_ == 10)) { memoField_ = com.google.protobuf.StringValue.getDefaultInstance(); } memoWrapperBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( (com.google.protobuf.StringValue) memoField_, getParentForChildren(), isClean()); memoField_ = null; } memoFieldCase_ = 10; onChanged(); return memoWrapperBuilder_; } private com.google.protobuf.Int32Value maxAutomaticTokenAssociations_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> maxAutomaticTokenAssociationsBuilder_; /** *
     **
     * If set, modify the maximum number of tokens that can be auto-associated with the
     * contract.<br/>
     * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
     * MUST manually associate with a token before transacting in that token.<br/>
     * This value MAY also be `-1` to indicate no limit.<br/>
     * This value MUST NOT be less than `-1`.
     * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; * @return Whether the maxAutomaticTokenAssociations field is set. */ public boolean hasMaxAutomaticTokenAssociations() { return ((bitField0_ & 0x00000100) != 0); } /** *
     **
     * If set, modify the maximum number of tokens that can be auto-associated with the
     * contract.<br/>
     * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
     * MUST manually associate with a token before transacting in that token.<br/>
     * This value MAY also be `-1` to indicate no limit.<br/>
     * This value MUST NOT be less than `-1`.
     * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; * @return The maxAutomaticTokenAssociations. */ public com.google.protobuf.Int32Value getMaxAutomaticTokenAssociations() { if (maxAutomaticTokenAssociationsBuilder_ == null) { return maxAutomaticTokenAssociations_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxAutomaticTokenAssociations_; } else { return maxAutomaticTokenAssociationsBuilder_.getMessage(); } } /** *
     **
     * If set, modify the maximum number of tokens that can be auto-associated with the
     * contract.<br/>
     * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
     * MUST manually associate with a token before transacting in that token.<br/>
     * This value MAY also be `-1` to indicate no limit.<br/>
     * This value MUST NOT be less than `-1`.
     * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; */ public Builder setMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value value) { if (maxAutomaticTokenAssociationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxAutomaticTokenAssociations_ = value; } else { maxAutomaticTokenAssociationsBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * If set, modify the maximum number of tokens that can be auto-associated with the
     * contract.<br/>
     * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
     * MUST manually associate with a token before transacting in that token.<br/>
     * This value MAY also be `-1` to indicate no limit.<br/>
     * This value MUST NOT be less than `-1`.
     * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; */ public Builder setMaxAutomaticTokenAssociations( com.google.protobuf.Int32Value.Builder builderForValue) { if (maxAutomaticTokenAssociationsBuilder_ == null) { maxAutomaticTokenAssociations_ = builderForValue.build(); } else { maxAutomaticTokenAssociationsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * If set, modify the maximum number of tokens that can be auto-associated with the
     * contract.<br/>
     * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
     * MUST manually associate with a token before transacting in that token.<br/>
     * This value MAY also be `-1` to indicate no limit.<br/>
     * This value MUST NOT be less than `-1`.
     * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; */ public Builder mergeMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value value) { if (maxAutomaticTokenAssociationsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && maxAutomaticTokenAssociations_ != null && maxAutomaticTokenAssociations_ != com.google.protobuf.Int32Value.getDefaultInstance()) { getMaxAutomaticTokenAssociationsBuilder().mergeFrom(value); } else { maxAutomaticTokenAssociations_ = value; } } else { maxAutomaticTokenAssociationsBuilder_.mergeFrom(value); } if (maxAutomaticTokenAssociations_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
     **
     * If set, modify the maximum number of tokens that can be auto-associated with the
     * contract.<br/>
     * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
     * MUST manually associate with a token before transacting in that token.<br/>
     * This value MAY also be `-1` to indicate no limit.<br/>
     * This value MUST NOT be less than `-1`.
     * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; */ public Builder clearMaxAutomaticTokenAssociations() { bitField0_ = (bitField0_ & ~0x00000100); maxAutomaticTokenAssociations_ = null; if (maxAutomaticTokenAssociationsBuilder_ != null) { maxAutomaticTokenAssociationsBuilder_.dispose(); maxAutomaticTokenAssociationsBuilder_ = null; } onChanged(); return this; } /** *
     **
     * If set, modify the maximum number of tokens that can be auto-associated with the
     * contract.<br/>
     * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
     * MUST manually associate with a token before transacting in that token.<br/>
     * This value MAY also be `-1` to indicate no limit.<br/>
     * This value MUST NOT be less than `-1`.
     * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; */ public com.google.protobuf.Int32Value.Builder getMaxAutomaticTokenAssociationsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getMaxAutomaticTokenAssociationsFieldBuilder().getBuilder(); } /** *
     **
     * If set, modify the maximum number of tokens that can be auto-associated with the
     * contract.<br/>
     * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
     * MUST manually associate with a token before transacting in that token.<br/>
     * This value MAY also be `-1` to indicate no limit.<br/>
     * This value MUST NOT be less than `-1`.
     * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; */ public com.google.protobuf.Int32ValueOrBuilder getMaxAutomaticTokenAssociationsOrBuilder() { if (maxAutomaticTokenAssociationsBuilder_ != null) { return maxAutomaticTokenAssociationsBuilder_.getMessageOrBuilder(); } else { return maxAutomaticTokenAssociations_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxAutomaticTokenAssociations_; } } /** *
     **
     * If set, modify the maximum number of tokens that can be auto-associated with the
     * contract.<br/>
     * If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
     * MUST manually associate with a token before transacting in that token.<br/>
     * This value MAY also be `-1` to indicate no limit.<br/>
     * This value MUST NOT be less than `-1`.
     * 
* * .google.protobuf.Int32Value max_automatic_token_associations = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getMaxAutomaticTokenAssociationsFieldBuilder() { if (maxAutomaticTokenAssociationsBuilder_ == null) { maxAutomaticTokenAssociationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getMaxAutomaticTokenAssociations(), getParentForChildren(), isClean()); maxAutomaticTokenAssociations_ = null; } return maxAutomaticTokenAssociationsBuilder_; } private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> autoRenewAccountIdBuilder_; /** *
     **
     * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
     * account. Otherwise it updates the contract's auto-renew account to the referenced account.
     * 
* * .proto.AccountID auto_renew_account_id = 12; * @return Whether the autoRenewAccountId field is set. */ public boolean hasAutoRenewAccountId() { return ((bitField0_ & 0x00000200) != 0); } /** *
     **
     * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
     * account. Otherwise it updates the contract's auto-renew account to the referenced account.
     * 
* * .proto.AccountID auto_renew_account_id = 12; * @return The autoRenewAccountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccountId() { if (autoRenewAccountIdBuilder_ == null) { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } else { return autoRenewAccountIdBuilder_.getMessage(); } } /** *
     **
     * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
     * account. Otherwise it updates the contract's auto-renew account to the referenced account.
     * 
* * .proto.AccountID auto_renew_account_id = 12; */ public Builder setAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (autoRenewAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewAccountId_ = value; } else { autoRenewAccountIdBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     **
     * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
     * account. Otherwise it updates the contract's auto-renew account to the referenced account.
     * 
* * .proto.AccountID auto_renew_account_id = 12; */ public Builder setAutoRenewAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountId_ = builderForValue.build(); } else { autoRenewAccountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     **
     * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
     * account. Otherwise it updates the contract's auto-renew account to the referenced account.
     * 
* * .proto.AccountID auto_renew_account_id = 12; */ public Builder mergeAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (autoRenewAccountIdBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && autoRenewAccountId_ != null && autoRenewAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAutoRenewAccountIdBuilder().mergeFrom(value); } else { autoRenewAccountId_ = value; } } else { autoRenewAccountIdBuilder_.mergeFrom(value); } if (autoRenewAccountId_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** *
     **
     * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
     * account. Otherwise it updates the contract's auto-renew account to the referenced account.
     * 
* * .proto.AccountID auto_renew_account_id = 12; */ public Builder clearAutoRenewAccountId() { bitField0_ = (bitField0_ & ~0x00000200); autoRenewAccountId_ = null; if (autoRenewAccountIdBuilder_ != null) { autoRenewAccountIdBuilder_.dispose(); autoRenewAccountIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
     * account. Otherwise it updates the contract's auto-renew account to the referenced account.
     * 
* * .proto.AccountID auto_renew_account_id = 12; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAutoRenewAccountIdBuilder() { bitField0_ |= 0x00000200; onChanged(); return getAutoRenewAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
     * account. Otherwise it updates the contract's auto-renew account to the referenced account.
     * 
* * .proto.AccountID auto_renew_account_id = 12; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() { if (autoRenewAccountIdBuilder_ != null) { return autoRenewAccountIdBuilder_.getMessageOrBuilder(); } else { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } } /** *
     **
     * If set to the sentinel <tt>0.0.0</tt> AccountID, this field removes the contract's auto-renew 
     * account. Otherwise it updates the contract's auto-renew account to the referenced account.
     * 
* * .proto.AccountID auto_renew_account_id = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAutoRenewAccountIdFieldBuilder() { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getAutoRenewAccountId(), getParentForChildren(), isClean()); autoRenewAccountId_ = null; } return autoRenewAccountIdBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> stakedAccountIdBuilder_; /** *
     **
     * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes the contract's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 13; * @return Whether the stakedAccountId field is set. */ @java.lang.Override public boolean hasStakedAccountId() { return stakedIdCase_ == 13; } /** *
     **
     * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes the contract's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 13; * @return The stakedAccountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() { if (stakedAccountIdBuilder_ == null) { if (stakedIdCase_ == 13) { return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } else { if (stakedIdCase_ == 13) { return stakedAccountIdBuilder_.getMessage(); } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } } /** *
     **
     * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes the contract's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 13; */ public Builder setStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (stakedAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stakedId_ = value; onChanged(); } else { stakedAccountIdBuilder_.setMessage(value); } stakedIdCase_ = 13; return this; } /** *
     **
     * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes the contract's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 13; */ public Builder setStakedAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (stakedAccountIdBuilder_ == null) { stakedId_ = builderForValue.build(); onChanged(); } else { stakedAccountIdBuilder_.setMessage(builderForValue.build()); } stakedIdCase_ = 13; return this; } /** *
     **
     * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes the contract's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 13; */ public Builder mergeStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (stakedAccountIdBuilder_ == null) { if (stakedIdCase_ == 13 && stakedId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { stakedId_ = com.hedera.hashgraph.sdk.proto.AccountID.newBuilder((com.hedera.hashgraph.sdk.proto.AccountID) stakedId_) .mergeFrom(value).buildPartial(); } else { stakedId_ = value; } onChanged(); } else { if (stakedIdCase_ == 13) { stakedAccountIdBuilder_.mergeFrom(value); } else { stakedAccountIdBuilder_.setMessage(value); } } stakedIdCase_ = 13; return this; } /** *
     **
     * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes the contract's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 13; */ public Builder clearStakedAccountId() { if (stakedAccountIdBuilder_ == null) { if (stakedIdCase_ == 13) { stakedIdCase_ = 0; stakedId_ = null; onChanged(); } } else { if (stakedIdCase_ == 13) { stakedIdCase_ = 0; stakedId_ = null; } stakedAccountIdBuilder_.clear(); } return this; } /** *
     **
     * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes the contract's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 13; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getStakedAccountIdBuilder() { return getStakedAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes the contract's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 13; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getStakedAccountIdOrBuilder() { if ((stakedIdCase_ == 13) && (stakedAccountIdBuilder_ != null)) { return stakedAccountIdBuilder_.getMessageOrBuilder(); } else { if (stakedIdCase_ == 13) { return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } } /** *
     **
     * ID of the new account to which this contract is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes the contract's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getStakedAccountIdFieldBuilder() { if (stakedAccountIdBuilder_ == null) { if (!(stakedIdCase_ == 13)) { stakedId_ = com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } stakedAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_, getParentForChildren(), isClean()); stakedId_ = null; } stakedIdCase_ = 13; onChanged(); return stakedAccountIdBuilder_; } /** *
     **
     * ID of the new node this contract is staked to. If set to the sentinel <tt>-1</tt>, this field
     * removes the contract's staked node ID.
     * 
* * int64 staked_node_id = 14; * @return Whether the stakedNodeId field is set. */ public boolean hasStakedNodeId() { return stakedIdCase_ == 14; } /** *
     **
     * ID of the new node this contract is staked to. If set to the sentinel <tt>-1</tt>, this field
     * removes the contract's staked node ID.
     * 
* * int64 staked_node_id = 14; * @return The stakedNodeId. */ public long getStakedNodeId() { if (stakedIdCase_ == 14) { return (java.lang.Long) stakedId_; } return 0L; } /** *
     **
     * ID of the new node this contract is staked to. If set to the sentinel <tt>-1</tt>, this field
     * removes the contract's staked node ID.
     * 
* * int64 staked_node_id = 14; * @param value The stakedNodeId to set. * @return This builder for chaining. */ public Builder setStakedNodeId(long value) { stakedIdCase_ = 14; stakedId_ = value; onChanged(); return this; } /** *
     **
     * ID of the new node this contract is staked to. If set to the sentinel <tt>-1</tt>, this field
     * removes the contract's staked node ID.
     * 
* * int64 staked_node_id = 14; * @return This builder for chaining. */ public Builder clearStakedNodeId() { if (stakedIdCase_ == 14) { stakedIdCase_ = 0; stakedId_ = null; onChanged(); } return this; } private com.google.protobuf.BoolValue declineReward_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> declineRewardBuilder_; /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; * @return Whether the declineReward field is set. */ public boolean hasDeclineReward() { return ((bitField0_ & 0x00001000) != 0); } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; * @return The declineReward. */ public com.google.protobuf.BoolValue getDeclineReward() { if (declineRewardBuilder_ == null) { return declineReward_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : declineReward_; } else { return declineRewardBuilder_.getMessage(); } } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; */ public Builder setDeclineReward(com.google.protobuf.BoolValue value) { if (declineRewardBuilder_ == null) { if (value == null) { throw new NullPointerException(); } declineReward_ = value; } else { declineRewardBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; */ public Builder setDeclineReward( com.google.protobuf.BoolValue.Builder builderForValue) { if (declineRewardBuilder_ == null) { declineReward_ = builderForValue.build(); } else { declineRewardBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; */ public Builder mergeDeclineReward(com.google.protobuf.BoolValue value) { if (declineRewardBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && declineReward_ != null && declineReward_ != com.google.protobuf.BoolValue.getDefaultInstance()) { getDeclineRewardBuilder().mergeFrom(value); } else { declineReward_ = value; } } else { declineRewardBuilder_.mergeFrom(value); } if (declineReward_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; */ public Builder clearDeclineReward() { bitField0_ = (bitField0_ & ~0x00001000); declineReward_ = null; if (declineRewardBuilder_ != null) { declineRewardBuilder_.dispose(); declineRewardBuilder_ = null; } onChanged(); return this; } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; */ public com.google.protobuf.BoolValue.Builder getDeclineRewardBuilder() { bitField0_ |= 0x00001000; onChanged(); return getDeclineRewardFieldBuilder().getBuilder(); } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; */ public com.google.protobuf.BoolValueOrBuilder getDeclineRewardOrBuilder() { if (declineRewardBuilder_ != null) { return declineRewardBuilder_.getMessageOrBuilder(); } else { return declineReward_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : declineReward_; } } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getDeclineRewardFieldBuilder() { if (declineRewardBuilder_ == null) { declineRewardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getDeclineReward(), getParentForChildren(), isClean()); declineReward_ = null; } return declineRewardBuilder_; } @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.ContractUpdateTransactionBody) } // @@protoc_insertion_point(class_scope:proto.ContractUpdateTransactionBody) private static final com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody(); } public static com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContractUpdateTransactionBody 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.ContractUpdateTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy