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

package io.grasscutter.net.proto.activity;

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

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

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

            worldLevel_ = input.readUInt32();
            break;
          }
          case 64: {

            isFinishAnyLevel_ = input.readBool();
            break;
          }
          case 98: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              levelList_ = new java.util.ArrayList<io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel>();
              mutable_bitField0_ |= 0x00000002;
            }
            levelList_.add(
                input.readMessage(io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.parser(), extensionRegistry));
            break;
          }
          case 122: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              levelOpenTimeMap_ = com.google.protobuf.MapField.newMapField(
                  LevelOpenTimeMapDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
            levelOpenTimeMap__ = input.readMessage(
                LevelOpenTimeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            levelOpenTimeMap_.getMutableMap().put(
                levelOpenTimeMap__.getKey(), levelOpenTimeMap__.getValue());
            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)) {
        levelList_ = java.util.Collections.unmodifiableList(levelList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.activity.Activity.internal_static_ArenaChallengeActivityDetailInfo_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 15:
        return internalGetLevelOpenTimeMap();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.activity.Activity.internal_static_ArenaChallengeActivityDetailInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo.class, io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo.Builder.class);
  }

  public static final int LEVEL_OPEN_TIME_MAP_FIELD_NUMBER = 15;
  private static final class LevelOpenTimeMapDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.Integer, java.lang.Integer> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.Integer, java.lang.Integer>newDefaultInstance(
                io.grasscutter.net.proto.activity.Activity.internal_static_ArenaChallengeActivityDetailInfo_LevelOpenTimeMapEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.UINT32,
                0,
                com.google.protobuf.WireFormat.FieldType.UINT32,
                0);
  }
  private com.google.protobuf.MapField<
      java.lang.Integer, java.lang.Integer> levelOpenTimeMap_;
  private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
  internalGetLevelOpenTimeMap() {
    if (levelOpenTimeMap_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          LevelOpenTimeMapDefaultEntryHolder.defaultEntry);
    }
    return levelOpenTimeMap_;
  }

  public int getLevelOpenTimeMapCount() {
    return internalGetLevelOpenTimeMap().getMap().size();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
   */

  @java.lang.Override
  public boolean containsLevelOpenTimeMap(
      int key) {
    
    return internalGetLevelOpenTimeMap().getMap().containsKey(key);
  }
  /**
   * Use {@link #getLevelOpenTimeMapMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.Integer, java.lang.Integer> getLevelOpenTimeMap() {
    return getLevelOpenTimeMapMap();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
   */
  @java.lang.Override

  public java.util.Map<java.lang.Integer, java.lang.Integer> getLevelOpenTimeMapMap() {
    return internalGetLevelOpenTimeMap().getMap();
  }
  /**
   * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
   */
  @java.lang.Override

  public int getLevelOpenTimeMapOrDefault(
      int key,
      int defaultValue) {
    
    java.util.Map<java.lang.Integer, java.lang.Integer> map =
        internalGetLevelOpenTimeMap().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
   */
  @java.lang.Override

  public int getLevelOpenTimeMapOrThrow(
      int key) {
    
    java.util.Map<java.lang.Integer, java.lang.Integer> map =
        internalGetLevelOpenTimeMap().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int LEVEL_LIST_FIELD_NUMBER = 12;
  private java.util.List<io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel> levelList_;
  /**
   * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel> getLevelListList() {
    return levelList_;
  }
  /**
   * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevelOrBuilder> 
      getLevelListOrBuilderList() {
    return levelList_;
  }
  /**
   * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
   */
  @java.lang.Override
  public int getLevelListCount() {
    return levelList_.size();
  }
  /**
   * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel getLevelList(int index) {
    return levelList_.get(index);
  }
  /**
   * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevelOrBuilder getLevelListOrBuilder(
      int index) {
    return levelList_.get(index);
  }

  public static final int IS_FINISH_ANY_LEVEL_FIELD_NUMBER = 8;
  private boolean isFinishAnyLevel_;
  /**
   * <code>bool is_finish_any_level = 8;</code>
   * @return The isFinishAnyLevel.
   */
  @java.lang.Override
  public boolean getIsFinishAnyLevel() {
    return isFinishAnyLevel_;
  }

  public static final int WORLD_LEVEL_FIELD_NUMBER = 3;
  private int worldLevel_;
  /**
   * <code>uint32 world_level = 3;</code>
   * @return The worldLevel.
   */
  @java.lang.Override
  public int getWorldLevel() {
    return worldLevel_;
  }

  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 (worldLevel_ != 0) {
      output.writeUInt32(3, worldLevel_);
    }
    if (isFinishAnyLevel_ != false) {
      output.writeBool(8, isFinishAnyLevel_);
    }
    for (int i = 0; i < levelList_.size(); i++) {
      output.writeMessage(12, levelList_.get(i));
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeIntegerMapTo(
        output,
        internalGetLevelOpenTimeMap(),
        LevelOpenTimeMapDefaultEntryHolder.defaultEntry,
        15);
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (worldLevel_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, worldLevel_);
    }
    if (isFinishAnyLevel_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(8, isFinishAnyLevel_);
    }
    for (int i = 0; i < levelList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(12, levelList_.get(i));
    }
    for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
         : internalGetLevelOpenTimeMap().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
      levelOpenTimeMap__ = LevelOpenTimeMapDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(15, levelOpenTimeMap__);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    if (!internalGetLevelOpenTimeMap().equals(
        other.internalGetLevelOpenTimeMap())) return false;
    if (!getLevelListList()
        .equals(other.getLevelListList())) return false;
    if (getIsFinishAnyLevel()
        != other.getIsFinishAnyLevel()) return false;
    if (getWorldLevel()
        != other.getWorldLevel()) 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 (!internalGetLevelOpenTimeMap().getMap().isEmpty()) {
      hash = (37 * hash) + LEVEL_OPEN_TIME_MAP_FIELD_NUMBER;
      hash = (53 * hash) + internalGetLevelOpenTimeMap().hashCode();
    }
    if (getLevelListCount() > 0) {
      hash = (37 * hash) + LEVEL_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getLevelListList().hashCode();
    }
    hash = (37 * hash) + IS_FINISH_ANY_LEVEL_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsFinishAnyLevel());
    hash = (37 * hash) + WORLD_LEVEL_FIELD_NUMBER;
    hash = (53 * hash) + getWorldLevel();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo 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 ArenaChallengeActivityDetailInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:ArenaChallengeActivityDetailInfo)
      io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_ArenaChallengeActivityDetailInfo_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 15:
          return internalGetLevelOpenTimeMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 15:
          return internalGetMutableLevelOpenTimeMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_ArenaChallengeActivityDetailInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo.class, io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getLevelListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      internalGetMutableLevelOpenTimeMap().clear();
      if (levelListBuilder_ == null) {
        levelList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        levelListBuilder_.clear();
      }
      isFinishAnyLevel_ = false;

      worldLevel_ = 0;

      return this;
    }

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

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo buildPartial() {
      io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo result = new io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo(this);
      int from_bitField0_ = bitField0_;
      result.levelOpenTimeMap_ = internalGetLevelOpenTimeMap();
      result.levelOpenTimeMap_.makeImmutable();
      if (levelListBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          levelList_ = java.util.Collections.unmodifiableList(levelList_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.levelList_ = levelList_;
      } else {
        result.levelList_ = levelListBuilder_.build();
      }
      result.isFinishAnyLevel_ = isFinishAnyLevel_;
      result.worldLevel_ = worldLevel_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo) {
        return mergeFrom((io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo other) {
      if (other == io.grasscutter.net.proto.activity.ArenaChallengeActivityDetailInfo.getDefaultInstance()) return this;
      internalGetMutableLevelOpenTimeMap().mergeFrom(
          other.internalGetLevelOpenTimeMap());
      if (levelListBuilder_ == null) {
        if (!other.levelList_.isEmpty()) {
          if (levelList_.isEmpty()) {
            levelList_ = other.levelList_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureLevelListIsMutable();
            levelList_.addAll(other.levelList_);
          }
          onChanged();
        }
      } else {
        if (!other.levelList_.isEmpty()) {
          if (levelListBuilder_.isEmpty()) {
            levelListBuilder_.dispose();
            levelListBuilder_ = null;
            levelList_ = other.levelList_;
            bitField0_ = (bitField0_ & ~0x00000002);
            levelListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getLevelListFieldBuilder() : null;
          } else {
            levelListBuilder_.addAllMessages(other.levelList_);
          }
        }
      }
      if (other.getIsFinishAnyLevel() != false) {
        setIsFinishAnyLevel(other.getIsFinishAnyLevel());
      }
      if (other.getWorldLevel() != 0) {
        setWorldLevel(other.getWorldLevel());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private com.google.protobuf.MapField<
        java.lang.Integer, java.lang.Integer> levelOpenTimeMap_;
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetLevelOpenTimeMap() {
      if (levelOpenTimeMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            LevelOpenTimeMapDefaultEntryHolder.defaultEntry);
      }
      return levelOpenTimeMap_;
    }
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetMutableLevelOpenTimeMap() {
      onChanged();;
      if (levelOpenTimeMap_ == null) {
        levelOpenTimeMap_ = com.google.protobuf.MapField.newMapField(
            LevelOpenTimeMapDefaultEntryHolder.defaultEntry);
      }
      if (!levelOpenTimeMap_.isMutable()) {
        levelOpenTimeMap_ = levelOpenTimeMap_.copy();
      }
      return levelOpenTimeMap_;
    }

    public int getLevelOpenTimeMapCount() {
      return internalGetLevelOpenTimeMap().getMap().size();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
     */

    @java.lang.Override
    public boolean containsLevelOpenTimeMap(
        int key) {
      
      return internalGetLevelOpenTimeMap().getMap().containsKey(key);
    }
    /**
     * Use {@link #getLevelOpenTimeMapMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer> getLevelOpenTimeMap() {
      return getLevelOpenTimeMapMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.Integer, java.lang.Integer> getLevelOpenTimeMapMap() {
      return internalGetLevelOpenTimeMap().getMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
     */
    @java.lang.Override

    public int getLevelOpenTimeMapOrDefault(
        int key,
        int defaultValue) {
      
      java.util.Map<java.lang.Integer, java.lang.Integer> map =
          internalGetLevelOpenTimeMap().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
     */
    @java.lang.Override

    public int getLevelOpenTimeMapOrThrow(
        int key) {
      
      java.util.Map<java.lang.Integer, java.lang.Integer> map =
          internalGetLevelOpenTimeMap().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearLevelOpenTimeMap() {
      internalGetMutableLevelOpenTimeMap().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
     */

    public Builder removeLevelOpenTimeMap(
        int key) {
      
      internalGetMutableLevelOpenTimeMap().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer>
    getMutableLevelOpenTimeMap() {
      return internalGetMutableLevelOpenTimeMap().getMutableMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
     */
    public Builder putLevelOpenTimeMap(
        int key,
        int value) {
      
      
      internalGetMutableLevelOpenTimeMap().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <code>map&lt;uint32, uint32&gt; level_open_time_map = 15;</code>
     */

    public Builder putAllLevelOpenTimeMap(
        java.util.Map<java.lang.Integer, java.lang.Integer> values) {
      internalGetMutableLevelOpenTimeMap().getMutableMap()
          .putAll(values);
      return this;
    }

    private java.util.List<io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel> levelList_ =
      java.util.Collections.emptyList();
    private void ensureLevelListIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        levelList_ = new java.util.ArrayList<io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel>(levelList_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevelOrBuilder> levelListBuilder_;

    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public java.util.List<io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel> getLevelListList() {
      if (levelListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(levelList_);
      } else {
        return levelListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public int getLevelListCount() {
      if (levelListBuilder_ == null) {
        return levelList_.size();
      } else {
        return levelListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel getLevelList(int index) {
      if (levelListBuilder_ == null) {
        return levelList_.get(index);
      } else {
        return levelListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public Builder setLevelList(
        int index, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel value) {
      if (levelListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLevelListIsMutable();
        levelList_.set(index, value);
        onChanged();
      } else {
        levelListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public Builder setLevelList(
        int index, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder builderForValue) {
      if (levelListBuilder_ == null) {
        ensureLevelListIsMutable();
        levelList_.set(index, builderForValue.build());
        onChanged();
      } else {
        levelListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public Builder addLevelList(io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel value) {
      if (levelListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLevelListIsMutable();
        levelList_.add(value);
        onChanged();
      } else {
        levelListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public Builder addLevelList(
        int index, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel value) {
      if (levelListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLevelListIsMutable();
        levelList_.add(index, value);
        onChanged();
      } else {
        levelListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public Builder addLevelList(
        io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder builderForValue) {
      if (levelListBuilder_ == null) {
        ensureLevelListIsMutable();
        levelList_.add(builderForValue.build());
        onChanged();
      } else {
        levelListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public Builder addLevelList(
        int index, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder builderForValue) {
      if (levelListBuilder_ == null) {
        ensureLevelListIsMutable();
        levelList_.add(index, builderForValue.build());
        onChanged();
      } else {
        levelListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public Builder addAllLevelList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel> values) {
      if (levelListBuilder_ == null) {
        ensureLevelListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, levelList_);
        onChanged();
      } else {
        levelListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public Builder clearLevelList() {
      if (levelListBuilder_ == null) {
        levelList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        levelListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public Builder removeLevelList(int index) {
      if (levelListBuilder_ == null) {
        ensureLevelListIsMutable();
        levelList_.remove(index);
        onChanged();
      } else {
        levelListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder getLevelListBuilder(
        int index) {
      return getLevelListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevelOrBuilder getLevelListOrBuilder(
        int index) {
      if (levelListBuilder_ == null) {
        return levelList_.get(index);  } else {
        return levelListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevelOrBuilder> 
         getLevelListOrBuilderList() {
      if (levelListBuilder_ != null) {
        return levelListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(levelList_);
      }
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder addLevelListBuilder() {
      return getLevelListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.getDefaultInstance());
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder addLevelListBuilder(
        int index) {
      return getLevelListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.getDefaultInstance());
    }
    /**
     * <code>repeated .ArenaChallengeMonsterLevel level_list = 12;</code>
     */
    public java.util.List<io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder> 
         getLevelListBuilderList() {
      return getLevelListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevelOrBuilder> 
        getLevelListFieldBuilder() {
      if (levelListBuilder_ == null) {
        levelListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevel.Builder, io.grasscutter.net.proto.activity.ArenaChallengeMonsterLevelOrBuilder>(
                levelList_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        levelList_ = null;
      }
      return levelListBuilder_;
    }

    private boolean isFinishAnyLevel_ ;
    /**
     * <code>bool is_finish_any_level = 8;</code>
     * @return The isFinishAnyLevel.
     */
    @java.lang.Override
    public boolean getIsFinishAnyLevel() {
      return isFinishAnyLevel_;
    }
    /**
     * <code>bool is_finish_any_level = 8;</code>
     * @param value The isFinishAnyLevel to set.
     * @return This builder for chaining.
     */
    public Builder setIsFinishAnyLevel(boolean value) {
      
      isFinishAnyLevel_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_finish_any_level = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsFinishAnyLevel() {
      
      isFinishAnyLevel_ = false;
      onChanged();
      return this;
    }

    private int worldLevel_ ;
    /**
     * <code>uint32 world_level = 3;</code>
     * @return The worldLevel.
     */
    @java.lang.Override
    public int getWorldLevel() {
      return worldLevel_;
    }
    /**
     * <code>uint32 world_level = 3;</code>
     * @param value The worldLevel to set.
     * @return This builder for chaining.
     */
    public Builder setWorldLevel(int value) {
      
      worldLevel_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 world_level = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearWorldLevel() {
      
      worldLevel_ = 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:ArenaChallengeActivityDetailInfo)
  }

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

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

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

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

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

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

}

