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

package emu.grasscutter.net.proto;

public final class DigInfoOuterClass {
  private DigInfoOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface DigInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:DigInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated uint32 stageIdList = 14;</code>
     * @return A list containing the stageIdList.
     */
    java.util.List<java.lang.Integer> getStageIdListList();
    /**
     * <code>repeated uint32 stageIdList = 14;</code>
     * @return The count of stageIdList.
     */
    int getStageIdListCount();
    /**
     * <code>repeated uint32 stageIdList = 14;</code>
     * @param index The index of the element to return.
     * @return The stageIdList at the given index.
     */
    int getStageIdList(int index);

    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    java.util.List<emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPoint> 
        getDigMarkPointListList();
    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPoint getDigMarkPointList(int index);
    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    int getDigMarkPointListCount();
    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPointOrBuilder> 
        getDigMarkPointListOrBuilderList();
    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPointOrBuilder getDigMarkPointListOrBuilder(
        int index);

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

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private DigInfo(
        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 18: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                digMarkPointList_ = new java.util.ArrayList<emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPoint>();
                mutable_bitField0_ |= 0x00000002;
              }
              digMarkPointList_.add(
                  input.readMessage(emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPoint.parser(), extensionRegistry));
              break;
            }
            case 80: {

              stageId_ = input.readUInt32();
              break;
            }
            case 112: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                stageIdList_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              stageIdList_.addInt(input.readUInt32());
              break;
            }
            case 114: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                stageIdList_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              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_ & 0x00000002) != 0)) {
          digMarkPointList_ = java.util.Collections.unmodifiableList(digMarkPointList_);
        }
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          stageIdList_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.DigInfoOuterClass.internal_static_DigInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return emu.grasscutter.net.proto.DigInfoOuterClass.internal_static_DigInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo.class, emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo.Builder.class);
    }

    public static final int STAGEIDLIST_FIELD_NUMBER = 14;
    private com.google.protobuf.Internal.IntList stageIdList_;
    /**
     * <code>repeated uint32 stageIdList = 14;</code>
     * @return A list containing the stageIdList.
     */
    @java.lang.Override
    public java.util.List<java.lang.Integer>
        getStageIdListList() {
      return stageIdList_;
    }
    /**
     * <code>repeated uint32 stageIdList = 14;</code>
     * @return The count of stageIdList.
     */
    public int getStageIdListCount() {
      return stageIdList_.size();
    }
    /**
     * <code>repeated uint32 stageIdList = 14;</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 DIGMARKPOINTLIST_FIELD_NUMBER = 2;
    private java.util.List<emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPoint> digMarkPointList_;
    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPoint> getDigMarkPointListList() {
      return digMarkPointList_;
    }
    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPointOrBuilder> 
        getDigMarkPointListOrBuilderList() {
      return digMarkPointList_;
    }
    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    @java.lang.Override
    public int getDigMarkPointListCount() {
      return digMarkPointList_.size();
    }
    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPoint getDigMarkPointList(int index) {
      return digMarkPointList_.get(index);
    }
    /**
     * <code>repeated .DigMarkPoint digMarkPointList = 2;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPointOrBuilder getDigMarkPointListOrBuilder(
        int index) {
      return digMarkPointList_.get(index);
    }

    public static final int STAGEID_FIELD_NUMBER = 10;
    private int stageId_;
    /**
     * <code>uint32 stageId = 10;</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();
      for (int i = 0; i < digMarkPointList_.size(); i++) {
        output.writeMessage(2, digMarkPointList_.get(i));
      }
      if (stageId_ != 0) {
        output.writeUInt32(10, stageId_);
      }
      if (getStageIdListList().size() > 0) {
        output.writeUInt32NoTag(114);
        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;
      for (int i = 0; i < digMarkPointList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, digMarkPointList_.get(i));
      }
      if (stageId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(10, stageId_);
      }
      {
        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 emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo other = (emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo) obj;

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

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return emu.grasscutter.net.proto.DigInfoOuterClass.internal_static_DigInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo.class, emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo.Builder.class);
      }

      // Construct using emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo.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();
        stageIdList_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        if (digMarkPointListBuilder_ == null) {
          digMarkPointList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          digMarkPointListBuilder_.clear();
        }
        stageId_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return emu.grasscutter.net.proto.DigInfoOuterClass.internal_static_DigInfo_descriptor;
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo getDefaultInstanceForType() {
        return emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo.getDefaultInstance();
      }

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

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

      public Builder mergeFrom(emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo other) {
        if (other == emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo.getDefaultInstance()) return this;
        if (!other.stageIdList_.isEmpty()) {
          if (stageIdList_.isEmpty()) {
            stageIdList_ = other.stageIdList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureStageIdListIsMutable();
            stageIdList_.addAll(other.stageIdList_);
          }
          onChanged();
        }
        if (digMarkPointListBuilder_ == null) {
          if (!other.digMarkPointList_.isEmpty()) {
            if (digMarkPointList_.isEmpty()) {
              digMarkPointList_ = other.digMarkPointList_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureDigMarkPointListIsMutable();
              digMarkPointList_.addAll(other.digMarkPointList_);
            }
            onChanged();
          }
        } else {
          if (!other.digMarkPointList_.isEmpty()) {
            if (digMarkPointListBuilder_.isEmpty()) {
              digMarkPointListBuilder_.dispose();
              digMarkPointListBuilder_ = null;
              digMarkPointList_ = other.digMarkPointList_;
              bitField0_ = (bitField0_ & ~0x00000002);
              digMarkPointListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getDigMarkPointListFieldBuilder() : null;
            } else {
              digMarkPointListBuilder_.addAllMessages(other.digMarkPointList_);
            }
          }
        }
        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 {
        emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.Internal.IntList stageIdList_ = emptyIntList();
      private void ensureStageIdListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          stageIdList_ = mutableCopy(stageIdList_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated uint32 stageIdList = 14;</code>
       * @return A list containing the stageIdList.
       */
      public java.util.List<java.lang.Integer>
          getStageIdListList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(stageIdList_) : stageIdList_;
      }
      /**
       * <code>repeated uint32 stageIdList = 14;</code>
       * @return The count of stageIdList.
       */
      public int getStageIdListCount() {
        return stageIdList_.size();
      }
      /**
       * <code>repeated uint32 stageIdList = 14;</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 stageIdList = 14;</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 stageIdList = 14;</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 stageIdList = 14;</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 stageIdList = 14;</code>
       * @return This builder for chaining.
       */
      public Builder clearStageIdList() {
        stageIdList_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      private java.util.List<emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPoint> digMarkPointList_ =
        java.util.Collections.emptyList();
      private void ensureDigMarkPointListIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          digMarkPointList_ = new java.util.ArrayList<emu.grasscutter.net.proto.DigMarkPointOuterClass.DigMarkPoint>(digMarkPointList_);
          bitField0_ |= 0x00000002;
         }
      }

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

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

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

    // @@protoc_insertion_point(class_scope:DigInfo)
    private static final emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo();
    }

    public static emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public emu.grasscutter.net.proto.DigInfoOuterClass.DigInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_DigInfo_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_DigInfo_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\rDigInfo.proto\032\022DigMarkPoint.proto\"X\n\007D" +
      "igInfo\022\023\n\013stageIdList\030\016 \003(\r\022\'\n\020digMarkPo" +
      "intList\030\002 \003(\0132\r.DigMarkPoint\022\017\n\007stageId\030" +
      "\n \001(\rB\033\n\031emu.grasscutter.net.protob\006prot" +
      "o3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.DigMarkPointOuterClass.getDescriptor(),
        });
    internal_static_DigInfo_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_DigInfo_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_DigInfo_descriptor,
        new java.lang.String[] { "StageIdList", "DigMarkPointList", "StageId", });
    emu.grasscutter.net.proto.DigMarkPointOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
