io.nats.streaming.protobuf.MsgProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-nats-streaming Show documentation
Show all versions of java-nats-streaming Show documentation
Client library for working with the NATS messaging system.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protocol.proto
package io.nats.streaming.protobuf;
/**
*
* Msg struct. Sequence is assigned for global ordering by
* the cluster after the publisher has been acknowledged.
*
*
* Protobuf type {@code pb.MsgProto}
*/
public final class MsgProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:pb.MsgProto)
MsgProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgProto.newBuilder() to construct.
private MsgProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgProto() {
sequence_ = 0L;
subject_ = "";
reply_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
redelivered_ = false;
cRC32_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
sequence_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
subject_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
reply_ = s;
break;
}
case 34: {
data_ = input.readBytes();
break;
}
case 40: {
timestamp_ = input.readInt64();
break;
}
case 48: {
redelivered_ = input.readBool();
break;
}
case 80: {
cRC32_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_MsgProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_MsgProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.nats.streaming.protobuf.MsgProto.class, io.nats.streaming.protobuf.MsgProto.Builder.class);
}
public static final int SEQUENCE_FIELD_NUMBER = 1;
private long sequence_;
/**
*
* globally ordered sequence number for the subject's channel
*
*
* uint64 sequence = 1;
*/
public long getSequence() {
return sequence_;
}
public static final int SUBJECT_FIELD_NUMBER = 2;
private volatile java.lang.Object subject_;
/**
*
* subject
*
*
* string subject = 2;
*/
public java.lang.String getSubject() {
java.lang.Object ref = subject_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subject_ = s;
return s;
}
}
/**
*
* subject
*
*
* string subject = 2;
*/
public com.google.protobuf.ByteString
getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subject_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REPLY_FIELD_NUMBER = 3;
private volatile java.lang.Object reply_;
/**
*
* optional reply
*
*
* string reply = 3;
*/
public java.lang.String getReply() {
java.lang.Object ref = reply_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reply_ = s;
return s;
}
}
/**
*
* optional reply
*
*
* string reply = 3;
*/
public com.google.protobuf.ByteString
getReplyBytes() {
java.lang.Object ref = reply_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reply_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString data_;
/**
*
* payload
*
*
* bytes data = 4;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 5;
private long timestamp_;
/**
*
* received timestamp
*
*
* int64 timestamp = 5;
*/
public long getTimestamp() {
return timestamp_;
}
public static final int REDELIVERED_FIELD_NUMBER = 6;
private boolean redelivered_;
/**
*
* Flag specifying if the message is being redelivered
*
*
* bool redelivered = 6;
*/
public boolean getRedelivered() {
return redelivered_;
}
public static final int CRC32_FIELD_NUMBER = 10;
private int cRC32_;
/**
*
* optional IEEE CRC32
*
*
* uint32 CRC32 = 10;
*/
public int getCRC32() {
return cRC32_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sequence_ != 0L) {
output.writeUInt64(1, sequence_);
}
if (!getSubjectBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_);
}
if (!getReplyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reply_);
}
if (!data_.isEmpty()) {
output.writeBytes(4, data_);
}
if (timestamp_ != 0L) {
output.writeInt64(5, timestamp_);
}
if (redelivered_ != false) {
output.writeBool(6, redelivered_);
}
if (cRC32_ != 0) {
output.writeUInt32(10, cRC32_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, sequence_);
}
if (!getSubjectBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_);
}
if (!getReplyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reply_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, data_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, timestamp_);
}
if (redelivered_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, redelivered_);
}
if (cRC32_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, cRC32_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.nats.streaming.protobuf.MsgProto)) {
return super.equals(obj);
}
io.nats.streaming.protobuf.MsgProto other = (io.nats.streaming.protobuf.MsgProto) obj;
boolean result = true;
result = result && (getSequence()
== other.getSequence());
result = result && getSubject()
.equals(other.getSubject());
result = result && getReply()
.equals(other.getReply());
result = result && getData()
.equals(other.getData());
result = result && (getTimestamp()
== other.getTimestamp());
result = result && (getRedelivered()
== other.getRedelivered());
result = result && (getCRC32()
== other.getCRC32());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSequence());
hash = (37 * hash) + SUBJECT_FIELD_NUMBER;
hash = (53 * hash) + getSubject().hashCode();
hash = (37 * hash) + REPLY_FIELD_NUMBER;
hash = (53 * hash) + getReply().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (37 * hash) + REDELIVERED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRedelivered());
hash = (37 * hash) + CRC32_FIELD_NUMBER;
hash = (53 * hash) + getCRC32();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.nats.streaming.protobuf.MsgProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.nats.streaming.protobuf.MsgProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.nats.streaming.protobuf.MsgProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.nats.streaming.protobuf.MsgProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Msg struct. Sequence is assigned for global ordering by
* the cluster after the publisher has been acknowledged.
*
*
* Protobuf type {@code pb.MsgProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:pb.MsgProto)
io.nats.streaming.protobuf.MsgProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_MsgProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_MsgProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.nats.streaming.protobuf.MsgProto.class, io.nats.streaming.protobuf.MsgProto.Builder.class);
}
// Construct using io.nats.streaming.protobuf.MsgProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sequence_ = 0L;
subject_ = "";
reply_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
redelivered_ = false;
cRC32_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.nats.streaming.protobuf.Protocol.internal_static_pb_MsgProto_descriptor;
}
@java.lang.Override
public io.nats.streaming.protobuf.MsgProto getDefaultInstanceForType() {
return io.nats.streaming.protobuf.MsgProto.getDefaultInstance();
}
@java.lang.Override
public io.nats.streaming.protobuf.MsgProto build() {
io.nats.streaming.protobuf.MsgProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.nats.streaming.protobuf.MsgProto buildPartial() {
io.nats.streaming.protobuf.MsgProto result = new io.nats.streaming.protobuf.MsgProto(this);
result.sequence_ = sequence_;
result.subject_ = subject_;
result.reply_ = reply_;
result.data_ = data_;
result.timestamp_ = timestamp_;
result.redelivered_ = redelivered_;
result.cRC32_ = cRC32_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.nats.streaming.protobuf.MsgProto) {
return mergeFrom((io.nats.streaming.protobuf.MsgProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.nats.streaming.protobuf.MsgProto other) {
if (other == io.nats.streaming.protobuf.MsgProto.getDefaultInstance()) return this;
if (other.getSequence() != 0L) {
setSequence(other.getSequence());
}
if (!other.getSubject().isEmpty()) {
subject_ = other.subject_;
onChanged();
}
if (!other.getReply().isEmpty()) {
reply_ = other.reply_;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.getRedelivered() != false) {
setRedelivered(other.getRedelivered());
}
if (other.getCRC32() != 0) {
setCRC32(other.getCRC32());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.nats.streaming.protobuf.MsgProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.nats.streaming.protobuf.MsgProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long sequence_ ;
/**
*
* globally ordered sequence number for the subject's channel
*
*
* uint64 sequence = 1;
*/
public long getSequence() {
return sequence_;
}
/**
*
* globally ordered sequence number for the subject's channel
*
*
* uint64 sequence = 1;
*/
public Builder setSequence(long value) {
sequence_ = value;
onChanged();
return this;
}
/**
*
* globally ordered sequence number for the subject's channel
*
*
* uint64 sequence = 1;
*/
public Builder clearSequence() {
sequence_ = 0L;
onChanged();
return this;
}
private java.lang.Object subject_ = "";
/**
*
* subject
*
*
* string subject = 2;
*/
public java.lang.String getSubject() {
java.lang.Object ref = subject_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subject_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* subject
*
*
* string subject = 2;
*/
public com.google.protobuf.ByteString
getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subject_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* subject
*
*
* string subject = 2;
*/
public Builder setSubject(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subject_ = value;
onChanged();
return this;
}
/**
*
* subject
*
*
* string subject = 2;
*/
public Builder clearSubject() {
subject_ = getDefaultInstance().getSubject();
onChanged();
return this;
}
/**
*
* subject
*
*
* string subject = 2;
*/
public Builder setSubjectBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subject_ = value;
onChanged();
return this;
}
private java.lang.Object reply_ = "";
/**
*
* optional reply
*
*
* string reply = 3;
*/
public java.lang.String getReply() {
java.lang.Object ref = reply_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reply_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* optional reply
*
*
* string reply = 3;
*/
public com.google.protobuf.ByteString
getReplyBytes() {
java.lang.Object ref = reply_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reply_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* optional reply
*
*
* string reply = 3;
*/
public Builder setReply(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
reply_ = value;
onChanged();
return this;
}
/**
*
* optional reply
*
*
* string reply = 3;
*/
public Builder clearReply() {
reply_ = getDefaultInstance().getReply();
onChanged();
return this;
}
/**
*
* optional reply
*
*
* string reply = 3;
*/
public Builder setReplyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
reply_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* payload
*
*
* bytes data = 4;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* payload
*
*
* bytes data = 4;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* payload
*
*
* bytes data = 4;
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private long timestamp_ ;
/**
*
* received timestamp
*
*
* int64 timestamp = 5;
*/
public long getTimestamp() {
return timestamp_;
}
/**
*
* received timestamp
*
*
* int64 timestamp = 5;
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
* received timestamp
*
*
* int64 timestamp = 5;
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private boolean redelivered_ ;
/**
*
* Flag specifying if the message is being redelivered
*
*
* bool redelivered = 6;
*/
public boolean getRedelivered() {
return redelivered_;
}
/**
*
* Flag specifying if the message is being redelivered
*
*
* bool redelivered = 6;
*/
public Builder setRedelivered(boolean value) {
redelivered_ = value;
onChanged();
return this;
}
/**
*
* Flag specifying if the message is being redelivered
*
*
* bool redelivered = 6;
*/
public Builder clearRedelivered() {
redelivered_ = false;
onChanged();
return this;
}
private int cRC32_ ;
/**
*
* optional IEEE CRC32
*
*
* uint32 CRC32 = 10;
*/
public int getCRC32() {
return cRC32_;
}
/**
*
* optional IEEE CRC32
*
*
* uint32 CRC32 = 10;
*/
public Builder setCRC32(int value) {
cRC32_ = value;
onChanged();
return this;
}
/**
*
* optional IEEE CRC32
*
*
* uint32 CRC32 = 10;
*/
public Builder clearCRC32() {
cRC32_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:pb.MsgProto)
}
// @@protoc_insertion_point(class_scope:pb.MsgProto)
private static final io.nats.streaming.protobuf.MsgProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.nats.streaming.protobuf.MsgProto();
}
public static io.nats.streaming.protobuf.MsgProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MsgProto(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.nats.streaming.protobuf.MsgProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy