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

package io.grasscutter.net.proto.activity;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private GearActivityDetailInfo(
      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 42: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              gearLevelDataList_ = new java.util.ArrayList<io.grasscutter.net.proto.activity.GearLevelData>();
              mutable_bitField0_ |= 0x00000001;
            }
            gearLevelDataList_.add(
                input.readMessage(io.grasscutter.net.proto.activity.GearLevelData.parser(), extensionRegistry));
            break;
          }
          case 98: {
            io.grasscutter.net.proto.activity.JigsawPictureData.Builder subBuilder = null;
            if (jigsawPictureData_ != null) {
              subBuilder = jigsawPictureData_.toBuilder();
            }
            jigsawPictureData_ = input.readMessage(io.grasscutter.net.proto.activity.JigsawPictureData.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(jigsawPictureData_);
              jigsawPictureData_ = subBuilder.buildPartial();
            }

            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_ & 0x00000001) != 0)) {
        gearLevelDataList_ = java.util.Collections.unmodifiableList(gearLevelDataList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.activity.Activity.internal_static_GearActivityDetailInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.activity.Activity.internal_static_GearActivityDetailInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.activity.GearActivityDetailInfo.class, io.grasscutter.net.proto.activity.GearActivityDetailInfo.Builder.class);
  }

  public static final int GEAR_LEVEL_DATA_LIST_FIELD_NUMBER = 5;
  private java.util.List<io.grasscutter.net.proto.activity.GearLevelData> gearLevelDataList_;
  /**
   * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.activity.GearLevelData> getGearLevelDataListList() {
    return gearLevelDataList_;
  }
  /**
   * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.activity.GearLevelDataOrBuilder> 
      getGearLevelDataListOrBuilderList() {
    return gearLevelDataList_;
  }
  /**
   * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
   */
  @java.lang.Override
  public int getGearLevelDataListCount() {
    return gearLevelDataList_.size();
  }
  /**
   * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.GearLevelData getGearLevelDataList(int index) {
    return gearLevelDataList_.get(index);
  }
  /**
   * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.GearLevelDataOrBuilder getGearLevelDataListOrBuilder(
      int index) {
    return gearLevelDataList_.get(index);
  }

  public static final int JIGSAW_PICTURE_DATA_FIELD_NUMBER = 12;
  private io.grasscutter.net.proto.activity.JigsawPictureData jigsawPictureData_;
  /**
   * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
   * @return Whether the jigsawPictureData field is set.
   */
  @java.lang.Override
  public boolean hasJigsawPictureData() {
    return jigsawPictureData_ != null;
  }
  /**
   * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
   * @return The jigsawPictureData.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.JigsawPictureData getJigsawPictureData() {
    return jigsawPictureData_ == null ? io.grasscutter.net.proto.activity.JigsawPictureData.getDefaultInstance() : jigsawPictureData_;
  }
  /**
   * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.JigsawPictureDataOrBuilder getJigsawPictureDataOrBuilder() {
    return getJigsawPictureData();
  }

  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 {
    for (int i = 0; i < gearLevelDataList_.size(); i++) {
      output.writeMessage(5, gearLevelDataList_.get(i));
    }
    if (jigsawPictureData_ != null) {
      output.writeMessage(12, getJigsawPictureData());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < gearLevelDataList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, gearLevelDataList_.get(i));
    }
    if (jigsawPictureData_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(12, getJigsawPictureData());
    }
    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.activity.GearActivityDetailInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.activity.GearActivityDetailInfo other = (io.grasscutter.net.proto.activity.GearActivityDetailInfo) obj;

    if (!getGearLevelDataListList()
        .equals(other.getGearLevelDataListList())) return false;
    if (hasJigsawPictureData() != other.hasJigsawPictureData()) return false;
    if (hasJigsawPictureData()) {
      if (!getJigsawPictureData()
          .equals(other.getJigsawPictureData())) 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 (getGearLevelDataListCount() > 0) {
      hash = (37 * hash) + GEAR_LEVEL_DATA_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getGearLevelDataListList().hashCode();
    }
    if (hasJigsawPictureData()) {
      hash = (37 * hash) + JIGSAW_PICTURE_DATA_FIELD_NUMBER;
      hash = (53 * hash) + getJigsawPictureData().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.activity.GearActivityDetailInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.activity.GearActivityDetailInfo 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.activity.GearActivityDetailInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.activity.GearActivityDetailInfo 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.activity.GearActivityDetailInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.activity.GearActivityDetailInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.activity.GearActivityDetailInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.activity.GearActivityDetailInfo 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.activity.GearActivityDetailInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.activity.GearActivityDetailInfo 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.activity.GearActivityDetailInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.activity.GearActivityDetailInfo 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.activity.GearActivityDetailInfo 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;
  }
  /**
   * Protobuf type {@code GearActivityDetailInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:GearActivityDetailInfo)
      io.grasscutter.net.proto.activity.GearActivityDetailInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_GearActivityDetailInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_GearActivityDetailInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.activity.GearActivityDetailInfo.class, io.grasscutter.net.proto.activity.GearActivityDetailInfo.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getGearLevelDataListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (gearLevelDataListBuilder_ == null) {
        gearLevelDataList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        gearLevelDataListBuilder_.clear();
      }
      if (jigsawPictureDataBuilder_ == null) {
        jigsawPictureData_ = null;
      } else {
        jigsawPictureData_ = null;
        jigsawPictureDataBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_GearActivityDetailInfo_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.activity.GearActivityDetailInfo buildPartial() {
      io.grasscutter.net.proto.activity.GearActivityDetailInfo result = new io.grasscutter.net.proto.activity.GearActivityDetailInfo(this);
      int from_bitField0_ = bitField0_;
      if (gearLevelDataListBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          gearLevelDataList_ = java.util.Collections.unmodifiableList(gearLevelDataList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.gearLevelDataList_ = gearLevelDataList_;
      } else {
        result.gearLevelDataList_ = gearLevelDataListBuilder_.build();
      }
      if (jigsawPictureDataBuilder_ == null) {
        result.jigsawPictureData_ = jigsawPictureData_;
      } else {
        result.jigsawPictureData_ = jigsawPictureDataBuilder_.build();
      }
      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.activity.GearActivityDetailInfo) {
        return mergeFrom((io.grasscutter.net.proto.activity.GearActivityDetailInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.activity.GearActivityDetailInfo other) {
      if (other == io.grasscutter.net.proto.activity.GearActivityDetailInfo.getDefaultInstance()) return this;
      if (gearLevelDataListBuilder_ == null) {
        if (!other.gearLevelDataList_.isEmpty()) {
          if (gearLevelDataList_.isEmpty()) {
            gearLevelDataList_ = other.gearLevelDataList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureGearLevelDataListIsMutable();
            gearLevelDataList_.addAll(other.gearLevelDataList_);
          }
          onChanged();
        }
      } else {
        if (!other.gearLevelDataList_.isEmpty()) {
          if (gearLevelDataListBuilder_.isEmpty()) {
            gearLevelDataListBuilder_.dispose();
            gearLevelDataListBuilder_ = null;
            gearLevelDataList_ = other.gearLevelDataList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            gearLevelDataListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getGearLevelDataListFieldBuilder() : null;
          } else {
            gearLevelDataListBuilder_.addAllMessages(other.gearLevelDataList_);
          }
        }
      }
      if (other.hasJigsawPictureData()) {
        mergeJigsawPictureData(other.getJigsawPictureData());
      }
      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.activity.GearActivityDetailInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.activity.GearActivityDetailInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<io.grasscutter.net.proto.activity.GearLevelData> gearLevelDataList_ =
      java.util.Collections.emptyList();
    private void ensureGearLevelDataListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        gearLevelDataList_ = new java.util.ArrayList<io.grasscutter.net.proto.activity.GearLevelData>(gearLevelDataList_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.activity.GearLevelData, io.grasscutter.net.proto.activity.GearLevelData.Builder, io.grasscutter.net.proto.activity.GearLevelDataOrBuilder> gearLevelDataListBuilder_;

    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public java.util.List<io.grasscutter.net.proto.activity.GearLevelData> getGearLevelDataListList() {
      if (gearLevelDataListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(gearLevelDataList_);
      } else {
        return gearLevelDataListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public int getGearLevelDataListCount() {
      if (gearLevelDataListBuilder_ == null) {
        return gearLevelDataList_.size();
      } else {
        return gearLevelDataListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public io.grasscutter.net.proto.activity.GearLevelData getGearLevelDataList(int index) {
      if (gearLevelDataListBuilder_ == null) {
        return gearLevelDataList_.get(index);
      } else {
        return gearLevelDataListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public Builder setGearLevelDataList(
        int index, io.grasscutter.net.proto.activity.GearLevelData value) {
      if (gearLevelDataListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGearLevelDataListIsMutable();
        gearLevelDataList_.set(index, value);
        onChanged();
      } else {
        gearLevelDataListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public Builder setGearLevelDataList(
        int index, io.grasscutter.net.proto.activity.GearLevelData.Builder builderForValue) {
      if (gearLevelDataListBuilder_ == null) {
        ensureGearLevelDataListIsMutable();
        gearLevelDataList_.set(index, builderForValue.build());
        onChanged();
      } else {
        gearLevelDataListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public Builder addGearLevelDataList(io.grasscutter.net.proto.activity.GearLevelData value) {
      if (gearLevelDataListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGearLevelDataListIsMutable();
        gearLevelDataList_.add(value);
        onChanged();
      } else {
        gearLevelDataListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public Builder addGearLevelDataList(
        int index, io.grasscutter.net.proto.activity.GearLevelData value) {
      if (gearLevelDataListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGearLevelDataListIsMutable();
        gearLevelDataList_.add(index, value);
        onChanged();
      } else {
        gearLevelDataListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public Builder addGearLevelDataList(
        io.grasscutter.net.proto.activity.GearLevelData.Builder builderForValue) {
      if (gearLevelDataListBuilder_ == null) {
        ensureGearLevelDataListIsMutable();
        gearLevelDataList_.add(builderForValue.build());
        onChanged();
      } else {
        gearLevelDataListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public Builder addGearLevelDataList(
        int index, io.grasscutter.net.proto.activity.GearLevelData.Builder builderForValue) {
      if (gearLevelDataListBuilder_ == null) {
        ensureGearLevelDataListIsMutable();
        gearLevelDataList_.add(index, builderForValue.build());
        onChanged();
      } else {
        gearLevelDataListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public Builder addAllGearLevelDataList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.activity.GearLevelData> values) {
      if (gearLevelDataListBuilder_ == null) {
        ensureGearLevelDataListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, gearLevelDataList_);
        onChanged();
      } else {
        gearLevelDataListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public Builder clearGearLevelDataList() {
      if (gearLevelDataListBuilder_ == null) {
        gearLevelDataList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        gearLevelDataListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public Builder removeGearLevelDataList(int index) {
      if (gearLevelDataListBuilder_ == null) {
        ensureGearLevelDataListIsMutable();
        gearLevelDataList_.remove(index);
        onChanged();
      } else {
        gearLevelDataListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public io.grasscutter.net.proto.activity.GearLevelData.Builder getGearLevelDataListBuilder(
        int index) {
      return getGearLevelDataListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public io.grasscutter.net.proto.activity.GearLevelDataOrBuilder getGearLevelDataListOrBuilder(
        int index) {
      if (gearLevelDataListBuilder_ == null) {
        return gearLevelDataList_.get(index);  } else {
        return gearLevelDataListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.activity.GearLevelDataOrBuilder> 
         getGearLevelDataListOrBuilderList() {
      if (gearLevelDataListBuilder_ != null) {
        return gearLevelDataListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(gearLevelDataList_);
      }
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public io.grasscutter.net.proto.activity.GearLevelData.Builder addGearLevelDataListBuilder() {
      return getGearLevelDataListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.activity.GearLevelData.getDefaultInstance());
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public io.grasscutter.net.proto.activity.GearLevelData.Builder addGearLevelDataListBuilder(
        int index) {
      return getGearLevelDataListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.activity.GearLevelData.getDefaultInstance());
    }
    /**
     * <code>repeated .GearLevelData gear_level_data_list = 5;</code>
     */
    public java.util.List<io.grasscutter.net.proto.activity.GearLevelData.Builder> 
         getGearLevelDataListBuilderList() {
      return getGearLevelDataListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.activity.GearLevelData, io.grasscutter.net.proto.activity.GearLevelData.Builder, io.grasscutter.net.proto.activity.GearLevelDataOrBuilder> 
        getGearLevelDataListFieldBuilder() {
      if (gearLevelDataListBuilder_ == null) {
        gearLevelDataListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.activity.GearLevelData, io.grasscutter.net.proto.activity.GearLevelData.Builder, io.grasscutter.net.proto.activity.GearLevelDataOrBuilder>(
                gearLevelDataList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        gearLevelDataList_ = null;
      }
      return gearLevelDataListBuilder_;
    }

    private io.grasscutter.net.proto.activity.JigsawPictureData jigsawPictureData_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.JigsawPictureData, io.grasscutter.net.proto.activity.JigsawPictureData.Builder, io.grasscutter.net.proto.activity.JigsawPictureDataOrBuilder> jigsawPictureDataBuilder_;
    /**
     * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
     * @return Whether the jigsawPictureData field is set.
     */
    public boolean hasJigsawPictureData() {
      return jigsawPictureDataBuilder_ != null || jigsawPictureData_ != null;
    }
    /**
     * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
     * @return The jigsawPictureData.
     */
    public io.grasscutter.net.proto.activity.JigsawPictureData getJigsawPictureData() {
      if (jigsawPictureDataBuilder_ == null) {
        return jigsawPictureData_ == null ? io.grasscutter.net.proto.activity.JigsawPictureData.getDefaultInstance() : jigsawPictureData_;
      } else {
        return jigsawPictureDataBuilder_.getMessage();
      }
    }
    /**
     * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
     */
    public Builder setJigsawPictureData(io.grasscutter.net.proto.activity.JigsawPictureData value) {
      if (jigsawPictureDataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        jigsawPictureData_ = value;
        onChanged();
      } else {
        jigsawPictureDataBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
     */
    public Builder setJigsawPictureData(
        io.grasscutter.net.proto.activity.JigsawPictureData.Builder builderForValue) {
      if (jigsawPictureDataBuilder_ == null) {
        jigsawPictureData_ = builderForValue.build();
        onChanged();
      } else {
        jigsawPictureDataBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
     */
    public Builder mergeJigsawPictureData(io.grasscutter.net.proto.activity.JigsawPictureData value) {
      if (jigsawPictureDataBuilder_ == null) {
        if (jigsawPictureData_ != null) {
          jigsawPictureData_ =
            io.grasscutter.net.proto.activity.JigsawPictureData.newBuilder(jigsawPictureData_).mergeFrom(value).buildPartial();
        } else {
          jigsawPictureData_ = value;
        }
        onChanged();
      } else {
        jigsawPictureDataBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
     */
    public Builder clearJigsawPictureData() {
      if (jigsawPictureDataBuilder_ == null) {
        jigsawPictureData_ = null;
        onChanged();
      } else {
        jigsawPictureData_ = null;
        jigsawPictureDataBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
     */
    public io.grasscutter.net.proto.activity.JigsawPictureData.Builder getJigsawPictureDataBuilder() {
      
      onChanged();
      return getJigsawPictureDataFieldBuilder().getBuilder();
    }
    /**
     * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
     */
    public io.grasscutter.net.proto.activity.JigsawPictureDataOrBuilder getJigsawPictureDataOrBuilder() {
      if (jigsawPictureDataBuilder_ != null) {
        return jigsawPictureDataBuilder_.getMessageOrBuilder();
      } else {
        return jigsawPictureData_ == null ?
            io.grasscutter.net.proto.activity.JigsawPictureData.getDefaultInstance() : jigsawPictureData_;
      }
    }
    /**
     * <code>.JigsawPictureData jigsaw_picture_data = 12;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.JigsawPictureData, io.grasscutter.net.proto.activity.JigsawPictureData.Builder, io.grasscutter.net.proto.activity.JigsawPictureDataOrBuilder> 
        getJigsawPictureDataFieldBuilder() {
      if (jigsawPictureDataBuilder_ == null) {
        jigsawPictureDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.activity.JigsawPictureData, io.grasscutter.net.proto.activity.JigsawPictureData.Builder, io.grasscutter.net.proto.activity.JigsawPictureDataOrBuilder>(
                getJigsawPictureData(),
                getParentForChildren(),
                isClean());
        jigsawPictureData_ = null;
      }
      return jigsawPictureDataBuilder_;
    }
    @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:GearActivityDetailInfo)
  }

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

  public static io.grasscutter.net.proto.activity.GearActivityDetailInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

