com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: consensus_submit_message.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* UNDOCUMENTED
*
*
* Protobuf type {@code proto.ConsensusSubmitMessageTransactionBody}
*/
public final class ConsensusSubmitMessageTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
ConsensusSubmitMessageTransactionBody, ConsensusSubmitMessageTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:proto.ConsensusSubmitMessageTransactionBody)
ConsensusSubmitMessageTransactionBodyOrBuilder {
private ConsensusSubmitMessageTransactionBody() {
message_ = com.google.protobuf.ByteString.EMPTY;
}
private int bitField0_;
public static final int TOPICID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.TopicID topicID_;
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
@java.lang.Override
public boolean hasTopicID() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TopicID getTopicID() {
return topicID_ == null ? com.hedera.hashgraph.sdk.proto.TopicID.getDefaultInstance() : topicID_;
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
private void setTopicID(com.hedera.hashgraph.sdk.proto.TopicID value) {
value.getClass();
topicID_ = value;
bitField0_ |= 0x00000001;
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeTopicID(com.hedera.hashgraph.sdk.proto.TopicID value) {
value.getClass();
if (topicID_ != null &&
topicID_ != com.hedera.hashgraph.sdk.proto.TopicID.getDefaultInstance()) {
topicID_ =
com.hedera.hashgraph.sdk.proto.TopicID.newBuilder(topicID_).mergeFrom(value).buildPartial();
} else {
topicID_ = value;
}
bitField0_ |= 0x00000001;
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
private void clearTopicID() { topicID_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString message_;
/**
*
**
* Message to be submitted. Max size of the Transaction (including signatures) is 6KiB.
*
*
* bytes message = 2;
* @return The message.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMessage() {
return message_;
}
/**
*
**
* Message to be submitted. Max size of the Transaction (including signatures) is 6KiB.
*
*
* bytes message = 2;
* @param value The message to set.
*/
private void setMessage(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
message_ = value;
}
/**
*
**
* Message to be submitted. Max size of the Transaction (including signatures) is 6KiB.
*
*
* bytes message = 2;
*/
private void clearMessage() {
message_ = getDefaultInstance().getMessage();
}
public static final int CHUNKINFO_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo chunkInfo_;
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
@java.lang.Override
public boolean hasChunkInfo() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo getChunkInfo() {
return chunkInfo_ == null ? com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo.getDefaultInstance() : chunkInfo_;
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
private void setChunkInfo(com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo value) {
value.getClass();
chunkInfo_ = value;
bitField0_ |= 0x00000002;
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeChunkInfo(com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo value) {
value.getClass();
if (chunkInfo_ != null &&
chunkInfo_ != com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo.getDefaultInstance()) {
chunkInfo_ =
com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo.newBuilder(chunkInfo_).mergeFrom(value).buildPartial();
} else {
chunkInfo_ = value;
}
bitField0_ |= 0x00000002;
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
private void clearChunkInfo() { chunkInfo_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* UNDOCUMENTED
*
*
* Protobuf type {@code proto.ConsensusSubmitMessageTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.ConsensusSubmitMessageTransactionBody)
com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBodyOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
@java.lang.Override
public boolean hasTopicID() {
return instance.hasTopicID();
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TopicID getTopicID() {
return instance.getTopicID();
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
public Builder setTopicID(com.hedera.hashgraph.sdk.proto.TopicID value) {
copyOnWrite();
instance.setTopicID(value);
return this;
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
public Builder setTopicID(
com.hedera.hashgraph.sdk.proto.TopicID.Builder builderForValue) {
copyOnWrite();
instance.setTopicID(builderForValue.build());
return this;
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
public Builder mergeTopicID(com.hedera.hashgraph.sdk.proto.TopicID value) {
copyOnWrite();
instance.mergeTopicID(value);
return this;
}
/**
*
**
* Topic to submit message to.
*
*
* .proto.TopicID topicID = 1;
*/
public Builder clearTopicID() { copyOnWrite();
instance.clearTopicID();
return this;
}
/**
*
**
* Message to be submitted. Max size of the Transaction (including signatures) is 6KiB.
*
*
* bytes message = 2;
* @return The message.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMessage() {
return instance.getMessage();
}
/**
*
**
* Message to be submitted. Max size of the Transaction (including signatures) is 6KiB.
*
*
* bytes message = 2;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setMessage(value);
return this;
}
/**
*
**
* Message to be submitted. Max size of the Transaction (including signatures) is 6KiB.
*
*
* bytes message = 2;
* @return This builder for chaining.
*/
public Builder clearMessage() {
copyOnWrite();
instance.clearMessage();
return this;
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
@java.lang.Override
public boolean hasChunkInfo() {
return instance.hasChunkInfo();
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo getChunkInfo() {
return instance.getChunkInfo();
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
public Builder setChunkInfo(com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo value) {
copyOnWrite();
instance.setChunkInfo(value);
return this;
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
public Builder setChunkInfo(
com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo.Builder builderForValue) {
copyOnWrite();
instance.setChunkInfo(builderForValue.build());
return this;
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
public Builder mergeChunkInfo(com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo value) {
copyOnWrite();
instance.mergeChunkInfo(value);
return this;
}
/**
*
**
* Optional information of the current chunk in a fragmented message.
*
*
* .proto.ConsensusMessageChunkInfo chunkInfo = 3;
*/
public Builder clearChunkInfo() { copyOnWrite();
instance.clearChunkInfo();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.ConsensusSubmitMessageTransactionBody)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"topicID_",
"message_",
"chunkInfo_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
"\n\u0003\u1009\u0001";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.ConsensusSubmitMessageTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody DEFAULT_INSTANCE;
static {
ConsensusSubmitMessageTransactionBody defaultInstance = new ConsensusSubmitMessageTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ConsensusSubmitMessageTransactionBody.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}