Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
apache.rocketmq.v1.PullMessageRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: apache/rocketmq/v1/service.proto
package apache.rocketmq.v1;
/**
* Protobuf type {@code apache.rocketmq.v1.PullMessageRequest}
*/
public final class PullMessageRequest extends
com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apache.rocketmq.v1.PullMessageRequest)
PullMessageRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PullMessageRequest.newBuilder() to construct.
private PullMessageRequest(com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PullMessageRequest() {
clientId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PullMessageRequest();
}
@java.lang.Override
public final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PullMessageRequest(
com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.aliyun.openservices.ons.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: {
apache.rocketmq.v1.Resource.Builder subBuilder = null;
if (group_ != null) {
subBuilder = group_.toBuilder();
}
group_ = input.readMessage(apache.rocketmq.v1.Resource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(group_);
group_ = subBuilder.buildPartial();
}
break;
}
case 18: {
apache.rocketmq.v1.Partition.Builder subBuilder = null;
if (partition_ != null) {
subBuilder = partition_.toBuilder();
}
partition_ = input.readMessage(apache.rocketmq.v1.Partition.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(partition_);
partition_ = subBuilder.buildPartial();
}
break;
}
case 24: {
offset_ = input.readInt64();
break;
}
case 32: {
batchSize_ = input.readInt32();
break;
}
case 42: {
com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder subBuilder = null;
if (awaitTime_ != null) {
subBuilder = awaitTime_.toBuilder();
}
awaitTime_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(awaitTime_);
awaitTime_ = subBuilder.buildPartial();
}
break;
}
case 50: {
apache.rocketmq.v1.FilterExpression.Builder subBuilder = null;
if (filterExpression_ != null) {
subBuilder = filterExpression_.toBuilder();
}
filterExpression_ = input.readMessage(apache.rocketmq.v1.FilterExpression.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filterExpression_);
filterExpression_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
clientId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_PullMessageRequest_descriptor;
}
@java.lang.Override
protected com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_PullMessageRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apache.rocketmq.v1.PullMessageRequest.class, apache.rocketmq.v1.PullMessageRequest.Builder.class);
}
public static final int GROUP_FIELD_NUMBER = 1;
private apache.rocketmq.v1.Resource group_;
/**
* .apache.rocketmq.v1.Resource group = 1;
* @return Whether the group field is set.
*/
@java.lang.Override
public boolean hasGroup() {
return group_ != null;
}
/**
* .apache.rocketmq.v1.Resource group = 1;
* @return The group.
*/
@java.lang.Override
public apache.rocketmq.v1.Resource getGroup() {
return group_ == null ? apache.rocketmq.v1.Resource.getDefaultInstance() : group_;
}
/**
* .apache.rocketmq.v1.Resource group = 1;
*/
@java.lang.Override
public apache.rocketmq.v1.ResourceOrBuilder getGroupOrBuilder() {
return getGroup();
}
public static final int PARTITION_FIELD_NUMBER = 2;
private apache.rocketmq.v1.Partition partition_;
/**
* .apache.rocketmq.v1.Partition partition = 2;
* @return Whether the partition field is set.
*/
@java.lang.Override
public boolean hasPartition() {
return partition_ != null;
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
* @return The partition.
*/
@java.lang.Override
public apache.rocketmq.v1.Partition getPartition() {
return partition_ == null ? apache.rocketmq.v1.Partition.getDefaultInstance() : partition_;
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
*/
@java.lang.Override
public apache.rocketmq.v1.PartitionOrBuilder getPartitionOrBuilder() {
return getPartition();
}
public static final int OFFSET_FIELD_NUMBER = 3;
private long offset_;
/**
* int64 offset = 3;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
public static final int BATCH_SIZE_FIELD_NUMBER = 4;
private int batchSize_;
/**
* int32 batch_size = 4;
* @return The batchSize.
*/
@java.lang.Override
public int getBatchSize() {
return batchSize_;
}
public static final int AWAIT_TIME_FIELD_NUMBER = 5;
private com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration awaitTime_;
/**
* .google.protobuf.Duration await_time = 5;
* @return Whether the awaitTime field is set.
*/
@java.lang.Override
public boolean hasAwaitTime() {
return awaitTime_ != null;
}
/**
* .google.protobuf.Duration await_time = 5;
* @return The awaitTime.
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration getAwaitTime() {
return awaitTime_ == null ? com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.getDefaultInstance() : awaitTime_;
}
/**
* .google.protobuf.Duration await_time = 5;
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.DurationOrBuilder getAwaitTimeOrBuilder() {
return getAwaitTime();
}
public static final int FILTER_EXPRESSION_FIELD_NUMBER = 6;
private apache.rocketmq.v1.FilterExpression filterExpression_;
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
* @return Whether the filterExpression field is set.
*/
@java.lang.Override
public boolean hasFilterExpression() {
return filterExpression_ != null;
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
* @return The filterExpression.
*/
@java.lang.Override
public apache.rocketmq.v1.FilterExpression getFilterExpression() {
return filterExpression_ == null ? apache.rocketmq.v1.FilterExpression.getDefaultInstance() : filterExpression_;
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
*/
@java.lang.Override
public apache.rocketmq.v1.FilterExpressionOrBuilder getFilterExpressionOrBuilder() {
return getFilterExpression();
}
public static final int CLIENT_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object clientId_;
/**
* string client_id = 7;
* @return The clientId.
*/
@java.lang.Override
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString bs =
(com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
}
}
/**
* string client_id = 7;
* @return The bytes for clientId.
*/
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b =
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (group_ != null) {
output.writeMessage(1, getGroup());
}
if (partition_ != null) {
output.writeMessage(2, getPartition());
}
if (offset_ != 0L) {
output.writeInt64(3, offset_);
}
if (batchSize_ != 0) {
output.writeInt32(4, batchSize_);
}
if (awaitTime_ != null) {
output.writeMessage(5, getAwaitTime());
}
if (filterExpression_ != null) {
output.writeMessage(6, getFilterExpression());
}
if (!getClientIdBytes().isEmpty()) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clientId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (group_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getGroup());
}
if (partition_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPartition());
}
if (offset_ != 0L) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
.computeInt64Size(3, offset_);
}
if (batchSize_ != 0) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
.computeInt32Size(4, batchSize_);
}
if (awaitTime_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getAwaitTime());
}
if (filterExpression_ != null) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getFilterExpression());
}
if (!getClientIdBytes().isEmpty()) {
size += com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clientId_);
}
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.v1.PullMessageRequest)) {
return super.equals(obj);
}
apache.rocketmq.v1.PullMessageRequest other = (apache.rocketmq.v1.PullMessageRequest) obj;
if (hasGroup() != other.hasGroup()) return false;
if (hasGroup()) {
if (!getGroup()
.equals(other.getGroup())) return false;
}
if (hasPartition() != other.hasPartition()) return false;
if (hasPartition()) {
if (!getPartition()
.equals(other.getPartition())) return false;
}
if (getOffset()
!= other.getOffset()) return false;
if (getBatchSize()
!= other.getBatchSize()) return false;
if (hasAwaitTime() != other.hasAwaitTime()) return false;
if (hasAwaitTime()) {
if (!getAwaitTime()
.equals(other.getAwaitTime())) return false;
}
if (hasFilterExpression() != other.hasFilterExpression()) return false;
if (hasFilterExpression()) {
if (!getFilterExpression()
.equals(other.getFilterExpression())) return false;
}
if (!getClientId()
.equals(other.getClientId())) 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 (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
if (hasPartition()) {
hash = (37 * hash) + PARTITION_FIELD_NUMBER;
hash = (53 * hash) + getPartition().hashCode();
}
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.aliyun.openservices.ons.shaded.com.google.protobuf.Internal.hashLong(
getOffset());
hash = (37 * hash) + BATCH_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getBatchSize();
if (hasAwaitTime()) {
hash = (37 * hash) + AWAIT_TIME_FIELD_NUMBER;
hash = (53 * hash) + getAwaitTime().hashCode();
}
if (hasFilterExpression()) {
hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getFilterExpression().hashCode();
}
hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(
java.nio.ByteBuffer data)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(
java.nio.ByteBuffer data,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString data)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString data,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(byte[] data)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(
byte[] data,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(
java.io.InputStream input,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static apache.rocketmq.v1.PullMessageRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static apache.rocketmq.v1.PullMessageRequest parseDelimitedFrom(
java.io.InputStream input,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(
com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static apache.rocketmq.v1.PullMessageRequest parseFrom(
com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.aliyun.openservices.ons.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.v1.PullMessageRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code apache.rocketmq.v1.PullMessageRequest}
*/
public static final class Builder extends
com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apache.rocketmq.v1.PullMessageRequest)
apache.rocketmq.v1.PullMessageRequestOrBuilder {
public static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_PullMessageRequest_descriptor;
}
@java.lang.Override
protected com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_PullMessageRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apache.rocketmq.v1.PullMessageRequest.class, apache.rocketmq.v1.PullMessageRequest.Builder.class);
}
// Construct using apache.rocketmq.v1.PullMessageRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (groupBuilder_ == null) {
group_ = null;
} else {
group_ = null;
groupBuilder_ = null;
}
if (partitionBuilder_ == null) {
partition_ = null;
} else {
partition_ = null;
partitionBuilder_ = null;
}
offset_ = 0L;
batchSize_ = 0;
if (awaitTimeBuilder_ == null) {
awaitTime_ = null;
} else {
awaitTime_ = null;
awaitTimeBuilder_ = null;
}
if (filterExpressionBuilder_ == null) {
filterExpression_ = null;
} else {
filterExpression_ = null;
filterExpressionBuilder_ = null;
}
clientId_ = "";
return this;
}
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_PullMessageRequest_descriptor;
}
@java.lang.Override
public apache.rocketmq.v1.PullMessageRequest getDefaultInstanceForType() {
return apache.rocketmq.v1.PullMessageRequest.getDefaultInstance();
}
@java.lang.Override
public apache.rocketmq.v1.PullMessageRequest build() {
apache.rocketmq.v1.PullMessageRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public apache.rocketmq.v1.PullMessageRequest buildPartial() {
apache.rocketmq.v1.PullMessageRequest result = new apache.rocketmq.v1.PullMessageRequest(this);
if (groupBuilder_ == null) {
result.group_ = group_;
} else {
result.group_ = groupBuilder_.build();
}
if (partitionBuilder_ == null) {
result.partition_ = partition_;
} else {
result.partition_ = partitionBuilder_.build();
}
result.offset_ = offset_;
result.batchSize_ = batchSize_;
if (awaitTimeBuilder_ == null) {
result.awaitTime_ = awaitTime_;
} else {
result.awaitTime_ = awaitTimeBuilder_.build();
}
if (filterExpressionBuilder_ == null) {
result.filterExpression_ = filterExpression_;
} else {
result.filterExpression_ = filterExpressionBuilder_.build();
}
result.clientId_ = clientId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.aliyun.openservices.ons.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(
com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.aliyun.openservices.ons.shaded.com.google.protobuf.Message other) {
if (other instanceof apache.rocketmq.v1.PullMessageRequest) {
return mergeFrom((apache.rocketmq.v1.PullMessageRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(apache.rocketmq.v1.PullMessageRequest other) {
if (other == apache.rocketmq.v1.PullMessageRequest.getDefaultInstance()) return this;
if (other.hasGroup()) {
mergeGroup(other.getGroup());
}
if (other.hasPartition()) {
mergePartition(other.getPartition());
}
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
if (other.getBatchSize() != 0) {
setBatchSize(other.getBatchSize());
}
if (other.hasAwaitTime()) {
mergeAwaitTime(other.getAwaitTime());
}
if (other.hasFilterExpression()) {
mergeFilterExpression(other.getFilterExpression());
}
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
apache.rocketmq.v1.PullMessageRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (apache.rocketmq.v1.PullMessageRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private apache.rocketmq.v1.Resource group_;
private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v1.Resource, apache.rocketmq.v1.Resource.Builder, apache.rocketmq.v1.ResourceOrBuilder> groupBuilder_;
/**
* .apache.rocketmq.v1.Resource group = 1;
* @return Whether the group field is set.
*/
public boolean hasGroup() {
return groupBuilder_ != null || group_ != null;
}
/**
* .apache.rocketmq.v1.Resource group = 1;
* @return The group.
*/
public apache.rocketmq.v1.Resource getGroup() {
if (groupBuilder_ == null) {
return group_ == null ? apache.rocketmq.v1.Resource.getDefaultInstance() : group_;
} else {
return groupBuilder_.getMessage();
}
}
/**
* .apache.rocketmq.v1.Resource group = 1;
*/
public Builder setGroup(apache.rocketmq.v1.Resource value) {
if (groupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
group_ = value;
onChanged();
} else {
groupBuilder_.setMessage(value);
}
return this;
}
/**
* .apache.rocketmq.v1.Resource group = 1;
*/
public Builder setGroup(
apache.rocketmq.v1.Resource.Builder builderForValue) {
if (groupBuilder_ == null) {
group_ = builderForValue.build();
onChanged();
} else {
groupBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .apache.rocketmq.v1.Resource group = 1;
*/
public Builder mergeGroup(apache.rocketmq.v1.Resource value) {
if (groupBuilder_ == null) {
if (group_ != null) {
group_ =
apache.rocketmq.v1.Resource.newBuilder(group_).mergeFrom(value).buildPartial();
} else {
group_ = value;
}
onChanged();
} else {
groupBuilder_.mergeFrom(value);
}
return this;
}
/**
* .apache.rocketmq.v1.Resource group = 1;
*/
public Builder clearGroup() {
if (groupBuilder_ == null) {
group_ = null;
onChanged();
} else {
group_ = null;
groupBuilder_ = null;
}
return this;
}
/**
* .apache.rocketmq.v1.Resource group = 1;
*/
public apache.rocketmq.v1.Resource.Builder getGroupBuilder() {
onChanged();
return getGroupFieldBuilder().getBuilder();
}
/**
* .apache.rocketmq.v1.Resource group = 1;
*/
public apache.rocketmq.v1.ResourceOrBuilder getGroupOrBuilder() {
if (groupBuilder_ != null) {
return groupBuilder_.getMessageOrBuilder();
} else {
return group_ == null ?
apache.rocketmq.v1.Resource.getDefaultInstance() : group_;
}
}
/**
* .apache.rocketmq.v1.Resource group = 1;
*/
private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v1.Resource, apache.rocketmq.v1.Resource.Builder, apache.rocketmq.v1.ResourceOrBuilder>
getGroupFieldBuilder() {
if (groupBuilder_ == null) {
groupBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v1.Resource, apache.rocketmq.v1.Resource.Builder, apache.rocketmq.v1.ResourceOrBuilder>(
getGroup(),
getParentForChildren(),
isClean());
group_ = null;
}
return groupBuilder_;
}
private apache.rocketmq.v1.Partition partition_;
private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v1.Partition, apache.rocketmq.v1.Partition.Builder, apache.rocketmq.v1.PartitionOrBuilder> partitionBuilder_;
/**
* .apache.rocketmq.v1.Partition partition = 2;
* @return Whether the partition field is set.
*/
public boolean hasPartition() {
return partitionBuilder_ != null || partition_ != null;
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
* @return The partition.
*/
public apache.rocketmq.v1.Partition getPartition() {
if (partitionBuilder_ == null) {
return partition_ == null ? apache.rocketmq.v1.Partition.getDefaultInstance() : partition_;
} else {
return partitionBuilder_.getMessage();
}
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
*/
public Builder setPartition(apache.rocketmq.v1.Partition value) {
if (partitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
partition_ = value;
onChanged();
} else {
partitionBuilder_.setMessage(value);
}
return this;
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
*/
public Builder setPartition(
apache.rocketmq.v1.Partition.Builder builderForValue) {
if (partitionBuilder_ == null) {
partition_ = builderForValue.build();
onChanged();
} else {
partitionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
*/
public Builder mergePartition(apache.rocketmq.v1.Partition value) {
if (partitionBuilder_ == null) {
if (partition_ != null) {
partition_ =
apache.rocketmq.v1.Partition.newBuilder(partition_).mergeFrom(value).buildPartial();
} else {
partition_ = value;
}
onChanged();
} else {
partitionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
*/
public Builder clearPartition() {
if (partitionBuilder_ == null) {
partition_ = null;
onChanged();
} else {
partition_ = null;
partitionBuilder_ = null;
}
return this;
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
*/
public apache.rocketmq.v1.Partition.Builder getPartitionBuilder() {
onChanged();
return getPartitionFieldBuilder().getBuilder();
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
*/
public apache.rocketmq.v1.PartitionOrBuilder getPartitionOrBuilder() {
if (partitionBuilder_ != null) {
return partitionBuilder_.getMessageOrBuilder();
} else {
return partition_ == null ?
apache.rocketmq.v1.Partition.getDefaultInstance() : partition_;
}
}
/**
* .apache.rocketmq.v1.Partition partition = 2;
*/
private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v1.Partition, apache.rocketmq.v1.Partition.Builder, apache.rocketmq.v1.PartitionOrBuilder>
getPartitionFieldBuilder() {
if (partitionBuilder_ == null) {
partitionBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v1.Partition, apache.rocketmq.v1.Partition.Builder, apache.rocketmq.v1.PartitionOrBuilder>(
getPartition(),
getParentForChildren(),
isClean());
partition_ = null;
}
return partitionBuilder_;
}
private long offset_ ;
/**
* int64 offset = 3;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
/**
* int64 offset = 3;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(long value) {
offset_ = value;
onChanged();
return this;
}
/**
* int64 offset = 3;
* @return This builder for chaining.
*/
public Builder clearOffset() {
offset_ = 0L;
onChanged();
return this;
}
private int batchSize_ ;
/**
* int32 batch_size = 4;
* @return The batchSize.
*/
@java.lang.Override
public int getBatchSize() {
return batchSize_;
}
/**
* int32 batch_size = 4;
* @param value The batchSize to set.
* @return This builder for chaining.
*/
public Builder setBatchSize(int value) {
batchSize_ = value;
onChanged();
return this;
}
/**
* int32 batch_size = 4;
* @return This builder for chaining.
*/
public Builder clearBatchSize() {
batchSize_ = 0;
onChanged();
return this;
}
private com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration awaitTime_;
private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration, com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder, com.aliyun.openservices.ons.shaded.com.google.protobuf.DurationOrBuilder> awaitTimeBuilder_;
/**
* .google.protobuf.Duration await_time = 5;
* @return Whether the awaitTime field is set.
*/
public boolean hasAwaitTime() {
return awaitTimeBuilder_ != null || awaitTime_ != null;
}
/**
* .google.protobuf.Duration await_time = 5;
* @return The awaitTime.
*/
public com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration getAwaitTime() {
if (awaitTimeBuilder_ == null) {
return awaitTime_ == null ? com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.getDefaultInstance() : awaitTime_;
} else {
return awaitTimeBuilder_.getMessage();
}
}
/**
* .google.protobuf.Duration await_time = 5;
*/
public Builder setAwaitTime(com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration value) {
if (awaitTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
awaitTime_ = value;
onChanged();
} else {
awaitTimeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Duration await_time = 5;
*/
public Builder setAwaitTime(
com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder builderForValue) {
if (awaitTimeBuilder_ == null) {
awaitTime_ = builderForValue.build();
onChanged();
} else {
awaitTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Duration await_time = 5;
*/
public Builder mergeAwaitTime(com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration value) {
if (awaitTimeBuilder_ == null) {
if (awaitTime_ != null) {
awaitTime_ =
com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.newBuilder(awaitTime_).mergeFrom(value).buildPartial();
} else {
awaitTime_ = value;
}
onChanged();
} else {
awaitTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Duration await_time = 5;
*/
public Builder clearAwaitTime() {
if (awaitTimeBuilder_ == null) {
awaitTime_ = null;
onChanged();
} else {
awaitTime_ = null;
awaitTimeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Duration await_time = 5;
*/
public com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder getAwaitTimeBuilder() {
onChanged();
return getAwaitTimeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Duration await_time = 5;
*/
public com.aliyun.openservices.ons.shaded.com.google.protobuf.DurationOrBuilder getAwaitTimeOrBuilder() {
if (awaitTimeBuilder_ != null) {
return awaitTimeBuilder_.getMessageOrBuilder();
} else {
return awaitTime_ == null ?
com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.getDefaultInstance() : awaitTime_;
}
}
/**
* .google.protobuf.Duration await_time = 5;
*/
private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration, com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder, com.aliyun.openservices.ons.shaded.com.google.protobuf.DurationOrBuilder>
getAwaitTimeFieldBuilder() {
if (awaitTimeBuilder_ == null) {
awaitTimeBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration, com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder, com.aliyun.openservices.ons.shaded.com.google.protobuf.DurationOrBuilder>(
getAwaitTime(),
getParentForChildren(),
isClean());
awaitTime_ = null;
}
return awaitTimeBuilder_;
}
private apache.rocketmq.v1.FilterExpression filterExpression_;
private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v1.FilterExpression, apache.rocketmq.v1.FilterExpression.Builder, apache.rocketmq.v1.FilterExpressionOrBuilder> filterExpressionBuilder_;
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
* @return Whether the filterExpression field is set.
*/
public boolean hasFilterExpression() {
return filterExpressionBuilder_ != null || filterExpression_ != null;
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
* @return The filterExpression.
*/
public apache.rocketmq.v1.FilterExpression getFilterExpression() {
if (filterExpressionBuilder_ == null) {
return filterExpression_ == null ? apache.rocketmq.v1.FilterExpression.getDefaultInstance() : filterExpression_;
} else {
return filterExpressionBuilder_.getMessage();
}
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
*/
public Builder setFilterExpression(apache.rocketmq.v1.FilterExpression value) {
if (filterExpressionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filterExpression_ = value;
onChanged();
} else {
filterExpressionBuilder_.setMessage(value);
}
return this;
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
*/
public Builder setFilterExpression(
apache.rocketmq.v1.FilterExpression.Builder builderForValue) {
if (filterExpressionBuilder_ == null) {
filterExpression_ = builderForValue.build();
onChanged();
} else {
filterExpressionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
*/
public Builder mergeFilterExpression(apache.rocketmq.v1.FilterExpression value) {
if (filterExpressionBuilder_ == null) {
if (filterExpression_ != null) {
filterExpression_ =
apache.rocketmq.v1.FilterExpression.newBuilder(filterExpression_).mergeFrom(value).buildPartial();
} else {
filterExpression_ = value;
}
onChanged();
} else {
filterExpressionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
*/
public Builder clearFilterExpression() {
if (filterExpressionBuilder_ == null) {
filterExpression_ = null;
onChanged();
} else {
filterExpression_ = null;
filterExpressionBuilder_ = null;
}
return this;
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
*/
public apache.rocketmq.v1.FilterExpression.Builder getFilterExpressionBuilder() {
onChanged();
return getFilterExpressionFieldBuilder().getBuilder();
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
*/
public apache.rocketmq.v1.FilterExpressionOrBuilder getFilterExpressionOrBuilder() {
if (filterExpressionBuilder_ != null) {
return filterExpressionBuilder_.getMessageOrBuilder();
} else {
return filterExpression_ == null ?
apache.rocketmq.v1.FilterExpression.getDefaultInstance() : filterExpression_;
}
}
/**
* .apache.rocketmq.v1.FilterExpression filter_expression = 6;
*/
private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v1.FilterExpression, apache.rocketmq.v1.FilterExpression.Builder, apache.rocketmq.v1.FilterExpressionOrBuilder>
getFilterExpressionFieldBuilder() {
if (filterExpressionBuilder_ == null) {
filterExpressionBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
apache.rocketmq.v1.FilterExpression, apache.rocketmq.v1.FilterExpression.Builder, apache.rocketmq.v1.FilterExpressionOrBuilder>(
getFilterExpression(),
getParentForChildren(),
isClean());
filterExpression_ = null;
}
return filterExpressionBuilder_;
}
private java.lang.Object clientId_ = "";
/**
* string client_id = 7;
* @return The clientId.
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (!(ref instanceof java.lang.String)) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString bs =
(com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string client_id = 7;
* @return The bytes for clientId.
*/
public com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof String) {
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString b =
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
* string client_id = 7;
* @param value The clientId to set.
* @return This builder for chaining.
*/
public Builder setClientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientId_ = value;
onChanged();
return this;
}
/**
* string client_id = 7;
* @return This builder for chaining.
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
* string client_id = 7;
* @param value The bytes for clientId to set.
* @return This builder for chaining.
*/
public Builder setClientIdBytes(
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:apache.rocketmq.v1.PullMessageRequest)
}
// @@protoc_insertion_point(class_scope:apache.rocketmq.v1.PullMessageRequest)
private static final apache.rocketmq.v1.PullMessageRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new apache.rocketmq.v1.PullMessageRequest();
}
public static apache.rocketmq.v1.PullMessageRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Parser
PARSER = new com.aliyun.openservices.ons.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public PullMessageRequest parsePartialFrom(
com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedInputStream input,
com.aliyun.openservices.ons.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new PullMessageRequest(input, extensionRegistry);
}
};
public static com.aliyun.openservices.ons.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.ons.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public apache.rocketmq.v1.PullMessageRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}