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

com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody Maven / Gradle / Ivy

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContractUpdateTransactionBody( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null; if (contractID_ != null) { subBuilder = contractID_.toBuilder(); } contractID_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(contractID_); contractID_ = subBuilder.buildPartial(); } break; } case 18: { com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null; if (expirationTime_ != null) { subBuilder = expirationTime_.toBuilder(); } expirationTime_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expirationTime_); expirationTime_ = subBuilder.buildPartial(); } break; } case 26: { com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null; if (adminKey_ != null) { subBuilder = adminKey_.toBuilder(); } adminKey_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(adminKey_); adminKey_ = subBuilder.buildPartial(); } break; } case 50: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (proxyAccountID_ != null) { subBuilder = proxyAccountID_.toBuilder(); } proxyAccountID_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(proxyAccountID_); proxyAccountID_ = subBuilder.buildPartial(); } break; } case 58: { com.hederahashgraph.api.proto.java.Duration.Builder subBuilder = null; if (autoRenewPeriod_ != null) { subBuilder = autoRenewPeriod_.toBuilder(); } autoRenewPeriod_ = input.readMessage(com.hederahashgraph.api.proto.java.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(autoRenewPeriod_); autoRenewPeriod_ = subBuilder.buildPartial(); } break; } case 66: { com.hederahashgraph.api.proto.java.FileID.Builder subBuilder = null; if (fileID_ != null) { subBuilder = fileID_.toBuilder(); } fileID_ = input.readMessage(com.hederahashgraph.api.proto.java.FileID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fileID_); fileID_ = subBuilder.buildPartial(); } break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); memoFieldCase_ = 9; memoField_ = s; break; } case 82: { com.google.protobuf.StringValue.Builder subBuilder = null; if (memoFieldCase_ == 10) { subBuilder = ((com.google.protobuf.StringValue) memoField_).toBuilder(); } memoField_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.protobuf.StringValue) memoField_); memoField_ = subBuilder.buildPartial(); } memoFieldCase_ = 10; break; } case 90: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (maxAutomaticTokenAssociations_ != null) { subBuilder = maxAutomaticTokenAssociations_.toBuilder(); } maxAutomaticTokenAssociations_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxAutomaticTokenAssociations_); maxAutomaticTokenAssociations_ = subBuilder.buildPartial(); } break; } case 98: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (autoRenewAccountId_ != null) { subBuilder = autoRenewAccountId_.toBuilder(); } autoRenewAccountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(autoRenewAccountId_); autoRenewAccountId_ = subBuilder.buildPartial(); } break; } case 106: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (stakedIdCase_ == 13) { subBuilder = ((com.hederahashgraph.api.proto.java.AccountID) stakedId_).toBuilder(); } stakedId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.AccountID) stakedId_); stakedId_ = subBuilder.buildPartial(); } stakedIdCase_ = 13; break; } case 112: { stakedIdCase_ = 14; stakedId_ = input.readInt64(); break; } case 122: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (declineReward_ != null) { subBuilder = declineReward_.toBuilder(); } declineReward_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(declineReward_); declineReward_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.class, com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.Builder.class); } private int memoFieldCase_ = 0; 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; 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.hederahashgraph.api.proto.java.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 contractID_ != null; } /** *
   **
   * The id of the contract to be updated
   * 
* * .proto.ContractID contractID = 1; * @return The contractID. */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractID getContractID() { return contractID_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_; } /** *
   **
   * The id of the contract to be updated
   * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { return getContractID(); } public static final int EXPIRATIONTIME_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.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 expirationTime_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.Timestamp getExpirationTime() { return expirationTime_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() { return getExpirationTime(); } public static final int ADMINKEY_FIELD_NUMBER = 3; private com.hederahashgraph.api.proto.java.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 adminKey_ != null; } /** *
   **
   * The new key to control updates to the contract
   * 
* * .proto.Key adminKey = 3; * @return The adminKey. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Key getAdminKey() { return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_; } /** *
   **
   * The new key to control updates to the contract
   * 
* * .proto.Key adminKey = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() { return getAdminKey(); } public static final int PROXYACCOUNTID_FIELD_NUMBER = 6; private com.hederahashgraph.api.proto.java.AccountID proxyAccountID_; /** *
   **
   * [Deprecated] The new id of the account to which the contract is proxy staked
   * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; * @return Whether the proxyAccountID field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasProxyAccountID() { return proxyAccountID_ != null; } /** *
   **
   * [Deprecated] The new id of the account to which the contract is proxy staked
   * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; * @return The proxyAccountID. */ @java.lang.Override @java.lang.Deprecated public com.hederahashgraph.api.proto.java.AccountID getProxyAccountID() { return proxyAccountID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getProxyAccountIDOrBuilder() { return getProxyAccountID(); } public static final int AUTORENEWPERIOD_FIELD_NUMBER = 7; private com.hederahashgraph.api.proto.java.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 autoRenewPeriod_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() { return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() { return getAutoRenewPeriod(); } public static final int FILEID_FIELD_NUMBER = 8; private com.hederahashgraph.api.proto.java.FileID fileID_; /** *
   **
   * This field is unused and will have no impact on the specified smart contract.
   * 
* * .proto.FileID fileID = 8 [deprecated = true]; * @return Whether the fileID field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasFileID() { return fileID_ != null; } /** *
   **
   * This field is unused and will have no impact on the specified smart contract.
   * 
* * .proto.FileID fileID = 8 [deprecated = true]; * @return The fileID. */ @java.lang.Override @java.lang.Deprecated public com.hederahashgraph.api.proto.java.FileID getFileID() { return fileID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { return getFileID(); } 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]; * @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]; * @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]; * @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 maxAutomaticTokenAssociations_ != null; } /** *
   **
   * 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 getMaxAutomaticTokenAssociations(); } public static final int AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER = 12; private com.hederahashgraph.api.proto.java.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 autoRenewAccountId_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.AccountID getAutoRenewAccountId() { return autoRenewAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() { return getAutoRenewAccountId(); } 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.hederahashgraph.api.proto.java.AccountID getStakedAccountId() { if (stakedIdCase_ == 13) { return (com.hederahashgraph.api.proto.java.AccountID) stakedId_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getStakedAccountIdOrBuilder() { if (stakedIdCase_ == 13) { return (com.hederahashgraph.api.proto.java.AccountID) stakedId_; } return com.hederahashgraph.api.proto.java.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 declineReward_ != null; } /** *
   **
   * 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 getDeclineReward(); } 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 (contractID_ != null) { output.writeMessage(1, getContractID()); } if (expirationTime_ != null) { output.writeMessage(2, getExpirationTime()); } if (adminKey_ != null) { output.writeMessage(3, getAdminKey()); } if (proxyAccountID_ != null) { output.writeMessage(6, getProxyAccountID()); } if (autoRenewPeriod_ != null) { output.writeMessage(7, getAutoRenewPeriod()); } if (fileID_ != null) { 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 (maxAutomaticTokenAssociations_ != null) { output.writeMessage(11, getMaxAutomaticTokenAssociations()); } if (autoRenewAccountId_ != null) { output.writeMessage(12, getAutoRenewAccountId()); } if (stakedIdCase_ == 13) { output.writeMessage(13, (com.hederahashgraph.api.proto.java.AccountID) stakedId_); } if (stakedIdCase_ == 14) { output.writeInt64( 14, (long)((java.lang.Long) stakedId_)); } if (declineReward_ != null) { output.writeMessage(15, getDeclineReward()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (contractID_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContractID()); } if (expirationTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpirationTime()); } if (adminKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAdminKey()); } if (proxyAccountID_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getProxyAccountID()); } if (autoRenewPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAutoRenewPeriod()); } if (fileID_ != null) { 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 (maxAutomaticTokenAssociations_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMaxAutomaticTokenAssociations()); } if (autoRenewAccountId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getAutoRenewAccountId()); } if (stakedIdCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.hederahashgraph.api.proto.java.AccountID) stakedId_); } if (stakedIdCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 14, (long)((java.lang.Long) stakedId_)); } if (declineReward_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getDeclineReward()); } size += unknownFields.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.hederahashgraph.api.proto.java.ContractUpdateTransactionBody)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractUpdateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractUpdateTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractUpdateTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractUpdateTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.class, com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.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) { } } @java.lang.Override public Builder clear() { super.clear(); if (contractIDBuilder_ == null) { contractID_ = null; } else { contractID_ = null; contractIDBuilder_ = null; } if (expirationTimeBuilder_ == null) { expirationTime_ = null; } else { expirationTime_ = null; expirationTimeBuilder_ = null; } if (adminKeyBuilder_ == null) { adminKey_ = null; } else { adminKey_ = null; adminKeyBuilder_ = null; } if (proxyAccountIDBuilder_ == null) { proxyAccountID_ = null; } else { proxyAccountID_ = null; proxyAccountIDBuilder_ = null; } if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = null; } else { autoRenewPeriod_ = null; autoRenewPeriodBuilder_ = null; } if (fileIDBuilder_ == null) { fileID_ = null; } else { fileID_ = null; fileIDBuilder_ = null; } if (maxAutomaticTokenAssociationsBuilder_ == null) { maxAutomaticTokenAssociations_ = null; } else { maxAutomaticTokenAssociations_ = null; maxAutomaticTokenAssociationsBuilder_ = null; } if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountId_ = null; } else { autoRenewAccountId_ = null; autoRenewAccountIdBuilder_ = null; } if (declineRewardBuilder_ == null) { declineReward_ = null; } else { declineReward_ = null; declineRewardBuilder_ = null; } memoFieldCase_ = 0; memoField_ = null; stakedIdCase_ = 0; stakedId_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody build() { com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody buildPartial() { com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody result = new com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody(this); if (contractIDBuilder_ == null) { result.contractID_ = contractID_; } else { result.contractID_ = contractIDBuilder_.build(); } if (expirationTimeBuilder_ == null) { result.expirationTime_ = expirationTime_; } else { result.expirationTime_ = expirationTimeBuilder_.build(); } if (adminKeyBuilder_ == null) { result.adminKey_ = adminKey_; } else { result.adminKey_ = adminKeyBuilder_.build(); } if (proxyAccountIDBuilder_ == null) { result.proxyAccountID_ = proxyAccountID_; } else { result.proxyAccountID_ = proxyAccountIDBuilder_.build(); } if (autoRenewPeriodBuilder_ == null) { result.autoRenewPeriod_ = autoRenewPeriod_; } else { result.autoRenewPeriod_ = autoRenewPeriodBuilder_.build(); } if (fileIDBuilder_ == null) { result.fileID_ = fileID_; } else { result.fileID_ = fileIDBuilder_.build(); } if (memoFieldCase_ == 9) { result.memoField_ = memoField_; } if (memoFieldCase_ == 10) { if (memoWrapperBuilder_ == null) { result.memoField_ = memoField_; } else { result.memoField_ = memoWrapperBuilder_.build(); } } if (maxAutomaticTokenAssociationsBuilder_ == null) { result.maxAutomaticTokenAssociations_ = maxAutomaticTokenAssociations_; } else { result.maxAutomaticTokenAssociations_ = maxAutomaticTokenAssociationsBuilder_.build(); } if (autoRenewAccountIdBuilder_ == null) { result.autoRenewAccountId_ = autoRenewAccountId_; } else { result.autoRenewAccountId_ = autoRenewAccountIdBuilder_.build(); } if (stakedIdCase_ == 13) { if (stakedAccountIdBuilder_ == null) { result.stakedId_ = stakedId_; } else { result.stakedId_ = stakedAccountIdBuilder_.build(); } } if (stakedIdCase_ == 14) { result.stakedId_ = stakedId_; } if (declineRewardBuilder_ == null) { result.declineReward_ = declineReward_; } else { result.declineReward_ = declineRewardBuilder_.build(); } result.memoFieldCase_ = memoFieldCase_; result.stakedIdCase_ = stakedIdCase_; onBuilt(); return result; } @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.hederahashgraph.api.proto.java.ContractUpdateTransactionBody) { return mergeFrom((com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody other) { if (other == com.hederahashgraph.api.proto.java.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.unknownFields); 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 { com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 com.hederahashgraph.api.proto.java.ContractID contractID_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.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 contractIDBuilder_ != null || contractID_ != null; } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; * @return The contractID. */ public com.hederahashgraph.api.proto.java.ContractID getContractID() { if (contractIDBuilder_ == null) { return contractID_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_; } else { return contractIDBuilder_.getMessage(); } } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID(com.hederahashgraph.api.proto.java.ContractID value) { if (contractIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractID_ = value; onChanged(); } else { contractIDBuilder_.setMessage(value); } return this; } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID( com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) { if (contractIDBuilder_ == null) { contractID_ = builderForValue.build(); onChanged(); } else { contractIDBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public Builder mergeContractID(com.hederahashgraph.api.proto.java.ContractID value) { if (contractIDBuilder_ == null) { if (contractID_ != null) { contractID_ = com.hederahashgraph.api.proto.java.ContractID.newBuilder(contractID_).mergeFrom(value).buildPartial(); } else { contractID_ = value; } onChanged(); } else { contractIDBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public Builder clearContractID() { if (contractIDBuilder_ == null) { contractID_ = null; onChanged(); } else { contractID_ = null; contractIDBuilder_ = null; } return this; } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() { onChanged(); return getContractIDFieldBuilder().getBuilder(); } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { if (contractIDBuilder_ != null) { return contractIDBuilder_.getMessageOrBuilder(); } else { return contractID_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_; } } /** *
     **
     * The id of the contract to be updated
     * 
* * .proto.ContractID contractID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> getContractIDFieldBuilder() { if (contractIDBuilder_ == null) { contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>( getContractID(), getParentForChildren(), isClean()); contractID_ = null; } return contractIDBuilder_; } private com.hederahashgraph.api.proto.java.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.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 expirationTimeBuilder_ != null || expirationTime_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; onChanged(); } else { expirationTimeBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); onChanged(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.Timestamp value) { if (expirationTimeBuilder_ == null) { if (expirationTime_ != null) { expirationTime_ = com.hederahashgraph.api.proto.java.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); } else { expirationTime_ = value; } onChanged(); } else { expirationTimeBuilder_.mergeFrom(value); } 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() { if (expirationTimeBuilder_ == null) { expirationTime_ = null; onChanged(); } else { expirationTime_ = null; expirationTimeBuilder_ = null; } 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.hederahashgraph.api.proto.java.Timestamp.Builder getExpirationTimeBuilder() { 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.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } private com.hederahashgraph.api.proto.java.Key adminKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.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 adminKeyBuilder_ != null || adminKey_ != null; } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; * @return The adminKey. */ public com.hederahashgraph.api.proto.java.Key getAdminKey() { if (adminKeyBuilder_ == null) { return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_; } else { return adminKeyBuilder_.getMessage(); } } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public Builder setAdminKey(com.hederahashgraph.api.proto.java.Key value) { if (adminKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminKey_ = value; onChanged(); } else { adminKeyBuilder_.setMessage(value); } return this; } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public Builder setAdminKey( com.hederahashgraph.api.proto.java.Key.Builder builderForValue) { if (adminKeyBuilder_ == null) { adminKey_ = builderForValue.build(); onChanged(); } else { adminKeyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public Builder mergeAdminKey(com.hederahashgraph.api.proto.java.Key value) { if (adminKeyBuilder_ == null) { if (adminKey_ != null) { adminKey_ = com.hederahashgraph.api.proto.java.Key.newBuilder(adminKey_).mergeFrom(value).buildPartial(); } else { adminKey_ = value; } onChanged(); } else { adminKeyBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public Builder clearAdminKey() { if (adminKeyBuilder_ == null) { adminKey_ = null; onChanged(); } else { adminKey_ = null; adminKeyBuilder_ = null; } return this; } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() { onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() { if (adminKeyBuilder_ != null) { return adminKeyBuilder_.getMessageOrBuilder(); } else { return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_; } } /** *
     **
     * The new key to control updates to the contract
     * 
* * .proto.Key adminKey = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> getAdminKeyFieldBuilder() { if (adminKeyBuilder_ == null) { adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>( getAdminKey(), getParentForChildren(), isClean()); adminKey_ = null; } return adminKeyBuilder_; } private com.hederahashgraph.api.proto.java.AccountID proxyAccountID_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> proxyAccountIDBuilder_; /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; * @return Whether the proxyAccountID field is set. */ @java.lang.Deprecated public boolean hasProxyAccountID() { return proxyAccountIDBuilder_ != null || proxyAccountID_ != null; } /** *
     **
     * [Deprecated] The new id of the account to which the contract is proxy staked
     * 
* * .proto.AccountID proxyAccountID = 6 [deprecated = true]; * @return The proxyAccountID. */ @java.lang.Deprecated public com.hederahashgraph.api.proto.java.AccountID getProxyAccountID() { if (proxyAccountIDBuilder_ == null) { return proxyAccountID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) { if (proxyAccountIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } proxyAccountID_ = value; onChanged(); } else { proxyAccountIDBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (proxyAccountIDBuilder_ == null) { proxyAccountID_ = builderForValue.build(); onChanged(); } else { proxyAccountIDBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.AccountID value) { if (proxyAccountIDBuilder_ == null) { if (proxyAccountID_ != null) { proxyAccountID_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(proxyAccountID_).mergeFrom(value).buildPartial(); } else { proxyAccountID_ = value; } onChanged(); } else { proxyAccountIDBuilder_.mergeFrom(value); } 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() { if (proxyAccountIDBuilder_ == null) { proxyAccountID_ = null; onChanged(); } else { proxyAccountID_ = null; proxyAccountIDBuilder_ = null; } 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.hederahashgraph.api.proto.java.AccountID.Builder getProxyAccountIDBuilder() { 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.hederahashgraph.api.proto.java.AccountIDOrBuilder getProxyAccountIDOrBuilder() { if (proxyAccountIDBuilder_ != null) { return proxyAccountIDBuilder_.getMessageOrBuilder(); } else { return proxyAccountID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getProxyAccountIDFieldBuilder() { if (proxyAccountIDBuilder_ == null) { proxyAccountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( getProxyAccountID(), getParentForChildren(), isClean()); proxyAccountID_ = null; } return proxyAccountIDBuilder_; } private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.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 autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() { if (autoRenewPeriodBuilder_ == null) { return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Duration value) { if (autoRenewPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewPeriod_ = value; onChanged(); } else { autoRenewPeriodBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.Duration.Builder builderForValue) { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = builderForValue.build(); onChanged(); } else { autoRenewPeriodBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.Duration value) { if (autoRenewPeriodBuilder_ == null) { if (autoRenewPeriod_ != null) { autoRenewPeriod_ = com.hederahashgraph.api.proto.java.Duration.newBuilder(autoRenewPeriod_).mergeFrom(value).buildPartial(); } else { autoRenewPeriod_ = value; } onChanged(); } else { autoRenewPeriodBuilder_.mergeFrom(value); } 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() { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = null; onChanged(); } else { autoRenewPeriod_ = null; autoRenewPeriodBuilder_ = null; } 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.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() { 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.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() { if (autoRenewPeriodBuilder_ != null) { return autoRenewPeriodBuilder_.getMessageOrBuilder(); } else { return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder> getAutoRenewPeriodFieldBuilder() { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder>( getAutoRenewPeriod(), getParentForChildren(), isClean()); autoRenewPeriod_ = null; } return autoRenewPeriodBuilder_; } private com.hederahashgraph.api.proto.java.FileID fileID_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> fileIDBuilder_; /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; * @return Whether the fileID field is set. */ @java.lang.Deprecated public boolean hasFileID() { return fileIDBuilder_ != null || fileID_ != null; } /** *
     **
     * This field is unused and will have no impact on the specified smart contract.
     * 
* * .proto.FileID fileID = 8 [deprecated = true]; * @return The fileID. */ @java.lang.Deprecated public com.hederahashgraph.api.proto.java.FileID getFileID() { if (fileIDBuilder_ == null) { return fileID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileID value) { if (fileIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileID_ = value; onChanged(); } else { fileIDBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.FileID.Builder builderForValue) { if (fileIDBuilder_ == null) { fileID_ = builderForValue.build(); onChanged(); } else { fileIDBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.FileID value) { if (fileIDBuilder_ == null) { if (fileID_ != null) { fileID_ = com.hederahashgraph.api.proto.java.FileID.newBuilder(fileID_).mergeFrom(value).buildPartial(); } else { fileID_ = value; } onChanged(); } else { fileIDBuilder_.mergeFrom(value); } 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() { if (fileIDBuilder_ == null) { fileID_ = null; onChanged(); } else { fileID_ = null; fileIDBuilder_ = null; } 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.hederahashgraph.api.proto.java.FileID.Builder getFileIDBuilder() { 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.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { if (fileIDBuilder_ != null) { return fileIDBuilder_.getMessageOrBuilder(); } else { return fileID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> getFileIDFieldBuilder() { if (fileIDBuilder_ == null) { fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.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]; * @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]; * @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]; * @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]; * @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]; * @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]; * @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); } 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 maxAutomaticTokenAssociationsBuilder_ != null || maxAutomaticTokenAssociations_ != null; } /** *
     **
     * 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; onChanged(); } else { maxAutomaticTokenAssociationsBuilder_.setMessage(value); } 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(); onChanged(); } else { maxAutomaticTokenAssociationsBuilder_.setMessage(builderForValue.build()); } 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 (maxAutomaticTokenAssociations_ != null) { maxAutomaticTokenAssociations_ = com.google.protobuf.Int32Value.newBuilder(maxAutomaticTokenAssociations_).mergeFrom(value).buildPartial(); } else { maxAutomaticTokenAssociations_ = value; } onChanged(); } else { maxAutomaticTokenAssociationsBuilder_.mergeFrom(value); } 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() { if (maxAutomaticTokenAssociationsBuilder_ == null) { maxAutomaticTokenAssociations_ = null; onChanged(); } else { maxAutomaticTokenAssociations_ = null; maxAutomaticTokenAssociationsBuilder_ = null; } 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() { 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.hederahashgraph.api.proto.java.AccountID autoRenewAccountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 autoRenewAccountIdBuilder_ != null || autoRenewAccountId_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.AccountID getAutoRenewAccountId() { if (autoRenewAccountIdBuilder_ == null) { return autoRenewAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) { if (autoRenewAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewAccountId_ = value; onChanged(); } else { autoRenewAccountIdBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountId_ = builderForValue.build(); onChanged(); } else { autoRenewAccountIdBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.AccountID value) { if (autoRenewAccountIdBuilder_ == null) { if (autoRenewAccountId_ != null) { autoRenewAccountId_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(autoRenewAccountId_).mergeFrom(value).buildPartial(); } else { autoRenewAccountId_ = value; } onChanged(); } else { autoRenewAccountIdBuilder_.mergeFrom(value); } 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() { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountId_ = null; onChanged(); } else { autoRenewAccountId_ = null; autoRenewAccountIdBuilder_ = null; } 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.hederahashgraph.api.proto.java.AccountID.Builder getAutoRenewAccountIdBuilder() { 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.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() { if (autoRenewAccountIdBuilder_ != null) { return autoRenewAccountIdBuilder_.getMessageOrBuilder(); } else { return autoRenewAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getAutoRenewAccountIdFieldBuilder() { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( getAutoRenewAccountId(), getParentForChildren(), isClean()); autoRenewAccountId_ = null; } return autoRenewAccountIdBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID getStakedAccountId() { if (stakedAccountIdBuilder_ == null) { if (stakedIdCase_ == 13) { return (com.hederahashgraph.api.proto.java.AccountID) stakedId_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } else { if (stakedIdCase_ == 13) { return stakedAccountIdBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) { if (stakedAccountIdBuilder_ == null) { if (stakedIdCase_ == 13 && stakedId_ != com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance()) { stakedId_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder((com.hederahashgraph.api.proto.java.AccountID) stakedId_) .mergeFrom(value).buildPartial(); } else { stakedId_ = value; } onChanged(); } else { if (stakedIdCase_ == 13) { stakedAccountIdBuilder_.mergeFrom(value); } 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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getStakedAccountIdOrBuilder() { if ((stakedIdCase_ == 13) && (stakedAccountIdBuilder_ != null)) { return stakedAccountIdBuilder_.getMessageOrBuilder(); } else { if (stakedIdCase_ == 13) { return (com.hederahashgraph.api.proto.java.AccountID) stakedId_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getStakedAccountIdFieldBuilder() { if (stakedAccountIdBuilder_ == null) { if (!(stakedIdCase_ == 13)) { stakedId_ = com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } stakedAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( (com.hederahashgraph.api.proto.java.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 declineRewardBuilder_ != null || declineReward_ != null; } /** *
     **
     * 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; onChanged(); } else { declineRewardBuilder_.setMessage(value); } 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(); onChanged(); } else { declineRewardBuilder_.setMessage(builderForValue.build()); } 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 (declineReward_ != null) { declineReward_ = com.google.protobuf.BoolValue.newBuilder(declineReward_).mergeFrom(value).buildPartial(); } else { declineReward_ = value; } onChanged(); } else { declineRewardBuilder_.mergeFrom(value); } return this; } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; */ public Builder clearDeclineReward() { if (declineRewardBuilder_ == null) { declineReward_ = null; onChanged(); } else { declineReward_ = null; declineRewardBuilder_ = null; } return this; } /** *
     **
     * If true, the contract declines receiving a staking reward.
     * 
* * .google.protobuf.BoolValue decline_reward = 15; */ public com.google.protobuf.BoolValue.Builder getDeclineRewardBuilder() { 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.hederahashgraph.api.proto.java.ContractUpdateTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody(); } public static com.hederahashgraph.api.proto.java.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 { return new ContractUpdateTransactionBody(input, extensionRegistry); } }; 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.hederahashgraph.api.proto.java.ContractUpdateTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy