Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TransactionGetRecordQuery.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TransactionGetRecordQuery,TransactionGetRecordQuery.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TransactionGetRecordQuery,TransactionGetRecordQuery.Builder>
com.hedera.hashgraph.sdk.proto.TransactionGetRecordQuery.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,TransactionGetRecordQueryOrBuilder,Cloneable
- Enclosing class:
TransactionGetRecordQuery
public static final class TransactionGetRecordQuery.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TransactionGetRecordQuery,TransactionGetRecordQuery.Builder>
implements TransactionGetRecordQueryOrBuilder
* Request for a `TransactionGetRecord` (a.k.a. `getTxRecordByTxID`) query. <p> A transaction record SHALL be available after the network reaches consensus and completes execution for a transaction.<br/> A transaction record SHALL NOT be available after the end of the network configured "record cache duration". <dl> <dt>What is the "first" transaction?</dt> <dd>The "first" transaction SHALL be the the transaction with the earliest consensus time and a status that is neither `INVALID_NODE_ACCOUNT` nor `INVALID_PAYER_SIGNATURE`.<br/> If no transaction is found meeting this status criteria, the "first" transaction SHALL be the transaction with the earliest 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.TransactionGetRecordQuery-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).* A flag to request "child" records.* A flag to request duplicates.* A transaction identifier.* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).boolean* A flag to request "child" records.boolean* A flag to request duplicates.* A transaction identifier.boolean* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).boolean* A transaction identifier.mergeHeader(QueryHeader value) * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).mergeTransactionID(TransactionID value) * A transaction identifier.setHeader(QueryHeader value) * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).setHeader(QueryHeader.Builder builderForValue) * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).setIncludeChildRecords(boolean value) * A flag to request "child" records.setIncludeDuplicates(boolean value) * A flag to request duplicates.setTransactionID(TransactionID value) * A transaction identifier.setTransactionID(TransactionID.Builder builderForValue) * A transaction identifier.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()* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
.proto.QueryHeader header = 1;- Specified by:
hasHeaderin interfaceTransactionGetRecordQueryOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
.proto.QueryHeader header = 1;- Specified by:
getHeaderin interfaceTransactionGetRecordQueryOrBuilder- Returns:
- The header.
-
setHeader
* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
.proto.QueryHeader header = 1; -
setHeader
* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
.proto.QueryHeader header = 1; -
mergeHeader
* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
.proto.QueryHeader header = 1; -
clearHeader
* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
.proto.QueryHeader header = 1; -
hasTransactionID
public boolean hasTransactionID()* A transaction identifier. <p> This MUST contain the full identifier, as submitted, for the transaction to query.
.proto.TransactionID transactionID = 2;- Specified by:
hasTransactionIDin interfaceTransactionGetRecordQueryOrBuilder- Returns:
- Whether the transactionID field is set.
-
getTransactionID
* A transaction identifier. <p> This MUST contain the full identifier, as submitted, for the transaction to query.
.proto.TransactionID transactionID = 2;- Specified by:
getTransactionIDin interfaceTransactionGetRecordQueryOrBuilder- Returns:
- The transactionID.
-
setTransactionID
* A transaction identifier. <p> This MUST contain the full identifier, as submitted, for the transaction to query.
.proto.TransactionID transactionID = 2; -
setTransactionID
* A transaction identifier. <p> This MUST contain the full identifier, as submitted, for the transaction to query.
.proto.TransactionID transactionID = 2; -
mergeTransactionID
* A transaction identifier. <p> This MUST contain the full identifier, as submitted, for the transaction to query.
.proto.TransactionID transactionID = 2; -
clearTransactionID
* A transaction identifier. <p> This MUST contain the full identifier, as submitted, for the transaction to query.
.proto.TransactionID transactionID = 2; -
getIncludeDuplicates
public boolean getIncludeDuplicates()* A flag to request duplicates. <p> If set, every transaction record within the record cache duration that matches the requested transaction identifier SHALL be returned.<br/> If not set, duplicate transactions SHALL NOT be returned.<br/> If not set, only the record for the first matching transaction to reach consensus SHALL be returned.
bool includeDuplicates = 3;- Specified by:
getIncludeDuplicatesin interfaceTransactionGetRecordQueryOrBuilder- Returns:
- The includeDuplicates.
-
setIncludeDuplicates
* A flag to request duplicates. <p> If set, every transaction record within the record cache duration that matches the requested transaction identifier SHALL be returned.<br/> If not set, duplicate transactions SHALL NOT be returned.<br/> If not set, only the record for the first matching transaction to reach consensus SHALL be returned.
bool includeDuplicates = 3;- Parameters:
value- The includeDuplicates to set.- Returns:
- This builder for chaining.
-
clearIncludeDuplicates
* A flag to request duplicates. <p> If set, every transaction record within the record cache duration that matches the requested transaction identifier SHALL be returned.<br/> If not set, duplicate transactions SHALL NOT be returned.<br/> If not set, only the record for the first matching transaction to reach consensus SHALL be returned.
bool includeDuplicates = 3;- Returns:
- This builder for chaining.
-
getIncludeChildRecords
public boolean getIncludeChildRecords()* A flag to request "child" records. <p> If set, the response SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If not set, the response SHALL NOT include any records for child transactions.
bool include_child_records = 4;- Specified by:
getIncludeChildRecordsin interfaceTransactionGetRecordQueryOrBuilder- Returns:
- The includeChildRecords.
-
setIncludeChildRecords
* A flag to request "child" records. <p> If set, the response SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If not set, the response SHALL NOT include any records for child transactions.
bool include_child_records = 4;- Parameters:
value- The includeChildRecords to set.- Returns:
- This builder for chaining.
-
clearIncludeChildRecords
* A flag to request "child" records. <p> If set, the response SHALL include records for each child transaction executed as part of the requested parent transaction.<br/> If not set, the response SHALL NOT include any records for child transactions.
bool include_child_records = 4;- Returns:
- This builder for chaining.
-