All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse Maven / Gradle / Ivy

There is a newer version: 2.40.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: contract_get_info.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Response when the client sends the node ContractGetInfoQuery
 * 
* * Protobuf type {@code proto.ContractGetInfoResponse} */ public final class ContractGetInfoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ContractGetInfoResponse) ContractGetInfoResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ContractGetInfoResponse.newBuilder() to construct. private ContractGetInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContractGetInfoResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContractGetInfoResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.class, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.Builder.class); } public interface ContractInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ContractGetInfoResponse.ContractInfo) com.google.protobuf.MessageOrBuilder { /** *
     **
     * ID of the contract instance, in the format used in transactions
     * 
* * .proto.ContractID contractID = 1; * @return Whether the contractID field is set. */ boolean hasContractID(); /** *
     **
     * ID of the contract instance, in the format used in transactions
     * 
* * .proto.ContractID contractID = 1; * @return The contractID. */ com.hedera.hashgraph.sdk.proto.ContractID getContractID(); /** *
     **
     * ID of the contract instance, in the format used in transactions
     * 
* * .proto.ContractID contractID = 1; */ com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder(); /** *
     **
     * ID of the cryptocurrency account owned by the contract instance, in the format used in
     * transactions
     * 
* * .proto.AccountID accountID = 2; * @return Whether the accountID field is set. */ boolean hasAccountID(); /** *
     **
     * ID of the cryptocurrency account owned by the contract instance, in the format used in
     * transactions
     * 
* * .proto.AccountID accountID = 2; * @return The accountID. */ com.hedera.hashgraph.sdk.proto.AccountID getAccountID(); /** *
     **
     * ID of the cryptocurrency account owned by the contract instance, in the format used in
     * transactions
     * 
* * .proto.AccountID accountID = 2; */ com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder(); /** *
     **
     * ID of both the contract instance and the cryptocurrency account owned by the contract
     * instance, in the format used by Solidity
     * 
* * string contractAccountID = 3; * @return The contractAccountID. */ java.lang.String getContractAccountID(); /** *
     **
     * ID of both the contract instance and the cryptocurrency account owned by the contract
     * instance, in the format used by Solidity
     * 
* * string contractAccountID = 3; * @return The bytes for contractAccountID. */ com.google.protobuf.ByteString getContractAccountIDBytes(); /** *
     **
     * the state of the instance and its fields can be modified arbitrarily if this key signs a
     * transaction to modify it. If this is null, then such modifications are not possible, and
     * there is no administrator that can override the normal operation of this smart contract
     * instance. Note that if it is created with no admin keys, then there is no administrator
     * to authorize changing the admin keys, so there can never be any admin keys for that
     * instance.
     * 
* * .proto.Key adminKey = 4; * @return Whether the adminKey field is set. */ boolean hasAdminKey(); /** *
     **
     * the state of the instance and its fields can be modified arbitrarily if this key signs a
     * transaction to modify it. If this is null, then such modifications are not possible, and
     * there is no administrator that can override the normal operation of this smart contract
     * instance. Note that if it is created with no admin keys, then there is no administrator
     * to authorize changing the admin keys, so there can never be any admin keys for that
     * instance.
     * 
* * .proto.Key adminKey = 4; * @return The adminKey. */ com.hedera.hashgraph.sdk.proto.Key getAdminKey(); /** *
     **
     * the state of the instance and its fields can be modified arbitrarily if this key signs a
     * transaction to modify it. If this is null, then such modifications are not possible, and
     * there is no administrator that can override the normal operation of this smart contract
     * instance. Note that if it is created with no admin keys, then there is no administrator
     * to authorize changing the admin keys, so there can never be any admin keys for that
     * instance.
     * 
* * .proto.Key adminKey = 4; */ com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder(); /** *
     **
     * the current time at which this contract instance (and its account) is set to expire
     * 
* * .proto.Timestamp expirationTime = 5; * @return Whether the expirationTime field is set. */ boolean hasExpirationTime(); /** *
     **
     * the current time at which this contract instance (and its account) is set to expire
     * 
* * .proto.Timestamp expirationTime = 5; * @return The expirationTime. */ com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime(); /** *
     **
     * the current time at which this contract instance (and its account) is set to expire
     * 
* * .proto.Timestamp expirationTime = 5; */ com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder(); /** *
     **
     * the expiration time will extend every this many seconds. If there are insufficient funds,
     * then it extends as long as possible. If the account is empty when it expires, then it is
     * deleted.
     * 
* * .proto.Duration autoRenewPeriod = 6; * @return Whether the autoRenewPeriod field is set. */ boolean hasAutoRenewPeriod(); /** *
     **
     * the expiration time will extend every this many seconds. If there are insufficient funds,
     * then it extends as long as possible. If the account is empty when it expires, then it is
     * deleted.
     * 
* * .proto.Duration autoRenewPeriod = 6; * @return The autoRenewPeriod. */ com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod(); /** *
     **
     * the expiration time will extend every this many seconds. If there are insufficient funds,
     * then it extends as long as possible. If the account is empty when it expires, then it is
     * deleted.
     * 
* * .proto.Duration autoRenewPeriod = 6; */ com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder(); /** *
     **
     * number of bytes of storage being used by this instance (which affects the cost to extend
     * the expiration time)
     * 
* * int64 storage = 7; * @return The storage. */ long getStorage(); /** *
     **
     * the memo associated with the contract (max 100 bytes)
     * 
* * string memo = 8; * @return The memo. */ java.lang.String getMemo(); /** *
     **
     * the memo associated with the contract (max 100 bytes)
     * 
* * string memo = 8; * @return The bytes for memo. */ com.google.protobuf.ByteString getMemoBytes(); /** *
     **
     * The current balance, in tinybars
     * 
* * uint64 balance = 9; * @return The balance. */ long getBalance(); /** *
     **
     * Whether the contract has been deleted
     * 
* * bool deleted = 10; * @return The deleted. */ boolean getDeleted(); /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated java.util.List getTokenRelationshipsList(); /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated com.hedera.hashgraph.sdk.proto.TokenRelationship getTokenRelationships(int index); /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated int getTokenRelationshipsCount(); /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated java.util.List getTokenRelationshipsOrBuilderList(); /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder( int index); /** *
     **
     * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
     * 
* * bytes ledger_id = 12; * @return The ledgerId. */ com.google.protobuf.ByteString getLedgerId(); /** *
     **
     * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
     * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
     * 
* * .proto.AccountID auto_renew_account_id = 13; * @return Whether the autoRenewAccountId field is set. */ boolean hasAutoRenewAccountId(); /** *
     **
     * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
     * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
     * 
* * .proto.AccountID auto_renew_account_id = 13; * @return The autoRenewAccountId. */ com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccountId(); /** *
     **
     * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
     * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
     * 
* * .proto.AccountID auto_renew_account_id = 13; */ com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder(); /** *
     **
     * The maximum number of tokens that a contract can be implicitly associated with.
     * 
* * int32 max_automatic_token_associations = 14; * @return The maxAutomaticTokenAssociations. */ int getMaxAutomaticTokenAssociations(); /** *
     **
     * Staking metadata for this contract.
     * 
* * .proto.StakingInfo staking_info = 15; * @return Whether the stakingInfo field is set. */ boolean hasStakingInfo(); /** *
     **
     * Staking metadata for this contract.
     * 
* * .proto.StakingInfo staking_info = 15; * @return The stakingInfo. */ com.hedera.hashgraph.sdk.proto.StakingInfo getStakingInfo(); /** *
     **
     * Staking metadata for this contract.
     * 
* * .proto.StakingInfo staking_info = 15; */ com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder getStakingInfoOrBuilder(); } /** * Protobuf type {@code proto.ContractGetInfoResponse.ContractInfo} */ public static final class ContractInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ContractGetInfoResponse.ContractInfo) ContractInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ContractInfo.newBuilder() to construct. private ContractInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContractInfo() { contractAccountID_ = ""; memo_ = ""; tokenRelationships_ = java.util.Collections.emptyList(); ledgerId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContractInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.class, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.Builder.class); } private int bitField0_; public static final int CONTRACTID_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.ContractID contractID_; /** *
     **
     * ID of the contract instance, in the format used in transactions
     * 
* * .proto.ContractID contractID = 1; * @return Whether the contractID field is set. */ @java.lang.Override public boolean hasContractID() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * ID of the contract instance, in the format used in transactions
     * 
