Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ContractUpdateTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ContractUpdateTransactionBody,ContractUpdateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ContractUpdateTransactionBody,ContractUpdateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ContractUpdateTransactionBodyOrBuilder,Cloneable
- Enclosing class:
ContractUpdateTransactionBody
public static final class ContractUpdateTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ContractUpdateTransactionBody,ContractUpdateTransactionBody.Builder>
implements ContractUpdateTransactionBodyOrBuilder
* Modify the current state of a smart contract. ### Requirements - The `adminKey` MUST sign all contract update transactions except one that only updates the `expirationTime`. - A transaction that modifies any field other than `expirationTime` for a contract without a valid `adminKey` set SHALL fail with response code `MODIFYING_IMMUTABLE_CONTRACT`. - Fields set to non-default values in this transaction SHALL be updated on success. Fields not set to non-default values SHALL NOT be updated on success. ### Block Stream Effects NoneProtobuf type
proto.ContractUpdateTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllHookCreationDetails(Iterable<? extends HookCreationDetails> values) * The hooks to create for the contract.addAllHookIdsToDelete(Iterable<? extends Long> values) * The ids the hooks to delete from the contract.addHookCreationDetails(int index, HookCreationDetails value) * The hooks to create for the contract.addHookCreationDetails(int index, HookCreationDetails.Builder builderForValue) * The hooks to create for the contract.* The hooks to create for the contract.addHookCreationDetails(HookCreationDetails.Builder builderForValue) * The hooks to create for the contract.addHookIdsToDelete(long value) * The ids the hooks to delete from the contract.* If set, modify the key that authorizes updates to the contract.* If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time.* If set, modify the duration added to expiration time by each auto-renewal to this value.* The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).* A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network.* If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract.Deprecated.* The hooks to create for the contract.* The ids the hooks to delete from the contract.* If set, modify the maximum number of tokens that can be auto-associated with the contract.Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated.* If set, modify the short memo for this smart contract.Deprecated.* An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account.* A node identifier.<br/> A staked node identifier indicates the consensus node that this account nominates for staking.* If set, modify the key that authorizes updates to the contract.* If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time.* If set, modify the duration added to expiration time by each auto-renewal to this value.* The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).com.google.protobuf.BoolValue* A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network.* If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract.Deprecated.getHookCreationDetails(int index) * The hooks to create for the contract.int* The hooks to create for the contract.* The hooks to create for the contract.longgetHookIdsToDelete(int index) * The ids the hooks to delete from the contract.int* The ids the hooks to delete from the contract.* The ids the hooks to delete from the contract.com.google.protobuf.Int32Value* If set, modify the maximum number of tokens that can be auto-associated with the contract.getMemo()Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated.com.google.protobuf.ByteStringDeprecated.proto.ContractUpdateTransactionBody.memo is deprecated.com.google.protobuf.StringValue* If set, modify the short memo for this smart contract.Deprecated.* An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account.long* A node identifier.<br/> A staked node identifier indicates the consensus node that this account nominates for staking.boolean* If set, modify the key that authorizes updates to the contract.boolean* If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time.boolean* If set, modify the duration added to expiration time by each auto-renewal to this value.boolean* The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).boolean* A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network.boolean* If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract.booleanDeprecated.boolean* If set, modify the maximum number of tokens that can be auto-associated with the contract.booleanhasMemo()Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated.boolean* If set, modify the short memo for this smart contract.booleanDeprecated.boolean* An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account.boolean* A node identifier.<br/> A staked node identifier indicates the consensus node that this account nominates for staking.mergeAdminKey(Key value) * If set, modify the key that authorizes updates to the contract.mergeAutoRenewAccountId(AccountID value) * If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time.mergeAutoRenewPeriod(Duration value) * If set, modify the duration added to expiration time by each auto-renewal to this value.mergeContractID(ContractID value) * The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).mergeDeclineReward(com.google.protobuf.BoolValue value) * A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network.mergeExpirationTime(Timestamp value) * If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract.mergeFileID(FileID value) Deprecated.mergeMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value value) * If set, modify the maximum number of tokens that can be auto-associated with the contract.mergeMemoWrapper(com.google.protobuf.StringValue value) * If set, modify the short memo for this smart contract.mergeProxyAccountID(AccountID value) Deprecated.mergeStakedAccountId(AccountID value) * An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account.removeHookCreationDetails(int index) * The hooks to create for the contract.setAdminKey(Key value) * If set, modify the key that authorizes updates to the contract.setAdminKey(Key.Builder builderForValue) * If set, modify the key that authorizes updates to the contract.setAutoRenewAccountId(AccountID value) * If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time.setAutoRenewAccountId(AccountID.Builder builderForValue) * If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time.setAutoRenewPeriod(Duration value) * If set, modify the duration added to expiration time by each auto-renewal to this value.setAutoRenewPeriod(Duration.Builder builderForValue) * If set, modify the duration added to expiration time by each auto-renewal to this value.setContractID(ContractID value) * The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).setContractID(ContractID.Builder builderForValue) * The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).setDeclineReward(com.google.protobuf.BoolValue value) * A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network.setDeclineReward(com.google.protobuf.BoolValue.Builder builderForValue) * A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network.setExpirationTime(Timestamp value) * If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract.setExpirationTime(Timestamp.Builder builderForValue) * If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract.Deprecated.setFileID(FileID.Builder builderForValue) Deprecated.setHookCreationDetails(int index, HookCreationDetails value) * The hooks to create for the contract.setHookCreationDetails(int index, HookCreationDetails.Builder builderForValue) * The hooks to create for the contract.setHookIdsToDelete(int index, long value) * The ids the hooks to delete from the contract.setMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value value) * If set, modify the maximum number of tokens that can be auto-associated with the contract.setMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value.Builder builderForValue) * If set, modify the maximum number of tokens that can be auto-associated with the contract.Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated.setMemoBytes(com.google.protobuf.ByteString value) Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated.setMemoWrapper(com.google.protobuf.StringValue value) * If set, modify the short memo for this smart contract.setMemoWrapper(com.google.protobuf.StringValue.Builder builderForValue) * If set, modify the short memo for this smart contract.setProxyAccountID(AccountID value) Deprecated.setProxyAccountID(AccountID.Builder builderForValue) Deprecated.setStakedAccountId(AccountID value) * An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account.setStakedAccountId(AccountID.Builder builderForValue) * An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account.setStakedNodeId(long value) * A node identifier.<br/> A staked node identifier indicates the consensus node that this account nominates for staking.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getMemoFieldCase
- Specified by:
getMemoFieldCasein interfaceContractUpdateTransactionBodyOrBuilder
-
clearMemoField
-
getStakedIdCase
- Specified by:
getStakedIdCasein interfaceContractUpdateTransactionBodyOrBuilder
-
clearStakedId
-
hasContractID
public boolean hasContractID()* The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).
.proto.ContractID contractID = 1;- Specified by:
hasContractIDin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the contractID field is set.
-
getContractID
* The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).
.proto.ContractID contractID = 1;- Specified by:
getContractIDin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The contractID.
-
setContractID
* The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).
.proto.ContractID contractID = 1; -
setContractID
* The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).
.proto.ContractID contractID = 1; -
mergeContractID
* The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).
.proto.ContractID contractID = 1; -
clearContractID
* The contact ID that identifies the smart contract to be updated.<br/> This field MUST be set, and MUST NOT be a default ID (`0.0.0`).
.proto.ContractID contractID = 1; -
hasExpirationTime
public boolean hasExpirationTime()* If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract. A transaction to update this field is how that rent payment is made. <p> This value MUST NOT be less than the current `expirationTime` of the contract. If this value is earlier than the current value, the transaction SHALL fail with response code `EXPIRATION_REDUCTION_NOT_ALLOWED`.
.proto.Timestamp expirationTime = 2;- Specified by:
hasExpirationTimein interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
* If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract. A transaction to update this field is how that rent payment is made. <p> This value MUST NOT be less than the current `expirationTime` of the contract. If this value is earlier than the current value, the transaction SHALL fail with response code `EXPIRATION_REDUCTION_NOT_ALLOWED`.
.proto.Timestamp expirationTime = 2;- Specified by:
getExpirationTimein interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The expirationTime.
-
setExpirationTime
* If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract. A transaction to update this field is how that rent payment is made. <p> This value MUST NOT be less than the current `expirationTime` of the contract. If this value is earlier than the current value, the transaction SHALL fail with response code `EXPIRATION_REDUCTION_NOT_ALLOWED`.
.proto.Timestamp expirationTime = 2; -
setExpirationTime
* If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract. A transaction to update this field is how that rent payment is made. <p> This value MUST NOT be less than the current `expirationTime` of the contract. If this value is earlier than the current value, the transaction SHALL fail with response code `EXPIRATION_REDUCTION_NOT_ALLOWED`.
.proto.Timestamp expirationTime = 2; -
mergeExpirationTime
* If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract. A transaction to update this field is how that rent payment is made. <p> This value MUST NOT be less than the current `expirationTime` of the contract. If this value is earlier than the current value, the transaction SHALL fail with response code `EXPIRATION_REDUCTION_NOT_ALLOWED`.
.proto.Timestamp expirationTime = 2; -
clearExpirationTime
* If set, modify the time at which this contract will expire.<br/> An expired contract requires a rent payment to "renew" the contract. A transaction to update this field is how that rent payment is made. <p> This value MUST NOT be less than the current `expirationTime` of the contract. If this value is earlier than the current value, the transaction SHALL fail with response code `EXPIRATION_REDUCTION_NOT_ALLOWED`.
.proto.Timestamp expirationTime = 2; -
hasAdminKey
public boolean hasAdminKey()* If set, modify the key that authorizes updates to the contract. <p> If this field is set to a valid Key, this key and the previously set key MUST both sign this transaction.<br/> If this value is an empty `KeyList`, the prior key MUST sign this transaction, and the smart contract SHALL be immutable after this transaction completes, except for expiration and renewal.<br/> If this value is not an empty `KeyList`, but does not contain any cryptographic keys, or is otherwise malformed, this transaction SHALL fail with response code `INVALID_ADMIN_KEY`.
.proto.Key adminKey = 3;- Specified by:
hasAdminKeyin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the adminKey field is set.
-
getAdminKey
* If set, modify the key that authorizes updates to the contract. <p> If this field is set to a valid Key, this key and the previously set key MUST both sign this transaction.<br/> If this value is an empty `KeyList`, the prior key MUST sign this transaction, and the smart contract SHALL be immutable after this transaction completes, except for expiration and renewal.<br/> If this value is not an empty `KeyList`, but does not contain any cryptographic keys, or is otherwise malformed, this transaction SHALL fail with response code `INVALID_ADMIN_KEY`.
.proto.Key adminKey = 3;- Specified by:
getAdminKeyin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The adminKey.
-
setAdminKey
* If set, modify the key that authorizes updates to the contract. <p> If this field is set to a valid Key, this key and the previously set key MUST both sign this transaction.<br/> If this value is an empty `KeyList`, the prior key MUST sign this transaction, and the smart contract SHALL be immutable after this transaction completes, except for expiration and renewal.<br/> If this value is not an empty `KeyList`, but does not contain any cryptographic keys, or is otherwise malformed, this transaction SHALL fail with response code `INVALID_ADMIN_KEY`.
.proto.Key adminKey = 3; -
setAdminKey
* If set, modify the key that authorizes updates to the contract. <p> If this field is set to a valid Key, this key and the previously set key MUST both sign this transaction.<br/> If this value is an empty `KeyList`, the prior key MUST sign this transaction, and the smart contract SHALL be immutable after this transaction completes, except for expiration and renewal.<br/> If this value is not an empty `KeyList`, but does not contain any cryptographic keys, or is otherwise malformed, this transaction SHALL fail with response code `INVALID_ADMIN_KEY`.
.proto.Key adminKey = 3; -
mergeAdminKey
* If set, modify the key that authorizes updates to the contract. <p> If this field is set to a valid Key, this key and the previously set key MUST both sign this transaction.<br/> If this value is an empty `KeyList`, the prior key MUST sign this transaction, and the smart contract SHALL be immutable after this transaction completes, except for expiration and renewal.<br/> If this value is not an empty `KeyList`, but does not contain any cryptographic keys, or is otherwise malformed, this transaction SHALL fail with response code `INVALID_ADMIN_KEY`.
.proto.Key adminKey = 3; -
clearAdminKey
* If set, modify the key that authorizes updates to the contract. <p> If this field is set to a valid Key, this key and the previously set key MUST both sign this transaction.<br/> If this value is an empty `KeyList`, the prior key MUST sign this transaction, and the smart contract SHALL be immutable after this transaction completes, except for expiration and renewal.<br/> If this value is not an empty `KeyList`, but does not contain any cryptographic keys, or is otherwise malformed, this transaction SHALL fail with response code `INVALID_ADMIN_KEY`.
.proto.Key adminKey = 3; -
hasProxyAccountID
Deprecated.* Replaced with `staked_id` alternatives. This field is unused and SHALL NOT modify the contract state.<br/> The id of an account to which the contract is proxy staked
.proto.AccountID proxyAccountID = 6 [deprecated = true];- Specified by:
hasProxyAccountIDin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the proxyAccountID field is set.
-
getProxyAccountID
Deprecated.* Replaced with `staked_id` alternatives. This field is unused and SHALL NOT modify the contract state.<br/> The id of an account to which the contract is proxy staked
.proto.AccountID proxyAccountID = 6 [deprecated = true];- Specified by:
getProxyAccountIDin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The proxyAccountID.
-
setProxyAccountID
Deprecated.* Replaced with `staked_id` alternatives. This field is unused and SHALL NOT modify the contract state.<br/> The id of an account to which the contract is proxy staked
.proto.AccountID proxyAccountID = 6 [deprecated = true]; -
setProxyAccountID
@Deprecated public ContractUpdateTransactionBody.Builder setProxyAccountID(AccountID.Builder builderForValue) Deprecated.* Replaced with `staked_id` alternatives. This field is unused and SHALL NOT modify the contract state.<br/> The id of an account to which the contract is proxy staked
.proto.AccountID proxyAccountID = 6 [deprecated = true]; -
mergeProxyAccountID
Deprecated.* Replaced with `staked_id` alternatives. This field is unused and SHALL NOT modify the contract state.<br/> The id of an account to which the contract is proxy staked
.proto.AccountID proxyAccountID = 6 [deprecated = true]; -
clearProxyAccountID
Deprecated.* Replaced with `staked_id` alternatives. This field is unused and SHALL NOT modify the contract state.<br/> The id of an account to which the contract is proxy staked
.proto.AccountID proxyAccountID = 6 [deprecated = true]; -
hasAutoRenewPeriod
public boolean hasAutoRenewPeriod()* If set, modify the duration added to expiration time by each auto-renewal to this value.
.proto.Duration autoRenewPeriod = 7;- Specified by:
hasAutoRenewPeriodin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the autoRenewPeriod field is set.
-
getAutoRenewPeriod
* If set, modify the duration added to expiration time by each auto-renewal to this value.
.proto.Duration autoRenewPeriod = 7;- Specified by:
getAutoRenewPeriodin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The autoRenewPeriod.
-
setAutoRenewPeriod
* If set, modify the duration added to expiration time by each auto-renewal to this value.
.proto.Duration autoRenewPeriod = 7; -
setAutoRenewPeriod
* If set, modify the duration added to expiration time by each auto-renewal to this value.
.proto.Duration autoRenewPeriod = 7; -
mergeAutoRenewPeriod
* If set, modify the duration added to expiration time by each auto-renewal to this value.
.proto.Duration autoRenewPeriod = 7; -
clearAutoRenewPeriod
* If set, modify the duration added to expiration time by each auto-renewal to this value.
.proto.Duration autoRenewPeriod = 7; -
hasFileID
Deprecated.* This field is unused and SHALL NOT modify the contract state.<br/> Previously, an ID of a file containing the bytecode of the Solidity transaction that created this contract.
.proto.FileID fileID = 8 [deprecated = true];- Specified by:
hasFileIDin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the fileID field is set.
-
getFileID
Deprecated.* This field is unused and SHALL NOT modify the contract state.<br/> Previously, an ID of a file containing the bytecode of the Solidity transaction that created this contract.
.proto.FileID fileID = 8 [deprecated = true];- Specified by:
getFileIDin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The fileID.
-
setFileID
Deprecated.* This field is unused and SHALL NOT modify the contract state.<br/> Previously, an ID of a file containing the bytecode of the Solidity transaction that created this contract.
.proto.FileID fileID = 8 [deprecated = true]; -
setFileID
Deprecated.* This field is unused and SHALL NOT modify the contract state.<br/> Previously, an ID of a file containing the bytecode of the Solidity transaction that created this contract.
.proto.FileID fileID = 8 [deprecated = true]; -
mergeFileID
Deprecated.* This field is unused and SHALL NOT modify the contract state.<br/> Previously, an ID of a file containing the bytecode of the Solidity transaction that created this contract.
.proto.FileID fileID = 8 [deprecated = true]; -
clearFileID
Deprecated.* This field is unused and SHALL NOT modify the contract state.<br/> Previously, an ID of a file containing the bytecode of the Solidity transaction that created this contract.
.proto.FileID fileID = 8 [deprecated = true]; -
hasMemo
Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated. See contract_update.proto;l=103* This value could not accurately distinguish unset or deliberately empty. memoWrapper should be used instead.<br/>
string memo = 9 [deprecated = true];- Specified by:
hasMemoin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the memo field is set.
-
getMemo
Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated. See contract_update.proto;l=103* This value could not accurately distinguish unset or deliberately empty. memoWrapper should be used instead.<br/>
string memo = 9 [deprecated = true];- Specified by:
getMemoin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The memo.
-
getMemoBytes
Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated. See contract_update.proto;l=103* This value could not accurately distinguish unset or deliberately empty. memoWrapper should be used instead.<br/>
string memo = 9 [deprecated = true];- Specified by:
getMemoBytesin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The bytes for memo.
-
setMemo
Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated. See contract_update.proto;l=103* This value could not accurately distinguish unset or deliberately empty. memoWrapper should be used instead.<br/>
string memo = 9 [deprecated = true];- Parameters:
value- The memo to set.- Returns:
- This builder for chaining.
-
clearMemo
Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated. See contract_update.proto;l=103* This value could not accurately distinguish unset or deliberately empty. memoWrapper should be used instead.<br/>
string memo = 9 [deprecated = true];- Returns:
- This builder for chaining.
-
setMemoBytes
@Deprecated public ContractUpdateTransactionBody.Builder setMemoBytes(com.google.protobuf.ByteString value) Deprecated.proto.ContractUpdateTransactionBody.memo is deprecated. See contract_update.proto;l=103* This value could not accurately distinguish unset or deliberately empty. memoWrapper should be used instead.<br/>
string memo = 9 [deprecated = true];- Parameters:
value- The bytes for memo to set.- Returns:
- This builder for chaining.
-
hasMemoWrapper
public boolean hasMemoWrapper()* If set, modify the short memo for this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
.google.protobuf.StringValue memoWrapper = 10;- Specified by:
hasMemoWrapperin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the memoWrapper field is set.
-
getMemoWrapper
public com.google.protobuf.StringValue getMemoWrapper()* If set, modify the short memo for this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
.google.protobuf.StringValue memoWrapper = 10;- Specified by:
getMemoWrapperin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The memoWrapper.
-
setMemoWrapper
* If set, modify the short memo for this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
.google.protobuf.StringValue memoWrapper = 10; -
setMemoWrapper
public ContractUpdateTransactionBody.Builder setMemoWrapper(com.google.protobuf.StringValue.Builder builderForValue) * If set, modify the short memo for this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
.google.protobuf.StringValue memoWrapper = 10; -
mergeMemoWrapper
public ContractUpdateTransactionBody.Builder mergeMemoWrapper(com.google.protobuf.StringValue value) * If set, modify the short memo for this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
.google.protobuf.StringValue memoWrapper = 10; -
clearMemoWrapper
* If set, modify the short memo for this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
.google.protobuf.StringValue memoWrapper = 10; -
hasMaxAutomaticTokenAssociations
public boolean hasMaxAutomaticTokenAssociations()* If set, modify the maximum number of tokens that can be auto-associated with the contract. <p> 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;- Specified by:
hasMaxAutomaticTokenAssociationsin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the maxAutomaticTokenAssociations field is set.
-
getMaxAutomaticTokenAssociations
public com.google.protobuf.Int32Value getMaxAutomaticTokenAssociations()* If set, modify the maximum number of tokens that can be auto-associated with the contract. <p> 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;- Specified by:
getMaxAutomaticTokenAssociationsin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The maxAutomaticTokenAssociations.
-
setMaxAutomaticTokenAssociations
public ContractUpdateTransactionBody.Builder setMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value value) * If set, modify the maximum number of tokens that can be auto-associated with the contract. <p> 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; -
setMaxAutomaticTokenAssociations
public ContractUpdateTransactionBody.Builder setMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value.Builder builderForValue) * If set, modify the maximum number of tokens that can be auto-associated with the contract. <p> 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; -
mergeMaxAutomaticTokenAssociations
public ContractUpdateTransactionBody.Builder mergeMaxAutomaticTokenAssociations(com.google.protobuf.Int32Value value) * If set, modify the maximum number of tokens that can be auto-associated with the contract. <p> 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; -
clearMaxAutomaticTokenAssociations
* If set, modify the maximum number of tokens that can be auto-associated with the contract. <p> 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; -
hasAutoRenewAccountId
public boolean hasAutoRenewAccountId()* If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time. <p> If this field is set to a non-default value, that Account MUST sign this transaction.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `auto_renew_account_id` value SHALL be removed on success.
.proto.AccountID auto_renew_account_id = 12;- Specified by:
hasAutoRenewAccountIdin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the autoRenewAccountId field is set.
-
getAutoRenewAccountId
* If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time. <p> If this field is set to a non-default value, that Account MUST sign this transaction.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `auto_renew_account_id` value SHALL be removed on success.
.proto.AccountID auto_renew_account_id = 12;- Specified by:
getAutoRenewAccountIdin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The autoRenewAccountId.
-
setAutoRenewAccountId
* If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time. <p> If this field is set to a non-default value, that Account MUST sign this transaction.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `auto_renew_account_id` value SHALL be removed on success.
.proto.AccountID auto_renew_account_id = 12; -
setAutoRenewAccountId
public ContractUpdateTransactionBody.Builder setAutoRenewAccountId(AccountID.Builder builderForValue) * If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time. <p> If this field is set to a non-default value, that Account MUST sign this transaction.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `auto_renew_account_id` value SHALL be removed on success.
.proto.AccountID auto_renew_account_id = 12; -
mergeAutoRenewAccountId
* If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time. <p> If this field is set to a non-default value, that Account MUST sign this transaction.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `auto_renew_account_id` value SHALL be removed on success.
.proto.AccountID auto_renew_account_id = 12; -
clearAutoRenewAccountId
* If set, modify the account, in the same shard and realm as this smart contract, that has agreed to allow the network to use its balance, when needed, to automatically extend this contract's expiration time. <p> If this field is set to a non-default value, that Account MUST sign this transaction.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `auto_renew_account_id` value SHALL be removed on success.
.proto.AccountID auto_renew_account_id = 12; -
hasStakedAccountId
public boolean hasStakedAccountId()* An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account. <p> If set, modify this smart contract such that it SHALL stake its HBAR to the same node as the identified account.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `staked_account_id` value SHALL be removed on success.
.proto.AccountID staked_account_id = 13;- Specified by:
hasStakedAccountIdin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the stakedAccountId field is set.
-
getStakedAccountId
* An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account. <p> If set, modify this smart contract such that it SHALL stake its HBAR to the same node as the identified account.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `staked_account_id` value SHALL be removed on success.
.proto.AccountID staked_account_id = 13;- Specified by:
getStakedAccountIdin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The stakedAccountId.
-
setStakedAccountId
* An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account. <p> If set, modify this smart contract such that it SHALL stake its HBAR to the same node as the identified account.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `staked_account_id` value SHALL be removed on success.
.proto.AccountID staked_account_id = 13; -
setStakedAccountId
* An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account. <p> If set, modify this smart contract such that it SHALL stake its HBAR to the same node as the identified account.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `staked_account_id` value SHALL be removed on success.
.proto.AccountID staked_account_id = 13; -
mergeStakedAccountId
* An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account. <p> If set, modify this smart contract such that it SHALL stake its HBAR to the same node as the identified account.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `staked_account_id` value SHALL be removed on success.
.proto.AccountID staked_account_id = 13; -
clearStakedAccountId
* An account identifier.<br/> A staked account acts as a proxy, and this contract effectively nominates the same node as the identified account. <p> If set, modify this smart contract such that it SHALL stake its HBAR to the same node as the identified account.<br/> If this field is set to a default AccountID value (`0.0.0`), any pre-existing `staked_account_id` value SHALL be removed on success.
.proto.AccountID staked_account_id = 13; -
hasStakedNodeId
public boolean hasStakedNodeId()* A node identifier.<br/> A staked node identifier indicates the consensus node that this account nominates for staking. <p> If set, modify this smart contract such that it SHALL stake its HBAR to this node. If set to a the value `-1` any pre-existing `staked_node_id` value SHALL be removed on success. <p> <blockquote>Note: node IDs do fluctuate as node operators change. Most contracts are immutable, and a contract staking to an invalid node ID SHALL NOT participate in staking. Immutable contracts may find it more reliable to use a proxy account for staking (via `staked_account_id`) to enable updating the _effective_ staking node ID when necessary through updating the proxy account.</blockquote>
int64 staked_node_id = 14;- Specified by:
hasStakedNodeIdin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the stakedNodeId field is set.
-
getStakedNodeId
public long getStakedNodeId()* A node identifier.<br/> A staked node identifier indicates the consensus node that this account nominates for staking. <p> If set, modify this smart contract such that it SHALL stake its HBAR to this node. If set to a the value `-1` any pre-existing `staked_node_id` value SHALL be removed on success. <p> <blockquote>Note: node IDs do fluctuate as node operators change. Most contracts are immutable, and a contract staking to an invalid node ID SHALL NOT participate in staking. Immutable contracts may find it more reliable to use a proxy account for staking (via `staked_account_id`) to enable updating the _effective_ staking node ID when necessary through updating the proxy account.</blockquote>
int64 staked_node_id = 14;- Specified by:
getStakedNodeIdin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The stakedNodeId.
-
setStakedNodeId
* A node identifier.<br/> A staked node identifier indicates the consensus node that this account nominates for staking. <p> If set, modify this smart contract such that it SHALL stake its HBAR to this node. If set to a the value `-1` any pre-existing `staked_node_id` value SHALL be removed on success. <p> <blockquote>Note: node IDs do fluctuate as node operators change. Most contracts are immutable, and a contract staking to an invalid node ID SHALL NOT participate in staking. Immutable contracts may find it more reliable to use a proxy account for staking (via `staked_account_id`) to enable updating the _effective_ staking node ID when necessary through updating the proxy account.</blockquote>
int64 staked_node_id = 14;- Parameters:
value- The stakedNodeId to set.- Returns:
- This builder for chaining.
-
clearStakedNodeId
* A node identifier.<br/> A staked node identifier indicates the consensus node that this account nominates for staking. <p> If set, modify this smart contract such that it SHALL stake its HBAR to this node. If set to a the value `-1` any pre-existing `staked_node_id` value SHALL be removed on success. <p> <blockquote>Note: node IDs do fluctuate as node operators change. Most contracts are immutable, and a contract staking to an invalid node ID SHALL NOT participate in staking. Immutable contracts may find it more reliable to use a proxy account for staking (via `staked_account_id`) to enable updating the _effective_ staking node ID when necessary through updating the proxy account.</blockquote>
int64 staked_node_id = 14;- Returns:
- This builder for chaining.
-
hasDeclineReward
public boolean hasDeclineReward()* A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network. <p> If set to true, this smart contract SHALL NOT receive any reward for staking its HBAR balance to help secure the network, regardless of staking configuration, but MAY stake HBAR to support the network without reward.
.google.protobuf.BoolValue decline_reward = 15;- Specified by:
hasDeclineRewardin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- Whether the declineReward field is set.
-
getDeclineReward
public com.google.protobuf.BoolValue getDeclineReward()* A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network. <p> If set to true, this smart contract SHALL NOT receive any reward for staking its HBAR balance to help secure the network, regardless of staking configuration, but MAY stake HBAR to support the network without reward.
.google.protobuf.BoolValue decline_reward = 15;- Specified by:
getDeclineRewardin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The declineReward.
-
setDeclineReward
* A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network. <p> If set to true, this smart contract SHALL NOT receive any reward for staking its HBAR balance to help secure the network, regardless of staking configuration, but MAY stake HBAR to support the network without reward.
.google.protobuf.BoolValue decline_reward = 15; -
setDeclineReward
public ContractUpdateTransactionBody.Builder setDeclineReward(com.google.protobuf.BoolValue.Builder builderForValue) * A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network. <p> If set to true, this smart contract SHALL NOT receive any reward for staking its HBAR balance to help secure the network, regardless of staking configuration, but MAY stake HBAR to support the network without reward.
.google.protobuf.BoolValue decline_reward = 15; -
mergeDeclineReward
public ContractUpdateTransactionBody.Builder mergeDeclineReward(com.google.protobuf.BoolValue value) * A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network. <p> If set to true, this smart contract SHALL NOT receive any reward for staking its HBAR balance to help secure the network, regardless of staking configuration, but MAY stake HBAR to support the network without reward.
.google.protobuf.BoolValue decline_reward = 15; -
clearDeclineReward
* A flag indicating if staking rewards are declined.<br/> If set, modify the flag indicating if this contract declines to accept rewards for staking its HBAR to secure the network. <p> If set to true, this smart contract SHALL NOT receive any reward for staking its HBAR balance to help secure the network, regardless of staking configuration, but MAY stake HBAR to support the network without reward.
.google.protobuf.BoolValue decline_reward = 15; -
getHookIdsToDeleteList
* The ids the hooks to delete from the contract.
repeated int64 hook_ids_to_delete = 16;- Specified by:
getHookIdsToDeleteListin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- A list containing the hookIdsToDelete.
-
getHookIdsToDeleteCount
public int getHookIdsToDeleteCount()* The ids the hooks to delete from the contract.
repeated int64 hook_ids_to_delete = 16;- Specified by:
getHookIdsToDeleteCountin interfaceContractUpdateTransactionBodyOrBuilder- Returns:
- The count of hookIdsToDelete.
-
getHookIdsToDelete
public long getHookIdsToDelete(int index) * The ids the hooks to delete from the contract.
repeated int64 hook_ids_to_delete = 16;- Specified by:
getHookIdsToDeletein interfaceContractUpdateTransactionBodyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The hookIdsToDelete at the given index.
-
setHookIdsToDelete
* The ids the hooks to delete from the contract.
repeated int64 hook_ids_to_delete = 16;- Parameters:
value- The hookIdsToDelete to set.- Returns:
- This builder for chaining.
-
addHookIdsToDelete
* The ids the hooks to delete from the contract.
repeated int64 hook_ids_to_delete = 16;- Parameters:
value- The hookIdsToDelete to add.- Returns:
- This builder for chaining.
-
addAllHookIdsToDelete
* The ids the hooks to delete from the contract.
repeated int64 hook_ids_to_delete = 16;- Parameters:
values- The hookIdsToDelete to add.- Returns:
- This builder for chaining.
-
clearHookIdsToDelete
* The ids the hooks to delete from the contract.
repeated int64 hook_ids_to_delete = 16;- Returns:
- This builder for chaining.
-
getHookCreationDetailsList
* The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17;- Specified by:
getHookCreationDetailsListin interfaceContractUpdateTransactionBodyOrBuilder
-
getHookCreationDetailsCount
public int getHookCreationDetailsCount()* The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17;- Specified by:
getHookCreationDetailsCountin interfaceContractUpdateTransactionBodyOrBuilder
-
getHookCreationDetails
* The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17;- Specified by:
getHookCreationDetailsin interfaceContractUpdateTransactionBodyOrBuilder
-
setHookCreationDetails
public ContractUpdateTransactionBody.Builder setHookCreationDetails(int index, HookCreationDetails value) * The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
setHookCreationDetails
public ContractUpdateTransactionBody.Builder setHookCreationDetails(int index, HookCreationDetails.Builder builderForValue) * The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
addHookCreationDetails
* The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
addHookCreationDetails
public ContractUpdateTransactionBody.Builder addHookCreationDetails(int index, HookCreationDetails value) * The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
addHookCreationDetails
public ContractUpdateTransactionBody.Builder addHookCreationDetails(HookCreationDetails.Builder builderForValue) * The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
addHookCreationDetails
public ContractUpdateTransactionBody.Builder addHookCreationDetails(int index, HookCreationDetails.Builder builderForValue) * The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
addAllHookCreationDetails
public ContractUpdateTransactionBody.Builder addAllHookCreationDetails(Iterable<? extends HookCreationDetails> values) * The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
clearHookCreationDetails
* The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
removeHookCreationDetails
* The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17;
-