Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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 TypeMethodDescriptionaddAllTransactions(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.ByteStringgetTransactions(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, 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
-
getTransactionsList
* A list of signed bytes that represent the batch transactions.
repeated bytes transactions = 1;- Specified by:
getTransactionsListin interfaceAtomicBatchTransactionBodyOrBuilder- 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:
getTransactionsCountin interfaceAtomicBatchTransactionBodyOrBuilder- 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:
getTransactionsin interfaceAtomicBatchTransactionBodyOrBuilder- 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
* 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
* A list of signed bytes that represent the batch transactions.
repeated bytes transactions = 1;- Returns:
- This builder for chaining.
-