Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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 NoneProtobuf type
proto.ConsensusSubmitMessageTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* Information for the current "chunk" in a fragmented message.* A message to be submitted.* Topic to submit message to.* Information for the current "chunk" in a fragmented message.com.google.protobuf.ByteString* A message to be submitted.* Topic to submit message to.boolean* Information for the current "chunk" in a fragmented message.boolean* Topic to submit message to.* Information for the current "chunk" in a fragmented message.mergeTopicID(TopicID value) * Topic to submit message to.* Information for the current "chunk" in a fragmented message.setChunkInfo(ConsensusMessageChunkInfo.Builder builderForValue) * Information for the current "chunk" in a fragmented message.setMessage(com.google.protobuf.ByteString value) * A message to be submitted.setTopicID(TopicID value) * Topic to submit message to.setTopicID(TopicID.Builder builderForValue) * Topic to submit message to.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
-
hasTopicID
public boolean hasTopicID()* Topic to submit message to.
.proto.TopicID topicID = 1;- Specified by:
hasTopicIDin interfaceConsensusSubmitMessageTransactionBodyOrBuilder- Returns:
- Whether the topicID field is set.
-
getTopicID
* Topic to submit message to.
.proto.TopicID topicID = 1;- Specified by:
getTopicIDin interfaceConsensusSubmitMessageTransactionBodyOrBuilder- 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:
getMessagein interfaceConsensusSubmitMessageTransactionBodyOrBuilder- 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:
hasChunkInfoin interfaceConsensusSubmitMessageTransactionBodyOrBuilder- Returns:
- Whether the chunkInfo field is set.
-
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:
getChunkInfoin interfaceConsensusSubmitMessageTransactionBodyOrBuilder- 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
public ConsensusSubmitMessageTransactionBody.Builder setChunkInfo(ConsensusMessageChunkInfo.Builder builderForValue) * 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
public ConsensusSubmitMessageTransactionBody.Builder mergeChunkInfo(ConsensusMessageChunkInfo value) * 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;
-