All Downloads are FREE. Search and download functionalities are using the official Maven repository.

apache.rocketmq.v1.ReceiveMessageRequest Maven / Gradle / Ivy

There is a newer version: 2.0.7.Final
Show newest version
// 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.ReceiveMessageRequest}
 */
public final class ReceiveMessageRequest extends
    com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:apache.rocketmq.v1.ReceiveMessageRequest)
    ReceiveMessageRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ReceiveMessageRequest.newBuilder() to construct.
  private ReceiveMessageRequest(com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ReceiveMessageRequest() {
    clientId_ = "";
    consumePolicy_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ReceiveMessageRequest();
  }

  @java.lang.Override
  public final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ReceiveMessageRequest(
      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: {
            java.lang.String s = input.readStringRequireUtf8();

            clientId_ = s;
            break;
          }
          case 26: {
            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 34: {
            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 40: {
            int rawValue = input.readEnum();

            consumePolicy_ = rawValue;
            break;
          }
          case 50: {
            com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (initializationTimestamp_ != null) {
              subBuilder = initializationTimestamp_.toBuilder();
            }
            initializationTimestamp_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(initializationTimestamp_);
              initializationTimestamp_ = subBuilder.buildPartial();
            }

            break;
          }
          case 56: {

            batchSize_ = input.readInt32();
            break;
          }
          case 66: {
            com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder subBuilder = null;
            if (invisibleDuration_ != null) {
              subBuilder = invisibleDuration_.toBuilder();
            }
            invisibleDuration_ = input.readMessage(com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(invisibleDuration_);
              invisibleDuration_ = subBuilder.buildPartial();
            }

            break;
          }
          case 74: {
            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 80: {

            fifoFlag_ = input.readBool();
            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_ReceiveMessageRequest_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_ReceiveMessageRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            apache.rocketmq.v1.ReceiveMessageRequest.class, apache.rocketmq.v1.ReceiveMessageRequest.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 CLIENT_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object clientId_;
  /**
   * string client_id = 2;
   * @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 = 2;
   * @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;
    }
  }

  public static final int PARTITION_FIELD_NUMBER = 3;
  private apache.rocketmq.v1.Partition partition_;
  /**
   * .apache.rocketmq.v1.Partition partition = 3;
   * @return Whether the partition field is set.
   */
  @java.lang.Override
  public boolean hasPartition() {
    return partition_ != null;
  }
  /**
   * .apache.rocketmq.v1.Partition partition = 3;
   * @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 = 3;
   */
  @java.lang.Override
  public apache.rocketmq.v1.PartitionOrBuilder getPartitionOrBuilder() {
    return getPartition();
  }

  public static final int FILTER_EXPRESSION_FIELD_NUMBER = 4;
  private apache.rocketmq.v1.FilterExpression filterExpression_;
  /**
   * .apache.rocketmq.v1.FilterExpression filter_expression = 4;
   * @return Whether the filterExpression field is set.
   */
  @java.lang.Override
  public boolean hasFilterExpression() {
    return filterExpression_ != null;
  }
  /**
   * .apache.rocketmq.v1.FilterExpression filter_expression = 4;
   * @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 = 4;
   */
  @java.lang.Override
  public apache.rocketmq.v1.FilterExpressionOrBuilder getFilterExpressionOrBuilder() {
    return getFilterExpression();
  }

  public static final int CONSUME_POLICY_FIELD_NUMBER = 5;
  private int consumePolicy_;
  /**
   * .apache.rocketmq.v1.ConsumePolicy consume_policy = 5;
   * @return The enum numeric value on the wire for consumePolicy.
   */
  @java.lang.Override public int getConsumePolicyValue() {
    return consumePolicy_;
  }
  /**
   * .apache.rocketmq.v1.ConsumePolicy consume_policy = 5;
   * @return The consumePolicy.
   */
  @java.lang.Override public apache.rocketmq.v1.ConsumePolicy getConsumePolicy() {
    @SuppressWarnings("deprecation")
    apache.rocketmq.v1.ConsumePolicy result = apache.rocketmq.v1.ConsumePolicy.valueOf(consumePolicy_);
    return result == null ? apache.rocketmq.v1.ConsumePolicy.UNRECOGNIZED : result;
  }

  public static final int INITIALIZATION_TIMESTAMP_FIELD_NUMBER = 6;
  private com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp initializationTimestamp_;
  /**
   * .google.protobuf.Timestamp initialization_timestamp = 6;
   * @return Whether the initializationTimestamp field is set.
   */
  @java.lang.Override
  public boolean hasInitializationTimestamp() {
    return initializationTimestamp_ != null;
  }
  /**
   * .google.protobuf.Timestamp initialization_timestamp = 6;
   * @return The initializationTimestamp.
   */
  @java.lang.Override
  public com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp getInitializationTimestamp() {
    return initializationTimestamp_ == null ? com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : initializationTimestamp_;
  }
  /**
   * .google.protobuf.Timestamp initialization_timestamp = 6;
   */
  @java.lang.Override
  public com.aliyun.openservices.ons.shaded.com.google.protobuf.TimestampOrBuilder getInitializationTimestampOrBuilder() {
    return getInitializationTimestamp();
  }

  public static final int BATCH_SIZE_FIELD_NUMBER = 7;
  private int batchSize_;
  /**
   * int32 batch_size = 7;
   * @return The batchSize.
   */
  @java.lang.Override
  public int getBatchSize() {
    return batchSize_;
  }

  public static final int INVISIBLE_DURATION_FIELD_NUMBER = 8;
  private com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration invisibleDuration_;
  /**
   * .google.protobuf.Duration invisible_duration = 8;
   * @return Whether the invisibleDuration field is set.
   */
  @java.lang.Override
  public boolean hasInvisibleDuration() {
    return invisibleDuration_ != null;
  }
  /**
   * .google.protobuf.Duration invisible_duration = 8;
   * @return The invisibleDuration.
   */
  @java.lang.Override
  public com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration getInvisibleDuration() {
    return invisibleDuration_ == null ? com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.getDefaultInstance() : invisibleDuration_;
  }
  /**
   * .google.protobuf.Duration invisible_duration = 8;
   */
  @java.lang.Override
  public com.aliyun.openservices.ons.shaded.com.google.protobuf.DurationOrBuilder getInvisibleDurationOrBuilder() {
    return getInvisibleDuration();
  }

  public static final int AWAIT_TIME_FIELD_NUMBER = 9;
  private com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration awaitTime_;
  /**
   * .google.protobuf.Duration await_time = 9;
   * @return Whether the awaitTime field is set.
   */
  @java.lang.Override
  public boolean hasAwaitTime() {
    return awaitTime_ != null;
  }
  /**
   * .google.protobuf.Duration await_time = 9;
   * @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 = 9;
   */
  @java.lang.Override
  public com.aliyun.openservices.ons.shaded.com.google.protobuf.DurationOrBuilder getAwaitTimeOrBuilder() {
    return getAwaitTime();
  }

  public static final int FIFO_FLAG_FIELD_NUMBER = 10;
  private boolean fifoFlag_;
  /**
   * bool fifo_flag = 10;
   * @return The fifoFlag.
   */
  @java.lang.Override
  public boolean getFifoFlag() {
    return fifoFlag_;
  }

  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 (!getClientIdBytes().isEmpty()) {
      com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_);
    }
    if (partition_ != null) {
      output.writeMessage(3, getPartition());
    }
    if (filterExpression_ != null) {
      output.writeMessage(4, getFilterExpression());
    }
    if (consumePolicy_ != apache.rocketmq.v1.ConsumePolicy.RESUME.getNumber()) {
      output.writeEnum(5, consumePolicy_);
    }
    if (initializationTimestamp_ != null) {
      output.writeMessage(6, getInitializationTimestamp());
    }
    if (batchSize_ != 0) {
      output.writeInt32(7, batchSize_);
    }
    if (invisibleDuration_ != null) {
      output.writeMessage(8, getInvisibleDuration());
    }
    if (awaitTime_ != null) {
      output.writeMessage(9, getAwaitTime());
    }
    if (fifoFlag_ != false) {
      output.writeBool(10, fifoFlag_);
    }
    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 (!getClientIdBytes().isEmpty()) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_);
    }
    if (partition_ != null) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getPartition());
    }
    if (filterExpression_ != null) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getFilterExpression());
    }
    if (consumePolicy_ != apache.rocketmq.v1.ConsumePolicy.RESUME.getNumber()) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeEnumSize(5, consumePolicy_);
    }
    if (initializationTimestamp_ != null) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, getInitializationTimestamp());
    }
    if (batchSize_ != 0) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, batchSize_);
    }
    if (invisibleDuration_ != null) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, getInvisibleDuration());
    }
    if (awaitTime_ != null) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeMessageSize(9, getAwaitTime());
    }
    if (fifoFlag_ != false) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeBoolSize(10, fifoFlag_);
    }
    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.ReceiveMessageRequest)) {
      return super.equals(obj);
    }
    apache.rocketmq.v1.ReceiveMessageRequest other = (apache.rocketmq.v1.ReceiveMessageRequest) obj;

    if (hasGroup() != other.hasGroup()) return false;
    if (hasGroup()) {
      if (!getGroup()
          .equals(other.getGroup())) return false;
    }
    if (!getClientId()
        .equals(other.getClientId())) return false;
    if (hasPartition() != other.hasPartition()) return false;
    if (hasPartition()) {
      if (!getPartition()
          .equals(other.getPartition())) return false;
    }
    if (hasFilterExpression() != other.hasFilterExpression()) return false;
    if (hasFilterExpression()) {
      if (!getFilterExpression()
          .equals(other.getFilterExpression())) return false;
    }
    if (consumePolicy_ != other.consumePolicy_) return false;
    if (hasInitializationTimestamp() != other.hasInitializationTimestamp()) return false;
    if (hasInitializationTimestamp()) {
      if (!getInitializationTimestamp()
          .equals(other.getInitializationTimestamp())) return false;
    }
    if (getBatchSize()
        != other.getBatchSize()) return false;
    if (hasInvisibleDuration() != other.hasInvisibleDuration()) return false;
    if (hasInvisibleDuration()) {
      if (!getInvisibleDuration()
          .equals(other.getInvisibleDuration())) return false;
    }
    if (hasAwaitTime() != other.hasAwaitTime()) return false;
    if (hasAwaitTime()) {
      if (!getAwaitTime()
          .equals(other.getAwaitTime())) return false;
    }
    if (getFifoFlag()
        != other.getFifoFlag()) 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();
    }
    hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getClientId().hashCode();
    if (hasPartition()) {
      hash = (37 * hash) + PARTITION_FIELD_NUMBER;
      hash = (53 * hash) + getPartition().hashCode();
    }
    if (hasFilterExpression()) {
      hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER;
      hash = (53 * hash) + getFilterExpression().hashCode();
    }
    hash = (37 * hash) + CONSUME_POLICY_FIELD_NUMBER;
    hash = (53 * hash) + consumePolicy_;
    if (hasInitializationTimestamp()) {
      hash = (37 * hash) + INITIALIZATION_TIMESTAMP_FIELD_NUMBER;
      hash = (53 * hash) + getInitializationTimestamp().hashCode();
    }
    hash = (37 * hash) + BATCH_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + getBatchSize();
    if (hasInvisibleDuration()) {
      hash = (37 * hash) + INVISIBLE_DURATION_FIELD_NUMBER;
      hash = (53 * hash) + getInvisibleDuration().hashCode();
    }
    if (hasAwaitTime()) {
      hash = (37 * hash) + AWAIT_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getAwaitTime().hashCode();
    }
    hash = (37 * hash) + FIFO_FLAG_FIELD_NUMBER;
    hash = (53 * hash) + com.aliyun.openservices.ons.shaded.com.google.protobuf.Internal.hashBoolean(
        getFifoFlag());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static apache.rocketmq.v1.ReceiveMessageRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static apache.rocketmq.v1.ReceiveMessageRequest 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.ReceiveMessageRequest 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.ReceiveMessageRequest 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.ReceiveMessageRequest parseFrom(byte[] data)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static apache.rocketmq.v1.ReceiveMessageRequest 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.ReceiveMessageRequest 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.ReceiveMessageRequest 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.ReceiveMessageRequest 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.ReceiveMessageRequest 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.ReceiveMessageRequest 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.ReceiveMessageRequest 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.ReceiveMessageRequest 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.ReceiveMessageRequest}
   */
  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.ReceiveMessageRequest)
      apache.rocketmq.v1.ReceiveMessageRequestOrBuilder {
    public static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return apache.rocketmq.v1.MQService.internal_static_apache_rocketmq_v1_ReceiveMessageRequest_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_ReceiveMessageRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apache.rocketmq.v1.ReceiveMessageRequest.class, apache.rocketmq.v1.ReceiveMessageRequest.Builder.class);
    }

    // Construct using apache.rocketmq.v1.ReceiveMessageRequest.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;
      }
      clientId_ = "";

      if (partitionBuilder_ == null) {
        partition_ = null;
      } else {
        partition_ = null;
        partitionBuilder_ = null;
      }
      if (filterExpressionBuilder_ == null) {
        filterExpression_ = null;
      } else {
        filterExpression_ = null;
        filterExpressionBuilder_ = null;
      }
      consumePolicy_ = 0;

      if (initializationTimestampBuilder_ == null) {
        initializationTimestamp_ = null;
      } else {
        initializationTimestamp_ = null;
        initializationTimestampBuilder_ = null;
      }
      batchSize_ = 0;

      if (invisibleDurationBuilder_ == null) {
        invisibleDuration_ = null;
      } else {
        invisibleDuration_ = null;
        invisibleDurationBuilder_ = null;
      }
      if (awaitTimeBuilder_ == null) {
        awaitTime_ = null;
      } else {
        awaitTime_ = null;
        awaitTimeBuilder_ = null;
      }
      fifoFlag_ = false;

      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_ReceiveMessageRequest_descriptor;
    }

    @java.lang.Override
    public apache.rocketmq.v1.ReceiveMessageRequest getDefaultInstanceForType() {
      return apache.rocketmq.v1.ReceiveMessageRequest.getDefaultInstance();
    }

    @java.lang.Override
    public apache.rocketmq.v1.ReceiveMessageRequest build() {
      apache.rocketmq.v1.ReceiveMessageRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public apache.rocketmq.v1.ReceiveMessageRequest buildPartial() {
      apache.rocketmq.v1.ReceiveMessageRequest result = new apache.rocketmq.v1.ReceiveMessageRequest(this);
      if (groupBuilder_ == null) {
        result.group_ = group_;
      } else {
        result.group_ = groupBuilder_.build();
      }
      result.clientId_ = clientId_;
      if (partitionBuilder_ == null) {
        result.partition_ = partition_;
      } else {
        result.partition_ = partitionBuilder_.build();
      }
      if (filterExpressionBuilder_ == null) {
        result.filterExpression_ = filterExpression_;
      } else {
        result.filterExpression_ = filterExpressionBuilder_.build();
      }
      result.consumePolicy_ = consumePolicy_;
      if (initializationTimestampBuilder_ == null) {
        result.initializationTimestamp_ = initializationTimestamp_;
      } else {
        result.initializationTimestamp_ = initializationTimestampBuilder_.build();
      }
      result.batchSize_ = batchSize_;
      if (invisibleDurationBuilder_ == null) {
        result.invisibleDuration_ = invisibleDuration_;
      } else {
        result.invisibleDuration_ = invisibleDurationBuilder_.build();
      }
      if (awaitTimeBuilder_ == null) {
        result.awaitTime_ = awaitTime_;
      } else {
        result.awaitTime_ = awaitTimeBuilder_.build();
      }
      result.fifoFlag_ = fifoFlag_;
      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.ReceiveMessageRequest) {
        return mergeFrom((apache.rocketmq.v1.ReceiveMessageRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(apache.rocketmq.v1.ReceiveMessageRequest other) {
      if (other == apache.rocketmq.v1.ReceiveMessageRequest.getDefaultInstance()) return this;
      if (other.hasGroup()) {
        mergeGroup(other.getGroup());
      }
      if (!other.getClientId().isEmpty()) {
        clientId_ = other.clientId_;
        onChanged();
      }
      if (other.hasPartition()) {
        mergePartition(other.getPartition());
      }
      if (other.hasFilterExpression()) {
        mergeFilterExpression(other.getFilterExpression());
      }
      if (other.consumePolicy_ != 0) {
        setConsumePolicyValue(other.getConsumePolicyValue());
      }
      if (other.hasInitializationTimestamp()) {
        mergeInitializationTimestamp(other.getInitializationTimestamp());
      }
      if (other.getBatchSize() != 0) {
        setBatchSize(other.getBatchSize());
      }
      if (other.hasInvisibleDuration()) {
        mergeInvisibleDuration(other.getInvisibleDuration());
      }
      if (other.hasAwaitTime()) {
        mergeAwaitTime(other.getAwaitTime());
      }
      if (other.getFifoFlag() != false) {
        setFifoFlag(other.getFifoFlag());
      }
      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.ReceiveMessageRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (apache.rocketmq.v1.ReceiveMessageRequest) 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 java.lang.Object clientId_ = "";
    /**
     * string client_id = 2;
     * @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 = 2;
     * @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 = 2;
     * @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 = 2;
     * @return This builder for chaining.
     */
    public Builder clearClientId() {
      
      clientId_ = getDefaultInstance().getClientId();
      onChanged();
      return this;
    }
    /**
     * string client_id = 2;
     * @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;
    }

    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 = 3;
     * @return Whether the partition field is set.
     */
    public boolean hasPartition() {
      return partitionBuilder_ != null || partition_ != null;
    }
    /**
     * .apache.rocketmq.v1.Partition partition = 3;
     * @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 = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    public Builder clearPartition() {
      if (partitionBuilder_ == null) {
        partition_ = null;
        onChanged();
      } else {
        partition_ = null;
        partitionBuilder_ = null;
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.Partition partition = 3;
     */
    public apache.rocketmq.v1.Partition.Builder getPartitionBuilder() {
      
      onChanged();
      return getPartitionFieldBuilder().getBuilder();
    }
    /**
     * .apache.rocketmq.v1.Partition partition = 3;
     */
    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 = 3;
     */
    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 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 = 4;
     * @return Whether the filterExpression field is set.
     */
    public boolean hasFilterExpression() {
      return filterExpressionBuilder_ != null || filterExpression_ != null;
    }
    /**
     * .apache.rocketmq.v1.FilterExpression filter_expression = 4;
     * @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 = 4;
     */
    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 = 4;
     */
    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 = 4;
     */
    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 = 4;
     */
    public Builder clearFilterExpression() {
      if (filterExpressionBuilder_ == null) {
        filterExpression_ = null;
        onChanged();
      } else {
        filterExpression_ = null;
        filterExpressionBuilder_ = null;
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.FilterExpression filter_expression = 4;
     */
    public apache.rocketmq.v1.FilterExpression.Builder getFilterExpressionBuilder() {
      
      onChanged();
      return getFilterExpressionFieldBuilder().getBuilder();
    }
    /**
     * .apache.rocketmq.v1.FilterExpression filter_expression = 4;
     */
    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 = 4;
     */
    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 int consumePolicy_ = 0;
    /**
     * .apache.rocketmq.v1.ConsumePolicy consume_policy = 5;
     * @return The enum numeric value on the wire for consumePolicy.
     */
    @java.lang.Override public int getConsumePolicyValue() {
      return consumePolicy_;
    }
    /**
     * .apache.rocketmq.v1.ConsumePolicy consume_policy = 5;
     * @param value The enum numeric value on the wire for consumePolicy to set.
     * @return This builder for chaining.
     */
    public Builder setConsumePolicyValue(int value) {
      
      consumePolicy_ = value;
      onChanged();
      return this;
    }
    /**
     * .apache.rocketmq.v1.ConsumePolicy consume_policy = 5;
     * @return The consumePolicy.
     */
    @java.lang.Override
    public apache.rocketmq.v1.ConsumePolicy getConsumePolicy() {
      @SuppressWarnings("deprecation")
      apache.rocketmq.v1.ConsumePolicy result = apache.rocketmq.v1.ConsumePolicy.valueOf(consumePolicy_);
      return result == null ? apache.rocketmq.v1.ConsumePolicy.UNRECOGNIZED : result;
    }
    /**
     * .apache.rocketmq.v1.ConsumePolicy consume_policy = 5;
     * @param value The consumePolicy to set.
     * @return This builder for chaining.
     */
    public Builder setConsumePolicy(apache.rocketmq.v1.ConsumePolicy value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      consumePolicy_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .apache.rocketmq.v1.ConsumePolicy consume_policy = 5;
     * @return This builder for chaining.
     */
    public Builder clearConsumePolicy() {
      
      consumePolicy_ = 0;
      onChanged();
      return this;
    }

    private com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp initializationTimestamp_;
    private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
        com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp, com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.Builder, com.aliyun.openservices.ons.shaded.com.google.protobuf.TimestampOrBuilder> initializationTimestampBuilder_;
    /**
     * .google.protobuf.Timestamp initialization_timestamp = 6;
     * @return Whether the initializationTimestamp field is set.
     */
    public boolean hasInitializationTimestamp() {
      return initializationTimestampBuilder_ != null || initializationTimestamp_ != null;
    }
    /**
     * .google.protobuf.Timestamp initialization_timestamp = 6;
     * @return The initializationTimestamp.
     */
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp getInitializationTimestamp() {
      if (initializationTimestampBuilder_ == null) {
        return initializationTimestamp_ == null ? com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : initializationTimestamp_;
      } else {
        return initializationTimestampBuilder_.getMessage();
      }
    }
    /**
     * .google.protobuf.Timestamp initialization_timestamp = 6;
     */
    public Builder setInitializationTimestamp(com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp value) {
      if (initializationTimestampBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        initializationTimestamp_ = value;
        onChanged();
      } else {
        initializationTimestampBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .google.protobuf.Timestamp initialization_timestamp = 6;
     */
    public Builder setInitializationTimestamp(
        com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.Builder builderForValue) {
      if (initializationTimestampBuilder_ == null) {
        initializationTimestamp_ = builderForValue.build();
        onChanged();
      } else {
        initializationTimestampBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .google.protobuf.Timestamp initialization_timestamp = 6;
     */
    public Builder mergeInitializationTimestamp(com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp value) {
      if (initializationTimestampBuilder_ == null) {
        if (initializationTimestamp_ != null) {
          initializationTimestamp_ =
            com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.newBuilder(initializationTimestamp_).mergeFrom(value).buildPartial();
        } else {
          initializationTimestamp_ = value;
        }
        onChanged();
      } else {
        initializationTimestampBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .google.protobuf.Timestamp initialization_timestamp = 6;
     */
    public Builder clearInitializationTimestamp() {
      if (initializationTimestampBuilder_ == null) {
        initializationTimestamp_ = null;
        onChanged();
      } else {
        initializationTimestamp_ = null;
        initializationTimestampBuilder_ = null;
      }

      return this;
    }
    /**
     * .google.protobuf.Timestamp initialization_timestamp = 6;
     */
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.Builder getInitializationTimestampBuilder() {
      
      onChanged();
      return getInitializationTimestampFieldBuilder().getBuilder();
    }
    /**
     * .google.protobuf.Timestamp initialization_timestamp = 6;
     */
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.TimestampOrBuilder getInitializationTimestampOrBuilder() {
      if (initializationTimestampBuilder_ != null) {
        return initializationTimestampBuilder_.getMessageOrBuilder();
      } else {
        return initializationTimestamp_ == null ?
            com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : initializationTimestamp_;
      }
    }
    /**
     * .google.protobuf.Timestamp initialization_timestamp = 6;
     */
    private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
        com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp, com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.Builder, com.aliyun.openservices.ons.shaded.com.google.protobuf.TimestampOrBuilder> 
        getInitializationTimestampFieldBuilder() {
      if (initializationTimestampBuilder_ == null) {
        initializationTimestampBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
            com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp, com.aliyun.openservices.ons.shaded.com.google.protobuf.Timestamp.Builder, com.aliyun.openservices.ons.shaded.com.google.protobuf.TimestampOrBuilder>(
                getInitializationTimestamp(),
                getParentForChildren(),
                isClean());
        initializationTimestamp_ = null;
      }
      return initializationTimestampBuilder_;
    }

    private int batchSize_ ;
    /**
     * int32 batch_size = 7;
     * @return The batchSize.
     */
    @java.lang.Override
    public int getBatchSize() {
      return batchSize_;
    }
    /**
     * int32 batch_size = 7;
     * @param value The batchSize to set.
     * @return This builder for chaining.
     */
    public Builder setBatchSize(int value) {
      
      batchSize_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 batch_size = 7;
     * @return This builder for chaining.
     */
    public Builder clearBatchSize() {
      
      batchSize_ = 0;
      onChanged();
      return this;
    }

    private com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration invisibleDuration_;
    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> invisibleDurationBuilder_;
    /**
     * .google.protobuf.Duration invisible_duration = 8;
     * @return Whether the invisibleDuration field is set.
     */
    public boolean hasInvisibleDuration() {
      return invisibleDurationBuilder_ != null || invisibleDuration_ != null;
    }
    /**
     * .google.protobuf.Duration invisible_duration = 8;
     * @return The invisibleDuration.
     */
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration getInvisibleDuration() {
      if (invisibleDurationBuilder_ == null) {
        return invisibleDuration_ == null ? com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.getDefaultInstance() : invisibleDuration_;
      } else {
        return invisibleDurationBuilder_.getMessage();
      }
    }
    /**
     * .google.protobuf.Duration invisible_duration = 8;
     */
    public Builder setInvisibleDuration(com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration value) {
      if (invisibleDurationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        invisibleDuration_ = value;
        onChanged();
      } else {
        invisibleDurationBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .google.protobuf.Duration invisible_duration = 8;
     */
    public Builder setInvisibleDuration(
        com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder builderForValue) {
      if (invisibleDurationBuilder_ == null) {
        invisibleDuration_ = builderForValue.build();
        onChanged();
      } else {
        invisibleDurationBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .google.protobuf.Duration invisible_duration = 8;
     */
    public Builder mergeInvisibleDuration(com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration value) {
      if (invisibleDurationBuilder_ == null) {
        if (invisibleDuration_ != null) {
          invisibleDuration_ =
            com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.newBuilder(invisibleDuration_).mergeFrom(value).buildPartial();
        } else {
          invisibleDuration_ = value;
        }
        onChanged();
      } else {
        invisibleDurationBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .google.protobuf.Duration invisible_duration = 8;
     */
    public Builder clearInvisibleDuration() {
      if (invisibleDurationBuilder_ == null) {
        invisibleDuration_ = null;
        onChanged();
      } else {
        invisibleDuration_ = null;
        invisibleDurationBuilder_ = null;
      }

      return this;
    }
    /**
     * .google.protobuf.Duration invisible_duration = 8;
     */
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder getInvisibleDurationBuilder() {
      
      onChanged();
      return getInvisibleDurationFieldBuilder().getBuilder();
    }
    /**
     * .google.protobuf.Duration invisible_duration = 8;
     */
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.DurationOrBuilder getInvisibleDurationOrBuilder() {
      if (invisibleDurationBuilder_ != null) {
        return invisibleDurationBuilder_.getMessageOrBuilder();
      } else {
        return invisibleDuration_ == null ?
            com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.getDefaultInstance() : invisibleDuration_;
      }
    }
    /**
     * .google.protobuf.Duration invisible_duration = 8;
     */
    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> 
        getInvisibleDurationFieldBuilder() {
      if (invisibleDurationBuilder_ == null) {
        invisibleDurationBuilder_ = 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>(
                getInvisibleDuration(),
                getParentForChildren(),
                isClean());
        invisibleDuration_ = null;
      }
      return invisibleDurationBuilder_;
    }

    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 = 9;
     * @return Whether the awaitTime field is set.
     */
    public boolean hasAwaitTime() {
      return awaitTimeBuilder_ != null || awaitTime_ != null;
    }
    /**
     * .google.protobuf.Duration await_time = 9;
     * @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 = 9;
     */
    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 = 9;
     */
    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 = 9;
     */
    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 = 9;
     */
    public Builder clearAwaitTime() {
      if (awaitTimeBuilder_ == null) {
        awaitTime_ = null;
        onChanged();
      } else {
        awaitTime_ = null;
        awaitTimeBuilder_ = null;
      }

      return this;
    }
    /**
     * .google.protobuf.Duration await_time = 9;
     */
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.Duration.Builder getAwaitTimeBuilder() {
      
      onChanged();
      return getAwaitTimeFieldBuilder().getBuilder();
    }
    /**
     * .google.protobuf.Duration await_time = 9;
     */
    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 = 9;
     */
    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 boolean fifoFlag_ ;
    /**
     * bool fifo_flag = 10;
     * @return The fifoFlag.
     */
    @java.lang.Override
    public boolean getFifoFlag() {
      return fifoFlag_;
    }
    /**
     * bool fifo_flag = 10;
     * @param value The fifoFlag to set.
     * @return This builder for chaining.
     */
    public Builder setFifoFlag(boolean value) {
      
      fifoFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * bool fifo_flag = 10;
     * @return This builder for chaining.
     */
    public Builder clearFifoFlag() {
      
      fifoFlag_ = false;
      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.ReceiveMessageRequest)
  }

  // @@protoc_insertion_point(class_scope:apache.rocketmq.v1.ReceiveMessageRequest)
  private static final apache.rocketmq.v1.ReceiveMessageRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new apache.rocketmq.v1.ReceiveMessageRequest();
  }

  public static apache.rocketmq.v1.ReceiveMessageRequest 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 ReceiveMessageRequest 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 ReceiveMessageRequest(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.ReceiveMessageRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy