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

apache.rocketmq.v1.ConsumerData 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/definition.proto

package apache.rocketmq.v1;

/**
 * Protobuf type {@code apache.rocketmq.v1.ConsumerData}
 */
public final class ConsumerData extends
    com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:apache.rocketmq.v1.ConsumerData)
    ConsumerDataOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ConsumerData.newBuilder() to construct.
  private ConsumerData(com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ConsumerData() {
    subscriptions_ = java.util.Collections.emptyList();
    consumeModel_ = 0;
    consumePolicy_ = 0;
    consumeType_ = 0;
  }

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

  @java.lang.Override
  public final com.aliyun.openservices.ons.shaded.com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ConsumerData(
      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();
    }
    int mutable_bitField0_ = 0;
    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: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              subscriptions_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            subscriptions_.add(
                input.readMessage(apache.rocketmq.v1.SubscriptionEntry.parser(), extensionRegistry));
            break;
          }
          case 24: {
            int rawValue = input.readEnum();

            consumeModel_ = rawValue;
            break;
          }
          case 32: {
            int rawValue = input.readEnum();

            consumePolicy_ = rawValue;
            break;
          }
          case 42: {
            apache.rocketmq.v1.DeadLetterPolicy.Builder subBuilder = null;
            if (deadLetterPolicy_ != null) {
              subBuilder = deadLetterPolicy_.toBuilder();
            }
            deadLetterPolicy_ = input.readMessage(apache.rocketmq.v1.DeadLetterPolicy.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(deadLetterPolicy_);
              deadLetterPolicy_ = subBuilder.buildPartial();
            }

            break;
          }
          case 48: {
            int rawValue = input.readEnum();

            consumeType_ = rawValue;
            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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return apache.rocketmq.v1.MQDomain.internal_static_apache_rocketmq_v1_ConsumerData_descriptor;
  }

  @java.lang.Override
  protected com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return apache.rocketmq.v1.MQDomain.internal_static_apache_rocketmq_v1_ConsumerData_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            apache.rocketmq.v1.ConsumerData.class, apache.rocketmq.v1.ConsumerData.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 SUBSCRIPTIONS_FIELD_NUMBER = 2;
  private java.util.List subscriptions_;
  /**
   * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
   */
  @java.lang.Override
  public java.util.List getSubscriptionsList() {
    return subscriptions_;
  }
  /**
   * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
   */
  @java.lang.Override
  public java.util.List 
      getSubscriptionsOrBuilderList() {
    return subscriptions_;
  }
  /**
   * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
   */
  @java.lang.Override
  public int getSubscriptionsCount() {
    return subscriptions_.size();
  }
  /**
   * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
   */
  @java.lang.Override
  public apache.rocketmq.v1.SubscriptionEntry getSubscriptions(int index) {
    return subscriptions_.get(index);
  }
  /**
   * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
   */
  @java.lang.Override
  public apache.rocketmq.v1.SubscriptionEntryOrBuilder getSubscriptionsOrBuilder(
      int index) {
    return subscriptions_.get(index);
  }

  public static final int CONSUME_MODEL_FIELD_NUMBER = 3;
  private int consumeModel_;
  /**
   * .apache.rocketmq.v1.ConsumeModel consume_model = 3;
   * @return The enum numeric value on the wire for consumeModel.
   */
  @java.lang.Override public int getConsumeModelValue() {
    return consumeModel_;
  }
  /**
   * .apache.rocketmq.v1.ConsumeModel consume_model = 3;
   * @return The consumeModel.
   */
  @java.lang.Override public apache.rocketmq.v1.ConsumeModel getConsumeModel() {
    @SuppressWarnings("deprecation")
    apache.rocketmq.v1.ConsumeModel result = apache.rocketmq.v1.ConsumeModel.valueOf(consumeModel_);
    return result == null ? apache.rocketmq.v1.ConsumeModel.UNRECOGNIZED : result;
  }

  public static final int CONSUME_POLICY_FIELD_NUMBER = 4;
  private int consumePolicy_;
  /**
   * .apache.rocketmq.v1.ConsumePolicy consume_policy = 4;
   * @return The enum numeric value on the wire for consumePolicy.
   */
  @java.lang.Override public int getConsumePolicyValue() {
    return consumePolicy_;
  }
  /**
   * .apache.rocketmq.v1.ConsumePolicy consume_policy = 4;
   * @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 DEAD_LETTER_POLICY_FIELD_NUMBER = 5;
  private apache.rocketmq.v1.DeadLetterPolicy deadLetterPolicy_;
  /**
   * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
   * @return Whether the deadLetterPolicy field is set.
   */
  @java.lang.Override
  public boolean hasDeadLetterPolicy() {
    return deadLetterPolicy_ != null;
  }
  /**
   * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
   * @return The deadLetterPolicy.
   */
  @java.lang.Override
  public apache.rocketmq.v1.DeadLetterPolicy getDeadLetterPolicy() {
    return deadLetterPolicy_ == null ? apache.rocketmq.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_;
  }
  /**
   * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
   */
  @java.lang.Override
  public apache.rocketmq.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() {
    return getDeadLetterPolicy();
  }

  public static final int CONSUME_TYPE_FIELD_NUMBER = 6;
  private int consumeType_;
  /**
   * .apache.rocketmq.v1.ConsumeMessageType consume_type = 6;
   * @return The enum numeric value on the wire for consumeType.
   */
  @java.lang.Override public int getConsumeTypeValue() {
    return consumeType_;
  }
  /**
   * .apache.rocketmq.v1.ConsumeMessageType consume_type = 6;
   * @return The consumeType.
   */
  @java.lang.Override public apache.rocketmq.v1.ConsumeMessageType getConsumeType() {
    @SuppressWarnings("deprecation")
    apache.rocketmq.v1.ConsumeMessageType result = apache.rocketmq.v1.ConsumeMessageType.valueOf(consumeType_);
    return result == null ? apache.rocketmq.v1.ConsumeMessageType.UNRECOGNIZED : result;
  }

  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());
    }
    for (int i = 0; i < subscriptions_.size(); i++) {
      output.writeMessage(2, subscriptions_.get(i));
    }
    if (consumeModel_ != apache.rocketmq.v1.ConsumeModel.CLUSTERING.getNumber()) {
      output.writeEnum(3, consumeModel_);
    }
    if (consumePolicy_ != apache.rocketmq.v1.ConsumePolicy.RESUME.getNumber()) {
      output.writeEnum(4, consumePolicy_);
    }
    if (deadLetterPolicy_ != null) {
      output.writeMessage(5, getDeadLetterPolicy());
    }
    if (consumeType_ != apache.rocketmq.v1.ConsumeMessageType.ACTIVE.getNumber()) {
      output.writeEnum(6, consumeType_);
    }
    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());
    }
    for (int i = 0; i < subscriptions_.size(); i++) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, subscriptions_.get(i));
    }
    if (consumeModel_ != apache.rocketmq.v1.ConsumeModel.CLUSTERING.getNumber()) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeEnumSize(3, consumeModel_);
    }
    if (consumePolicy_ != apache.rocketmq.v1.ConsumePolicy.RESUME.getNumber()) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeEnumSize(4, consumePolicy_);
    }
    if (deadLetterPolicy_ != null) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getDeadLetterPolicy());
    }
    if (consumeType_ != apache.rocketmq.v1.ConsumeMessageType.ACTIVE.getNumber()) {
      size += com.aliyun.openservices.ons.shaded.com.google.protobuf.CodedOutputStream
        .computeEnumSize(6, consumeType_);
    }
    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.ConsumerData)) {
      return super.equals(obj);
    }
    apache.rocketmq.v1.ConsumerData other = (apache.rocketmq.v1.ConsumerData) obj;

    if (hasGroup() != other.hasGroup()) return false;
    if (hasGroup()) {
      if (!getGroup()
          .equals(other.getGroup())) return false;
    }
    if (!getSubscriptionsList()
        .equals(other.getSubscriptionsList())) return false;
    if (consumeModel_ != other.consumeModel_) return false;
    if (consumePolicy_ != other.consumePolicy_) return false;
    if (hasDeadLetterPolicy() != other.hasDeadLetterPolicy()) return false;
    if (hasDeadLetterPolicy()) {
      if (!getDeadLetterPolicy()
          .equals(other.getDeadLetterPolicy())) return false;
    }
    if (consumeType_ != other.consumeType_) 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 (getSubscriptionsCount() > 0) {
      hash = (37 * hash) + SUBSCRIPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getSubscriptionsList().hashCode();
    }
    hash = (37 * hash) + CONSUME_MODEL_FIELD_NUMBER;
    hash = (53 * hash) + consumeModel_;
    hash = (37 * hash) + CONSUME_POLICY_FIELD_NUMBER;
    hash = (53 * hash) + consumePolicy_;
    if (hasDeadLetterPolicy()) {
      hash = (37 * hash) + DEAD_LETTER_POLICY_FIELD_NUMBER;
      hash = (53 * hash) + getDeadLetterPolicy().hashCode();
    }
    hash = (37 * hash) + CONSUME_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + consumeType_;
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static apache.rocketmq.v1.ConsumerData parseFrom(
      java.nio.ByteBuffer data)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static apache.rocketmq.v1.ConsumerData 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.ConsumerData 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.ConsumerData 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.ConsumerData parseFrom(byte[] data)
      throws com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static apache.rocketmq.v1.ConsumerData 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.ConsumerData 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.ConsumerData 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.ConsumerData 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.ConsumerData 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.ConsumerData 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.ConsumerData 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.ConsumerData 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.ConsumerData}
   */
  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.ConsumerData)
      apache.rocketmq.v1.ConsumerDataOrBuilder {
    public static final com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return apache.rocketmq.v1.MQDomain.internal_static_apache_rocketmq_v1_ConsumerData_descriptor;
    }

    @java.lang.Override
    protected com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apache.rocketmq.v1.MQDomain.internal_static_apache_rocketmq_v1_ConsumerData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apache.rocketmq.v1.ConsumerData.class, apache.rocketmq.v1.ConsumerData.Builder.class);
    }

    // Construct using apache.rocketmq.v1.ConsumerData.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) {
        getSubscriptionsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (groupBuilder_ == null) {
        group_ = null;
      } else {
        group_ = null;
        groupBuilder_ = null;
      }
      if (subscriptionsBuilder_ == null) {
        subscriptions_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        subscriptionsBuilder_.clear();
      }
      consumeModel_ = 0;

      consumePolicy_ = 0;

      if (deadLetterPolicyBuilder_ == null) {
        deadLetterPolicy_ = null;
      } else {
        deadLetterPolicy_ = null;
        deadLetterPolicyBuilder_ = null;
      }
      consumeType_ = 0;

      return this;
    }

    @java.lang.Override
    public com.aliyun.openservices.ons.shaded.com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return apache.rocketmq.v1.MQDomain.internal_static_apache_rocketmq_v1_ConsumerData_descriptor;
    }

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

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

    @java.lang.Override
    public apache.rocketmq.v1.ConsumerData buildPartial() {
      apache.rocketmq.v1.ConsumerData result = new apache.rocketmq.v1.ConsumerData(this);
      int from_bitField0_ = bitField0_;
      if (groupBuilder_ == null) {
        result.group_ = group_;
      } else {
        result.group_ = groupBuilder_.build();
      }
      if (subscriptionsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.subscriptions_ = subscriptions_;
      } else {
        result.subscriptions_ = subscriptionsBuilder_.build();
      }
      result.consumeModel_ = consumeModel_;
      result.consumePolicy_ = consumePolicy_;
      if (deadLetterPolicyBuilder_ == null) {
        result.deadLetterPolicy_ = deadLetterPolicy_;
      } else {
        result.deadLetterPolicy_ = deadLetterPolicyBuilder_.build();
      }
      result.consumeType_ = consumeType_;
      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.ConsumerData) {
        return mergeFrom((apache.rocketmq.v1.ConsumerData)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(apache.rocketmq.v1.ConsumerData other) {
      if (other == apache.rocketmq.v1.ConsumerData.getDefaultInstance()) return this;
      if (other.hasGroup()) {
        mergeGroup(other.getGroup());
      }
      if (subscriptionsBuilder_ == null) {
        if (!other.subscriptions_.isEmpty()) {
          if (subscriptions_.isEmpty()) {
            subscriptions_ = other.subscriptions_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureSubscriptionsIsMutable();
            subscriptions_.addAll(other.subscriptions_);
          }
          onChanged();
        }
      } else {
        if (!other.subscriptions_.isEmpty()) {
          if (subscriptionsBuilder_.isEmpty()) {
            subscriptionsBuilder_.dispose();
            subscriptionsBuilder_ = null;
            subscriptions_ = other.subscriptions_;
            bitField0_ = (bitField0_ & ~0x00000001);
            subscriptionsBuilder_ = 
              com.aliyun.openservices.ons.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getSubscriptionsFieldBuilder() : null;
          } else {
            subscriptionsBuilder_.addAllMessages(other.subscriptions_);
          }
        }
      }
      if (other.consumeModel_ != 0) {
        setConsumeModelValue(other.getConsumeModelValue());
      }
      if (other.consumePolicy_ != 0) {
        setConsumePolicyValue(other.getConsumePolicyValue());
      }
      if (other.hasDeadLetterPolicy()) {
        mergeDeadLetterPolicy(other.getDeadLetterPolicy());
      }
      if (other.consumeType_ != 0) {
        setConsumeTypeValue(other.getConsumeTypeValue());
      }
      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.ConsumerData parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.aliyun.openservices.ons.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (apache.rocketmq.v1.ConsumerData) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    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.util.List subscriptions_ =
      java.util.Collections.emptyList();
    private void ensureSubscriptionsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        subscriptions_ = new java.util.ArrayList(subscriptions_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.aliyun.openservices.ons.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
        apache.rocketmq.v1.SubscriptionEntry, apache.rocketmq.v1.SubscriptionEntry.Builder, apache.rocketmq.v1.SubscriptionEntryOrBuilder> subscriptionsBuilder_;

    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public java.util.List getSubscriptionsList() {
      if (subscriptionsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(subscriptions_);
      } else {
        return subscriptionsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public int getSubscriptionsCount() {
      if (subscriptionsBuilder_ == null) {
        return subscriptions_.size();
      } else {
        return subscriptionsBuilder_.getCount();
      }
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public apache.rocketmq.v1.SubscriptionEntry getSubscriptions(int index) {
      if (subscriptionsBuilder_ == null) {
        return subscriptions_.get(index);
      } else {
        return subscriptionsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public Builder setSubscriptions(
        int index, apache.rocketmq.v1.SubscriptionEntry value) {
      if (subscriptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSubscriptionsIsMutable();
        subscriptions_.set(index, value);
        onChanged();
      } else {
        subscriptionsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public Builder setSubscriptions(
        int index, apache.rocketmq.v1.SubscriptionEntry.Builder builderForValue) {
      if (subscriptionsBuilder_ == null) {
        ensureSubscriptionsIsMutable();
        subscriptions_.set(index, builderForValue.build());
        onChanged();
      } else {
        subscriptionsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public Builder addSubscriptions(apache.rocketmq.v1.SubscriptionEntry value) {
      if (subscriptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSubscriptionsIsMutable();
        subscriptions_.add(value);
        onChanged();
      } else {
        subscriptionsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public Builder addSubscriptions(
        int index, apache.rocketmq.v1.SubscriptionEntry value) {
      if (subscriptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSubscriptionsIsMutable();
        subscriptions_.add(index, value);
        onChanged();
      } else {
        subscriptionsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public Builder addSubscriptions(
        apache.rocketmq.v1.SubscriptionEntry.Builder builderForValue) {
      if (subscriptionsBuilder_ == null) {
        ensureSubscriptionsIsMutable();
        subscriptions_.add(builderForValue.build());
        onChanged();
      } else {
        subscriptionsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public Builder addSubscriptions(
        int index, apache.rocketmq.v1.SubscriptionEntry.Builder builderForValue) {
      if (subscriptionsBuilder_ == null) {
        ensureSubscriptionsIsMutable();
        subscriptions_.add(index, builderForValue.build());
        onChanged();
      } else {
        subscriptionsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public Builder addAllSubscriptions(
        java.lang.Iterable values) {
      if (subscriptionsBuilder_ == null) {
        ensureSubscriptionsIsMutable();
        com.aliyun.openservices.ons.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, subscriptions_);
        onChanged();
      } else {
        subscriptionsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public Builder clearSubscriptions() {
      if (subscriptionsBuilder_ == null) {
        subscriptions_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        subscriptionsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public Builder removeSubscriptions(int index) {
      if (subscriptionsBuilder_ == null) {
        ensureSubscriptionsIsMutable();
        subscriptions_.remove(index);
        onChanged();
      } else {
        subscriptionsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public apache.rocketmq.v1.SubscriptionEntry.Builder getSubscriptionsBuilder(
        int index) {
      return getSubscriptionsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public apache.rocketmq.v1.SubscriptionEntryOrBuilder getSubscriptionsOrBuilder(
        int index) {
      if (subscriptionsBuilder_ == null) {
        return subscriptions_.get(index);  } else {
        return subscriptionsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public java.util.List 
         getSubscriptionsOrBuilderList() {
      if (subscriptionsBuilder_ != null) {
        return subscriptionsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(subscriptions_);
      }
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public apache.rocketmq.v1.SubscriptionEntry.Builder addSubscriptionsBuilder() {
      return getSubscriptionsFieldBuilder().addBuilder(
          apache.rocketmq.v1.SubscriptionEntry.getDefaultInstance());
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public apache.rocketmq.v1.SubscriptionEntry.Builder addSubscriptionsBuilder(
        int index) {
      return getSubscriptionsFieldBuilder().addBuilder(
          index, apache.rocketmq.v1.SubscriptionEntry.getDefaultInstance());
    }
    /**
     * repeated .apache.rocketmq.v1.SubscriptionEntry subscriptions = 2;
     */
    public java.util.List 
         getSubscriptionsBuilderList() {
      return getSubscriptionsFieldBuilder().getBuilderList();
    }
    private com.aliyun.openservices.ons.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
        apache.rocketmq.v1.SubscriptionEntry, apache.rocketmq.v1.SubscriptionEntry.Builder, apache.rocketmq.v1.SubscriptionEntryOrBuilder> 
        getSubscriptionsFieldBuilder() {
      if (subscriptionsBuilder_ == null) {
        subscriptionsBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
            apache.rocketmq.v1.SubscriptionEntry, apache.rocketmq.v1.SubscriptionEntry.Builder, apache.rocketmq.v1.SubscriptionEntryOrBuilder>(
                subscriptions_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        subscriptions_ = null;
      }
      return subscriptionsBuilder_;
    }

    private int consumeModel_ = 0;
    /**
     * .apache.rocketmq.v1.ConsumeModel consume_model = 3;
     * @return The enum numeric value on the wire for consumeModel.
     */
    @java.lang.Override public int getConsumeModelValue() {
      return consumeModel_;
    }
    /**
     * .apache.rocketmq.v1.ConsumeModel consume_model = 3;
     * @param value The enum numeric value on the wire for consumeModel to set.
     * @return This builder for chaining.
     */
    public Builder setConsumeModelValue(int value) {
      
      consumeModel_ = value;
      onChanged();
      return this;
    }
    /**
     * .apache.rocketmq.v1.ConsumeModel consume_model = 3;
     * @return The consumeModel.
     */
    @java.lang.Override
    public apache.rocketmq.v1.ConsumeModel getConsumeModel() {
      @SuppressWarnings("deprecation")
      apache.rocketmq.v1.ConsumeModel result = apache.rocketmq.v1.ConsumeModel.valueOf(consumeModel_);
      return result == null ? apache.rocketmq.v1.ConsumeModel.UNRECOGNIZED : result;
    }
    /**
     * .apache.rocketmq.v1.ConsumeModel consume_model = 3;
     * @param value The consumeModel to set.
     * @return This builder for chaining.
     */
    public Builder setConsumeModel(apache.rocketmq.v1.ConsumeModel value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      consumeModel_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .apache.rocketmq.v1.ConsumeModel consume_model = 3;
     * @return This builder for chaining.
     */
    public Builder clearConsumeModel() {
      
      consumeModel_ = 0;
      onChanged();
      return this;
    }

    private int consumePolicy_ = 0;
    /**
     * .apache.rocketmq.v1.ConsumePolicy consume_policy = 4;
     * @return The enum numeric value on the wire for consumePolicy.
     */
    @java.lang.Override public int getConsumePolicyValue() {
      return consumePolicy_;
    }
    /**
     * .apache.rocketmq.v1.ConsumePolicy consume_policy = 4;
     * @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 = 4;
     * @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 = 4;
     * @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 = 4;
     * @return This builder for chaining.
     */
    public Builder clearConsumePolicy() {
      
      consumePolicy_ = 0;
      onChanged();
      return this;
    }

    private apache.rocketmq.v1.DeadLetterPolicy deadLetterPolicy_;
    private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
        apache.rocketmq.v1.DeadLetterPolicy, apache.rocketmq.v1.DeadLetterPolicy.Builder, apache.rocketmq.v1.DeadLetterPolicyOrBuilder> deadLetterPolicyBuilder_;
    /**
     * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
     * @return Whether the deadLetterPolicy field is set.
     */
    public boolean hasDeadLetterPolicy() {
      return deadLetterPolicyBuilder_ != null || deadLetterPolicy_ != null;
    }
    /**
     * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
     * @return The deadLetterPolicy.
     */
    public apache.rocketmq.v1.DeadLetterPolicy getDeadLetterPolicy() {
      if (deadLetterPolicyBuilder_ == null) {
        return deadLetterPolicy_ == null ? apache.rocketmq.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_;
      } else {
        return deadLetterPolicyBuilder_.getMessage();
      }
    }
    /**
     * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
     */
    public Builder setDeadLetterPolicy(apache.rocketmq.v1.DeadLetterPolicy value) {
      if (deadLetterPolicyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        deadLetterPolicy_ = value;
        onChanged();
      } else {
        deadLetterPolicyBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
     */
    public Builder setDeadLetterPolicy(
        apache.rocketmq.v1.DeadLetterPolicy.Builder builderForValue) {
      if (deadLetterPolicyBuilder_ == null) {
        deadLetterPolicy_ = builderForValue.build();
        onChanged();
      } else {
        deadLetterPolicyBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
     */
    public Builder mergeDeadLetterPolicy(apache.rocketmq.v1.DeadLetterPolicy value) {
      if (deadLetterPolicyBuilder_ == null) {
        if (deadLetterPolicy_ != null) {
          deadLetterPolicy_ =
            apache.rocketmq.v1.DeadLetterPolicy.newBuilder(deadLetterPolicy_).mergeFrom(value).buildPartial();
        } else {
          deadLetterPolicy_ = value;
        }
        onChanged();
      } else {
        deadLetterPolicyBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
     */
    public Builder clearDeadLetterPolicy() {
      if (deadLetterPolicyBuilder_ == null) {
        deadLetterPolicy_ = null;
        onChanged();
      } else {
        deadLetterPolicy_ = null;
        deadLetterPolicyBuilder_ = null;
      }

      return this;
    }
    /**
     * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
     */
    public apache.rocketmq.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() {
      
      onChanged();
      return getDeadLetterPolicyFieldBuilder().getBuilder();
    }
    /**
     * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
     */
    public apache.rocketmq.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() {
      if (deadLetterPolicyBuilder_ != null) {
        return deadLetterPolicyBuilder_.getMessageOrBuilder();
      } else {
        return deadLetterPolicy_ == null ?
            apache.rocketmq.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_;
      }
    }
    /**
     * .apache.rocketmq.v1.DeadLetterPolicy dead_letter_policy = 5;
     */
    private com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
        apache.rocketmq.v1.DeadLetterPolicy, apache.rocketmq.v1.DeadLetterPolicy.Builder, apache.rocketmq.v1.DeadLetterPolicyOrBuilder> 
        getDeadLetterPolicyFieldBuilder() {
      if (deadLetterPolicyBuilder_ == null) {
        deadLetterPolicyBuilder_ = new com.aliyun.openservices.ons.shaded.com.google.protobuf.SingleFieldBuilderV3<
            apache.rocketmq.v1.DeadLetterPolicy, apache.rocketmq.v1.DeadLetterPolicy.Builder, apache.rocketmq.v1.DeadLetterPolicyOrBuilder>(
                getDeadLetterPolicy(),
                getParentForChildren(),
                isClean());
        deadLetterPolicy_ = null;
      }
      return deadLetterPolicyBuilder_;
    }

    private int consumeType_ = 0;
    /**
     * .apache.rocketmq.v1.ConsumeMessageType consume_type = 6;
     * @return The enum numeric value on the wire for consumeType.
     */
    @java.lang.Override public int getConsumeTypeValue() {
      return consumeType_;
    }
    /**
     * .apache.rocketmq.v1.ConsumeMessageType consume_type = 6;
     * @param value The enum numeric value on the wire for consumeType to set.
     * @return This builder for chaining.
     */
    public Builder setConsumeTypeValue(int value) {
      
      consumeType_ = value;
      onChanged();
      return this;
    }
    /**
     * .apache.rocketmq.v1.ConsumeMessageType consume_type = 6;
     * @return The consumeType.
     */
    @java.lang.Override
    public apache.rocketmq.v1.ConsumeMessageType getConsumeType() {
      @SuppressWarnings("deprecation")
      apache.rocketmq.v1.ConsumeMessageType result = apache.rocketmq.v1.ConsumeMessageType.valueOf(consumeType_);
      return result == null ? apache.rocketmq.v1.ConsumeMessageType.UNRECOGNIZED : result;
    }
    /**
     * .apache.rocketmq.v1.ConsumeMessageType consume_type = 6;
     * @param value The consumeType to set.
     * @return This builder for chaining.
     */
    public Builder setConsumeType(apache.rocketmq.v1.ConsumeMessageType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      consumeType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .apache.rocketmq.v1.ConsumeMessageType consume_type = 6;
     * @return This builder for chaining.
     */
    public Builder clearConsumeType() {
      
      consumeType_ = 0;
      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.ConsumerData)
  }

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy