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

package io.grasscutter.net.proto.activity;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private DigActivityDetailInfo(
      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 40: {

            stageId_ = input.readUInt32();
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              digMarkPointList_ = new java.util.ArrayList<io.grasscutter.net.proto.activity.DigMarkPoint>();
              mutable_bitField0_ |= 0x00000001;
            }
            digMarkPointList_.add(
                input.readMessage(io.grasscutter.net.proto.activity.DigMarkPoint.parser(), extensionRegistry));
            break;
          }
          case 104: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              stageIdList_ = newIntList();
              mutable_bitField0_ |= 0x00000002;
            }
            stageIdList_.addInt(input.readUInt32());
            break;
          }
          case 106: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
              stageIdList_ = newIntList();
              mutable_bitField0_ |= 0x00000002;
            }
            while (input.getBytesUntilLimit() > 0) {
              stageIdList_.addInt(input.readUInt32());
            }
            input.popLimit(limit);
            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)) {
        digMarkPointList_ = java.util.Collections.unmodifiableList(digMarkPointList_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        stageIdList_.makeImmutable(); // C
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.activity.Activity.internal_static_DigActivityDetailInfo_descriptor;
  }

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

  public static final int DIG_MARK_POINT_LIST_FIELD_NUMBER = 6;
  private java.util.List<io.grasscutter.net.proto.activity.DigMarkPoint> digMarkPointList_;
  /**
   * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.activity.DigMarkPoint> getDigMarkPointListList() {
    return digMarkPointList_;
  }
  /**
   * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.activity.DigMarkPointOrBuilder> 
      getDigMarkPointListOrBuilderList() {
    return digMarkPointList_;
  }
  /**
   * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
   */
  @java.lang.Override
  public int getDigMarkPointListCount() {
    return digMarkPointList_.size();
  }
  /**
   * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.DigMarkPoint getDigMarkPointList(int index) {
    return digMarkPointList_.get(index);
  }
  /**
   * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.DigMarkPointOrBuilder getDigMarkPointListOrBuilder(
      int index) {
    return digMarkPointList_.get(index);
  }

  public static final int STAGE_ID_LIST_FIELD_NUMBER = 13;
  private com.google.protobuf.Internal.IntList stageIdList_;
  /**
   * <code>repeated uint32 stage_id_list = 13;</code>
   * @return A list containing the stageIdList.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer>
      getStageIdListList() {
    return stageIdList_;
  }
  /**
   * <code>repeated uint32 stage_id_list = 13;</code>
   * @return The count of stageIdList.
   */
  public int getStageIdListCount() {
    return stageIdList_.size();
  }
  /**
   * <code>repeated uint32 stage_id_list = 13;</code>
   * @param index The index of the element to return.
   * @return The stageIdList at the given index.
   */
  public int getStageIdList(int index) {
    return stageIdList_.getInt(index);
  }
  private int stageIdListMemoizedSerializedSize = -1;

  public static final int STAGE_ID_FIELD_NUMBER = 5;
  private int stageId_;
  /**
   * <code>uint32 stage_id = 5;</code>
   * @return The stageId.
   */
  @java.lang.Override
  public int getStageId() {
    return stageId_;
  }

  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 (stageId_ != 0) {
      output.writeUInt32(5, stageId_);
    }
    for (int i = 0; i < digMarkPointList_.size(); i++) {
      output.writeMessage(6, digMarkPointList_.get(i));
    }
    if (getStageIdListList().size() > 0) {
      output.writeUInt32NoTag(106);
      output.writeUInt32NoTag(stageIdListMemoizedSerializedSize);
    }
    for (int i = 0; i < stageIdList_.size(); i++) {
      output.writeUInt32NoTag(stageIdList_.getInt(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (stageId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(5, stageId_);
    }
    for (int i = 0; i < digMarkPointList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, digMarkPointList_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < stageIdList_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(stageIdList_.getInt(i));
      }
      size += dataSize;
      if (!getStageIdListList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      stageIdListMemoizedSerializedSize = dataSize;
    }
    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.DigActivityDetailInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.activity.DigActivityDetailInfo other = (io.grasscutter.net.proto.activity.DigActivityDetailInfo) obj;

    if (!getDigMarkPointListList()
        .equals(other.getDigMarkPointListList())) return false;
    if (!getStageIdListList()
        .equals(other.getStageIdListList())) return false;
    if (getStageId()
        != other.getStageId()) 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 (getDigMarkPointListCount() > 0) {
      hash = (37 * hash) + DIG_MARK_POINT_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getDigMarkPointListList().hashCode();
    }
    if (getStageIdListCount() > 0) {
      hash = (37 * hash) + STAGE_ID_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getStageIdListList().hashCode();
    }
    hash = (37 * hash) + STAGE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getStageId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getDigMarkPointListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (digMarkPointListBuilder_ == null) {
        digMarkPointList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        digMarkPointListBuilder_.clear();
      }
      stageIdList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000002);
      stageId_ = 0;

      return this;
    }

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

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

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

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

    public Builder mergeFrom(io.grasscutter.net.proto.activity.DigActivityDetailInfo other) {
      if (other == io.grasscutter.net.proto.activity.DigActivityDetailInfo.getDefaultInstance()) return this;
      if (digMarkPointListBuilder_ == null) {
        if (!other.digMarkPointList_.isEmpty()) {
          if (digMarkPointList_.isEmpty()) {
            digMarkPointList_ = other.digMarkPointList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureDigMarkPointListIsMutable();
            digMarkPointList_.addAll(other.digMarkPointList_);
          }
          onChanged();
        }
      } else {
        if (!other.digMarkPointList_.isEmpty()) {
          if (digMarkPointListBuilder_.isEmpty()) {
            digMarkPointListBuilder_.dispose();
            digMarkPointListBuilder_ = null;
            digMarkPointList_ = other.digMarkPointList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            digMarkPointListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDigMarkPointListFieldBuilder() : null;
          } else {
            digMarkPointListBuilder_.addAllMessages(other.digMarkPointList_);
          }
        }
      }
      if (!other.stageIdList_.isEmpty()) {
        if (stageIdList_.isEmpty()) {
          stageIdList_ = other.stageIdList_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureStageIdListIsMutable();
          stageIdList_.addAll(other.stageIdList_);
        }
        onChanged();
      }
      if (other.getStageId() != 0) {
        setStageId(other.getStageId());
      }
      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.DigActivityDetailInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.activity.DigActivityDetailInfo) 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.DigMarkPoint> digMarkPointList_ =
      java.util.Collections.emptyList();
    private void ensureDigMarkPointListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        digMarkPointList_ = new java.util.ArrayList<io.grasscutter.net.proto.activity.DigMarkPoint>(digMarkPointList_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.activity.DigMarkPoint, io.grasscutter.net.proto.activity.DigMarkPoint.Builder, io.grasscutter.net.proto.activity.DigMarkPointOrBuilder> digMarkPointListBuilder_;

    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public java.util.List<io.grasscutter.net.proto.activity.DigMarkPoint> getDigMarkPointListList() {
      if (digMarkPointListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(digMarkPointList_);
      } else {
        return digMarkPointListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public int getDigMarkPointListCount() {
      if (digMarkPointListBuilder_ == null) {
        return digMarkPointList_.size();
      } else {
        return digMarkPointListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public io.grasscutter.net.proto.activity.DigMarkPoint getDigMarkPointList(int index) {
      if (digMarkPointListBuilder_ == null) {
        return digMarkPointList_.get(index);
      } else {
        return digMarkPointListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public Builder setDigMarkPointList(
        int index, io.grasscutter.net.proto.activity.DigMarkPoint value) {
      if (digMarkPointListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDigMarkPointListIsMutable();
        digMarkPointList_.set(index, value);
        onChanged();
      } else {
        digMarkPointListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public Builder setDigMarkPointList(
        int index, io.grasscutter.net.proto.activity.DigMarkPoint.Builder builderForValue) {
      if (digMarkPointListBuilder_ == null) {
        ensureDigMarkPointListIsMutable();
        digMarkPointList_.set(index, builderForValue.build());
        onChanged();
      } else {
        digMarkPointListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public Builder addDigMarkPointList(io.grasscutter.net.proto.activity.DigMarkPoint value) {
      if (digMarkPointListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDigMarkPointListIsMutable();
        digMarkPointList_.add(value);
        onChanged();
      } else {
        digMarkPointListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public Builder addDigMarkPointList(
        int index, io.grasscutter.net.proto.activity.DigMarkPoint value) {
      if (digMarkPointListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDigMarkPointListIsMutable();
        digMarkPointList_.add(index, value);
        onChanged();
      } else {
        digMarkPointListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public Builder addDigMarkPointList(
        io.grasscutter.net.proto.activity.DigMarkPoint.Builder builderForValue) {
      if (digMarkPointListBuilder_ == null) {
        ensureDigMarkPointListIsMutable();
        digMarkPointList_.add(builderForValue.build());
        onChanged();
      } else {
        digMarkPointListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public Builder addDigMarkPointList(
        int index, io.grasscutter.net.proto.activity.DigMarkPoint.Builder builderForValue) {
      if (digMarkPointListBuilder_ == null) {
        ensureDigMarkPointListIsMutable();
        digMarkPointList_.add(index, builderForValue.build());
        onChanged();
      } else {
        digMarkPointListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public Builder addAllDigMarkPointList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.activity.DigMarkPoint> values) {
      if (digMarkPointListBuilder_ == null) {
        ensureDigMarkPointListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, digMarkPointList_);
        onChanged();
      } else {
        digMarkPointListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public Builder clearDigMarkPointList() {
      if (digMarkPointListBuilder_ == null) {
        digMarkPointList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        digMarkPointListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public Builder removeDigMarkPointList(int index) {
      if (digMarkPointListBuilder_ == null) {
        ensureDigMarkPointListIsMutable();
        digMarkPointList_.remove(index);
        onChanged();
      } else {
        digMarkPointListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public io.grasscutter.net.proto.activity.DigMarkPoint.Builder getDigMarkPointListBuilder(
        int index) {
      return getDigMarkPointListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public io.grasscutter.net.proto.activity.DigMarkPointOrBuilder getDigMarkPointListOrBuilder(
        int index) {
      if (digMarkPointListBuilder_ == null) {
        return digMarkPointList_.get(index);  } else {
        return digMarkPointListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.activity.DigMarkPointOrBuilder> 
         getDigMarkPointListOrBuilderList() {
      if (digMarkPointListBuilder_ != null) {
        return digMarkPointListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(digMarkPointList_);
      }
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public io.grasscutter.net.proto.activity.DigMarkPoint.Builder addDigMarkPointListBuilder() {
      return getDigMarkPointListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.activity.DigMarkPoint.getDefaultInstance());
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public io.grasscutter.net.proto.activity.DigMarkPoint.Builder addDigMarkPointListBuilder(
        int index) {
      return getDigMarkPointListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.activity.DigMarkPoint.getDefaultInstance());
    }
    /**
     * <code>repeated .DigMarkPoint dig_mark_point_list = 6;</code>
     */
    public java.util.List<io.grasscutter.net.proto.activity.DigMarkPoint.Builder> 
         getDigMarkPointListBuilderList() {
      return getDigMarkPointListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.activity.DigMarkPoint, io.grasscutter.net.proto.activity.DigMarkPoint.Builder, io.grasscutter.net.proto.activity.DigMarkPointOrBuilder> 
        getDigMarkPointListFieldBuilder() {
      if (digMarkPointListBuilder_ == null) {
        digMarkPointListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.activity.DigMarkPoint, io.grasscutter.net.proto.activity.DigMarkPoint.Builder, io.grasscutter.net.proto.activity.DigMarkPointOrBuilder>(
                digMarkPointList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        digMarkPointList_ = null;
      }
      return digMarkPointListBuilder_;
    }

    private com.google.protobuf.Internal.IntList stageIdList_ = emptyIntList();
    private void ensureStageIdListIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        stageIdList_ = mutableCopy(stageIdList_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * <code>repeated uint32 stage_id_list = 13;</code>
     * @return A list containing the stageIdList.
     */
    public java.util.List<java.lang.Integer>
        getStageIdListList() {
      return ((bitField0_ & 0x00000002) != 0) ?
               java.util.Collections.unmodifiableList(stageIdList_) : stageIdList_;
    }
    /**
     * <code>repeated uint32 stage_id_list = 13;</code>
     * @return The count of stageIdList.
     */
    public int getStageIdListCount() {
      return stageIdList_.size();
    }
    /**
     * <code>repeated uint32 stage_id_list = 13;</code>
     * @param index The index of the element to return.
     * @return The stageIdList at the given index.
     */
    public int getStageIdList(int index) {
      return stageIdList_.getInt(index);
    }
    /**
     * <code>repeated uint32 stage_id_list = 13;</code>
     * @param index The index to set the value at.
     * @param value The stageIdList to set.
     * @return This builder for chaining.
     */
    public Builder setStageIdList(
        int index, int value) {
      ensureStageIdListIsMutable();
      stageIdList_.setInt(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 stage_id_list = 13;</code>
     * @param value The stageIdList to add.
     * @return This builder for chaining.
     */
    public Builder addStageIdList(int value) {
      ensureStageIdListIsMutable();
      stageIdList_.addInt(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 stage_id_list = 13;</code>
     * @param values The stageIdList to add.
     * @return This builder for chaining.
     */
    public Builder addAllStageIdList(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureStageIdListIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, stageIdList_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 stage_id_list = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearStageIdList() {
      stageIdList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }

    private int stageId_ ;
    /**
     * <code>uint32 stage_id = 5;</code>
     * @return The stageId.
     */
    @java.lang.Override
    public int getStageId() {
      return stageId_;
    }
    /**
     * <code>uint32 stage_id = 5;</code>
     * @param value The stageId to set.
     * @return This builder for chaining.
     */
    public Builder setStageId(int value) {
      
      stageId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 stage_id = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearStageId() {
      
      stageId_ = 0;
      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:DigActivityDetailInfo)
  }

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

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

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

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

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

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

}

