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

package emu.grasscutter.net.proto;

public final class TreasureMapInfoOuterClass {
  private TreasureMapInfoOuterClass() {}
  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 TreasureMapInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:TreasureMapInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>bool isMpChallengeTouched = 6;</code>
     * @return The isMpChallengeTouched.
     */
    boolean getIsMpChallengeTouched();

    /**
     * <code>uint32 totalMpSpotNum = 14;</code>
     * @return The totalMpSpotNum.
     */
    int getTotalMpSpotNum();

    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    java.util.List<emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo> 
        getRegionInfoListList();
    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo getRegionInfoList(int index);
    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    int getRegionInfoListCount();
    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfoOrBuilder> 
        getRegionInfoListOrBuilderList();
    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfoOrBuilder getRegionInfoListOrBuilder(
        int index);

    /**
     * <code>uint32 currencyNum = 1;</code>
     * @return The currencyNum.
     */
    int getCurrencyNum();

    /**
     * <code>uint32 minOpenPlayerLevel = 3;</code>
     * @return The minOpenPlayerLevel.
     */
    int getMinOpenPlayerLevel();

    /**
     * <code>uint32 activeRegionIndex = 2;</code>
     * @return The activeRegionIndex.
     */
    int getActiveRegionIndex();

    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    java.util.List<emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo> 
        getBonusChallengeListList();
    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo getBonusChallengeList(int index);
    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    int getBonusChallengeListCount();
    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder> 
        getBonusChallengeListOrBuilderList();
    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder getBonusChallengeListOrBuilder(
        int index);

    /**
     * <code>uint32 previewRewardId = 12;</code>
     * @return The previewRewardId.
     */
    int getPreviewRewardId();

