Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ConsensusSubmitMessageTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<ConsensusSubmitMessageTransactionBody,ConsensusSubmitMessageTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<ConsensusSubmitMessageTransactionBody,ConsensusSubmitMessageTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ConsensusSubmitMessageTransactionBodyOrBuilder
@Generated
public final class ConsensusSubmitMessageTransactionBody
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* 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.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) * 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.newBuilder(ConsensusSubmitMessageTransactionBody prototype) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ConsensusSubmitMessageTransactionBody> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
TOPICID_FIELD_NUMBER
public static final int TOPICID_FIELD_NUMBER- See Also:
-
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER- See Also:
-
CHUNKINFO_FIELD_NUMBER
public static final int CHUNKINFO_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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.
-
parseFrom
public static ConsensusSubmitMessageTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusSubmitMessageTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusSubmitMessageTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusSubmitMessageTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusSubmitMessageTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusSubmitMessageTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ConsensusSubmitMessageTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ConsensusSubmitMessageTransactionBody parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ConsensusSubmitMessageTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ConsensusSubmitMessageTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ConsensusSubmitMessageTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static ConsensusSubmitMessageTransactionBody.Builder newBuilder(ConsensusSubmitMessageTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ConsensusSubmitMessageTransactionBody,ConsensusSubmitMessageTransactionBody.Builder>
-
getDefaultInstance
-
parser
-