com.hedera.hashgraph.sdk.proto.TransactionRecord Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction_record.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Response when the client sends the node TransactionGetRecordResponse
*
*
* Protobuf type {@code proto.TransactionRecord}
*/
public final class TransactionRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.TransactionRecord)
TransactionRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionRecord.newBuilder() to construct.
private TransactionRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionRecord() {
transactionHash_ = com.google.protobuf.ByteString.EMPTY;
memo_ = "";
tokenTransferLists_ = java.util.Collections.emptyList();
assessedCustomFees_ = java.util.Collections.emptyList();
automaticTokenAssociations_ = java.util.Collections.emptyList();
alias_ = com.google.protobuf.ByteString.EMPTY;
ethereumHash_ = com.google.protobuf.ByteString.EMPTY;
paidStakingRewards_ = java.util.Collections.emptyList();
evmAddress_ = com.google.protobuf.ByteString.EMPTY;
newPendingAirdrops_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionRecord();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_TransactionRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_TransactionRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionRecord.class, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder.class);
}
private int bitField0_;
private int bodyCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object body_;
public enum BodyCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CONTRACTCALLRESULT(7),
CONTRACTCREATERESULT(8),
BODY_NOT_SET(0);
private final int value;
private BodyCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BodyCase valueOf(int value) {
return forNumber(value);
}
public static BodyCase forNumber(int value) {
switch (value) {
case 7: return CONTRACTCALLRESULT;
case 8: return CONTRACTCREATERESULT;
case 0: return BODY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public BodyCase
getBodyCase() {
return BodyCase.forNumber(
bodyCase_);
}
private int entropyCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object entropy_;
public enum EntropyCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PRNG_BYTES(19),
PRNG_NUMBER(20),
ENTROPY_NOT_SET(0);
private final int value;
private EntropyCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EntropyCase valueOf(int value) {
return forNumber(value);
}
public static EntropyCase forNumber(int value) {
switch (value) {
case 19: return PRNG_BYTES;
case 20: return PRNG_NUMBER;
case 0: return ENTROPY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EntropyCase
getEntropyCase() {
return EntropyCase.forNumber(
entropyCase_);
}
public static final int RECEIPT_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.TransactionReceipt receipt_;
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
* @return Whether the receipt field is set.
*/
@java.lang.Override
public boolean hasReceipt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
* @return The receipt.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceipt getReceipt() {
return receipt_ == null ? com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance() : receipt_;
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder getReceiptOrBuilder() {
return receipt_ == null ? com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance() : receipt_;
}
public static final int TRANSACTIONHASH_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString transactionHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The hash of the Transaction that executed (not the hash of any Transaction that failed for
* having a duplicate TransactionID)
*
*
* bytes transactionHash = 2;
* @return The transactionHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransactionHash() {
return transactionHash_;
}
public static final int CONSENSUSTIMESTAMP_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.Timestamp consensusTimestamp_;
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
* @return Whether the consensusTimestamp field is set.
*/
@java.lang.Override
public boolean hasConsensusTimestamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
* @return The consensusTimestamp.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getConsensusTimestamp() {
return consensusTimestamp_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : consensusTimestamp_;
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getConsensusTimestampOrBuilder() {
return consensusTimestamp_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : consensusTimestamp_;
}
public static final int TRANSACTIONID_FIELD_NUMBER = 4;
private com.hedera.hashgraph.sdk.proto.TransactionID transactionID_;
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
* @return Whether the transactionID field is set.
*/
@java.lang.Override
public boolean hasTransactionID() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
* @return The transactionID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionID getTransactionID() {
return transactionID_ == null ? com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : transactionID_;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder getTransactionIDOrBuilder() {
return transactionID_ == null ? com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : transactionID_;
}
public static final int MEMO_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object memo_ = "";
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
}
}
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRANSACTIONFEE_FIELD_NUMBER = 6;
private long transactionFee_ = 0L;
/**
*
**
* The actual transaction fee charged, not the original transactionFee value from
* TransactionBody
*
*
* uint64 transactionFee = 6;
* @return The transactionFee.
*/
@java.lang.Override
public long getTransactionFee() {
return transactionFee_;
}
public static final int CONTRACTCALLRESULT_FIELD_NUMBER = 7;
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
* @return Whether the contractCallResult field is set.
*/
@java.lang.Override
public boolean hasContractCallResult() {
return bodyCase_ == 7;
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
* @return The contractCallResult.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult getContractCallResult() {
if (bodyCase_ == 7) {
return (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_;
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder getContractCallResultOrBuilder() {
if (bodyCase_ == 7) {
return (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_;
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
public static final int CONTRACTCREATERESULT_FIELD_NUMBER = 8;
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
* @return Whether the contractCreateResult field is set.
*/
@java.lang.Override
public boolean hasContractCreateResult() {
return bodyCase_ == 8;
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
* @return The contractCreateResult.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult getContractCreateResult() {
if (bodyCase_ == 8) {
return (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_;
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder getContractCreateResultOrBuilder() {
if (bodyCase_ == 8) {
return (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_;
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
public static final int TRANSFERLIST_FIELD_NUMBER = 10;
private com.hedera.hashgraph.sdk.proto.TransferList transferList_;
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
* @return Whether the transferList field is set.
*/
@java.lang.Override
public boolean hasTransferList() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
* @return The transferList.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransferList getTransferList() {
return transferList_ == null ? com.hedera.hashgraph.sdk.proto.TransferList.getDefaultInstance() : transferList_;
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransferListOrBuilder getTransferListOrBuilder() {
return transferList_ == null ? com.hedera.hashgraph.sdk.proto.TransferList.getDefaultInstance() : transferList_;
}
public static final int TOKENTRANSFERLISTS_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private java.util.List tokenTransferLists_;
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
@java.lang.Override
public java.util.List getTokenTransferListsList() {
return tokenTransferLists_;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder>
getTokenTransferListsOrBuilderList() {
return tokenTransferLists_;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
@java.lang.Override
public int getTokenTransferListsCount() {
return tokenTransferLists_.size();
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenTransferList getTokenTransferLists(int index) {
return tokenTransferLists_.get(index);
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder getTokenTransferListsOrBuilder(
int index) {
return tokenTransferLists_.get(index);
}
public static final int SCHEDULEREF_FIELD_NUMBER = 12;
private com.hedera.hashgraph.sdk.proto.ScheduleID scheduleRef_;
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
* @return Whether the scheduleRef field is set.
*/
@java.lang.Override
public boolean hasScheduleRef() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
* @return The scheduleRef.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ScheduleID getScheduleRef() {
return scheduleRef_ == null ? com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleRef_;
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder getScheduleRefOrBuilder() {
return scheduleRef_ == null ? com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleRef_;
}
public static final int ASSESSED_CUSTOM_FEES_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private java.util.List assessedCustomFees_;
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
@java.lang.Override
public java.util.List getAssessedCustomFeesList() {
return assessedCustomFees_;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.AssessedCustomFeeOrBuilder>
getAssessedCustomFeesOrBuilderList() {
return assessedCustomFees_;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
@java.lang.Override
public int getAssessedCustomFeesCount() {
return assessedCustomFees_.size();
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AssessedCustomFee getAssessedCustomFees(int index) {
return assessedCustomFees_.get(index);
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AssessedCustomFeeOrBuilder getAssessedCustomFeesOrBuilder(
int index) {
return assessedCustomFees_.get(index);
}
public static final int AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private java.util.List automaticTokenAssociations_;
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
@java.lang.Override
public java.util.List getAutomaticTokenAssociationsList() {
return automaticTokenAssociations_;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TokenAssociationOrBuilder>
getAutomaticTokenAssociationsOrBuilderList() {
return automaticTokenAssociations_;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
@java.lang.Override
public int getAutomaticTokenAssociationsCount() {
return automaticTokenAssociations_.size();
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenAssociation getAutomaticTokenAssociations(int index) {
return automaticTokenAssociations_.get(index);
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenAssociationOrBuilder getAutomaticTokenAssociationsOrBuilder(
int index) {
return automaticTokenAssociations_.get(index);
}
public static final int PARENT_CONSENSUS_TIMESTAMP_FIELD_NUMBER = 15;
private com.hedera.hashgraph.sdk.proto.Timestamp parentConsensusTimestamp_;
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
* @return Whether the parentConsensusTimestamp field is set.
*/
@java.lang.Override
public boolean hasParentConsensusTimestamp() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
* @return The parentConsensusTimestamp.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getParentConsensusTimestamp() {
return parentConsensusTimestamp_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : parentConsensusTimestamp_;
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getParentConsensusTimestampOrBuilder() {
return parentConsensusTimestamp_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : parentConsensusTimestamp_;
}
public static final int ALIAS_FIELD_NUMBER = 16;
private com.google.protobuf.ByteString alias_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* In the record of a CryptoCreate transaction triggered by a user transaction with a
* (previously unused) alias, the new account's alias.
*
*
* bytes alias = 16;
* @return The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return alias_;
}
public static final int ETHEREUM_HASH_FIELD_NUMBER = 17;
private com.google.protobuf.ByteString ethereumHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The keccak256 hash of the ethereumData. This field will only be populated for
* EthereumTransaction.
*
*
* bytes ethereum_hash = 17;
* @return The ethereumHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEthereumHash() {
return ethereumHash_;
}
public static final int PAID_STAKING_REWARDS_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private java.util.List paidStakingRewards_;
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
@java.lang.Override
public java.util.List getPaidStakingRewardsList() {
return paidStakingRewards_;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder>
getPaidStakingRewardsOrBuilderList() {
return paidStakingRewards_;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
@java.lang.Override
public int getPaidStakingRewardsCount() {
return paidStakingRewards_.size();
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountAmount getPaidStakingRewards(int index) {
return paidStakingRewards_.get(index);
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder getPaidStakingRewardsOrBuilder(
int index) {
return paidStakingRewards_.get(index);
}
public static final int PRNG_BYTES_FIELD_NUMBER = 19;
/**
*
**
* In the record of a UtilPrng transaction with no output range, a pseudorandom 384-bit string.
*
*
* bytes prng_bytes = 19;
* @return Whether the prngBytes field is set.
*/
@java.lang.Override
public boolean hasPrngBytes() {
return entropyCase_ == 19;
}
/**
*
**
* In the record of a UtilPrng transaction with no output range, a pseudorandom 384-bit string.
*
*
* bytes prng_bytes = 19;
* @return The prngBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPrngBytes() {
if (entropyCase_ == 19) {
return (com.google.protobuf.ByteString) entropy_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int PRNG_NUMBER_FIELD_NUMBER = 20;
/**
*
**
* In the record of a PRNG transaction with an output range, the output of a PRNG whose input was a 384-bit string.
*
*
* int32 prng_number = 20;
* @return Whether the prngNumber field is set.
*/
@java.lang.Override
public boolean hasPrngNumber() {
return entropyCase_ == 20;
}
/**
*
**
* In the record of a PRNG transaction with an output range, the output of a PRNG whose input was a 384-bit string.
*
*
* int32 prng_number = 20;
* @return The prngNumber.
*/
@java.lang.Override
public int getPrngNumber() {
if (entropyCase_ == 20) {
return (java.lang.Integer) entropy_;
}
return 0;
}
public static final int EVM_ADDRESS_FIELD_NUMBER = 21;
private com.google.protobuf.ByteString evmAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The new default EVM address of the account created by this transaction.
* This field is populated only when the EVM address is not specified in the related transaction body.
*
*
* bytes evm_address = 21;
* @return The evmAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEvmAddress() {
return evmAddress_;
}
public static final int NEW_PENDING_AIRDROPS_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private java.util.List newPendingAirdrops_;
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
@java.lang.Override
public java.util.List getNewPendingAirdropsList() {
return newPendingAirdrops_;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.PendingAirdropRecordOrBuilder>
getNewPendingAirdropsOrBuilderList() {
return newPendingAirdrops_;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
@java.lang.Override
public int getNewPendingAirdropsCount() {
return newPendingAirdrops_.size();
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.PendingAirdropRecord getNewPendingAirdrops(int index) {
return newPendingAirdrops_.get(index);
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.PendingAirdropRecordOrBuilder getNewPendingAirdropsOrBuilder(
int index) {
return newPendingAirdrops_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getReceipt());
}
if (!transactionHash_.isEmpty()) {
output.writeBytes(2, transactionHash_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getConsensusTimestamp());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getTransactionID());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, memo_);
}
if (transactionFee_ != 0L) {
output.writeUInt64(6, transactionFee_);
}
if (bodyCase_ == 7) {
output.writeMessage(7, (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_);
}
if (bodyCase_ == 8) {
output.writeMessage(8, (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(10, getTransferList());
}
for (int i = 0; i < tokenTransferLists_.size(); i++) {
output.writeMessage(11, tokenTransferLists_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(12, getScheduleRef());
}
for (int i = 0; i < assessedCustomFees_.size(); i++) {
output.writeMessage(13, assessedCustomFees_.get(i));
}
for (int i = 0; i < automaticTokenAssociations_.size(); i++) {
output.writeMessage(14, automaticTokenAssociations_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(15, getParentConsensusTimestamp());
}
if (!alias_.isEmpty()) {
output.writeBytes(16, alias_);
}
if (!ethereumHash_.isEmpty()) {
output.writeBytes(17, ethereumHash_);
}
for (int i = 0; i < paidStakingRewards_.size(); i++) {
output.writeMessage(18, paidStakingRewards_.get(i));
}
if (entropyCase_ == 19) {
output.writeBytes(
19, (com.google.protobuf.ByteString) entropy_);
}
if (entropyCase_ == 20) {
output.writeInt32(
20, (int)((java.lang.Integer) entropy_));
}
if (!evmAddress_.isEmpty()) {
output.writeBytes(21, evmAddress_);
}
for (int i = 0; i < newPendingAirdrops_.size(); i++) {
output.writeMessage(22, newPendingAirdrops_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getReceipt());
}
if (!transactionHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, transactionHash_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getConsensusTimestamp());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTransactionID());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, memo_);
}
if (transactionFee_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, transactionFee_);
}
if (bodyCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_);
}
if (bodyCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getTransferList());
}
for (int i = 0; i < tokenTransferLists_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, tokenTransferLists_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getScheduleRef());
}
for (int i = 0; i < assessedCustomFees_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, assessedCustomFees_.get(i));
}
for (int i = 0; i < automaticTokenAssociations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, automaticTokenAssociations_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getParentConsensusTimestamp());
}
if (!alias_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(16, alias_);
}
if (!ethereumHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(17, ethereumHash_);
}
for (int i = 0; i < paidStakingRewards_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, paidStakingRewards_.get(i));
}
if (entropyCase_ == 19) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
19, (com.google.protobuf.ByteString) entropy_);
}
if (entropyCase_ == 20) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
20, (int)((java.lang.Integer) entropy_));
}
if (!evmAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(21, evmAddress_);
}
for (int i = 0; i < newPendingAirdrops_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, newPendingAirdrops_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hedera.hashgraph.sdk.proto.TransactionRecord)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.TransactionRecord other = (com.hedera.hashgraph.sdk.proto.TransactionRecord) obj;
if (hasReceipt() != other.hasReceipt()) return false;
if (hasReceipt()) {
if (!getReceipt()
.equals(other.getReceipt())) return false;
}
if (!getTransactionHash()
.equals(other.getTransactionHash())) return false;
if (hasConsensusTimestamp() != other.hasConsensusTimestamp()) return false;
if (hasConsensusTimestamp()) {
if (!getConsensusTimestamp()
.equals(other.getConsensusTimestamp())) return false;
}
if (hasTransactionID() != other.hasTransactionID()) return false;
if (hasTransactionID()) {
if (!getTransactionID()
.equals(other.getTransactionID())) return false;
}
if (!getMemo()
.equals(other.getMemo())) return false;
if (getTransactionFee()
!= other.getTransactionFee()) return false;
if (hasTransferList() != other.hasTransferList()) return false;
if (hasTransferList()) {
if (!getTransferList()
.equals(other.getTransferList())) return false;
}
if (!getTokenTransferListsList()
.equals(other.getTokenTransferListsList())) return false;
if (hasScheduleRef() != other.hasScheduleRef()) return false;
if (hasScheduleRef()) {
if (!getScheduleRef()
.equals(other.getScheduleRef())) return false;
}
if (!getAssessedCustomFeesList()
.equals(other.getAssessedCustomFeesList())) return false;
if (!getAutomaticTokenAssociationsList()
.equals(other.getAutomaticTokenAssociationsList())) return false;
if (hasParentConsensusTimestamp() != other.hasParentConsensusTimestamp()) return false;
if (hasParentConsensusTimestamp()) {
if (!getParentConsensusTimestamp()
.equals(other.getParentConsensusTimestamp())) return false;
}
if (!getAlias()
.equals(other.getAlias())) return false;
if (!getEthereumHash()
.equals(other.getEthereumHash())) return false;
if (!getPaidStakingRewardsList()
.equals(other.getPaidStakingRewardsList())) return false;
if (!getEvmAddress()
.equals(other.getEvmAddress())) return false;
if (!getNewPendingAirdropsList()
.equals(other.getNewPendingAirdropsList())) return false;
if (!getBodyCase().equals(other.getBodyCase())) return false;
switch (bodyCase_) {
case 7:
if (!getContractCallResult()
.equals(other.getContractCallResult())) return false;
break;
case 8:
if (!getContractCreateResult()
.equals(other.getContractCreateResult())) return false;
break;
case 0:
default:
}
if (!getEntropyCase().equals(other.getEntropyCase())) return false;
switch (entropyCase_) {
case 19:
if (!getPrngBytes()
.equals(other.getPrngBytes())) return false;
break;
case 20:
if (getPrngNumber()
!= other.getPrngNumber()) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasReceipt()) {
hash = (37 * hash) + RECEIPT_FIELD_NUMBER;
hash = (53 * hash) + getReceipt().hashCode();
}
hash = (37 * hash) + TRANSACTIONHASH_FIELD_NUMBER;
hash = (53 * hash) + getTransactionHash().hashCode();
if (hasConsensusTimestamp()) {
hash = (37 * hash) + CONSENSUSTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getConsensusTimestamp().hashCode();
}
if (hasTransactionID()) {
hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionID().hashCode();
}
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (37 * hash) + TRANSACTIONFEE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTransactionFee());
if (hasTransferList()) {
hash = (37 * hash) + TRANSFERLIST_FIELD_NUMBER;
hash = (53 * hash) + getTransferList().hashCode();
}
if (getTokenTransferListsCount() > 0) {
hash = (37 * hash) + TOKENTRANSFERLISTS_FIELD_NUMBER;
hash = (53 * hash) + getTokenTransferListsList().hashCode();
}
if (hasScheduleRef()) {
hash = (37 * hash) + SCHEDULEREF_FIELD_NUMBER;
hash = (53 * hash) + getScheduleRef().hashCode();
}
if (getAssessedCustomFeesCount() > 0) {
hash = (37 * hash) + ASSESSED_CUSTOM_FEES_FIELD_NUMBER;
hash = (53 * hash) + getAssessedCustomFeesList().hashCode();
}
if (getAutomaticTokenAssociationsCount() > 0) {
hash = (37 * hash) + AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER;
hash = (53 * hash) + getAutomaticTokenAssociationsList().hashCode();
}
if (hasParentConsensusTimestamp()) {
hash = (37 * hash) + PARENT_CONSENSUS_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getParentConsensusTimestamp().hashCode();
}
hash = (37 * hash) + ALIAS_FIELD_NUMBER;
hash = (53 * hash) + getAlias().hashCode();
hash = (37 * hash) + ETHEREUM_HASH_FIELD_NUMBER;
hash = (53 * hash) + getEthereumHash().hashCode();
if (getPaidStakingRewardsCount() > 0) {
hash = (37 * hash) + PAID_STAKING_REWARDS_FIELD_NUMBER;
hash = (53 * hash) + getPaidStakingRewardsList().hashCode();
}
hash = (37 * hash) + EVM_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getEvmAddress().hashCode();
if (getNewPendingAirdropsCount() > 0) {
hash = (37 * hash) + NEW_PENDING_AIRDROPS_FIELD_NUMBER;
hash = (53 * hash) + getNewPendingAirdropsList().hashCode();
}
switch (bodyCase_) {
case 7:
hash = (37 * hash) + CONTRACTCALLRESULT_FIELD_NUMBER;
hash = (53 * hash) + getContractCallResult().hashCode();
break;
case 8:
hash = (37 * hash) + CONTRACTCREATERESULT_FIELD_NUMBER;
hash = (53 * hash) + getContractCreateResult().hashCode();
break;
case 0:
default:
}
switch (entropyCase_) {
case 19:
hash = (37 * hash) + PRNG_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getPrngBytes().hashCode();
break;
case 20:
hash = (37 * hash) + PRNG_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getPrngNumber();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.TransactionRecord prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* Response when the client sends the node TransactionGetRecordResponse
*
*
* Protobuf type {@code proto.TransactionRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.TransactionRecord)
com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_TransactionRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_TransactionRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionRecord.class, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.TransactionRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getReceiptFieldBuilder();
getConsensusTimestampFieldBuilder();
getTransactionIDFieldBuilder();
getTransferListFieldBuilder();
getTokenTransferListsFieldBuilder();
getScheduleRefFieldBuilder();
getAssessedCustomFeesFieldBuilder();
getAutomaticTokenAssociationsFieldBuilder();
getParentConsensusTimestampFieldBuilder();
getPaidStakingRewardsFieldBuilder();
getNewPendingAirdropsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
receipt_ = null;
if (receiptBuilder_ != null) {
receiptBuilder_.dispose();
receiptBuilder_ = null;
}
transactionHash_ = com.google.protobuf.ByteString.EMPTY;
consensusTimestamp_ = null;
if (consensusTimestampBuilder_ != null) {
consensusTimestampBuilder_.dispose();
consensusTimestampBuilder_ = null;
}
transactionID_ = null;
if (transactionIDBuilder_ != null) {
transactionIDBuilder_.dispose();
transactionIDBuilder_ = null;
}
memo_ = "";
transactionFee_ = 0L;
if (contractCallResultBuilder_ != null) {
contractCallResultBuilder_.clear();
}
if (contractCreateResultBuilder_ != null) {
contractCreateResultBuilder_.clear();
}
transferList_ = null;
if (transferListBuilder_ != null) {
transferListBuilder_.dispose();
transferListBuilder_ = null;
}
if (tokenTransferListsBuilder_ == null) {
tokenTransferLists_ = java.util.Collections.emptyList();
} else {
tokenTransferLists_ = null;
tokenTransferListsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
scheduleRef_ = null;
if (scheduleRefBuilder_ != null) {
scheduleRefBuilder_.dispose();
scheduleRefBuilder_ = null;
}
if (assessedCustomFeesBuilder_ == null) {
assessedCustomFees_ = java.util.Collections.emptyList();
} else {
assessedCustomFees_ = null;
assessedCustomFeesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
if (automaticTokenAssociationsBuilder_ == null) {
automaticTokenAssociations_ = java.util.Collections.emptyList();
} else {
automaticTokenAssociations_ = null;
automaticTokenAssociationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
parentConsensusTimestamp_ = null;
if (parentConsensusTimestampBuilder_ != null) {
parentConsensusTimestampBuilder_.dispose();
parentConsensusTimestampBuilder_ = null;
}
alias_ = com.google.protobuf.ByteString.EMPTY;
ethereumHash_ = com.google.protobuf.ByteString.EMPTY;
if (paidStakingRewardsBuilder_ == null) {
paidStakingRewards_ = java.util.Collections.emptyList();
} else {
paidStakingRewards_ = null;
paidStakingRewardsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00010000);
evmAddress_ = com.google.protobuf.ByteString.EMPTY;
if (newPendingAirdropsBuilder_ == null) {
newPendingAirdrops_ = java.util.Collections.emptyList();
} else {
newPendingAirdrops_ = null;
newPendingAirdropsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00100000);
bodyCase_ = 0;
body_ = null;
entropyCase_ = 0;
entropy_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_TransactionRecord_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecord getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecord build() {
com.hedera.hashgraph.sdk.proto.TransactionRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecord buildPartial() {
com.hedera.hashgraph.sdk.proto.TransactionRecord result = new com.hedera.hashgraph.sdk.proto.TransactionRecord(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.TransactionRecord result) {
if (tokenTransferListsBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)) {
tokenTransferLists_ = java.util.Collections.unmodifiableList(tokenTransferLists_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.tokenTransferLists_ = tokenTransferLists_;
} else {
result.tokenTransferLists_ = tokenTransferListsBuilder_.build();
}
if (assessedCustomFeesBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
assessedCustomFees_ = java.util.Collections.unmodifiableList(assessedCustomFees_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.assessedCustomFees_ = assessedCustomFees_;
} else {
result.assessedCustomFees_ = assessedCustomFeesBuilder_.build();
}
if (automaticTokenAssociationsBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)) {
automaticTokenAssociations_ = java.util.Collections.unmodifiableList(automaticTokenAssociations_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.automaticTokenAssociations_ = automaticTokenAssociations_;
} else {
result.automaticTokenAssociations_ = automaticTokenAssociationsBuilder_.build();
}
if (paidStakingRewardsBuilder_ == null) {
if (((bitField0_ & 0x00010000) != 0)) {
paidStakingRewards_ = java.util.Collections.unmodifiableList(paidStakingRewards_);
bitField0_ = (bitField0_ & ~0x00010000);
}
result.paidStakingRewards_ = paidStakingRewards_;
} else {
result.paidStakingRewards_ = paidStakingRewardsBuilder_.build();
}
if (newPendingAirdropsBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0)) {
newPendingAirdrops_ = java.util.Collections.unmodifiableList(newPendingAirdrops_);
bitField0_ = (bitField0_ & ~0x00100000);
}
result.newPendingAirdrops_ = newPendingAirdrops_;
} else {
result.newPendingAirdrops_ = newPendingAirdropsBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.TransactionRecord result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.receipt_ = receiptBuilder_ == null
? receipt_
: receiptBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.transactionHash_ = transactionHash_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.consensusTimestamp_ = consensusTimestampBuilder_ == null
? consensusTimestamp_
: consensusTimestampBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.transactionID_ = transactionIDBuilder_ == null
? transactionID_
: transactionIDBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.memo_ = memo_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.transactionFee_ = transactionFee_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.transferList_ = transferListBuilder_ == null
? transferList_
: transferListBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.scheduleRef_ = scheduleRefBuilder_ == null
? scheduleRef_
: scheduleRefBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.parentConsensusTimestamp_ = parentConsensusTimestampBuilder_ == null
? parentConsensusTimestamp_
: parentConsensusTimestampBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.alias_ = alias_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.ethereumHash_ = ethereumHash_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.evmAddress_ = evmAddress_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.hedera.hashgraph.sdk.proto.TransactionRecord result) {
result.bodyCase_ = bodyCase_;
result.body_ = this.body_;
if (bodyCase_ == 7 &&
contractCallResultBuilder_ != null) {
result.body_ = contractCallResultBuilder_.build();
}
if (bodyCase_ == 8 &&
contractCreateResultBuilder_ != null) {
result.body_ = contractCreateResultBuilder_.build();
}
result.entropyCase_ = entropyCase_;
result.entropy_ = this.entropy_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.TransactionRecord) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.TransactionRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TransactionRecord other) {
if (other == com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance()) return this;
if (other.hasReceipt()) {
mergeReceipt(other.getReceipt());
}
if (other.getTransactionHash() != com.google.protobuf.ByteString.EMPTY) {
setTransactionHash(other.getTransactionHash());
}
if (other.hasConsensusTimestamp()) {
mergeConsensusTimestamp(other.getConsensusTimestamp());
}
if (other.hasTransactionID()) {
mergeTransactionID(other.getTransactionID());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.getTransactionFee() != 0L) {
setTransactionFee(other.getTransactionFee());
}
if (other.hasTransferList()) {
mergeTransferList(other.getTransferList());
}
if (tokenTransferListsBuilder_ == null) {
if (!other.tokenTransferLists_.isEmpty()) {
if (tokenTransferLists_.isEmpty()) {
tokenTransferLists_ = other.tokenTransferLists_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureTokenTransferListsIsMutable();
tokenTransferLists_.addAll(other.tokenTransferLists_);
}
onChanged();
}
} else {
if (!other.tokenTransferLists_.isEmpty()) {
if (tokenTransferListsBuilder_.isEmpty()) {
tokenTransferListsBuilder_.dispose();
tokenTransferListsBuilder_ = null;
tokenTransferLists_ = other.tokenTransferLists_;
bitField0_ = (bitField0_ & ~0x00000200);
tokenTransferListsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTokenTransferListsFieldBuilder() : null;
} else {
tokenTransferListsBuilder_.addAllMessages(other.tokenTransferLists_);
}
}
}
if (other.hasScheduleRef()) {
mergeScheduleRef(other.getScheduleRef());
}
if (assessedCustomFeesBuilder_ == null) {
if (!other.assessedCustomFees_.isEmpty()) {
if (assessedCustomFees_.isEmpty()) {
assessedCustomFees_ = other.assessedCustomFees_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.addAll(other.assessedCustomFees_);
}
onChanged();
}
} else {
if (!other.assessedCustomFees_.isEmpty()) {
if (assessedCustomFeesBuilder_.isEmpty()) {
assessedCustomFeesBuilder_.dispose();
assessedCustomFeesBuilder_ = null;
assessedCustomFees_ = other.assessedCustomFees_;
bitField0_ = (bitField0_ & ~0x00000800);
assessedCustomFeesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAssessedCustomFeesFieldBuilder() : null;
} else {
assessedCustomFeesBuilder_.addAllMessages(other.assessedCustomFees_);
}
}
}
if (automaticTokenAssociationsBuilder_ == null) {
if (!other.automaticTokenAssociations_.isEmpty()) {
if (automaticTokenAssociations_.isEmpty()) {
automaticTokenAssociations_ = other.automaticTokenAssociations_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.addAll(other.automaticTokenAssociations_);
}
onChanged();
}
} else {
if (!other.automaticTokenAssociations_.isEmpty()) {
if (automaticTokenAssociationsBuilder_.isEmpty()) {
automaticTokenAssociationsBuilder_.dispose();
automaticTokenAssociationsBuilder_ = null;
automaticTokenAssociations_ = other.automaticTokenAssociations_;
bitField0_ = (bitField0_ & ~0x00001000);
automaticTokenAssociationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAutomaticTokenAssociationsFieldBuilder() : null;
} else {
automaticTokenAssociationsBuilder_.addAllMessages(other.automaticTokenAssociations_);
}
}
}
if (other.hasParentConsensusTimestamp()) {
mergeParentConsensusTimestamp(other.getParentConsensusTimestamp());
}
if (other.getAlias() != com.google.protobuf.ByteString.EMPTY) {
setAlias(other.getAlias());
}
if (other.getEthereumHash() != com.google.protobuf.ByteString.EMPTY) {
setEthereumHash(other.getEthereumHash());
}
if (paidStakingRewardsBuilder_ == null) {
if (!other.paidStakingRewards_.isEmpty()) {
if (paidStakingRewards_.isEmpty()) {
paidStakingRewards_ = other.paidStakingRewards_;
bitField0_ = (bitField0_ & ~0x00010000);
} else {
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.addAll(other.paidStakingRewards_);
}
onChanged();
}
} else {
if (!other.paidStakingRewards_.isEmpty()) {
if (paidStakingRewardsBuilder_.isEmpty()) {
paidStakingRewardsBuilder_.dispose();
paidStakingRewardsBuilder_ = null;
paidStakingRewards_ = other.paidStakingRewards_;
bitField0_ = (bitField0_ & ~0x00010000);
paidStakingRewardsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPaidStakingRewardsFieldBuilder() : null;
} else {
paidStakingRewardsBuilder_.addAllMessages(other.paidStakingRewards_);
}
}
}
if (other.getEvmAddress() != com.google.protobuf.ByteString.EMPTY) {
setEvmAddress(other.getEvmAddress());
}
if (newPendingAirdropsBuilder_ == null) {
if (!other.newPendingAirdrops_.isEmpty()) {
if (newPendingAirdrops_.isEmpty()) {
newPendingAirdrops_ = other.newPendingAirdrops_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureNewPendingAirdropsIsMutable();
newPendingAirdrops_.addAll(other.newPendingAirdrops_);
}
onChanged();
}
} else {
if (!other.newPendingAirdrops_.isEmpty()) {
if (newPendingAirdropsBuilder_.isEmpty()) {
newPendingAirdropsBuilder_.dispose();
newPendingAirdropsBuilder_ = null;
newPendingAirdrops_ = other.newPendingAirdrops_;
bitField0_ = (bitField0_ & ~0x00100000);
newPendingAirdropsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNewPendingAirdropsFieldBuilder() : null;
} else {
newPendingAirdropsBuilder_.addAllMessages(other.newPendingAirdrops_);
}
}
}
switch (other.getBodyCase()) {
case CONTRACTCALLRESULT: {
mergeContractCallResult(other.getContractCallResult());
break;
}
case CONTRACTCREATERESULT: {
mergeContractCreateResult(other.getContractCreateResult());
break;
}
case BODY_NOT_SET: {
break;
}
}
switch (other.getEntropyCase()) {
case PRNG_BYTES: {
setPrngBytes(other.getPrngBytes());
break;
}
case PRNG_NUMBER: {
setPrngNumber(other.getPrngNumber());
break;
}
case ENTROPY_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getReceiptFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
transactionHash_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getConsensusTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getTransactionIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
memo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
transactionFee_ = input.readUInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
input.readMessage(
getContractCallResultFieldBuilder().getBuilder(),
extensionRegistry);
bodyCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getContractCreateResultFieldBuilder().getBuilder(),
extensionRegistry);
bodyCase_ = 8;
break;
} // case 66
case 82: {
input.readMessage(
getTransferListFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 82
case 90: {
com.hedera.hashgraph.sdk.proto.TokenTransferList m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.TokenTransferList.parser(),
extensionRegistry);
if (tokenTransferListsBuilder_ == null) {
ensureTokenTransferListsIsMutable();
tokenTransferLists_.add(m);
} else {
tokenTransferListsBuilder_.addMessage(m);
}
break;
} // case 90
case 98: {
input.readMessage(
getScheduleRefFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 98
case 106: {
com.hedera.hashgraph.sdk.proto.AssessedCustomFee m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.AssessedCustomFee.parser(),
extensionRegistry);
if (assessedCustomFeesBuilder_ == null) {
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.add(m);
} else {
assessedCustomFeesBuilder_.addMessage(m);
}
break;
} // case 106
case 114: {
com.hedera.hashgraph.sdk.proto.TokenAssociation m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.TokenAssociation.parser(),
extensionRegistry);
if (automaticTokenAssociationsBuilder_ == null) {
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.add(m);
} else {
automaticTokenAssociationsBuilder_.addMessage(m);
}
break;
} // case 114
case 122: {
input.readMessage(
getParentConsensusTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 122
case 130: {
alias_ = input.readBytes();
bitField0_ |= 0x00004000;
break;
} // case 130
case 138: {
ethereumHash_ = input.readBytes();
bitField0_ |= 0x00008000;
break;
} // case 138
case 146: {
com.hedera.hashgraph.sdk.proto.AccountAmount m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.AccountAmount.parser(),
extensionRegistry);
if (paidStakingRewardsBuilder_ == null) {
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.add(m);
} else {
paidStakingRewardsBuilder_.addMessage(m);
}
break;
} // case 146
case 154: {
entropy_ = input.readBytes();
entropyCase_ = 19;
break;
} // case 154
case 160: {
entropy_ = input.readInt32();
entropyCase_ = 20;
break;
} // case 160
case 170: {
evmAddress_ = input.readBytes();
bitField0_ |= 0x00080000;
break;
} // case 170
case 178: {
com.hedera.hashgraph.sdk.proto.PendingAirdropRecord m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.parser(),
extensionRegistry);
if (newPendingAirdropsBuilder_ == null) {
ensureNewPendingAirdropsIsMutable();
newPendingAirdrops_.add(m);
} else {
newPendingAirdropsBuilder_.addMessage(m);
}
break;
} // case 178
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bodyCase_ = 0;
private java.lang.Object body_;
public BodyCase
getBodyCase() {
return BodyCase.forNumber(
bodyCase_);
}
public Builder clearBody() {
bodyCase_ = 0;
body_ = null;
onChanged();
return this;
}
private int entropyCase_ = 0;
private java.lang.Object entropy_;
public EntropyCase
getEntropyCase() {
return EntropyCase.forNumber(
entropyCase_);
}
public Builder clearEntropy() {
entropyCase_ = 0;
entropy_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.TransactionReceipt receipt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder> receiptBuilder_;
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
* @return Whether the receipt field is set.
*/
public boolean hasReceipt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
* @return The receipt.
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt getReceipt() {
if (receiptBuilder_ == null) {
return receipt_ == null ? com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance() : receipt_;
} else {
return receiptBuilder_.getMessage();
}
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
*/
public Builder setReceipt(com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (receiptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receipt_ = value;
} else {
receiptBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
*/
public Builder setReceipt(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder builderForValue) {
if (receiptBuilder_ == null) {
receipt_ = builderForValue.build();
} else {
receiptBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
*/
public Builder mergeReceipt(com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (receiptBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
receipt_ != null &&
receipt_ != com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance()) {
getReceiptBuilder().mergeFrom(value);
} else {
receipt_ = value;
}
} else {
receiptBuilder_.mergeFrom(value);
}
if (receipt_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
*/
public Builder clearReceipt() {
bitField0_ = (bitField0_ & ~0x00000001);
receipt_ = null;
if (receiptBuilder_ != null) {
receiptBuilder_.dispose();
receiptBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder getReceiptBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getReceiptFieldBuilder().getBuilder();
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder getReceiptOrBuilder() {
if (receiptBuilder_ != null) {
return receiptBuilder_.getMessageOrBuilder();
} else {
return receipt_ == null ?
com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance() : receipt_;
}
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>
getReceiptFieldBuilder() {
if (receiptBuilder_ == null) {
receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>(
getReceipt(),
getParentForChildren(),
isClean());
receipt_ = null;
}
return receiptBuilder_;
}
private com.google.protobuf.ByteString transactionHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The hash of the Transaction that executed (not the hash of any Transaction that failed for
* having a duplicate TransactionID)
*
*
* bytes transactionHash = 2;
* @return The transactionHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransactionHash() {
return transactionHash_;
}
/**
*
**
* The hash of the Transaction that executed (not the hash of any Transaction that failed for
* having a duplicate TransactionID)
*
*
* bytes transactionHash = 2;
* @param value The transactionHash to set.
* @return This builder for chaining.
*/
public Builder setTransactionHash(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
transactionHash_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The hash of the Transaction that executed (not the hash of any Transaction that failed for
* having a duplicate TransactionID)
*
*
* bytes transactionHash = 2;
* @return This builder for chaining.
*/
public Builder clearTransactionHash() {
bitField0_ = (bitField0_ & ~0x00000002);
transactionHash_ = getDefaultInstance().getTransactionHash();
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.Timestamp consensusTimestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> consensusTimestampBuilder_;
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
* @return Whether the consensusTimestamp field is set.
*/
public boolean hasConsensusTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
* @return The consensusTimestamp.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getConsensusTimestamp() {
if (consensusTimestampBuilder_ == null) {
return consensusTimestamp_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : consensusTimestamp_;
} else {
return consensusTimestampBuilder_.getMessage();
}
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
public Builder setConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (consensusTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consensusTimestamp_ = value;
} else {
consensusTimestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
public Builder setConsensusTimestamp(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (consensusTimestampBuilder_ == null) {
consensusTimestamp_ = builderForValue.build();
} else {
consensusTimestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
public Builder mergeConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (consensusTimestampBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
consensusTimestamp_ != null &&
consensusTimestamp_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getConsensusTimestampBuilder().mergeFrom(value);
} else {
consensusTimestamp_ = value;
}
} else {
consensusTimestampBuilder_.mergeFrom(value);
}
if (consensusTimestamp_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
public Builder clearConsensusTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
consensusTimestamp_ = null;
if (consensusTimestampBuilder_ != null) {
consensusTimestampBuilder_.dispose();
consensusTimestampBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getConsensusTimestampBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getConsensusTimestampFieldBuilder().getBuilder();
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getConsensusTimestampOrBuilder() {
if (consensusTimestampBuilder_ != null) {
return consensusTimestampBuilder_.getMessageOrBuilder();
} else {
return consensusTimestamp_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : consensusTimestamp_;
}
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getConsensusTimestampFieldBuilder() {
if (consensusTimestampBuilder_ == null) {
consensusTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
getConsensusTimestamp(),
getParentForChildren(),
isClean());
consensusTimestamp_ = null;
}
return consensusTimestampBuilder_;
}
private com.hedera.hashgraph.sdk.proto.TransactionID transactionID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionID, com.hedera.hashgraph.sdk.proto.TransactionID.Builder, com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder> transactionIDBuilder_;
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
* @return Whether the transactionID field is set.
*/
public boolean hasTransactionID() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
* @return The transactionID.
*/
public com.hedera.hashgraph.sdk.proto.TransactionID getTransactionID() {
if (transactionIDBuilder_ == null) {
return transactionID_ == null ? com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : transactionID_;
} else {
return transactionIDBuilder_.getMessage();
}
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
public Builder setTransactionID(com.hedera.hashgraph.sdk.proto.TransactionID value) {
if (transactionIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transactionID_ = value;
} else {
transactionIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
public Builder setTransactionID(
com.hedera.hashgraph.sdk.proto.TransactionID.Builder builderForValue) {
if (transactionIDBuilder_ == null) {
transactionID_ = builderForValue.build();
} else {
transactionIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
public Builder mergeTransactionID(com.hedera.hashgraph.sdk.proto.TransactionID value) {
if (transactionIDBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
transactionID_ != null &&
transactionID_ != com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance()) {
getTransactionIDBuilder().mergeFrom(value);
} else {
transactionID_ = value;
}
} else {
transactionIDBuilder_.mergeFrom(value);
}
if (transactionID_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
public Builder clearTransactionID() {
bitField0_ = (bitField0_ & ~0x00000008);
transactionID_ = null;
if (transactionIDBuilder_ != null) {
transactionIDBuilder_.dispose();
transactionIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionID.Builder getTransactionIDBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getTransactionIDFieldBuilder().getBuilder();
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder getTransactionIDOrBuilder() {
if (transactionIDBuilder_ != null) {
return transactionIDBuilder_.getMessageOrBuilder();
} else {
return transactionID_ == null ?
com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance() : transactionID_;
}
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionID, com.hedera.hashgraph.sdk.proto.TransactionID.Builder, com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder>
getTransactionIDFieldBuilder() {
if (transactionIDBuilder_ == null) {
transactionIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionID, com.hedera.hashgraph.sdk.proto.TransactionID.Builder, com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder>(
getTransactionID(),
getParentForChildren(),
isClean());
transactionID_ = null;
}
return transactionIDBuilder_;
}
private java.lang.Object memo_ = "";
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
* @return The memo.
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
* @return The bytes for memo.
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
memo_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
memo_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private long transactionFee_ ;
/**
*
**
* The actual transaction fee charged, not the original transactionFee value from
* TransactionBody
*
*
* uint64 transactionFee = 6;
* @return The transactionFee.
*/
@java.lang.Override
public long getTransactionFee() {
return transactionFee_;
}
/**
*
**
* The actual transaction fee charged, not the original transactionFee value from
* TransactionBody
*
*
* uint64 transactionFee = 6;
* @param value The transactionFee to set.
* @return This builder for chaining.
*/
public Builder setTransactionFee(long value) {
transactionFee_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* The actual transaction fee charged, not the original transactionFee value from
* TransactionBody
*
*
* uint64 transactionFee = 6;
* @return This builder for chaining.
*/
public Builder clearTransactionFee() {
bitField0_ = (bitField0_ & ~0x00000020);
transactionFee_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractFunctionResult, com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder, com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder> contractCallResultBuilder_;
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
* @return Whether the contractCallResult field is set.
*/
@java.lang.Override
public boolean hasContractCallResult() {
return bodyCase_ == 7;
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
* @return The contractCallResult.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult getContractCallResult() {
if (contractCallResultBuilder_ == null) {
if (bodyCase_ == 7) {
return (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_;
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
} else {
if (bodyCase_ == 7) {
return contractCallResultBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
*/
public Builder setContractCallResult(com.hedera.hashgraph.sdk.proto.ContractFunctionResult value) {
if (contractCallResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
} else {
contractCallResultBuilder_.setMessage(value);
}
bodyCase_ = 7;
return this;
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
*/
public Builder setContractCallResult(
com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder builderForValue) {
if (contractCallResultBuilder_ == null) {
body_ = builderForValue.build();
onChanged();
} else {
contractCallResultBuilder_.setMessage(builderForValue.build());
}
bodyCase_ = 7;
return this;
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
*/
public Builder mergeContractCallResult(com.hedera.hashgraph.sdk.proto.ContractFunctionResult value) {
if (contractCallResultBuilder_ == null) {
if (bodyCase_ == 7 &&
body_ != com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance()) {
body_ = com.hedera.hashgraph.sdk.proto.ContractFunctionResult.newBuilder((com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_)
.mergeFrom(value).buildPartial();
} else {
body_ = value;
}
onChanged();
} else {
if (bodyCase_ == 7) {
contractCallResultBuilder_.mergeFrom(value);
} else {
contractCallResultBuilder_.setMessage(value);
}
}
bodyCase_ = 7;
return this;
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
*/
public Builder clearContractCallResult() {
if (contractCallResultBuilder_ == null) {
if (bodyCase_ == 7) {
bodyCase_ = 0;
body_ = null;
onChanged();
}
} else {
if (bodyCase_ == 7) {
bodyCase_ = 0;
body_ = null;
}
contractCallResultBuilder_.clear();
}
return this;
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
*/
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder getContractCallResultBuilder() {
return getContractCallResultFieldBuilder().getBuilder();
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder getContractCallResultOrBuilder() {
if ((bodyCase_ == 7) && (contractCallResultBuilder_ != null)) {
return contractCallResultBuilder_.getMessageOrBuilder();
} else {
if (bodyCase_ == 7) {
return (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_;
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
}
/**
*
**
* Record of the value returned by the smart contract function (if it completed and didn't
* fail) from ContractCallTransaction
*
*
* .proto.ContractFunctionResult contractCallResult = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractFunctionResult, com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder, com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder>
getContractCallResultFieldBuilder() {
if (contractCallResultBuilder_ == null) {
if (!(bodyCase_ == 7)) {
body_ = com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
contractCallResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractFunctionResult, com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder, com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder>(
(com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_,
getParentForChildren(),
isClean());
body_ = null;
}
bodyCase_ = 7;
onChanged();
return contractCallResultBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractFunctionResult, com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder, com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder> contractCreateResultBuilder_;
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
* @return Whether the contractCreateResult field is set.
*/
@java.lang.Override
public boolean hasContractCreateResult() {
return bodyCase_ == 8;
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
* @return The contractCreateResult.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult getContractCreateResult() {
if (contractCreateResultBuilder_ == null) {
if (bodyCase_ == 8) {
return (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_;
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
} else {
if (bodyCase_ == 8) {
return contractCreateResultBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
*/
public Builder setContractCreateResult(com.hedera.hashgraph.sdk.proto.ContractFunctionResult value) {
if (contractCreateResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
} else {
contractCreateResultBuilder_.setMessage(value);
}
bodyCase_ = 8;
return this;
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
*/
public Builder setContractCreateResult(
com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder builderForValue) {
if (contractCreateResultBuilder_ == null) {
body_ = builderForValue.build();
onChanged();
} else {
contractCreateResultBuilder_.setMessage(builderForValue.build());
}
bodyCase_ = 8;
return this;
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
*/
public Builder mergeContractCreateResult(com.hedera.hashgraph.sdk.proto.ContractFunctionResult value) {
if (contractCreateResultBuilder_ == null) {
if (bodyCase_ == 8 &&
body_ != com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance()) {
body_ = com.hedera.hashgraph.sdk.proto.ContractFunctionResult.newBuilder((com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_)
.mergeFrom(value).buildPartial();
} else {
body_ = value;
}
onChanged();
} else {
if (bodyCase_ == 8) {
contractCreateResultBuilder_.mergeFrom(value);
} else {
contractCreateResultBuilder_.setMessage(value);
}
}
bodyCase_ = 8;
return this;
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
*/
public Builder clearContractCreateResult() {
if (contractCreateResultBuilder_ == null) {
if (bodyCase_ == 8) {
bodyCase_ = 0;
body_ = null;
onChanged();
}
} else {
if (bodyCase_ == 8) {
bodyCase_ = 0;
body_ = null;
}
contractCreateResultBuilder_.clear();
}
return this;
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
*/
public com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder getContractCreateResultBuilder() {
return getContractCreateResultFieldBuilder().getBuilder();
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder getContractCreateResultOrBuilder() {
if ((bodyCase_ == 8) && (contractCreateResultBuilder_ != null)) {
return contractCreateResultBuilder_.getMessageOrBuilder();
} else {
if (bodyCase_ == 8) {
return (com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_;
}
return com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
}
/**
*
**
* Record of the value returned by the smart contract constructor (if it completed and
* didn't fail) from ContractCreateTransaction
*
*
* .proto.ContractFunctionResult contractCreateResult = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractFunctionResult, com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder, com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder>
getContractCreateResultFieldBuilder() {
if (contractCreateResultBuilder_ == null) {
if (!(bodyCase_ == 8)) {
body_ = com.hedera.hashgraph.sdk.proto.ContractFunctionResult.getDefaultInstance();
}
contractCreateResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractFunctionResult, com.hedera.hashgraph.sdk.proto.ContractFunctionResult.Builder, com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder>(
(com.hedera.hashgraph.sdk.proto.ContractFunctionResult) body_,
getParentForChildren(),
isClean());
body_ = null;
}
bodyCase_ = 8;
onChanged();
return contractCreateResultBuilder_;
}
private com.hedera.hashgraph.sdk.proto.TransferList transferList_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransferList, com.hedera.hashgraph.sdk.proto.TransferList.Builder, com.hedera.hashgraph.sdk.proto.TransferListOrBuilder> transferListBuilder_;
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
* @return Whether the transferList field is set.
*/
public boolean hasTransferList() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
* @return The transferList.
*/
public com.hedera.hashgraph.sdk.proto.TransferList getTransferList() {
if (transferListBuilder_ == null) {
return transferList_ == null ? com.hedera.hashgraph.sdk.proto.TransferList.getDefaultInstance() : transferList_;
} else {
return transferListBuilder_.getMessage();
}
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
*/
public Builder setTransferList(com.hedera.hashgraph.sdk.proto.TransferList value) {
if (transferListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transferList_ = value;
} else {
transferListBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
*/
public Builder setTransferList(
com.hedera.hashgraph.sdk.proto.TransferList.Builder builderForValue) {
if (transferListBuilder_ == null) {
transferList_ = builderForValue.build();
} else {
transferListBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
*/
public Builder mergeTransferList(com.hedera.hashgraph.sdk.proto.TransferList value) {
if (transferListBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
transferList_ != null &&
transferList_ != com.hedera.hashgraph.sdk.proto.TransferList.getDefaultInstance()) {
getTransferListBuilder().mergeFrom(value);
} else {
transferList_ = value;
}
} else {
transferListBuilder_.mergeFrom(value);
}
if (transferList_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
*/
public Builder clearTransferList() {
bitField0_ = (bitField0_ & ~0x00000100);
transferList_ = null;
if (transferListBuilder_ != null) {
transferListBuilder_.dispose();
transferListBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
*/
public com.hedera.hashgraph.sdk.proto.TransferList.Builder getTransferListBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getTransferListFieldBuilder().getBuilder();
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
*/
public com.hedera.hashgraph.sdk.proto.TransferListOrBuilder getTransferListOrBuilder() {
if (transferListBuilder_ != null) {
return transferListBuilder_.getMessageOrBuilder();
} else {
return transferList_ == null ?
com.hedera.hashgraph.sdk.proto.TransferList.getDefaultInstance() : transferList_;
}
}
/**
*
**
* All hbar transfers as a result of this transaction, such as fees, or transfers performed by
* the transaction, or by a smart contract it calls, or by the creation of threshold records
* that it triggers.
*
*
* .proto.TransferList transferList = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransferList, com.hedera.hashgraph.sdk.proto.TransferList.Builder, com.hedera.hashgraph.sdk.proto.TransferListOrBuilder>
getTransferListFieldBuilder() {
if (transferListBuilder_ == null) {
transferListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransferList, com.hedera.hashgraph.sdk.proto.TransferList.Builder, com.hedera.hashgraph.sdk.proto.TransferListOrBuilder>(
getTransferList(),
getParentForChildren(),
isClean());
transferList_ = null;
}
return transferListBuilder_;
}
private java.util.List tokenTransferLists_ =
java.util.Collections.emptyList();
private void ensureTokenTransferListsIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
tokenTransferLists_ = new java.util.ArrayList(tokenTransferLists_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenTransferList, com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder, com.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder> tokenTransferListsBuilder_;
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public java.util.List getTokenTransferListsList() {
if (tokenTransferListsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tokenTransferLists_);
} else {
return tokenTransferListsBuilder_.getMessageList();
}
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public int getTokenTransferListsCount() {
if (tokenTransferListsBuilder_ == null) {
return tokenTransferLists_.size();
} else {
return tokenTransferListsBuilder_.getCount();
}
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenTransferList getTokenTransferLists(int index) {
if (tokenTransferListsBuilder_ == null) {
return tokenTransferLists_.get(index);
} else {
return tokenTransferListsBuilder_.getMessage(index);
}
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder setTokenTransferLists(
int index, com.hedera.hashgraph.sdk.proto.TokenTransferList value) {
if (tokenTransferListsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenTransferListsIsMutable();
tokenTransferLists_.set(index, value);
onChanged();
} else {
tokenTransferListsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder setTokenTransferLists(
int index, com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder builderForValue) {
if (tokenTransferListsBuilder_ == null) {
ensureTokenTransferListsIsMutable();
tokenTransferLists_.set(index, builderForValue.build());
onChanged();
} else {
tokenTransferListsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder addTokenTransferLists(com.hedera.hashgraph.sdk.proto.TokenTransferList value) {
if (tokenTransferListsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenTransferListsIsMutable();
tokenTransferLists_.add(value);
onChanged();
} else {
tokenTransferListsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder addTokenTransferLists(
int index, com.hedera.hashgraph.sdk.proto.TokenTransferList value) {
if (tokenTransferListsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenTransferListsIsMutable();
tokenTransferLists_.add(index, value);
onChanged();
} else {
tokenTransferListsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder addTokenTransferLists(
com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder builderForValue) {
if (tokenTransferListsBuilder_ == null) {
ensureTokenTransferListsIsMutable();
tokenTransferLists_.add(builderForValue.build());
onChanged();
} else {
tokenTransferListsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder addTokenTransferLists(
int index, com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder builderForValue) {
if (tokenTransferListsBuilder_ == null) {
ensureTokenTransferListsIsMutable();
tokenTransferLists_.add(index, builderForValue.build());
onChanged();
} else {
tokenTransferListsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder addAllTokenTransferLists(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TokenTransferList> values) {
if (tokenTransferListsBuilder_ == null) {
ensureTokenTransferListsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tokenTransferLists_);
onChanged();
} else {
tokenTransferListsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder clearTokenTransferLists() {
if (tokenTransferListsBuilder_ == null) {
tokenTransferLists_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
tokenTransferListsBuilder_.clear();
}
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder removeTokenTransferLists(int index) {
if (tokenTransferListsBuilder_ == null) {
ensureTokenTransferListsIsMutable();
tokenTransferLists_.remove(index);
onChanged();
} else {
tokenTransferListsBuilder_.remove(index);
}
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder getTokenTransferListsBuilder(
int index) {
return getTokenTransferListsFieldBuilder().getBuilder(index);
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder getTokenTransferListsOrBuilder(
int index) {
if (tokenTransferListsBuilder_ == null) {
return tokenTransferLists_.get(index); } else {
return tokenTransferListsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder>
getTokenTransferListsOrBuilderList() {
if (tokenTransferListsBuilder_ != null) {
return tokenTransferListsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tokenTransferLists_);
}
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder addTokenTransferListsBuilder() {
return getTokenTransferListsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.TokenTransferList.getDefaultInstance());
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder addTokenTransferListsBuilder(
int index) {
return getTokenTransferListsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.TokenTransferList.getDefaultInstance());
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public java.util.List
getTokenTransferListsBuilderList() {
return getTokenTransferListsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenTransferList, com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder, com.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder>
getTokenTransferListsFieldBuilder() {
if (tokenTransferListsBuilder_ == null) {
tokenTransferListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenTransferList, com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder, com.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder>(
tokenTransferLists_,
((bitField0_ & 0x00000200) != 0),
getParentForChildren(),
isClean());
tokenTransferLists_ = null;
}
return tokenTransferListsBuilder_;
}
private com.hedera.hashgraph.sdk.proto.ScheduleID scheduleRef_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ScheduleID, com.hedera.hashgraph.sdk.proto.ScheduleID.Builder, com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder> scheduleRefBuilder_;
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
* @return Whether the scheduleRef field is set.
*/
public boolean hasScheduleRef() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
* @return The scheduleRef.
*/
public com.hedera.hashgraph.sdk.proto.ScheduleID getScheduleRef() {
if (scheduleRefBuilder_ == null) {
return scheduleRef_ == null ? com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleRef_;
} else {
return scheduleRefBuilder_.getMessage();
}
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
public Builder setScheduleRef(com.hedera.hashgraph.sdk.proto.ScheduleID value) {
if (scheduleRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduleRef_ = value;
} else {
scheduleRefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
public Builder setScheduleRef(
com.hedera.hashgraph.sdk.proto.ScheduleID.Builder builderForValue) {
if (scheduleRefBuilder_ == null) {
scheduleRef_ = builderForValue.build();
} else {
scheduleRefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
public Builder mergeScheduleRef(com.hedera.hashgraph.sdk.proto.ScheduleID value) {
if (scheduleRefBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
scheduleRef_ != null &&
scheduleRef_ != com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance()) {
getScheduleRefBuilder().mergeFrom(value);
} else {
scheduleRef_ = value;
}
} else {
scheduleRefBuilder_.mergeFrom(value);
}
if (scheduleRef_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
public Builder clearScheduleRef() {
bitField0_ = (bitField0_ & ~0x00000400);
scheduleRef_ = null;
if (scheduleRefBuilder_ != null) {
scheduleRefBuilder_.dispose();
scheduleRefBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
public com.hedera.hashgraph.sdk.proto.ScheduleID.Builder getScheduleRefBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getScheduleRefFieldBuilder().getBuilder();
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
public com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder getScheduleRefOrBuilder() {
if (scheduleRefBuilder_ != null) {
return scheduleRefBuilder_.getMessageOrBuilder();
} else {
return scheduleRef_ == null ?
com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleRef_;
}
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ScheduleID, com.hedera.hashgraph.sdk.proto.ScheduleID.Builder, com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder>
getScheduleRefFieldBuilder() {
if (scheduleRefBuilder_ == null) {
scheduleRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ScheduleID, com.hedera.hashgraph.sdk.proto.ScheduleID.Builder, com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder>(
getScheduleRef(),
getParentForChildren(),
isClean());
scheduleRef_ = null;
}
return scheduleRefBuilder_;
}
private java.util.List assessedCustomFees_ =
java.util.Collections.emptyList();
private void ensureAssessedCustomFeesIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
assessedCustomFees_ = new java.util.ArrayList(assessedCustomFees_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AssessedCustomFee, com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder, com.hedera.hashgraph.sdk.proto.AssessedCustomFeeOrBuilder> assessedCustomFeesBuilder_;
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public java.util.List getAssessedCustomFeesList() {
if (assessedCustomFeesBuilder_ == null) {
return java.util.Collections.unmodifiableList(assessedCustomFees_);
} else {
return assessedCustomFeesBuilder_.getMessageList();
}
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public int getAssessedCustomFeesCount() {
if (assessedCustomFeesBuilder_ == null) {
return assessedCustomFees_.size();
} else {
return assessedCustomFeesBuilder_.getCount();
}
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public com.hedera.hashgraph.sdk.proto.AssessedCustomFee getAssessedCustomFees(int index) {
if (assessedCustomFeesBuilder_ == null) {
return assessedCustomFees_.get(index);
} else {
return assessedCustomFeesBuilder_.getMessage(index);
}
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public Builder setAssessedCustomFees(
int index, com.hedera.hashgraph.sdk.proto.AssessedCustomFee value) {
if (assessedCustomFeesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.set(index, value);
onChanged();
} else {
assessedCustomFeesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public Builder setAssessedCustomFees(
int index, com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder builderForValue) {
if (assessedCustomFeesBuilder_ == null) {
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.set(index, builderForValue.build());
onChanged();
} else {
assessedCustomFeesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public Builder addAssessedCustomFees(com.hedera.hashgraph.sdk.proto.AssessedCustomFee value) {
if (assessedCustomFeesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.add(value);
onChanged();
} else {
assessedCustomFeesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public Builder addAssessedCustomFees(
int index, com.hedera.hashgraph.sdk.proto.AssessedCustomFee value) {
if (assessedCustomFeesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.add(index, value);
onChanged();
} else {
assessedCustomFeesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public Builder addAssessedCustomFees(
com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder builderForValue) {
if (assessedCustomFeesBuilder_ == null) {
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.add(builderForValue.build());
onChanged();
} else {
assessedCustomFeesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public Builder addAssessedCustomFees(
int index, com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder builderForValue) {
if (assessedCustomFeesBuilder_ == null) {
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.add(index, builderForValue.build());
onChanged();
} else {
assessedCustomFeesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public Builder addAllAssessedCustomFees(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AssessedCustomFee> values) {
if (assessedCustomFeesBuilder_ == null) {
ensureAssessedCustomFeesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, assessedCustomFees_);
onChanged();
} else {
assessedCustomFeesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public Builder clearAssessedCustomFees() {
if (assessedCustomFeesBuilder_ == null) {
assessedCustomFees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
assessedCustomFeesBuilder_.clear();
}
return this;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public Builder removeAssessedCustomFees(int index) {
if (assessedCustomFeesBuilder_ == null) {
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.remove(index);
onChanged();
} else {
assessedCustomFeesBuilder_.remove(index);
}
return this;
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder getAssessedCustomFeesBuilder(
int index) {
return getAssessedCustomFeesFieldBuilder().getBuilder(index);
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public com.hedera.hashgraph.sdk.proto.AssessedCustomFeeOrBuilder getAssessedCustomFeesOrBuilder(
int index) {
if (assessedCustomFeesBuilder_ == null) {
return assessedCustomFees_.get(index); } else {
return assessedCustomFeesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.AssessedCustomFeeOrBuilder>
getAssessedCustomFeesOrBuilderList() {
if (assessedCustomFeesBuilder_ != null) {
return assessedCustomFeesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(assessedCustomFees_);
}
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder addAssessedCustomFeesBuilder() {
return getAssessedCustomFeesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.AssessedCustomFee.getDefaultInstance());
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder addAssessedCustomFeesBuilder(
int index) {
return getAssessedCustomFeesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.AssessedCustomFee.getDefaultInstance());
}
/**
*
**
* All custom fees that were assessed during a CryptoTransfer, and must be paid if the
* transaction status resolved to SUCCESS
*
*
* repeated .proto.AssessedCustomFee assessed_custom_fees = 13;
*/
public java.util.List
getAssessedCustomFeesBuilderList() {
return getAssessedCustomFeesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AssessedCustomFee, com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder, com.hedera.hashgraph.sdk.proto.AssessedCustomFeeOrBuilder>
getAssessedCustomFeesFieldBuilder() {
if (assessedCustomFeesBuilder_ == null) {
assessedCustomFeesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AssessedCustomFee, com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder, com.hedera.hashgraph.sdk.proto.AssessedCustomFeeOrBuilder>(
assessedCustomFees_,
((bitField0_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
assessedCustomFees_ = null;
}
return assessedCustomFeesBuilder_;
}
private java.util.List automaticTokenAssociations_ =
java.util.Collections.emptyList();
private void ensureAutomaticTokenAssociationsIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
automaticTokenAssociations_ = new java.util.ArrayList(automaticTokenAssociations_);
bitField0_ |= 0x00001000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenAssociation, com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder, com.hedera.hashgraph.sdk.proto.TokenAssociationOrBuilder> automaticTokenAssociationsBuilder_;
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public java.util.List getAutomaticTokenAssociationsList() {
if (automaticTokenAssociationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(automaticTokenAssociations_);
} else {
return automaticTokenAssociationsBuilder_.getMessageList();
}
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public int getAutomaticTokenAssociationsCount() {
if (automaticTokenAssociationsBuilder_ == null) {
return automaticTokenAssociations_.size();
} else {
return automaticTokenAssociationsBuilder_.getCount();
}
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public com.hedera.hashgraph.sdk.proto.TokenAssociation getAutomaticTokenAssociations(int index) {
if (automaticTokenAssociationsBuilder_ == null) {
return automaticTokenAssociations_.get(index);
} else {
return automaticTokenAssociationsBuilder_.getMessage(index);
}
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder setAutomaticTokenAssociations(
int index, com.hedera.hashgraph.sdk.proto.TokenAssociation value) {
if (automaticTokenAssociationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.set(index, value);
onChanged();
} else {
automaticTokenAssociationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder setAutomaticTokenAssociations(
int index, com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder builderForValue) {
if (automaticTokenAssociationsBuilder_ == null) {
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.set(index, builderForValue.build());
onChanged();
} else {
automaticTokenAssociationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder addAutomaticTokenAssociations(com.hedera.hashgraph.sdk.proto.TokenAssociation value) {
if (automaticTokenAssociationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.add(value);
onChanged();
} else {
automaticTokenAssociationsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder addAutomaticTokenAssociations(
int index, com.hedera.hashgraph.sdk.proto.TokenAssociation value) {
if (automaticTokenAssociationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.add(index, value);
onChanged();
} else {
automaticTokenAssociationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder addAutomaticTokenAssociations(
com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder builderForValue) {
if (automaticTokenAssociationsBuilder_ == null) {
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.add(builderForValue.build());
onChanged();
} else {
automaticTokenAssociationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder addAutomaticTokenAssociations(
int index, com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder builderForValue) {
if (automaticTokenAssociationsBuilder_ == null) {
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.add(index, builderForValue.build());
onChanged();
} else {
automaticTokenAssociationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder addAllAutomaticTokenAssociations(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TokenAssociation> values) {
if (automaticTokenAssociationsBuilder_ == null) {
ensureAutomaticTokenAssociationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, automaticTokenAssociations_);
onChanged();
} else {
automaticTokenAssociationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder clearAutomaticTokenAssociations() {
if (automaticTokenAssociationsBuilder_ == null) {
automaticTokenAssociations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
} else {
automaticTokenAssociationsBuilder_.clear();
}
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder removeAutomaticTokenAssociations(int index) {
if (automaticTokenAssociationsBuilder_ == null) {
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.remove(index);
onChanged();
} else {
automaticTokenAssociationsBuilder_.remove(index);
}
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder getAutomaticTokenAssociationsBuilder(
int index) {
return getAutomaticTokenAssociationsFieldBuilder().getBuilder(index);
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public com.hedera.hashgraph.sdk.proto.TokenAssociationOrBuilder getAutomaticTokenAssociationsOrBuilder(
int index) {
if (automaticTokenAssociationsBuilder_ == null) {
return automaticTokenAssociations_.get(index); } else {
return automaticTokenAssociationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TokenAssociationOrBuilder>
getAutomaticTokenAssociationsOrBuilderList() {
if (automaticTokenAssociationsBuilder_ != null) {
return automaticTokenAssociationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(automaticTokenAssociations_);
}
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder addAutomaticTokenAssociationsBuilder() {
return getAutomaticTokenAssociationsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.TokenAssociation.getDefaultInstance());
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder addAutomaticTokenAssociationsBuilder(
int index) {
return getAutomaticTokenAssociationsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.TokenAssociation.getDefaultInstance());
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public java.util.List
getAutomaticTokenAssociationsBuilderList() {
return getAutomaticTokenAssociationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenAssociation, com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder, com.hedera.hashgraph.sdk.proto.TokenAssociationOrBuilder>
getAutomaticTokenAssociationsFieldBuilder() {
if (automaticTokenAssociationsBuilder_ == null) {
automaticTokenAssociationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenAssociation, com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder, com.hedera.hashgraph.sdk.proto.TokenAssociationOrBuilder>(
automaticTokenAssociations_,
((bitField0_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
automaticTokenAssociations_ = null;
}
return automaticTokenAssociationsBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Timestamp parentConsensusTimestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> parentConsensusTimestampBuilder_;
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
* @return Whether the parentConsensusTimestamp field is set.
*/
public boolean hasParentConsensusTimestamp() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
* @return The parentConsensusTimestamp.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getParentConsensusTimestamp() {
if (parentConsensusTimestampBuilder_ == null) {
return parentConsensusTimestamp_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : parentConsensusTimestamp_;
} else {
return parentConsensusTimestampBuilder_.getMessage();
}
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
*/
public Builder setParentConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (parentConsensusTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentConsensusTimestamp_ = value;
} else {
parentConsensusTimestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
*/
public Builder setParentConsensusTimestamp(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (parentConsensusTimestampBuilder_ == null) {
parentConsensusTimestamp_ = builderForValue.build();
} else {
parentConsensusTimestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
*/
public Builder mergeParentConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (parentConsensusTimestampBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0) &&
parentConsensusTimestamp_ != null &&
parentConsensusTimestamp_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getParentConsensusTimestampBuilder().mergeFrom(value);
} else {
parentConsensusTimestamp_ = value;
}
} else {
parentConsensusTimestampBuilder_.mergeFrom(value);
}
if (parentConsensusTimestamp_ != null) {
bitField0_ |= 0x00002000;
onChanged();
}
return this;
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
*/
public Builder clearParentConsensusTimestamp() {
bitField0_ = (bitField0_ & ~0x00002000);
parentConsensusTimestamp_ = null;
if (parentConsensusTimestampBuilder_ != null) {
parentConsensusTimestampBuilder_.dispose();
parentConsensusTimestampBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getParentConsensusTimestampBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getParentConsensusTimestampFieldBuilder().getBuilder();
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getParentConsensusTimestampOrBuilder() {
if (parentConsensusTimestampBuilder_ != null) {
return parentConsensusTimestampBuilder_.getMessageOrBuilder();
} else {
return parentConsensusTimestamp_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : parentConsensusTimestamp_;
}
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getParentConsensusTimestampFieldBuilder() {
if (parentConsensusTimestampBuilder_ == null) {
parentConsensusTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
getParentConsensusTimestamp(),
getParentForChildren(),
isClean());
parentConsensusTimestamp_ = null;
}
return parentConsensusTimestampBuilder_;
}
private com.google.protobuf.ByteString alias_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* In the record of a CryptoCreate transaction triggered by a user transaction with a
* (previously unused) alias, the new account's alias.
*
*
* bytes alias = 16;
* @return The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return alias_;
}
/**
*
**
* In the record of a CryptoCreate transaction triggered by a user transaction with a
* (previously unused) alias, the new account's alias.
*
*
* bytes alias = 16;
* @param value The alias to set.
* @return This builder for chaining.
*/
public Builder setAlias(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
alias_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
**
* In the record of a CryptoCreate transaction triggered by a user transaction with a
* (previously unused) alias, the new account's alias.
*
*
* bytes alias = 16;
* @return This builder for chaining.
*/
public Builder clearAlias() {
bitField0_ = (bitField0_ & ~0x00004000);
alias_ = getDefaultInstance().getAlias();
onChanged();
return this;
}
private com.google.protobuf.ByteString ethereumHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The keccak256 hash of the ethereumData. This field will only be populated for
* EthereumTransaction.
*
*
* bytes ethereum_hash = 17;
* @return The ethereumHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEthereumHash() {
return ethereumHash_;
}
/**
*
**
* The keccak256 hash of the ethereumData. This field will only be populated for
* EthereumTransaction.
*
*
* bytes ethereum_hash = 17;
* @param value The ethereumHash to set.
* @return This builder for chaining.
*/
public Builder setEthereumHash(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ethereumHash_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
**
* The keccak256 hash of the ethereumData. This field will only be populated for
* EthereumTransaction.
*
*
* bytes ethereum_hash = 17;
* @return This builder for chaining.
*/
public Builder clearEthereumHash() {
bitField0_ = (bitField0_ & ~0x00008000);
ethereumHash_ = getDefaultInstance().getEthereumHash();
onChanged();
return this;
}
private java.util.List paidStakingRewards_ =
java.util.Collections.emptyList();
private void ensurePaidStakingRewardsIsMutable() {
if (!((bitField0_ & 0x00010000) != 0)) {
paidStakingRewards_ = new java.util.ArrayList(paidStakingRewards_);
bitField0_ |= 0x00010000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountAmount, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder, com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder> paidStakingRewardsBuilder_;
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public java.util.List getPaidStakingRewardsList() {
if (paidStakingRewardsBuilder_ == null) {
return java.util.Collections.unmodifiableList(paidStakingRewards_);
} else {
return paidStakingRewardsBuilder_.getMessageList();
}
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public int getPaidStakingRewardsCount() {
if (paidStakingRewardsBuilder_ == null) {
return paidStakingRewards_.size();
} else {
return paidStakingRewardsBuilder_.getCount();
}
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public com.hedera.hashgraph.sdk.proto.AccountAmount getPaidStakingRewards(int index) {
if (paidStakingRewardsBuilder_ == null) {
return paidStakingRewards_.get(index);
} else {
return paidStakingRewardsBuilder_.getMessage(index);
}
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public Builder setPaidStakingRewards(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount value) {
if (paidStakingRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.set(index, value);
onChanged();
} else {
paidStakingRewardsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public Builder setPaidStakingRewards(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder builderForValue) {
if (paidStakingRewardsBuilder_ == null) {
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.set(index, builderForValue.build());
onChanged();
} else {
paidStakingRewardsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public Builder addPaidStakingRewards(com.hedera.hashgraph.sdk.proto.AccountAmount value) {
if (paidStakingRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.add(value);
onChanged();
} else {
paidStakingRewardsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public Builder addPaidStakingRewards(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount value) {
if (paidStakingRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.add(index, value);
onChanged();
} else {
paidStakingRewardsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public Builder addPaidStakingRewards(
com.hedera.hashgraph.sdk.proto.AccountAmount.Builder builderForValue) {
if (paidStakingRewardsBuilder_ == null) {
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.add(builderForValue.build());
onChanged();
} else {
paidStakingRewardsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public Builder addPaidStakingRewards(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder builderForValue) {
if (paidStakingRewardsBuilder_ == null) {
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.add(index, builderForValue.build());
onChanged();
} else {
paidStakingRewardsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public Builder addAllPaidStakingRewards(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountAmount> values) {
if (paidStakingRewardsBuilder_ == null) {
ensurePaidStakingRewardsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paidStakingRewards_);
onChanged();
} else {
paidStakingRewardsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public Builder clearPaidStakingRewards() {
if (paidStakingRewardsBuilder_ == null) {
paidStakingRewards_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
} else {
paidStakingRewardsBuilder_.clear();
}
return this;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public Builder removePaidStakingRewards(int index) {
if (paidStakingRewardsBuilder_ == null) {
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.remove(index);
onChanged();
} else {
paidStakingRewardsBuilder_.remove(index);
}
return this;
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public com.hedera.hashgraph.sdk.proto.AccountAmount.Builder getPaidStakingRewardsBuilder(
int index) {
return getPaidStakingRewardsFieldBuilder().getBuilder(index);
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder getPaidStakingRewardsOrBuilder(
int index) {
if (paidStakingRewardsBuilder_ == null) {
return paidStakingRewards_.get(index); } else {
return paidStakingRewardsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder>
getPaidStakingRewardsOrBuilderList() {
if (paidStakingRewardsBuilder_ != null) {
return paidStakingRewardsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(paidStakingRewards_);
}
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public com.hedera.hashgraph.sdk.proto.AccountAmount.Builder addPaidStakingRewardsBuilder() {
return getPaidStakingRewardsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.AccountAmount.getDefaultInstance());
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public com.hedera.hashgraph.sdk.proto.AccountAmount.Builder addPaidStakingRewardsBuilder(
int index) {
return getPaidStakingRewardsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.AccountAmount.getDefaultInstance());
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
public java.util.List
getPaidStakingRewardsBuilderList() {
return getPaidStakingRewardsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountAmount, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder, com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder>
getPaidStakingRewardsFieldBuilder() {
if (paidStakingRewardsBuilder_ == null) {
paidStakingRewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountAmount, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder, com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder>(
paidStakingRewards_,
((bitField0_ & 0x00010000) != 0),
getParentForChildren(),
isClean());
paidStakingRewards_ = null;
}
return paidStakingRewardsBuilder_;
}
/**
*
**
* In the record of a UtilPrng transaction with no output range, a pseudorandom 384-bit string.
*
*
* bytes prng_bytes = 19;
* @return Whether the prngBytes field is set.
*/
public boolean hasPrngBytes() {
return entropyCase_ == 19;
}
/**
*
**
* In the record of a UtilPrng transaction with no output range, a pseudorandom 384-bit string.
*
*
* bytes prng_bytes = 19;
* @return The prngBytes.
*/
public com.google.protobuf.ByteString getPrngBytes() {
if (entropyCase_ == 19) {
return (com.google.protobuf.ByteString) entropy_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
*
**
* In the record of a UtilPrng transaction with no output range, a pseudorandom 384-bit string.
*
*
* bytes prng_bytes = 19;
* @param value The prngBytes to set.
* @return This builder for chaining.
*/
public Builder setPrngBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
entropyCase_ = 19;
entropy_ = value;
onChanged();
return this;
}
/**
*
**
* In the record of a UtilPrng transaction with no output range, a pseudorandom 384-bit string.
*
*
* bytes prng_bytes = 19;
* @return This builder for chaining.
*/
public Builder clearPrngBytes() {
if (entropyCase_ == 19) {
entropyCase_ = 0;
entropy_ = null;
onChanged();
}
return this;
}
/**
*
**
* In the record of a PRNG transaction with an output range, the output of a PRNG whose input was a 384-bit string.
*
*
* int32 prng_number = 20;
* @return Whether the prngNumber field is set.
*/
public boolean hasPrngNumber() {
return entropyCase_ == 20;
}
/**
*
**
* In the record of a PRNG transaction with an output range, the output of a PRNG whose input was a 384-bit string.
*
*
* int32 prng_number = 20;
* @return The prngNumber.
*/
public int getPrngNumber() {
if (entropyCase_ == 20) {
return (java.lang.Integer) entropy_;
}
return 0;
}
/**
*
**
* In the record of a PRNG transaction with an output range, the output of a PRNG whose input was a 384-bit string.
*
*
* int32 prng_number = 20;
* @param value The prngNumber to set.
* @return This builder for chaining.
*/
public Builder setPrngNumber(int value) {
entropyCase_ = 20;
entropy_ = value;
onChanged();
return this;
}
/**
*
**
* In the record of a PRNG transaction with an output range, the output of a PRNG whose input was a 384-bit string.
*
*
* int32 prng_number = 20;
* @return This builder for chaining.
*/
public Builder clearPrngNumber() {
if (entropyCase_ == 20) {
entropyCase_ = 0;
entropy_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.ByteString evmAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The new default EVM address of the account created by this transaction.
* This field is populated only when the EVM address is not specified in the related transaction body.
*
*
* bytes evm_address = 21;
* @return The evmAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEvmAddress() {
return evmAddress_;
}
/**
*
**
* The new default EVM address of the account created by this transaction.
* This field is populated only when the EVM address is not specified in the related transaction body.
*
*
* bytes evm_address = 21;
* @param value The evmAddress to set.
* @return This builder for chaining.
*/
public Builder setEvmAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
evmAddress_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
**
* The new default EVM address of the account created by this transaction.
* This field is populated only when the EVM address is not specified in the related transaction body.
*
*
* bytes evm_address = 21;
* @return This builder for chaining.
*/
public Builder clearEvmAddress() {
bitField0_ = (bitField0_ & ~0x00080000);
evmAddress_ = getDefaultInstance().getEvmAddress();
onChanged();
return this;
}
private java.util.List newPendingAirdrops_ =
java.util.Collections.emptyList();
private void ensureNewPendingAirdropsIsMutable() {
if (!((bitField0_ & 0x00100000) != 0)) {
newPendingAirdrops_ = new java.util.ArrayList(newPendingAirdrops_);
bitField0_ |= 0x00100000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.PendingAirdropRecord, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropRecordOrBuilder> newPendingAirdropsBuilder_;
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public java.util.List getNewPendingAirdropsList() {
if (newPendingAirdropsBuilder_ == null) {
return java.util.Collections.unmodifiableList(newPendingAirdrops_);
} else {
return newPendingAirdropsBuilder_.getMessageList();
}
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public int getNewPendingAirdropsCount() {
if (newPendingAirdropsBuilder_ == null) {
return newPendingAirdrops_.size();
} else {
return newPendingAirdropsBuilder_.getCount();
}
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public com.hedera.hashgraph.sdk.proto.PendingAirdropRecord getNewPendingAirdrops(int index) {
if (newPendingAirdropsBuilder_ == null) {
return newPendingAirdrops_.get(index);
} else {
return newPendingAirdropsBuilder_.getMessage(index);
}
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public Builder setNewPendingAirdrops(
int index, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord value) {
if (newPendingAirdropsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNewPendingAirdropsIsMutable();
newPendingAirdrops_.set(index, value);
onChanged();
} else {
newPendingAirdropsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public Builder setNewPendingAirdrops(
int index, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder builderForValue) {
if (newPendingAirdropsBuilder_ == null) {
ensureNewPendingAirdropsIsMutable();
newPendingAirdrops_.set(index, builderForValue.build());
onChanged();
} else {
newPendingAirdropsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public Builder addNewPendingAirdrops(com.hedera.hashgraph.sdk.proto.PendingAirdropRecord value) {
if (newPendingAirdropsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNewPendingAirdropsIsMutable();
newPendingAirdrops_.add(value);
onChanged();
} else {
newPendingAirdropsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public Builder addNewPendingAirdrops(
int index, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord value) {
if (newPendingAirdropsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNewPendingAirdropsIsMutable();
newPendingAirdrops_.add(index, value);
onChanged();
} else {
newPendingAirdropsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public Builder addNewPendingAirdrops(
com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder builderForValue) {
if (newPendingAirdropsBuilder_ == null) {
ensureNewPendingAirdropsIsMutable();
newPendingAirdrops_.add(builderForValue.build());
onChanged();
} else {
newPendingAirdropsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public Builder addNewPendingAirdrops(
int index, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder builderForValue) {
if (newPendingAirdropsBuilder_ == null) {
ensureNewPendingAirdropsIsMutable();
newPendingAirdrops_.add(index, builderForValue.build());
onChanged();
} else {
newPendingAirdropsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public Builder addAllNewPendingAirdrops(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.PendingAirdropRecord> values) {
if (newPendingAirdropsBuilder_ == null) {
ensureNewPendingAirdropsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, newPendingAirdrops_);
onChanged();
} else {
newPendingAirdropsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public Builder clearNewPendingAirdrops() {
if (newPendingAirdropsBuilder_ == null) {
newPendingAirdrops_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
} else {
newPendingAirdropsBuilder_.clear();
}
return this;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public Builder removeNewPendingAirdrops(int index) {
if (newPendingAirdropsBuilder_ == null) {
ensureNewPendingAirdropsIsMutable();
newPendingAirdrops_.remove(index);
onChanged();
} else {
newPendingAirdropsBuilder_.remove(index);
}
return this;
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder getNewPendingAirdropsBuilder(
int index) {
return getNewPendingAirdropsFieldBuilder().getBuilder(index);
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public com.hedera.hashgraph.sdk.proto.PendingAirdropRecordOrBuilder getNewPendingAirdropsOrBuilder(
int index) {
if (newPendingAirdropsBuilder_ == null) {
return newPendingAirdrops_.get(index); } else {
return newPendingAirdropsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.PendingAirdropRecordOrBuilder>
getNewPendingAirdropsOrBuilderList() {
if (newPendingAirdropsBuilder_ != null) {
return newPendingAirdropsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(newPendingAirdrops_);
}
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder addNewPendingAirdropsBuilder() {
return getNewPendingAirdropsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.getDefaultInstance());
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder addNewPendingAirdropsBuilder(
int index) {
return getNewPendingAirdropsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.getDefaultInstance());
}
/**
*
**
* A list of pending token airdrops.
* Each pending airdrop represents a single requested transfer from a
* sending account to a recipient account. These pending transfers are
* issued unilaterally by the sending account, and MUST be claimed by the
* recipient account before the transfer MAY complete.
* A sender MAY cancel a pending airdrop before it is claimed.
* An airdrop transaction SHALL emit a pending airdrop when the recipient has no
* available automatic association slots available or when the recipient
* has set `receiver_sig_required`.
*
*
* repeated .proto.PendingAirdropRecord new_pending_airdrops = 22;
*/
public java.util.List
getNewPendingAirdropsBuilderList() {
return getNewPendingAirdropsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.PendingAirdropRecord, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropRecordOrBuilder>
getNewPendingAirdropsFieldBuilder() {
if (newPendingAirdropsBuilder_ == null) {
newPendingAirdropsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.PendingAirdropRecord, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropRecordOrBuilder>(
newPendingAirdrops_,
((bitField0_ & 0x00100000) != 0),
getParentForChildren(),
isClean());
newPendingAirdrops_ = null;
}
return newPendingAirdropsBuilder_;
}
@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.TransactionRecord)
}
// @@protoc_insertion_point(class_scope:proto.TransactionRecord)
private static final com.hedera.hashgraph.sdk.proto.TransactionRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TransactionRecord();
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}