* * .proto.ContractID contractID = 1; * @return The contractID. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } /** *
     **
     * ID of the contract instance, in the format used in transactions
     * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } public static final int ACCOUNTID_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.AccountID accountID_; /** *
     **
     * ID of the cryptocurrency account owned by the contract instance, in the format used in
     * transactions
     * 
* * .proto.AccountID accountID = 2; * @return Whether the accountID field is set. */ @java.lang.Override public boolean hasAccountID() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * ID of the cryptocurrency account owned by the contract instance, in the format used in
     * transactions
     * 
* * .proto.AccountID accountID = 2; * @return The accountID. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() { return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_; } /** *
     **
     * ID of the cryptocurrency account owned by the contract instance, in the format used in
     * transactions
     * 
* * .proto.AccountID accountID = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() { return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_; } public static final int CONTRACTACCOUNTID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object contractAccountID_ = ""; /** *
     **
     * ID of both the contract instance and the cryptocurrency account owned by the contract
     * instance, in the format used by Solidity
     * 
* * string contractAccountID = 3; * @return The contractAccountID. */ @java.lang.Override public java.lang.String getContractAccountID() { java.lang.Object ref = contractAccountID_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contractAccountID_ = s; return s; } } /** *
     **
     * ID of both the contract instance and the cryptocurrency account owned by the contract
     * instance, in the format used by Solidity
     * 
* * string contractAccountID = 3; * @return The bytes for contractAccountID. */ @java.lang.Override public com.google.protobuf.ByteString getContractAccountIDBytes() { java.lang.Object ref = contractAccountID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractAccountID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADMINKEY_FIELD_NUMBER = 4; private com.hedera.hashgraph.sdk.proto.Key adminKey_; /** *
     **
     * the state of the instance and its fields can be modified arbitrarily if this key signs a
     * transaction to modify it. If this is null, then such modifications are not possible, and
     * there is no administrator that can override the normal operation of this smart contract
     * instance. Note that if it is created with no admin keys, then there is no administrator
     * to authorize changing the admin keys, so there can never be any admin keys for that
     * instance.
     * 
* * .proto.Key adminKey = 4; * @return Whether the adminKey field is set. */ @java.lang.Override public boolean hasAdminKey() { return ((bitField0_ & 0x00000004) != 0); } /** *
     **
     * the state of the instance and its fields can be modified arbitrarily if this key signs a
     * transaction to modify it. If this is null, then such modifications are not possible, and
     * there is no administrator that can override the normal operation of this smart contract
     * instance. Note that if it is created with no admin keys, then there is no administrator
     * to authorize changing the admin keys, so there can never be any admin keys for that
     * instance.
     * 
* * .proto.Key adminKey = 4; * @return The adminKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getAdminKey() { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } /** *
     **
     * the state of the instance and its fields can be modified arbitrarily if this key signs a
     * transaction to modify it. If this is null, then such modifications are not possible, and
     * there is no administrator that can override the normal operation of this smart contract
     * instance. Note that if it is created with no admin keys, then there is no administrator
     * to authorize changing the admin keys, so there can never be any admin keys for that
     * instance.
     * 
* * .proto.Key adminKey = 4; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } public static final int EXPIRATIONTIME_FIELD_NUMBER = 5; private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_; /** *
     **
     * the current time at which this contract instance (and its account) is set to expire
     * 
* * .proto.Timestamp expirationTime = 5; * @return Whether the expirationTime field is set. */ @java.lang.Override public boolean hasExpirationTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
     **
     * the current time at which this contract instance (and its account) is set to expire
     * 
* * .proto.Timestamp expirationTime = 5; * @return The expirationTime. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_; } /** *
     **
     * the current time at which this contract instance (and its account) is set to expire
     * 
* * .proto.Timestamp expirationTime = 5; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_; } public static final int AUTORENEWPERIOD_FIELD_NUMBER = 6; private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_; /** *
     **
     * the expiration time will extend every this many seconds. If there are insufficient funds,
     * then it extends as long as possible. If the account is empty when it expires, then it is
     * deleted.
     * 
* * .proto.Duration autoRenewPeriod = 6; * @return Whether the autoRenewPeriod field is set. */ @java.lang.Override public boolean hasAutoRenewPeriod() { return ((bitField0_ & 0x00000010) != 0); } /** *
     **
     * the expiration time will extend every this many seconds. If there are insufficient funds,
     * then it extends as long as possible. If the account is empty when it expires, then it is
     * deleted.
     * 
* * .proto.Duration autoRenewPeriod = 6; * @return The autoRenewPeriod. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_; } /** *
     **
     * the expiration time will extend every this many seconds. If there are insufficient funds,
     * then it extends as long as possible. If the account is empty when it expires, then it is
     * deleted.
     * 
* * .proto.Duration autoRenewPeriod = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_; } public static final int STORAGE_FIELD_NUMBER = 7; private long storage_ = 0L; /** *
     **
     * number of bytes of storage being used by this instance (which affects the cost to extend
     * the expiration time)
     * 
* * int64 storage = 7; * @return The storage. */ @java.lang.Override public long getStorage() { return storage_; } public static final int MEMO_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object memo_ = ""; /** *
     **
     * the memo associated with the contract (max 100 bytes)
     * 
* * string memo = 8; * @return The memo. */ @java.lang.Override public java.lang.String getMemo() { java.lang.Object ref = memo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memo_ = s; return s; } } /** *
     **
     * the memo associated with the contract (max 100 bytes)
     * 
* * string memo = 8; * @return The bytes for memo. */ @java.lang.Override public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = memo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BALANCE_FIELD_NUMBER = 9; private long balance_ = 0L; /** *
     **
     * The current balance, in tinybars
     * 
* * uint64 balance = 9; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } public static final int DELETED_FIELD_NUMBER = 10; private boolean deleted_ = false; /** *
     **
     * Whether the contract has been deleted
     * 
* * bool deleted = 10; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return deleted_; } public static final int TOKENRELATIONSHIPS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private java.util.List tokenRelationships_; /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.List getTokenRelationshipsList() { return tokenRelationships_; } /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.List getTokenRelationshipsOrBuilderList() { return tokenRelationships_; } /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public int getTokenRelationshipsCount() { return tokenRelationships_.size(); } /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship getTokenRelationships(int index) { return tokenRelationships_.get(index); } /** *
     **
     * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
     * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
     * an account to be associated to an unlimited number of tokens. This scale makes it more 
     * efficient for users to consult mirror nodes to review their token associations.
     * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder( int index) { return tokenRelationships_.get(index); } public static final int LEDGER_ID_FIELD_NUMBER = 12; private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
     * 
* * bytes ledger_id = 12; * @return The ledgerId. */ @java.lang.Override public com.google.protobuf.ByteString getLedgerId() { return ledgerId_; } public static final int AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER = 13; private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccountId_; /** *
     **
     * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
     * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
     * 
* * .proto.AccountID auto_renew_account_id = 13; * @return Whether the autoRenewAccountId field is set. */ @java.lang.Override public boolean hasAutoRenewAccountId() { return ((bitField0_ & 0x00000020) != 0); } /** *
     **
     * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
     * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
     * 
* * .proto.AccountID auto_renew_account_id = 13; * @return The autoRenewAccountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccountId() { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } /** *
     **
     * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
     * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
     * 
* * .proto.AccountID auto_renew_account_id = 13; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 14; private int maxAutomaticTokenAssociations_ = 0; /** *
     **
     * The maximum number of tokens that a contract can be implicitly associated with.
     * 
* * int32 max_automatic_token_associations = 14; * @return The maxAutomaticTokenAssociations. */ @java.lang.Override public int getMaxAutomaticTokenAssociations() { return maxAutomaticTokenAssociations_; } public static final int STAKING_INFO_FIELD_NUMBER = 15; private com.hedera.hashgraph.sdk.proto.StakingInfo stakingInfo_; /** *
     **
     * Staking metadata for this contract.
     * 
* * .proto.StakingInfo staking_info = 15; * @return Whether the stakingInfo field is set. */ @java.lang.Override public boolean hasStakingInfo() { return ((bitField0_ & 0x00000040) != 0); } /** *
     **
     * Staking metadata for this contract.
     * 
* * .proto.StakingInfo staking_info = 15; * @return The stakingInfo. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.StakingInfo getStakingInfo() { return stakingInfo_ == null ? com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance() : stakingInfo_; } /** *
     **
     * Staking metadata for this contract.
     * 
* * .proto.StakingInfo staking_info = 15; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder getStakingInfoOrBuilder() { return stakingInfo_ == null ? com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance() : stakingInfo_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getContractID()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getAccountID()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractAccountID_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contractAccountID_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getAdminKey()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getExpirationTime()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(6, getAutoRenewPeriod()); } if (storage_ != 0L) { output.writeInt64(7, storage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, memo_); } if (balance_ != 0L) { output.writeUInt64(9, balance_); } if (deleted_ != false) { output.writeBool(10, deleted_); } for (int i = 0; i < tokenRelationships_.size(); i++) { output.writeMessage(11, tokenRelationships_.get(i)); } if (!ledgerId_.isEmpty()) { output.writeBytes(12, ledgerId_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(13, getAutoRenewAccountId()); } if (maxAutomaticTokenAssociations_ != 0) { output.writeInt32(14, maxAutomaticTokenAssociations_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(15, getStakingInfo()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContractID()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAccountID()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractAccountID_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contractAccountID_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAdminKey()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getExpirationTime()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getAutoRenewPeriod()); } if (storage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, storage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, memo_); } if (balance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, balance_); } if (deleted_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, deleted_); } for (int i = 0; i < tokenRelationships_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, tokenRelationships_.get(i)); } if (!ledgerId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, ledgerId_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getAutoRenewAccountId()); } if (maxAutomaticTokenAssociations_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, maxAutomaticTokenAssociations_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getStakingInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo other = (com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo) obj; if (hasContractID() != other.hasContractID()) return false; if (hasContractID()) { if (!getContractID() .equals(other.getContractID())) return false; } if (hasAccountID() != other.hasAccountID()) return false; if (hasAccountID()) { if (!getAccountID() .equals(other.getAccountID())) return false; } if (!getContractAccountID() .equals(other.getContractAccountID())) return false; if (hasAdminKey() != other.hasAdminKey()) return false; if (hasAdminKey()) { if (!getAdminKey() .equals(other.getAdminKey())) return false; } if (hasExpirationTime() != other.hasExpirationTime()) return false; if (hasExpirationTime()) { if (!getExpirationTime() .equals(other.getExpirationTime())) return false; } if (hasAutoRenewPeriod() != other.hasAutoRenewPeriod()) return false; if (hasAutoRenewPeriod()) { if (!getAutoRenewPeriod() .equals(other.getAutoRenewPeriod())) return false; } if (getStorage() != other.getStorage()) return false; if (!getMemo() .equals(other.getMemo())) return false; if (getBalance() != other.getBalance()) return false; if (getDeleted() != other.getDeleted()) return false; if (!getTokenRelationshipsList() .equals(other.getTokenRelationshipsList())) return false; if (!getLedgerId() .equals(other.getLedgerId())) return false; if (hasAutoRenewAccountId() != other.hasAutoRenewAccountId()) return false; if (hasAutoRenewAccountId()) { if (!getAutoRenewAccountId() .equals(other.getAutoRenewAccountId())) return false; } if (getMaxAutomaticTokenAssociations() != other.getMaxAutomaticTokenAssociations()) return false; if (hasStakingInfo() != other.hasStakingInfo()) return false; if (hasStakingInfo()) { if (!getStakingInfo() .equals(other.getStakingInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasContractID()) { hash = (37 * hash) + CONTRACTID_FIELD_NUMBER; hash = (53 * hash) + getContractID().hashCode(); } if (hasAccountID()) { hash = (37 * hash) + ACCOUNTID_FIELD_NUMBER; hash = (53 * hash) + getAccountID().hashCode(); } hash = (37 * hash) + CONTRACTACCOUNTID_FIELD_NUMBER; hash = (53 * hash) + getContractAccountID().hashCode(); if (hasAdminKey()) { hash = (37 * hash) + ADMINKEY_FIELD_NUMBER; hash = (53 * hash) + getAdminKey().hashCode(); } if (hasExpirationTime()) { hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER; hash = (53 * hash) + getExpirationTime().hashCode(); } if (hasAutoRenewPeriod()) { hash = (37 * hash) + AUTORENEWPERIOD_FIELD_NUMBER; hash = (53 * hash) + getAutoRenewPeriod().hashCode(); } hash = (37 * hash) + STORAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStorage()); hash = (37 * hash) + MEMO_FIELD_NUMBER; hash = (53 * hash) + getMemo().hashCode(); hash = (37 * hash) + BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBalance()); hash = (37 * hash) + DELETED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeleted()); if (getTokenRelationshipsCount() > 0) { hash = (37 * hash) + TOKENRELATIONSHIPS_FIELD_NUMBER; hash = (53 * hash) + getTokenRelationshipsList().hashCode(); } hash = (37 * hash) + LEDGER_ID_FIELD_NUMBER; hash = (53 * hash) + getLedgerId().hashCode(); if (hasAutoRenewAccountId()) { hash = (37 * hash) + AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAutoRenewAccountId().hashCode(); } hash = (37 * hash) + MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER; hash = (53 * hash) + getMaxAutomaticTokenAssociations(); if (hasStakingInfo()) { hash = (37 * hash) + STAKING_INFO_FIELD_NUMBER; hash = (53 * hash) + getStakingInfo().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto.ContractGetInfoResponse.ContractInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ContractGetInfoResponse.ContractInfo) com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.class, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getContractIDFieldBuilder(); getAccountIDFieldBuilder(); getAdminKeyFieldBuilder(); getExpirationTimeFieldBuilder(); getAutoRenewPeriodFieldBuilder(); getTokenRelationshipsFieldBuilder(); getAutoRenewAccountIdFieldBuilder(); getStakingInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; contractID_ = null; if (contractIDBuilder_ != null) { contractIDBuilder_.dispose(); contractIDBuilder_ = null; } accountID_ = null; if (accountIDBuilder_ != null) { accountIDBuilder_.dispose(); accountIDBuilder_ = null; } contractAccountID_ = ""; adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } expirationTime_ = null; if (expirationTimeBuilder_ != null) { expirationTimeBuilder_.dispose(); expirationTimeBuilder_ = null; } autoRenewPeriod_ = null; if (autoRenewPeriodBuilder_ != null) { autoRenewPeriodBuilder_.dispose(); autoRenewPeriodBuilder_ = null; } storage_ = 0L; memo_ = ""; balance_ = 0L; deleted_ = false; if (tokenRelationshipsBuilder_ == null) { tokenRelationships_ = java.util.Collections.emptyList(); } else { tokenRelationships_ = null; tokenRelationshipsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); ledgerId_ = com.google.protobuf.ByteString.EMPTY; autoRenewAccountId_ = null; if (autoRenewAccountIdBuilder_ != null) { autoRenewAccountIdBuilder_.dispose(); autoRenewAccountIdBuilder_ = null; } maxAutomaticTokenAssociations_ = 0; stakingInfo_ = null; if (stakingInfoBuilder_ != null) { stakingInfoBuilder_.dispose(); stakingInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo build() { com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo buildPartial() { com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo result = new com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo result) { if (tokenRelationshipsBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { tokenRelationships_ = java.util.Collections.unmodifiableList(tokenRelationships_); bitField0_ = (bitField0_ & ~0x00000400); } result.tokenRelationships_ = tokenRelationships_; } else { result.tokenRelationships_ = tokenRelationshipsBuilder_.build(); } } private void buildPartial0(com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.contractID_ = contractIDBuilder_ == null ? contractID_ : contractIDBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.accountID_ = accountIDBuilder_ == null ? accountID_ : accountIDBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.contractAccountID_ = contractAccountID_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.adminKey_ = adminKeyBuilder_ == null ? adminKey_ : adminKeyBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.expirationTime_ = expirationTimeBuilder_ == null ? expirationTime_ : expirationTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.autoRenewPeriod_ = autoRenewPeriodBuilder_ == null ? autoRenewPeriod_ : autoRenewPeriodBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.storage_ = storage_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.memo_ = memo_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.balance_ = balance_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.deleted_ = deleted_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.ledgerId_ = ledgerId_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.autoRenewAccountId_ = autoRenewAccountIdBuilder_ == null ? autoRenewAccountId_ : autoRenewAccountIdBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00002000) != 0)) { result.maxAutomaticTokenAssociations_ = maxAutomaticTokenAssociations_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.stakingInfo_ = stakingInfoBuilder_ == null ? stakingInfo_ : stakingInfoBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo) { return mergeFrom((com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo other) { if (other == com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.getDefaultInstance()) return this; if (other.hasContractID()) { mergeContractID(other.getContractID()); } if (other.hasAccountID()) { mergeAccountID(other.getAccountID()); } if (!other.getContractAccountID().isEmpty()) { contractAccountID_ = other.contractAccountID_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasAdminKey()) { mergeAdminKey(other.getAdminKey()); } if (other.hasExpirationTime()) { mergeExpirationTime(other.getExpirationTime()); } if (other.hasAutoRenewPeriod()) { mergeAutoRenewPeriod(other.getAutoRenewPeriod()); } if (other.getStorage() != 0L) { setStorage(other.getStorage()); } if (!other.getMemo().isEmpty()) { memo_ = other.memo_; bitField0_ |= 0x00000080; onChanged(); } if (other.getBalance() != 0L) { setBalance(other.getBalance()); } if (other.getDeleted() != false) { setDeleted(other.getDeleted()); } if (tokenRelationshipsBuilder_ == null) { if (!other.tokenRelationships_.isEmpty()) { if (tokenRelationships_.isEmpty()) { tokenRelationships_ = other.tokenRelationships_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureTokenRelationshipsIsMutable(); tokenRelationships_.addAll(other.tokenRelationships_); } onChanged(); } } else { if (!other.tokenRelationships_.isEmpty()) { if (tokenRelationshipsBuilder_.isEmpty()) { tokenRelationshipsBuilder_.dispose(); tokenRelationshipsBuilder_ = null; tokenRelationships_ = other.tokenRelationships_; bitField0_ = (bitField0_ & ~0x00000400); tokenRelationshipsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTokenRelationshipsFieldBuilder() : null; } else { tokenRelationshipsBuilder_.addAllMessages(other.tokenRelationships_); } } } if (other.getLedgerId() != com.google.protobuf.ByteString.EMPTY) { setLedgerId(other.getLedgerId()); } if (other.hasAutoRenewAccountId()) { mergeAutoRenewAccountId(other.getAutoRenewAccountId()); } if (other.getMaxAutomaticTokenAssociations() != 0) { setMaxAutomaticTokenAssociations(other.getMaxAutomaticTokenAssociations()); } if (other.hasStakingInfo()) { mergeStakingInfo(other.getStakingInfo()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getContractIDFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getAccountIDFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { contractAccountID_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getAdminKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getExpirationTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getAutoRenewPeriodFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 56: { storage_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { memo_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 72: { balance_ = input.readUInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { deleted_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 80 case 90: { com.hedera.hashgraph.sdk.proto.TokenRelationship m = input.readMessage( com.hedera.hashgraph.sdk.proto.TokenRelationship.parser(), extensionRegistry); if (tokenRelationshipsBuilder_ == null) { ensureTokenRelationshipsIsMutable(); tokenRelationships_.add(m); } else { tokenRelationshipsBuilder_.addMessage(m); } break; } // case 90 case 98: { ledgerId_ = input.readBytes(); bitField0_ |= 0x00000800; break; } // case 98 case 106: { input.readMessage( getAutoRenewAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 case 112: { maxAutomaticTokenAssociations_ = input.readInt32(); bitField0_ |= 0x00002000; break; } // case 112 case 122: { input.readMessage( getStakingInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.ContractID contractID_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> contractIDBuilder_; /** *
       **
       * ID of the contract instance, in the format used in transactions
       * 
* * .proto.ContractID contractID = 1; * @return Whether the contractID field is set. */ public boolean hasContractID() { return ((bitField0_ & 0x00000001) != 0); } /** *
       **
       * ID of the contract instance, in the format used in transactions
       * 
* * .proto.ContractID contractID = 1; * @return The contractID. */ public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { if (contractIDBuilder_ == null) { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } else { return contractIDBuilder_.getMessage(); } } /** *
       **
       * ID of the contract instance, in the format used in transactions
       * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { if (contractIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractID_ = value; } else { contractIDBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       **
       * ID of the contract instance, in the format used in transactions
       * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID( com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) { if (contractIDBuilder_ == null) { contractID_ = builderForValue.build(); } else { contractIDBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       **
       * ID of the contract instance, in the format used in transactions
       * 
* * .proto.ContractID contractID = 1; */ public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { if (contractIDBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && contractID_ != null && contractID_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) { getContractIDBuilder().mergeFrom(value); } else { contractID_ = value; } } else { contractIDBuilder_.mergeFrom(value); } if (contractID_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       **
       * ID of the contract instance, in the format used in transactions
       * 
* * .proto.ContractID contractID = 1; */ public Builder clearContractID() { bitField0_ = (bitField0_ & ~0x00000001); contractID_ = null; if (contractIDBuilder_ != null) { contractIDBuilder_.dispose(); contractIDBuilder_ = null; } onChanged(); return this; } /** *
       **
       * ID of the contract instance, in the format used in transactions
       * 
* * .proto.ContractID contractID = 1; */ public com.hedera.hashgraph.sdk.proto.ContractID.Builder getContractIDBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContractIDFieldBuilder().getBuilder(); } /** *
       **
       * ID of the contract instance, in the format used in transactions
       * 
* * .proto.ContractID contractID = 1; */ public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() { if (contractIDBuilder_ != null) { return contractIDBuilder_.getMessageOrBuilder(); } else { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } } /** *
       **
       * ID of the contract instance, in the format used in transactions
       * 
* * .proto.ContractID contractID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> getContractIDFieldBuilder() { if (contractIDBuilder_ == null) { contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>( getContractID(), getParentForChildren(), isClean()); contractID_ = null; } return contractIDBuilder_; } private com.hedera.hashgraph.sdk.proto.AccountID accountID_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIDBuilder_; /** *
       **
       * ID of the cryptocurrency account owned by the contract instance, in the format used in
       * transactions
       * 
* * .proto.AccountID accountID = 2; * @return Whether the accountID field is set. */ public boolean hasAccountID() { return ((bitField0_ & 0x00000002) != 0); } /** *
       **
       * ID of the cryptocurrency account owned by the contract instance, in the format used in
       * transactions
       * 
* * .proto.AccountID accountID = 2; * @return The accountID. */ public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() { if (accountIDBuilder_ == null) { return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_; } else { return accountIDBuilder_.getMessage(); } } /** *
       **
       * ID of the cryptocurrency account owned by the contract instance, in the format used in
       * transactions
       * 
* * .proto.AccountID accountID = 2; */ public Builder setAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accountID_ = value; } else { accountIDBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       **
       * ID of the cryptocurrency account owned by the contract instance, in the format used in
       * transactions
       * 
* * .proto.AccountID accountID = 2; */ public Builder setAccountID( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (accountIDBuilder_ == null) { accountID_ = builderForValue.build(); } else { accountIDBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       **
       * ID of the cryptocurrency account owned by the contract instance, in the format used in
       * transactions
       * 
* * .proto.AccountID accountID = 2; */ public Builder mergeAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIDBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && accountID_ != null && accountID_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAccountIDBuilder().mergeFrom(value); } else { accountID_ = value; } } else { accountIDBuilder_.mergeFrom(value); } if (accountID_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       **
       * ID of the cryptocurrency account owned by the contract instance, in the format used in
       * transactions
       * 
* * .proto.AccountID accountID = 2; */ public Builder clearAccountID() { bitField0_ = (bitField0_ & ~0x00000002); accountID_ = null; if (accountIDBuilder_ != null) { accountIDBuilder_.dispose(); accountIDBuilder_ = null; } onChanged(); return this; } /** *
       **
       * ID of the cryptocurrency account owned by the contract instance, in the format used in
       * transactions
       * 
* * .proto.AccountID accountID = 2; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIDBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAccountIDFieldBuilder().getBuilder(); } /** *
       **
       * ID of the cryptocurrency account owned by the contract instance, in the format used in
       * transactions
       * 
* * .proto.AccountID accountID = 2; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() { if (accountIDBuilder_ != null) { return accountIDBuilder_.getMessageOrBuilder(); } else { return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_; } } /** *
       **
       * ID of the cryptocurrency account owned by the contract instance, in the format used in
       * transactions
       * 
* * .proto.AccountID accountID = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAccountIDFieldBuilder() { if (accountIDBuilder_ == null) { accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getAccountID(), getParentForChildren(), isClean()); accountID_ = null; } return accountIDBuilder_; } private java.lang.Object contractAccountID_ = ""; /** *
       **
       * ID of both the contract instance and the cryptocurrency account owned by the contract
       * instance, in the format used by Solidity
       * 
* * string contractAccountID = 3; * @return The contractAccountID. */ public java.lang.String getContractAccountID() { java.lang.Object ref = contractAccountID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contractAccountID_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       **
       * ID of both the contract instance and the cryptocurrency account owned by the contract
       * instance, in the format used by Solidity
       * 
* * string contractAccountID = 3; * @return The bytes for contractAccountID. */ public com.google.protobuf.ByteString getContractAccountIDBytes() { java.lang.Object ref = contractAccountID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractAccountID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       **
       * ID of both the contract instance and the cryptocurrency account owned by the contract
       * instance, in the format used by Solidity
       * 
* * string contractAccountID = 3; * @param value The contractAccountID to set. * @return This builder for chaining. */ public Builder setContractAccountID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contractAccountID_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       **
       * ID of both the contract instance and the cryptocurrency account owned by the contract
       * instance, in the format used by Solidity
       * 
* * string contractAccountID = 3; * @return This builder for chaining. */ public Builder clearContractAccountID() { contractAccountID_ = getDefaultInstance().getContractAccountID(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       **
       * ID of both the contract instance and the cryptocurrency account owned by the contract
       * instance, in the format used by Solidity
       * 
* * string contractAccountID = 3; * @param value The bytes for contractAccountID to set. * @return This builder for chaining. */ public Builder setContractAccountIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contractAccountID_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.Key adminKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> adminKeyBuilder_; /** *
       **
       * the state of the instance and its fields can be modified arbitrarily if this key signs a
       * transaction to modify it. If this is null, then such modifications are not possible, and
       * there is no administrator that can override the normal operation of this smart contract
       * instance. Note that if it is created with no admin keys, then there is no administrator
       * to authorize changing the admin keys, so there can never be any admin keys for that
       * instance.
       * 
* * .proto.Key adminKey = 4; * @return Whether the adminKey field is set. */ public boolean hasAdminKey() { return ((bitField0_ & 0x00000008) != 0); } /** *
       **
       * the state of the instance and its fields can be modified arbitrarily if this key signs a
       * transaction to modify it. If this is null, then such modifications are not possible, and
       * there is no administrator that can override the normal operation of this smart contract
       * instance. Note that if it is created with no admin keys, then there is no administrator
       * to authorize changing the admin keys, so there can never be any admin keys for that
       * instance.
       * 
* * .proto.Key adminKey = 4; * @return The adminKey. */ public com.hedera.hashgraph.sdk.proto.Key getAdminKey() { if (adminKeyBuilder_ == null) { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } else { return adminKeyBuilder_.getMessage(); } } /** *
       **
       * the state of the instance and its fields can be modified arbitrarily if this key signs a
       * transaction to modify it. If this is null, then such modifications are not possible, and
       * there is no administrator that can override the normal operation of this smart contract
       * instance. Note that if it is created with no admin keys, then there is no administrator
       * to authorize changing the admin keys, so there can never be any admin keys for that
       * instance.
       * 
* * .proto.Key adminKey = 4; */ public Builder setAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { if (adminKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminKey_ = value; } else { adminKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       **
       * the state of the instance and its fields can be modified arbitrarily if this key signs a
       * transaction to modify it. If this is null, then such modifications are not possible, and
       * there is no administrator that can override the normal operation of this smart contract
       * instance. Note that if it is created with no admin keys, then there is no administrator
       * to authorize changing the admin keys, so there can never be any admin keys for that
       * instance.
       * 
* * .proto.Key adminKey = 4; */ public Builder setAdminKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (adminKeyBuilder_ == null) { adminKey_ = builderForValue.build(); } else { adminKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       **
       * the state of the instance and its fields can be modified arbitrarily if this key signs a
       * transaction to modify it. If this is null, then such modifications are not possible, and
       * there is no administrator that can override the normal operation of this smart contract
       * instance. Note that if it is created with no admin keys, then there is no administrator
       * to authorize changing the admin keys, so there can never be any admin keys for that
       * instance.
       * 
* * .proto.Key adminKey = 4; */ public Builder mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { if (adminKeyBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && adminKey_ != null && adminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getAdminKeyBuilder().mergeFrom(value); } else { adminKey_ = value; } } else { adminKeyBuilder_.mergeFrom(value); } if (adminKey_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       **
       * the state of the instance and its fields can be modified arbitrarily if this key signs a
       * transaction to modify it. If this is null, then such modifications are not possible, and
       * there is no administrator that can override the normal operation of this smart contract
       * instance. Note that if it is created with no admin keys, then there is no administrator
       * to authorize changing the admin keys, so there can never be any admin keys for that
       * instance.
       * 
* * .proto.Key adminKey = 4; */ public Builder clearAdminKey() { bitField0_ = (bitField0_ & ~0x00000008); adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } onChanged(); return this; } /** *
       **
       * the state of the instance and its fields can be modified arbitrarily if this key signs a
       * transaction to modify it. If this is null, then such modifications are not possible, and
       * there is no administrator that can override the normal operation of this smart contract
       * instance. Note that if it is created with no admin keys, then there is no administrator
       * to authorize changing the admin keys, so there can never be any admin keys for that
       * instance.
       * 
* * .proto.Key adminKey = 4; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getAdminKeyBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
       **
       * the state of the instance and its fields can be modified arbitrarily if this key signs a
       * transaction to modify it. If this is null, then such modifications are not possible, and
       * there is no administrator that can override the normal operation of this smart contract
       * instance. Note that if it is created with no admin keys, then there is no administrator
       * to authorize changing the admin keys, so there can never be any admin keys for that
       * instance.
       * 
* * .proto.Key adminKey = 4; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { if (adminKeyBuilder_ != null) { return adminKeyBuilder_.getMessageOrBuilder(); } else { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } } /** *
       **
       * the state of the instance and its fields can be modified arbitrarily if this key signs a
       * transaction to modify it. If this is null, then such modifications are not possible, and
       * there is no administrator that can override the normal operation of this smart contract
       * instance. Note that if it is created with no admin keys, then there is no administrator
       * to authorize changing the admin keys, so there can never be any admin keys for that
       * instance.
       * 
* * .proto.Key adminKey = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getAdminKeyFieldBuilder() { if (adminKeyBuilder_ == null) { adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getAdminKey(), getParentForChildren(), isClean()); adminKey_ = null; } return adminKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> expirationTimeBuilder_; /** *
       **
       * the current time at which this contract instance (and its account) is set to expire
       * 
* * .proto.Timestamp expirationTime = 5; * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return ((bitField0_ & 0x00000010) != 0); } /** *
       **
       * the current time at which this contract instance (and its account) is set to expire
       * 
* * .proto.Timestamp expirationTime = 5; * @return The expirationTime. */ public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** *
       **
       * the current time at which this contract instance (and its account) is set to expire
       * 
* * .proto.Timestamp expirationTime = 5; */ public Builder setExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; } else { expirationTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       **
       * the current time at which this contract instance (and its account) is set to expire
       * 
* * .proto.Timestamp expirationTime = 5; */ public Builder setExpirationTime( com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       **
       * the current time at which this contract instance (and its account) is set to expire
       * 
* * .proto.Timestamp expirationTime = 5; */ public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { if (expirationTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && expirationTime_ != null && expirationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) { getExpirationTimeBuilder().mergeFrom(value); } else { expirationTime_ = value; } } else { expirationTimeBuilder_.mergeFrom(value); } if (expirationTime_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       **
       * the current time at which this contract instance (and its account) is set to expire
       * 
* * .proto.Timestamp expirationTime = 5; */ public Builder clearExpirationTime() { bitField0_ = (bitField0_ & ~0x00000010); expirationTime_ = null; if (expirationTimeBuilder_ != null) { expirationTimeBuilder_.dispose(); expirationTimeBuilder_ = null; } onChanged(); return this; } /** *
       **
       * the current time at which this contract instance (and its account) is set to expire
       * 
* * .proto.Timestamp expirationTime = 5; */ public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpirationTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } /** *
       **
       * the current time at which this contract instance (and its account) is set to expire
       * 
* * .proto.Timestamp expirationTime = 5; */ public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_; } } /** *
       **
       * the current time at which this contract instance (and its account) is set to expire
       * 
* * .proto.Timestamp expirationTime = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> autoRenewPeriodBuilder_; /** *
       **
       * the expiration time will extend every this many seconds. If there are insufficient funds,
       * then it extends as long as possible. If the account is empty when it expires, then it is
       * deleted.
       * 
* * .proto.Duration autoRenewPeriod = 6; * @return Whether the autoRenewPeriod field is set. */ public boolean hasAutoRenewPeriod() { return ((bitField0_ & 0x00000020) != 0); } /** *
       **
       * the expiration time will extend every this many seconds. If there are insufficient funds,
       * then it extends as long as possible. If the account is empty when it expires, then it is
       * deleted.
       * 
* * .proto.Duration autoRenewPeriod = 6; * @return The autoRenewPeriod. */ public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() { if (autoRenewPeriodBuilder_ == null) { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_; } else { return autoRenewPeriodBuilder_.getMessage(); } } /** *
       **
       * the expiration time will extend every this many seconds. If there are insufficient funds,
       * then it extends as long as possible. If the account is empty when it expires, then it is
       * deleted.
       * 
* * .proto.Duration autoRenewPeriod = 6; */ public Builder setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) { if (autoRenewPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewPeriod_ = value; } else { autoRenewPeriodBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       **
       * the expiration time will extend every this many seconds. If there are insufficient funds,
       * then it extends as long as possible. If the account is empty when it expires, then it is
       * deleted.
       * 
* * .proto.Duration autoRenewPeriod = 6; */ public Builder setAutoRenewPeriod( com.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = builderForValue.build(); } else { autoRenewPeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       **
       * the expiration time will extend every this many seconds. If there are insufficient funds,
       * then it extends as long as possible. If the account is empty when it expires, then it is
       * deleted.
       * 
* * .proto.Duration autoRenewPeriod = 6; */ public Builder mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) { if (autoRenewPeriodBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && autoRenewPeriod_ != null && autoRenewPeriod_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) { getAutoRenewPeriodBuilder().mergeFrom(value); } else { autoRenewPeriod_ = value; } } else { autoRenewPeriodBuilder_.mergeFrom(value); } if (autoRenewPeriod_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       **
       * the expiration time will extend every this many seconds. If there are insufficient funds,
       * then it extends as long as possible. If the account is empty when it expires, then it is
       * deleted.
       * 
* * .proto.Duration autoRenewPeriod = 6; */ public Builder clearAutoRenewPeriod() { bitField0_ = (bitField0_ & ~0x00000020); autoRenewPeriod_ = null; if (autoRenewPeriodBuilder_ != null) { autoRenewPeriodBuilder_.dispose(); autoRenewPeriodBuilder_ = null; } onChanged(); return this; } /** *
       **
       * the expiration time will extend every this many seconds. If there are insufficient funds,
       * then it extends as long as possible. If the account is empty when it expires, then it is
       * deleted.
       * 
* * .proto.Duration autoRenewPeriod = 6; */ public com.hedera.hashgraph.sdk.proto.Duration.Builder getAutoRenewPeriodBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAutoRenewPeriodFieldBuilder().getBuilder(); } /** *
       **
       * the expiration time will extend every this many seconds. If there are insufficient funds,
       * then it extends as long as possible. If the account is empty when it expires, then it is
       * deleted.
       * 
* * .proto.Duration autoRenewPeriod = 6; */ public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() { if (autoRenewPeriodBuilder_ != null) { return autoRenewPeriodBuilder_.getMessageOrBuilder(); } else { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_; } } /** *
       **
       * the expiration time will extend every this many seconds. If there are insufficient funds,
       * then it extends as long as possible. If the account is empty when it expires, then it is
       * deleted.
       * 
* * .proto.Duration autoRenewPeriod = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> getAutoRenewPeriodFieldBuilder() { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>( getAutoRenewPeriod(), getParentForChildren(), isClean()); autoRenewPeriod_ = null; } return autoRenewPeriodBuilder_; } private long storage_ ; /** *
       **
       * number of bytes of storage being used by this instance (which affects the cost to extend
       * the expiration time)
       * 
* * int64 storage = 7; * @return The storage. */ @java.lang.Override public long getStorage() { return storage_; } /** *
       **
       * number of bytes of storage being used by this instance (which affects the cost to extend
       * the expiration time)
       * 
* * int64 storage = 7; * @param value The storage to set. * @return This builder for chaining. */ public Builder setStorage(long value) { storage_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       **
       * number of bytes of storage being used by this instance (which affects the cost to extend
       * the expiration time)
       * 
* * int64 storage = 7; * @return This builder for chaining. */ public Builder clearStorage() { bitField0_ = (bitField0_ & ~0x00000040); storage_ = 0L; onChanged(); return this; } private java.lang.Object memo_ = ""; /** *
       **
       * the memo associated with the contract (max 100 bytes)
       * 
* * string memo = 8; * @return The memo. */ public java.lang.String getMemo() { java.lang.Object ref = memo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       **
       * the memo associated with the contract (max 100 bytes)
       * 
* * string memo = 8; * @return The bytes for memo. */ public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = memo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       **
       * the memo associated with the contract (max 100 bytes)
       * 
* * string memo = 8; * @param value The memo to set. * @return This builder for chaining. */ public Builder setMemo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } memo_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       **
       * the memo associated with the contract (max 100 bytes)
       * 
* * string memo = 8; * @return This builder for chaining. */ public Builder clearMemo() { memo_ = getDefaultInstance().getMemo(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
       **
       * the memo associated with the contract (max 100 bytes)
       * 
* * string memo = 8; * @param value The bytes for memo to set. * @return This builder for chaining. */ public Builder setMemoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); memo_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private long balance_ ; /** *
       **
       * The current balance, in tinybars
       * 
* * uint64 balance = 9; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } /** *
       **
       * The current balance, in tinybars
       * 
* * uint64 balance = 9; * @param value The balance to set. * @return This builder for chaining. */ public Builder setBalance(long value) { balance_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       **
       * The current balance, in tinybars
       * 
* * uint64 balance = 9; * @return This builder for chaining. */ public Builder clearBalance() { bitField0_ = (bitField0_ & ~0x00000100); balance_ = 0L; onChanged(); return this; } private boolean deleted_ ; /** *
       **
       * Whether the contract has been deleted
       * 
* * bool deleted = 10; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return deleted_; } /** *
       **
       * Whether the contract has been deleted
       * 
* * bool deleted = 10; * @param value The deleted to set. * @return This builder for chaining. */ public Builder setDeleted(boolean value) { deleted_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       **
       * Whether the contract has been deleted
       * 
* * bool deleted = 10; * @return This builder for chaining. */ public Builder clearDeleted() { bitField0_ = (bitField0_ & ~0x00000200); deleted_ = false; onChanged(); return this; } private java.util.List tokenRelationships_ = java.util.Collections.emptyList(); private void ensureTokenRelationshipsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { tokenRelationships_ = new java.util.ArrayList(tokenRelationships_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenRelationship, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder, com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder> tokenRelationshipsBuilder_; /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getTokenRelationshipsList() { if (tokenRelationshipsBuilder_ == null) { return java.util.Collections.unmodifiableList(tokenRelationships_); } else { return tokenRelationshipsBuilder_.getMessageList(); } } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public int getTokenRelationshipsCount() { if (tokenRelationshipsBuilder_ == null) { return tokenRelationships_.size(); } else { return tokenRelationshipsBuilder_.getCount(); } } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship getTokenRelationships(int index) { if (tokenRelationshipsBuilder_ == null) { return tokenRelationships_.get(index); } else { return tokenRelationshipsBuilder_.getMessage(index); } } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder setTokenRelationships( int index, com.hedera.hashgraph.sdk.proto.TokenRelationship value) { if (tokenRelationshipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenRelationshipsIsMutable(); tokenRelationships_.set(index, value); onChanged(); } else { tokenRelationshipsBuilder_.setMessage(index, value); } return this; } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder setTokenRelationships( int index, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder builderForValue) { if (tokenRelationshipsBuilder_ == null) { ensureTokenRelationshipsIsMutable(); tokenRelationships_.set(index, builderForValue.build()); onChanged(); } else { tokenRelationshipsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder addTokenRelationships(com.hedera.hashgraph.sdk.proto.TokenRelationship value) { if (tokenRelationshipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenRelationshipsIsMutable(); tokenRelationships_.add(value); onChanged(); } else { tokenRelationshipsBuilder_.addMessage(value); } return this; } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder addTokenRelationships( int index, com.hedera.hashgraph.sdk.proto.TokenRelationship value) { if (tokenRelationshipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTokenRelationshipsIsMutable(); tokenRelationships_.add(index, value); onChanged(); } else { tokenRelationshipsBuilder_.addMessage(index, value); } return this; } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder addTokenRelationships( com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder builderForValue) { if (tokenRelationshipsBuilder_ == null) { ensureTokenRelationshipsIsMutable(); tokenRelationships_.add(builderForValue.build()); onChanged(); } else { tokenRelationshipsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder addTokenRelationships( int index, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder builderForValue) { if (tokenRelationshipsBuilder_ == null) { ensureTokenRelationshipsIsMutable(); tokenRelationships_.add(index, builderForValue.build()); onChanged(); } else { tokenRelationshipsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder addAllTokenRelationships( java.lang.Iterable values) { if (tokenRelationshipsBuilder_ == null) { ensureTokenRelationshipsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tokenRelationships_); onChanged(); } else { tokenRelationshipsBuilder_.addAllMessages(values); } return this; } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder clearTokenRelationships() { if (tokenRelationshipsBuilder_ == null) { tokenRelationships_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { tokenRelationshipsBuilder_.clear(); } return this; } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder removeTokenRelationships(int index) { if (tokenRelationshipsBuilder_ == null) { ensureTokenRelationshipsIsMutable(); tokenRelationships_.remove(index); onChanged(); } else { tokenRelationshipsBuilder_.remove(index); } return this; } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder getTokenRelationshipsBuilder( int index) { return getTokenRelationshipsFieldBuilder().getBuilder(index); } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder( int index) { if (tokenRelationshipsBuilder_ == null) { return tokenRelationships_.get(index); } else { return tokenRelationshipsBuilder_.getMessageOrBuilder(index); } } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getTokenRelationshipsOrBuilderList() { if (tokenRelationshipsBuilder_ != null) { return tokenRelationshipsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tokenRelationships_); } } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder addTokenRelationshipsBuilder() { return getTokenRelationshipsFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.TokenRelationship.getDefaultInstance()); } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder addTokenRelationshipsBuilder( int index) { return getTokenRelationshipsFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.TokenRelationship.getDefaultInstance()); } /** *
       **
       * [DEPRECATED] The metadata of the tokens associated to the contract. This field was 
       * deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed 
       * an account to be associated to an unlimited number of tokens. This scale makes it more 
       * efficient for users to consult mirror nodes to review their token associations.
       * 
* * repeated .proto.TokenRelationship tokenRelationships = 11 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getTokenRelationshipsBuilderList() { return getTokenRelationshipsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenRelationship, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder, com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder> getTokenRelationshipsFieldBuilder() { if (tokenRelationshipsBuilder_ == null) { tokenRelationshipsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenRelationship, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder, com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder>( tokenRelationships_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); tokenRelationships_ = null; } return tokenRelationshipsBuilder_; } private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY; /** *
       **
       * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
       * 
* * bytes ledger_id = 12; * @return The ledgerId. */ @java.lang.Override public com.google.protobuf.ByteString getLedgerId() { return ledgerId_; } /** *
       **
       * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
       * 
* * bytes ledger_id = 12; * @param value The ledgerId to set. * @return This builder for chaining. */ public Builder setLedgerId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ledgerId_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       **
       * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
       * 
* * bytes ledger_id = 12; * @return This builder for chaining. */ public Builder clearLedgerId() { bitField0_ = (bitField0_ & ~0x00000800); ledgerId_ = getDefaultInstance().getLedgerId(); onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> autoRenewAccountIdBuilder_; /** *
       **
       * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
       * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
       * 
* * .proto.AccountID auto_renew_account_id = 13; * @return Whether the autoRenewAccountId field is set. */ public boolean hasAutoRenewAccountId() { return ((bitField0_ & 0x00001000) != 0); } /** *
       **
       * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
       * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
       * 
* * .proto.AccountID auto_renew_account_id = 13; * @return The autoRenewAccountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccountId() { if (autoRenewAccountIdBuilder_ == null) { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } else { return autoRenewAccountIdBuilder_.getMessage(); } } /** *
       **
       * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
       * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
       * 
* * .proto.AccountID auto_renew_account_id = 13; */ public Builder setAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (autoRenewAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewAccountId_ = value; } else { autoRenewAccountIdBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       **
       * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
       * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
       * 
* * .proto.AccountID auto_renew_account_id = 13; */ public Builder setAutoRenewAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountId_ = builderForValue.build(); } else { autoRenewAccountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       **
       * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
       * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
       * 
* * .proto.AccountID auto_renew_account_id = 13; */ public Builder mergeAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (autoRenewAccountIdBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && autoRenewAccountId_ != null && autoRenewAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAutoRenewAccountIdBuilder().mergeFrom(value); } else { autoRenewAccountId_ = value; } } else { autoRenewAccountIdBuilder_.mergeFrom(value); } if (autoRenewAccountId_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** *
       **
       * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
       * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
       * 
* * .proto.AccountID auto_renew_account_id = 13; */ public Builder clearAutoRenewAccountId() { bitField0_ = (bitField0_ & ~0x00001000); autoRenewAccountId_ = null; if (autoRenewAccountIdBuilder_ != null) { autoRenewAccountIdBuilder_.dispose(); autoRenewAccountIdBuilder_ = null; } onChanged(); return this; } /** *
       **
       * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
       * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
       * 
* * .proto.AccountID auto_renew_account_id = 13; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAutoRenewAccountIdBuilder() { bitField0_ |= 0x00001000; onChanged(); return getAutoRenewAccountIdFieldBuilder().getBuilder(); } /** *
       **
       * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
       * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
       * 
* * .proto.AccountID auto_renew_account_id = 13; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() { if (autoRenewAccountIdBuilder_ != null) { return autoRenewAccountIdBuilder_.getMessageOrBuilder(); } else { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } } /** *
       **
       * ID of the an account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar
       * balance, the contract's own hbar balance will be used to cover auto-renewal fees.
       * 
* * .proto.AccountID auto_renew_account_id = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAutoRenewAccountIdFieldBuilder() { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getAutoRenewAccountId(), getParentForChildren(), isClean()); autoRenewAccountId_ = null; } return autoRenewAccountIdBuilder_; } private int maxAutomaticTokenAssociations_ ; /** *
       **
       * The maximum number of tokens that a contract can be implicitly associated with.
       * 
* * int32 max_automatic_token_associations = 14; * @return The maxAutomaticTokenAssociations. */ @java.lang.Override public int getMaxAutomaticTokenAssociations() { return maxAutomaticTokenAssociations_; } /** *
       **
       * The maximum number of tokens that a contract can be implicitly associated with.
       * 
* * int32 max_automatic_token_associations = 14; * @param value The maxAutomaticTokenAssociations to set. * @return This builder for chaining. */ public Builder setMaxAutomaticTokenAssociations(int value) { maxAutomaticTokenAssociations_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
       **
       * The maximum number of tokens that a contract can be implicitly associated with.
       * 
* * int32 max_automatic_token_associations = 14; * @return This builder for chaining. */ public Builder clearMaxAutomaticTokenAssociations() { bitField0_ = (bitField0_ & ~0x00002000); maxAutomaticTokenAssociations_ = 0; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.StakingInfo stakingInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.StakingInfo, com.hedera.hashgraph.sdk.proto.StakingInfo.Builder, com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder> stakingInfoBuilder_; /** *
       **
       * Staking metadata for this contract.
       * 
* * .proto.StakingInfo staking_info = 15; * @return Whether the stakingInfo field is set. */ public boolean hasStakingInfo() { return ((bitField0_ & 0x00004000) != 0); } /** *
       **
       * Staking metadata for this contract.
       * 
* * .proto.StakingInfo staking_info = 15; * @return The stakingInfo. */ public com.hedera.hashgraph.sdk.proto.StakingInfo getStakingInfo() { if (stakingInfoBuilder_ == null) { return stakingInfo_ == null ? com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance() : stakingInfo_; } else { return stakingInfoBuilder_.getMessage(); } } /** *
       **
       * Staking metadata for this contract.
       * 
* * .proto.StakingInfo staking_info = 15; */ public Builder setStakingInfo(com.hedera.hashgraph.sdk.proto.StakingInfo value) { if (stakingInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stakingInfo_ = value; } else { stakingInfoBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       **
       * Staking metadata for this contract.
       * 
* * .proto.StakingInfo staking_info = 15; */ public Builder setStakingInfo( com.hedera.hashgraph.sdk.proto.StakingInfo.Builder builderForValue) { if (stakingInfoBuilder_ == null) { stakingInfo_ = builderForValue.build(); } else { stakingInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       **
       * Staking metadata for this contract.
       * 
* * .proto.StakingInfo staking_info = 15; */ public Builder mergeStakingInfo(com.hedera.hashgraph.sdk.proto.StakingInfo value) { if (stakingInfoBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && stakingInfo_ != null && stakingInfo_ != com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance()) { getStakingInfoBuilder().mergeFrom(value); } else { stakingInfo_ = value; } } else { stakingInfoBuilder_.mergeFrom(value); } if (stakingInfo_ != null) { bitField0_ |= 0x00004000; onChanged(); } return this; } /** *
       **
       * Staking metadata for this contract.
       * 
* * .proto.StakingInfo staking_info = 15; */ public Builder clearStakingInfo() { bitField0_ = (bitField0_ & ~0x00004000); stakingInfo_ = null; if (stakingInfoBuilder_ != null) { stakingInfoBuilder_.dispose(); stakingInfoBuilder_ = null; } onChanged(); return this; } /** *
       **
       * Staking metadata for this contract.
       * 
* * .proto.StakingInfo staking_info = 15; */ public com.hedera.hashgraph.sdk.proto.StakingInfo.Builder getStakingInfoBuilder() { bitField0_ |= 0x00004000; onChanged(); return getStakingInfoFieldBuilder().getBuilder(); } /** *
       **
       * Staking metadata for this contract.
       * 
* * .proto.StakingInfo staking_info = 15; */ public com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder getStakingInfoOrBuilder() { if (stakingInfoBuilder_ != null) { return stakingInfoBuilder_.getMessageOrBuilder(); } else { return stakingInfo_ == null ? com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance() : stakingInfo_; } } /** *
       **
       * Staking metadata for this contract.
       * 
* * .proto.StakingInfo staking_info = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.StakingInfo, com.hedera.hashgraph.sdk.proto.StakingInfo.Builder, com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder> getStakingInfoFieldBuilder() { if (stakingInfoBuilder_ == null) { stakingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.StakingInfo, com.hedera.hashgraph.sdk.proto.StakingInfo.Builder, com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder>( getStakingInfo(), getParentForChildren(), isClean()); stakingInfo_ = null; } return stakingInfoBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.ContractGetInfoResponse.ContractInfo) } // @@protoc_insertion_point(class_scope:proto.ContractGetInfoResponse.ContractInfo) private static final com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo(); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContractInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.ResponseHeader header_; /** *
   **
   * standard response from node to client, including the requested fields: cost, or state proof,
   * or both, or neither
   * 
* * .proto.ResponseHeader header = 1; * @return Whether the header field is set. */ @java.lang.Override public boolean hasHeader() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * standard response from node to client, including the requested fields: cost, or state proof,
   * or both, or neither
   * 
* * .proto.ResponseHeader header = 1; * @return The header. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ResponseHeader getHeader() { return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_; } /** *
   **
   * standard response from node to client, including the requested fields: cost, or state proof,
   * or both, or neither
   * 
* * .proto.ResponseHeader header = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() { return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_; } public static final int CONTRACTINFO_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo contractInfo_; /** *
   **
   * the information about this contract instance (a state proof can be generated for this)
   * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; * @return Whether the contractInfo field is set. */ @java.lang.Override public boolean hasContractInfo() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * the information about this contract instance (a state proof can be generated for this)
   * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; * @return The contractInfo. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo getContractInfo() { return contractInfo_ == null ? com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.getDefaultInstance() : contractInfo_; } /** *
   **
   * the information about this contract instance (a state proof can be generated for this)
   * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfoOrBuilder getContractInfoOrBuilder() { return contractInfo_ == null ? com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.getDefaultInstance() : contractInfo_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getHeader()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getContractInfo()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getContractInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse other = (com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } if (hasContractInfo() != other.hasContractInfo()) return false; if (hasContractInfo()) { if (!getContractInfo() .equals(other.getContractInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasContractInfo()) { hash = (37 * hash) + CONTRACTINFO_FIELD_NUMBER; hash = (53 * hash) + getContractInfo().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * Response when the client sends the node ContractGetInfoQuery
   * 
* * Protobuf type {@code proto.ContractGetInfoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ContractGetInfoResponse) com.hedera.hashgraph.sdk.proto.ContractGetInfoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.class, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHeaderFieldBuilder(); getContractInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; header_ = null; if (headerBuilder_ != null) { headerBuilder_.dispose(); headerBuilder_ = null; } contractInfo_ = null; if (contractInfoBuilder_ != null) { contractInfoBuilder_.dispose(); contractInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse build() { com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse buildPartial() { com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse result = new com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.header_ = headerBuilder_ == null ? header_ : headerBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.contractInfo_ = contractInfoBuilder_ == null ? contractInfo_ : contractInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse) { return mergeFrom((com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse other) { if (other == com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasContractInfo()) { mergeContractInfo(other.getContractInfo()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getHeaderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getContractInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.ResponseHeader header_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder> headerBuilder_; /** *
     **
     * standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; * @return Whether the header field is set. */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; * @return The header. */ public com.hedera.hashgraph.sdk.proto.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** *
     **
     * standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public Builder setHeader(com.hedera.hashgraph.sdk.proto.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; } else { headerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public Builder setHeader( com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); } else { headerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public Builder mergeHeader(com.hedera.hashgraph.sdk.proto.ResponseHeader value) { if (headerBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && header_ != null && header_ != com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance()) { getHeaderBuilder().mergeFrom(value); } else { header_ = value; } } else { headerBuilder_.mergeFrom(value); } if (header_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public Builder clearHeader() { bitField0_ = (bitField0_ & ~0x00000001); header_ = null; if (headerBuilder_ != null) { headerBuilder_.dispose(); headerBuilder_ = null; } onChanged(); return this; } /** *
     **
     * standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder getHeaderBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** *
     **
     * standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ public com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_; } } /** *
     **
     * standard response from node to client, including the requested fields: cost, or state proof,
     * or both, or neither
     * 
* * .proto.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo contractInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.Builder, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfoOrBuilder> contractInfoBuilder_; /** *
     **
     * the information about this contract instance (a state proof can be generated for this)
     * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; * @return Whether the contractInfo field is set. */ public boolean hasContractInfo() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * the information about this contract instance (a state proof can be generated for this)
     * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; * @return The contractInfo. */ public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo getContractInfo() { if (contractInfoBuilder_ == null) { return contractInfo_ == null ? com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.getDefaultInstance() : contractInfo_; } else { return contractInfoBuilder_.getMessage(); } } /** *
     **
     * the information about this contract instance (a state proof can be generated for this)
     * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; */ public Builder setContractInfo(com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo value) { if (contractInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractInfo_ = value; } else { contractInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * the information about this contract instance (a state proof can be generated for this)
     * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; */ public Builder setContractInfo( com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.Builder builderForValue) { if (contractInfoBuilder_ == null) { contractInfo_ = builderForValue.build(); } else { contractInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * the information about this contract instance (a state proof can be generated for this)
     * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; */ public Builder mergeContractInfo(com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo value) { if (contractInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && contractInfo_ != null && contractInfo_ != com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.getDefaultInstance()) { getContractInfoBuilder().mergeFrom(value); } else { contractInfo_ = value; } } else { contractInfoBuilder_.mergeFrom(value); } if (contractInfo_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * the information about this contract instance (a state proof can be generated for this)
     * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; */ public Builder clearContractInfo() { bitField0_ = (bitField0_ & ~0x00000002); contractInfo_ = null; if (contractInfoBuilder_ != null) { contractInfoBuilder_.dispose(); contractInfoBuilder_ = null; } onChanged(); return this; } /** *
     **
     * the information about this contract instance (a state proof can be generated for this)
     * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; */ public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.Builder getContractInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getContractInfoFieldBuilder().getBuilder(); } /** *
     **
     * the information about this contract instance (a state proof can be generated for this)
     * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; */ public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfoOrBuilder getContractInfoOrBuilder() { if (contractInfoBuilder_ != null) { return contractInfoBuilder_.getMessageOrBuilder(); } else { return contractInfo_ == null ? com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.getDefaultInstance() : contractInfo_; } } /** *
     **
     * the information about this contract instance (a state proof can be generated for this)
     * 
* * .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.Builder, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfoOrBuilder> getContractInfoFieldBuilder() { if (contractInfoBuilder_ == null) { contractInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfo.Builder, com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse.ContractInfoOrBuilder>( getContractInfo(), getParentForChildren(), isClean()); contractInfo_ = null; } return contractInfoBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.ContractGetInfoResponse) } // @@protoc_insertion_point(class_scope:proto.ContractGetInfoResponse) private static final com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse(); } public static com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContractGetInfoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy