Class ContractGetInfoResponse.ContractInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ContractGetInfoResponse.ContractInfo,ContractGetInfoResponse.ContractInfo.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ContractGetInfoResponse.ContractInfo,ContractGetInfoResponse.ContractInfo.Builder>
com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, ContractGetInfoResponse.ContractInfoOrBuilder, Cloneable
Enclosing class:
ContractGetInfoResponse.ContractInfo

public static final class ContractGetInfoResponse.ContractInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ContractGetInfoResponse.ContractInfo,ContractGetInfoResponse.ContractInfo.Builder> implements ContractGetInfoResponse.ContractInfoOrBuilder
Protobuf type proto.ContractGetInfoResponse.ContractInfo
  • Method Details

    • hasContractID

      public boolean hasContractID()
       *
       The ID of the smart contract requested in the query.
       
      .proto.ContractID contractID = 1;
      Specified by:
      hasContractID in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      Whether the contractID field is set.
    • getContractID

      public ContractID getContractID()
       *
       The ID of the smart contract requested in the query.
       
      .proto.ContractID contractID = 1;
      Specified by:
      getContractID in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The contractID.
    • setContractID

       *
       The ID of the smart contract requested in the query.
       
      .proto.ContractID contractID = 1;
    • setContractID

      public ContractGetInfoResponse.ContractInfo.Builder setContractID(ContractID.Builder builderForValue)
       *
       The ID of the smart contract requested in the query.
       
      .proto.ContractID contractID = 1;
    • mergeContractID

       *
       The ID of the smart contract requested in the query.
       
      .proto.ContractID contractID = 1;
    • clearContractID

       *
       The ID of the smart contract requested in the query.
       
      .proto.ContractID contractID = 1;
    • hasAccountID

      public boolean hasAccountID()
       *
       The Account ID for the account entry associated with this
       smart contract.
       
      .proto.AccountID accountID = 2;
      Specified by:
      hasAccountID in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      Whether the accountID field is set.
    • getAccountID

      public AccountID getAccountID()
       *
       The Account ID for the account entry associated with this
       smart contract.
       
      .proto.AccountID accountID = 2;
      Specified by:
      getAccountID in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The accountID.
    • setAccountID

       *
       The Account ID for the account entry associated with this
       smart contract.
       
      .proto.AccountID accountID = 2;
    • setAccountID

      public ContractGetInfoResponse.ContractInfo.Builder setAccountID(AccountID.Builder builderForValue)
       *
       The Account ID for the account entry associated with this
       smart contract.
       
      .proto.AccountID accountID = 2;
    • mergeAccountID

       *
       The Account ID for the account entry associated with this
       smart contract.
       
      .proto.AccountID accountID = 2;
    • clearAccountID

       *
       The Account ID for the account entry associated with this
       smart contract.
       
      .proto.AccountID accountID = 2;
    • getContractAccountID

      public String getContractAccountID()
       *
       The "Solidity" form contract ID.<br/>
       This is a hexadecimal string form of the 20-byte EVM address
       of the contract.
       
      string contractAccountID = 3;
      Specified by:
      getContractAccountID in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The contractAccountID.
    • getContractAccountIDBytes

      public com.google.protobuf.ByteString getContractAccountIDBytes()
       *
       The "Solidity" form contract ID.<br/>
       This is a hexadecimal string form of the 20-byte EVM address
       of the contract.
       
      string contractAccountID = 3;
      Specified by:
      getContractAccountIDBytes in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The bytes for contractAccountID.
    • setContractAccountID

      public ContractGetInfoResponse.ContractInfo.Builder setContractAccountID(String value)
       *
       The "Solidity" form contract ID.<br/>
       This is a hexadecimal string form of the 20-byte EVM address
       of the contract.
       
      string contractAccountID = 3;
      Parameters:
      value - The contractAccountID to set.
      Returns:
      This builder for chaining.
    • clearContractAccountID

      public ContractGetInfoResponse.ContractInfo.Builder clearContractAccountID()
       *
       The "Solidity" form contract ID.<br/>
       This is a hexadecimal string form of the 20-byte EVM address
       of the contract.
       
      string contractAccountID = 3;
      Returns:
      This builder for chaining.
    • setContractAccountIDBytes

      public ContractGetInfoResponse.ContractInfo.Builder setContractAccountIDBytes(com.google.protobuf.ByteString value)
       *
       The "Solidity" form contract ID.<br/>
       This is a hexadecimal string form of the 20-byte EVM address
       of the contract.
       
      string contractAccountID = 3;
      Parameters:
      value - The bytes for contractAccountID to set.
      Returns:
      This builder for chaining.
    • hasAdminKey

      public boolean hasAdminKey()
       *
       The key that MUST sign any transaction to update or modify this
       smart contract.
       <p>
       If this value is null, or is an empty `KeyList` then the contract
       CANNOT be deleted, modified, or updated, but MAY still expire.
       
      .proto.Key adminKey = 4;
      Specified by:
      hasAdminKey in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      Whether the adminKey field is set.
    • getAdminKey

      public Key getAdminKey()
       *
       The key that MUST sign any transaction to update or modify this
       smart contract.
       <p>
       If this value is null, or is an empty `KeyList` then the contract
       CANNOT be deleted, modified, or updated, but MAY still expire.
       
      .proto.Key adminKey = 4;
      Specified by:
      getAdminKey in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The adminKey.
    • setAdminKey

       *
       The key that MUST sign any transaction to update or modify this
       smart contract.
       <p>
       If this value is null, or is an empty `KeyList` then the contract
       CANNOT be deleted, modified, or updated, but MAY still expire.
       
      .proto.Key adminKey = 4;
    • setAdminKey

      public ContractGetInfoResponse.ContractInfo.Builder setAdminKey(Key.Builder builderForValue)
       *
       The key that MUST sign any transaction to update or modify this
       smart contract.
       <p>
       If this value is null, or is an empty `KeyList` then the contract
       CANNOT be deleted, modified, or updated, but MAY still expire.
       
      .proto.Key adminKey = 4;
    • mergeAdminKey

      public ContractGetInfoResponse.ContractInfo.Builder mergeAdminKey(Key value)
       *
       The key that MUST sign any transaction to update or modify this
       smart contract.
       <p>
       If this value is null, or is an empty `KeyList` then the contract
       CANNOT be deleted, modified, or updated, but MAY still expire.
       
      .proto.Key adminKey = 4;
    • clearAdminKey

       *
       The key that MUST sign any transaction to update or modify this
       smart contract.
       <p>
       If this value is null, or is an empty `KeyList` then the contract
       CANNOT be deleted, modified, or updated, but MAY still expire.
       
      .proto.Key adminKey = 4;
    • hasExpirationTime

      public boolean hasExpirationTime()
       *
       The point in time at which this contract will expire.
       
      .proto.Timestamp expirationTime = 5;
      Specified by:
      hasExpirationTime in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public Timestamp getExpirationTime()
       *
       The point in time at which this contract will expire.
       
      .proto.Timestamp expirationTime = 5;
      Specified by:
      getExpirationTime in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The expirationTime.
    • setExpirationTime

      public ContractGetInfoResponse.ContractInfo.Builder setExpirationTime(Timestamp value)
       *
       The point in time at which this contract will expire.
       
      .proto.Timestamp expirationTime = 5;
    • setExpirationTime

      public ContractGetInfoResponse.ContractInfo.Builder setExpirationTime(Timestamp.Builder builderForValue)
       *
       The point in time at which this contract will expire.
       
      .proto.Timestamp expirationTime = 5;
    • mergeExpirationTime

      public ContractGetInfoResponse.ContractInfo.Builder mergeExpirationTime(Timestamp value)
       *
       The point in time at which this contract will expire.
       
      .proto.Timestamp expirationTime = 5;
    • clearExpirationTime

      public ContractGetInfoResponse.ContractInfo.Builder clearExpirationTime()
       *
       The point in time at which this contract will expire.
       
      .proto.Timestamp expirationTime = 5;
    • hasAutoRenewPeriod

      public boolean hasAutoRenewPeriod()
       *
       The duration, in seconds, for which the contract lifetime will be
       automatically extended upon expiration, provide sufficient HBAR is
       available at that time to pay the renewal fee.<br/>
       See `auto_renew_account_id` for additional conditions.
       
      .proto.Duration autoRenewPeriod = 6;
      Specified by:
      hasAutoRenewPeriod in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      Whether the autoRenewPeriod field is set.
    • getAutoRenewPeriod

      public Duration getAutoRenewPeriod()
       *
       The duration, in seconds, for which the contract lifetime will be
       automatically extended upon expiration, provide sufficient HBAR is
       available at that time to pay the renewal fee.<br/>
       See `auto_renew_account_id` for additional conditions.
       
      .proto.Duration autoRenewPeriod = 6;
      Specified by:
      getAutoRenewPeriod in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The autoRenewPeriod.
    • setAutoRenewPeriod

      public ContractGetInfoResponse.ContractInfo.Builder setAutoRenewPeriod(Duration value)
       *
       The duration, in seconds, for which the contract lifetime will be
       automatically extended upon expiration, provide sufficient HBAR is
       available at that time to pay the renewal fee.<br/>
       See `auto_renew_account_id` for additional conditions.
       
      .proto.Duration autoRenewPeriod = 6;
    • setAutoRenewPeriod

      public ContractGetInfoResponse.ContractInfo.Builder setAutoRenewPeriod(Duration.Builder builderForValue)
       *
       The duration, in seconds, for which the contract lifetime will be
       automatically extended upon expiration, provide sufficient HBAR is
       available at that time to pay the renewal fee.<br/>
       See `auto_renew_account_id` for additional conditions.
       
      .proto.Duration autoRenewPeriod = 6;
    • mergeAutoRenewPeriod

      public ContractGetInfoResponse.ContractInfo.Builder mergeAutoRenewPeriod(Duration value)
       *
       The duration, in seconds, for which the contract lifetime will be
       automatically extended upon expiration, provide sufficient HBAR is
       available at that time to pay the renewal fee.<br/>
       See `auto_renew_account_id` for additional conditions.
       
      .proto.Duration autoRenewPeriod = 6;
    • clearAutoRenewPeriod

      public ContractGetInfoResponse.ContractInfo.Builder clearAutoRenewPeriod()
       *
       The duration, in seconds, for which the contract lifetime will be
       automatically extended upon expiration, provide sufficient HBAR is
       available at that time to pay the renewal fee.<br/>
       See `auto_renew_account_id` for additional conditions.
       
      .proto.Duration autoRenewPeriod = 6;
    • getStorage

      public long getStorage()
       *
       The amount of storage used by this smart contract.
       
      int64 storage = 7;
      Specified by:
      getStorage in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The storage.
    • setStorage

      public ContractGetInfoResponse.ContractInfo.Builder setStorage(long value)
       *
       The amount of storage used by this smart contract.
       
      int64 storage = 7;
      Parameters:
      value - The storage to set.
      Returns:
      This builder for chaining.
    • clearStorage

       *
       The amount of storage used by this smart contract.
       
      int64 storage = 7;
      Returns:
      This builder for chaining.
    • getMemo

      public String getMemo()
       *
       A short description of this smart contract.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 8;
      Specified by:
      getMemo in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The memo.
    • getMemoBytes

      public com.google.protobuf.ByteString getMemoBytes()
       *
       A short description of this smart contract.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 8;
      Specified by:
      getMemoBytes in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The bytes for memo.
    • setMemo

       *
       A short description of this smart contract.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 8;
      Parameters:
      value - The memo to set.
      Returns:
      This builder for chaining.
    • clearMemo

       *
       A short description of this smart contract.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 8;
      Returns:
      This builder for chaining.
    • setMemoBytes

      public ContractGetInfoResponse.ContractInfo.Builder setMemoBytes(com.google.protobuf.ByteString value)
       *
       A short description of this smart contract.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 8;
      Parameters:
      value - The bytes for memo to set.
      Returns:
      This builder for chaining.
    • getBalance

      public long getBalance()
       *
       The current HBAR balance, in tinybar, of the smart contract account.
       
      uint64 balance = 9;
      Specified by:
      getBalance in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The balance.
    • setBalance

      public ContractGetInfoResponse.ContractInfo.Builder setBalance(long value)
       *
       The current HBAR balance, in tinybar, of the smart contract account.
       
      uint64 balance = 9;
      Parameters:
      value - The balance to set.
      Returns:
      This builder for chaining.
    • clearBalance

       *
       The current HBAR balance, in tinybar, of the smart contract account.
       
      uint64 balance = 9;
      Returns:
      This builder for chaining.
    • getDeleted

      public boolean getDeleted()
       *
       A flag indicating that this contract is deleted.
       
      bool deleted = 10;
      Specified by:
      getDeleted in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The deleted.
    • setDeleted

      public ContractGetInfoResponse.ContractInfo.Builder setDeleted(boolean value)
       *
       A flag indicating that this contract is deleted.
       
      bool deleted = 10;
      Parameters:
      value - The deleted to set.
      Returns:
      This builder for chaining.
    • clearDeleted

       *
       A flag indicating that this contract is deleted.
       
      bool deleted = 10;
      Returns:
      This builder for chaining.
    • getTokenRelationshipsList

      @Deprecated public List<TokenRelationship> getTokenRelationshipsList()
      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
      Specified by:
      getTokenRelationshipsList in interface ContractGetInfoResponse.ContractInfoOrBuilder
    • getTokenRelationshipsCount

      @Deprecated public int getTokenRelationshipsCount()
      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
      Specified by:
      getTokenRelationshipsCount in interface ContractGetInfoResponse.ContractInfoOrBuilder
    • getTokenRelationships

      @Deprecated public TokenRelationship getTokenRelationships(int index)
      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
      Specified by:
      getTokenRelationships in interface ContractGetInfoResponse.ContractInfoOrBuilder
    • setTokenRelationships

      @Deprecated public ContractGetInfoResponse.ContractInfo.Builder setTokenRelationships(int index, TokenRelationship value)
      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
    • setTokenRelationships

      @Deprecated public ContractGetInfoResponse.ContractInfo.Builder setTokenRelationships(int index, TokenRelationship.Builder builderForValue)
      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
    • addTokenRelationships

      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
    • addTokenRelationships

      @Deprecated public ContractGetInfoResponse.ContractInfo.Builder addTokenRelationships(int index, TokenRelationship value)
      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
    • addTokenRelationships

      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
    • addTokenRelationships

      @Deprecated public ContractGetInfoResponse.ContractInfo.Builder addTokenRelationships(int index, TokenRelationship.Builder builderForValue)
      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
    • addAllTokenRelationships

      @Deprecated public ContractGetInfoResponse.ContractInfo.Builder addAllTokenRelationships(Iterable<? extends TokenRelationship> values)
      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
    • clearTokenRelationships

      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
    • removeTokenRelationships

      @Deprecated public ContractGetInfoResponse.ContractInfo.Builder removeTokenRelationships(int index)
      Deprecated.
       *
       Because <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>,
       which allows an account to be associated to an unlimited number of
       tokens, it became necessary to only provide this information from
       a Mirror Node.<br/>
       The list of tokens associated to this contract.
       
      repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true];
    • getLedgerId

      public com.google.protobuf.ByteString getLedgerId()
       *
       The ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 12;
      Specified by:
      getLedgerId in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The ledgerId.
    • setLedgerId

      public ContractGetInfoResponse.ContractInfo.Builder setLedgerId(com.google.protobuf.ByteString value)
       *
       The ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 12;
      Parameters:
      value - The ledgerId to set.
      Returns:
      This builder for chaining.
    • clearLedgerId

       *
       The ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 12;
      Returns:
      This builder for chaining.
    • hasAutoRenewAccountId

      public boolean hasAutoRenewAccountId()
       *
       An account designated to pay the renewal fee upon automatic renewal
       of this contract.
       <p>
       If this is not set, or is set to an account with zero HBAR
       available, the HBAR balance of the contract, if available,
       SHALL be used to pay the renewal fee.
       
      .proto.AccountID auto_renew_account_id = 13;
      Specified by:
      hasAutoRenewAccountId in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      Whether the autoRenewAccountId field is set.
    • getAutoRenewAccountId

      public AccountID getAutoRenewAccountId()
       *
       An account designated to pay the renewal fee upon automatic renewal
       of this contract.
       <p>
       If this is not set, or is set to an account with zero HBAR
       available, the HBAR balance of the contract, if available,
       SHALL be used to pay the renewal fee.
       
      .proto.AccountID auto_renew_account_id = 13;
      Specified by:
      getAutoRenewAccountId in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The autoRenewAccountId.
    • setAutoRenewAccountId

      public ContractGetInfoResponse.ContractInfo.Builder setAutoRenewAccountId(AccountID value)
       *
       An account designated to pay the renewal fee upon automatic renewal
       of this contract.
       <p>
       If this is not set, or is set to an account with zero HBAR
       available, the HBAR balance of the contract, if available,
       SHALL be used to pay the renewal fee.
       
      .proto.AccountID auto_renew_account_id = 13;
    • setAutoRenewAccountId

      public ContractGetInfoResponse.ContractInfo.Builder setAutoRenewAccountId(AccountID.Builder builderForValue)
       *
       An account designated to pay the renewal fee upon automatic renewal
       of this contract.
       <p>
       If this is not set, or is set to an account with zero HBAR
       available, the HBAR balance of the contract, if available,
       SHALL be used to pay the renewal fee.
       
      .proto.AccountID auto_renew_account_id = 13;
    • mergeAutoRenewAccountId

      public ContractGetInfoResponse.ContractInfo.Builder mergeAutoRenewAccountId(AccountID value)
       *
       An account designated to pay the renewal fee upon automatic renewal
       of this contract.
       <p>
       If this is not set, or is set to an account with zero HBAR
       available, the HBAR balance of the contract, if available,
       SHALL be used to pay the renewal fee.
       
      .proto.AccountID auto_renew_account_id = 13;
    • clearAutoRenewAccountId

      public ContractGetInfoResponse.ContractInfo.Builder clearAutoRenewAccountId()
       *
       An account designated to pay the renewal fee upon automatic renewal
       of this contract.
       <p>
       If this is not set, or is set to an account with zero HBAR
       available, the HBAR balance of the contract, if available,
       SHALL be used to pay the renewal fee.
       
      .proto.AccountID auto_renew_account_id = 13;
    • getMaxAutomaticTokenAssociations

      public int getMaxAutomaticTokenAssociations()
       *
       The maximum number of tokens that the contract can be
       associated to automatically.
       
      int32 max_automatic_token_associations = 14;
      Specified by:
      getMaxAutomaticTokenAssociations in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The maxAutomaticTokenAssociations.
    • setMaxAutomaticTokenAssociations

      public ContractGetInfoResponse.ContractInfo.Builder setMaxAutomaticTokenAssociations(int value)
       *
       The maximum number of tokens that the contract can be
       associated to automatically.
       
      int32 max_automatic_token_associations = 14;
      Parameters:
      value - The maxAutomaticTokenAssociations to set.
      Returns:
      This builder for chaining.
    • clearMaxAutomaticTokenAssociations

      public ContractGetInfoResponse.ContractInfo.Builder clearMaxAutomaticTokenAssociations()
       *
       The maximum number of tokens that the contract can be
       associated to automatically.
       
      int32 max_automatic_token_associations = 14;
      Returns:
      This builder for chaining.
    • hasStakingInfo

      public boolean hasStakingInfo()
       *
       Staking information for this contract.
       
      .proto.StakingInfo staking_info = 15;
      Specified by:
      hasStakingInfo in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      Whether the stakingInfo field is set.
    • getStakingInfo

      public StakingInfo getStakingInfo()
       *
       Staking information for this contract.
       
      .proto.StakingInfo staking_info = 15;
      Specified by:
      getStakingInfo in interface ContractGetInfoResponse.ContractInfoOrBuilder
      Returns:
      The stakingInfo.
    • setStakingInfo

       *
       Staking information for this contract.
       
      .proto.StakingInfo staking_info = 15;
    • setStakingInfo

      public ContractGetInfoResponse.ContractInfo.Builder setStakingInfo(StakingInfo.Builder builderForValue)
       *
       Staking information for this contract.
       
      .proto.StakingInfo staking_info = 15;
    • mergeStakingInfo

       *
       Staking information for this contract.
       
      .proto.StakingInfo staking_info = 15;
    • clearStakingInfo

       *
       Staking information for this contract.
       
      .proto.StakingInfo staking_info = 15;