Class AtomicBatchTransactionBody.Builder

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

public static final class AtomicBatchTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<AtomicBatchTransactionBody,AtomicBatchTransactionBody.Builder> implements AtomicBatchTransactionBodyOrBuilder
 *
 A transaction body for handling a set of transactions atomically.
 
Protobuf type proto.AtomicBatchTransactionBody
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllTransactions(Iterable<? extends com.google.protobuf.ByteString> values)
    * A list of signed bytes that represent the batch transactions.
    addTransactions(com.google.protobuf.ByteString value)
    * A list of signed bytes that represent the batch transactions.
    * A list of signed bytes that represent the batch transactions.
    com.google.protobuf.ByteString
    getTransactions(int index)
    * A list of signed bytes that represent the batch transactions.
    int
    * A list of signed bytes that represent the batch transactions.
    List<com.google.protobuf.ByteString>
    * A list of signed bytes that represent the batch transactions.
    setTransactions(int index, com.google.protobuf.ByteString value)
    * A list of signed bytes that represent the batch transactions.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getTransactionsList

      public List<com.google.protobuf.ByteString> getTransactionsList()
       *
       A list of signed bytes that represent the batch transactions.
       
      repeated bytes transactions = 1;
      Specified by:
      getTransactionsList in interface AtomicBatchTransactionBodyOrBuilder
      Returns:
      A list containing the transactions.
    • getTransactionsCount

      public int getTransactionsCount()
       *
       A list of signed bytes that represent the batch transactions.
       
      repeated bytes transactions = 1;
      Specified by:
      getTransactionsCount in interface AtomicBatchTransactionBodyOrBuilder
      Returns:
      The count of transactions.
    • getTransactions

      public com.google.protobuf.ByteString getTransactions(int index)
       *
       A list of signed bytes that represent the batch transactions.
       
      repeated bytes transactions = 1;
      Specified by:
      getTransactions in interface AtomicBatchTransactionBodyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The transactions at the given index.
    • setTransactions

      public AtomicBatchTransactionBody.Builder setTransactions(int index, com.google.protobuf.ByteString value)
       *
       A list of signed bytes that represent the batch transactions.
       
      repeated bytes transactions = 1;
      Parameters:
      value - The transactions to set.
      Returns:
      This builder for chaining.
    • addTransactions

      public AtomicBatchTransactionBody.Builder addTransactions(com.google.protobuf.ByteString value)
       *
       A list of signed bytes that represent the batch transactions.
       
      repeated bytes transactions = 1;
      Parameters:
      value - The transactions to add.
      Returns:
      This builder for chaining.
    • addAllTransactions

      public AtomicBatchTransactionBody.Builder addAllTransactions(Iterable<? extends com.google.protobuf.ByteString> values)
       *
       A list of signed bytes that represent the batch transactions.
       
      repeated bytes transactions = 1;
      Parameters:
      values - The transactions to add.
      Returns:
      This builder for chaining.
    • clearTransactions

      public AtomicBatchTransactionBody.Builder clearTransactions()
       *
       A list of signed bytes that represent the batch transactions.
       
      repeated bytes transactions = 1;
      Returns:
      This builder for chaining.