com.hederahashgraph.api.proto.java.ContractFunctionResult Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: contract_call_local.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContractFunctionResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null;
if (contractID_ != null) {
subBuilder = contractID_.toBuilder();
}
contractID_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contractID_);
contractID_ = subBuilder.buildPartial();
}
break;
}
case 18: {
contractCallResult_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
errorMessage_ = s;
break;
}
case 34: {
bloom_ = input.readBytes();
break;
}
case 40: {
gasUsed_ = input.readUInt64();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
logInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
logInfo_.add(
input.readMessage(com.hederahashgraph.api.proto.java.ContractLoginfo.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
createdContractIDs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
createdContractIDs_.add(
input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry));
break;
}
case 74: {
com.google.protobuf.BytesValue.Builder subBuilder = null;
if (evmAddress_ != null) {
subBuilder = evmAddress_.toBuilder();
}
evmAddress_ = input.readMessage(com.google.protobuf.BytesValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(evmAddress_);
evmAddress_ = subBuilder.buildPartial();
}
break;
}
case 80: {
gas_ = input.readInt64();
break;
}
case 88: {
amount_ = input.readInt64();
break;
}
case 98: {
functionParameters_ = input.readBytes();
break;
}
case 106: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (senderId_ != null) {
subBuilder = senderId_.toBuilder();
}
senderId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(senderId_);
senderId_ = subBuilder.buildPartial();
}
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
contractNonces_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
contractNonces_.add(
input.readMessage(com.hederahashgraph.api.proto.java.ContractNonceInfo.parser(), extensionRegistry));
break;
}
case 122: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (signerNonce_ != null) {
subBuilder = signerNonce_.toBuilder();
}
signerNonce_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(signerNonce_);
signerNonce_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
logInfo_ = java.util.Collections.unmodifiableList(logInfo_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
createdContractIDs_ = java.util.Collections.unmodifiableList(createdContractIDs_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
contractNonces_ = java.util.Collections.unmodifiableList(contractNonces_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ContractCallLocal.internal_static_proto_ContractFunctionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ContractCallLocal.internal_static_proto_ContractFunctionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ContractFunctionResult.class, com.hederahashgraph.api.proto.java.ContractFunctionResult.Builder.class);
}
public static final int CONTRACTID_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.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 contractID_ != null;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
* @return The contractID.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractID getContractID() {
return contractID_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
return getContractID();
}
public static final int CONTRACTCALLRESULT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString contractCallResult_;
/**
*
**
* 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;
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_;
/**
*
**
* 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_;
/**
*
**
* 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;
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractLoginfoOrBuilder getLogInfoOrBuilder(
int index) {
return logInfo_.get(index);
}
public static final int CREATEDCONTRACTIDS_FIELD_NUMBER = 7;
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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 evmAddress_ != null;
}
/**
*
**
* 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 getEvmAddress();
}
public static final int GAS_FIELD_NUMBER = 10;
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_;
}
public static final int AMOUNT_FIELD_NUMBER = 11;
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_;
}
public static final int FUNCTIONPARAMETERS_FIELD_NUMBER = 12;
private com.google.protobuf.ByteString 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;
* @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.hederahashgraph.api.proto.java.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 senderId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getSenderId() {
return senderId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getSenderIdOrBuilder() {
return getSenderId();
}
public static final int CONTRACT_NONCES_FIELD_NUMBER = 14;
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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 signerNonce_ != null;
}
/**
*
**
* 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 getSignerNonce();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (contractID_ != null) {
output.writeMessage(1, getContractID());
}
if (!contractCallResult_.isEmpty()) {
output.writeBytes(2, contractCallResult_);
}
if (!getErrorMessageBytes().isEmpty()) {
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 (evmAddress_ != null) {
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 (senderId_ != null) {
output.writeMessage(13, getSenderId());
}
for (int i = 0; i < contractNonces_.size(); i++) {
output.writeMessage(14, contractNonces_.get(i));
}
if (signerNonce_ != null) {
output.writeMessage(15, getSignerNonce());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contractID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContractID());
}
if (!contractCallResult_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, contractCallResult_);
}
if (!getErrorMessageBytes().isEmpty()) {
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 (evmAddress_ != null) {
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 (senderId_ != null) {
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 (signerNonce_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getSignerNonce());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.ContractFunctionResult)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.ContractFunctionResult other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasContractID()) {
hash = (37 * hash) + CONTRACTID_FIELD_NUMBER;
hash = (53 * hash) + getContractID().hashCode();
}
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.ContractFunctionResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ContractFunctionResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ContractFunctionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractFunctionResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ContractFunctionResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ContractFunctionResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractFunctionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractFunctionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractFunctionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ContractCallLocal.internal_static_proto_ContractFunctionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ContractCallLocal.internal_static_proto_ContractFunctionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ContractFunctionResult.class, com.hederahashgraph.api.proto.java.ContractFunctionResult.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.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) {
getLogInfoFieldBuilder();
getCreatedContractIDsFieldBuilder();
getContractNoncesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (contractIDBuilder_ == null) {
contractID_ = null;
} else {
contractID_ = null;
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();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
logInfoBuilder_.clear();
}
if (createdContractIDsBuilder_ == null) {
createdContractIDs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
createdContractIDsBuilder_.clear();
}
if (evmAddressBuilder_ == null) {
evmAddress_ = null;
} else {
evmAddress_ = null;
evmAddressBuilder_ = null;
}
gas_ = 0L;
amount_ = 0L;
functionParameters_ = com.google.protobuf.ByteString.EMPTY;
if (senderIdBuilder_ == null) {
senderId_ = null;
} else {
senderId_ = null;
senderIdBuilder_ = null;
}
if (contractNoncesBuilder_ == null) {
contractNonces_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
contractNoncesBuilder_.clear();
}
if (signerNonceBuilder_ == null) {
signerNonce_ = null;
} else {
signerNonce_ = null;
signerNonceBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ContractCallLocal.internal_static_proto_ContractFunctionResult_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractFunctionResult getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ContractFunctionResult.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractFunctionResult build() {
com.hederahashgraph.api.proto.java.ContractFunctionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractFunctionResult buildPartial() {
com.hederahashgraph.api.proto.java.ContractFunctionResult result = new com.hederahashgraph.api.proto.java.ContractFunctionResult(this);
int from_bitField0_ = bitField0_;
if (contractIDBuilder_ == null) {
result.contractID_ = contractID_;
} else {
result.contractID_ = contractIDBuilder_.build();
}
result.contractCallResult_ = contractCallResult_;
result.errorMessage_ = errorMessage_;
result.bloom_ = bloom_;
result.gasUsed_ = gasUsed_;
if (logInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
logInfo_ = java.util.Collections.unmodifiableList(logInfo_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.logInfo_ = logInfo_;
} else {
result.logInfo_ = logInfoBuilder_.build();
}
if (createdContractIDsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
createdContractIDs_ = java.util.Collections.unmodifiableList(createdContractIDs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.createdContractIDs_ = createdContractIDs_;
} else {
result.createdContractIDs_ = createdContractIDsBuilder_.build();
}
if (evmAddressBuilder_ == null) {
result.evmAddress_ = evmAddress_;
} else {
result.evmAddress_ = evmAddressBuilder_.build();
}
result.gas_ = gas_;
result.amount_ = amount_;
result.functionParameters_ = functionParameters_;
if (senderIdBuilder_ == null) {
result.senderId_ = senderId_;
} else {
result.senderId_ = senderIdBuilder_.build();
}
if (contractNoncesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
contractNonces_ = java.util.Collections.unmodifiableList(contractNonces_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.contractNonces_ = contractNonces_;
} else {
result.contractNonces_ = contractNoncesBuilder_.build();
}
if (signerNonceBuilder_ == null) {
result.signerNonce_ = signerNonce_;
} else {
result.signerNonce_ = signerNonceBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.ContractFunctionResult) {
return mergeFrom((com.hederahashgraph.api.proto.java.ContractFunctionResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ContractFunctionResult other) {
if (other == com.hederahashgraph.api.proto.java.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_;
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_ & ~0x00000001);
} else {
ensureLogInfoIsMutable();
logInfo_.addAll(other.logInfo_);
}
onChanged();
}
} else {
if (!other.logInfo_.isEmpty()) {
if (logInfoBuilder_.isEmpty()) {
logInfoBuilder_.dispose();
logInfoBuilder_ = null;
logInfo_ = other.logInfo_;
bitField0_ = (bitField0_ & ~0x00000001);
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_ & ~0x00000002);
} else {
ensureCreatedContractIDsIsMutable();
createdContractIDs_.addAll(other.createdContractIDs_);
}
onChanged();
}
} else {
if (!other.createdContractIDs_.isEmpty()) {
if (createdContractIDsBuilder_.isEmpty()) {
createdContractIDsBuilder_.dispose();
createdContractIDsBuilder_ = null;
createdContractIDs_ = other.createdContractIDs_;
bitField0_ = (bitField0_ & ~0x00000002);
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_ & ~0x00000004);
} else {
ensureContractNoncesIsMutable();
contractNonces_.addAll(other.contractNonces_);
}
onChanged();
}
} else {
if (!other.contractNonces_.isEmpty()) {
if (contractNoncesBuilder_.isEmpty()) {
contractNoncesBuilder_.dispose();
contractNoncesBuilder_ = null;
contractNonces_ = other.contractNonces_;
bitField0_ = (bitField0_ & ~0x00000004);
contractNoncesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContractNoncesFieldBuilder() : null;
} else {
contractNoncesBuilder_.addAllMessages(other.contractNonces_);
}
}
}
if (other.hasSignerNonce()) {
mergeSignerNonce(other.getSignerNonce());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.ContractFunctionResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.ContractFunctionResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.hederahashgraph.api.proto.java.ContractID contractID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> contractIDBuilder_;
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
* @return Whether the contractID field is set.
*/
public boolean hasContractID() {
return contractIDBuilder_ != null || contractID_ != null;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
* @return The contractID.
*/
public com.hederahashgraph.api.proto.java.ContractID getContractID() {
if (contractIDBuilder_ == null) {
return contractID_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_;
} else {
return contractIDBuilder_.getMessage();
}
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public Builder setContractID(com.hederahashgraph.api.proto.java.ContractID value) {
if (contractIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractID_ = value;
onChanged();
} else {
contractIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public Builder setContractID(
com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
contractID_ = builderForValue.build();
onChanged();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public Builder mergeContractID(com.hederahashgraph.api.proto.java.ContractID value) {
if (contractIDBuilder_ == null) {
if (contractID_ != null) {
contractID_ =
com.hederahashgraph.api.proto.java.ContractID.newBuilder(contractID_).mergeFrom(value).buildPartial();
} else {
contractID_ = value;
}
onChanged();
} else {
contractIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public Builder clearContractID() {
if (contractIDBuilder_ == null) {
contractID_ = null;
onChanged();
} else {
contractID_ = null;
contractIDBuilder_ = null;
}
return this;
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() {
onChanged();
return getContractIDFieldBuilder().getBuilder();
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
if (contractIDBuilder_ != null) {
return contractIDBuilder_.getMessageOrBuilder();
} else {
return contractID_ == null ?
com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_;
}
}
/**
*
**
* the smart contract instance whose function was called
*
*
* .proto.ContractID contractID = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>
getContractIDFieldBuilder() {
if (contractIDBuilder_ == null) {
contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>(
getContractID(),
getParentForChildren(),
isClean());
contractID_ = null;
}
return contractIDBuilder_;
}
private com.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;
onChanged();
return this;
}
/**
*
**
* the result returned by the function
*
*
* bytes contractCallResult = 2;
* @return This builder for chaining.
*/
public Builder clearContractCallResult() {
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;
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();
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;
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;
onChanged();
return this;
}
/**
*
**
* bloom filter for record
*
*
* bytes bloom = 4;
* @return This builder for chaining.
*/
public Builder clearBloom() {
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;
onChanged();
return this;
}
/**
*
**
* units of gas used to execute contract
*
*
* uint64 gasUsed = 5;
* @return This builder for chaining.
*/
public Builder clearGasUsed() {
gasUsed_ = 0L;
onChanged();
return this;
}
private java.util.List logInfo_ =
java.util.Collections.emptyList();
private void ensureLogInfoIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
logInfo_ = new java.util.ArrayList(logInfo_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractLoginfo, com.hederahashgraph.api.proto.java.ContractLoginfo.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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_ & ~0x00000001);
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractLoginfo.Builder addLogInfoBuilder() {
return getLogInfoFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.ContractLoginfo.getDefaultInstance());
}
/**
*
**
* the log info for events returned by the function
*
*
* repeated .proto.ContractLoginfo logInfo = 6;
*/
public com.hederahashgraph.api.proto.java.ContractLoginfo.Builder addLogInfoBuilder(
int index) {
return getLogInfoFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractLoginfo, com.hederahashgraph.api.proto.java.ContractLoginfo.Builder, com.hederahashgraph.api.proto.java.ContractLoginfoOrBuilder>
getLogInfoFieldBuilder() {
if (logInfoBuilder_ == null) {
logInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractLoginfo, com.hederahashgraph.api.proto.java.ContractLoginfo.Builder, com.hederahashgraph.api.proto.java.ContractLoginfoOrBuilder>(
logInfo_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
logInfo_ = null;
}
return logInfoBuilder_;
}
private java.util.List createdContractIDs_ =
java.util.Collections.emptyList();
private void ensureCreatedContractIDsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
createdContractIDs_ = new java.util.ArrayList(createdContractIDs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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_ & ~0x00000002);
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID.Builder addCreatedContractIDsBuilder() {
return getCreatedContractIDsFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID.Builder addCreatedContractIDsBuilder(
int index) {
return getCreatedContractIDsFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>
getCreatedContractIDsFieldBuilder() {
if (createdContractIDsBuilder_ == null) {
createdContractIDsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>(
createdContractIDs_,
((bitField0_ & 0x00000002) != 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 evmAddressBuilder_ != null || evmAddress_ != null;
}
/**
*
**
* 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;
onChanged();
} else {
evmAddressBuilder_.setMessage(value);
}
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();
onChanged();
} else {
evmAddressBuilder_.setMessage(builderForValue.build());
}
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 (evmAddress_ != null) {
evmAddress_ =
com.google.protobuf.BytesValue.newBuilder(evmAddress_).mergeFrom(value).buildPartial();
} else {
evmAddress_ = value;
}
onChanged();
} else {
evmAddressBuilder_.mergeFrom(value);
}
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() {
if (evmAddressBuilder_ == null) {
evmAddress_ = null;
onChanged();
} else {
evmAddress_ = null;
evmAddressBuilder_ = null;
}
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() {
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;
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() {
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;
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() {
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;
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() {
functionParameters_ = getDefaultInstance().getFunctionParameters();
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID senderId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 senderIdBuilder_ != null || senderId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getSenderId() {
if (senderIdBuilder_ == null) {
return senderId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) {
if (senderIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
senderId_ = value;
onChanged();
} else {
senderIdBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (senderIdBuilder_ == null) {
senderId_ = builderForValue.build();
onChanged();
} else {
senderIdBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.AccountID value) {
if (senderIdBuilder_ == null) {
if (senderId_ != null) {
senderId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(senderId_).mergeFrom(value).buildPartial();
} else {
senderId_ = value;
}
onChanged();
} else {
senderIdBuilder_.mergeFrom(value);
}
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() {
if (senderIdBuilder_ == null) {
senderId_ = null;
onChanged();
} else {
senderId_ = null;
senderIdBuilder_ = null;
}
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.hederahashgraph.api.proto.java.AccountID.Builder getSenderIdBuilder() {
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.hederahashgraph.api.proto.java.AccountIDOrBuilder getSenderIdOrBuilder() {
if (senderIdBuilder_ != null) {
return senderIdBuilder_.getMessageOrBuilder();
} else {
return senderId_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getSenderIdFieldBuilder() {
if (senderIdBuilder_ == null) {
senderIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getSenderId(),
getParentForChildren(),
isClean());
senderId_ = null;
}
return senderIdBuilder_;
}
private java.util.List contractNonces_ =
java.util.Collections.emptyList();
private void ensureContractNoncesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
contractNonces_ = new java.util.ArrayList(contractNonces_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractNonceInfo, com.hederahashgraph.api.proto.java.ContractNonceInfo.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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_ & ~0x00000004);
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractNonceInfo.Builder addContractNoncesBuilder() {
return getContractNoncesFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractNonceInfo.Builder addContractNoncesBuilder(
int index) {
return getContractNoncesFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractNonceInfo, com.hederahashgraph.api.proto.java.ContractNonceInfo.Builder, com.hederahashgraph.api.proto.java.ContractNonceInfoOrBuilder>
getContractNoncesFieldBuilder() {
if (contractNoncesBuilder_ == null) {
contractNoncesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractNonceInfo, com.hederahashgraph.api.proto.java.ContractNonceInfo.Builder, com.hederahashgraph.api.proto.java.ContractNonceInfoOrBuilder>(
contractNonces_,
((bitField0_ & 0x00000004) != 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 signerNonceBuilder_ != null || signerNonce_ != null;
}
/**
*
**
* 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;
onChanged();
} else {
signerNonceBuilder_.setMessage(value);
}
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();
onChanged();
} else {
signerNonceBuilder_.setMessage(builderForValue.build());
}
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 (signerNonce_ != null) {
signerNonce_ =
com.google.protobuf.Int64Value.newBuilder(signerNonce_).mergeFrom(value).buildPartial();
} else {
signerNonce_ = value;
}
onChanged();
} else {
signerNonceBuilder_.mergeFrom(value);
}
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() {
if (signerNonceBuilder_ == null) {
signerNonce_ = null;
onChanged();
} else {
signerNonce_ = null;
signerNonceBuilder_ = null;
}
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() {
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.hederahashgraph.api.proto.java.ContractFunctionResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ContractFunctionResult();
}
public static com.hederahashgraph.api.proto.java.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 {
return new ContractFunctionResult(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractFunctionResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}