Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ConsensusMessageChunkInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ConsensusMessageChunkInfo,ConsensusMessageChunkInfo.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ConsensusMessageChunkInfo,ConsensusMessageChunkInfo.Builder>
com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ConsensusMessageChunkInfoOrBuilder,Cloneable
- Enclosing class:
ConsensusMessageChunkInfo
public static final class ConsensusMessageChunkInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ConsensusMessageChunkInfo,ConsensusMessageChunkInfo.Builder>
implements ConsensusMessageChunkInfoOrBuilder
* Consensus message "chunk" detail.<br/> This message carries information describing the way in which a message submitted for consensus is broken into multiple fragments to fit within network transaction size limits. The use of multiple message fragments is RECOMMENDED for any message greater than 4KiB in total size. ### Block Stream Effects NoneProtobuf type
proto.ConsensusMessageChunkInfo-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The TransactionID of the first chunk.* The sequence number (from 1 to total) of the current chunk in the message.* The total number of chunks in the message.* The TransactionID of the first chunk.int* The sequence number (from 1 to total) of the current chunk in the message.intgetTotal()* The total number of chunks in the message.boolean* The TransactionID of the first chunk.* The TransactionID of the first chunk.* The TransactionID of the first chunk.setInitialTransactionID(TransactionID.Builder builderForValue) * The TransactionID of the first chunk.setNumber(int value) * The sequence number (from 1 to total) of the current chunk in the message.setTotal(int value) * The total number of chunks in the message.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
-
hasInitialTransactionID
public boolean hasInitialTransactionID()* The TransactionID of the first chunk. <p> This MUST be set for every chunk in a fragmented message.
.proto.TransactionID initialTransactionID = 1;- Specified by:
hasInitialTransactionIDin interfaceConsensusMessageChunkInfoOrBuilder- Returns:
- Whether the initialTransactionID field is set.
-
getInitialTransactionID
* The TransactionID of the first chunk. <p> This MUST be set for every chunk in a fragmented message.
.proto.TransactionID initialTransactionID = 1;- Specified by:
getInitialTransactionIDin interfaceConsensusMessageChunkInfoOrBuilder- Returns:
- The initialTransactionID.
-
setInitialTransactionID
* The TransactionID of the first chunk. <p> This MUST be set for every chunk in a fragmented message.
.proto.TransactionID initialTransactionID = 1; -
setInitialTransactionID
public ConsensusMessageChunkInfo.Builder setInitialTransactionID(TransactionID.Builder builderForValue) * The TransactionID of the first chunk. <p> This MUST be set for every chunk in a fragmented message.
.proto.TransactionID initialTransactionID = 1; -
mergeInitialTransactionID
* The TransactionID of the first chunk. <p> This MUST be set for every chunk in a fragmented message.
.proto.TransactionID initialTransactionID = 1; -
clearInitialTransactionID
* The TransactionID of the first chunk. <p> This MUST be set for every chunk in a fragmented message.
.proto.TransactionID initialTransactionID = 1; -
getTotal
public int getTotal()* The total number of chunks in the message.
int32 total = 2;- Specified by:
getTotalin interfaceConsensusMessageChunkInfoOrBuilder- Returns:
- The total.
-
setTotal
* The total number of chunks in the message.
int32 total = 2;- Parameters:
value- The total to set.- Returns:
- This builder for chaining.
-
clearTotal
* The total number of chunks in the message.
int32 total = 2;- Returns:
- This builder for chaining.
-
getNumber
public int getNumber()* The sequence number (from 1 to total) of the current chunk in the message.
int32 number = 3;- Specified by:
getNumberin interfaceConsensusMessageChunkInfoOrBuilder- Returns:
- The number.
-
setNumber
* The sequence number (from 1 to total) of the current chunk in the message.
int32 number = 3;- Parameters:
value- The number to set.- Returns:
- This builder for chaining.
-
clearNumber
* The sequence number (from 1 to total) of the current chunk in the message.
int32 number = 3;- Returns:
- This builder for chaining.
-