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
 None
 
Protobuf type proto.ConsensusMessageChunkInfo
  • 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:
      hasInitialTransactionID in interface ConsensusMessageChunkInfoOrBuilder
      Returns:
      Whether the initialTransactionID field is set.
    • getInitialTransactionID

      public TransactionID 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:
      getInitialTransactionID in interface ConsensusMessageChunkInfoOrBuilder
      Returns:
      The initialTransactionID.
    • setInitialTransactionID

      public ConsensusMessageChunkInfo.Builder setInitialTransactionID(TransactionID value)
       *
       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

      public ConsensusMessageChunkInfo.Builder mergeInitialTransactionID(TransactionID value)
       *
       The TransactionID of the first chunk.
       <p>
       This MUST be set for every chunk in a fragmented message.
       
      .proto.TransactionID initialTransactionID = 1;
    • clearInitialTransactionID

      public ConsensusMessageChunkInfo.Builder 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:
      getTotal in interface ConsensusMessageChunkInfoOrBuilder
      Returns:
      The total.
    • setTotal

      public ConsensusMessageChunkInfo.Builder setTotal(int value)
       *
       The total number of chunks in the message.
       
      int32 total = 2;
      Parameters:
      value - The total to set.
      Returns:
      This builder for chaining.
    • clearTotal

      public ConsensusMessageChunkInfo.Builder 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:
      getNumber in interface ConsensusMessageChunkInfoOrBuilder
      Returns:
      The number.
    • setNumber

      public ConsensusMessageChunkInfo.Builder setNumber(int value)
       *
       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

      public ConsensusMessageChunkInfo.Builder clearNumber()
       *
       The sequence number (from 1 to total) of the current chunk
       in the message.
       
      int32 number = 3;
      Returns:
      This builder for chaining.