Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllTokenRelationships(Iterable<? extends TokenRelationship> values) Deprecated.addTokenRelationships(int index, TokenRelationship value) Deprecated.addTokenRelationships(int index, TokenRelationship.Builder builderForValue) Deprecated.Deprecated.addTokenRelationships(TokenRelationship.Builder builderForValue) Deprecated.* The Account ID for the account entry associated with this smart contract.* The key that MUST sign any transaction to update or modify this smart contract.* An account designated to pay the renewal fee upon automatic renewal of this contract.* 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.* The current HBAR balance, in tinybar, of the smart contract account.* The "Solidity" form contract ID.<br/> This is a hexadecimal string form of the 20-byte EVM address of the contract.* The ID of the smart contract requested in the query.* A flag indicating that this contract is deleted.* The point in time at which this contract will expire.* The ledger ID of the network that generated this response.* The maximum number of tokens that the contract can be associated to automatically.* A short description of this smart contract.* Staking information for this contract.* The amount of storage used by this smart contract.Deprecated.* The Account ID for the account entry associated with this smart contract.* The key that MUST sign any transaction to update or modify this smart contract.* An account designated to pay the renewal fee upon automatic renewal of this contract.* 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.long* The current HBAR balance, in tinybar, of the smart contract account.* The "Solidity" form contract ID.<br/> This is a hexadecimal string form of the 20-byte EVM address of the contract.com.google.protobuf.ByteString* The "Solidity" form contract ID.<br/> This is a hexadecimal string form of the 20-byte EVM address of the contract.* The ID of the smart contract requested in the query.boolean* A flag indicating that this contract is deleted.* The point in time at which this contract will expire.com.google.protobuf.ByteString* The ledger ID of the network that generated this response.int* The maximum number of tokens that the contract can be associated to automatically.getMemo()* A short description of this smart contract.com.google.protobuf.ByteString* A short description of this smart contract.* Staking information for this contract.long* The amount of storage used by this smart contract.getTokenRelationships(int index) Deprecated.intDeprecated.Deprecated.boolean* The Account ID for the account entry associated with this smart contract.boolean* The key that MUST sign any transaction to update or modify this smart contract.boolean* An account designated to pay the renewal fee upon automatic renewal of this contract.boolean* 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.boolean* The ID of the smart contract requested in the query.boolean* The point in time at which this contract will expire.boolean* Staking information for this contract.mergeAccountID(AccountID value) * The Account ID for the account entry associated with this smart contract.mergeAdminKey(Key value) * The key that MUST sign any transaction to update or modify this smart contract.mergeAutoRenewAccountId(AccountID value) * An account designated to pay the renewal fee upon automatic renewal of this contract.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.mergeContractID(ContractID value) * The ID of the smart contract requested in the query.mergeExpirationTime(Timestamp value) * The point in time at which this contract will expire.mergeStakingInfo(StakingInfo value) * Staking information for this contract.removeTokenRelationships(int index) Deprecated.setAccountID(AccountID value) * The Account ID for the account entry associated with this smart contract.setAccountID(AccountID.Builder builderForValue) * The Account ID for the account entry associated with this smart contract.setAdminKey(Key value) * The key that MUST sign any transaction to update or modify this smart contract.setAdminKey(Key.Builder builderForValue) * The key that MUST sign any transaction to update or modify this smart contract.setAutoRenewAccountId(AccountID value) * An account designated to pay the renewal fee upon automatic renewal of this contract.setAutoRenewAccountId(AccountID.Builder builderForValue) * An account designated to pay the renewal fee upon automatic renewal of this contract.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.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.setBalance(long value) * The current HBAR balance, in tinybar, of the smart contract account.setContractAccountID(String value) * The "Solidity" form contract ID.<br/> This is a hexadecimal string form of the 20-byte EVM address of the contract.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.setContractID(ContractID value) * The ID of the smart contract requested in the query.setContractID(ContractID.Builder builderForValue) * The ID of the smart contract requested in the query.setDeleted(boolean value) * A flag indicating that this contract is deleted.setExpirationTime(Timestamp value) * The point in time at which this contract will expire.setExpirationTime(Timestamp.Builder builderForValue) * The point in time at which this contract will expire.setLedgerId(com.google.protobuf.ByteString value) * The ledger ID of the network that generated this response.setMaxAutomaticTokenAssociations(int value) * The maximum number of tokens that the contract can be associated to automatically.* A short description of this smart contract.setMemoBytes(com.google.protobuf.ByteString value) * A short description of this smart contract.setStakingInfo(StakingInfo value) * Staking information for this contract.setStakingInfo(StakingInfo.Builder builderForValue) * Staking information for this contract.setStorage(long value) * The amount of storage used by this smart contract.setTokenRelationships(int index, TokenRelationship value) Deprecated.setTokenRelationships(int index, TokenRelationship.Builder builderForValue) Deprecated.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
-
hasContractID
public boolean hasContractID()* The ID of the smart contract requested in the query.
.proto.ContractID contractID = 1;- Specified by:
hasContractIDin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- Whether the contractID field is set.
-
getContractID
* The ID of the smart contract requested in the query.
.proto.ContractID contractID = 1;- Specified by:
getContractIDin interfaceContractGetInfoResponse.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:
hasAccountIDin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- Whether the accountID field is set.
-
getAccountID
* The Account ID for the account entry associated with this smart contract.
.proto.AccountID accountID = 2;- Specified by:
getAccountIDin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The accountID.
-
setAccountID
* The Account ID for the account entry associated with this smart contract.
.proto.AccountID accountID = 2; -
setAccountID
* 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
* 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:
getContractAccountIDin interfaceContractGetInfoResponse.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:
getContractAccountIDBytesin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The bytes for contractAccountID.
-
setContractAccountID
* 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
* 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:
hasAdminKeyin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- Whether the adminKey field is set.
-
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:
getAdminKeyin interfaceContractGetInfoResponse.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
* 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
* 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:
hasExpirationTimein interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
* The point in time at which this contract will expire.
.proto.Timestamp expirationTime = 5;- Specified by:
getExpirationTimein interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The expirationTime.
-
setExpirationTime
* 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
* The point in time at which this contract will expire.
.proto.Timestamp expirationTime = 5; -
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:
hasAutoRenewPeriodin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- Whether the autoRenewPeriod field is set.
-
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:
getAutoRenewPeriodin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The autoRenewPeriod.
-
setAutoRenewPeriod
* 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
* 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
* 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:
getStoragein interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The storage.
-
setStorage
* 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
* 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:
getMemoin interfaceContractGetInfoResponse.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:
getMemoBytesin interfaceContractGetInfoResponse.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:
getBalancein interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The balance.
-
setBalance
* 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:
getDeletedin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The deleted.
-
setDeleted
* 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.* 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:
getTokenRelationshipsListin interfaceContractGetInfoResponse.ContractInfoOrBuilder
-
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:
getTokenRelationshipsCountin interfaceContractGetInfoResponse.ContractInfoOrBuilder
-
getTokenRelationships
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:
getTokenRelationshipsin interfaceContractGetInfoResponse.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 public ContractGetInfoResponse.ContractInfo.Builder addTokenRelationships(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 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 public ContractGetInfoResponse.ContractInfo.Builder addTokenRelationships(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 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.* 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:
getLedgerIdin interfaceContractGetInfoResponse.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:
hasAutoRenewAccountIdin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- Whether the autoRenewAccountId field is set.
-
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:
getAutoRenewAccountIdin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The autoRenewAccountId.
-
setAutoRenewAccountId
* 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
* 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
* 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:
getMaxAutomaticTokenAssociationsin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The maxAutomaticTokenAssociations.
-
setMaxAutomaticTokenAssociations
* 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
* 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:
hasStakingInfoin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- Whether the stakingInfo field is set.
-
getStakingInfo
* Staking information for this contract.
.proto.StakingInfo staking_info = 15;- Specified by:
getStakingInfoin interfaceContractGetInfoResponse.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;
-