Interface ContractUpdateTransactionBodyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
ContractUpdateTransactionBody, ContractUpdateTransactionBody.Builder

@Generated public interface ContractUpdateTransactionBodyOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    * 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.
    proto.ContractUpdateTransactionBody.fileID is deprecated.
    * The hooks to create for the contract.
    int
    * The hooks to create for the contract.
    * The hooks to create for the contract.
    long
    getHookIdsToDelete(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.
    Deprecated.
    proto.ContractUpdateTransactionBody.memo is deprecated.
    com.google.protobuf.ByteString
    Deprecated.
    proto.ContractUpdateTransactionBody.memo is deprecated.
     
    com.google.protobuf.StringValue
    * If set, modify the short memo for this smart contract.
    Deprecated.
    proto.ContractUpdateTransactionBody.proxyAccountID is 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.
    boolean
    Deprecated.
    proto.ContractUpdateTransactionBody.fileID is deprecated.
    boolean
    * If set, modify the maximum number of tokens that can be auto-associated with the contract.
    boolean
    Deprecated.
    proto.ContractUpdateTransactionBody.memo is deprecated.
    boolean
    * If set, modify the short memo for this smart contract.
    boolean
    Deprecated.
    proto.ContractUpdateTransactionBody.proxyAccountID is deprecated.
    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.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasContractID

      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;
      Returns:
      Whether the contractID field is set.
    • getContractID

      ContractID 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;
      Returns:
      The contractID.
    • hasExpirationTime

      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;
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      Timestamp 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;
      Returns:
      The expirationTime.
    • hasAdminKey

      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;
      Returns:
      Whether the adminKey field is set.
    • getAdminKey

      Key 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;
      Returns:
      The adminKey.
    • hasProxyAccountID

      @Deprecated boolean hasProxyAccountID()
      Deprecated.
      proto.ContractUpdateTransactionBody.proxyAccountID is deprecated. See contract_update.proto;l=82
       *
       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];
      Returns:
      Whether the proxyAccountID field is set.
    • getProxyAccountID

      @Deprecated AccountID getProxyAccountID()
      Deprecated.
      proto.ContractUpdateTransactionBody.proxyAccountID is deprecated. See contract_update.proto;l=82
       *
       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];
      Returns:
      The proxyAccountID.
    • hasAutoRenewPeriod

      boolean hasAutoRenewPeriod()
       *
       If set, modify the duration added to expiration time by each
       auto-renewal to this value.
       
      .proto.Duration autoRenewPeriod = 7;
      Returns:
      Whether the autoRenewPeriod field is set.
    • getAutoRenewPeriod

      Duration getAutoRenewPeriod()
       *
       If set, modify the duration added to expiration time by each
       auto-renewal to this value.
       
      .proto.Duration autoRenewPeriod = 7;
      Returns:
      The autoRenewPeriod.
    • hasFileID

      @Deprecated boolean hasFileID()
      Deprecated.
      proto.ContractUpdateTransactionBody.fileID is deprecated. See contract_update.proto;l=95
       *
       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];
      Returns:
      Whether the fileID field is set.
    • getFileID

      @Deprecated FileID getFileID()
      Deprecated.
      proto.ContractUpdateTransactionBody.fileID is deprecated. See contract_update.proto;l=95
       *
       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];
      Returns:
      The fileID.
    • hasMemo

      @Deprecated boolean 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];
      Returns:
      Whether the memo field is set.
    • getMemo

      @Deprecated String 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];
      Returns:
      The memo.
    • getMemoBytes

      @Deprecated com.google.protobuf.ByteString 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];
      Returns:
      The bytes for memo.
    • hasMemoWrapper

      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;
      Returns:
      Whether the memoWrapper field is set.
    • getMemoWrapper

      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;
      Returns:
      The memoWrapper.
    • hasMaxAutomaticTokenAssociations

      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;
      Returns:
      Whether the maxAutomaticTokenAssociations field is set.
    • getMaxAutomaticTokenAssociations

      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;
      Returns:
      The maxAutomaticTokenAssociations.
    • hasAutoRenewAccountId

      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;
      Returns:
      Whether the autoRenewAccountId field is set.
    • getAutoRenewAccountId

      AccountID 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;
      Returns:
      The autoRenewAccountId.
    • hasStakedAccountId

      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;
      Returns:
      Whether the stakedAccountId field is set.
    • getStakedAccountId

      AccountID 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;
      Returns:
      The stakedAccountId.
    • hasStakedNodeId

      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;
      Returns:
      Whether the stakedNodeId field is set.
    • getStakedNodeId

      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;
      Returns:
      The stakedNodeId.
    • hasDeclineReward

      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;
      Returns:
      Whether the declineReward field is set.
    • getDeclineReward

      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;
      Returns:
      The declineReward.
    • getHookIdsToDeleteList

      List<Long> getHookIdsToDeleteList()
       *
       The ids the hooks to delete from the contract.
       
      repeated int64 hook_ids_to_delete = 16;
      Returns:
      A list containing the hookIdsToDelete.
    • getHookIdsToDeleteCount

      int getHookIdsToDeleteCount()
       *
       The ids the hooks to delete from the contract.
       
      repeated int64 hook_ids_to_delete = 16;
      Returns:
      The count of hookIdsToDelete.
    • getHookIdsToDelete

      long getHookIdsToDelete(int index)
       *
       The ids the hooks to delete from the contract.
       
      repeated int64 hook_ids_to_delete = 16;
      Parameters:
      index - The index of the element to return.
      Returns:
      The hookIdsToDelete at the given index.
    • getHookCreationDetailsList

      List<HookCreationDetails> getHookCreationDetailsList()
       *
       The hooks to create for the contract.
       
      repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17;
    • getHookCreationDetails

      HookCreationDetails getHookCreationDetails(int index)
       *
       The hooks to create for the contract.
       
      repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17;
    • getHookCreationDetailsCount

      int getHookCreationDetailsCount()
       *
       The hooks to create for the contract.
       
      repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 17;
    • getMemoFieldCase

    • getStakedIdCase