com.hederahashgraph.api.proto.java.ContractGetInfoResponse Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: contract_get_info.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContractGetInfoResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.hederahashgraph.api.proto.java.ResponseHeader.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(com.hederahashgraph.api.proto.java.ResponseHeader.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.Builder subBuilder = null;
if (contractInfo_ != null) {
subBuilder = contractInfo_.toBuilder();
}
contractInfo_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contractInfo_);
contractInfo_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.class, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID getContractID();
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
*/
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID getAccountID();
/**
*
**
* ID of the cryptocurrency account owned by the contract instance, in the format used in
* transactions
*
*
* .proto.AccountID accountID = 2;
*/
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp getExpirationTime();
/**
*
**
* the current time at which this contract instance (and its account) is set to expire
*
*
* .proto.Timestamp expirationTime = 5;
*/
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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 extends com.hederahashgraph.api.proto.java.TokenRelationshipOrBuilder>
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.StakingInfo getStakingInfo();
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
*/
com.hederahashgraph.api.proto.java.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContractInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null;
if (contractID_ != null) {
subBuilder = contractID_.toBuilder();
}
contractID_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contractID_);
contractID_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (accountID_ != null) {
subBuilder = accountID_.toBuilder();
}
accountID_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(accountID_);
accountID_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
contractAccountID_ = s;
break;
}
case 34: {
com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null;
if (adminKey_ != null) {
subBuilder = adminKey_.toBuilder();
}
adminKey_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(adminKey_);
adminKey_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null;
if (expirationTime_ != null) {
subBuilder = expirationTime_.toBuilder();
}
expirationTime_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expirationTime_);
expirationTime_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.hederahashgraph.api.proto.java.Duration.Builder subBuilder = null;
if (autoRenewPeriod_ != null) {
subBuilder = autoRenewPeriod_.toBuilder();
}
autoRenewPeriod_ = input.readMessage(com.hederahashgraph.api.proto.java.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(autoRenewPeriod_);
autoRenewPeriod_ = subBuilder.buildPartial();
}
break;
}
case 56: {
storage_ = input.readInt64();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
memo_ = s;
break;
}
case 72: {
balance_ = input.readUInt64();
break;
}
case 80: {
deleted_ = input.readBool();
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
tokenRelationships_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tokenRelationships_.add(
input.readMessage(com.hederahashgraph.api.proto.java.TokenRelationship.parser(), extensionRegistry));
break;
}
case 98: {
ledgerId_ = input.readBytes();
break;
}
case 106: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (autoRenewAccountId_ != null) {
subBuilder = autoRenewAccountId_.toBuilder();
}
autoRenewAccountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(autoRenewAccountId_);
autoRenewAccountId_ = subBuilder.buildPartial();
}
break;
}
case 112: {
maxAutomaticTokenAssociations_ = input.readInt32();
break;
}
case 122: {
com.hederahashgraph.api.proto.java.StakingInfo.Builder subBuilder = null;
if (stakingInfo_ != null) {
subBuilder = stakingInfo_.toBuilder();
}
stakingInfo_ = input.readMessage(com.hederahashgraph.api.proto.java.StakingInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stakingInfo_);
stakingInfo_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
tokenRelationships_ = java.util.Collections.unmodifiableList(tokenRelationships_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.class, com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.Builder.class);
}
public static final int CONTRACTID_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.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 contractID_ != null;
}
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
* @return The contractID.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractID getContractID() {
return contractID_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_;
}
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
return getContractID();
}
public static final int ACCOUNTID_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.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 accountID_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getAccountID() {
return accountID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() {
return getAccountID();
}
public static final int CONTRACTACCOUNTID_FIELD_NUMBER = 3;
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.hederahashgraph.api.proto.java.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 adminKey_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.Key getAdminKey() {
return adminKey_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() {
return getAdminKey();
}
public static final int EXPIRATIONTIME_FIELD_NUMBER = 5;
private com.hederahashgraph.api.proto.java.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 expirationTime_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.Timestamp getExpirationTime() {
return expirationTime_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() {
return getExpirationTime();
}
public static final int AUTORENEWPERIOD_FIELD_NUMBER = 6;
private com.hederahashgraph.api.proto.java.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 autoRenewPeriod_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() {
return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
return getAutoRenewPeriod();
}
public static final int STORAGE_FIELD_NUMBER = 7;
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_;
}
public static final int MEMO_FIELD_NUMBER = 8;
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_;
/**
*
**
* 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_;
/**
*
**
* 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;
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 extends com.hederahashgraph.api.proto.java.TokenRelationshipOrBuilder>
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder(
int index) {
return tokenRelationships_.get(index);
}
public static final int LEDGER_ID_FIELD_NUMBER = 12;
private com.google.protobuf.ByteString 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;
* @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.hederahashgraph.api.proto.java.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 autoRenewAccountId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getAutoRenewAccountId() {
return autoRenewAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() {
return getAutoRenewAccountId();
}
public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 14;
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_;
}
public static final int STAKING_INFO_FIELD_NUMBER = 15;
private com.hederahashgraph.api.proto.java.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 stakingInfo_ != null;
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
* @return The stakingInfo.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.StakingInfo getStakingInfo() {
return stakingInfo_ == null ? com.hederahashgraph.api.proto.java.StakingInfo.getDefaultInstance() : stakingInfo_;
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.StakingInfoOrBuilder getStakingInfoOrBuilder() {
return getStakingInfo();
}
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 (contractID_ != null) {
output.writeMessage(1, getContractID());
}
if (accountID_ != null) {
output.writeMessage(2, getAccountID());
}
if (!getContractAccountIDBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contractAccountID_);
}
if (adminKey_ != null) {
output.writeMessage(4, getAdminKey());
}
if (expirationTime_ != null) {
output.writeMessage(5, getExpirationTime());
}
if (autoRenewPeriod_ != null) {
output.writeMessage(6, getAutoRenewPeriod());
}
if (storage_ != 0L) {
output.writeInt64(7, storage_);
}
if (!getMemoBytes().isEmpty()) {
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 (autoRenewAccountId_ != null) {
output.writeMessage(13, getAutoRenewAccountId());
}
if (maxAutomaticTokenAssociations_ != 0) {
output.writeInt32(14, maxAutomaticTokenAssociations_);
}
if (stakingInfo_ != null) {
output.writeMessage(15, getStakingInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contractID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContractID());
}
if (accountID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccountID());
}
if (!getContractAccountIDBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contractAccountID_);
}
if (adminKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAdminKey());
}
if (expirationTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getExpirationTime());
}
if (autoRenewPeriod_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getAutoRenewPeriod());
}
if (storage_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, storage_);
}
if (!getMemoBytes().isEmpty()) {
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 (autoRenewAccountId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getAutoRenewAccountId());
}
if (maxAutomaticTokenAssociations_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, maxAutomaticTokenAssociations_);
}
if (stakingInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getStakingInfo());
}
size += unknownFields.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.class, com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.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) {
getTokenRelationshipsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (contractIDBuilder_ == null) {
contractID_ = null;
} else {
contractID_ = null;
contractIDBuilder_ = null;
}
if (accountIDBuilder_ == null) {
accountID_ = null;
} else {
accountID_ = null;
accountIDBuilder_ = null;
}
contractAccountID_ = "";
if (adminKeyBuilder_ == null) {
adminKey_ = null;
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
storage_ = 0L;
memo_ = "";
balance_ = 0L;
deleted_ = false;
if (tokenRelationshipsBuilder_ == null) {
tokenRelationships_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
tokenRelationshipsBuilder_.clear();
}
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountId_ = null;
} else {
autoRenewAccountId_ = null;
autoRenewAccountIdBuilder_ = null;
}
maxAutomaticTokenAssociations_ = 0;
if (stakingInfoBuilder_ == null) {
stakingInfo_ = null;
} else {
stakingInfo_ = null;
stakingInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_ContractInfo_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo build() {
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo buildPartial() {
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo result = new com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo(this);
int from_bitField0_ = bitField0_;
if (contractIDBuilder_ == null) {
result.contractID_ = contractID_;
} else {
result.contractID_ = contractIDBuilder_.build();
}
if (accountIDBuilder_ == null) {
result.accountID_ = accountID_;
} else {
result.accountID_ = accountIDBuilder_.build();
}
result.contractAccountID_ = contractAccountID_;
if (adminKeyBuilder_ == null) {
result.adminKey_ = adminKey_;
} else {
result.adminKey_ = adminKeyBuilder_.build();
}
if (expirationTimeBuilder_ == null) {
result.expirationTime_ = expirationTime_;
} else {
result.expirationTime_ = expirationTimeBuilder_.build();
}
if (autoRenewPeriodBuilder_ == null) {
result.autoRenewPeriod_ = autoRenewPeriod_;
} else {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_.build();
}
result.storage_ = storage_;
result.memo_ = memo_;
result.balance_ = balance_;
result.deleted_ = deleted_;
if (tokenRelationshipsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
tokenRelationships_ = java.util.Collections.unmodifiableList(tokenRelationships_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tokenRelationships_ = tokenRelationships_;
} else {
result.tokenRelationships_ = tokenRelationshipsBuilder_.build();
}
result.ledgerId_ = ledgerId_;
if (autoRenewAccountIdBuilder_ == null) {
result.autoRenewAccountId_ = autoRenewAccountId_;
} else {
result.autoRenewAccountId_ = autoRenewAccountIdBuilder_.build();
}
result.maxAutomaticTokenAssociations_ = maxAutomaticTokenAssociations_;
if (stakingInfoBuilder_ == null) {
result.stakingInfo_ = stakingInfo_;
} else {
result.stakingInfo_ = stakingInfoBuilder_.build();
}
onBuilt();
return result;
}
@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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo) {
return mergeFrom((com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo other) {
if (other == com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.getDefaultInstance()) return this;
if (other.hasContractID()) {
mergeContractID(other.getContractID());
}
if (other.hasAccountID()) {
mergeAccountID(other.getAccountID());
}
if (!other.getContractAccountID().isEmpty()) {
contractAccountID_ = other.contractAccountID_;
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_;
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_ & ~0x00000001);
} else {
ensureTokenRelationshipsIsMutable();
tokenRelationships_.addAll(other.tokenRelationships_);
}
onChanged();
}
} else {
if (!other.tokenRelationships_.isEmpty()) {
if (tokenRelationshipsBuilder_.isEmpty()) {
tokenRelationshipsBuilder_.dispose();
tokenRelationshipsBuilder_ = null;
tokenRelationships_ = other.tokenRelationships_;
bitField0_ = (bitField0_ & ~0x00000001);
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.unknownFields);
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 {
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.hederahashgraph.api.proto.java.ContractID contractID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.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 contractIDBuilder_ != null || contractID_ != null;
}
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
* @return The contractID.
*/
public com.hederahashgraph.api.proto.java.ContractID getContractID() {
if (contractIDBuilder_ == null) {
return contractID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID value) {
if (contractIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractID_ = value;
onChanged();
} else {
contractIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
*/
public Builder setContractID(
com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
contractID_ = builderForValue.build();
onChanged();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
*/
public Builder mergeContractID(com.hederahashgraph.api.proto.java.ContractID value) {
if (contractIDBuilder_ == null) {
if (contractID_ != null) {
contractID_ =
com.hederahashgraph.api.proto.java.ContractID.newBuilder(contractID_).mergeFrom(value).buildPartial();
} else {
contractID_ = value;
}
onChanged();
} else {
contractIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
*/
public Builder clearContractID() {
if (contractIDBuilder_ == null) {
contractID_ = null;
onChanged();
} else {
contractID_ = null;
contractIDBuilder_ = null;
}
return this;
}
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
*/
public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() {
onChanged();
return getContractIDFieldBuilder().getBuilder();
}
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
*/
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
if (contractIDBuilder_ != null) {
return contractIDBuilder_.getMessageOrBuilder();
} else {
return contractID_ == null ?
com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_;
}
}
/**
*
**
* ID of the contract instance, in the format used in transactions
*
*
* .proto.ContractID contractID = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>
getContractIDFieldBuilder() {
if (contractIDBuilder_ == null) {
contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>(
getContractID(),
getParentForChildren(),
isClean());
contractID_ = null;
}
return contractIDBuilder_;
}
private com.hederahashgraph.api.proto.java.AccountID accountID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 accountIDBuilder_ != null || accountID_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getAccountID() {
if (accountIDBuilder_ == null) {
return accountID_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) {
if (accountIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountID_ = value;
onChanged();
} else {
accountIDBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (accountIDBuilder_ == null) {
accountID_ = builderForValue.build();
onChanged();
} else {
accountIDBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.AccountID value) {
if (accountIDBuilder_ == null) {
if (accountID_ != null) {
accountID_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(accountID_).mergeFrom(value).buildPartial();
} else {
accountID_ = value;
}
onChanged();
} else {
accountIDBuilder_.mergeFrom(value);
}
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() {
if (accountIDBuilder_ == null) {
accountID_ = null;
onChanged();
} else {
accountID_ = null;
accountIDBuilder_ = null;
}
return this;
}
/**
*
**
* ID of the cryptocurrency account owned by the contract instance, in the format used in
* transactions
*
*
* .proto.AccountID accountID = 2;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getAccountIDBuilder() {
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.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() {
if (accountIDBuilder_ != null) {
return accountIDBuilder_.getMessageOrBuilder();
} else {
return accountID_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getAccountIDFieldBuilder() {
if (accountIDBuilder_ == null) {
accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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;
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();
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;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Key adminKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.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 adminKeyBuilder_ != null || adminKey_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.Key getAdminKey() {
if (adminKeyBuilder_ == null) {
return adminKey_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Key value) {
if (adminKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adminKey_ = value;
onChanged();
} else {
adminKeyBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (adminKeyBuilder_ == null) {
adminKey_ = builderForValue.build();
onChanged();
} else {
adminKeyBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.Key value) {
if (adminKeyBuilder_ == null) {
if (adminKey_ != null) {
adminKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(adminKey_).mergeFrom(value).buildPartial();
} else {
adminKey_ = value;
}
onChanged();
} else {
adminKeyBuilder_.mergeFrom(value);
}
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() {
if (adminKeyBuilder_ == null) {
adminKey_ = null;
onChanged();
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
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.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() {
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.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() {
if (adminKeyBuilder_ != null) {
return adminKeyBuilder_.getMessageOrBuilder();
} else {
return adminKey_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getAdminKeyFieldBuilder() {
if (adminKeyBuilder_ == null) {
adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getAdminKey(),
getParentForChildren(),
isClean());
adminKey_ = null;
}
return adminKeyBuilder_;
}
private com.hederahashgraph.api.proto.java.Timestamp expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.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 expirationTimeBuilder_ != null || expirationTime_ != null;
}
/**
*
**
* the current time at which this contract instance (and its account) is set to expire
*
*
* .proto.Timestamp expirationTime = 5;
* @return The expirationTime.
*/
public com.hederahashgraph.api.proto.java.Timestamp getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
onChanged();
} else {
expirationTimeBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
onChanged();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (expirationTime_ != null) {
expirationTime_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial();
} else {
expirationTime_ = value;
}
onChanged();
} else {
expirationTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* the current time at which this contract instance (and its account) is set to expire
*
*
* .proto.Timestamp expirationTime = 5;
*/
public Builder clearExpirationTime() {
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
onChanged();
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
return this;
}
/**
*
**
* the current time at which this contract instance (and its account) is set to expire
*
*
* .proto.Timestamp expirationTime = 5;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getExpirationTimeBuilder() {
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.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getExpirationTime(),
getParentForChildren(),
isClean());
expirationTime_ = null;
}
return expirationTimeBuilder_;
}
private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.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 autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewPeriod_ = value;
onChanged();
} else {
autoRenewPeriodBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.Duration.Builder builderForValue) {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = builderForValue.build();
onChanged();
} else {
autoRenewPeriodBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (autoRenewPeriod_ != null) {
autoRenewPeriod_ =
com.hederahashgraph.api.proto.java.Duration.newBuilder(autoRenewPeriod_).mergeFrom(value).buildPartial();
} else {
autoRenewPeriod_ = value;
}
onChanged();
} else {
autoRenewPeriodBuilder_.mergeFrom(value);
}
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() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
onChanged();
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
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.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() {
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.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
if (autoRenewPeriodBuilder_ != null) {
return autoRenewPeriodBuilder_.getMessageOrBuilder();
} else {
return autoRenewPeriod_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder>
getAutoRenewPeriodFieldBuilder() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.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;
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() {
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;
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();
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;
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;
onChanged();
return this;
}
/**
*
**
* The current balance, in tinybars
*
*
* uint64 balance = 9;
* @return This builder for chaining.
*/
public Builder clearBalance() {
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;
onChanged();
return this;
}
/**
*
**
* Whether the contract has been deleted
*
*
* bool deleted = 10;
* @return This builder for chaining.
*/
public Builder clearDeleted() {
deleted_ = false;
onChanged();
return this;
}
private java.util.List tokenRelationships_ =
java.util.Collections.emptyList();
private void ensureTokenRelationshipsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
tokenRelationships_ = new java.util.ArrayList(tokenRelationships_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenRelationship, com.hederahashgraph.api.proto.java.TokenRelationship.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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 extends com.hederahashgraph.api.proto.java.TokenRelationship> 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_ & ~0x00000001);
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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 extends com.hederahashgraph.api.proto.java.TokenRelationshipOrBuilder>
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.hederahashgraph.api.proto.java.TokenRelationship.Builder addTokenRelationshipsBuilder() {
return getTokenRelationshipsFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenRelationship.Builder addTokenRelationshipsBuilder(
int index) {
return getTokenRelationshipsFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenRelationship, com.hederahashgraph.api.proto.java.TokenRelationship.Builder, com.hederahashgraph.api.proto.java.TokenRelationshipOrBuilder>
getTokenRelationshipsFieldBuilder() {
if (tokenRelationshipsBuilder_ == null) {
tokenRelationshipsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenRelationship, com.hederahashgraph.api.proto.java.TokenRelationship.Builder, com.hederahashgraph.api.proto.java.TokenRelationshipOrBuilder>(
tokenRelationships_,
((bitField0_ & 0x00000001) != 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;
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() {
ledgerId_ = getDefaultInstance().getLedgerId();
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID autoRenewAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 autoRenewAccountIdBuilder_ != null || autoRenewAccountId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getAutoRenewAccountId() {
if (autoRenewAccountIdBuilder_ == null) {
return autoRenewAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewAccountId_ = value;
onChanged();
} else {
autoRenewAccountIdBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountId_ = builderForValue.build();
onChanged();
} else {
autoRenewAccountIdBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountIdBuilder_ == null) {
if (autoRenewAccountId_ != null) {
autoRenewAccountId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(autoRenewAccountId_).mergeFrom(value).buildPartial();
} else {
autoRenewAccountId_ = value;
}
onChanged();
} else {
autoRenewAccountIdBuilder_.mergeFrom(value);
}
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() {
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountId_ = null;
onChanged();
} else {
autoRenewAccountId_ = null;
autoRenewAccountIdBuilder_ = null;
}
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.hederahashgraph.api.proto.java.AccountID.Builder getAutoRenewAccountIdBuilder() {
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.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() {
if (autoRenewAccountIdBuilder_ != null) {
return autoRenewAccountIdBuilder_.getMessageOrBuilder();
} else {
return autoRenewAccountId_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getAutoRenewAccountIdFieldBuilder() {
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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;
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() {
maxAutomaticTokenAssociations_ = 0;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.StakingInfo stakingInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.StakingInfo, com.hederahashgraph.api.proto.java.StakingInfo.Builder, com.hederahashgraph.api.proto.java.StakingInfoOrBuilder> stakingInfoBuilder_;
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
* @return Whether the stakingInfo field is set.
*/
public boolean hasStakingInfo() {
return stakingInfoBuilder_ != null || stakingInfo_ != null;
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
* @return The stakingInfo.
*/
public com.hederahashgraph.api.proto.java.StakingInfo getStakingInfo() {
if (stakingInfoBuilder_ == null) {
return stakingInfo_ == null ? com.hederahashgraph.api.proto.java.StakingInfo.getDefaultInstance() : stakingInfo_;
} else {
return stakingInfoBuilder_.getMessage();
}
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
*/
public Builder setStakingInfo(com.hederahashgraph.api.proto.java.StakingInfo value) {
if (stakingInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stakingInfo_ = value;
onChanged();
} else {
stakingInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
*/
public Builder setStakingInfo(
com.hederahashgraph.api.proto.java.StakingInfo.Builder builderForValue) {
if (stakingInfoBuilder_ == null) {
stakingInfo_ = builderForValue.build();
onChanged();
} else {
stakingInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
*/
public Builder mergeStakingInfo(com.hederahashgraph.api.proto.java.StakingInfo value) {
if (stakingInfoBuilder_ == null) {
if (stakingInfo_ != null) {
stakingInfo_ =
com.hederahashgraph.api.proto.java.StakingInfo.newBuilder(stakingInfo_).mergeFrom(value).buildPartial();
} else {
stakingInfo_ = value;
}
onChanged();
} else {
stakingInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
*/
public Builder clearStakingInfo() {
if (stakingInfoBuilder_ == null) {
stakingInfo_ = null;
onChanged();
} else {
stakingInfo_ = null;
stakingInfoBuilder_ = null;
}
return this;
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
*/
public com.hederahashgraph.api.proto.java.StakingInfo.Builder getStakingInfoBuilder() {
onChanged();
return getStakingInfoFieldBuilder().getBuilder();
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
*/
public com.hederahashgraph.api.proto.java.StakingInfoOrBuilder getStakingInfoOrBuilder() {
if (stakingInfoBuilder_ != null) {
return stakingInfoBuilder_.getMessageOrBuilder();
} else {
return stakingInfo_ == null ?
com.hederahashgraph.api.proto.java.StakingInfo.getDefaultInstance() : stakingInfo_;
}
}
/**
*
**
* Staking metadata for this contract.
*
*
* .proto.StakingInfo staking_info = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.StakingInfo, com.hederahashgraph.api.proto.java.StakingInfo.Builder, com.hederahashgraph.api.proto.java.StakingInfoOrBuilder>
getStakingInfoFieldBuilder() {
if (stakingInfoBuilder_ == null) {
stakingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.StakingInfo, com.hederahashgraph.api.proto.java.StakingInfo.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo();
}
public static com.hederahashgraph.api.proto.java.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 {
return new ContractInfo(input, extensionRegistry);
}
};
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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int HEADER_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.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 header_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.ResponseHeader getHeader() {
return header_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int CONTRACTINFO_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.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 contractInfo_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo getContractInfo() {
return contractInfo_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfoOrBuilder getContractInfoOrBuilder() {
return getContractInfo();
}
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 (header_ != null) {
output.writeMessage(1, getHeader());
}
if (contractInfo_ != null) {
output.writeMessage(2, getContractInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (contractInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getContractInfo());
}
size += unknownFields.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.hederahashgraph.api.proto.java.ContractGetInfoResponse)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.ContractGetInfoResponse other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.ContractGetInfoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ContractGetInfoResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ContractGetInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ContractGetInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ContractGetInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.class, com.hederahashgraph.api.proto.java.ContractGetInfoResponse.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
if (contractInfoBuilder_ == null) {
contractInfo_ = null;
} else {
contractInfo_ = null;
contractInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ContractGetInfo.internal_static_proto_ContractGetInfoResponse_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractGetInfoResponse getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ContractGetInfoResponse.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractGetInfoResponse build() {
com.hederahashgraph.api.proto.java.ContractGetInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractGetInfoResponse buildPartial() {
com.hederahashgraph.api.proto.java.ContractGetInfoResponse result = new com.hederahashgraph.api.proto.java.ContractGetInfoResponse(this);
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (contractInfoBuilder_ == null) {
result.contractInfo_ = contractInfo_;
} else {
result.contractInfo_ = contractInfoBuilder_.build();
}
onBuilt();
return result;
}
@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.hederahashgraph.api.proto.java.ContractGetInfoResponse) {
return mergeFrom((com.hederahashgraph.api.proto.java.ContractGetInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ContractGetInfoResponse other) {
if (other == com.hederahashgraph.api.proto.java.ContractGetInfoResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasContractInfo()) {
mergeContractInfo(other.getContractInfo());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.hederahashgraph.api.proto.java.ContractGetInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.ContractGetInfoResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.hederahashgraph.api.proto.java.ResponseHeader header_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ResponseHeader, com.hederahashgraph.api.proto.java.ResponseHeader.Builder, com.hederahashgraph.api.proto.java.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 headerBuilder_ != null || header_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.ResponseHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ResponseHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.ResponseHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.ResponseHeader value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
com.hederahashgraph.api.proto.java.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
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() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
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.hederahashgraph.api.proto.java.ResponseHeader.Builder getHeaderBuilder() {
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.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ResponseHeader, com.hederahashgraph.api.proto.java.ResponseHeader.Builder, com.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ResponseHeader, com.hederahashgraph.api.proto.java.ResponseHeader.Builder, com.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo contractInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo, com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.Builder, com.hederahashgraph.api.proto.java.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 contractInfoBuilder_ != null || contractInfo_ != null;
}
/**
*
**
* the information about this contract instance (a state proof can be generated for this)
*
*
* .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2;
* @return The contractInfo.
*/
public com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo getContractInfo() {
if (contractInfoBuilder_ == null) {
return contractInfo_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo value) {
if (contractInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractInfo_ = value;
onChanged();
} else {
contractInfoBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.Builder builderForValue) {
if (contractInfoBuilder_ == null) {
contractInfo_ = builderForValue.build();
onChanged();
} else {
contractInfoBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo value) {
if (contractInfoBuilder_ == null) {
if (contractInfo_ != null) {
contractInfo_ =
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.newBuilder(contractInfo_).mergeFrom(value).buildPartial();
} else {
contractInfo_ = value;
}
onChanged();
} else {
contractInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* the information about this contract instance (a state proof can be generated for this)
*
*
* .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2;
*/
public Builder clearContractInfo() {
if (contractInfoBuilder_ == null) {
contractInfo_ = null;
onChanged();
} else {
contractInfo_ = null;
contractInfoBuilder_ = null;
}
return this;
}
/**
*
**
* the information about this contract instance (a state proof can be generated for this)
*
*
* .proto.ContractGetInfoResponse.ContractInfo contractInfo = 2;
*/
public com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.Builder getContractInfoBuilder() {
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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfoOrBuilder getContractInfoOrBuilder() {
if (contractInfoBuilder_ != null) {
return contractInfoBuilder_.getMessageOrBuilder();
} else {
return contractInfo_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo, com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.Builder, com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfoOrBuilder>
getContractInfoFieldBuilder() {
if (contractInfoBuilder_ == null) {
contractInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo, com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractGetInfoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ContractGetInfoResponse();
}
public static com.hederahashgraph.api.proto.java.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 {
return new ContractGetInfoResponse(input, extensionRegistry);
}
};
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.hederahashgraph.api.proto.java.ContractGetInfoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}