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-jdk7 Show documentation
Show all versions of sdk-jdk7 Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction_record.proto
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.GeneratedMessageLite<
TransactionRecord, TransactionRecord.Builder> implements
// @@protoc_insertion_point(message_implements:proto.TransactionRecord)
TransactionRecordOrBuilder {
private TransactionRecord() {
transactionHash_ = com.google.protobuf.ByteString.EMPTY;
memo_ = "";
tokenTransferLists_ = emptyProtobufList();
assessedCustomFees_ = emptyProtobufList();
automaticTokenAssociations_ = emptyProtobufList();
alias_ = com.google.protobuf.ByteString.EMPTY;
ethereumHash_ = com.google.protobuf.ByteString.EMPTY;
paidStakingRewards_ = emptyProtobufList();
evmAddress_ = com.google.protobuf.ByteString.EMPTY;
}
private int bodyCase_ = 0;
private java.lang.Object body_;
public enum BodyCase {
CONTRACTCALLRESULT(7),
CONTRACTCREATERESULT(8),
BODY_NOT_SET(0);
private final int value;
private BodyCase(int value) {
this.value = value;
}
/**
* @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;
}
};
@java.lang.Override
public BodyCase
getBodyCase() {
return BodyCase.forNumber(
bodyCase_);
}
private void clearBody() {
bodyCase_ = 0;
body_ = null;
}
private int entropyCase_ = 0;
private java.lang.Object entropy_;
public enum EntropyCase {
PRNG_BYTES(19),
PRNG_NUMBER(20),
ENTROPY_NOT_SET(0);
private final int value;
private EntropyCase(int value) {
this.value = value;
}
/**
* @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;
}
};
@java.lang.Override
public EntropyCase
getEntropyCase() {
return EntropyCase.forNumber(
entropyCase_);
}
private void clearEntropy() {
entropyCase_ = 0;
entropy_ = null;
}
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;
*/
@java.lang.Override
public boolean hasReceipt() {
return receipt_ != null;
}
/**
*
**
* 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.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;
*/
private void setReceipt(com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
value.getClass();
receipt_ = value;
}
/**
*
**
* 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.SuppressWarnings({"ReferenceEquality"})
private void mergeReceipt(com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
value.getClass();
if (receipt_ != null &&
receipt_ != com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance()) {
receipt_ =
com.hedera.hashgraph.sdk.proto.TransactionReceipt.newBuilder(receipt_).mergeFrom(value).buildPartial();
} else {
receipt_ = value;
}
}
/**
*
**
* The status (reach consensus, or failed, or is unknown) and the ID of any new
* account/file/instance created.
*
*
* .proto.TransactionReceipt receipt = 1;
*/
private void clearReceipt() { receipt_ = null;
}
public static final int TRANSACTIONHASH_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString transactionHash_;
/**
*
**
* 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.
*/
private void setTransactionHash(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
transactionHash_ = value;
}
/**
*
**
* The hash of the Transaction that executed (not the hash of any Transaction that failed for
* having a duplicate TransactionID)
*
*
* bytes transactionHash = 2;
*/
private void clearTransactionHash() {
transactionHash_ = getDefaultInstance().getTransactionHash();
}
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;
*/
@java.lang.Override
public boolean hasConsensusTimestamp() {
return consensusTimestamp_ != null;
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
@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;
*/
private void setConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) {
value.getClass();
consensusTimestamp_ = value;
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) {
value.getClass();
if (consensusTimestamp_ != null &&
consensusTimestamp_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
consensusTimestamp_ =
com.hedera.hashgraph.sdk.proto.Timestamp.newBuilder(consensusTimestamp_).mergeFrom(value).buildPartial();
} else {
consensusTimestamp_ = value;
}
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
private void clearConsensusTimestamp() { consensusTimestamp_ = null;
}
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;
*/
@java.lang.Override
public boolean hasTransactionID() {
return transactionID_ != null;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
@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;
*/
private void setTransactionID(com.hedera.hashgraph.sdk.proto.TransactionID value) {
value.getClass();
transactionID_ = value;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeTransactionID(com.hedera.hashgraph.sdk.proto.TransactionID value) {
value.getClass();
if (transactionID_ != null &&
transactionID_ != com.hedera.hashgraph.sdk.proto.TransactionID.getDefaultInstance()) {
transactionID_ =
com.hedera.hashgraph.sdk.proto.TransactionID.newBuilder(transactionID_).mergeFrom(value).buildPartial();
} else {
transactionID_ = value;
}
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
private void clearTransactionID() { transactionID_ = null;
}
public static final int MEMO_FIELD_NUMBER = 5;
private java.lang.String 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() {
return memo_;
}
/**
*
**
* 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() {
return com.google.protobuf.ByteString.copyFromUtf8(memo_);
}
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
* @param value The memo to set.
*/
private void setMemo(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
memo_ = value;
}
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
*/
private void clearMemo() {
memo_ = getDefaultInstance().getMemo();
}
/**
*
**
* The memo that was submitted as part of the transaction (max 100 bytes)
*
*
* string memo = 5;
* @param value The bytes for memo to set.
*/
private void setMemoBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
memo_ = value.toStringUtf8();
}
public static final int TRANSACTIONFEE_FIELD_NUMBER = 6;
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.
*/
private void setTransactionFee(long value) {
transactionFee_ = value;
}
/**
*
**
* The actual transaction fee charged, not the original transactionFee value from
* TransactionBody
*
*
* uint64 transactionFee = 6;
*/
private void clearTransactionFee() {
transactionFee_ = 0L;
}
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;
*/
@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;
*/
@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;
*/
private void setContractCallResult(com.hedera.hashgraph.sdk.proto.ContractFunctionResult value) {
value.getClass();
body_ = value;
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;
*/
private void mergeContractCallResult(com.hedera.hashgraph.sdk.proto.ContractFunctionResult value) {
value.getClass();
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;
}
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;
*/
private void clearContractCallResult() {
if (bodyCase_ == 7) {
bodyCase_ = 0;
body_ = null;
}
}
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;
*/
@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;
*/
@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;
*/
private void setContractCreateResult(com.hedera.hashgraph.sdk.proto.ContractFunctionResult value) {
value.getClass();
body_ = value;
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;
*/
private void mergeContractCreateResult(com.hedera.hashgraph.sdk.proto.ContractFunctionResult value) {
value.getClass();
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;
}
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;
*/
private void clearContractCreateResult() {
if (bodyCase_ == 8) {
bodyCase_ = 0;
body_ = null;
}
}
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;
*/
@java.lang.Override
public boolean hasTransferList() {
return transferList_ != null;
}
/**
*
**
* 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.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;
*/
private void setTransferList(com.hedera.hashgraph.sdk.proto.TransferList value) {
value.getClass();
transferList_ = value;
}
/**
*
**
* 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.SuppressWarnings({"ReferenceEquality"})
private void mergeTransferList(com.hedera.hashgraph.sdk.proto.TransferList value) {
value.getClass();
if (transferList_ != null &&
transferList_ != com.hedera.hashgraph.sdk.proto.TransferList.getDefaultInstance()) {
transferList_ =
com.hedera.hashgraph.sdk.proto.TransferList.newBuilder(transferList_).mergeFrom(value).buildPartial();
} else {
transferList_ = value;
}
}
/**
*
**
* 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 void clearTransferList() { transferList_ = null;
}
public static final int TOKENTRANSFERLISTS_FIELD_NUMBER = 11;
private com.google.protobuf.Internal.ProtobufList 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;
*/
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;
*/
public com.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder getTokenTransferListsOrBuilder(
int index) {
return tokenTransferLists_.get(index);
}
private void ensureTokenTransferListsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = tokenTransferLists_;
if (!tmp.isModifiable()) {
tokenTransferLists_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
private void setTokenTransferLists(
int index, com.hedera.hashgraph.sdk.proto.TokenTransferList value) {
value.getClass();
ensureTokenTransferListsIsMutable();
tokenTransferLists_.set(index, value);
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
private void addTokenTransferLists(com.hedera.hashgraph.sdk.proto.TokenTransferList value) {
value.getClass();
ensureTokenTransferListsIsMutable();
tokenTransferLists_.add(value);
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
private void addTokenTransferLists(
int index, com.hedera.hashgraph.sdk.proto.TokenTransferList value) {
value.getClass();
ensureTokenTransferListsIsMutable();
tokenTransferLists_.add(index, value);
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
private void addAllTokenTransferLists(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TokenTransferList> values) {
ensureTokenTransferListsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, tokenTransferLists_);
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
private void clearTokenTransferLists() {
tokenTransferLists_ = emptyProtobufList();
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
private void removeTokenTransferLists(int index) {
ensureTokenTransferListsIsMutable();
tokenTransferLists_.remove(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;
*/
@java.lang.Override
public boolean hasScheduleRef() {
return scheduleRef_ != null;
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
@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;
*/
private void setScheduleRef(com.hedera.hashgraph.sdk.proto.ScheduleID value) {
value.getClass();
scheduleRef_ = value;
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeScheduleRef(com.hedera.hashgraph.sdk.proto.ScheduleID value) {
value.getClass();
if (scheduleRef_ != null &&
scheduleRef_ != com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance()) {
scheduleRef_ =
com.hedera.hashgraph.sdk.proto.ScheduleID.newBuilder(scheduleRef_).mergeFrom(value).buildPartial();
} else {
scheduleRef_ = value;
}
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
private void clearScheduleRef() { scheduleRef_ = null;
}
public static final int ASSESSED_CUSTOM_FEES_FIELD_NUMBER = 13;
private com.google.protobuf.Internal.ProtobufList 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;
*/
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;
*/
public com.hedera.hashgraph.sdk.proto.AssessedCustomFeeOrBuilder getAssessedCustomFeesOrBuilder(
int index) {
return assessedCustomFees_.get(index);
}
private void ensureAssessedCustomFeesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = assessedCustomFees_;
if (!tmp.isModifiable()) {
assessedCustomFees_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* 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;
*/
private void setAssessedCustomFees(
int index, com.hedera.hashgraph.sdk.proto.AssessedCustomFee value) {
value.getClass();
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.set(index, value);
}
/**
*
**
* 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;
*/
private void addAssessedCustomFees(com.hedera.hashgraph.sdk.proto.AssessedCustomFee value) {
value.getClass();
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.add(value);
}
/**
*
**
* 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;
*/
private void addAssessedCustomFees(
int index, com.hedera.hashgraph.sdk.proto.AssessedCustomFee value) {
value.getClass();
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.add(index, value);
}
/**
*
**
* 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;
*/
private void addAllAssessedCustomFees(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AssessedCustomFee> values) {
ensureAssessedCustomFeesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, 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;
*/
private void clearAssessedCustomFees() {
assessedCustomFees_ = emptyProtobufList();
}
/**
*
**
* 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;
*/
private void removeAssessedCustomFees(int index) {
ensureAssessedCustomFeesIsMutable();
assessedCustomFees_.remove(index);
}
public static final int AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 14;
private com.google.protobuf.Internal.ProtobufList 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;
*/
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;
*/
public com.hedera.hashgraph.sdk.proto.TokenAssociationOrBuilder getAutomaticTokenAssociationsOrBuilder(
int index) {
return automaticTokenAssociations_.get(index);
}
private void ensureAutomaticTokenAssociationsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = automaticTokenAssociations_;
if (!tmp.isModifiable()) {
automaticTokenAssociations_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
private void setAutomaticTokenAssociations(
int index, com.hedera.hashgraph.sdk.proto.TokenAssociation value) {
value.getClass();
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.set(index, value);
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
private void addAutomaticTokenAssociations(com.hedera.hashgraph.sdk.proto.TokenAssociation value) {
value.getClass();
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.add(value);
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
private void addAutomaticTokenAssociations(
int index, com.hedera.hashgraph.sdk.proto.TokenAssociation value) {
value.getClass();
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.add(index, value);
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
private void addAllAutomaticTokenAssociations(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TokenAssociation> values) {
ensureAutomaticTokenAssociationsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, automaticTokenAssociations_);
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
private void clearAutomaticTokenAssociations() {
automaticTokenAssociations_ = emptyProtobufList();
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
private void removeAutomaticTokenAssociations(int index) {
ensureAutomaticTokenAssociationsIsMutable();
automaticTokenAssociations_.remove(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;
*/
@java.lang.Override
public boolean hasParentConsensusTimestamp() {
return parentConsensusTimestamp_ != null;
}
/**
*
**
* 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.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;
*/
private void setParentConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) {
value.getClass();
parentConsensusTimestamp_ = value;
}
/**
*
**
* 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.SuppressWarnings({"ReferenceEquality"})
private void mergeParentConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) {
value.getClass();
if (parentConsensusTimestamp_ != null &&
parentConsensusTimestamp_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
parentConsensusTimestamp_ =
com.hedera.hashgraph.sdk.proto.Timestamp.newBuilder(parentConsensusTimestamp_).mergeFrom(value).buildPartial();
} else {
parentConsensusTimestamp_ = value;
}
}
/**
*
**
* In the record of an internal transaction, the consensus timestamp of the user
* transaction that spawned it.
*
*
* .proto.Timestamp parent_consensus_timestamp = 15;
*/
private void clearParentConsensusTimestamp() { parentConsensusTimestamp_ = null;
}
public static final int ALIAS_FIELD_NUMBER = 16;
private com.google.protobuf.ByteString 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;
* @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.
*/
private void setAlias(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
alias_ = value;
}
/**
*
**
* 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;
*/
private void clearAlias() {
alias_ = getDefaultInstance().getAlias();
}
public static final int ETHEREUM_HASH_FIELD_NUMBER = 17;
private com.google.protobuf.ByteString ethereumHash_;
/**
*
**
* 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.
*/
private void setEthereumHash(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
ethereumHash_ = value;
}
/**
*
**
* The keccak256 hash of the ethereumData. This field will only be populated for
* EthereumTransaction.
*
*
* bytes ethereum_hash = 17;
*/
private void clearEthereumHash() {
ethereumHash_ = getDefaultInstance().getEthereumHash();
}
public static final int PAID_STAKING_REWARDS_FIELD_NUMBER = 18;
private com.google.protobuf.Internal.ProtobufList 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;
*/
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;
*/
public com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder getPaidStakingRewardsOrBuilder(
int index) {
return paidStakingRewards_.get(index);
}
private void ensurePaidStakingRewardsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = paidStakingRewards_;
if (!tmp.isModifiable()) {
paidStakingRewards_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
private void setPaidStakingRewards(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount value) {
value.getClass();
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.set(index, value);
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
private void addPaidStakingRewards(com.hedera.hashgraph.sdk.proto.AccountAmount value) {
value.getClass();
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.add(value);
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
private void addPaidStakingRewards(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount value) {
value.getClass();
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.add(index, value);
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
private void addAllPaidStakingRewards(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountAmount> values) {
ensurePaidStakingRewardsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, paidStakingRewards_);
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
private void clearPaidStakingRewards() {
paidStakingRewards_ = emptyProtobufList();
}
/**
*
**
* List of accounts with the corresponding staking rewards paid as a result of a transaction.
*
*
* repeated .proto.AccountAmount paid_staking_rewards = 18;
*/
private void removePaidStakingRewards(int index) {
ensurePaidStakingRewardsIsMutable();
paidStakingRewards_.remove(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;
}
/**
*
**
* 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.
*/
private void setPrngBytes(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
entropyCase_ = 19;
entropy_ = value;
}
/**
*
**
* In the record of a UtilPrng transaction with no output range, a pseudorandom 384-bit string.
*
*
* bytes prng_bytes = 19;
*/
private void clearPrngBytes() {
if (entropyCase_ == 19) {
entropyCase_ = 0;
entropy_ = null;
}
}
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;
}
/**
*
**
* 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.
*/
private void setPrngNumber(int value) {
entropyCase_ = 20;
entropy_ = value;
}
/**
*
**
* 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;
*/
private void clearPrngNumber() {
if (entropyCase_ == 20) {
entropyCase_ = 0;
entropy_ = null;
}
}
public static final int EVM_ADDRESS_FIELD_NUMBER = 21;
private com.google.protobuf.ByteString 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;
* @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.
*/
private void setEvmAddress(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
evmAddress_ = value;
}
/**
*
**
* 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;
*/
private void clearEvmAddress() {
evmAddress_ = getDefaultInstance().getEvmAddress();
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.TransactionRecord prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* Response when the client sends the node TransactionGetRecordResponse
*
*
* Protobuf type {@code proto.TransactionRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.TransactionRecord, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.TransactionRecord)
com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.TransactionRecord.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public BodyCase
getBodyCase() {
return instance.getBodyCase();
}
public Builder clearBody() {
copyOnWrite();
instance.clearBody();
return this;
}
@java.lang.Override
public EntropyCase
getEntropyCase() {
return instance.getEntropyCase();
}
public Builder clearEntropy() {
copyOnWrite();
instance.clearEntropy();
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;
*/
@java.lang.Override
public boolean hasReceipt() {
return instance.hasReceipt();
}
/**
*
**
* 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.TransactionReceipt getReceipt() {
return instance.getReceipt();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setReceipt(value);
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) {
copyOnWrite();
instance.setReceipt(builderForValue.build());
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) {
copyOnWrite();
instance.mergeReceipt(value);
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() { copyOnWrite();
instance.clearReceipt();
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 The transactionHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransactionHash() {
return instance.getTransactionHash();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setTransactionHash(value);
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() {
copyOnWrite();
instance.clearTransactionHash();
return this;
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
@java.lang.Override
public boolean hasConsensusTimestamp() {
return instance.hasConsensusTimestamp();
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getConsensusTimestamp() {
return instance.getConsensusTimestamp();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setConsensusTimestamp(value);
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) {
copyOnWrite();
instance.setConsensusTimestamp(builderForValue.build());
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) {
copyOnWrite();
instance.mergeConsensusTimestamp(value);
return this;
}
/**
*
**
* The consensus timestamp (or null if didn't reach consensus yet)
*
*
* .proto.Timestamp consensusTimestamp = 3;
*/
public Builder clearConsensusTimestamp() { copyOnWrite();
instance.clearConsensusTimestamp();
return this;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
@java.lang.Override
public boolean hasTransactionID() {
return instance.hasTransactionID();
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionID getTransactionID() {
return instance.getTransactionID();
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
public Builder setTransactionID(com.hedera.hashgraph.sdk.proto.TransactionID value) {
copyOnWrite();
instance.setTransactionID(value);
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) {
copyOnWrite();
instance.setTransactionID(builderForValue.build());
return this;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
public Builder mergeTransactionID(com.hedera.hashgraph.sdk.proto.TransactionID value) {
copyOnWrite();
instance.mergeTransactionID(value);
return this;
}
/**
*
**
* The ID of the transaction this record represents
*
*
* .proto.TransactionID transactionID = 4;
*/
public Builder clearTransactionID() { copyOnWrite();
instance.clearTransactionID();
return this;
}
/**
*
**
* 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() {
return instance.getMemo();
}
/**
*
**
* 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() {
return instance.getMemoBytes();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setMemo(value);
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() {
copyOnWrite();
instance.clearMemo();
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) {
copyOnWrite();
instance.setMemoBytes(value);
return this;
}
/**
*
**
* 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 instance.getTransactionFee();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setTransactionFee(value);
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() {
copyOnWrite();
instance.clearTransactionFee();
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;
*/
@java.lang.Override
public boolean hasContractCallResult() {
return instance.hasContractCallResult();
}
/**
*
**
* 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.ContractFunctionResult getContractCallResult() {
return instance.getContractCallResult();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setContractCallResult(value);
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) {
copyOnWrite();
instance.setContractCallResult(builderForValue.build());
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) {
copyOnWrite();
instance.mergeContractCallResult(value);
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() {
copyOnWrite();
instance.clearContractCallResult();
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;
*/
@java.lang.Override
public boolean hasContractCreateResult() {
return instance.hasContractCreateResult();
}
/**
*
**
* 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.ContractFunctionResult getContractCreateResult() {
return instance.getContractCreateResult();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setContractCreateResult(value);
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) {
copyOnWrite();
instance.setContractCreateResult(builderForValue.build());
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) {
copyOnWrite();
instance.mergeContractCreateResult(value);
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() {
copyOnWrite();
instance.clearContractCreateResult();
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;
*/
@java.lang.Override
public boolean hasTransferList() {
return instance.hasTransferList();
}
/**
*
**
* 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.TransferList getTransferList() {
return instance.getTransferList();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setTransferList(value);
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) {
copyOnWrite();
instance.setTransferList(builderForValue.build());
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) {
copyOnWrite();
instance.mergeTransferList(value);
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() { copyOnWrite();
instance.clearTransferList();
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
@java.lang.Override
public java.util.List getTokenTransferListsList() {
return java.util.Collections.unmodifiableList(
instance.getTokenTransferListsList());
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
@java.lang.Override
public int getTokenTransferListsCount() {
return instance.getTokenTransferListsCount();
}/**
*
**
* 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 instance.getTokenTransferLists(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) {
copyOnWrite();
instance.setTokenTransferLists(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) {
copyOnWrite();
instance.setTokenTransferLists(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) {
copyOnWrite();
instance.addTokenTransferLists(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) {
copyOnWrite();
instance.addTokenTransferLists(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) {
copyOnWrite();
instance.addTokenTransferLists(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) {
copyOnWrite();
instance.addTokenTransferLists(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) {
copyOnWrite();
instance.addAllTokenTransferLists(values);
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder clearTokenTransferLists() {
copyOnWrite();
instance.clearTokenTransferLists();
return this;
}
/**
*
**
* All Token transfers as a result of this transaction
*
*
* repeated .proto.TokenTransferList tokenTransferLists = 11;
*/
public Builder removeTokenTransferLists(int index) {
copyOnWrite();
instance.removeTokenTransferLists(index);
return this;
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
@java.lang.Override
public boolean hasScheduleRef() {
return instance.hasScheduleRef();
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ScheduleID getScheduleRef() {
return instance.getScheduleRef();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setScheduleRef(value);
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) {
copyOnWrite();
instance.setScheduleRef(builderForValue.build());
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) {
copyOnWrite();
instance.mergeScheduleRef(value);
return this;
}
/**
*
**
* Reference to the scheduled transaction ID that this transaction record represent
*
*
* .proto.ScheduleID scheduleRef = 12;
*/
public Builder clearScheduleRef() { copyOnWrite();
instance.clearScheduleRef();
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;
*/
@java.lang.Override
public java.util.List getAssessedCustomFeesList() {
return java.util.Collections.unmodifiableList(
instance.getAssessedCustomFeesList());
}
/**
*
**
* 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 instance.getAssessedCustomFeesCount();
}/**
*
**
* 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 instance.getAssessedCustomFees(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) {
copyOnWrite();
instance.setAssessedCustomFees(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) {
copyOnWrite();
instance.setAssessedCustomFees(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) {
copyOnWrite();
instance.addAssessedCustomFees(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) {
copyOnWrite();
instance.addAssessedCustomFees(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) {
copyOnWrite();
instance.addAssessedCustomFees(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) {
copyOnWrite();
instance.addAssessedCustomFees(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) {
copyOnWrite();
instance.addAllAssessedCustomFees(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() {
copyOnWrite();
instance.clearAssessedCustomFees();
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) {
copyOnWrite();
instance.removeAssessedCustomFees(index);
return this;
}
/**
*
**
* 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 java.util.Collections.unmodifiableList(
instance.getAutomaticTokenAssociationsList());
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
@java.lang.Override
public int getAutomaticTokenAssociationsCount() {
return instance.getAutomaticTokenAssociationsCount();
}/**
*
**
* 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 instance.getAutomaticTokenAssociations(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) {
copyOnWrite();
instance.setAutomaticTokenAssociations(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) {
copyOnWrite();
instance.setAutomaticTokenAssociations(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) {
copyOnWrite();
instance.addAutomaticTokenAssociations(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) {
copyOnWrite();
instance.addAutomaticTokenAssociations(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) {
copyOnWrite();
instance.addAutomaticTokenAssociations(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) {
copyOnWrite();
instance.addAutomaticTokenAssociations(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) {
copyOnWrite();
instance.addAllAutomaticTokenAssociations(values);
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder clearAutomaticTokenAssociations() {
copyOnWrite();
instance.clearAutomaticTokenAssociations();
return this;
}
/**
*
**
* All token associations implicitly created while handling this transaction
*
*
* repeated .proto.TokenAssociation automatic_token_associations = 14;
*/
public Builder removeAutomaticTokenAssociations(int index) {
copyOnWrite();
instance.removeAutomaticTokenAssociations(index);
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;
*/
@java.lang.Override
public boolean hasParentConsensusTimestamp() {
return instance.hasParentConsensusTimestamp();
}
/**
*
**
* 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.Timestamp getParentConsensusTimestamp() {
return instance.getParentConsensusTimestamp();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setParentConsensusTimestamp(value);
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) {
copyOnWrite();
instance.setParentConsensusTimestamp(builderForValue.build());
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) {
copyOnWrite();
instance.mergeParentConsensusTimestamp(value);
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() { copyOnWrite();
instance.clearParentConsensusTimestamp();
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 The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return instance.getAlias();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setAlias(value);
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() {
copyOnWrite();
instance.clearAlias();
return this;
}
/**
*
**
* 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 instance.getEthereumHash();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setEthereumHash(value);
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() {
copyOnWrite();
instance.clearEthereumHash();
return this;
}
/**
*
**
* 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 java.util.Collections.unmodifiableList(
instance.getPaidStakingRewardsList());
}
/**
*
**
* 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 instance.getPaidStakingRewardsCount();
}/**
*
**
* 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 instance.getPaidStakingRewards(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) {
copyOnWrite();
instance.setPaidStakingRewards(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) {
copyOnWrite();
instance.setPaidStakingRewards(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) {
copyOnWrite();
instance.addPaidStakingRewards(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) {
copyOnWrite();
instance.addPaidStakingRewards(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) {
copyOnWrite();
instance.addPaidStakingRewards(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) {
copyOnWrite();
instance.addPaidStakingRewards(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) {
copyOnWrite();
instance.addAllPaidStakingRewards(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() {
copyOnWrite();
instance.clearPaidStakingRewards();
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) {
copyOnWrite();
instance.removePaidStakingRewards(index);
return this;
}
/**
*
**
* 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 instance.hasPrngBytes();
}
/**
*
**
* 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() {
return instance.getPrngBytes();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setPrngBytes(value);
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() {
copyOnWrite();
instance.clearPrngBytes();
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.
*/
@java.lang.Override
public boolean hasPrngNumber() {
return instance.hasPrngNumber();
}
/**
*
**
* 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() {
return instance.getPrngNumber();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setPrngNumber(value);
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() {
copyOnWrite();
instance.clearPrngNumber();
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 The evmAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEvmAddress() {
return instance.getEvmAddress();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setEvmAddress(value);
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() {
copyOnWrite();
instance.clearEvmAddress();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.TransactionRecord)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.TransactionRecord();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"body_",
"bodyCase_",
"entropy_",
"entropyCase_",
"receipt_",
"transactionHash_",
"consensusTimestamp_",
"transactionID_",
"memo_",
"transactionFee_",
com.hedera.hashgraph.sdk.proto.ContractFunctionResult.class,
com.hedera.hashgraph.sdk.proto.ContractFunctionResult.class,
"transferList_",
"tokenTransferLists_",
com.hedera.hashgraph.sdk.proto.TokenTransferList.class,
"scheduleRef_",
"assessedCustomFees_",
com.hedera.hashgraph.sdk.proto.AssessedCustomFee.class,
"automaticTokenAssociations_",
com.hedera.hashgraph.sdk.proto.TokenAssociation.class,
"parentConsensusTimestamp_",
"alias_",
"ethereumHash_",
"paidStakingRewards_",
com.hedera.hashgraph.sdk.proto.AccountAmount.class,
"evmAddress_",
};
java.lang.String info =
"\u0000\u0014\u0002\u0000\u0001\u0015\u0014\u0000\u0004\u0000\u0001\t\u0002\n\u0003" +
"\t\u0004\t\u0005\u0208\u0006\u0003\u0007<\u0000\b<\u0000\n\t\u000b\u001b\f\t\r\u001b" +
"\u000e\u001b\u000f\t\u0010\n\u0011\n\u0012\u001b\u0013=\u0001\u00147\u0001\u0015" +
"\n";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.TransactionRecord.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.TransactionRecord)
private static final com.hedera.hashgraph.sdk.proto.TransactionRecord DEFAULT_INSTANCE;
static {
TransactionRecord defaultInstance = new TransactionRecord();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TransactionRecord.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.TransactionRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy