// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: achievement.proto

package io.grasscutter.net.proto.achievement;

/**
 * <pre>
 * CmdId: 1007
 * </pre>
 *
 * Protobuf type {@code AchievementAllDataNotify}
 */
public final class AchievementAllDataNotify extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:AchievementAllDataNotify)
    AchievementAllDataNotifyOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AchievementAllDataNotify.newBuilder() to construct.
  private AchievementAllDataNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private AchievementAllDataNotify() {
    achievementList_ = java.util.Collections.emptyList();
    rewardTakenGoalIdList_ = emptyIntList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AchievementAllDataNotify(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 56: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              rewardTakenGoalIdList_ = newIntList();
              mutable_bitField0_ |= 0x00000002;
            }
            rewardTakenGoalIdList_.addInt(input.readUInt32());
            break;
          }
          case 58: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
              rewardTakenGoalIdList_ = newIntList();
              mutable_bitField0_ |= 0x00000002;
            }
            while (input.getBytesUntilLimit() > 0) {
              rewardTakenGoalIdList_.addInt(input.readUInt32());
            }
            input.popLimit(limit);
            break;
          }
          case 74: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              achievementList_ = new java.util.ArrayList<io.grasscutter.net.proto.achievement.Achievement>();
              mutable_bitField0_ |= 0x00000001;
            }
            achievementList_.add(
                input.readMessage(io.grasscutter.net.proto.achievement.Achievement.parser(), extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        rewardTakenGoalIdList_.makeImmutable(); // C
      }
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        achievementList_ = java.util.Collections.unmodifiableList(achievementList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.achievement.AchievementOuterClass.internal_static_AchievementAllDataNotify_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.achievement.AchievementOuterClass.internal_static_AchievementAllDataNotify_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.achievement.AchievementAllDataNotify.class, io.grasscutter.net.proto.achievement.AchievementAllDataNotify.Builder.class);
  }

  public static final int ACHIEVEMENT_LIST_FIELD_NUMBER = 9;
  private java.util.List<io.grasscutter.net.proto.achievement.Achievement> achievementList_;
  /**
   * <code>repeated .Achievement achievement_list = 9;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.achievement.Achievement> getAchievementListList() {
    return achievementList_;
  }
  /**
   * <code>repeated .Achievement achievement_list = 9;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.achievement.AchievementOrBuilder> 
      getAchievementListOrBuilderList() {
    return achievementList_;
  }
  /**
   * <code>repeated .Achievement achievement_list = 9;</code>
   */
  @java.lang.Override
  public int getAchievementListCount() {
    return achievementList_.size();
  }
  /**
   * <code>repeated .Achievement achievement_list = 9;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.achievement.Achievement getAchievementList(int index) {
    return achievementList_.get(index);
  }
  /**
   * <code>repeated .Achievement achievement_list = 9;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.achievement.AchievementOrBuilder getAchievementListOrBuilder(
      int index) {
    return achievementList_.get(index);
  }

  public static final int REWARD_TAKEN_GOAL_ID_LIST_FIELD_NUMBER = 7;
  private com.google.protobuf.Internal.IntList rewardTakenGoalIdList_;
  /**
   * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
   * @return A list containing the rewardTakenGoalIdList.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer>
      getRewardTakenGoalIdListList() {
    return rewardTakenGoalIdList_;
  }
  /**
   * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
   * @return The count of rewardTakenGoalIdList.
   */
  public int getRewardTakenGoalIdListCount() {
    return rewardTakenGoalIdList_.size();
  }
  /**
   * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
   * @param index The index of the element to return.
   * @return The rewardTakenGoalIdList at the given index.
   */
  public int getRewardTakenGoalIdList(int index) {
    return rewardTakenGoalIdList_.getInt(index);
  }
  private int rewardTakenGoalIdListMemoizedSerializedSize = -1;

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    getSerializedSize();
    if (getRewardTakenGoalIdListList().size() > 0) {
      output.writeUInt32NoTag(58);
      output.writeUInt32NoTag(rewardTakenGoalIdListMemoizedSerializedSize);
    }
    for (int i = 0; i < rewardTakenGoalIdList_.size(); i++) {
      output.writeUInt32NoTag(rewardTakenGoalIdList_.getInt(i));
    }
    for (int i = 0; i < achievementList_.size(); i++) {
      output.writeMessage(9, achievementList_.get(i));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    {
      int dataSize = 0;
      for (int i = 0; i < rewardTakenGoalIdList_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(rewardTakenGoalIdList_.getInt(i));
      }
      size += dataSize;
      if (!getRewardTakenGoalIdListList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      rewardTakenGoalIdListMemoizedSerializedSize = dataSize;
    }
    for (int i = 0; i < achievementList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(9, achievementList_.get(i));
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof io.grasscutter.net.proto.achievement.AchievementAllDataNotify)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.achievement.AchievementAllDataNotify other = (io.grasscutter.net.proto.achievement.AchievementAllDataNotify) obj;

    if (!getAchievementListList()
        .equals(other.getAchievementListList())) return false;
    if (!getRewardTakenGoalIdListList()
        .equals(other.getRewardTakenGoalIdListList())) 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 (getAchievementListCount() > 0) {
      hash = (37 * hash) + ACHIEVEMENT_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getAchievementListList().hashCode();
    }
    if (getRewardTakenGoalIdListCount() > 0) {
      hash = (37 * hash) + REWARD_TAKEN_GOAL_ID_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getRewardTakenGoalIdListList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(io.grasscutter.net.proto.achievement.AchievementAllDataNotify prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * CmdId: 1007
   * </pre>
   *
   * Protobuf type {@code AchievementAllDataNotify}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:AchievementAllDataNotify)
      io.grasscutter.net.proto.achievement.AchievementAllDataNotifyOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.achievement.AchievementOuterClass.internal_static_AchievementAllDataNotify_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.achievement.AchievementOuterClass.internal_static_AchievementAllDataNotify_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.achievement.AchievementAllDataNotify.class, io.grasscutter.net.proto.achievement.AchievementAllDataNotify.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.achievement.AchievementAllDataNotify.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getAchievementListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (achievementListBuilder_ == null) {
        achievementList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        achievementListBuilder_.clear();
      }
      rewardTakenGoalIdList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.achievement.AchievementOuterClass.internal_static_AchievementAllDataNotify_descriptor;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.achievement.AchievementAllDataNotify getDefaultInstanceForType() {
      return io.grasscutter.net.proto.achievement.AchievementAllDataNotify.getDefaultInstance();
    }

    @java.lang.Override
    public io.grasscutter.net.proto.achievement.AchievementAllDataNotify build() {
      io.grasscutter.net.proto.achievement.AchievementAllDataNotify result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.achievement.AchievementAllDataNotify buildPartial() {
      io.grasscutter.net.proto.achievement.AchievementAllDataNotify result = new io.grasscutter.net.proto.achievement.AchievementAllDataNotify(this);
      int from_bitField0_ = bitField0_;
      if (achievementListBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          achievementList_ = java.util.Collections.unmodifiableList(achievementList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.achievementList_ = achievementList_;
      } else {
        result.achievementList_ = achievementListBuilder_.build();
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        rewardTakenGoalIdList_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.rewardTakenGoalIdList_ = rewardTakenGoalIdList_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        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.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.grasscutter.net.proto.achievement.AchievementAllDataNotify) {
        return mergeFrom((io.grasscutter.net.proto.achievement.AchievementAllDataNotify)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.achievement.AchievementAllDataNotify other) {
      if (other == io.grasscutter.net.proto.achievement.AchievementAllDataNotify.getDefaultInstance()) return this;
      if (achievementListBuilder_ == null) {
        if (!other.achievementList_.isEmpty()) {
          if (achievementList_.isEmpty()) {
            achievementList_ = other.achievementList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureAchievementListIsMutable();
            achievementList_.addAll(other.achievementList_);
          }
          onChanged();
        }
      } else {
        if (!other.achievementList_.isEmpty()) {
          if (achievementListBuilder_.isEmpty()) {
            achievementListBuilder_.dispose();
            achievementListBuilder_ = null;
            achievementList_ = other.achievementList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            achievementListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getAchievementListFieldBuilder() : null;
          } else {
            achievementListBuilder_.addAllMessages(other.achievementList_);
          }
        }
      }
      if (!other.rewardTakenGoalIdList_.isEmpty()) {
        if (rewardTakenGoalIdList_.isEmpty()) {
          rewardTakenGoalIdList_ = other.rewardTakenGoalIdList_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureRewardTakenGoalIdListIsMutable();
          rewardTakenGoalIdList_.addAll(other.rewardTakenGoalIdList_);
        }
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      io.grasscutter.net.proto.achievement.AchievementAllDataNotify parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.achievement.AchievementAllDataNotify) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<io.grasscutter.net.proto.achievement.Achievement> achievementList_ =
      java.util.Collections.emptyList();
    private void ensureAchievementListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        achievementList_ = new java.util.ArrayList<io.grasscutter.net.proto.achievement.Achievement>(achievementList_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.achievement.Achievement, io.grasscutter.net.proto.achievement.Achievement.Builder, io.grasscutter.net.proto.achievement.AchievementOrBuilder> achievementListBuilder_;

    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public java.util.List<io.grasscutter.net.proto.achievement.Achievement> getAchievementListList() {
      if (achievementListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(achievementList_);
      } else {
        return achievementListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public int getAchievementListCount() {
      if (achievementListBuilder_ == null) {
        return achievementList_.size();
      } else {
        return achievementListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public io.grasscutter.net.proto.achievement.Achievement getAchievementList(int index) {
      if (achievementListBuilder_ == null) {
        return achievementList_.get(index);
      } else {
        return achievementListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public Builder setAchievementList(
        int index, io.grasscutter.net.proto.achievement.Achievement value) {
      if (achievementListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAchievementListIsMutable();
        achievementList_.set(index, value);
        onChanged();
      } else {
        achievementListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public Builder setAchievementList(
        int index, io.grasscutter.net.proto.achievement.Achievement.Builder builderForValue) {
      if (achievementListBuilder_ == null) {
        ensureAchievementListIsMutable();
        achievementList_.set(index, builderForValue.build());
        onChanged();
      } else {
        achievementListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public Builder addAchievementList(io.grasscutter.net.proto.achievement.Achievement value) {
      if (achievementListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAchievementListIsMutable();
        achievementList_.add(value);
        onChanged();
      } else {
        achievementListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public Builder addAchievementList(
        int index, io.grasscutter.net.proto.achievement.Achievement value) {
      if (achievementListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAchievementListIsMutable();
        achievementList_.add(index, value);
        onChanged();
      } else {
        achievementListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public Builder addAchievementList(
        io.grasscutter.net.proto.achievement.Achievement.Builder builderForValue) {
      if (achievementListBuilder_ == null) {
        ensureAchievementListIsMutable();
        achievementList_.add(builderForValue.build());
        onChanged();
      } else {
        achievementListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public Builder addAchievementList(
        int index, io.grasscutter.net.proto.achievement.Achievement.Builder builderForValue) {
      if (achievementListBuilder_ == null) {
        ensureAchievementListIsMutable();
        achievementList_.add(index, builderForValue.build());
        onChanged();
      } else {
        achievementListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public Builder addAllAchievementList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.achievement.Achievement> values) {
      if (achievementListBuilder_ == null) {
        ensureAchievementListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, achievementList_);
        onChanged();
      } else {
        achievementListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public Builder clearAchievementList() {
      if (achievementListBuilder_ == null) {
        achievementList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        achievementListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public Builder removeAchievementList(int index) {
      if (achievementListBuilder_ == null) {
        ensureAchievementListIsMutable();
        achievementList_.remove(index);
        onChanged();
      } else {
        achievementListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public io.grasscutter.net.proto.achievement.Achievement.Builder getAchievementListBuilder(
        int index) {
      return getAchievementListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public io.grasscutter.net.proto.achievement.AchievementOrBuilder getAchievementListOrBuilder(
        int index) {
      if (achievementListBuilder_ == null) {
        return achievementList_.get(index);  } else {
        return achievementListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.achievement.AchievementOrBuilder> 
         getAchievementListOrBuilderList() {
      if (achievementListBuilder_ != null) {
        return achievementListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(achievementList_);
      }
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public io.grasscutter.net.proto.achievement.Achievement.Builder addAchievementListBuilder() {
      return getAchievementListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.achievement.Achievement.getDefaultInstance());
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public io.grasscutter.net.proto.achievement.Achievement.Builder addAchievementListBuilder(
        int index) {
      return getAchievementListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.achievement.Achievement.getDefaultInstance());
    }
    /**
     * <code>repeated .Achievement achievement_list = 9;</code>
     */
    public java.util.List<io.grasscutter.net.proto.achievement.Achievement.Builder> 
         getAchievementListBuilderList() {
      return getAchievementListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.achievement.Achievement, io.grasscutter.net.proto.achievement.Achievement.Builder, io.grasscutter.net.proto.achievement.AchievementOrBuilder> 
        getAchievementListFieldBuilder() {
      if (achievementListBuilder_ == null) {
        achievementListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.achievement.Achievement, io.grasscutter.net.proto.achievement.Achievement.Builder, io.grasscutter.net.proto.achievement.AchievementOrBuilder>(
                achievementList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        achievementList_ = null;
      }
      return achievementListBuilder_;
    }

    private com.google.protobuf.Internal.IntList rewardTakenGoalIdList_ = emptyIntList();
    private void ensureRewardTakenGoalIdListIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        rewardTakenGoalIdList_ = mutableCopy(rewardTakenGoalIdList_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
     * @return A list containing the rewardTakenGoalIdList.
     */
    public java.util.List<java.lang.Integer>
        getRewardTakenGoalIdListList() {
      return ((bitField0_ & 0x00000002) != 0) ?
               java.util.Collections.unmodifiableList(rewardTakenGoalIdList_) : rewardTakenGoalIdList_;
    }
    /**
     * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
     * @return The count of rewardTakenGoalIdList.
     */
    public int getRewardTakenGoalIdListCount() {
      return rewardTakenGoalIdList_.size();
    }
    /**
     * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
     * @param index The index of the element to return.
     * @return The rewardTakenGoalIdList at the given index.
     */
    public int getRewardTakenGoalIdList(int index) {
      return rewardTakenGoalIdList_.getInt(index);
    }
    /**
     * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
     * @param index The index to set the value at.
     * @param value The rewardTakenGoalIdList to set.
     * @return This builder for chaining.
     */
    public Builder setRewardTakenGoalIdList(
        int index, int value) {
      ensureRewardTakenGoalIdListIsMutable();
      rewardTakenGoalIdList_.setInt(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
     * @param value The rewardTakenGoalIdList to add.
     * @return This builder for chaining.
     */
    public Builder addRewardTakenGoalIdList(int value) {
      ensureRewardTakenGoalIdListIsMutable();
      rewardTakenGoalIdList_.addInt(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
     * @param values The rewardTakenGoalIdList to add.
     * @return This builder for chaining.
     */
    public Builder addAllRewardTakenGoalIdList(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureRewardTakenGoalIdListIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, rewardTakenGoalIdList_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 reward_taken_goal_id_list = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearRewardTakenGoalIdList() {
      rewardTakenGoalIdList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:AchievementAllDataNotify)
  }

  // @@protoc_insertion_point(class_scope:AchievementAllDataNotify)
  private static final io.grasscutter.net.proto.achievement.AchievementAllDataNotify DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grasscutter.net.proto.achievement.AchievementAllDataNotify();
  }

  public static io.grasscutter.net.proto.achievement.AchievementAllDataNotify getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<AchievementAllDataNotify>
      PARSER = new com.google.protobuf.AbstractParser<AchievementAllDataNotify>() {
    @java.lang.Override
    public AchievementAllDataNotify parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new AchievementAllDataNotify(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<AchievementAllDataNotify> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<AchievementAllDataNotify> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public io.grasscutter.net.proto.achievement.AchievementAllDataNotify getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

