apache.rocketmq.v2.SystemProperties Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: apache/rocketmq/v2/definition.proto
package apache.rocketmq.v2;
/**
* Protobuf type {@code apache.rocketmq.v2.SystemProperties}
*/
public final class SystemProperties extends
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apache.rocketmq.v2.SystemProperties)
SystemPropertiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use SystemProperties.newBuilder() to construct.
private SystemProperties(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private SystemProperties() {
tag_ = "";
keys_ = org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList.EMPTY;
messageId_ = "";
bodyEncoding_ = 0;
messageType_ = 0;
bornHost_ = "";
storeHost_ = "";
receiptHandle_ = "";
messageGroup_ = "";
traceContext_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SystemProperties();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SystemProperties(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
tag_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
keys_ = new org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
keys_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
messageId_ = s;
break;
}
case 34: {
apache.rocketmq.v2.Digest.Builder subBuilder = null;
if (bodyDigest_ != null) {
subBuilder = bodyDigest_.toBuilder();
}
bodyDigest_ = input.readMessage(apache.rocketmq.v2.Digest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bodyDigest_);
bodyDigest_ = subBuilder.buildPartial();
}
break;
}
case 40: {
int rawValue = input.readEnum();
bodyEncoding_ = rawValue;
break;
}
case 48: {
int rawValue = input.readEnum();
messageType_ = rawValue;
break;
}
case 58: {
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder subBuilder = null;
if (bornTimestamp_ != null) {
subBuilder = bornTimestamp_.toBuilder();
}
bornTimestamp_ = input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bornTimestamp_);
bornTimestamp_ = subBuilder.buildPartial();
}
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
bornHost_ = s;
break;
}
case 74: {
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = storeTimestamp_.toBuilder();
}
storeTimestamp_ = input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(storeTimestamp_);
storeTimestamp_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
storeHost_ = s;
break;
}
case 90: {
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = deliveryTimestamp_.toBuilder();
}
deliveryTimestamp_ = input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deliveryTimestamp_);
deliveryTimestamp_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
receiptHandle_ = s;
break;
}
case 104: {
queueId_ = input.readInt32();
break;
}
case 112: {
bitField0_ |= 0x00000010;
queueOffset_ = input.readInt64();
break;
}
case 122: {
org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) != 0)) {
subBuilder = invisibleDuration_.toBuilder();
}
invisibleDuration_ = input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(invisibleDuration_);
invisibleDuration_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 128: {
bitField0_ |= 0x00000040;
deliveryAttempt_ = input.readInt32();
break;
}
case 138: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
messageGroup_ = s;
break;
}
case 146: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
traceContext_ = s;
break;
}
case 154: {
org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) != 0)) {
subBuilder = orphanedTransactionRecoveryDuration_.toBuilder();
}
orphanedTransactionRecoveryDuration_ = input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(orphanedTransactionRecoveryDuration_);
orphanedTransactionRecoveryDuration_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 162: {
apache.rocketmq.v2.DeadLetterQueue.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) != 0)) {
subBuilder = deadLetterQueue_.toBuilder();
}
deadLetterQueue_ = input.readMessage(apache.rocketmq.v2.DeadLetterQueue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deadLetterQueue_);
deadLetterQueue_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
keys_ = keys_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apache.rocketmq.v2.MQDomain.internal_static_apache_rocketmq_v2_SystemProperties_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return apache.rocketmq.v2.MQDomain.internal_static_apache_rocketmq_v2_SystemProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apache.rocketmq.v2.SystemProperties.class, apache.rocketmq.v2.SystemProperties.Builder.class);
}
private int bitField0_;
public static final int TAG_FIELD_NUMBER = 1;
private volatile java.lang.Object tag_;
/**
*
* Tag, which is optional.
*
*
* optional string tag = 1;
* @return Whether the tag field is set.
*/
@java.lang.Override
public boolean hasTag() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Tag, which is optional.
*
*
* optional string tag = 1;
* @return The tag.
*/
@java.lang.Override
public java.lang.String getTag() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tag_ = s;
return s;
}
}
/**
*
* Tag, which is optional.
*
*
* optional string tag = 1;
* @return The bytes for tag.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int KEYS_FIELD_NUMBER = 2;
private org.apache.rocketmq.shaded.com.google.protobuf.LazyStringList keys_;
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @return A list containing the keys.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ProtocolStringList
getKeysList() {
return keys_;
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @return The count of keys.
*/
public int getKeysCount() {
return keys_.size();
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
public java.lang.String getKeys(int index) {
return keys_.get(index);
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getKeysBytes(int index) {
return keys_.getByteString(index);
}
public static final int MESSAGE_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object messageId_;
/**
*
* Message identifier, client-side generated, remains unique.
* if message_id is empty, the send message request will be aborted with
* status `INVALID_ARGUMENT`
*
*
* string message_id = 3;
* @return The messageId.
*/
@java.lang.Override
public java.lang.String getMessageId() {
java.lang.Object ref = messageId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
messageId_ = s;
return s;
}
}
/**
*
* Message identifier, client-side generated, remains unique.
* if message_id is empty, the send message request will be aborted with
* status `INVALID_ARGUMENT`
*
*
* string message_id = 3;
* @return The bytes for messageId.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getMessageIdBytes() {
java.lang.Object ref = messageId_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
messageId_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int BODY_DIGEST_FIELD_NUMBER = 4;
private apache.rocketmq.v2.Digest bodyDigest_;
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
* @return Whether the bodyDigest field is set.
*/
@java.lang.Override
public boolean hasBodyDigest() {
return bodyDigest_ != null;
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
* @return The bodyDigest.
*/
@java.lang.Override
public apache.rocketmq.v2.Digest getBodyDigest() {
return bodyDigest_ == null ? apache.rocketmq.v2.Digest.getDefaultInstance() : bodyDigest_;
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
*/
@java.lang.Override
public apache.rocketmq.v2.DigestOrBuilder getBodyDigestOrBuilder() {
return getBodyDigest();
}
public static final int BODY_ENCODING_FIELD_NUMBER = 5;
private int bodyEncoding_;
/**
*
* Message body encoding. Candidate options are identity, gzip, snappy etc.
*
*
* .apache.rocketmq.v2.Encoding body_encoding = 5;
* @return The enum numeric value on the wire for bodyEncoding.
*/
@java.lang.Override public int getBodyEncodingValue() {
return bodyEncoding_;
}
/**
*
* Message body encoding. Candidate options are identity, gzip, snappy etc.
*
*
* .apache.rocketmq.v2.Encoding body_encoding = 5;
* @return The bodyEncoding.
*/
@java.lang.Override public apache.rocketmq.v2.Encoding getBodyEncoding() {
@SuppressWarnings("deprecation")
apache.rocketmq.v2.Encoding result = apache.rocketmq.v2.Encoding.valueOf(bodyEncoding_);
return result == null ? apache.rocketmq.v2.Encoding.UNRECOGNIZED : result;
}
public static final int MESSAGE_TYPE_FIELD_NUMBER = 6;
private int messageType_;
/**
*
* Message type, normal, FIFO or transactional.
*
*
* .apache.rocketmq.v2.MessageType message_type = 6;
* @return The enum numeric value on the wire for messageType.
*/
@java.lang.Override public int getMessageTypeValue() {
return messageType_;
}
/**
*
* Message type, normal, FIFO or transactional.
*
*
* .apache.rocketmq.v2.MessageType message_type = 6;
* @return The messageType.
*/
@java.lang.Override public apache.rocketmq.v2.MessageType getMessageType() {
@SuppressWarnings("deprecation")
apache.rocketmq.v2.MessageType result = apache.rocketmq.v2.MessageType.valueOf(messageType_);
return result == null ? apache.rocketmq.v2.MessageType.UNRECOGNIZED : result;
}
public static final int BORN_TIMESTAMP_FIELD_NUMBER = 7;
private org.apache.rocketmq.shaded.com.google.protobuf.Timestamp bornTimestamp_;
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
* @return Whether the bornTimestamp field is set.
*/
@java.lang.Override
public boolean hasBornTimestamp() {
return bornTimestamp_ != null;
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
* @return The bornTimestamp.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Timestamp getBornTimestamp() {
return bornTimestamp_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : bornTimestamp_;
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder getBornTimestampOrBuilder() {
return getBornTimestamp();
}
public static final int BORN_HOST_FIELD_NUMBER = 8;
private volatile java.lang.Object bornHost_;
/**
*
* Message born host. Valid options are IPv4, IPv6 or client host domain name.
*
*
* string born_host = 8;
* @return The bornHost.
*/
@java.lang.Override
public java.lang.String getBornHost() {
java.lang.Object ref = bornHost_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
bornHost_ = s;
return s;
}
}
/**
*
* Message born host. Valid options are IPv4, IPv6 or client host domain name.
*
*
* string born_host = 8;
* @return The bytes for bornHost.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getBornHostBytes() {
java.lang.Object ref = bornHost_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bornHost_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int STORE_TIMESTAMP_FIELD_NUMBER = 9;
private org.apache.rocketmq.shaded.com.google.protobuf.Timestamp storeTimestamp_;
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
* @return Whether the storeTimestamp field is set.
*/
@java.lang.Override
public boolean hasStoreTimestamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
* @return The storeTimestamp.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Timestamp getStoreTimestamp() {
return storeTimestamp_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : storeTimestamp_;
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder getStoreTimestampOrBuilder() {
return storeTimestamp_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : storeTimestamp_;
}
public static final int STORE_HOST_FIELD_NUMBER = 10;
private volatile java.lang.Object storeHost_;
/**
*
* The broker that stores this message. It may be broker name, IP or arbitrary
* identifier that uniquely identify the server.
*
*
* string store_host = 10;
* @return The storeHost.
*/
@java.lang.Override
public java.lang.String getStoreHost() {
java.lang.Object ref = storeHost_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storeHost_ = s;
return s;
}
}
/**
*
* The broker that stores this message. It may be broker name, IP or arbitrary
* identifier that uniquely identify the server.
*
*
* string store_host = 10;
* @return The bytes for storeHost.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getStoreHostBytes() {
java.lang.Object ref = storeHost_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeHost_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int DELIVERY_TIMESTAMP_FIELD_NUMBER = 11;
private org.apache.rocketmq.shaded.com.google.protobuf.Timestamp deliveryTimestamp_;
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
* @return Whether the deliveryTimestamp field is set.
*/
@java.lang.Override
public boolean hasDeliveryTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
* @return The deliveryTimestamp.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Timestamp getDeliveryTimestamp() {
return deliveryTimestamp_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : deliveryTimestamp_;
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder getDeliveryTimestampOrBuilder() {
return deliveryTimestamp_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : deliveryTimestamp_;
}
public static final int RECEIPT_HANDLE_FIELD_NUMBER = 12;
private volatile java.lang.Object receiptHandle_;
/**
*
* If a message is acquired by way of POP, this field holds the receipt,
* which is absent for message publishing.
* Clients use the receipt to acknowledge or negatively acknowledge the
* message.
*
*
* optional string receipt_handle = 12;
* @return Whether the receiptHandle field is set.
*/
@java.lang.Override
public boolean hasReceiptHandle() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* If a message is acquired by way of POP, this field holds the receipt,
* which is absent for message publishing.
* Clients use the receipt to acknowledge or negatively acknowledge the
* message.
*
*
* optional string receipt_handle = 12;
* @return The receiptHandle.
*/
@java.lang.Override
public java.lang.String getReceiptHandle() {
java.lang.Object ref = receiptHandle_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
receiptHandle_ = s;
return s;
}
}
/**
*
* If a message is acquired by way of POP, this field holds the receipt,
* which is absent for message publishing.
* Clients use the receipt to acknowledge or negatively acknowledge the
* message.
*
*
* optional string receipt_handle = 12;
* @return The bytes for receiptHandle.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getReceiptHandleBytes() {
java.lang.Object ref = receiptHandle_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
receiptHandle_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int QUEUE_ID_FIELD_NUMBER = 13;
private int queueId_;
/**
*
* Message queue identifier in which a message is physically stored.
*
*
* int32 queue_id = 13;
* @return The queueId.
*/
@java.lang.Override
public int getQueueId() {
return queueId_;
}
public static final int QUEUE_OFFSET_FIELD_NUMBER = 14;
private long queueOffset_;
/**
*
* Message-queue offset at which a message is stored, which is absent for
* message publishing.
*
*
* optional int64 queue_offset = 14;
* @return Whether the queueOffset field is set.
*/
@java.lang.Override
public boolean hasQueueOffset() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Message-queue offset at which a message is stored, which is absent for
* message publishing.
*
*
* optional int64 queue_offset = 14;
* @return The queueOffset.
*/
@java.lang.Override
public long getQueueOffset() {
return queueOffset_;
}
public static final int INVISIBLE_DURATION_FIELD_NUMBER = 15;
private org.apache.rocketmq.shaded.com.google.protobuf.Duration invisibleDuration_;
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
* @return Whether the invisibleDuration field is set.
*/
@java.lang.Override
public boolean hasInvisibleDuration() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
* @return The invisibleDuration.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Duration getInvisibleDuration() {
return invisibleDuration_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance() : invisibleDuration_;
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder getInvisibleDurationOrBuilder() {
return invisibleDuration_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance() : invisibleDuration_;
}
public static final int DELIVERY_ATTEMPT_FIELD_NUMBER = 16;
private int deliveryAttempt_;
/**
*
* Business code may failed to process messages for the moment. Hence, clients
* may request servers to deliver them again using certain back-off strategy,
* the attempt is 1 not 0 if message is delivered first time, and it is absent
* for message publishing.
*
*
* optional int32 delivery_attempt = 16;
* @return Whether the deliveryAttempt field is set.
*/
@java.lang.Override
public boolean hasDeliveryAttempt() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Business code may failed to process messages for the moment. Hence, clients
* may request servers to deliver them again using certain back-off strategy,
* the attempt is 1 not 0 if message is delivered first time, and it is absent
* for message publishing.
*
*
* optional int32 delivery_attempt = 16;
* @return The deliveryAttempt.
*/
@java.lang.Override
public int getDeliveryAttempt() {
return deliveryAttempt_;
}
public static final int MESSAGE_GROUP_FIELD_NUMBER = 17;
private volatile java.lang.Object messageGroup_;
/**
*
* Define the group name of message in the same topic, which is optional.
*
*
* optional string message_group = 17;
* @return Whether the messageGroup field is set.
*/
@java.lang.Override
public boolean hasMessageGroup() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Define the group name of message in the same topic, which is optional.
*
*
* optional string message_group = 17;
* @return The messageGroup.
*/
@java.lang.Override
public java.lang.String getMessageGroup() {
java.lang.Object ref = messageGroup_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
messageGroup_ = s;
return s;
}
}
/**
*
* Define the group name of message in the same topic, which is optional.
*
*
* optional string message_group = 17;
* @return The bytes for messageGroup.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getMessageGroupBytes() {
java.lang.Object ref = messageGroup_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
messageGroup_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int TRACE_CONTEXT_FIELD_NUMBER = 18;
private volatile java.lang.Object traceContext_;
/**
*
* Trace context for each message, which is optional.
*
*
* optional string trace_context = 18;
* @return Whether the traceContext field is set.
*/
@java.lang.Override
public boolean hasTraceContext() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Trace context for each message, which is optional.
*
*
* optional string trace_context = 18;
* @return The traceContext.
*/
@java.lang.Override
public java.lang.String getTraceContext() {
java.lang.Object ref = traceContext_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
traceContext_ = s;
return s;
}
}
/**
*
* Trace context for each message, which is optional.
*
*
* optional string trace_context = 18;
* @return The bytes for traceContext.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getTraceContextBytes() {
java.lang.Object ref = traceContext_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceContext_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int ORPHANED_TRANSACTION_RECOVERY_DURATION_FIELD_NUMBER = 19;
private org.apache.rocketmq.shaded.com.google.protobuf.Duration orphanedTransactionRecoveryDuration_;
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
* @return Whether the orphanedTransactionRecoveryDuration field is set.
*/
@java.lang.Override
public boolean hasOrphanedTransactionRecoveryDuration() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
* @return The orphanedTransactionRecoveryDuration.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Duration getOrphanedTransactionRecoveryDuration() {
return orphanedTransactionRecoveryDuration_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance() : orphanedTransactionRecoveryDuration_;
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder getOrphanedTransactionRecoveryDurationOrBuilder() {
return orphanedTransactionRecoveryDuration_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance() : orphanedTransactionRecoveryDuration_;
}
public static final int DEAD_LETTER_QUEUE_FIELD_NUMBER = 20;
private apache.rocketmq.v2.DeadLetterQueue deadLetterQueue_;
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
* @return Whether the deadLetterQueue field is set.
*/
@java.lang.Override
public boolean hasDeadLetterQueue() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
* @return The deadLetterQueue.
*/
@java.lang.Override
public apache.rocketmq.v2.DeadLetterQueue getDeadLetterQueue() {
return deadLetterQueue_ == null ? apache.rocketmq.v2.DeadLetterQueue.getDefaultInstance() : deadLetterQueue_;
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
*/
@java.lang.Override
public apache.rocketmq.v2.DeadLetterQueueOrBuilder getDeadLetterQueueOrBuilder() {
return deadLetterQueue_ == null ? apache.rocketmq.v2.DeadLetterQueue.getDefaultInstance() : deadLetterQueue_;
}
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(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_);
}
for (int i = 0; i < keys_.size(); i++) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keys_.getRaw(i));
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_);
}
if (bodyDigest_ != null) {
output.writeMessage(4, getBodyDigest());
}
if (bodyEncoding_ != apache.rocketmq.v2.Encoding.ENCODING_UNSPECIFIED.getNumber()) {
output.writeEnum(5, bodyEncoding_);
}
if (messageType_ != apache.rocketmq.v2.MessageType.MESSAGE_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(6, messageType_);
}
if (bornTimestamp_ != null) {
output.writeMessage(7, getBornTimestamp());
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(bornHost_)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 8, bornHost_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(9, getStoreTimestamp());
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(storeHost_)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 10, storeHost_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(11, getDeliveryTimestamp());
}
if (((bitField0_ & 0x00000008) != 0)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 12, receiptHandle_);
}
if (queueId_ != 0) {
output.writeInt32(13, queueId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(14, queueOffset_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(15, getInvisibleDuration());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt32(16, deliveryAttempt_);
}
if (((bitField0_ & 0x00000080) != 0)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 17, messageGroup_);
}
if (((bitField0_ & 0x00000100) != 0)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 18, traceContext_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(19, getOrphanedTransactionRecoveryDuration());
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(20, getDeadLetterQueue());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_);
}
{
int dataSize = 0;
for (int i = 0; i < keys_.size(); i++) {
dataSize += computeStringSizeNoTag(keys_.getRaw(i));
}
size += dataSize;
size += 1 * getKeysList().size();
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageId_);
}
if (bodyDigest_ != null) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getBodyDigest());
}
if (bodyEncoding_ != apache.rocketmq.v2.Encoding.ENCODING_UNSPECIFIED.getNumber()) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeEnumSize(5, bodyEncoding_);
}
if (messageType_ != apache.rocketmq.v2.MessageType.MESSAGE_TYPE_UNSPECIFIED.getNumber()) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeEnumSize(6, messageType_);
}
if (bornTimestamp_ != null) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getBornTimestamp());
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(bornHost_)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(8, bornHost_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getStoreTimestamp());
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(storeHost_)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(10, storeHost_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getDeliveryTimestamp());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(12, receiptHandle_);
}
if (queueId_ != 0) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeInt32Size(13, queueId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeInt64Size(14, queueOffset_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getInvisibleDuration());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeInt32Size(16, deliveryAttempt_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(17, messageGroup_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(18, traceContext_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getOrphanedTransactionRecoveryDuration());
}
if (((bitField0_ & 0x00000400) != 0)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getDeadLetterQueue());
}
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 apache.rocketmq.v2.SystemProperties)) {
return super.equals(obj);
}
apache.rocketmq.v2.SystemProperties other = (apache.rocketmq.v2.SystemProperties) obj;
if (hasTag() != other.hasTag()) return false;
if (hasTag()) {
if (!getTag()
.equals(other.getTag())) return false;
}
if (!getKeysList()
.equals(other.getKeysList())) return false;
if (!getMessageId()
.equals(other.getMessageId())) return false;
if (hasBodyDigest() != other.hasBodyDigest()) return false;
if (hasBodyDigest()) {
if (!getBodyDigest()
.equals(other.getBodyDigest())) return false;
}
if (bodyEncoding_ != other.bodyEncoding_) return false;
if (messageType_ != other.messageType_) return false;
if (hasBornTimestamp() != other.hasBornTimestamp()) return false;
if (hasBornTimestamp()) {
if (!getBornTimestamp()
.equals(other.getBornTimestamp())) return false;
}
if (!getBornHost()
.equals(other.getBornHost())) return false;
if (hasStoreTimestamp() != other.hasStoreTimestamp()) return false;
if (hasStoreTimestamp()) {
if (!getStoreTimestamp()
.equals(other.getStoreTimestamp())) return false;
}
if (!getStoreHost()
.equals(other.getStoreHost())) return false;
if (hasDeliveryTimestamp() != other.hasDeliveryTimestamp()) return false;
if (hasDeliveryTimestamp()) {
if (!getDeliveryTimestamp()
.equals(other.getDeliveryTimestamp())) return false;
}
if (hasReceiptHandle() != other.hasReceiptHandle()) return false;
if (hasReceiptHandle()) {
if (!getReceiptHandle()
.equals(other.getReceiptHandle())) return false;
}
if (getQueueId()
!= other.getQueueId()) return false;
if (hasQueueOffset() != other.hasQueueOffset()) return false;
if (hasQueueOffset()) {
if (getQueueOffset()
!= other.getQueueOffset()) return false;
}
if (hasInvisibleDuration() != other.hasInvisibleDuration()) return false;
if (hasInvisibleDuration()) {
if (!getInvisibleDuration()
.equals(other.getInvisibleDuration())) return false;
}
if (hasDeliveryAttempt() != other.hasDeliveryAttempt()) return false;
if (hasDeliveryAttempt()) {
if (getDeliveryAttempt()
!= other.getDeliveryAttempt()) return false;
}
if (hasMessageGroup() != other.hasMessageGroup()) return false;
if (hasMessageGroup()) {
if (!getMessageGroup()
.equals(other.getMessageGroup())) return false;
}
if (hasTraceContext() != other.hasTraceContext()) return false;
if (hasTraceContext()) {
if (!getTraceContext()
.equals(other.getTraceContext())) return false;
}
if (hasOrphanedTransactionRecoveryDuration() != other.hasOrphanedTransactionRecoveryDuration()) return false;
if (hasOrphanedTransactionRecoveryDuration()) {
if (!getOrphanedTransactionRecoveryDuration()
.equals(other.getOrphanedTransactionRecoveryDuration())) return false;
}
if (hasDeadLetterQueue() != other.hasDeadLetterQueue()) return false;
if (hasDeadLetterQueue()) {
if (!getDeadLetterQueue()
.equals(other.getDeadLetterQueue())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTag()) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
}
if (getKeysCount() > 0) {
hash = (37 * hash) + KEYS_FIELD_NUMBER;
hash = (53 * hash) + getKeysList().hashCode();
}
hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER;
hash = (53 * hash) + getMessageId().hashCode();
if (hasBodyDigest()) {
hash = (37 * hash) + BODY_DIGEST_FIELD_NUMBER;
hash = (53 * hash) + getBodyDigest().hashCode();
}
hash = (37 * hash) + BODY_ENCODING_FIELD_NUMBER;
hash = (53 * hash) + bodyEncoding_;
hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + messageType_;
if (hasBornTimestamp()) {
hash = (37 * hash) + BORN_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getBornTimestamp().hashCode();
}
hash = (37 * hash) + BORN_HOST_FIELD_NUMBER;
hash = (53 * hash) + getBornHost().hashCode();
if (hasStoreTimestamp()) {
hash = (37 * hash) + STORE_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getStoreTimestamp().hashCode();
}
hash = (37 * hash) + STORE_HOST_FIELD_NUMBER;
hash = (53 * hash) + getStoreHost().hashCode();
if (hasDeliveryTimestamp()) {
hash = (37 * hash) + DELIVERY_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getDeliveryTimestamp().hashCode();
}
if (hasReceiptHandle()) {
hash = (37 * hash) + RECEIPT_HANDLE_FIELD_NUMBER;
hash = (53 * hash) + getReceiptHandle().hashCode();
}
hash = (37 * hash) + QUEUE_ID_FIELD_NUMBER;
hash = (53 * hash) + getQueueId();
if (hasQueueOffset()) {
hash = (37 * hash) + QUEUE_OFFSET_FIELD_NUMBER;
hash = (53 * hash) + org.apache.rocketmq.shaded.com.google.protobuf.Internal.hashLong(
getQueueOffset());
}
if (hasInvisibleDuration()) {
hash = (37 * hash) + INVISIBLE_DURATION_FIELD_NUMBER;
hash = (53 * hash) + getInvisibleDuration().hashCode();
}
if (hasDeliveryAttempt()) {
hash = (37 * hash) + DELIVERY_ATTEMPT_FIELD_NUMBER;
hash = (53 * hash) + getDeliveryAttempt();
}
if (hasMessageGroup()) {
hash = (37 * hash) + MESSAGE_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getMessageGroup().hashCode();
}
if (hasTraceContext()) {
hash = (37 * hash) + TRACE_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getTraceContext().hashCode();
}
if (hasOrphanedTransactionRecoveryDuration()) {
hash = (37 * hash) + ORPHANED_TRANSACTION_RECOVERY_DURATION_FIELD_NUMBER;
hash = (53 * hash) + getOrphanedTransactionRecoveryDuration().hashCode();
}
if (hasDeadLetterQueue()) {
hash = (37 * hash) + DEAD_LETTER_QUEUE_FIELD_NUMBER;
hash = (53 * hash) + getDeadLetterQueue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static apache.rocketmq.v2.SystemProperties parseFrom(
java.nio.ByteBuffer data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apache.rocketmq.v2.SystemProperties parseFrom(
java.nio.ByteBuffer data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apache.rocketmq.v2.SystemProperties parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apache.rocketmq.v2.SystemProperties parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apache.rocketmq.v2.SystemProperties parseFrom(byte[] data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apache.rocketmq.v2.SystemProperties parseFrom(
byte[] data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apache.rocketmq.v2.SystemProperties parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static apache.rocketmq.v2.SystemProperties parseFrom(
java.io.InputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static apache.rocketmq.v2.SystemProperties parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static apache.rocketmq.v2.SystemProperties parseDelimitedFrom(
java.io.InputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static apache.rocketmq.v2.SystemProperties parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static apache.rocketmq.v2.SystemProperties parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.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(apache.rocketmq.v2.SystemProperties 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(
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code apache.rocketmq.v2.SystemProperties}
*/
public static final class Builder extends
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apache.rocketmq.v2.SystemProperties)
apache.rocketmq.v2.SystemPropertiesOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apache.rocketmq.v2.MQDomain.internal_static_apache_rocketmq_v2_SystemProperties_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return apache.rocketmq.v2.MQDomain.internal_static_apache_rocketmq_v2_SystemProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apache.rocketmq.v2.SystemProperties.class, apache.rocketmq.v2.SystemProperties.Builder.class);
}
// Construct using apache.rocketmq.v2.SystemProperties.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStoreTimestampFieldBuilder();
getDeliveryTimestampFieldBuilder();
getInvisibleDurationFieldBuilder();
getOrphanedTransactionRecoveryDurationFieldBuilder();
getDeadLetterQueueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
tag_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
keys_ = org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
messageId_ = "";
if (bodyDigestBuilder_ == null) {
bodyDigest_ = null;
} else {
bodyDigest_ = null;
bodyDigestBuilder_ = null;
}
bodyEncoding_ = 0;
messageType_ = 0;
if (bornTimestampBuilder_ == null) {
bornTimestamp_ = null;
} else {
bornTimestamp_ = null;
bornTimestampBuilder_ = null;
}
bornHost_ = "";
if (storeTimestampBuilder_ == null) {
storeTimestamp_ = null;
} else {
storeTimestampBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
storeHost_ = "";
if (deliveryTimestampBuilder_ == null) {
deliveryTimestamp_ = null;
} else {
deliveryTimestampBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
receiptHandle_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
queueId_ = 0;
queueOffset_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
if (invisibleDurationBuilder_ == null) {
invisibleDuration_ = null;
} else {
invisibleDurationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
deliveryAttempt_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
messageGroup_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
traceContext_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
if (orphanedTransactionRecoveryDurationBuilder_ == null) {
orphanedTransactionRecoveryDuration_ = null;
} else {
orphanedTransactionRecoveryDurationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
if (deadLetterQueueBuilder_ == null) {
deadLetterQueue_ = null;
} else {
deadLetterQueueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return apache.rocketmq.v2.MQDomain.internal_static_apache_rocketmq_v2_SystemProperties_descriptor;
}
@java.lang.Override
public apache.rocketmq.v2.SystemProperties getDefaultInstanceForType() {
return apache.rocketmq.v2.SystemProperties.getDefaultInstance();
}
@java.lang.Override
public apache.rocketmq.v2.SystemProperties build() {
apache.rocketmq.v2.SystemProperties result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public apache.rocketmq.v2.SystemProperties buildPartial() {
apache.rocketmq.v2.SystemProperties result = new apache.rocketmq.v2.SystemProperties(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.tag_ = tag_;
if (((bitField0_ & 0x00000002) != 0)) {
keys_ = keys_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.keys_ = keys_;
result.messageId_ = messageId_;
if (bodyDigestBuilder_ == null) {
result.bodyDigest_ = bodyDigest_;
} else {
result.bodyDigest_ = bodyDigestBuilder_.build();
}
result.bodyEncoding_ = bodyEncoding_;
result.messageType_ = messageType_;
if (bornTimestampBuilder_ == null) {
result.bornTimestamp_ = bornTimestamp_;
} else {
result.bornTimestamp_ = bornTimestampBuilder_.build();
}
result.bornHost_ = bornHost_;
if (((from_bitField0_ & 0x00000004) != 0)) {
if (storeTimestampBuilder_ == null) {
result.storeTimestamp_ = storeTimestamp_;
} else {
result.storeTimestamp_ = storeTimestampBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
result.storeHost_ = storeHost_;
if (((from_bitField0_ & 0x00000008) != 0)) {
if (deliveryTimestampBuilder_ == null) {
result.deliveryTimestamp_ = deliveryTimestamp_;
} else {
result.deliveryTimestamp_ = deliveryTimestampBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.receiptHandle_ = receiptHandle_;
result.queueId_ = queueId_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.queueOffset_ = queueOffset_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
if (invisibleDurationBuilder_ == null) {
result.invisibleDuration_ = invisibleDuration_;
} else {
result.invisibleDuration_ = invisibleDurationBuilder_.build();
}
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.deliveryAttempt_ = deliveryAttempt_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.messageGroup_ = messageGroup_;
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.traceContext_ = traceContext_;
if (((from_bitField0_ & 0x00000400) != 0)) {
if (orphanedTransactionRecoveryDurationBuilder_ == null) {
result.orphanedTransactionRecoveryDuration_ = orphanedTransactionRecoveryDuration_;
} else {
result.orphanedTransactionRecoveryDuration_ = orphanedTransactionRecoveryDurationBuilder_.build();
}
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
if (deadLetterQueueBuilder_ == null) {
result.deadLetterQueue_ = deadLetterQueue_;
} else {
result.deadLetterQueue_ = deadLetterQueueBuilder_.build();
}
to_bitField0_ |= 0x00000400;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof apache.rocketmq.v2.SystemProperties) {
return mergeFrom((apache.rocketmq.v2.SystemProperties)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(apache.rocketmq.v2.SystemProperties other) {
if (other == apache.rocketmq.v2.SystemProperties.getDefaultInstance()) return this;
if (other.hasTag()) {
bitField0_ |= 0x00000001;
tag_ = other.tag_;
onChanged();
}
if (!other.keys_.isEmpty()) {
if (keys_.isEmpty()) {
keys_ = other.keys_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureKeysIsMutable();
keys_.addAll(other.keys_);
}
onChanged();
}
if (!other.getMessageId().isEmpty()) {
messageId_ = other.messageId_;
onChanged();
}
if (other.hasBodyDigest()) {
mergeBodyDigest(other.getBodyDigest());
}
if (other.bodyEncoding_ != 0) {
setBodyEncodingValue(other.getBodyEncodingValue());
}
if (other.messageType_ != 0) {
setMessageTypeValue(other.getMessageTypeValue());
}
if (other.hasBornTimestamp()) {
mergeBornTimestamp(other.getBornTimestamp());
}
if (!other.getBornHost().isEmpty()) {
bornHost_ = other.bornHost_;
onChanged();
}
if (other.hasStoreTimestamp()) {
mergeStoreTimestamp(other.getStoreTimestamp());
}
if (!other.getStoreHost().isEmpty()) {
storeHost_ = other.storeHost_;
onChanged();
}
if (other.hasDeliveryTimestamp()) {
mergeDeliveryTimestamp(other.getDeliveryTimestamp());
}
if (other.hasReceiptHandle()) {
bitField0_ |= 0x00000010;
receiptHandle_ = other.receiptHandle_;
onChanged();
}
if (other.getQueueId() != 0) {
setQueueId(other.getQueueId());
}
if (other.hasQueueOffset()) {
setQueueOffset(other.getQueueOffset());
}
if (other.hasInvisibleDuration()) {
mergeInvisibleDuration(other.getInvisibleDuration());
}
if (other.hasDeliveryAttempt()) {
setDeliveryAttempt(other.getDeliveryAttempt());
}
if (other.hasMessageGroup()) {
bitField0_ |= 0x00000100;
messageGroup_ = other.messageGroup_;
onChanged();
}
if (other.hasTraceContext()) {
bitField0_ |= 0x00000200;
traceContext_ = other.traceContext_;
onChanged();
}
if (other.hasOrphanedTransactionRecoveryDuration()) {
mergeOrphanedTransactionRecoveryDuration(other.getOrphanedTransactionRecoveryDuration());
}
if (other.hasDeadLetterQueue()) {
mergeDeadLetterQueue(other.getDeadLetterQueue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
apache.rocketmq.v2.SystemProperties parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (apache.rocketmq.v2.SystemProperties) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object tag_ = "";
/**
*
* Tag, which is optional.
*
*
* optional string tag = 1;
* @return Whether the tag field is set.
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Tag, which is optional.
*
*
* optional string tag = 1;
* @return The tag.
*/
public java.lang.String getTag() {
java.lang.Object ref = tag_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tag_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Tag, which is optional.
*
*
* optional string tag = 1;
* @return The bytes for tag.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* Tag, which is optional.
*
*
* optional string tag = 1;
* @param value The tag to set.
* @return This builder for chaining.
*/
public Builder setTag(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tag_ = value;
onChanged();
return this;
}
/**
*
* Tag, which is optional.
*
*
* optional string tag = 1;
* @return This builder for chaining.
*/
public Builder clearTag() {
bitField0_ = (bitField0_ & ~0x00000001);
tag_ = getDefaultInstance().getTag();
onChanged();
return this;
}
/**
*
* Tag, which is optional.
*
*
* optional string tag = 1;
* @param value The bytes for tag to set.
* @return This builder for chaining.
*/
public Builder setTagBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
tag_ = value;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.protobuf.LazyStringList keys_ = org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKeysIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
keys_ = new org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList(keys_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @return A list containing the keys.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ProtocolStringList
getKeysList() {
return keys_.getUnmodifiableView();
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @return The count of keys.
*/
public int getKeysCount() {
return keys_.size();
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
public java.lang.String getKeys(int index) {
return keys_.get(index);
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getKeysBytes(int index) {
return keys_.getByteString(index);
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @param index The index to set the value at.
* @param value The keys to set.
* @return This builder for chaining.
*/
public Builder setKeys(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.set(index, value);
onChanged();
return this;
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @param value The keys to add.
* @return This builder for chaining.
*/
public Builder addKeys(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.add(value);
onChanged();
return this;
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @param values The keys to add.
* @return This builder for chaining.
*/
public Builder addAllKeys(
java.lang.Iterable values) {
ensureKeysIsMutable();
org.apache.rocketmq.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keys_);
onChanged();
return this;
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @return This builder for chaining.
*/
public Builder clearKeys() {
keys_ = org.apache.rocketmq.shaded.com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Message keys
*
*
* repeated string keys = 2;
* @param value The bytes of the keys to add.
* @return This builder for chaining.
*/
public Builder addKeysBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureKeysIsMutable();
keys_.add(value);
onChanged();
return this;
}
private java.lang.Object messageId_ = "";
/**
*
* Message identifier, client-side generated, remains unique.
* if message_id is empty, the send message request will be aborted with
* status `INVALID_ARGUMENT`
*
*
* string message_id = 3;
* @return The messageId.
*/
public java.lang.String getMessageId() {
java.lang.Object ref = messageId_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
messageId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Message identifier, client-side generated, remains unique.
* if message_id is empty, the send message request will be aborted with
* status `INVALID_ARGUMENT`
*
*
* string message_id = 3;
* @return The bytes for messageId.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getMessageIdBytes() {
java.lang.Object ref = messageId_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
messageId_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* Message identifier, client-side generated, remains unique.
* if message_id is empty, the send message request will be aborted with
* status `INVALID_ARGUMENT`
*
*
* string message_id = 3;
* @param value The messageId to set.
* @return This builder for chaining.
*/
public Builder setMessageId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
messageId_ = value;
onChanged();
return this;
}
/**
*
* Message identifier, client-side generated, remains unique.
* if message_id is empty, the send message request will be aborted with
* status `INVALID_ARGUMENT`
*
*
* string message_id = 3;
* @return This builder for chaining.
*/
public Builder clearMessageId() {
messageId_ = getDefaultInstance().getMessageId();
onChanged();
return this;
}
/**
*
* Message identifier, client-side generated, remains unique.
* if message_id is empty, the send message request will be aborted with
* status `INVALID_ARGUMENT`
*
*
* string message_id = 3;
* @param value The bytes for messageId to set.
* @return This builder for chaining.
*/
public Builder setMessageIdBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
messageId_ = value;
onChanged();
return this;
}
private apache.rocketmq.v2.Digest bodyDigest_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v2.Digest, apache.rocketmq.v2.Digest.Builder, apache.rocketmq.v2.DigestOrBuilder> bodyDigestBuilder_;
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
* @return Whether the bodyDigest field is set.
*/
public boolean hasBodyDigest() {
return bodyDigestBuilder_ != null || bodyDigest_ != null;
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
* @return The bodyDigest.
*/
public apache.rocketmq.v2.Digest getBodyDigest() {
if (bodyDigestBuilder_ == null) {
return bodyDigest_ == null ? apache.rocketmq.v2.Digest.getDefaultInstance() : bodyDigest_;
} else {
return bodyDigestBuilder_.getMessage();
}
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
*/
public Builder setBodyDigest(apache.rocketmq.v2.Digest value) {
if (bodyDigestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bodyDigest_ = value;
onChanged();
} else {
bodyDigestBuilder_.setMessage(value);
}
return this;
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
*/
public Builder setBodyDigest(
apache.rocketmq.v2.Digest.Builder builderForValue) {
if (bodyDigestBuilder_ == null) {
bodyDigest_ = builderForValue.build();
onChanged();
} else {
bodyDigestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
*/
public Builder mergeBodyDigest(apache.rocketmq.v2.Digest value) {
if (bodyDigestBuilder_ == null) {
if (bodyDigest_ != null) {
bodyDigest_ =
apache.rocketmq.v2.Digest.newBuilder(bodyDigest_).mergeFrom(value).buildPartial();
} else {
bodyDigest_ = value;
}
onChanged();
} else {
bodyDigestBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
*/
public Builder clearBodyDigest() {
if (bodyDigestBuilder_ == null) {
bodyDigest_ = null;
onChanged();
} else {
bodyDigest_ = null;
bodyDigestBuilder_ = null;
}
return this;
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
*/
public apache.rocketmq.v2.Digest.Builder getBodyDigestBuilder() {
onChanged();
return getBodyDigestFieldBuilder().getBuilder();
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
*/
public apache.rocketmq.v2.DigestOrBuilder getBodyDigestOrBuilder() {
if (bodyDigestBuilder_ != null) {
return bodyDigestBuilder_.getMessageOrBuilder();
} else {
return bodyDigest_ == null ?
apache.rocketmq.v2.Digest.getDefaultInstance() : bodyDigest_;
}
}
/**
*
* Message body digest
*
*
* .apache.rocketmq.v2.Digest body_digest = 4;
*/
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v2.Digest, apache.rocketmq.v2.Digest.Builder, apache.rocketmq.v2.DigestOrBuilder>
getBodyDigestFieldBuilder() {
if (bodyDigestBuilder_ == null) {
bodyDigestBuilder_ = new org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v2.Digest, apache.rocketmq.v2.Digest.Builder, apache.rocketmq.v2.DigestOrBuilder>(
getBodyDigest(),
getParentForChildren(),
isClean());
bodyDigest_ = null;
}
return bodyDigestBuilder_;
}
private int bodyEncoding_ = 0;
/**
*
* Message body encoding. Candidate options are identity, gzip, snappy etc.
*
*
* .apache.rocketmq.v2.Encoding body_encoding = 5;
* @return The enum numeric value on the wire for bodyEncoding.
*/
@java.lang.Override public int getBodyEncodingValue() {
return bodyEncoding_;
}
/**
*
* Message body encoding. Candidate options are identity, gzip, snappy etc.
*
*
* .apache.rocketmq.v2.Encoding body_encoding = 5;
* @param value The enum numeric value on the wire for bodyEncoding to set.
* @return This builder for chaining.
*/
public Builder setBodyEncodingValue(int value) {
bodyEncoding_ = value;
onChanged();
return this;
}
/**
*
* Message body encoding. Candidate options are identity, gzip, snappy etc.
*
*
* .apache.rocketmq.v2.Encoding body_encoding = 5;
* @return The bodyEncoding.
*/
@java.lang.Override
public apache.rocketmq.v2.Encoding getBodyEncoding() {
@SuppressWarnings("deprecation")
apache.rocketmq.v2.Encoding result = apache.rocketmq.v2.Encoding.valueOf(bodyEncoding_);
return result == null ? apache.rocketmq.v2.Encoding.UNRECOGNIZED : result;
}
/**
*
* Message body encoding. Candidate options are identity, gzip, snappy etc.
*
*
* .apache.rocketmq.v2.Encoding body_encoding = 5;
* @param value The bodyEncoding to set.
* @return This builder for chaining.
*/
public Builder setBodyEncoding(apache.rocketmq.v2.Encoding value) {
if (value == null) {
throw new NullPointerException();
}
bodyEncoding_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Message body encoding. Candidate options are identity, gzip, snappy etc.
*
*
* .apache.rocketmq.v2.Encoding body_encoding = 5;
* @return This builder for chaining.
*/
public Builder clearBodyEncoding() {
bodyEncoding_ = 0;
onChanged();
return this;
}
private int messageType_ = 0;
/**
*
* Message type, normal, FIFO or transactional.
*
*
* .apache.rocketmq.v2.MessageType message_type = 6;
* @return The enum numeric value on the wire for messageType.
*/
@java.lang.Override public int getMessageTypeValue() {
return messageType_;
}
/**
*
* Message type, normal, FIFO or transactional.
*
*
* .apache.rocketmq.v2.MessageType message_type = 6;
* @param value The enum numeric value on the wire for messageType to set.
* @return This builder for chaining.
*/
public Builder setMessageTypeValue(int value) {
messageType_ = value;
onChanged();
return this;
}
/**
*
* Message type, normal, FIFO or transactional.
*
*
* .apache.rocketmq.v2.MessageType message_type = 6;
* @return The messageType.
*/
@java.lang.Override
public apache.rocketmq.v2.MessageType getMessageType() {
@SuppressWarnings("deprecation")
apache.rocketmq.v2.MessageType result = apache.rocketmq.v2.MessageType.valueOf(messageType_);
return result == null ? apache.rocketmq.v2.MessageType.UNRECOGNIZED : result;
}
/**
*
* Message type, normal, FIFO or transactional.
*
*
* .apache.rocketmq.v2.MessageType message_type = 6;
* @param value The messageType to set.
* @return This builder for chaining.
*/
public Builder setMessageType(apache.rocketmq.v2.MessageType value) {
if (value == null) {
throw new NullPointerException();
}
messageType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Message type, normal, FIFO or transactional.
*
*
* .apache.rocketmq.v2.MessageType message_type = 6;
* @return This builder for chaining.
*/
public Builder clearMessageType() {
messageType_ = 0;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.protobuf.Timestamp bornTimestamp_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp, org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder, org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder> bornTimestampBuilder_;
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
* @return Whether the bornTimestamp field is set.
*/
public boolean hasBornTimestamp() {
return bornTimestampBuilder_ != null || bornTimestamp_ != null;
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
* @return The bornTimestamp.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Timestamp getBornTimestamp() {
if (bornTimestampBuilder_ == null) {
return bornTimestamp_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : bornTimestamp_;
} else {
return bornTimestampBuilder_.getMessage();
}
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
*/
public Builder setBornTimestamp(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp value) {
if (bornTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bornTimestamp_ = value;
onChanged();
} else {
bornTimestampBuilder_.setMessage(value);
}
return this;
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
*/
public Builder setBornTimestamp(
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder builderForValue) {
if (bornTimestampBuilder_ == null) {
bornTimestamp_ = builderForValue.build();
onChanged();
} else {
bornTimestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
*/
public Builder mergeBornTimestamp(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp value) {
if (bornTimestampBuilder_ == null) {
if (bornTimestamp_ != null) {
bornTimestamp_ =
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.newBuilder(bornTimestamp_).mergeFrom(value).buildPartial();
} else {
bornTimestamp_ = value;
}
onChanged();
} else {
bornTimestampBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
*/
public Builder clearBornTimestamp() {
if (bornTimestampBuilder_ == null) {
bornTimestamp_ = null;
onChanged();
} else {
bornTimestamp_ = null;
bornTimestampBuilder_ = null;
}
return this;
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder getBornTimestampBuilder() {
onChanged();
return getBornTimestampFieldBuilder().getBuilder();
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder getBornTimestampOrBuilder() {
if (bornTimestampBuilder_ != null) {
return bornTimestampBuilder_.getMessageOrBuilder();
} else {
return bornTimestamp_ == null ?
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : bornTimestamp_;
}
}
/**
*
* Message born time-point.
*
*
* .google.protobuf.Timestamp born_timestamp = 7;
*/
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp, org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder, org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder>
getBornTimestampFieldBuilder() {
if (bornTimestampBuilder_ == null) {
bornTimestampBuilder_ = new org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp, org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder, org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder>(
getBornTimestamp(),
getParentForChildren(),
isClean());
bornTimestamp_ = null;
}
return bornTimestampBuilder_;
}
private java.lang.Object bornHost_ = "";
/**
*
* Message born host. Valid options are IPv4, IPv6 or client host domain name.
*
*
* string born_host = 8;
* @return The bornHost.
*/
public java.lang.String getBornHost() {
java.lang.Object ref = bornHost_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
bornHost_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Message born host. Valid options are IPv4, IPv6 or client host domain name.
*
*
* string born_host = 8;
* @return The bytes for bornHost.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getBornHostBytes() {
java.lang.Object ref = bornHost_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bornHost_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* Message born host. Valid options are IPv4, IPv6 or client host domain name.
*
*
* string born_host = 8;
* @param value The bornHost to set.
* @return This builder for chaining.
*/
public Builder setBornHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bornHost_ = value;
onChanged();
return this;
}
/**
*
* Message born host. Valid options are IPv4, IPv6 or client host domain name.
*
*
* string born_host = 8;
* @return This builder for chaining.
*/
public Builder clearBornHost() {
bornHost_ = getDefaultInstance().getBornHost();
onChanged();
return this;
}
/**
*
* Message born host. Valid options are IPv4, IPv6 or client host domain name.
*
*
* string born_host = 8;
* @param value The bytes for bornHost to set.
* @return This builder for chaining.
*/
public Builder setBornHostBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bornHost_ = value;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.protobuf.Timestamp storeTimestamp_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp, org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder, org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder> storeTimestampBuilder_;
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
* @return Whether the storeTimestamp field is set.
*/
public boolean hasStoreTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
* @return The storeTimestamp.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Timestamp getStoreTimestamp() {
if (storeTimestampBuilder_ == null) {
return storeTimestamp_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : storeTimestamp_;
} else {
return storeTimestampBuilder_.getMessage();
}
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
*/
public Builder setStoreTimestamp(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp value) {
if (storeTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storeTimestamp_ = value;
onChanged();
} else {
storeTimestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
*/
public Builder setStoreTimestamp(
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder builderForValue) {
if (storeTimestampBuilder_ == null) {
storeTimestamp_ = builderForValue.build();
onChanged();
} else {
storeTimestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
*/
public Builder mergeStoreTimestamp(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp value) {
if (storeTimestampBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
storeTimestamp_ != null &&
storeTimestamp_ != org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance()) {
storeTimestamp_ =
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.newBuilder(storeTimestamp_).mergeFrom(value).buildPartial();
} else {
storeTimestamp_ = value;
}
onChanged();
} else {
storeTimestampBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
*/
public Builder clearStoreTimestamp() {
if (storeTimestampBuilder_ == null) {
storeTimestamp_ = null;
onChanged();
} else {
storeTimestampBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder getStoreTimestampBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getStoreTimestampFieldBuilder().getBuilder();
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder getStoreTimestampOrBuilder() {
if (storeTimestampBuilder_ != null) {
return storeTimestampBuilder_.getMessageOrBuilder();
} else {
return storeTimestamp_ == null ?
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : storeTimestamp_;
}
}
/**
*
* Time-point at which the message is stored in the broker, which is absent
* for message publishing.
*
*
* optional .google.protobuf.Timestamp store_timestamp = 9;
*/
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp, org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder, org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder>
getStoreTimestampFieldBuilder() {
if (storeTimestampBuilder_ == null) {
storeTimestampBuilder_ = new org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp, org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder, org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder>(
getStoreTimestamp(),
getParentForChildren(),
isClean());
storeTimestamp_ = null;
}
return storeTimestampBuilder_;
}
private java.lang.Object storeHost_ = "";
/**
*
* The broker that stores this message. It may be broker name, IP or arbitrary
* identifier that uniquely identify the server.
*
*
* string store_host = 10;
* @return The storeHost.
*/
public java.lang.String getStoreHost() {
java.lang.Object ref = storeHost_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storeHost_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The broker that stores this message. It may be broker name, IP or arbitrary
* identifier that uniquely identify the server.
*
*
* string store_host = 10;
* @return The bytes for storeHost.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getStoreHostBytes() {
java.lang.Object ref = storeHost_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeHost_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* The broker that stores this message. It may be broker name, IP or arbitrary
* identifier that uniquely identify the server.
*
*
* string store_host = 10;
* @param value The storeHost to set.
* @return This builder for chaining.
*/
public Builder setStoreHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storeHost_ = value;
onChanged();
return this;
}
/**
*
* The broker that stores this message. It may be broker name, IP or arbitrary
* identifier that uniquely identify the server.
*
*
* string store_host = 10;
* @return This builder for chaining.
*/
public Builder clearStoreHost() {
storeHost_ = getDefaultInstance().getStoreHost();
onChanged();
return this;
}
/**
*
* The broker that stores this message. It may be broker name, IP or arbitrary
* identifier that uniquely identify the server.
*
*
* string store_host = 10;
* @param value The bytes for storeHost to set.
* @return This builder for chaining.
*/
public Builder setStoreHostBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storeHost_ = value;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.protobuf.Timestamp deliveryTimestamp_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp, org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder, org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder> deliveryTimestampBuilder_;
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
* @return Whether the deliveryTimestamp field is set.
*/
public boolean hasDeliveryTimestamp() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
* @return The deliveryTimestamp.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Timestamp getDeliveryTimestamp() {
if (deliveryTimestampBuilder_ == null) {
return deliveryTimestamp_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : deliveryTimestamp_;
} else {
return deliveryTimestampBuilder_.getMessage();
}
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
*/
public Builder setDeliveryTimestamp(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp value) {
if (deliveryTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deliveryTimestamp_ = value;
onChanged();
} else {
deliveryTimestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
*/
public Builder setDeliveryTimestamp(
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder builderForValue) {
if (deliveryTimestampBuilder_ == null) {
deliveryTimestamp_ = builderForValue.build();
onChanged();
} else {
deliveryTimestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
*/
public Builder mergeDeliveryTimestamp(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp value) {
if (deliveryTimestampBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
deliveryTimestamp_ != null &&
deliveryTimestamp_ != org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance()) {
deliveryTimestamp_ =
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.newBuilder(deliveryTimestamp_).mergeFrom(value).buildPartial();
} else {
deliveryTimestamp_ = value;
}
onChanged();
} else {
deliveryTimestampBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
*/
public Builder clearDeliveryTimestamp() {
if (deliveryTimestampBuilder_ == null) {
deliveryTimestamp_ = null;
onChanged();
} else {
deliveryTimestampBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder getDeliveryTimestampBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getDeliveryTimestampFieldBuilder().getBuilder();
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder getDeliveryTimestampOrBuilder() {
if (deliveryTimestampBuilder_ != null) {
return deliveryTimestampBuilder_.getMessageOrBuilder();
} else {
return deliveryTimestamp_ == null ?
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : deliveryTimestamp_;
}
}
/**
*
* Time-point at which broker delivers to clients, which is optional.
*
*
* optional .google.protobuf.Timestamp delivery_timestamp = 11;
*/
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp, org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder, org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder>
getDeliveryTimestampFieldBuilder() {
if (deliveryTimestampBuilder_ == null) {
deliveryTimestampBuilder_ = new org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp, org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder, org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder>(
getDeliveryTimestamp(),
getParentForChildren(),
isClean());
deliveryTimestamp_ = null;
}
return deliveryTimestampBuilder_;
}
private java.lang.Object receiptHandle_ = "";
/**
*
* If a message is acquired by way of POP, this field holds the receipt,
* which is absent for message publishing.
* Clients use the receipt to acknowledge or negatively acknowledge the
* message.
*
*
* optional string receipt_handle = 12;
* @return Whether the receiptHandle field is set.
*/
public boolean hasReceiptHandle() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* If a message is acquired by way of POP, this field holds the receipt,
* which is absent for message publishing.
* Clients use the receipt to acknowledge or negatively acknowledge the
* message.
*
*
* optional string receipt_handle = 12;
* @return The receiptHandle.
*/
public java.lang.String getReceiptHandle() {
java.lang.Object ref = receiptHandle_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
receiptHandle_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If a message is acquired by way of POP, this field holds the receipt,
* which is absent for message publishing.
* Clients use the receipt to acknowledge or negatively acknowledge the
* message.
*
*
* optional string receipt_handle = 12;
* @return The bytes for receiptHandle.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getReceiptHandleBytes() {
java.lang.Object ref = receiptHandle_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
receiptHandle_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* If a message is acquired by way of POP, this field holds the receipt,
* which is absent for message publishing.
* Clients use the receipt to acknowledge or negatively acknowledge the
* message.
*
*
* optional string receipt_handle = 12;
* @param value The receiptHandle to set.
* @return This builder for chaining.
*/
public Builder setReceiptHandle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
receiptHandle_ = value;
onChanged();
return this;
}
/**
*
* If a message is acquired by way of POP, this field holds the receipt,
* which is absent for message publishing.
* Clients use the receipt to acknowledge or negatively acknowledge the
* message.
*
*
* optional string receipt_handle = 12;
* @return This builder for chaining.
*/
public Builder clearReceiptHandle() {
bitField0_ = (bitField0_ & ~0x00000010);
receiptHandle_ = getDefaultInstance().getReceiptHandle();
onChanged();
return this;
}
/**
*
* If a message is acquired by way of POP, this field holds the receipt,
* which is absent for message publishing.
* Clients use the receipt to acknowledge or negatively acknowledge the
* message.
*
*
* optional string receipt_handle = 12;
* @param value The bytes for receiptHandle to set.
* @return This builder for chaining.
*/
public Builder setReceiptHandleBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000010;
receiptHandle_ = value;
onChanged();
return this;
}
private int queueId_ ;
/**
*
* Message queue identifier in which a message is physically stored.
*
*
* int32 queue_id = 13;
* @return The queueId.
*/
@java.lang.Override
public int getQueueId() {
return queueId_;
}
/**
*
* Message queue identifier in which a message is physically stored.
*
*
* int32 queue_id = 13;
* @param value The queueId to set.
* @return This builder for chaining.
*/
public Builder setQueueId(int value) {
queueId_ = value;
onChanged();
return this;
}
/**
*
* Message queue identifier in which a message is physically stored.
*
*
* int32 queue_id = 13;
* @return This builder for chaining.
*/
public Builder clearQueueId() {
queueId_ = 0;
onChanged();
return this;
}
private long queueOffset_ ;
/**
*
* Message-queue offset at which a message is stored, which is absent for
* message publishing.
*
*
* optional int64 queue_offset = 14;
* @return Whether the queueOffset field is set.
*/
@java.lang.Override
public boolean hasQueueOffset() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Message-queue offset at which a message is stored, which is absent for
* message publishing.
*
*
* optional int64 queue_offset = 14;
* @return The queueOffset.
*/
@java.lang.Override
public long getQueueOffset() {
return queueOffset_;
}
/**
*
* Message-queue offset at which a message is stored, which is absent for
* message publishing.
*
*
* optional int64 queue_offset = 14;
* @param value The queueOffset to set.
* @return This builder for chaining.
*/
public Builder setQueueOffset(long value) {
bitField0_ |= 0x00000020;
queueOffset_ = value;
onChanged();
return this;
}
/**
*
* Message-queue offset at which a message is stored, which is absent for
* message publishing.
*
*
* optional int64 queue_offset = 14;
* @return This builder for chaining.
*/
public Builder clearQueueOffset() {
bitField0_ = (bitField0_ & ~0x00000020);
queueOffset_ = 0L;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.protobuf.Duration invisibleDuration_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Duration, org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder, org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder> invisibleDurationBuilder_;
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
* @return Whether the invisibleDuration field is set.
*/
public boolean hasInvisibleDuration() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
* @return The invisibleDuration.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Duration getInvisibleDuration() {
if (invisibleDurationBuilder_ == null) {
return invisibleDuration_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance() : invisibleDuration_;
} else {
return invisibleDurationBuilder_.getMessage();
}
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
*/
public Builder setInvisibleDuration(org.apache.rocketmq.shaded.com.google.protobuf.Duration value) {
if (invisibleDurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
invisibleDuration_ = value;
onChanged();
} else {
invisibleDurationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
*/
public Builder setInvisibleDuration(
org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder builderForValue) {
if (invisibleDurationBuilder_ == null) {
invisibleDuration_ = builderForValue.build();
onChanged();
} else {
invisibleDurationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
*/
public Builder mergeInvisibleDuration(org.apache.rocketmq.shaded.com.google.protobuf.Duration value) {
if (invisibleDurationBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
invisibleDuration_ != null &&
invisibleDuration_ != org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance()) {
invisibleDuration_ =
org.apache.rocketmq.shaded.com.google.protobuf.Duration.newBuilder(invisibleDuration_).mergeFrom(value).buildPartial();
} else {
invisibleDuration_ = value;
}
onChanged();
} else {
invisibleDurationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
*/
public Builder clearInvisibleDuration() {
if (invisibleDurationBuilder_ == null) {
invisibleDuration_ = null;
onChanged();
} else {
invisibleDurationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder getInvisibleDurationBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getInvisibleDurationFieldBuilder().getBuilder();
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder getInvisibleDurationOrBuilder() {
if (invisibleDurationBuilder_ != null) {
return invisibleDurationBuilder_.getMessageOrBuilder();
} else {
return invisibleDuration_ == null ?
org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance() : invisibleDuration_;
}
}
/**
*
* Period of time servers would remain invisible once a message is acquired.
*
*
* optional .google.protobuf.Duration invisible_duration = 15;
*/
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Duration, org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder, org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder>
getInvisibleDurationFieldBuilder() {
if (invisibleDurationBuilder_ == null) {
invisibleDurationBuilder_ = new org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Duration, org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder, org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder>(
getInvisibleDuration(),
getParentForChildren(),
isClean());
invisibleDuration_ = null;
}
return invisibleDurationBuilder_;
}
private int deliveryAttempt_ ;
/**
*
* Business code may failed to process messages for the moment. Hence, clients
* may request servers to deliver them again using certain back-off strategy,
* the attempt is 1 not 0 if message is delivered first time, and it is absent
* for message publishing.
*
*
* optional int32 delivery_attempt = 16;
* @return Whether the deliveryAttempt field is set.
*/
@java.lang.Override
public boolean hasDeliveryAttempt() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Business code may failed to process messages for the moment. Hence, clients
* may request servers to deliver them again using certain back-off strategy,
* the attempt is 1 not 0 if message is delivered first time, and it is absent
* for message publishing.
*
*
* optional int32 delivery_attempt = 16;
* @return The deliveryAttempt.
*/
@java.lang.Override
public int getDeliveryAttempt() {
return deliveryAttempt_;
}
/**
*
* Business code may failed to process messages for the moment. Hence, clients
* may request servers to deliver them again using certain back-off strategy,
* the attempt is 1 not 0 if message is delivered first time, and it is absent
* for message publishing.
*
*
* optional int32 delivery_attempt = 16;
* @param value The deliveryAttempt to set.
* @return This builder for chaining.
*/
public Builder setDeliveryAttempt(int value) {
bitField0_ |= 0x00000080;
deliveryAttempt_ = value;
onChanged();
return this;
}
/**
*
* Business code may failed to process messages for the moment. Hence, clients
* may request servers to deliver them again using certain back-off strategy,
* the attempt is 1 not 0 if message is delivered first time, and it is absent
* for message publishing.
*
*
* optional int32 delivery_attempt = 16;
* @return This builder for chaining.
*/
public Builder clearDeliveryAttempt() {
bitField0_ = (bitField0_ & ~0x00000080);
deliveryAttempt_ = 0;
onChanged();
return this;
}
private java.lang.Object messageGroup_ = "";
/**
*
* Define the group name of message in the same topic, which is optional.
*
*
* optional string message_group = 17;
* @return Whether the messageGroup field is set.
*/
public boolean hasMessageGroup() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Define the group name of message in the same topic, which is optional.
*
*
* optional string message_group = 17;
* @return The messageGroup.
*/
public java.lang.String getMessageGroup() {
java.lang.Object ref = messageGroup_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
messageGroup_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Define the group name of message in the same topic, which is optional.
*
*
* optional string message_group = 17;
* @return The bytes for messageGroup.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getMessageGroupBytes() {
java.lang.Object ref = messageGroup_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
messageGroup_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* Define the group name of message in the same topic, which is optional.
*
*
* optional string message_group = 17;
* @param value The messageGroup to set.
* @return This builder for chaining.
*/
public Builder setMessageGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
messageGroup_ = value;
onChanged();
return this;
}
/**
*
* Define the group name of message in the same topic, which is optional.
*
*
* optional string message_group = 17;
* @return This builder for chaining.
*/
public Builder clearMessageGroup() {
bitField0_ = (bitField0_ & ~0x00000100);
messageGroup_ = getDefaultInstance().getMessageGroup();
onChanged();
return this;
}
/**
*
* Define the group name of message in the same topic, which is optional.
*
*
* optional string message_group = 17;
* @param value The bytes for messageGroup to set.
* @return This builder for chaining.
*/
public Builder setMessageGroupBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000100;
messageGroup_ = value;
onChanged();
return this;
}
private java.lang.Object traceContext_ = "";
/**
*
* Trace context for each message, which is optional.
*
*
* optional string trace_context = 18;
* @return Whether the traceContext field is set.
*/
public boolean hasTraceContext() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Trace context for each message, which is optional.
*
*
* optional string trace_context = 18;
* @return The traceContext.
*/
public java.lang.String getTraceContext() {
java.lang.Object ref = traceContext_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs =
(org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
traceContext_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Trace context for each message, which is optional.
*
*
* optional string trace_context = 18;
* @return The bytes for traceContext.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString
getTraceContextBytes() {
java.lang.Object ref = traceContext_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceContext_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* Trace context for each message, which is optional.
*
*
* optional string trace_context = 18;
* @param value The traceContext to set.
* @return This builder for chaining.
*/
public Builder setTraceContext(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
traceContext_ = value;
onChanged();
return this;
}
/**
*
* Trace context for each message, which is optional.
*
*
* optional string trace_context = 18;
* @return This builder for chaining.
*/
public Builder clearTraceContext() {
bitField0_ = (bitField0_ & ~0x00000200);
traceContext_ = getDefaultInstance().getTraceContext();
onChanged();
return this;
}
/**
*
* Trace context for each message, which is optional.
*
*
* optional string trace_context = 18;
* @param value The bytes for traceContext to set.
* @return This builder for chaining.
*/
public Builder setTraceContextBytes(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000200;
traceContext_ = value;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.protobuf.Duration orphanedTransactionRecoveryDuration_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Duration, org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder, org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder> orphanedTransactionRecoveryDurationBuilder_;
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
* @return Whether the orphanedTransactionRecoveryDuration field is set.
*/
public boolean hasOrphanedTransactionRecoveryDuration() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
* @return The orphanedTransactionRecoveryDuration.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Duration getOrphanedTransactionRecoveryDuration() {
if (orphanedTransactionRecoveryDurationBuilder_ == null) {
return orphanedTransactionRecoveryDuration_ == null ? org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance() : orphanedTransactionRecoveryDuration_;
} else {
return orphanedTransactionRecoveryDurationBuilder_.getMessage();
}
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
*/
public Builder setOrphanedTransactionRecoveryDuration(org.apache.rocketmq.shaded.com.google.protobuf.Duration value) {
if (orphanedTransactionRecoveryDurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
orphanedTransactionRecoveryDuration_ = value;
onChanged();
} else {
orphanedTransactionRecoveryDurationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
*/
public Builder setOrphanedTransactionRecoveryDuration(
org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder builderForValue) {
if (orphanedTransactionRecoveryDurationBuilder_ == null) {
orphanedTransactionRecoveryDuration_ = builderForValue.build();
onChanged();
} else {
orphanedTransactionRecoveryDurationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
*/
public Builder mergeOrphanedTransactionRecoveryDuration(org.apache.rocketmq.shaded.com.google.protobuf.Duration value) {
if (orphanedTransactionRecoveryDurationBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
orphanedTransactionRecoveryDuration_ != null &&
orphanedTransactionRecoveryDuration_ != org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance()) {
orphanedTransactionRecoveryDuration_ =
org.apache.rocketmq.shaded.com.google.protobuf.Duration.newBuilder(orphanedTransactionRecoveryDuration_).mergeFrom(value).buildPartial();
} else {
orphanedTransactionRecoveryDuration_ = value;
}
onChanged();
} else {
orphanedTransactionRecoveryDurationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
*/
public Builder clearOrphanedTransactionRecoveryDuration() {
if (orphanedTransactionRecoveryDurationBuilder_ == null) {
orphanedTransactionRecoveryDuration_ = null;
onChanged();
} else {
orphanedTransactionRecoveryDurationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder getOrphanedTransactionRecoveryDurationBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getOrphanedTransactionRecoveryDurationFieldBuilder().getBuilder();
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
*/
public org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder getOrphanedTransactionRecoveryDurationOrBuilder() {
if (orphanedTransactionRecoveryDurationBuilder_ != null) {
return orphanedTransactionRecoveryDurationBuilder_.getMessageOrBuilder();
} else {
return orphanedTransactionRecoveryDuration_ == null ?
org.apache.rocketmq.shaded.com.google.protobuf.Duration.getDefaultInstance() : orphanedTransactionRecoveryDuration_;
}
}
/**
*
* If a transactional message stay unresolved for more than
* `transaction_orphan_threshold`, it would be regarded as an
* orphan. Servers that manages orphan messages would pick up
* a capable publisher to resolve
*
*
* optional .google.protobuf.Duration orphaned_transaction_recovery_duration = 19;
*/
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Duration, org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder, org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder>
getOrphanedTransactionRecoveryDurationFieldBuilder() {
if (orphanedTransactionRecoveryDurationBuilder_ == null) {
orphanedTransactionRecoveryDurationBuilder_ = new org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Duration, org.apache.rocketmq.shaded.com.google.protobuf.Duration.Builder, org.apache.rocketmq.shaded.com.google.protobuf.DurationOrBuilder>(
getOrphanedTransactionRecoveryDuration(),
getParentForChildren(),
isClean());
orphanedTransactionRecoveryDuration_ = null;
}
return orphanedTransactionRecoveryDurationBuilder_;
}
private apache.rocketmq.v2.DeadLetterQueue deadLetterQueue_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v2.DeadLetterQueue, apache.rocketmq.v2.DeadLetterQueue.Builder, apache.rocketmq.v2.DeadLetterQueueOrBuilder> deadLetterQueueBuilder_;
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
* @return Whether the deadLetterQueue field is set.
*/
public boolean hasDeadLetterQueue() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
* @return The deadLetterQueue.
*/
public apache.rocketmq.v2.DeadLetterQueue getDeadLetterQueue() {
if (deadLetterQueueBuilder_ == null) {
return deadLetterQueue_ == null ? apache.rocketmq.v2.DeadLetterQueue.getDefaultInstance() : deadLetterQueue_;
} else {
return deadLetterQueueBuilder_.getMessage();
}
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
*/
public Builder setDeadLetterQueue(apache.rocketmq.v2.DeadLetterQueue value) {
if (deadLetterQueueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deadLetterQueue_ = value;
onChanged();
} else {
deadLetterQueueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
*/
public Builder setDeadLetterQueue(
apache.rocketmq.v2.DeadLetterQueue.Builder builderForValue) {
if (deadLetterQueueBuilder_ == null) {
deadLetterQueue_ = builderForValue.build();
onChanged();
} else {
deadLetterQueueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
*/
public Builder mergeDeadLetterQueue(apache.rocketmq.v2.DeadLetterQueue value) {
if (deadLetterQueueBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
deadLetterQueue_ != null &&
deadLetterQueue_ != apache.rocketmq.v2.DeadLetterQueue.getDefaultInstance()) {
deadLetterQueue_ =
apache.rocketmq.v2.DeadLetterQueue.newBuilder(deadLetterQueue_).mergeFrom(value).buildPartial();
} else {
deadLetterQueue_ = value;
}
onChanged();
} else {
deadLetterQueueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
*/
public Builder clearDeadLetterQueue() {
if (deadLetterQueueBuilder_ == null) {
deadLetterQueue_ = null;
onChanged();
} else {
deadLetterQueueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
*/
public apache.rocketmq.v2.DeadLetterQueue.Builder getDeadLetterQueueBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getDeadLetterQueueFieldBuilder().getBuilder();
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
*/
public apache.rocketmq.v2.DeadLetterQueueOrBuilder getDeadLetterQueueOrBuilder() {
if (deadLetterQueueBuilder_ != null) {
return deadLetterQueueBuilder_.getMessageOrBuilder();
} else {
return deadLetterQueue_ == null ?
apache.rocketmq.v2.DeadLetterQueue.getDefaultInstance() : deadLetterQueue_;
}
}
/**
*
* Information to identify whether this message is from dead letter queue.
*
*
* optional .apache.rocketmq.v2.DeadLetterQueue dead_letter_queue = 20;
*/
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v2.DeadLetterQueue, apache.rocketmq.v2.DeadLetterQueue.Builder, apache.rocketmq.v2.DeadLetterQueueOrBuilder>
getDeadLetterQueueFieldBuilder() {
if (deadLetterQueueBuilder_ == null) {
deadLetterQueueBuilder_ = new org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v2.DeadLetterQueue, apache.rocketmq.v2.DeadLetterQueue.Builder, apache.rocketmq.v2.DeadLetterQueueOrBuilder>(
getDeadLetterQueue(),
getParentForChildren(),
isClean());
deadLetterQueue_ = null;
}
return deadLetterQueueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:apache.rocketmq.v2.SystemProperties)
}
// @@protoc_insertion_point(class_scope:apache.rocketmq.v2.SystemProperties)
private static final apache.rocketmq.v2.SystemProperties DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new apache.rocketmq.v2.SystemProperties();
}
public static apache.rocketmq.v2.SystemProperties getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser
PARSER = new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public SystemProperties parsePartialFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new SystemProperties(input, extensionRegistry);
}
};
public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public apache.rocketmq.v2.SystemProperties getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}