Class ConsensusSubmitMessageTransactionBody.Builder

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

public static final class ConsensusSubmitMessageTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ConsensusSubmitMessageTransactionBody,ConsensusSubmitMessageTransactionBody.Builder> implements ConsensusSubmitMessageTransactionBodyOrBuilder
 *
 Submit a message for consensus.<br/>
 This transaction adds a new entry to the "end" of a topic, and provides
 the core function of the consensus service.

 Valid and authorized messages on valid topics SHALL be ordered by the
 consensus service, published in the block stream, and available to all
 subscribers on this topic via the mirror nodes.<br/>
 If this transaction succeeds the resulting `TransactionReceipt` SHALL contain
 the latest `topicSequenceNumber` and `topicRunningHash` for the topic.<br/>
 If the topic `submitKey` is set, and not an empty `KeyList`, then that key
 MUST sign this transaction.

 ### Block Stream Effects
 None
 
Protobuf type proto.ConsensusSubmitMessageTransactionBody
  • Method Details

    • hasTopicID

      public boolean hasTopicID()
       *
       Topic to submit message to.
       
      .proto.TopicID topicID = 1;
      Specified by:
      hasTopicID in interface ConsensusSubmitMessageTransactionBodyOrBuilder
      Returns:
      Whether the topicID field is set.
    • getTopicID

      public TopicID getTopicID()
       *
       Topic to submit message to.
       
      .proto.TopicID topicID = 1;
      Specified by:
      getTopicID in interface ConsensusSubmitMessageTransactionBodyOrBuilder
      Returns:
      The topicID.
    • setTopicID

       *
       Topic to submit message to.
       
      .proto.TopicID topicID = 1;
    • setTopicID

       *
       Topic to submit message to.
       
      .proto.TopicID topicID = 1;
    • mergeTopicID

       *
       Topic to submit message to.
       
      .proto.TopicID topicID = 1;
    • clearTopicID

       *
       Topic to submit message to.
       
      .proto.TopicID topicID = 1;
    • getMessage

      public com.google.protobuf.ByteString getMessage()
       *
       A message to be submitted.
       <p>
       This Transaction (including signatures) MUST be less than 6KiB.<br/>
       Messages SHOULD be less than 4KiB. A "chunked" message MAY be submitted
       if a message larger than this is required.
       
      bytes message = 2;
      Specified by:
      getMessage in interface ConsensusSubmitMessageTransactionBodyOrBuilder
      Returns:
      The message.
    • setMessage

      public ConsensusSubmitMessageTransactionBody.Builder setMessage(com.google.protobuf.ByteString value)
       *
       A message to be submitted.
       <p>
       This Transaction (including signatures) MUST be less than 6KiB.<br/>
       Messages SHOULD be less than 4KiB. A "chunked" message MAY be submitted
       if a message larger than this is required.
       
      bytes message = 2;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

       *
       A message to be submitted.
       <p>
       This Transaction (including signatures) MUST be less than 6KiB.<br/>
       Messages SHOULD be less than 4KiB. A "chunked" message MAY be submitted
       if a message larger than this is required.
       
      bytes message = 2;
      Returns:
      This builder for chaining.
    • hasChunkInfo

      public boolean hasChunkInfo()
       *
       Information for the current "chunk" in a fragmented message.
       <p>
       This value is REQUIRED if the full `message` is submitted in two or
       more fragments due to transaction size limits.<br/>
       If the message is submitted in a single transaction, then this
       field SHOULD NOT be set.
       
      .proto.ConsensusMessageChunkInfo chunkInfo = 3;
      Specified by:
      hasChunkInfo in interface ConsensusSubmitMessageTransactionBodyOrBuilder
      Returns:
      Whether the chunkInfo field is set.
    • getChunkInfo

      public ConsensusMessageChunkInfo getChunkInfo()
       *
       Information for the current "chunk" in a fragmented message.
       <p>
       This value is REQUIRED if the full `message` is submitted in two or
       more fragments due to transaction size limits.<br/>
       If the message is submitted in a single transaction, then this
       field SHOULD NOT be set.
       
      .proto.ConsensusMessageChunkInfo chunkInfo = 3;
      Specified by:
      getChunkInfo in interface ConsensusSubmitMessageTransactionBodyOrBuilder
      Returns:
      The chunkInfo.
    • setChunkInfo

       *
       Information for the current "chunk" in a fragmented message.
       <p>
       This value is REQUIRED if the full `message` is submitted in two or
       more fragments due to transaction size limits.<br/>
       If the message is submitted in a single transaction, then this
       field SHOULD NOT be set.
       
      .proto.ConsensusMessageChunkInfo chunkInfo = 3;
    • setChunkInfo

       *
       Information for the current "chunk" in a fragmented message.
       <p>
       This value is REQUIRED if the full `message` is submitted in two or
       more fragments due to transaction size limits.<br/>
       If the message is submitted in a single transaction, then this
       field SHOULD NOT be set.
       
      .proto.ConsensusMessageChunkInfo chunkInfo = 3;
    • mergeChunkInfo

       *
       Information for the current "chunk" in a fragmented message.
       <p>
       This value is REQUIRED if the full `message` is submitted in two or
       more fragments due to transaction size limits.<br/>
       If the message is submitted in a single transaction, then this
       field SHOULD NOT be set.
       
      .proto.ConsensusMessageChunkInfo chunkInfo = 3;
    • clearChunkInfo

       *
       Information for the current "chunk" in a fragmented message.
       <p>
       This value is REQUIRED if the full `message` is submitted in two or
       more fragments due to transaction size limits.<br/>
       If the message is submitted in a single transaction, then this
       field SHOULD NOT be set.
       
      .proto.ConsensusMessageChunkInfo chunkInfo = 3;