Class TransactionRecordEntry.Builder

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

public static final class TransactionRecordEntry.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TransactionRecordEntry,TransactionRecordEntry.Builder> implements TransactionRecordEntryOrBuilder
 *
 As transactions are handled and records and receipts are created, they are
 stored in state for a configured time period (for example, 3 minutes).
 During this time, any client can query the node and get the record or receipt
 for the transaction. The `TransactionRecordEntry` is the object stored in
 state with this information.
 
Protobuf type proto.TransactionRecordEntry
  • Method Details

    • getNodeId

      public long getNodeId()
       *
       A node identifier.<br/>
       This identifier is the node, as known to the address book, that
       submitted the transaction for consensus.
       <p>
       This SHALL be a whole number.
       
      int64 node_id = 1;
      Specified by:
      getNodeId in interface TransactionRecordEntryOrBuilder
      Returns:
      The nodeId.
    • setNodeId

      public TransactionRecordEntry.Builder setNodeId(long value)
       *
       A node identifier.<br/>
       This identifier is the node, as known to the address book, that
       submitted the transaction for consensus.
       <p>
       This SHALL be a whole number.
       
      int64 node_id = 1;
      Parameters:
      value - The nodeId to set.
      Returns:
      This builder for chaining.
    • clearNodeId

      public TransactionRecordEntry.Builder clearNodeId()
       *
       A node identifier.<br/>
       This identifier is the node, as known to the address book, that
       submitted the transaction for consensus.
       <p>
       This SHALL be a whole number.
       
      int64 node_id = 1;
      Returns:
      This builder for chaining.
    • hasPayerAccountId

      public boolean hasPayerAccountId()
       *
       An Account identifier for the payer for the transaction.
       <p>
       This MAY be the same as the account ID within the Transaction ID of the
       record, or it MAY be the account ID of the node that submitted the
       transaction to consensus if the account ID in the Transaction ID was
       not able to pay.
       
      .proto.AccountID payer_account_id = 2;
      Specified by:
      hasPayerAccountId in interface TransactionRecordEntryOrBuilder
      Returns:
      Whether the payerAccountId field is set.
    • getPayerAccountId

      public AccountID getPayerAccountId()
       *
       An Account identifier for the payer for the transaction.
       <p>
       This MAY be the same as the account ID within the Transaction ID of the
       record, or it MAY be the account ID of the node that submitted the
       transaction to consensus if the account ID in the Transaction ID was
       not able to pay.
       
      .proto.AccountID payer_account_id = 2;
      Specified by:
      getPayerAccountId in interface TransactionRecordEntryOrBuilder
      Returns:
      The payerAccountId.
    • setPayerAccountId

      public TransactionRecordEntry.Builder setPayerAccountId(AccountID value)
       *
       An Account identifier for the payer for the transaction.
       <p>
       This MAY be the same as the account ID within the Transaction ID of the
       record, or it MAY be the account ID of the node that submitted the
       transaction to consensus if the account ID in the Transaction ID was
       not able to pay.
       
      .proto.AccountID payer_account_id = 2;
    • setPayerAccountId

      public TransactionRecordEntry.Builder setPayerAccountId(AccountID.Builder builderForValue)
       *
       An Account identifier for the payer for the transaction.
       <p>
       This MAY be the same as the account ID within the Transaction ID of the
       record, or it MAY be the account ID of the node that submitted the
       transaction to consensus if the account ID in the Transaction ID was
       not able to pay.
       
      .proto.AccountID payer_account_id = 2;
    • mergePayerAccountId

      public TransactionRecordEntry.Builder mergePayerAccountId(AccountID value)
       *
       An Account identifier for the payer for the transaction.
       <p>
       This MAY be the same as the account ID within the Transaction ID of the
       record, or it MAY be the account ID of the node that submitted the
       transaction to consensus if the account ID in the Transaction ID was
       not able to pay.
       
      .proto.AccountID payer_account_id = 2;
    • clearPayerAccountId

      public TransactionRecordEntry.Builder clearPayerAccountId()
       *
       An Account identifier for the payer for the transaction.
       <p>
       This MAY be the same as the account ID within the Transaction ID of the
       record, or it MAY be the account ID of the node that submitted the
       transaction to consensus if the account ID in the Transaction ID was
       not able to pay.
       
      .proto.AccountID payer_account_id = 2;
    • hasTransactionRecord

      public boolean hasTransactionRecord()
       *
       A transaction record for the transaction.
       
      .proto.TransactionRecord transaction_record = 3;
      Specified by:
      hasTransactionRecord in interface TransactionRecordEntryOrBuilder
      Returns:
      Whether the transactionRecord field is set.
    • getTransactionRecord

      public TransactionRecord getTransactionRecord()
       *
       A transaction record for the transaction.
       
      .proto.TransactionRecord transaction_record = 3;
      Specified by:
      getTransactionRecord in interface TransactionRecordEntryOrBuilder
      Returns:
      The transactionRecord.
    • setTransactionRecord

      public TransactionRecordEntry.Builder setTransactionRecord(TransactionRecord value)
       *
       A transaction record for the transaction.
       
      .proto.TransactionRecord transaction_record = 3;
    • setTransactionRecord

      public TransactionRecordEntry.Builder setTransactionRecord(TransactionRecord.Builder builderForValue)
       *
       A transaction record for the transaction.
       
      .proto.TransactionRecord transaction_record = 3;
    • mergeTransactionRecord

      public TransactionRecordEntry.Builder mergeTransactionRecord(TransactionRecord value)
       *
       A transaction record for the transaction.
       
      .proto.TransactionRecord transaction_record = 3;
    • clearTransactionRecord

      public TransactionRecordEntry.Builder clearTransactionRecord()
       *
       A transaction record for the transaction.
       
      .proto.TransactionRecord transaction_record = 3;