Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ContractGetInfoResponse.ContractInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite<ContractGetInfoResponse.ContractInfo,ContractGetInfoResponse.ContractInfo.Builder>
com.google.protobuf.GeneratedMessageLite<ContractGetInfoResponse.ContractInfo,ContractGetInfoResponse.ContractInfo.Builder>
com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ContractGetInfoResponse.ContractInfoOrBuilder
- Enclosing class:
ContractGetInfoResponse
public static final class ContractGetInfoResponse.ContractInfo
extends com.google.protobuf.GeneratedMessageLite<ContractGetInfoResponse.ContractInfo,ContractGetInfoResponse.ContractInfo.Builder>
implements ContractGetInfoResponse.ContractInfoOrBuilder
Protobuf type
proto.ContractGetInfoResponse.ContractInfo-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeproto.ContractGetInfoResponse.ContractInfoNested 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) * 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.getTokenRelationshipsOrBuilder(int index) Deprecated.List<? extends TokenRelationshipOrBuilder> 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.newBuilder(ContractGetInfoResponse.ContractInfo 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<ContractGetInfoResponse.ContractInfo> 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:
-
ACCOUNTID_FIELD_NUMBER
public static final int ACCOUNTID_FIELD_NUMBER- See Also:
-
CONTRACTACCOUNTID_FIELD_NUMBER
public static final int CONTRACTACCOUNTID_FIELD_NUMBER- See Also:
-
ADMINKEY_FIELD_NUMBER
public static final int ADMINKEY_FIELD_NUMBER- See Also:
-
EXPIRATIONTIME_FIELD_NUMBER
public static final int EXPIRATIONTIME_FIELD_NUMBER- See Also:
-
AUTORENEWPERIOD_FIELD_NUMBER
public static final int AUTORENEWPERIOD_FIELD_NUMBER- See Also:
-
STORAGE_FIELD_NUMBER
public static final int STORAGE_FIELD_NUMBER- See Also:
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER- See Also:
-
BALANCE_FIELD_NUMBER
public static final int BALANCE_FIELD_NUMBER- See Also:
-
DELETED_FIELD_NUMBER
public static final int DELETED_FIELD_NUMBER- See Also:
-
TOKENRELATIONSHIPS_FIELD_NUMBER
public static final int TOKENRELATIONSHIPS_FIELD_NUMBER- See Also:
-
LEDGER_ID_FIELD_NUMBER
public static final int LEDGER_ID_FIELD_NUMBER- See Also:
-
AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER
public static final int AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER- See Also:
-
MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER
public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER- See Also:
-
STAKING_INFO_FIELD_NUMBER
public static final int STAKING_INFO_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getStorage
public long getStorage()* The amount of storage used by this smart contract.
int64 storage = 7;- Specified by:
getStoragein interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The storage.
-
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.
-
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.
-
getDeleted
public boolean getDeleted()* A flag indicating that this contract is deleted.
bool deleted = 10;- Specified by:
getDeletedin interfaceContractGetInfoResponse.ContractInfoOrBuilder- Returns:
- The deleted.
-
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
-
getTokenRelationshipsOrBuilderList
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]; -
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
-
getTokenRelationshipsOrBuilder
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.
-
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.
-
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.
-
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.
-
parseFrom
public static ContractGetInfoResponse.ContractInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractGetInfoResponse.ContractInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractGetInfoResponse.ContractInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractGetInfoResponse.ContractInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractGetInfoResponse.ContractInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractGetInfoResponse.ContractInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ContractGetInfoResponse.ContractInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ContractGetInfoResponse.ContractInfo parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ContractGetInfoResponse.ContractInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ContractGetInfoResponse.ContractInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ContractGetInfoResponse.ContractInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static ContractGetInfoResponse.ContractInfo.Builder newBuilder(ContractGetInfoResponse.ContractInfo prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ContractGetInfoResponse.ContractInfo,ContractGetInfoResponse.ContractInfo.Builder>
-
getDefaultInstance
-
parser
-