    /**
     * <code>uint32 treasureCloseTime = 5;</code>
     * @return The treasureCloseTime.
     */
    int getTreasureCloseTime();
  }
  /**
   * Protobuf type {@code TreasureMapInfo}
   */
  public static final class TreasureMapInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:TreasureMapInfo)
      TreasureMapInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TreasureMapInfo.newBuilder() to construct.
    private TreasureMapInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TreasureMapInfo() {
      regionInfoList_ = java.util.Collections.emptyList();
      bonusChallengeList_ = java.util.Collections.emptyList();
    }

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

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

              currencyNum_ = input.readUInt32();
              break;
            }
            case 16: {

              activeRegionIndex_ = input.readUInt32();
              break;
            }
            case 24: {

              minOpenPlayerLevel_ = input.readUInt32();
              break;
            }
            case 40: {

              treasureCloseTime_ = input.readUInt32();
              break;
            }
            case 48: {

              isMpChallengeTouched_ = input.readBool();
              break;
            }
            case 58: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                regionInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo>();
                mutable_bitField0_ |= 0x00000001;
              }
              regionInfoList_.add(
                  input.readMessage(emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.parser(), extensionRegistry));
              break;
            }
            case 96: {

              previewRewardId_ = input.readUInt32();
              break;
            }
            case 112: {

              totalMpSpotNum_ = input.readUInt32();
              break;
            }
            case 122: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                bonusChallengeList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo>();
                mutable_bitField0_ |= 0x00000002;
              }
              bonusChallengeList_.add(
                  input.readMessage(emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          regionInfoList_ = java.util.Collections.unmodifiableList(regionInfoList_);
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          bonusChallengeList_ = java.util.Collections.unmodifiableList(bonusChallengeList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.TreasureMapInfoOuterClass.internal_static_TreasureMapInfo_descriptor;
    }

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

    public static final int ISMPCHALLENGETOUCHED_FIELD_NUMBER = 6;
    private boolean isMpChallengeTouched_;
    /**
     * <code>bool isMpChallengeTouched = 6;</code>
     * @return The isMpChallengeTouched.
     */
    @java.lang.Override
    public boolean getIsMpChallengeTouched() {
      return isMpChallengeTouched_;
    }

    public static final int TOTALMPSPOTNUM_FIELD_NUMBER = 14;
    private int totalMpSpotNum_;
    /**
     * <code>uint32 totalMpSpotNum = 14;</code>
     * @return The totalMpSpotNum.
     */
    @java.lang.Override
    public int getTotalMpSpotNum() {
      return totalMpSpotNum_;
    }

    public static final int REGIONINFOLIST_FIELD_NUMBER = 7;
    private java.util.List<emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo> regionInfoList_;
    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo> getRegionInfoListList() {
      return regionInfoList_;
    }
    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfoOrBuilder> 
        getRegionInfoListOrBuilderList() {
      return regionInfoList_;
    }
    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    @java.lang.Override
    public int getRegionInfoListCount() {
      return regionInfoList_.size();
    }
    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo getRegionInfoList(int index) {
      return regionInfoList_.get(index);
    }
    /**
     * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfoOrBuilder getRegionInfoListOrBuilder(
        int index) {
      return regionInfoList_.get(index);
    }

    public static final int CURRENCYNUM_FIELD_NUMBER = 1;
    private int currencyNum_;
    /**
     * <code>uint32 currencyNum = 1;</code>
     * @return The currencyNum.
     */
    @java.lang.Override
    public int getCurrencyNum() {
      return currencyNum_;
    }

    public static final int MINOPENPLAYERLEVEL_FIELD_NUMBER = 3;
    private int minOpenPlayerLevel_;
    /**
     * <code>uint32 minOpenPlayerLevel = 3;</code>
     * @return The minOpenPlayerLevel.
     */
    @java.lang.Override
    public int getMinOpenPlayerLevel() {
      return minOpenPlayerLevel_;
    }

    public static final int ACTIVEREGIONINDEX_FIELD_NUMBER = 2;
    private int activeRegionIndex_;
    /**
     * <code>uint32 activeRegionIndex = 2;</code>
     * @return The activeRegionIndex.
     */
    @java.lang.Override
    public int getActiveRegionIndex() {
      return activeRegionIndex_;
    }

    public static final int BONUSCHALLENGELIST_FIELD_NUMBER = 15;
    private java.util.List<emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo> bonusChallengeList_;
    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo> getBonusChallengeListList() {
      return bonusChallengeList_;
    }
    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder> 
        getBonusChallengeListOrBuilderList() {
      return bonusChallengeList_;
    }
    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    @java.lang.Override
    public int getBonusChallengeListCount() {
      return bonusChallengeList_.size();
    }
    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo getBonusChallengeList(int index) {
      return bonusChallengeList_.get(index);
    }
    /**
     * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder getBonusChallengeListOrBuilder(
        int index) {
      return bonusChallengeList_.get(index);
    }

    public static final int PREVIEWREWARDID_FIELD_NUMBER = 12;
    private int previewRewardId_;
    /**
     * <code>uint32 previewRewardId = 12;</code>
     * @return The previewRewardId.
     */
    @java.lang.Override
    public int getPreviewRewardId() {
      return previewRewardId_;
    }

    public static final int TREASURECLOSETIME_FIELD_NUMBER = 5;
    private int treasureCloseTime_;
    /**
     * <code>uint32 treasureCloseTime = 5;</code>
     * @return The treasureCloseTime.
     */
    @java.lang.Override
    public int getTreasureCloseTime() {
      return treasureCloseTime_;
    }

    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 {
      if (currencyNum_ != 0) {
        output.writeUInt32(1, currencyNum_);
      }
      if (activeRegionIndex_ != 0) {
        output.writeUInt32(2, activeRegionIndex_);
      }
      if (minOpenPlayerLevel_ != 0) {
        output.writeUInt32(3, minOpenPlayerLevel_);
      }
      if (treasureCloseTime_ != 0) {
        output.writeUInt32(5, treasureCloseTime_);
      }
      if (isMpChallengeTouched_ != false) {
        output.writeBool(6, isMpChallengeTouched_);
      }
      for (int i = 0; i < regionInfoList_.size(); i++) {
        output.writeMessage(7, regionInfoList_.get(i));
      }
      if (previewRewardId_ != 0) {
        output.writeUInt32(12, previewRewardId_);
      }
      if (totalMpSpotNum_ != 0) {
        output.writeUInt32(14, totalMpSpotNum_);
      }
      for (int i = 0; i < bonusChallengeList_.size(); i++) {
        output.writeMessage(15, bonusChallengeList_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (currencyNum_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, currencyNum_);
      }
      if (activeRegionIndex_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, activeRegionIndex_);
      }
      if (minOpenPlayerLevel_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(3, minOpenPlayerLevel_);
      }
      if (treasureCloseTime_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, treasureCloseTime_);
      }
      if (isMpChallengeTouched_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(6, isMpChallengeTouched_);
      }
      for (int i = 0; i < regionInfoList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, regionInfoList_.get(i));
      }
      if (previewRewardId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(12, previewRewardId_);
      }
      if (totalMpSpotNum_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(14, totalMpSpotNum_);
      }
      for (int i = 0; i < bonusChallengeList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(15, bonusChallengeList_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (getIsMpChallengeTouched()
          != other.getIsMpChallengeTouched()) return false;
      if (getTotalMpSpotNum()
          != other.getTotalMpSpotNum()) return false;
      if (!getRegionInfoListList()
          .equals(other.getRegionInfoListList())) return false;
      if (getCurrencyNum()
          != other.getCurrencyNum()) return false;
      if (getMinOpenPlayerLevel()
          != other.getMinOpenPlayerLevel()) return false;
      if (getActiveRegionIndex()
          != other.getActiveRegionIndex()) return false;
      if (!getBonusChallengeListList()
          .equals(other.getBonusChallengeListList())) return false;
      if (getPreviewRewardId()
          != other.getPreviewRewardId()) return false;
      if (getTreasureCloseTime()
          != other.getTreasureCloseTime()) 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();
      hash = (37 * hash) + ISMPCHALLENGETOUCHED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsMpChallengeTouched());
      hash = (37 * hash) + TOTALMPSPOTNUM_FIELD_NUMBER;
      hash = (53 * hash) + getTotalMpSpotNum();
      if (getRegionInfoListCount() > 0) {
        hash = (37 * hash) + REGIONINFOLIST_FIELD_NUMBER;
        hash = (53 * hash) + getRegionInfoListList().hashCode();
      }
      hash = (37 * hash) + CURRENCYNUM_FIELD_NUMBER;
      hash = (53 * hash) + getCurrencyNum();
      hash = (37 * hash) + MINOPENPLAYERLEVEL_FIELD_NUMBER;
      hash = (53 * hash) + getMinOpenPlayerLevel();
      hash = (37 * hash) + ACTIVEREGIONINDEX_FIELD_NUMBER;
      hash = (53 * hash) + getActiveRegionIndex();
      if (getBonusChallengeListCount() > 0) {
        hash = (37 * hash) + BONUSCHALLENGELIST_FIELD_NUMBER;
        hash = (53 * hash) + getBonusChallengeListList().hashCode();
      }
      hash = (37 * hash) + PREVIEWREWARDID_FIELD_NUMBER;
      hash = (53 * hash) + getPreviewRewardId();
      hash = (37 * hash) + TREASURECLOSETIME_FIELD_NUMBER;
      hash = (53 * hash) + getTreasureCloseTime();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      // Construct using emu.grasscutter.net.proto.TreasureMapInfoOuterClass.TreasureMapInfo.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getRegionInfoListFieldBuilder();
          getBonusChallengeListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        isMpChallengeTouched_ = false;

        totalMpSpotNum_ = 0;

        if (regionInfoListBuilder_ == null) {
          regionInfoList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          regionInfoListBuilder_.clear();
        }
        currencyNum_ = 0;

        minOpenPlayerLevel_ = 0;

        activeRegionIndex_ = 0;

        if (bonusChallengeListBuilder_ == null) {
          bonusChallengeList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          bonusChallengeListBuilder_.clear();
        }
        previewRewardId_ = 0;

        treasureCloseTime_ = 0;

        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.TreasureMapInfoOuterClass.TreasureMapInfo buildPartial() {
        emu.grasscutter.net.proto.TreasureMapInfoOuterClass.TreasureMapInfo result = new emu.grasscutter.net.proto.TreasureMapInfoOuterClass.TreasureMapInfo(this);
        int from_bitField0_ = bitField0_;
        result.isMpChallengeTouched_ = isMpChallengeTouched_;
        result.totalMpSpotNum_ = totalMpSpotNum_;
        if (regionInfoListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            regionInfoList_ = java.util.Collections.unmodifiableList(regionInfoList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.regionInfoList_ = regionInfoList_;
        } else {
          result.regionInfoList_ = regionInfoListBuilder_.build();
        }
        result.currencyNum_ = currencyNum_;
        result.minOpenPlayerLevel_ = minOpenPlayerLevel_;
        result.activeRegionIndex_ = activeRegionIndex_;
        if (bonusChallengeListBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            bonusChallengeList_ = java.util.Collections.unmodifiableList(bonusChallengeList_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.bonusChallengeList_ = bonusChallengeList_;
        } else {
          result.bonusChallengeList_ = bonusChallengeListBuilder_.build();
        }
        result.previewRewardId_ = previewRewardId_;
        result.treasureCloseTime_ = treasureCloseTime_;
        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.TreasureMapInfoOuterClass.TreasureMapInfo) {
          return mergeFrom((emu.grasscutter.net.proto.TreasureMapInfoOuterClass.TreasureMapInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.TreasureMapInfoOuterClass.TreasureMapInfo other) {
        if (other == emu.grasscutter.net.proto.TreasureMapInfoOuterClass.TreasureMapInfo.getDefaultInstance()) return this;
        if (other.getIsMpChallengeTouched() != false) {
          setIsMpChallengeTouched(other.getIsMpChallengeTouched());
        }
        if (other.getTotalMpSpotNum() != 0) {
          setTotalMpSpotNum(other.getTotalMpSpotNum());
        }
        if (regionInfoListBuilder_ == null) {
          if (!other.regionInfoList_.isEmpty()) {
            if (regionInfoList_.isEmpty()) {
              regionInfoList_ = other.regionInfoList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureRegionInfoListIsMutable();
              regionInfoList_.addAll(other.regionInfoList_);
            }
            onChanged();
          }
        } else {
          if (!other.regionInfoList_.isEmpty()) {
            if (regionInfoListBuilder_.isEmpty()) {
              regionInfoListBuilder_.dispose();
              regionInfoListBuilder_ = null;
              regionInfoList_ = other.regionInfoList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              regionInfoListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getRegionInfoListFieldBuilder() : null;
            } else {
              regionInfoListBuilder_.addAllMessages(other.regionInfoList_);
            }
          }
        }
        if (other.getCurrencyNum() != 0) {
          setCurrencyNum(other.getCurrencyNum());
        }
        if (other.getMinOpenPlayerLevel() != 0) {
          setMinOpenPlayerLevel(other.getMinOpenPlayerLevel());
        }
        if (other.getActiveRegionIndex() != 0) {
          setActiveRegionIndex(other.getActiveRegionIndex());
        }
        if (bonusChallengeListBuilder_ == null) {
          if (!other.bonusChallengeList_.isEmpty()) {
            if (bonusChallengeList_.isEmpty()) {
              bonusChallengeList_ = other.bonusChallengeList_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureBonusChallengeListIsMutable();
              bonusChallengeList_.addAll(other.bonusChallengeList_);
            }
            onChanged();
          }
        } else {
          if (!other.bonusChallengeList_.isEmpty()) {
            if (bonusChallengeListBuilder_.isEmpty()) {
              bonusChallengeListBuilder_.dispose();
              bonusChallengeListBuilder_ = null;
              bonusChallengeList_ = other.bonusChallengeList_;
              bitField0_ = (bitField0_ & ~0x00000002);
              bonusChallengeListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getBonusChallengeListFieldBuilder() : null;
            } else {
              bonusChallengeListBuilder_.addAllMessages(other.bonusChallengeList_);
            }
          }
        }
        if (other.getPreviewRewardId() != 0) {
          setPreviewRewardId(other.getPreviewRewardId());
        }
        if (other.getTreasureCloseTime() != 0) {
          setTreasureCloseTime(other.getTreasureCloseTime());
        }
        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.TreasureMapInfoOuterClass.TreasureMapInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.TreasureMapInfoOuterClass.TreasureMapInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private boolean isMpChallengeTouched_ ;
      /**
       * <code>bool isMpChallengeTouched = 6;</code>
       * @return The isMpChallengeTouched.
       */
      @java.lang.Override
      public boolean getIsMpChallengeTouched() {
        return isMpChallengeTouched_;
      }
      /**
       * <code>bool isMpChallengeTouched = 6;</code>
       * @param value The isMpChallengeTouched to set.
       * @return This builder for chaining.
       */
      public Builder setIsMpChallengeTouched(boolean value) {
        
        isMpChallengeTouched_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool isMpChallengeTouched = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearIsMpChallengeTouched() {
        
        isMpChallengeTouched_ = false;
        onChanged();
        return this;
      }

      private int totalMpSpotNum_ ;
      /**
       * <code>uint32 totalMpSpotNum = 14;</code>
       * @return The totalMpSpotNum.
       */
      @java.lang.Override
      public int getTotalMpSpotNum() {
        return totalMpSpotNum_;
      }
      /**
       * <code>uint32 totalMpSpotNum = 14;</code>
       * @param value The totalMpSpotNum to set.
       * @return This builder for chaining.
       */
      public Builder setTotalMpSpotNum(int value) {
        
        totalMpSpotNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 totalMpSpotNum = 14;</code>
       * @return This builder for chaining.
       */
      public Builder clearTotalMpSpotNum() {
        
        totalMpSpotNum_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo> regionInfoList_ =
        java.util.Collections.emptyList();
      private void ensureRegionInfoListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          regionInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo>(regionInfoList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfoOrBuilder> regionInfoListBuilder_;

      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo> getRegionInfoListList() {
        if (regionInfoListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(regionInfoList_);
        } else {
          return regionInfoListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public int getRegionInfoListCount() {
        if (regionInfoListBuilder_ == null) {
          return regionInfoList_.size();
        } else {
          return regionInfoListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo getRegionInfoList(int index) {
        if (regionInfoListBuilder_ == null) {
          return regionInfoList_.get(index);
        } else {
          return regionInfoListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public Builder setRegionInfoList(
          int index, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo value) {
        if (regionInfoListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegionInfoListIsMutable();
          regionInfoList_.set(index, value);
          onChanged();
        } else {
          regionInfoListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public Builder setRegionInfoList(
          int index, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder builderForValue) {
        if (regionInfoListBuilder_ == null) {
          ensureRegionInfoListIsMutable();
          regionInfoList_.set(index, builderForValue.build());
          onChanged();
        } else {
          regionInfoListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public Builder addRegionInfoList(emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo value) {
        if (regionInfoListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegionInfoListIsMutable();
          regionInfoList_.add(value);
          onChanged();
        } else {
          regionInfoListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public Builder addRegionInfoList(
          int index, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo value) {
        if (regionInfoListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegionInfoListIsMutable();
          regionInfoList_.add(index, value);
          onChanged();
        } else {
          regionInfoListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public Builder addRegionInfoList(
          emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder builderForValue) {
        if (regionInfoListBuilder_ == null) {
          ensureRegionInfoListIsMutable();
          regionInfoList_.add(builderForValue.build());
          onChanged();
        } else {
          regionInfoListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public Builder addRegionInfoList(
          int index, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder builderForValue) {
        if (regionInfoListBuilder_ == null) {
          ensureRegionInfoListIsMutable();
          regionInfoList_.add(index, builderForValue.build());
          onChanged();
        } else {
          regionInfoListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public Builder addAllRegionInfoList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo> values) {
        if (regionInfoListBuilder_ == null) {
          ensureRegionInfoListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, regionInfoList_);
          onChanged();
        } else {
          regionInfoListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public Builder clearRegionInfoList() {
        if (regionInfoListBuilder_ == null) {
          regionInfoList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          regionInfoListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public Builder removeRegionInfoList(int index) {
        if (regionInfoListBuilder_ == null) {
          ensureRegionInfoListIsMutable();
          regionInfoList_.remove(index);
          onChanged();
        } else {
          regionInfoListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder getRegionInfoListBuilder(
          int index) {
        return getRegionInfoListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfoOrBuilder getRegionInfoListOrBuilder(
          int index) {
        if (regionInfoListBuilder_ == null) {
          return regionInfoList_.get(index);  } else {
          return regionInfoListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfoOrBuilder> 
           getRegionInfoListOrBuilderList() {
        if (regionInfoListBuilder_ != null) {
          return regionInfoListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(regionInfoList_);
        }
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder addRegionInfoListBuilder() {
        return getRegionInfoListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.getDefaultInstance());
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder addRegionInfoListBuilder(
          int index) {
        return getRegionInfoListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.getDefaultInstance());
      }
      /**
       * <code>repeated .TreasureMapRegionInfo regionInfoList = 7;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder> 
           getRegionInfoListBuilderList() {
        return getRegionInfoListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfoOrBuilder> 
          getRegionInfoListFieldBuilder() {
        if (regionInfoListBuilder_ == null) {
          regionInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfo.Builder, emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.TreasureMapRegionInfoOrBuilder>(
                  regionInfoList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          regionInfoList_ = null;
        }
        return regionInfoListBuilder_;
      }

      private int currencyNum_ ;
      /**
       * <code>uint32 currencyNum = 1;</code>
       * @return The currencyNum.
       */
      @java.lang.Override
      public int getCurrencyNum() {
        return currencyNum_;
      }
      /**
       * <code>uint32 currencyNum = 1;</code>
       * @param value The currencyNum to set.
       * @return This builder for chaining.
       */
      public Builder setCurrencyNum(int value) {
        
        currencyNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 currencyNum = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearCurrencyNum() {
        
        currencyNum_ = 0;
        onChanged();
        return this;
      }

      private int minOpenPlayerLevel_ ;
      /**
       * <code>uint32 minOpenPlayerLevel = 3;</code>
       * @return The minOpenPlayerLevel.
       */
      @java.lang.Override
      public int getMinOpenPlayerLevel() {
        return minOpenPlayerLevel_;
      }
      /**
       * <code>uint32 minOpenPlayerLevel = 3;</code>
       * @param value The minOpenPlayerLevel to set.
       * @return This builder for chaining.
       */
      public Builder setMinOpenPlayerLevel(int value) {
        
        minOpenPlayerLevel_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 minOpenPlayerLevel = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearMinOpenPlayerLevel() {
        
        minOpenPlayerLevel_ = 0;
        onChanged();
        return this;
      }

      private int activeRegionIndex_ ;
      /**
       * <code>uint32 activeRegionIndex = 2;</code>
       * @return The activeRegionIndex.
       */
      @java.lang.Override
      public int getActiveRegionIndex() {
        return activeRegionIndex_;
      }
      /**
       * <code>uint32 activeRegionIndex = 2;</code>
       * @param value The activeRegionIndex to set.
       * @return This builder for chaining.
       */
      public Builder setActiveRegionIndex(int value) {
        
        activeRegionIndex_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 activeRegionIndex = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearActiveRegionIndex() {
        
        activeRegionIndex_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo> bonusChallengeList_ =
        java.util.Collections.emptyList();
      private void ensureBonusChallengeListIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          bonusChallengeList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo>(bonusChallengeList_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder> bonusChallengeListBuilder_;

      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo> getBonusChallengeListList() {
        if (bonusChallengeListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(bonusChallengeList_);
        } else {
          return bonusChallengeListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public int getBonusChallengeListCount() {
        if (bonusChallengeListBuilder_ == null) {
          return bonusChallengeList_.size();
        } else {
          return bonusChallengeListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo getBonusChallengeList(int index) {
        if (bonusChallengeListBuilder_ == null) {
          return bonusChallengeList_.get(index);
        } else {
          return bonusChallengeListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public Builder setBonusChallengeList(
          int index, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo value) {
        if (bonusChallengeListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBonusChallengeListIsMutable();
          bonusChallengeList_.set(index, value);
          onChanged();
        } else {
          bonusChallengeListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public Builder setBonusChallengeList(
          int index, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder builderForValue) {
        if (bonusChallengeListBuilder_ == null) {
          ensureBonusChallengeListIsMutable();
          bonusChallengeList_.set(index, builderForValue.build());
          onChanged();
        } else {
          bonusChallengeListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public Builder addBonusChallengeList(emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo value) {
        if (bonusChallengeListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBonusChallengeListIsMutable();
          bonusChallengeList_.add(value);
          onChanged();
        } else {
          bonusChallengeListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public Builder addBonusChallengeList(
          int index, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo value) {
        if (bonusChallengeListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBonusChallengeListIsMutable();
          bonusChallengeList_.add(index, value);
          onChanged();
        } else {
          bonusChallengeListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public Builder addBonusChallengeList(
          emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder builderForValue) {
        if (bonusChallengeListBuilder_ == null) {
          ensureBonusChallengeListIsMutable();
          bonusChallengeList_.add(builderForValue.build());
          onChanged();
        } else {
          bonusChallengeListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public Builder addBonusChallengeList(
          int index, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder builderForValue) {
        if (bonusChallengeListBuilder_ == null) {
          ensureBonusChallengeListIsMutable();
          bonusChallengeList_.add(index, builderForValue.build());
          onChanged();
        } else {
          bonusChallengeListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public Builder addAllBonusChallengeList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo> values) {
        if (bonusChallengeListBuilder_ == null) {
          ensureBonusChallengeListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, bonusChallengeList_);
          onChanged();
        } else {
          bonusChallengeListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public Builder clearBonusChallengeList() {
        if (bonusChallengeListBuilder_ == null) {
          bonusChallengeList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          bonusChallengeListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public Builder removeBonusChallengeList(int index) {
        if (bonusChallengeListBuilder_ == null) {
          ensureBonusChallengeListIsMutable();
          bonusChallengeList_.remove(index);
          onChanged();
        } else {
          bonusChallengeListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder getBonusChallengeListBuilder(
          int index) {
        return getBonusChallengeListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder getBonusChallengeListOrBuilder(
          int index) {
        if (bonusChallengeListBuilder_ == null) {
          return bonusChallengeList_.get(index);  } else {
          return bonusChallengeListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder> 
           getBonusChallengeListOrBuilderList() {
        if (bonusChallengeListBuilder_ != null) {
          return bonusChallengeListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(bonusChallengeList_);
        }
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder addBonusChallengeListBuilder() {
        return getBonusChallengeListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.getDefaultInstance());
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder addBonusChallengeListBuilder(
          int index) {
        return getBonusChallengeListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.getDefaultInstance());
      }
      /**
       * <code>repeated .TreasureMapBonusChallengeInfo bonusChallengeList = 15;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder> 
           getBonusChallengeListBuilderList() {
        return getBonusChallengeListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder> 
          getBonusChallengeListFieldBuilder() {
        if (bonusChallengeListBuilder_ == null) {
          bonusChallengeListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder>(
                  bonusChallengeList_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          bonusChallengeList_ = null;
        }
        return bonusChallengeListBuilder_;
      }

      private int previewRewardId_ ;
      /**
       * <code>uint32 previewRewardId = 12;</code>
       * @return The previewRewardId.
       */
      @java.lang.Override
      public int getPreviewRewardId() {
        return previewRewardId_;
      }
      /**
       * <code>uint32 previewRewardId = 12;</code>
       * @param value The previewRewardId to set.
       * @return This builder for chaining.
       */
      public Builder setPreviewRewardId(int value) {
        
        previewRewardId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 previewRewardId = 12;</code>
       * @return This builder for chaining.
       */
      public Builder clearPreviewRewardId() {
        
        previewRewardId_ = 0;
        onChanged();
        return this;
      }

      private int treasureCloseTime_ ;
      /**
       * <code>uint32 treasureCloseTime = 5;</code>
       * @return The treasureCloseTime.
       */
      @java.lang.Override
      public int getTreasureCloseTime() {
        return treasureCloseTime_;
      }
      /**
       * <code>uint32 treasureCloseTime = 5;</code>
       * @param value The treasureCloseTime to set.
       * @return This builder for chaining.
       */
      public Builder setTreasureCloseTime(int value) {
        
        treasureCloseTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 treasureCloseTime = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearTreasureCloseTime() {
        
        treasureCloseTime_ = 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:TreasureMapInfo)
    }

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

    public static emu.grasscutter.net.proto.TreasureMapInfoOuterClass.TreasureMapInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_TreasureMapInfo_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_TreasureMapInfo_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\025TreasureMapInfo.proto\032\033TreasureMapRegi" +
      "onInfo.proto\032#TreasureMapBonusChallengeI" +
      "nfo.proto\"\263\002\n\017TreasureMapInfo\022\034\n\024isMpCha" +
      "llengeTouched\030\006 \001(\010\022\026\n\016totalMpSpotNum\030\016 " +
      "\001(\r\022.\n\016regionInfoList\030\007 \003(\0132\026.TreasureMa" +
      "pRegionInfo\022\023\n\013currencyNum\030\001 \001(\r\022\032\n\022minO" +
      "penPlayerLevel\030\003 \001(\r\022\031\n\021activeRegionInde" +
      "x\030\002 \001(\r\022:\n\022bonusChallengeList\030\017 \003(\0132\036.Tr" +
      "easureMapBonusChallengeInfo\022\027\n\017previewRe" +
      "wardId\030\014 \001(\r\022\031\n\021treasureCloseTime\030\005 \001(\rB" +
      "\033\n\031emu.grasscutter.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.getDescriptor(),
        });
    internal_static_TreasureMapInfo_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_TreasureMapInfo_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_TreasureMapInfo_descriptor,
        new java.lang.String[] { "IsMpChallengeTouched", "TotalMpSpotNum", "RegionInfoList", "CurrencyNum", "MinOpenPlayerLevel", "ActiveRegionIndex", "BonusChallengeList", "PreviewRewardId", "TreasureCloseTime", });
    emu.grasscutter.net.proto.TreasureMapRegionInfoOuterClass.getDescriptor();
    emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
