Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TransactionReceiptEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TransactionReceiptEntry,TransactionReceiptEntry.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TransactionReceiptEntry,TransactionReceiptEntry.Builder>
com.hedera.hashgraph.sdk.proto.TransactionReceiptEntry.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,TransactionReceiptEntryOrBuilder,Cloneable
- Enclosing class:
TransactionReceiptEntry
public static final class TransactionReceiptEntry.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TransactionReceiptEntry,TransactionReceiptEntry.Builder>
implements TransactionReceiptEntryOrBuilder
* An entry in the record cache with the receipt for a transaction. This is the entry stored in state that enables returning the receipt information when queried by clients. When a transaction is handled a receipt SHALL be created.<br/> This receipt MUST be stored in state for a configured time limit (e.g. 3 minutes).<br/> While a receipt is stored, a client MAY query the node and retrieve the receipt.Protobuf type
proto.TransactionReceiptEntry-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A node identifier.<br/> This identifies the node that submitted the transaction to consensus.* A status result.<br/> This is the final status after handling the transaction.* A transaction identifier.<br/> This identifies the submitted transaction for this receipt.long* A node identifier.<br/> This identifies the node that submitted the transaction to consensus.* A status result.<br/> This is the final status after handling the transaction.int* A status result.<br/> This is the final status after handling the transaction.* A transaction identifier.<br/> This identifies the submitted transaction for this receipt.boolean* A transaction identifier.<br/> This identifies the submitted transaction for this receipt.mergeTransactionId(TransactionID value) * A transaction identifier.<br/> This identifies the submitted transaction for this receipt.setNodeId(long value) * A node identifier.<br/> This identifies the node that submitted the transaction to consensus.setStatus(ResponseCodeEnum value) * A status result.<br/> This is the final status after handling the transaction.setStatusValue(int value) * A status result.<br/> This is the final status after handling the transaction.setTransactionId(TransactionID value) * A transaction identifier.<br/> This identifies the submitted transaction for this receipt.setTransactionId(TransactionID.Builder builderForValue) * A transaction identifier.<br/> This identifies the submitted transaction for this receipt.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
-
getNodeId
public long getNodeId()* A node identifier.<br/> This identifies the node that submitted the transaction to consensus. The value is the identifier as known to the current address book. <p> Valid node identifiers SHALL be between 0 and <tt>2<sup>63-1</sup></tt>, inclusive.
uint64 node_id = 1;- Specified by:
getNodeIdin interfaceTransactionReceiptEntryOrBuilder- Returns:
- The nodeId.
-
setNodeId
* A node identifier.<br/> This identifies the node that submitted the transaction to consensus. The value is the identifier as known to the current address book. <p> Valid node identifiers SHALL be between 0 and <tt>2<sup>63-1</sup></tt>, inclusive.
uint64 node_id = 1;- Parameters:
value- The nodeId to set.- Returns:
- This builder for chaining.
-
clearNodeId
* A node identifier.<br/> This identifies the node that submitted the transaction to consensus. The value is the identifier as known to the current address book. <p> Valid node identifiers SHALL be between 0 and <tt>2<sup>63-1</sup></tt>, inclusive.
uint64 node_id = 1;- Returns:
- This builder for chaining.
-
hasTransactionId
public boolean hasTransactionId()* A transaction identifier.<br/> This identifies the submitted transaction for this receipt.
.proto.TransactionID transaction_id = 2;- Specified by:
hasTransactionIdin interfaceTransactionReceiptEntryOrBuilder- Returns:
- Whether the transactionId field is set.
-
getTransactionId
* A transaction identifier.<br/> This identifies the submitted transaction for this receipt.
.proto.TransactionID transaction_id = 2;- Specified by:
getTransactionIdin interfaceTransactionReceiptEntryOrBuilder- Returns:
- The transactionId.
-
setTransactionId
* A transaction identifier.<br/> This identifies the submitted transaction for this receipt.
.proto.TransactionID transaction_id = 2; -
setTransactionId
* A transaction identifier.<br/> This identifies the submitted transaction for this receipt.
.proto.TransactionID transaction_id = 2; -
mergeTransactionId
* A transaction identifier.<br/> This identifies the submitted transaction for this receipt.
.proto.TransactionID transaction_id = 2; -
clearTransactionId
* A transaction identifier.<br/> This identifies the submitted transaction for this receipt.
.proto.TransactionID transaction_id = 2; -
getStatusValue
public int getStatusValue()* A status result.<br/> This is the final status after handling the transaction.
.proto.ResponseCodeEnum status = 3;- Specified by:
getStatusValuein interfaceTransactionReceiptEntryOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
* A status result.<br/> This is the final status after handling the transaction.
.proto.ResponseCodeEnum status = 3;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getStatus
* A status result.<br/> This is the final status after handling the transaction.
.proto.ResponseCodeEnum status = 3;- Specified by:
getStatusin interfaceTransactionReceiptEntryOrBuilder- Returns:
- The status.
-
setStatus
* A status result.<br/> This is the final status after handling the transaction.
.proto.ResponseCodeEnum status = 3;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
clearStatus
* A status result.<br/> This is the final status after handling the transaction.
.proto.ResponseCodeEnum status = 3;- Returns:
- This builder for chaining.
-