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

package io.grasscutter.net.proto.activity;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ChannelerSlabChallengeStage(
      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 10: {
            io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.Builder subBuilder = null;
            if (dungeonInfo_ != null) {
              subBuilder = dungeonInfo_.toBuilder();
            }
            dungeonInfo_ = input.readMessage(io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(dungeonInfo_);
              dungeonInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 16: {

            isOpen_ = input.readBool();
            break;
          }
          case 64: {

            openTime_ = input.readUInt32();
            break;
          }
          case 74: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              challengeList_ = new java.util.ArrayList<io.grasscutter.net.proto.activity.ChannelerSlabChallenge>();
              mutable_bitField0_ |= 0x00000001;
            }
            challengeList_.add(
                input.readMessage(io.grasscutter.net.proto.activity.ChannelerSlabChallenge.parser(), extensionRegistry));
            break;
          }
          case 80: {

            stageId_ = input.readUInt32();
            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)) {
        challengeList_ = java.util.Collections.unmodifiableList(challengeList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.activity.Activity.internal_static_ChannelerSlabChallengeStage_descriptor;
  }

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

  public static final int DUNGEON_INFO_FIELD_NUMBER = 1;
  private io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon dungeonInfo_;
  /**
   * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
   * @return Whether the dungeonInfo field is set.
   */
  @java.lang.Override
  public boolean hasDungeonInfo() {
    return dungeonInfo_ != null;
  }
  /**
   * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
   * @return The dungeonInfo.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon getDungeonInfo() {
    return dungeonInfo_ == null ? io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.getDefaultInstance() : dungeonInfo_;
  }
  /**
   * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeonOrBuilder getDungeonInfoOrBuilder() {
    return getDungeonInfo();
  }

  public static final int CHALLENGE_LIST_FIELD_NUMBER = 9;
  private java.util.List<io.grasscutter.net.proto.activity.ChannelerSlabChallenge> challengeList_;
  /**
   * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.activity.ChannelerSlabChallenge> getChallengeListList() {
    return challengeList_;
  }
  /**
   * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.activity.ChannelerSlabChallengeOrBuilder> 
      getChallengeListOrBuilderList() {
    return challengeList_;
  }
  /**
   * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
   */
  @java.lang.Override
  public int getChallengeListCount() {
    return challengeList_.size();
  }
  /**
   * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.ChannelerSlabChallenge getChallengeList(int index) {
    return challengeList_.get(index);
  }
  /**
   * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.ChannelerSlabChallengeOrBuilder getChallengeListOrBuilder(
      int index) {
    return challengeList_.get(index);
  }

  public static final int IS_OPEN_FIELD_NUMBER = 2;
  private boolean isOpen_;
  /**
   * <code>bool is_open = 2;</code>
   * @return The isOpen.
   */
  @java.lang.Override
  public boolean getIsOpen() {
    return isOpen_;
  }

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

  public static final int OPEN_TIME_FIELD_NUMBER = 8;
  private int openTime_;
  /**
   * <code>uint32 open_time = 8;</code>
   * @return The openTime.
   */
  @java.lang.Override
  public int getOpenTime() {
    return openTime_;
  }

  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 (dungeonInfo_ != null) {
      output.writeMessage(1, getDungeonInfo());
    }
    if (isOpen_ != false) {
      output.writeBool(2, isOpen_);
    }
    if (openTime_ != 0) {
      output.writeUInt32(8, openTime_);
    }
    for (int i = 0; i < challengeList_.size(); i++) {
      output.writeMessage(9, challengeList_.get(i));
    }
    if (stageId_ != 0) {
      output.writeUInt32(10, stageId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (dungeonInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getDungeonInfo());
    }
    if (isOpen_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(2, isOpen_);
    }
    if (openTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(8, openTime_);
    }
    for (int i = 0; i < challengeList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(9, challengeList_.get(i));
    }
    if (stageId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(10, stageId_);
    }
    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.ChannelerSlabChallengeStage)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.activity.ChannelerSlabChallengeStage other = (io.grasscutter.net.proto.activity.ChannelerSlabChallengeStage) obj;

    if (hasDungeonInfo() != other.hasDungeonInfo()) return false;
    if (hasDungeonInfo()) {
      if (!getDungeonInfo()
          .equals(other.getDungeonInfo())) return false;
    }
    if (!getChallengeListList()
        .equals(other.getChallengeListList())) return false;
    if (getIsOpen()
        != other.getIsOpen()) return false;
    if (getStageId()
        != other.getStageId()) return false;
    if (getOpenTime()
        != other.getOpenTime()) 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 (hasDungeonInfo()) {
      hash = (37 * hash) + DUNGEON_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getDungeonInfo().hashCode();
    }
    if (getChallengeListCount() > 0) {
      hash = (37 * hash) + CHALLENGE_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getChallengeListList().hashCode();
    }
    hash = (37 * hash) + IS_OPEN_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsOpen());
    hash = (37 * hash) + STAGE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getStageId();
    hash = (37 * hash) + OPEN_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getOpenTime();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getChallengeListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (dungeonInfoBuilder_ == null) {
        dungeonInfo_ = null;
      } else {
        dungeonInfo_ = null;
        dungeonInfoBuilder_ = null;
      }
      if (challengeListBuilder_ == null) {
        challengeList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        challengeListBuilder_.clear();
      }
      isOpen_ = false;

      stageId_ = 0;

      openTime_ = 0;

      return this;
    }

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

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.activity.ChannelerSlabChallengeStage buildPartial() {
      io.grasscutter.net.proto.activity.ChannelerSlabChallengeStage result = new io.grasscutter.net.proto.activity.ChannelerSlabChallengeStage(this);
      int from_bitField0_ = bitField0_;
      if (dungeonInfoBuilder_ == null) {
        result.dungeonInfo_ = dungeonInfo_;
      } else {
        result.dungeonInfo_ = dungeonInfoBuilder_.build();
      }
      if (challengeListBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          challengeList_ = java.util.Collections.unmodifiableList(challengeList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.challengeList_ = challengeList_;
      } else {
        result.challengeList_ = challengeListBuilder_.build();
      }
      result.isOpen_ = isOpen_;
      result.stageId_ = stageId_;
      result.openTime_ = openTime_;
      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.ChannelerSlabChallengeStage) {
        return mergeFrom((io.grasscutter.net.proto.activity.ChannelerSlabChallengeStage)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.activity.ChannelerSlabChallengeStage other) {
      if (other == io.grasscutter.net.proto.activity.ChannelerSlabChallengeStage.getDefaultInstance()) return this;
      if (other.hasDungeonInfo()) {
        mergeDungeonInfo(other.getDungeonInfo());
      }
      if (challengeListBuilder_ == null) {
        if (!other.challengeList_.isEmpty()) {
          if (challengeList_.isEmpty()) {
            challengeList_ = other.challengeList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureChallengeListIsMutable();
            challengeList_.addAll(other.challengeList_);
          }
          onChanged();
        }
      } else {
        if (!other.challengeList_.isEmpty()) {
          if (challengeListBuilder_.isEmpty()) {
            challengeListBuilder_.dispose();
            challengeListBuilder_ = null;
            challengeList_ = other.challengeList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            challengeListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getChallengeListFieldBuilder() : null;
          } else {
            challengeListBuilder_.addAllMessages(other.challengeList_);
          }
        }
      }
      if (other.getIsOpen() != false) {
        setIsOpen(other.getIsOpen());
      }
      if (other.getStageId() != 0) {
        setStageId(other.getStageId());
      }
      if (other.getOpenTime() != 0) {
        setOpenTime(other.getOpenTime());
      }
      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.ChannelerSlabChallengeStage parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.activity.ChannelerSlabChallengeStage) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon dungeonInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon, io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.Builder, io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeonOrBuilder> dungeonInfoBuilder_;
    /**
     * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
     * @return Whether the dungeonInfo field is set.
     */
    public boolean hasDungeonInfo() {
      return dungeonInfoBuilder_ != null || dungeonInfo_ != null;
    }
    /**
     * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
     * @return The dungeonInfo.
     */
    public io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon getDungeonInfo() {
      if (dungeonInfoBuilder_ == null) {
        return dungeonInfo_ == null ? io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.getDefaultInstance() : dungeonInfo_;
      } else {
        return dungeonInfoBuilder_.getMessage();
      }
    }
    /**
     * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
     */
    public Builder setDungeonInfo(io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon value) {
      if (dungeonInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dungeonInfo_ = value;
        onChanged();
      } else {
        dungeonInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
     */
    public Builder setDungeonInfo(
        io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.Builder builderForValue) {
      if (dungeonInfoBuilder_ == null) {
        dungeonInfo_ = builderForValue.build();
        onChanged();
      } else {
        dungeonInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
     */
    public Builder mergeDungeonInfo(io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon value) {
      if (dungeonInfoBuilder_ == null) {
        if (dungeonInfo_ != null) {
          dungeonInfo_ =
            io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.newBuilder(dungeonInfo_).mergeFrom(value).buildPartial();
        } else {
          dungeonInfo_ = value;
        }
        onChanged();
      } else {
        dungeonInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
     */
    public Builder clearDungeonInfo() {
      if (dungeonInfoBuilder_ == null) {
        dungeonInfo_ = null;
        onChanged();
      } else {
        dungeonInfo_ = null;
        dungeonInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
     */
    public io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.Builder getDungeonInfoBuilder() {
      
      onChanged();
      return getDungeonInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
     */
    public io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeonOrBuilder getDungeonInfoOrBuilder() {
      if (dungeonInfoBuilder_ != null) {
        return dungeonInfoBuilder_.getMessageOrBuilder();
      } else {
        return dungeonInfo_ == null ?
            io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.getDefaultInstance() : dungeonInfo_;
      }
    }
    /**
     * <code>.ChannelerSlabOneoffDungeon dungeon_info = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon, io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.Builder, io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeonOrBuilder> 
        getDungeonInfoFieldBuilder() {
      if (dungeonInfoBuilder_ == null) {
        dungeonInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon, io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeon.Builder, io.grasscutter.net.proto.activity.ChannelerSlabOneoffDungeonOrBuilder>(
                getDungeonInfo(),
                getParentForChildren(),
                isClean());
        dungeonInfo_ = null;
      }
      return dungeonInfoBuilder_;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.activity.ChannelerSlabChallenge, io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder, io.grasscutter.net.proto.activity.ChannelerSlabChallengeOrBuilder> challengeListBuilder_;

    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public java.util.List<io.grasscutter.net.proto.activity.ChannelerSlabChallenge> getChallengeListList() {
      if (challengeListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(challengeList_);
      } else {
        return challengeListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public int getChallengeListCount() {
      if (challengeListBuilder_ == null) {
        return challengeList_.size();
      } else {
        return challengeListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public io.grasscutter.net.proto.activity.ChannelerSlabChallenge getChallengeList(int index) {
      if (challengeListBuilder_ == null) {
        return challengeList_.get(index);
      } else {
        return challengeListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public Builder setChallengeList(
        int index, io.grasscutter.net.proto.activity.ChannelerSlabChallenge value) {
      if (challengeListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureChallengeListIsMutable();
        challengeList_.set(index, value);
        onChanged();
      } else {
        challengeListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public Builder setChallengeList(
        int index, io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder builderForValue) {
      if (challengeListBuilder_ == null) {
        ensureChallengeListIsMutable();
        challengeList_.set(index, builderForValue.build());
        onChanged();
      } else {
        challengeListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public Builder addChallengeList(io.grasscutter.net.proto.activity.ChannelerSlabChallenge value) {
      if (challengeListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureChallengeListIsMutable();
        challengeList_.add(value);
        onChanged();
      } else {
        challengeListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public Builder addChallengeList(
        int index, io.grasscutter.net.proto.activity.ChannelerSlabChallenge value) {
      if (challengeListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureChallengeListIsMutable();
        challengeList_.add(index, value);
        onChanged();
      } else {
        challengeListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public Builder addChallengeList(
        io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder builderForValue) {
      if (challengeListBuilder_ == null) {
        ensureChallengeListIsMutable();
        challengeList_.add(builderForValue.build());
        onChanged();
      } else {
        challengeListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public Builder addChallengeList(
        int index, io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder builderForValue) {
      if (challengeListBuilder_ == null) {
        ensureChallengeListIsMutable();
        challengeList_.add(index, builderForValue.build());
        onChanged();
      } else {
        challengeListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public Builder addAllChallengeList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.activity.ChannelerSlabChallenge> values) {
      if (challengeListBuilder_ == null) {
        ensureChallengeListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, challengeList_);
        onChanged();
      } else {
        challengeListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public Builder clearChallengeList() {
      if (challengeListBuilder_ == null) {
        challengeList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        challengeListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public Builder removeChallengeList(int index) {
      if (challengeListBuilder_ == null) {
        ensureChallengeListIsMutable();
        challengeList_.remove(index);
        onChanged();
      } else {
        challengeListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder getChallengeListBuilder(
        int index) {
      return getChallengeListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public io.grasscutter.net.proto.activity.ChannelerSlabChallengeOrBuilder getChallengeListOrBuilder(
        int index) {
      if (challengeListBuilder_ == null) {
        return challengeList_.get(index);  } else {
        return challengeListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.activity.ChannelerSlabChallengeOrBuilder> 
         getChallengeListOrBuilderList() {
      if (challengeListBuilder_ != null) {
        return challengeListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(challengeList_);
      }
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder addChallengeListBuilder() {
      return getChallengeListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.activity.ChannelerSlabChallenge.getDefaultInstance());
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder addChallengeListBuilder(
        int index) {
      return getChallengeListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.activity.ChannelerSlabChallenge.getDefaultInstance());
    }
    /**
     * <code>repeated .ChannelerSlabChallenge challenge_list = 9;</code>
     */
    public java.util.List<io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder> 
         getChallengeListBuilderList() {
      return getChallengeListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.activity.ChannelerSlabChallenge, io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder, io.grasscutter.net.proto.activity.ChannelerSlabChallengeOrBuilder> 
        getChallengeListFieldBuilder() {
      if (challengeListBuilder_ == null) {
        challengeListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.activity.ChannelerSlabChallenge, io.grasscutter.net.proto.activity.ChannelerSlabChallenge.Builder, io.grasscutter.net.proto.activity.ChannelerSlabChallengeOrBuilder>(
                challengeList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        challengeList_ = null;
      }
      return challengeListBuilder_;
    }

    private boolean isOpen_ ;
    /**
     * <code>bool is_open = 2;</code>
     * @return The isOpen.
     */
    @java.lang.Override
    public boolean getIsOpen() {
      return isOpen_;
    }
    /**
     * <code>bool is_open = 2;</code>
     * @param value The isOpen to set.
     * @return This builder for chaining.
     */
    public Builder setIsOpen(boolean value) {
      
      isOpen_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_open = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsOpen() {
      
      isOpen_ = false;
      onChanged();
      return this;
    }

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

    private int openTime_ ;
    /**
     * <code>uint32 open_time = 8;</code>
     * @return The openTime.
     */
    @java.lang.Override
    public int getOpenTime() {
      return openTime_;
    }
    /**
     * <code>uint32 open_time = 8;</code>
     * @param value The openTime to set.
     * @return This builder for chaining.
     */
    public Builder setOpenTime(int value) {
      
      openTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 open_time = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearOpenTime() {
      
      openTime_ = 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:ChannelerSlabChallengeStage)
  }

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

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

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

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

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

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

}

