Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ContractUpdateTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<ContractUpdateTransactionBody,ContractUpdateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<ContractUpdateTransactionBody,ContractUpdateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ContractUpdateTransactionBodyOrBuilder
@Generated
public final class ContractUpdateTransactionBody
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Modify the current state of a smart contract.static enumstatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) * 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.getHookCreationDetailsOrBuilder(int index) * The hooks to create for the contract.List<? extends HookCreationDetailsOrBuilder> * 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.newBuilder(ContractUpdateTransactionBody prototype) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ContractUpdateTransactionBody> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
CONTRACTID_FIELD_NUMBER
public static final int CONTRACTID_FIELD_NUMBER- See Also:
-
EXPIRATIONTIME_FIELD_NUMBER
public static final int EXPIRATIONTIME_FIELD_NUMBER- See Also:
-
ADMINKEY_FIELD_NUMBER
public static final int ADMINKEY_FIELD_NUMBER- See Also:
-
PROXYACCOUNTID_FIELD_NUMBER
public static final int PROXYACCOUNTID_FIELD_NUMBER- See Also:
-
AUTORENEWPERIOD_FIELD_NUMBER
public static final int AUTORENEWPERIOD_FIELD_NUMBER- See Also:
-
FILEID_FIELD_NUMBER
public static final int FILEID_FIELD_NUMBER- See Also:
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER- See Also:
-
MEMOWRAPPER_FIELD_NUMBER
public static final int MEMOWRAPPER_FIELD_NUMBER- See Also:
-
MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER
public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER- See Also:
-
AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER
public static final int AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER- See Also:
-
STAKED_ACCOUNT_ID_FIELD_NUMBER
public static final int STAKED_ACCOUNT_ID_FIELD_NUMBER- See Also:
-
STAKED_NODE_ID_FIELD_NUMBER
public static final int STAKED_NODE_ID_FIELD_NUMBER- See Also:
-
DECLINE_REWARD_FIELD_NUMBER
public static final int DECLINE_REWARD_FIELD_NUMBER- See Also:
-
HOOK_IDS_TO_DELETE_FIELD_NUMBER
public static final int HOOK_IDS_TO_DELETE_FIELD_NUMBER- See Also:
-
HOOK_CREATION_DETAILS_FIELD_NUMBER
public static final int HOOK_CREATION_DETAILS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getMemoFieldCase
- Specified by:
getMemoFieldCasein interfaceContractUpdateTransactionBodyOrBuilder
-
getStakedIdCase
- Specified by:
getStakedIdCasein interfaceContractUpdateTransactionBodyOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getHookCreationDetailsList
* The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17;- Specified by:
getHookCreationDetailsListin interfaceContractUpdateTransactionBodyOrBuilder
-
getHookCreationDetailsOrBuilderList
* The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
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
-
getHookCreationDetailsOrBuilder
* The hooks to create for the contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17; -
parseFrom
public static ContractUpdateTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractUpdateTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractUpdateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractUpdateTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ContractUpdateTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ContractUpdateTransactionBody parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ContractUpdateTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ContractUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ContractUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static ContractUpdateTransactionBody.Builder newBuilder(ContractUpdateTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ContractUpdateTransactionBody,ContractUpdateTransactionBody.Builder>
-
getDefaultInstance
-
parser
-