com.hedera.hashgraph.sdk.proto.ContractFunctionResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: contract_call_local.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* The result returned by a call to a smart contract function. This is part of the response to a
* ContractCallLocal query, and is in the record for a ContractCall or ContractCreateInstance
* transaction. The ContractCreateInstance transaction record has the results of the call to the
* constructor.
*
*
* Protobuf type {@code proto.ContractFunctionResult}
*/
public final class ContractFunctionResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ContractFunctionResult)
ContractFunctionResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContractFunctionResult.newBuilder() to construct.
private ContractFunctionResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContractFunctionResult() {
contractCallResult_ = com.google.protobuf.ByteString.EMPTY;
errorMessage_ = "";
bloom_ = com.google.protobuf.ByteString.EMPTY;
logInfo_ = java.util.Collections.emptyList();
createdContractIDs_ = java.util.Collections.emptyList();
functionParameters_ = com.google.protobuf.ByteString.EMPTY;
contractNonces_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContractFunctionResult();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ContractCallLocal.internal_static_proto_ContractFunctionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ContractCallLocal.internal_static_proto_ContractFunctionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ContractFunctionResult.class, com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder.class);
}
private int bitField0_;
public static final int CONTRACTID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.ContractID contractID_;
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
* @return Whether the contractID field is set.
*/
@java.lang.Override
public boolean hasContractID() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
* @return The contractID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
public static final int CONTRACTCALLRESULT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString contractCallResult_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* the result returned by the function
*
*
* bytes contractCallResult = 2;
* @return The contractCallResult.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractCallResult() {
return contractCallResult_;
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object errorMessage_ = "";
/**
*
**
* message In case there was an error during smart contract execution
*
*
* string errorMessage = 3;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
*
**
* message In case there was an error during smart contract execution
*
*
* string errorMessage = 3;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BLOOM_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString bloom_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* bloom filter for record
*
*
* bytes bloom = 4;
* @return The bloom.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBloom() {
return bloom_;
}
public static final int GASUSED_FIELD_NUMBER = 5;
private long gasUsed_ = 0L;
/**
*
**
* units of gas used to execute contract
*
*
* uint64 gasUsed = 5;
* @return The gasUsed.
*/
@java.lang.Override
public long getGasUsed() {
return gasUsed_;
}
public static final int LOGINFO_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List logInfo_;
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
@java.lang.Override
public java.util.List getLogInfoList() {
return logInfo_;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.ContractLoginfoOrBuilder>
getLogInfoOrBuilderList() {
return logInfo_;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
@java.lang.Override
public int getLogInfoCount() {
return logInfo_.size();
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractLoginfo getLogInfo(int index) {
return logInfo_.get(index);
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractLoginfoOrBuilder getLogInfoOrBuilder(
int index) {
return logInfo_.get(index);
}
public static final int CREATEDCONTRACTIDS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List createdContractIDs_;
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getCreatedContractIDsList() {
return createdContractIDs_;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>
getCreatedContractIDsOrBuilderList() {
return createdContractIDs_;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public int getCreatedContractIDsCount() {
return createdContractIDs_.size();
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.ContractID getCreatedContractIDs(int index) {
return createdContractIDs_.get(index);
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getCreatedContractIDsOrBuilder(
int index) {
return createdContractIDs_.get(index);
}
public static final int EVM_ADDRESS_FIELD_NUMBER = 9;
private com.google.protobuf.BytesValue evmAddress_;
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
* @return Whether the evmAddress field is set.
*/
@java.lang.Override
public boolean hasEvmAddress() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
* @return The evmAddress.
*/
@java.lang.Override
public com.google.protobuf.BytesValue getEvmAddress() {
return evmAddress_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : evmAddress_;
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
*/
@java.lang.Override
public com.google.protobuf.BytesValueOrBuilder getEvmAddressOrBuilder() {
return evmAddress_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : evmAddress_;
}
public static final int GAS_FIELD_NUMBER = 10;
private long gas_ = 0L;
/**
*
**
* The amount of gas available for the call, aka the gasLimit.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* int64 gas = 10;
* @return The gas.
*/
@java.lang.Override
public long getGas() {
return gas_;
}
public static final int AMOUNT_FIELD_NUMBER = 11;
private long amount_ = 0L;
/**
*
**
* Number of tinybars sent (the function must be payable if this is nonzero).
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* int64 amount = 11;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
public static final int FUNCTIONPARAMETERS_FIELD_NUMBER = 12;
private com.google.protobuf.ByteString functionParameters_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The parameters passed into the contract call.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* bytes functionParameters = 12;
* @return The functionParameters.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFunctionParameters() {
return functionParameters_;
}
public static final int SENDER_ID_FIELD_NUMBER = 13;
private com.hedera.hashgraph.sdk.proto.AccountID senderId_;
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
* @return Whether the senderId field is set.
*/
@java.lang.Override
public boolean hasSenderId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
* @return The senderId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getSenderId() {
return senderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderId_;
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSenderIdOrBuilder() {
return senderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderId_;
}
public static final int CONTRACT_NONCES_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private java.util.List contractNonces_;
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
@java.lang.Override
public java.util.List getContractNoncesList() {
return contractNonces_;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.ContractNonceInfoOrBuilder>
getContractNoncesOrBuilderList() {
return contractNonces_;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
@java.lang.Override
public int getContractNoncesCount() {
return contractNonces_.size();
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractNonceInfo getContractNonces(int index) {
return contractNonces_.get(index);
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractNonceInfoOrBuilder getContractNoncesOrBuilder(
int index) {
return contractNonces_.get(index);
}
public static final int SIGNER_NONCE_FIELD_NUMBER = 15;
private com.google.protobuf.Int64Value signerNonce_;
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
* @return Whether the signerNonce field is set.
*/
@java.lang.Override
public boolean hasSignerNonce() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
* @return The signerNonce.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getSignerNonce() {
return signerNonce_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : signerNonce_;
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getSignerNonceOrBuilder() {
return signerNonce_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : signerNonce_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getContractID());
}
if (!contractCallResult_.isEmpty()) {
output.writeBytes(2, contractCallResult_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorMessage_);
}
if (!bloom_.isEmpty()) {
output.writeBytes(4, bloom_);
}
if (gasUsed_ != 0L) {
output.writeUInt64(5, gasUsed_);
}
for (int i = 0; i < logInfo_.size(); i++) {
output.writeMessage(6, logInfo_.get(i));
}
for (int i = 0; i < createdContractIDs_.size(); i++) {
output.writeMessage(7, createdContractIDs_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(9, getEvmAddress());
}
if (gas_ != 0L) {
output.writeInt64(10, gas_);
}
if (amount_ != 0L) {
output.writeInt64(11, amount_);
}
if (!functionParameters_.isEmpty()) {
output.writeBytes(12, functionParameters_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(13, getSenderId());
}
for (int i = 0; i < contractNonces_.size(); i++) {
output.writeMessage(14, contractNonces_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(15, getSignerNonce());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContractID());
}
if (!contractCallResult_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, contractCallResult_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorMessage_);
}
if (!bloom_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, bloom_);
}
if (gasUsed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, gasUsed_);
}
for (int i = 0; i < logInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, logInfo_.get(i));
}
for (int i = 0; i < createdContractIDs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, createdContractIDs_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getEvmAddress());
}
if (gas_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, gas_);
}
if (amount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, amount_);
}
if (!functionParameters_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(12, functionParameters_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getSenderId());
}
for (int i = 0; i < contractNonces_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, contractNonces_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getSignerNonce());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hedera.hashgraph.sdk.proto.ContractFunctionResult)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.ContractFunctionResult other = (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) obj;
if (hasContractID() != other.hasContractID()) return false;
if (hasContractID()) {
if (!getContractID()
.equals(other.getContractID())) return false;
}
if (!getContractCallResult()
.equals(other.getContractCallResult())) return false;
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
if (!getBloom()
.equals(other.getBloom())) return false;
if (getGasUsed()
!= other.getGasUsed()) return false;
if (!getLogInfoList()
.equals(other.getLogInfoList())) return false;
if (!getCreatedContractIDsList()
.equals(other.getCreatedContractIDsList())) return false;
if (hasEvmAddress() != other.hasEvmAddress()) return false;
if (hasEvmAddress()) {
if (!getEvmAddress()
.equals(other.getEvmAddress())) return false;
}
if (getGas()
!= other.getGas()) return false;
if (getAmount()
!= other.getAmount()) return false;
if (!getFunctionParameters()
.equals(other.getFunctionParameters())) return false;
if (hasSenderId() != other.hasSenderId()) return false;
if (hasSenderId()) {
if (!getSenderId()
.equals(other.getSenderId())) return false;
}
if (!getContractNoncesList()
.equals(other.getContractNoncesList())) return false;
if (hasSignerNonce() != other.hasSignerNonce()) return false;
if (hasSignerNonce()) {
if (!getSignerNonce()
.equals(other.getSignerNonce())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasContractID()) {
hash = (37 * hash) + CONTRACTID_FIELD_NUMBER;
hash = (53 * hash) + getContractID().hashCode();
}
hash = (37 * hash) + CONTRACTCALLRESULT_FIELD_NUMBER;
hash = (53 * hash) + getContractCallResult().hashCode();
hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (37 * hash) + BLOOM_FIELD_NUMBER;
hash = (53 * hash) + getBloom().hashCode();
hash = (37 * hash) + GASUSED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGasUsed());
if (getLogInfoCount() > 0) {
hash = (37 * hash) + LOGINFO_FIELD_NUMBER;
hash = (53 * hash) + getLogInfoList().hashCode();
}
if (getCreatedContractIDsCount() > 0) {
hash = (37 * hash) + CREATEDCONTRACTIDS_FIELD_NUMBER;
hash = (53 * hash) + getCreatedContractIDsList().hashCode();
}
if (hasEvmAddress()) {
hash = (37 * hash) + EVM_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getEvmAddress().hashCode();
}
hash = (37 * hash) + GAS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGas());
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAmount());
hash = (37 * hash) + FUNCTIONPARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getFunctionParameters().hashCode();
if (hasSenderId()) {
hash = (37 * hash) + SENDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getSenderId().hashCode();
}
if (getContractNoncesCount() > 0) {
hash = (37 * hash) + CONTRACT_NONCES_FIELD_NUMBER;
hash = (53 * hash) + getContractNoncesList().hashCode();
}
if (hasSignerNonce()) {
hash = (37 * hash) + SIGNER_NONCE_FIELD_NUMBER;
hash = (53 * hash) + getSignerNonce().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.ContractFunctionResult 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;
}
/**
*
**
* The result returned by a call to a smart contract function. This is part of the response to a
* ContractCallLocal query, and is in the record for a ContractCall or ContractCreateInstance
* transaction. The ContractCreateInstance transaction record has the results of the call to the
* constructor.
*
*
* Protobuf type {@code proto.ContractFunctionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ContractFunctionResult)
com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ContractCallLocal.internal_static_proto_ContractFunctionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ContractCallLocal.internal_static_proto_ContractFunctionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ContractFunctionResult.class, com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.ContractFunctionResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getContractIDFieldBuilder();
getLogInfoFieldBuilder();
getCreatedContractIDsFieldBuilder();
getEvmAddressFieldBuilder();
getSenderIdFieldBuilder();
getContractNoncesFieldBuilder();
getSignerNonceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
contractID_ = null;
if (contractIDBuilder_ != null) {
contractIDBuilder_.dispose();
contractIDBuilder_ = null;
}
contractCallResult_ = com.google.protobuf.ByteString.EMPTY;
errorMessage_ = "";
bloom_ = com.google.protobuf.ByteString.EMPTY;
gasUsed_ = 0L;
if (logInfoBuilder_ == null) {
logInfo_ = java.util.Collections.emptyList();
} else {
logInfo_ = null;
logInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (createdContractIDsBuilder_ == null) {
createdContractIDs_ = java.util.Collections.emptyList();
} else {
createdContractIDs_ = null;
createdContractIDsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
evmAddress_ = null;
if (evmAddressBuilder_ != null) {
evmAddressBuilder_.dispose();
evmAddressBuilder_ = null;
}
gas_ = 0L;
amount_ = 0L;
functionParameters_ = com.google.protobuf.ByteString.EMPTY;
senderId_ = null;
if (senderIdBuilder_ != null) {
senderIdBuilder_.dispose();
senderIdBuilder_ = null;
}
if (contractNoncesBuilder_ == null) {
contractNonces_ = java.util.Collections.emptyList();
} else {
contractNonces_ = null;
contractNoncesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
signerNonce_ = null;
if (signerNonceBuilder_ != null) {
signerNonceBuilder_.dispose();
signerNonceBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.ContractCallLocal.internal_static_proto_ContractFunctionResult_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult build() {
com.hedera.hashgraph.sdk.proto.ContractFunctionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult buildPartial() {
com.hedera.hashgraph.sdk.proto.ContractFunctionResult result = new com.hedera.hashgraph.sdk.proto.ContractFunctionResult(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.ContractFunctionResult result) {
if (logInfoBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
logInfo_ = java.util.Collections.unmodifiableList(logInfo_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.logInfo_ = logInfo_;
} else {
result.logInfo_ = logInfoBuilder_.build();
}
if (createdContractIDsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
createdContractIDs_ = java.util.Collections.unmodifiableList(createdContractIDs_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.createdContractIDs_ = createdContractIDs_;
} else {
result.createdContractIDs_ = createdContractIDsBuilder_.build();
}
if (contractNoncesBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)) {
contractNonces_ = java.util.Collections.unmodifiableList(contractNonces_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.contractNonces_ = contractNonces_;
} else {
result.contractNonces_ = contractNoncesBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.ContractFunctionResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.contractID_ = contractIDBuilder_ == null
? contractID_
: contractIDBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.contractCallResult_ = contractCallResult_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.errorMessage_ = errorMessage_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.bloom_ = bloom_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gasUsed_ = gasUsed_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.evmAddress_ = evmAddressBuilder_ == null
? evmAddress_
: evmAddressBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.gas_ = gas_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.amount_ = amount_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.functionParameters_ = functionParameters_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.senderId_ = senderIdBuilder_ == null
? senderId_
: senderIdBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.signerNonce_ = signerNonceBuilder_ == null
? signerNonce_
: signerNonceBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.ContractFunctionResult) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.ContractFunctionResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ContractFunctionResult other) {
if (other == com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance()) return this;
if (other.hasContractID()) {
mergeContractID(other.getContractID());
}
if (other.getContractCallResult() != com.google.protobuf.ByteString.EMPTY) {
setContractCallResult(other.getContractCallResult());
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getBloom() != com.google.protobuf.ByteString.EMPTY) {
setBloom(other.getBloom());
}
if (other.getGasUsed() != 0L) {
setGasUsed(other.getGasUsed());
}
if (logInfoBuilder_ == null) {
if (!other.logInfo_.isEmpty()) {
if (logInfo_.isEmpty()) {
logInfo_ = other.logInfo_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureLogInfoIsMutable();
logInfo_.addAll(other.logInfo_);
}
onChanged();
}
} else {
if (!other.logInfo_.isEmpty()) {
if (logInfoBuilder_.isEmpty()) {
logInfoBuilder_.dispose();
logInfoBuilder_ = null;
logInfo_ = other.logInfo_;
bitField0_ = (bitField0_ & ~0x00000020);
logInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLogInfoFieldBuilder() : null;
} else {
logInfoBuilder_.addAllMessages(other.logInfo_);
}
}
}
if (createdContractIDsBuilder_ == null) {
if (!other.createdContractIDs_.isEmpty()) {
if (createdContractIDs_.isEmpty()) {
createdContractIDs_ = other.createdContractIDs_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureCreatedContractIDsIsMutable();
createdContractIDs_.addAll(other.createdContractIDs_);
}
onChanged();
}
} else {
if (!other.createdContractIDs_.isEmpty()) {
if (createdContractIDsBuilder_.isEmpty()) {
createdContractIDsBuilder_.dispose();
createdContractIDsBuilder_ = null;
createdContractIDs_ = other.createdContractIDs_;
bitField0_ = (bitField0_ & ~0x00000040);
createdContractIDsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCreatedContractIDsFieldBuilder() : null;
} else {
createdContractIDsBuilder_.addAllMessages(other.createdContractIDs_);
}
}
}
if (other.hasEvmAddress()) {
mergeEvmAddress(other.getEvmAddress());
}
if (other.getGas() != 0L) {
setGas(other.getGas());
}
if (other.getAmount() != 0L) {
setAmount(other.getAmount());
}
if (other.getFunctionParameters() != com.google.protobuf.ByteString.EMPTY) {
setFunctionParameters(other.getFunctionParameters());
}
if (other.hasSenderId()) {
mergeSenderId(other.getSenderId());
}
if (contractNoncesBuilder_ == null) {
if (!other.contractNonces_.isEmpty()) {
if (contractNonces_.isEmpty()) {
contractNonces_ = other.contractNonces_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureContractNoncesIsMutable();
contractNonces_.addAll(other.contractNonces_);
}
onChanged();
}
} else {
if (!other.contractNonces_.isEmpty()) {
if (contractNoncesBuilder_.isEmpty()) {
contractNoncesBuilder_.dispose();
contractNoncesBuilder_ = null;
contractNonces_ = other.contractNonces_;
bitField0_ = (bitField0_ & ~0x00001000);
contractNoncesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContractNoncesFieldBuilder() : null;
} else {
contractNoncesBuilder_.addAllMessages(other.contractNonces_);
}
}
}
if (other.hasSignerNonce()) {
mergeSignerNonce(other.getSignerNonce());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getContractIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
contractCallResult_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
errorMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
bloom_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
gasUsed_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
com.hedera.hashgraph.sdk.proto.ContractLoginfo m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.ContractLoginfo.parser(),
extensionRegistry);
if (logInfoBuilder_ == null) {
ensureLogInfoIsMutable();
logInfo_.add(m);
} else {
logInfoBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
com.hedera.hashgraph.sdk.proto.ContractID m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.ContractID.parser(),
extensionRegistry);
if (createdContractIDsBuilder_ == null) {
ensureCreatedContractIDsIsMutable();
createdContractIDs_.add(m);
} else {
createdContractIDsBuilder_.addMessage(m);
}
break;
} // case 58
case 74: {
input.readMessage(
getEvmAddressFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 74
case 80: {
gas_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 80
case 88: {
amount_ = input.readInt64();
bitField0_ |= 0x00000200;
break;
} // case 88
case 98: {
functionParameters_ = input.readBytes();
bitField0_ |= 0x00000400;
break;
} // case 98
case 106: {
input.readMessage(
getSenderIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 106
case 114: {
com.hedera.hashgraph.sdk.proto.ContractNonceInfo m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.ContractNonceInfo.parser(),
extensionRegistry);
if (contractNoncesBuilder_ == null) {
ensureContractNoncesIsMutable();
contractNonces_.add(m);
} else {
contractNoncesBuilder_.addMessage(m);
}
break;
} // case 114
case 122: {
input.readMessage(
getSignerNonceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 122
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.ContractID contractID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> contractIDBuilder_;
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
* @return Whether the contractID field is set.
*/
public boolean hasContractID() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
* @return The contractID.
*/
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
if (contractIDBuilder_ == null) {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
} else {
return contractIDBuilder_.getMessage();
}
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (contractIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractID_ = value;
} else {
contractIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public Builder setContractID(
com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
contractID_ = builderForValue.build();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (contractIDBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
contractID_ != null &&
contractID_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) {
getContractIDBuilder().mergeFrom(value);
} else {
contractID_ = value;
}
} else {
contractIDBuilder_.mergeFrom(value);
}
if (contractID_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public Builder clearContractID() {
bitField0_ = (bitField0_ & ~0x00000001);
contractID_ = null;
if (contractIDBuilder_ != null) {
contractIDBuilder_.dispose();
contractIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public com.hedera.hashgraph.sdk.proto.ContractID.Builder getContractIDBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getContractIDFieldBuilder().getBuilder();
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() {
if (contractIDBuilder_ != null) {
return contractIDBuilder_.getMessageOrBuilder();
} else {
return contractID_ == null ?
com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>
getContractIDFieldBuilder() {
if (contractIDBuilder_ == null) {
contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>(
getContractID(),
getParentForChildren(),
isClean());
contractID_ = null;
}
return contractIDBuilder_;
}
private com.google.protobuf.ByteString contractCallResult_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* the result returned by the function
*
*
* bytes contractCallResult = 2;
* @return The contractCallResult.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractCallResult() {
return contractCallResult_;
}
/**
*
**
* the result returned by the function
*
*
* bytes contractCallResult = 2;
* @param value The contractCallResult to set.
* @return This builder for chaining.
*/
public Builder setContractCallResult(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
contractCallResult_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* the result returned by the function
*
*
* bytes contractCallResult = 2;
* @return This builder for chaining.
*/
public Builder clearContractCallResult() {
bitField0_ = (bitField0_ & ~0x00000002);
contractCallResult_ = getDefaultInstance().getContractCallResult();
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
*
**
* message In case there was an error during smart contract execution
*
*
* string errorMessage = 3;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* message In case there was an error during smart contract execution
*
*
* string errorMessage = 3;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* message In case there was an error during smart contract execution
*
*
* string errorMessage = 3;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
errorMessage_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* message In case there was an error during smart contract execution
*
*
* string errorMessage = 3;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* message In case there was an error during smart contract execution
*
*
* string errorMessage = 3;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
errorMessage_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.ByteString bloom_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* bloom filter for record
*
*
* bytes bloom = 4;
* @return The bloom.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBloom() {
return bloom_;
}
/**
*
**
* bloom filter for record
*
*
* bytes bloom = 4;
* @param value The bloom to set.
* @return This builder for chaining.
*/
public Builder setBloom(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
bloom_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* bloom filter for record
*
*
* bytes bloom = 4;
* @return This builder for chaining.
*/
public Builder clearBloom() {
bitField0_ = (bitField0_ & ~0x00000008);
bloom_ = getDefaultInstance().getBloom();
onChanged();
return this;
}
private long gasUsed_ ;
/**
*
**
* units of gas used to execute contract
*
*
* uint64 gasUsed = 5;
* @return The gasUsed.
*/
@java.lang.Override
public long getGasUsed() {
return gasUsed_;
}
/**
*
**
* units of gas used to execute contract
*
*
* uint64 gasUsed = 5;
* @param value The gasUsed to set.
* @return This builder for chaining.
*/
public Builder setGasUsed(long value) {
gasUsed_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* units of gas used to execute contract
*
*
* uint64 gasUsed = 5;
* @return This builder for chaining.
*/
public Builder clearGasUsed() {
bitField0_ = (bitField0_ & ~0x00000010);
gasUsed_ = 0L;
onChanged();
return this;
}
private java.util.List logInfo_ =
java.util.Collections.emptyList();
private void ensureLogInfoIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
logInfo_ = new java.util.ArrayList(logInfo_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractLoginfo, com.hedera.hashgraph.sdk.proto.ContractLoginfo.Builder, com.hedera.hashgraph.sdk.proto.ContractLoginfoOrBuilder> logInfoBuilder_;
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public java.util.List getLogInfoList() {
if (logInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(logInfo_);
} else {
return logInfoBuilder_.getMessageList();
}
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public int getLogInfoCount() {
if (logInfoBuilder_ == null) {
return logInfo_.size();
} else {
return logInfoBuilder_.getCount();
}
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public com.hedera.hashgraph.sdk.proto.ContractLoginfo getLogInfo(int index) {
if (logInfoBuilder_ == null) {
return logInfo_.get(index);
} else {
return logInfoBuilder_.getMessage(index);
}
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public Builder setLogInfo(
int index, com.hedera.hashgraph.sdk.proto.ContractLoginfo value) {
if (logInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogInfoIsMutable();
logInfo_.set(index, value);
onChanged();
} else {
logInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public Builder setLogInfo(
int index, com.hedera.hashgraph.sdk.proto.ContractLoginfo.Builder builderForValue) {
if (logInfoBuilder_ == null) {
ensureLogInfoIsMutable();
logInfo_.set(index, builderForValue.build());
onChanged();
} else {
logInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public Builder addLogInfo(com.hedera.hashgraph.sdk.proto.ContractLoginfo value) {
if (logInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogInfoIsMutable();
logInfo_.add(value);
onChanged();
} else {
logInfoBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public Builder addLogInfo(
int index, com.hedera.hashgraph.sdk.proto.ContractLoginfo value) {
if (logInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogInfoIsMutable();
logInfo_.add(index, value);
onChanged();
} else {
logInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public Builder addLogInfo(
com.hedera.hashgraph.sdk.proto.ContractLoginfo.Builder builderForValue) {
if (logInfoBuilder_ == null) {
ensureLogInfoIsMutable();
logInfo_.add(builderForValue.build());
onChanged();
} else {
logInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public Builder addLogInfo(
int index, com.hedera.hashgraph.sdk.proto.ContractLoginfo.Builder builderForValue) {
if (logInfoBuilder_ == null) {
ensureLogInfoIsMutable();
logInfo_.add(index, builderForValue.build());
onChanged();
} else {
logInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public Builder addAllLogInfo(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.ContractLoginfo> values) {
if (logInfoBuilder_ == null) {
ensureLogInfoIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, logInfo_);
onChanged();
} else {
logInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public Builder clearLogInfo() {
if (logInfoBuilder_ == null) {
logInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
logInfoBuilder_.clear();
}
return this;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public Builder removeLogInfo(int index) {
if (logInfoBuilder_ == null) {
ensureLogInfoIsMutable();
logInfo_.remove(index);
onChanged();
} else {
logInfoBuilder_.remove(index);
}
return this;
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public com.hedera.hashgraph.sdk.proto.ContractLoginfo.Builder getLogInfoBuilder(
int index) {
return getLogInfoFieldBuilder().getBuilder(index);
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public com.hedera.hashgraph.sdk.proto.ContractLoginfoOrBuilder getLogInfoOrBuilder(
int index) {
if (logInfoBuilder_ == null) {
return logInfo_.get(index); } else {
return logInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.ContractLoginfoOrBuilder>
getLogInfoOrBuilderList() {
if (logInfoBuilder_ != null) {
return logInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(logInfo_);
}
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public com.hedera.hashgraph.sdk.proto.ContractLoginfo.Builder addLogInfoBuilder() {
return getLogInfoFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.ContractLoginfo.getDefaultInstance());
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public com.hedera.hashgraph.sdk.proto.ContractLoginfo.Builder addLogInfoBuilder(
int index) {
return getLogInfoFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.ContractLoginfo.getDefaultInstance());
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public java.util.List
getLogInfoBuilderList() {
return getLogInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractLoginfo, com.hedera.hashgraph.sdk.proto.ContractLoginfo.Builder, com.hedera.hashgraph.sdk.proto.ContractLoginfoOrBuilder>
getLogInfoFieldBuilder() {
if (logInfoBuilder_ == null) {
logInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractLoginfo, com.hedera.hashgraph.sdk.proto.ContractLoginfo.Builder, com.hedera.hashgraph.sdk.proto.ContractLoginfoOrBuilder>(
logInfo_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
logInfo_ = null;
}
return logInfoBuilder_;
}
private java.util.List createdContractIDs_ =
java.util.Collections.emptyList();
private void ensureCreatedContractIDsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
createdContractIDs_ = new java.util.ArrayList(createdContractIDs_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> createdContractIDsBuilder_;
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List getCreatedContractIDsList() {
if (createdContractIDsBuilder_ == null) {
return java.util.Collections.unmodifiableList(createdContractIDs_);
} else {
return createdContractIDsBuilder_.getMessageList();
}
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public int getCreatedContractIDsCount() {
if (createdContractIDsBuilder_ == null) {
return createdContractIDs_.size();
} else {
return createdContractIDsBuilder_.getCount();
}
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.ContractID getCreatedContractIDs(int index) {
if (createdContractIDsBuilder_ == null) {
return createdContractIDs_.get(index);
} else {
return createdContractIDsBuilder_.getMessage(index);
}
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder setCreatedContractIDs(
int index, com.hedera.hashgraph.sdk.proto.ContractID value) {
if (createdContractIDsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCreatedContractIDsIsMutable();
createdContractIDs_.set(index, value);
onChanged();
} else {
createdContractIDsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder setCreatedContractIDs(
int index, com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
if (createdContractIDsBuilder_ == null) {
ensureCreatedContractIDsIsMutable();
createdContractIDs_.set(index, builderForValue.build());
onChanged();
} else {
createdContractIDsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder addCreatedContractIDs(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (createdContractIDsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCreatedContractIDsIsMutable();
createdContractIDs_.add(value);
onChanged();
} else {
createdContractIDsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder addCreatedContractIDs(
int index, com.hedera.hashgraph.sdk.proto.ContractID value) {
if (createdContractIDsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCreatedContractIDsIsMutable();
createdContractIDs_.add(index, value);
onChanged();
} else {
createdContractIDsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder addCreatedContractIDs(
com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
if (createdContractIDsBuilder_ == null) {
ensureCreatedContractIDsIsMutable();
createdContractIDs_.add(builderForValue.build());
onChanged();
} else {
createdContractIDsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder addCreatedContractIDs(
int index, com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
if (createdContractIDsBuilder_ == null) {
ensureCreatedContractIDsIsMutable();
createdContractIDs_.add(index, builderForValue.build());
onChanged();
} else {
createdContractIDsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllCreatedContractIDs(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.ContractID> values) {
if (createdContractIDsBuilder_ == null) {
ensureCreatedContractIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, createdContractIDs_);
onChanged();
} else {
createdContractIDsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearCreatedContractIDs() {
if (createdContractIDsBuilder_ == null) {
createdContractIDs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
createdContractIDsBuilder_.clear();
}
return this;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder removeCreatedContractIDs(int index) {
if (createdContractIDsBuilder_ == null) {
ensureCreatedContractIDsIsMutable();
createdContractIDs_.remove(index);
onChanged();
} else {
createdContractIDsBuilder_.remove(index);
}
return this;
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.ContractID.Builder getCreatedContractIDsBuilder(
int index) {
return getCreatedContractIDsFieldBuilder().getBuilder(index);
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getCreatedContractIDsOrBuilder(
int index) {
if (createdContractIDsBuilder_ == null) {
return createdContractIDs_.get(index); } else {
return createdContractIDsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List extends com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>
getCreatedContractIDsOrBuilderList() {
if (createdContractIDsBuilder_ != null) {
return createdContractIDsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(createdContractIDs_);
}
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.ContractID.Builder addCreatedContractIDsBuilder() {
return getCreatedContractIDsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance());
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.ContractID.Builder addCreatedContractIDsBuilder(
int index) {
return getCreatedContractIDsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance());
}
/**
*
**
* [DEPRECATED] the list of smart contracts that were created by the function call.
*
* The created ids will now _also_ be externalized through internal transaction
* records, where each record has its alias field populated with the new contract's
* EVM address. (This is needed for contracts created with CREATE2, since
* there is no longer a simple relationship between the new contract's 0.0.X id
* and its Solidity address.)
*
*
* repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getCreatedContractIDsBuilderList() {
return getCreatedContractIDsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>
getCreatedContractIDsFieldBuilder() {
if (createdContractIDsBuilder_ == null) {
createdContractIDsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>(
createdContractIDs_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
createdContractIDs_ = null;
}
return createdContractIDsBuilder_;
}
private com.google.protobuf.BytesValue evmAddress_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> evmAddressBuilder_;
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
* @return Whether the evmAddress field is set.
*/
public boolean hasEvmAddress() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
* @return The evmAddress.
*/
public com.google.protobuf.BytesValue getEvmAddress() {
if (evmAddressBuilder_ == null) {
return evmAddress_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : evmAddress_;
} else {
return evmAddressBuilder_.getMessage();
}
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
*/
public Builder setEvmAddress(com.google.protobuf.BytesValue value) {
if (evmAddressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
evmAddress_ = value;
} else {
evmAddressBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
*/
public Builder setEvmAddress(
com.google.protobuf.BytesValue.Builder builderForValue) {
if (evmAddressBuilder_ == null) {
evmAddress_ = builderForValue.build();
} else {
evmAddressBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
*/
public Builder mergeEvmAddress(com.google.protobuf.BytesValue value) {
if (evmAddressBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
evmAddress_ != null &&
evmAddress_ != com.google.protobuf.BytesValue.getDefaultInstance()) {
getEvmAddressBuilder().mergeFrom(value);
} else {
evmAddress_ = value;
}
} else {
evmAddressBuilder_.mergeFrom(value);
}
if (evmAddress_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
*/
public Builder clearEvmAddress() {
bitField0_ = (bitField0_ & ~0x00000080);
evmAddress_ = null;
if (evmAddressBuilder_ != null) {
evmAddressBuilder_.dispose();
evmAddressBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
*/
public com.google.protobuf.BytesValue.Builder getEvmAddressBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getEvmAddressFieldBuilder().getBuilder();
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
*/
public com.google.protobuf.BytesValueOrBuilder getEvmAddressOrBuilder() {
if (evmAddressBuilder_ != null) {
return evmAddressBuilder_.getMessageOrBuilder();
} else {
return evmAddress_ == null ?
com.google.protobuf.BytesValue.getDefaultInstance() : evmAddress_;
}
}
/**
*
**
* The new contract's 20-byte EVM address. Only populated after release 0.23,
* where each created contract will have its own record. (This is an important
* point--the field is not <tt>repeated</tt> because there will be a separate
* child record for each created contract.)
*
* Every contract has an EVM address determined by its <tt>shard.realm.num</tt> id.
* This address is as follows:
* <ol>
* <li>The first 4 bytes are the big-endian representation of the shard.</li>
* <li>The next 8 bytes are the big-endian representation of the realm.</li>
* <li>The final 8 bytes are the big-endian representation of the number.</li>
* </ol>
*
* Contracts created via CREATE2 have an <b>additional, primary address</b> that is
* derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014">EIP-1014</a>
* specification, and does not have a simple relation to a <tt>shard.realm.num</tt> id.
*
* (Please do note that CREATE2 contracts can also be referenced by the three-part
* EVM address described above.)
*
*
* .google.protobuf.BytesValue evm_address = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>
getEvmAddressFieldBuilder() {
if (evmAddressBuilder_ == null) {
evmAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>(
getEvmAddress(),
getParentForChildren(),
isClean());
evmAddress_ = null;
}
return evmAddressBuilder_;
}
private long gas_ ;
/**
*
**
* The amount of gas available for the call, aka the gasLimit.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* int64 gas = 10;
* @return The gas.
*/
@java.lang.Override
public long getGas() {
return gas_;
}
/**
*
**
* The amount of gas available for the call, aka the gasLimit.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* int64 gas = 10;
* @param value The gas to set.
* @return This builder for chaining.
*/
public Builder setGas(long value) {
gas_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* The amount of gas available for the call, aka the gasLimit.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* int64 gas = 10;
* @return This builder for chaining.
*/
public Builder clearGas() {
bitField0_ = (bitField0_ & ~0x00000100);
gas_ = 0L;
onChanged();
return this;
}
private long amount_ ;
/**
*
**
* Number of tinybars sent (the function must be payable if this is nonzero).
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* int64 amount = 11;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
/**
*
**
* Number of tinybars sent (the function must be payable if this is nonzero).
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* int64 amount = 11;
* @param value The amount to set.
* @return This builder for chaining.
*/
public Builder setAmount(long value) {
amount_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* Number of tinybars sent (the function must be payable if this is nonzero).
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* int64 amount = 11;
* @return This builder for chaining.
*/
public Builder clearAmount() {
bitField0_ = (bitField0_ & ~0x00000200);
amount_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString functionParameters_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The parameters passed into the contract call.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* bytes functionParameters = 12;
* @return The functionParameters.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFunctionParameters() {
return functionParameters_;
}
/**
*
**
* The parameters passed into the contract call.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* bytes functionParameters = 12;
* @param value The functionParameters to set.
* @return This builder for chaining.
*/
public Builder setFunctionParameters(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
functionParameters_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
**
* The parameters passed into the contract call.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* bytes functionParameters = 12;
* @return This builder for chaining.
*/
public Builder clearFunctionParameters() {
bitField0_ = (bitField0_ & ~0x00000400);
functionParameters_ = getDefaultInstance().getFunctionParameters();
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.AccountID senderId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> senderIdBuilder_;
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
* @return Whether the senderId field is set.
*/
public boolean hasSenderId() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
* @return The senderId.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getSenderId() {
if (senderIdBuilder_ == null) {
return senderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderId_;
} else {
return senderIdBuilder_.getMessage();
}
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
*/
public Builder setSenderId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (senderIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
senderId_ = value;
} else {
senderIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
*/
public Builder setSenderId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (senderIdBuilder_ == null) {
senderId_ = builderForValue.build();
} else {
senderIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
*/
public Builder mergeSenderId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (senderIdBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
senderId_ != null &&
senderId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getSenderIdBuilder().mergeFrom(value);
} else {
senderId_ = value;
}
} else {
senderIdBuilder_.mergeFrom(value);
}
if (senderId_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
*/
public Builder clearSenderId() {
bitField0_ = (bitField0_ & ~0x00000800);
senderId_ = null;
if (senderIdBuilder_ != null) {
senderIdBuilder_.dispose();
senderIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getSenderIdBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getSenderIdFieldBuilder().getBuilder();
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSenderIdOrBuilder() {
if (senderIdBuilder_ != null) {
return senderIdBuilder_.getMessageOrBuilder();
} else {
return senderId_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderId_;
}
}
/**
*
**
* The account that is the "sender." If not present it is the accountId from the transactionId.
*
* This field should only be populated when the paired TransactionBody in the record stream is not a
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*
*
* .proto.AccountID sender_id = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getSenderIdFieldBuilder() {
if (senderIdBuilder_ == null) {
senderIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getSenderId(),
getParentForChildren(),
isClean());
senderId_ = null;
}
return senderIdBuilder_;
}
private java.util.List contractNonces_ =
java.util.Collections.emptyList();
private void ensureContractNoncesIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
contractNonces_ = new java.util.ArrayList(contractNonces_);
bitField0_ |= 0x00001000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractNonceInfo, com.hedera.hashgraph.sdk.proto.ContractNonceInfo.Builder, com.hedera.hashgraph.sdk.proto.ContractNonceInfoOrBuilder> contractNoncesBuilder_;
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public java.util.List getContractNoncesList() {
if (contractNoncesBuilder_ == null) {
return java.util.Collections.unmodifiableList(contractNonces_);
} else {
return contractNoncesBuilder_.getMessageList();
}
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public int getContractNoncesCount() {
if (contractNoncesBuilder_ == null) {
return contractNonces_.size();
} else {
return contractNoncesBuilder_.getCount();
}
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public com.hedera.hashgraph.sdk.proto.ContractNonceInfo getContractNonces(int index) {
if (contractNoncesBuilder_ == null) {
return contractNonces_.get(index);
} else {
return contractNoncesBuilder_.getMessage(index);
}
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public Builder setContractNonces(
int index, com.hedera.hashgraph.sdk.proto.ContractNonceInfo value) {
if (contractNoncesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContractNoncesIsMutable();
contractNonces_.set(index, value);
onChanged();
} else {
contractNoncesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public Builder setContractNonces(
int index, com.hedera.hashgraph.sdk.proto.ContractNonceInfo.Builder builderForValue) {
if (contractNoncesBuilder_ == null) {
ensureContractNoncesIsMutable();
contractNonces_.set(index, builderForValue.build());
onChanged();
} else {
contractNoncesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public Builder addContractNonces(com.hedera.hashgraph.sdk.proto.ContractNonceInfo value) {
if (contractNoncesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContractNoncesIsMutable();
contractNonces_.add(value);
onChanged();
} else {
contractNoncesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public Builder addContractNonces(
int index, com.hedera.hashgraph.sdk.proto.ContractNonceInfo value) {
if (contractNoncesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContractNoncesIsMutable();
contractNonces_.add(index, value);
onChanged();
} else {
contractNoncesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public Builder addContractNonces(
com.hedera.hashgraph.sdk.proto.ContractNonceInfo.Builder builderForValue) {
if (contractNoncesBuilder_ == null) {
ensureContractNoncesIsMutable();
contractNonces_.add(builderForValue.build());
onChanged();
} else {
contractNoncesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public Builder addContractNonces(
int index, com.hedera.hashgraph.sdk.proto.ContractNonceInfo.Builder builderForValue) {
if (contractNoncesBuilder_ == null) {
ensureContractNoncesIsMutable();
contractNonces_.add(index, builderForValue.build());
onChanged();
} else {
contractNoncesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public Builder addAllContractNonces(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.ContractNonceInfo> values) {
if (contractNoncesBuilder_ == null) {
ensureContractNoncesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contractNonces_);
onChanged();
} else {
contractNoncesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public Builder clearContractNonces() {
if (contractNoncesBuilder_ == null) {
contractNonces_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
} else {
contractNoncesBuilder_.clear();
}
return this;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public Builder removeContractNonces(int index) {
if (contractNoncesBuilder_ == null) {
ensureContractNoncesIsMutable();
contractNonces_.remove(index);
onChanged();
} else {
contractNoncesBuilder_.remove(index);
}
return this;
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public com.hedera.hashgraph.sdk.proto.ContractNonceInfo.Builder getContractNoncesBuilder(
int index) {
return getContractNoncesFieldBuilder().getBuilder(index);
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public com.hedera.hashgraph.sdk.proto.ContractNonceInfoOrBuilder getContractNoncesOrBuilder(
int index) {
if (contractNoncesBuilder_ == null) {
return contractNonces_.get(index); } else {
return contractNoncesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.ContractNonceInfoOrBuilder>
getContractNoncesOrBuilderList() {
if (contractNoncesBuilder_ != null) {
return contractNoncesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contractNonces_);
}
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public com.hedera.hashgraph.sdk.proto.ContractNonceInfo.Builder addContractNoncesBuilder() {
return getContractNoncesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.ContractNonceInfo.getDefaultInstance());
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public com.hedera.hashgraph.sdk.proto.ContractNonceInfo.Builder addContractNoncesBuilder(
int index) {
return getContractNoncesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.ContractNonceInfo.getDefaultInstance());
}
/**
*
**
* A list of updated contract account nonces containing the new nonce value for each contract account.
* This is always empty in a ContractCallLocalResponse#ContractFunctionResult message, since no internal creations can happen in a static EVM call.
*
*
* repeated .proto.ContractNonceInfo contract_nonces = 14;
*/
public java.util.List
getContractNoncesBuilderList() {
return getContractNoncesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractNonceInfo, com.hedera.hashgraph.sdk.proto.ContractNonceInfo.Builder, com.hedera.hashgraph.sdk.proto.ContractNonceInfoOrBuilder>
getContractNoncesFieldBuilder() {
if (contractNoncesBuilder_ == null) {
contractNoncesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractNonceInfo, com.hedera.hashgraph.sdk.proto.ContractNonceInfo.Builder, com.hedera.hashgraph.sdk.proto.ContractNonceInfoOrBuilder>(
contractNonces_,
((bitField0_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
contractNonces_ = null;
}
return contractNoncesBuilder_;
}
private com.google.protobuf.Int64Value signerNonce_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> signerNonceBuilder_;
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
* @return Whether the signerNonce field is set.
*/
public boolean hasSignerNonce() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
* @return The signerNonce.
*/
public com.google.protobuf.Int64Value getSignerNonce() {
if (signerNonceBuilder_ == null) {
return signerNonce_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : signerNonce_;
} else {
return signerNonceBuilder_.getMessage();
}
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
*/
public Builder setSignerNonce(com.google.protobuf.Int64Value value) {
if (signerNonceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
signerNonce_ = value;
} else {
signerNonceBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
*/
public Builder setSignerNonce(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (signerNonceBuilder_ == null) {
signerNonce_ = builderForValue.build();
} else {
signerNonceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
*/
public Builder mergeSignerNonce(com.google.protobuf.Int64Value value) {
if (signerNonceBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0) &&
signerNonce_ != null &&
signerNonce_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
getSignerNonceBuilder().mergeFrom(value);
} else {
signerNonce_ = value;
}
} else {
signerNonceBuilder_.mergeFrom(value);
}
if (signerNonce_ != null) {
bitField0_ |= 0x00002000;
onChanged();
}
return this;
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
*/
public Builder clearSignerNonce() {
bitField0_ = (bitField0_ & ~0x00002000);
signerNonce_ = null;
if (signerNonceBuilder_ != null) {
signerNonceBuilder_.dispose();
signerNonceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
*/
public com.google.protobuf.Int64Value.Builder getSignerNonceBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getSignerNonceFieldBuilder().getBuilder();
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
*/
public com.google.protobuf.Int64ValueOrBuilder getSignerNonceOrBuilder() {
if (signerNonceBuilder_ != null) {
return signerNonceBuilder_.getMessageOrBuilder();
} else {
return signerNonce_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : signerNonce_;
}
}
/**
*
**
* If not null this field specifies what the value of the signer account nonce is post transaction execution.
* For transactions that don't update the signer nonce, this field should be null.
*
*
* .google.protobuf.Int64Value signer_nonce = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getSignerNonceFieldBuilder() {
if (signerNonceBuilder_ == null) {
signerNonceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getSignerNonce(),
getParentForChildren(),
isClean());
signerNonce_ = null;
}
return signerNonceBuilder_;
}
@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.ContractFunctionResult)
}
// @@protoc_insertion_point(class_scope:proto.ContractFunctionResult)
private static final com.hedera.hashgraph.sdk.proto.ContractFunctionResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ContractFunctionResult();
}
public static com.hedera.hashgraph.sdk.proto.ContractFunctionResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContractFunctionResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}