Class TransactionGetReceiptResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TransactionGetReceiptResponse,TransactionGetReceiptResponse.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TransactionGetReceiptResponse,TransactionGetReceiptResponse.Builder>
com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, TransactionGetReceiptResponseOrBuilder, Cloneable
Enclosing class:
TransactionGetReceiptResponse

public static final class TransactionGetReceiptResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TransactionGetReceiptResponse,TransactionGetReceiptResponse.Builder> implements TransactionGetReceiptResponseOrBuilder
 *
 Response message for a `getTransactionReceipts` query.

 The `receipt` field SHALL return the receipt for the "first" transaction
 that matches the transaction identifier requested.<br/>
 If receipts for duplicate transactions are requested, those duplicate
 receipts SHALL be present in the `duplicateTransactionReceipts` list.<br/>
 If receipts for child transactions are requested, those child receipts
 SHALL be present in the `child_transaction_receipts` list.<br/>
 A state proof SHALL NOT be provided for this response; transaction receipts
 are not retained in network state.

 <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.TransactionGetReceiptResponse
  • 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:
      hasHeader in interface TransactionGetReceiptResponseOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public ResponseHeader 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:
      getHeader in interface TransactionGetReceiptResponseOrBuilder
      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;
    • hasReceipt

      public boolean hasReceipt()
       *
       A transaction receipt.
       <p>
       This SHALL be the receipt for the "first" transaction that matches
       the transaction identifier requested.<br/>
       If the identified transaction has not reached consensus, this receipt
       SHALL have a `status` of `UNKNOWN`.<br/>
       If the identified transaction reached consensus prior to the current
       configured receipt period (typically the last 180 seconds), this receipt
       SHALL have a `status` of `UNKNOWN`.
       
      .proto.TransactionReceipt receipt = 2;
      Specified by:
      hasReceipt in interface TransactionGetReceiptResponseOrBuilder
      Returns:
      Whether the receipt field is set.
    • getReceipt

      public TransactionReceipt getReceipt()
       *
       A transaction receipt.
       <p>
       This SHALL be the receipt for the "first" transaction that matches
       the transaction identifier requested.<br/>
       If the identified transaction has not reached consensus, this receipt
       SHALL have a `status` of `UNKNOWN`.<br/>
       If the identified transaction reached consensus prior to the current
       configured receipt period (typically the last 180 seconds), this receipt
       SHALL have a `status` of `UNKNOWN`.
       
      .proto.TransactionReceipt receipt = 2;
      Specified by:
      getReceipt in interface TransactionGetReceiptResponseOrBuilder
      Returns:
      The receipt.
    • setReceipt

       *
       A transaction receipt.
       <p>
       This SHALL be the receipt for the "first" transaction that matches
       the transaction identifier requested.<br/>
       If the identified transaction has not reached consensus, this receipt
       SHALL have a `status` of `UNKNOWN`.<br/>
       If the identified transaction reached consensus prior to the current
       configured receipt period (typically the last 180 seconds), this receipt
       SHALL have a `status` of `UNKNOWN`.
       
      .proto.TransactionReceipt receipt = 2;
    • setReceipt

       *
       A transaction receipt.
       <p>
       This SHALL be the receipt for the "first" transaction that matches
       the transaction identifier requested.<br/>
       If the identified transaction has not reached consensus, this receipt
       SHALL have a `status` of `UNKNOWN`.<br/>
       If the identified transaction reached consensus prior to the current
       configured receipt period (typically the last 180 seconds), this receipt
       SHALL have a `status` of `UNKNOWN`.
       
      .proto.TransactionReceipt receipt = 2;
    • mergeReceipt

       *
       A transaction receipt.
       <p>
       This SHALL be the receipt for the "first" transaction that matches
       the transaction identifier requested.<br/>
       If the identified transaction has not reached consensus, this receipt
       SHALL have a `status` of `UNKNOWN`.<br/>
       If the identified transaction reached consensus prior to the current
       configured receipt period (typically the last 180 seconds), this receipt
       SHALL have a `status` of `UNKNOWN`.
       
      .proto.TransactionReceipt receipt = 2;
    • clearReceipt

       *
       A transaction receipt.
       <p>
       This SHALL be the receipt for the "first" transaction that matches
       the transaction identifier requested.<br/>
       If the identified transaction has not reached consensus, this receipt
       SHALL have a `status` of `UNKNOWN`.<br/>
       If the identified transaction reached consensus prior to the current
       configured receipt period (typically the last 180 seconds), this receipt
       SHALL have a `status` of `UNKNOWN`.
       
      .proto.TransactionReceipt receipt = 2;
    • getDuplicateTransactionReceiptsList

      public List<TransactionReceipt> getDuplicateTransactionReceiptsList()
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
      Specified by:
      getDuplicateTransactionReceiptsList in interface TransactionGetReceiptResponseOrBuilder
    • getDuplicateTransactionReceiptsCount

      public int getDuplicateTransactionReceiptsCount()
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
      Specified by:
      getDuplicateTransactionReceiptsCount in interface TransactionGetReceiptResponseOrBuilder
    • getDuplicateTransactionReceipts

      public TransactionReceipt getDuplicateTransactionReceipts(int index)
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
      Specified by:
      getDuplicateTransactionReceipts in interface TransactionGetReceiptResponseOrBuilder
    • setDuplicateTransactionReceipts

      public TransactionGetReceiptResponse.Builder setDuplicateTransactionReceipts(int index, TransactionReceipt value)
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
    • setDuplicateTransactionReceipts

      public TransactionGetReceiptResponse.Builder setDuplicateTransactionReceipts(int index, TransactionReceipt.Builder builderForValue)
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
    • addDuplicateTransactionReceipts

      public TransactionGetReceiptResponse.Builder addDuplicateTransactionReceipts(TransactionReceipt value)
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
    • addDuplicateTransactionReceipts

      public TransactionGetReceiptResponse.Builder addDuplicateTransactionReceipts(int index, TransactionReceipt value)
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
    • addDuplicateTransactionReceipts

      public TransactionGetReceiptResponse.Builder addDuplicateTransactionReceipts(TransactionReceipt.Builder builderForValue)
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
    • addDuplicateTransactionReceipts

      public TransactionGetReceiptResponse.Builder addDuplicateTransactionReceipts(int index, TransactionReceipt.Builder builderForValue)
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
    • addAllDuplicateTransactionReceipts

      public TransactionGetReceiptResponse.Builder addAllDuplicateTransactionReceipts(Iterable<? extends TransactionReceipt> values)
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
    • clearDuplicateTransactionReceipts

      public TransactionGetReceiptResponse.Builder clearDuplicateTransactionReceipts()
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
    • removeDuplicateTransactionReceipts

      public TransactionGetReceiptResponse.Builder removeDuplicateTransactionReceipts(int index)
       *
       A list of duplicate transaction receipts.
       <p>
       If the request set the `includeDuplicates` flat, this list SHALL
       include the receipts 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
    • getChildTransactionReceiptsList

      public List<TransactionReceipt> getChildTransactionReceiptsList()
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
      Specified by:
      getChildTransactionReceiptsList in interface TransactionGetReceiptResponseOrBuilder
    • getChildTransactionReceiptsCount

      public int getChildTransactionReceiptsCount()
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
      Specified by:
      getChildTransactionReceiptsCount in interface TransactionGetReceiptResponseOrBuilder
    • getChildTransactionReceipts

      public TransactionReceipt getChildTransactionReceipts(int index)
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
      Specified by:
      getChildTransactionReceipts in interface TransactionGetReceiptResponseOrBuilder
    • setChildTransactionReceipts

      public TransactionGetReceiptResponse.Builder setChildTransactionReceipts(int index, TransactionReceipt value)
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
    • setChildTransactionReceipts

      public TransactionGetReceiptResponse.Builder setChildTransactionReceipts(int index, TransactionReceipt.Builder builderForValue)
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
    • addChildTransactionReceipts

      public TransactionGetReceiptResponse.Builder addChildTransactionReceipts(TransactionReceipt value)
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
    • addChildTransactionReceipts

      public TransactionGetReceiptResponse.Builder addChildTransactionReceipts(int index, TransactionReceipt value)
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
    • addChildTransactionReceipts

      public TransactionGetReceiptResponse.Builder addChildTransactionReceipts(TransactionReceipt.Builder builderForValue)
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
    • addChildTransactionReceipts

      public TransactionGetReceiptResponse.Builder addChildTransactionReceipts(int index, TransactionReceipt.Builder builderForValue)
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
    • addAllChildTransactionReceipts

      public TransactionGetReceiptResponse.Builder addAllChildTransactionReceipts(Iterable<? extends TransactionReceipt> values)
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
    • clearChildTransactionReceipts

      public TransactionGetReceiptResponse.Builder clearChildTransactionReceipts()
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;
    • removeChildTransactionReceipts

      public TransactionGetReceiptResponse.Builder removeChildTransactionReceipts(int index)
       *
       A list of receipts for all child transactions spawned by the requested
       transaction.
       <p>
       If the request set the `include_child_receipts` flag, this list SHALL
       include receipts for each child transaction executed as part of the
       requested parent transaction.<br/>
       If the request did not set the `include_child_receipts` 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 `receipt` status is `UNKNOWN`, this list SHALL be empty.<br/>
       This list SHALL be in order by consensus timestamp.
       
      repeated .proto.TransactionReceipt child_transaction_receipts = 5;