Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TransactionGetRecordResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TransactionGetRecordResponse,TransactionGetRecordResponse.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TransactionGetRecordResponse,TransactionGetRecordResponse.Builder>
com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,TransactionGetRecordResponseOrBuilder,Cloneable
- Enclosing class:
TransactionGetRecordResponse
public static final class TransactionGetRecordResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TransactionGetRecordResponse,TransactionGetRecordResponse.Builder>
implements TransactionGetRecordResponseOrBuilder
* Response message for a `getTxRecordByTxID` query. The `transactionRecord` field SHALL return the record for the "first" transaction that matches the transaction identifier requested.<br/> If records for duplicate transactions are requested, those duplicate records SHALL be present in the `duplicateTransactionReceipts` list.<br/> If records for child transactions are requested, those child records SHALL be present in the `child_transaction_records` list.<br/> A state proof MAY be provided for this response; provided the record is still available from the consensus nodes. <dl> <dt>What is the "first" transaction?</dt> <dd>The "first" transaction receipt SHALL be the receipt for the first transaction with status that is neither `INVALID_NODE_ACCOUNT` nor `INVALID_PAYER_SIGNATURE`.<br/> If no transaction is found meeting the status criteria, the "first" transaction SHALL be the first transaction by consensus time.</dd> <dt>What is a "child" transaction?</dt> <dd>A "child" transaction is any transaction created in the process of completing another transaction. These are most common with a smart contract call, where a call to a contract may initiate one or more additional transactions to complete a complex process.</dd> </dl>Protobuf type
proto.TransactionGetRecordResponse-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllChildTransactionRecords(Iterable<? extends TransactionRecord> values) * A list of records for all child transactions spawned by the requested transaction.addAllDuplicateTransactionRecords(Iterable<? extends TransactionRecord> values) * A list of duplicate transaction records.addChildTransactionRecords(int index, TransactionRecord value) * A list of records for all child transactions spawned by the requested transaction.addChildTransactionRecords(int index, TransactionRecord.Builder builderForValue) * A list of records for all child transactions spawned by the requested transaction.* A list of records for all child transactions spawned by the requested transaction.addChildTransactionRecords(TransactionRecord.Builder builderForValue) * A list of records for all child transactions spawned by the requested transaction.addDuplicateTransactionRecords(int index, TransactionRecord value) * A list of duplicate transaction records.addDuplicateTransactionRecords(int index, TransactionRecord.Builder builderForValue) * A list of duplicate transaction records.* A list of duplicate transaction records.addDuplicateTransactionRecords(TransactionRecord.Builder builderForValue) * A list of duplicate transaction records.* A list of records for all child transactions spawned by the requested transaction.* A list of duplicate transaction records.* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).* A transaction record.getChildTransactionRecords(int index) * A list of records for all child transactions spawned by the requested transaction.int* A list of records for all child transactions spawned by the requested transaction.* A list of records for all child transactions spawned by the requested transaction.getDuplicateTransactionRecords(int index) * A list of duplicate transaction records.int* A list of duplicate transaction records.* A list of duplicate transaction records.* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).* A transaction record.boolean* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).boolean* A transaction record.mergeHeader(ResponseHeader value) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).* A transaction record.removeChildTransactionRecords(int index) * A list of records for all child transactions spawned by the requested transaction.removeDuplicateTransactionRecords(int index) * A list of duplicate transaction records.setChildTransactionRecords(int index, TransactionRecord value) * A list of records for all child transactions spawned by the requested transaction.setChildTransactionRecords(int index, TransactionRecord.Builder builderForValue) * A list of records for all child transactions spawned by the requested transaction.setDuplicateTransactionRecords(int index, TransactionRecord value) * A list of duplicate transaction records.setDuplicateTransactionRecords(int index, TransactionRecord.Builder builderForValue) * A list of duplicate transaction records.setHeader(ResponseHeader value) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).setHeader(ResponseHeader.Builder builderForValue) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).* A transaction record.setTransactionRecord(TransactionRecord.Builder builderForValue) * A transaction record.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasHeader
public boolean hasHeader()* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1;- Specified by:
hasHeaderin interfaceTransactionGetRecordResponseOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1;- Specified by:
getHeaderin interfaceTransactionGetRecordResponseOrBuilder- Returns:
- The header.
-
setHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
setHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
mergeHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
clearHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
hasTransactionRecord
public boolean hasTransactionRecord()* A transaction record. <p> This SHALL be the record for the "first" transaction that matches the transaction identifier requested.<br/> If the identified transaction has not reached consensus, this record SHALL have a `status` of `UNKNOWN`.<br/> If the identified transaction reached consensus prior to the current configured record cache duration, this record SHALL have a `status` of `UNKNOWN`.
.proto.TransactionRecord transactionRecord = 3;- Specified by:
hasTransactionRecordin interfaceTransactionGetRecordResponseOrBuilder- Returns:
- Whether the transactionRecord field is set.
-
getTransactionRecord
* A transaction record. <p> This SHALL be the record for the "first" transaction that matches the transaction identifier requested.<br/> If the identified transaction has not reached consensus, this record SHALL have a `status` of `UNKNOWN`.<br/> If the identified transaction reached consensus prior to the current configured record cache duration, this record SHALL have a `status` of `UNKNOWN`.
.proto.TransactionRecord transactionRecord = 3;- Specified by:
getTransactionRecordin interfaceTransactionGetRecordResponseOrBuilder- Returns:
- The transactionRecord.
-
setTransactionRecord
* A transaction record. <p> This SHALL be the record for the "first" transaction that matches the transaction identifier requested.<br/> If the identified transaction has not reached consensus, this record SHALL have a `status` of `UNKNOWN`.<br/> If the identified transaction reached consensus prior to the current configured record cache duration, this record SHALL have a `status` of `UNKNOWN`.
.proto.TransactionRecord transactionRecord = 3; -
setTransactionRecord
public TransactionGetRecordResponse.Builder setTransactionRecord(TransactionRecord.Builder builderForValue) * A transaction record. <p> This SHALL be the record for the "first" transaction that matches the transaction identifier requested.<br/> If the identified transaction has not reached consensus, this record SHALL have a `status` of `UNKNOWN`.<br/> If the identified transaction reached consensus prior to the current configured record cache duration, this record SHALL have a `status` of `UNKNOWN`.
.proto.TransactionRecord transactionRecord = 3; -
mergeTransactionRecord
* A transaction record. <p> This SHALL be the record for the "first" transaction that matches the transaction identifier requested.<br/> If the identified transaction has not reached consensus, this record SHALL have a `status` of `UNKNOWN`.<br/> If the identified transaction reached consensus prior to the current configured record cache duration, this record SHALL have a `status` of `UNKNOWN`.
.proto.TransactionRecord transactionRecord = 3; -
clearTransactionRecord
* A transaction record. <p> This SHALL be the record for the "first" transaction that matches the transaction identifier requested.<br/> If the identified transaction has not reached consensus, this record SHALL have a `status` of `UNKNOWN`.<br/> If the identified transaction reached consensus prior to the current configured record cache duration, this record SHALL have a `status` of `UNKNOWN`.
.proto.TransactionRecord transactionRecord = 3; -
getDuplicateTransactionRecordsList
* A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4;- Specified by:
getDuplicateTransactionRecordsListin interfaceTransactionGetRecordResponseOrBuilder
-
getDuplicateTransactionRecordsCount
public int getDuplicateTransactionRecordsCount()* A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4;- Specified by:
getDuplicateTransactionRecordsCountin interfaceTransactionGetRecordResponseOrBuilder
-
getDuplicateTransactionRecords
* A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4;- Specified by:
getDuplicateTransactionRecordsin interfaceTransactionGetRecordResponseOrBuilder
-
setDuplicateTransactionRecords
public TransactionGetRecordResponse.Builder setDuplicateTransactionRecords(int index, TransactionRecord value) * A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4; -
setDuplicateTransactionRecords
public TransactionGetRecordResponse.Builder setDuplicateTransactionRecords(int index, TransactionRecord.Builder builderForValue) * A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4; -
addDuplicateTransactionRecords
* A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4; -
addDuplicateTransactionRecords
public TransactionGetRecordResponse.Builder addDuplicateTransactionRecords(int index, TransactionRecord value) * A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4; -
addDuplicateTransactionRecords
public TransactionGetRecordResponse.Builder addDuplicateTransactionRecords(TransactionRecord.Builder builderForValue) * A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4; -
addDuplicateTransactionRecords
public TransactionGetRecordResponse.Builder addDuplicateTransactionRecords(int index, TransactionRecord.Builder builderForValue) * A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4; -
addAllDuplicateTransactionRecords
public TransactionGetRecordResponse.Builder addAllDuplicateTransactionRecords(Iterable<? extends TransactionRecord> values) * A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4; -
clearDuplicateTransactionRecords
* A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4; -
removeDuplicateTransactionRecords
* A list of duplicate transaction records. <p> If the request set the `includeDuplicates` flat, this list SHALL include the records for each duplicate transaction associated to the requested transaction identifier. If the request did not set the `includeDuplicates` flag, this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord duplicateTransactionRecords = 4; -
getChildTransactionRecordsList
* A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5;- Specified by:
getChildTransactionRecordsListin interfaceTransactionGetRecordResponseOrBuilder
-
getChildTransactionRecordsCount
public int getChildTransactionRecordsCount()* A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5;- Specified by:
getChildTransactionRecordsCountin interfaceTransactionGetRecordResponseOrBuilder
-
getChildTransactionRecords
* A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5;- Specified by:
getChildTransactionRecordsin interfaceTransactionGetRecordResponseOrBuilder
-
setChildTransactionRecords
public TransactionGetRecordResponse.Builder setChildTransactionRecords(int index, TransactionRecord value) * A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5; -
setChildTransactionRecords
public TransactionGetRecordResponse.Builder setChildTransactionRecords(int index, TransactionRecord.Builder builderForValue) * A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5; -
addChildTransactionRecords
* A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5; -
addChildTransactionRecords
public TransactionGetRecordResponse.Builder addChildTransactionRecords(int index, TransactionRecord value) * A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5; -
addChildTransactionRecords
public TransactionGetRecordResponse.Builder addChildTransactionRecords(TransactionRecord.Builder builderForValue) * A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5; -
addChildTransactionRecords
public TransactionGetRecordResponse.Builder addChildTransactionRecords(int index, TransactionRecord.Builder builderForValue) * A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5; -
addAllChildTransactionRecords
public TransactionGetRecordResponse.Builder addAllChildTransactionRecords(Iterable<? extends TransactionRecord> values) * A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5; -
clearChildTransactionRecords
* A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5; -
removeChildTransactionRecords
* A list of records for all child transactions spawned by the requested transaction. <p> If the request set the `include_child_records` flag, this list SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If the request did not set the `include_child_records` flag, this list SHALL be empty. <br/> If the parent transaction did not initiate any child transactions this list SHALL be empty.<br/> If the `transactionRecord` status is `UNKNOWN`, this list SHALL be empty.<br/> This list SHALL be in order by consensus timestamp.
repeated .proto.TransactionRecord child_transaction_records = 5;
-