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

package io.grasscutter.net.proto.define;

/**
 * Protobuf type {@code Quest}
 */
public final class Quest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Quest)
    QuestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Quest.newBuilder() to construct.
  private Quest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Quest() {
    finishProgressList_ = emptyIntList();
    fKILEOBOBPK_ = emptyIntList();
    failProgressList_ = emptyIntList();
  }

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

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

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

            state_ = input.readUInt32();
            break;
          }
          case 32: {

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

            isRandom_ = input.readBool();
            break;
          }
          case 48: {

            parentQuestId_ = input.readUInt32();
            break;
          }
          case 56: {

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

            startGameTime_ = input.readUInt32();
            break;
          }
          case 72: {

            acceptTime_ = input.readUInt32();
            break;
          }
          case 80: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              finishProgressList_ = newIntList();
              mutable_bitField0_ |= 0x00000001;
            }
            finishProgressList_.addInt(input.readUInt32());
            break;
          }
          case 82: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
              finishProgressList_ = newIntList();
              mutable_bitField0_ |= 0x00000001;
            }
            while (input.getBytesUntilLimit() > 0) {
              finishProgressList_.addInt(input.readUInt32());
            }
            input.popLimit(limit);
            break;
          }
          case 88: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              failProgressList_ = newIntList();
              mutable_bitField0_ |= 0x00000004;
            }
            failProgressList_.addInt(input.readUInt32());
            break;
          }
          case 90: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
              failProgressList_ = newIntList();
              mutable_bitField0_ |= 0x00000004;
            }
            while (input.getBytesUntilLimit() > 0) {
              failProgressList_.addInt(input.readUInt32());
            }
            input.popLimit(limit);
            break;
          }
          case 96: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              fKILEOBOBPK_ = newIntList();
              mutable_bitField0_ |= 0x00000002;
            }
            fKILEOBOBPK_.addInt(input.readUInt32());
            break;
          }
          case 98: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
              fKILEOBOBPK_ = newIntList();
              mutable_bitField0_ |= 0x00000002;
            }
            while (input.getBytesUntilLimit() > 0) {
              fKILEOBOBPK_.addInt(input.readUInt32());
            }
            input.popLimit(limit);
            break;
          }
          case 106: {
            io.grasscutter.net.proto.define.ILLMMCDPFAM.Builder subBuilder = null;
            if (nCKECKMMKDK_ != null) {
              subBuilder = nCKECKMMKDK_.toBuilder();
            }
            nCKECKMMKDK_ = input.readMessage(io.grasscutter.net.proto.define.ILLMMCDPFAM.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(nCKECKMMKDK_);
              nCKECKMMKDK_ = subBuilder.buildPartial();
            }

            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)) {
        finishProgressList_.makeImmutable(); // C
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        failProgressList_.makeImmutable(); // C
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        fKILEOBOBPK_.makeImmutable(); // C
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.define.Define.internal_static_Quest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.define.Define.internal_static_Quest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.define.Quest.class, io.grasscutter.net.proto.define.Quest.Builder.class);
  }

  public static final int FINISH_PROGRESS_LIST_FIELD_NUMBER = 10;
  private com.google.protobuf.Internal.IntList finishProgressList_;
  /**
   * <code>repeated uint32 finish_progress_list = 10;</code>
   * @return A list containing the finishProgressList.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer>
      getFinishProgressListList() {
    return finishProgressList_;
  }
  /**
   * <code>repeated uint32 finish_progress_list = 10;</code>
   * @return The count of finishProgressList.
   */
  public int getFinishProgressListCount() {
    return finishProgressList_.size();
  }
  /**
   * <code>repeated uint32 finish_progress_list = 10;</code>
   * @param index The index of the element to return.
   * @return The finishProgressList at the given index.
   */
  public int getFinishProgressList(int index) {
    return finishProgressList_.getInt(index);
  }
  private int finishProgressListMemoizedSerializedSize = -1;

  public static final int FKILEOBOBPK_FIELD_NUMBER = 12;
  private com.google.protobuf.Internal.IntList fKILEOBOBPK_;
  /**
   * <code>repeated uint32 FKILEOBOBPK = 12;</code>
   * @return A list containing the fKILEOBOBPK.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer>
      getFKILEOBOBPKList() {
    return fKILEOBOBPK_;
  }
  /**
   * <code>repeated uint32 FKILEOBOBPK = 12;</code>
   * @return The count of fKILEOBOBPK.
   */
  public int getFKILEOBOBPKCount() {
    return fKILEOBOBPK_.size();
  }
  /**
   * <code>repeated uint32 FKILEOBOBPK = 12;</code>
   * @param index The index of the element to return.
   * @return The fKILEOBOBPK at the given index.
   */
  public int getFKILEOBOBPK(int index) {
    return fKILEOBOBPK_.getInt(index);
  }
  private int fKILEOBOBPKMemoizedSerializedSize = -1;

  public static final int NCKECKMMKDK_FIELD_NUMBER = 13;
  private io.grasscutter.net.proto.define.ILLMMCDPFAM nCKECKMMKDK_;
  /**
   * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
   * @return Whether the nCKECKMMKDK field is set.
   */
  @java.lang.Override
  public boolean hasNCKECKMMKDK() {
    return nCKECKMMKDK_ != null;
  }
  /**
   * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
   * @return The nCKECKMMKDK.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.ILLMMCDPFAM getNCKECKMMKDK() {
    return nCKECKMMKDK_ == null ? io.grasscutter.net.proto.define.ILLMMCDPFAM.getDefaultInstance() : nCKECKMMKDK_;
  }
  /**
   * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.ILLMMCDPFAMOrBuilder getNCKECKMMKDKOrBuilder() {
    return getNCKECKMMKDK();
  }

  public static final int FAIL_PROGRESS_LIST_FIELD_NUMBER = 11;
  private com.google.protobuf.Internal.IntList failProgressList_;
  /**
   * <code>repeated uint32 fail_progress_list = 11;</code>
   * @return A list containing the failProgressList.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer>
      getFailProgressListList() {
    return failProgressList_;
  }
  /**
   * <code>repeated uint32 fail_progress_list = 11;</code>
   * @return The count of failProgressList.
   */
  public int getFailProgressListCount() {
    return failProgressList_.size();
  }
  /**
   * <code>repeated uint32 fail_progress_list = 11;</code>
   * @param index The index of the element to return.
   * @return The failProgressList at the given index.
   */
  public int getFailProgressList(int index) {
    return failProgressList_.getInt(index);
  }
  private int failProgressListMemoizedSerializedSize = -1;

  public static final int QUEST_ID_FIELD_NUMBER = 1;
  private int questId_;
  /**
   * <code>uint32 quest_id = 1;</code>
   * @return The questId.
   */
  @java.lang.Override
  public int getQuestId() {
    return questId_;
  }

  public static final int IS_RANDOM_FIELD_NUMBER = 5;
  private boolean isRandom_;
  /**
   * <code>bool is_random = 5;</code>
   * @return The isRandom.
   */
  @java.lang.Override
  public boolean getIsRandom() {
    return isRandom_;
  }

  public static final int START_TIME_FIELD_NUMBER = 4;
  private int startTime_;
  /**
   * <code>uint32 start_time = 4;</code>
   * @return The startTime.
   */
  @java.lang.Override
  public int getStartTime() {
    return startTime_;
  }

  public static final int ACCEPT_TIME_FIELD_NUMBER = 9;
  private int acceptTime_;
  /**
   * <code>uint32 accept_time = 9;</code>
   * @return The acceptTime.
   */
  @java.lang.Override
  public int getAcceptTime() {
    return acceptTime_;
  }

  public static final int START_GAME_TIME_FIELD_NUMBER = 8;
  private int startGameTime_;
  /**
   * <code>uint32 start_game_time = 8;</code>
   * @return The startGameTime.
   */
  @java.lang.Override
  public int getStartGameTime() {
    return startGameTime_;
  }

  public static final int STATE_FIELD_NUMBER = 2;
  private int state_;
  /**
   * <code>uint32 state = 2;</code>
   * @return The state.
   */
  @java.lang.Override
  public int getState() {
    return state_;
  }

  public static final int PARENT_QUEST_ID_FIELD_NUMBER = 6;
  private int parentQuestId_;
  /**
   * <code>uint32 parent_quest_id = 6;</code>
   * @return The parentQuestId.
   */
  @java.lang.Override
  public int getParentQuestId() {
    return parentQuestId_;
  }

  public static final int QUEST_CONFIG_ID_FIELD_NUMBER = 7;
  private int questConfigId_;
  /**
   * <code>uint32 quest_config_id = 7;</code>
   * @return The questConfigId.
   */
  @java.lang.Override
  public int getQuestConfigId() {
    return questConfigId_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    getSerializedSize();
    if (questId_ != 0) {
      output.writeUInt32(1, questId_);
    }
    if (state_ != 0) {
      output.writeUInt32(2, state_);
    }
    if (startTime_ != 0) {
      output.writeUInt32(4, startTime_);
    }
    if (isRandom_ != false) {
      output.writeBool(5, isRandom_);
    }
    if (parentQuestId_ != 0) {
      output.writeUInt32(6, parentQuestId_);
    }
    if (questConfigId_ != 0) {
      output.writeUInt32(7, questConfigId_);
    }
    if (startGameTime_ != 0) {
      output.writeUInt32(8, startGameTime_);
    }
    if (acceptTime_ != 0) {
      output.writeUInt32(9, acceptTime_);
    }
    if (getFinishProgressListList().size() > 0) {
      output.writeUInt32NoTag(82);
      output.writeUInt32NoTag(finishProgressListMemoizedSerializedSize);
    }
    for (int i = 0; i < finishProgressList_.size(); i++) {
      output.writeUInt32NoTag(finishProgressList_.getInt(i));
    }
    if (getFailProgressListList().size() > 0) {
      output.writeUInt32NoTag(90);
      output.writeUInt32NoTag(failProgressListMemoizedSerializedSize);
    }
    for (int i = 0; i < failProgressList_.size(); i++) {
      output.writeUInt32NoTag(failProgressList_.getInt(i));
    }
    if (getFKILEOBOBPKList().size() > 0) {
      output.writeUInt32NoTag(98);
      output.writeUInt32NoTag(fKILEOBOBPKMemoizedSerializedSize);
    }
    for (int i = 0; i < fKILEOBOBPK_.size(); i++) {
      output.writeUInt32NoTag(fKILEOBOBPK_.getInt(i));
    }
    if (nCKECKMMKDK_ != null) {
      output.writeMessage(13, getNCKECKMMKDK());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (questId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(1, questId_);
    }
    if (state_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(2, state_);
    }
    if (startTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(4, startTime_);
    }
    if (isRandom_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(5, isRandom_);
    }
    if (parentQuestId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(6, parentQuestId_);
    }
    if (questConfigId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(7, questConfigId_);
    }
    if (startGameTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(8, startGameTime_);
    }
    if (acceptTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(9, acceptTime_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < finishProgressList_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(finishProgressList_.getInt(i));
      }
      size += dataSize;
      if (!getFinishProgressListList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      finishProgressListMemoizedSerializedSize = dataSize;
    }
    {
      int dataSize = 0;
      for (int i = 0; i < failProgressList_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(failProgressList_.getInt(i));
      }
      size += dataSize;
      if (!getFailProgressListList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      failProgressListMemoizedSerializedSize = dataSize;
    }
    {
      int dataSize = 0;
      for (int i = 0; i < fKILEOBOBPK_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(fKILEOBOBPK_.getInt(i));
      }
      size += dataSize;
      if (!getFKILEOBOBPKList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      fKILEOBOBPKMemoizedSerializedSize = dataSize;
    }
    if (nCKECKMMKDK_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(13, getNCKECKMMKDK());
    }
    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.define.Quest)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.Quest other = (io.grasscutter.net.proto.define.Quest) obj;

    if (!getFinishProgressListList()
        .equals(other.getFinishProgressListList())) return false;
    if (!getFKILEOBOBPKList()
        .equals(other.getFKILEOBOBPKList())) return false;
    if (hasNCKECKMMKDK() != other.hasNCKECKMMKDK()) return false;
    if (hasNCKECKMMKDK()) {
      if (!getNCKECKMMKDK()
          .equals(other.getNCKECKMMKDK())) return false;
    }
    if (!getFailProgressListList()
        .equals(other.getFailProgressListList())) return false;
    if (getQuestId()
        != other.getQuestId()) return false;
    if (getIsRandom()
        != other.getIsRandom()) return false;
    if (getStartTime()
        != other.getStartTime()) return false;
    if (getAcceptTime()
        != other.getAcceptTime()) return false;
    if (getStartGameTime()
        != other.getStartGameTime()) return false;
    if (getState()
        != other.getState()) return false;
    if (getParentQuestId()
        != other.getParentQuestId()) return false;
    if (getQuestConfigId()
        != other.getQuestConfigId()) 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 (getFinishProgressListCount() > 0) {
      hash = (37 * hash) + FINISH_PROGRESS_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getFinishProgressListList().hashCode();
    }
    if (getFKILEOBOBPKCount() > 0) {
      hash = (37 * hash) + FKILEOBOBPK_FIELD_NUMBER;
      hash = (53 * hash) + getFKILEOBOBPKList().hashCode();
    }
    if (hasNCKECKMMKDK()) {
      hash = (37 * hash) + NCKECKMMKDK_FIELD_NUMBER;
      hash = (53 * hash) + getNCKECKMMKDK().hashCode();
    }
    if (getFailProgressListCount() > 0) {
      hash = (37 * hash) + FAIL_PROGRESS_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getFailProgressListList().hashCode();
    }
    hash = (37 * hash) + QUEST_ID_FIELD_NUMBER;
    hash = (53 * hash) + getQuestId();
    hash = (37 * hash) + IS_RANDOM_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsRandom());
    hash = (37 * hash) + START_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartTime();
    hash = (37 * hash) + ACCEPT_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getAcceptTime();
    hash = (37 * hash) + START_GAME_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartGameTime();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + getState();
    hash = (37 * hash) + PARENT_QUEST_ID_FIELD_NUMBER;
    hash = (53 * hash) + getParentQuestId();
    hash = (37 * hash) + QUEST_CONFIG_ID_FIELD_NUMBER;
    hash = (53 * hash) + getQuestConfigId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.define.Define.internal_static_Quest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.define.Quest.class, io.grasscutter.net.proto.define.Quest.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      finishProgressList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000001);
      fKILEOBOBPK_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000002);
      if (nCKECKMMKDKBuilder_ == null) {
        nCKECKMMKDK_ = null;
      } else {
        nCKECKMMKDK_ = null;
        nCKECKMMKDKBuilder_ = null;
      }
      failProgressList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000004);
      questId_ = 0;

      isRandom_ = false;

      startTime_ = 0;

      acceptTime_ = 0;

      startGameTime_ = 0;

      state_ = 0;

      parentQuestId_ = 0;

      questConfigId_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.define.Define.internal_static_Quest_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.Quest buildPartial() {
      io.grasscutter.net.proto.define.Quest result = new io.grasscutter.net.proto.define.Quest(this);
      int from_bitField0_ = bitField0_;
      if (((bitField0_ & 0x00000001) != 0)) {
        finishProgressList_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.finishProgressList_ = finishProgressList_;
      if (((bitField0_ & 0x00000002) != 0)) {
        fKILEOBOBPK_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.fKILEOBOBPK_ = fKILEOBOBPK_;
      if (nCKECKMMKDKBuilder_ == null) {
        result.nCKECKMMKDK_ = nCKECKMMKDK_;
      } else {
        result.nCKECKMMKDK_ = nCKECKMMKDKBuilder_.build();
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        failProgressList_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000004);
      }
      result.failProgressList_ = failProgressList_;
      result.questId_ = questId_;
      result.isRandom_ = isRandom_;
      result.startTime_ = startTime_;
      result.acceptTime_ = acceptTime_;
      result.startGameTime_ = startGameTime_;
      result.state_ = state_;
      result.parentQuestId_ = parentQuestId_;
      result.questConfigId_ = questConfigId_;
      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.define.Quest) {
        return mergeFrom((io.grasscutter.net.proto.define.Quest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.define.Quest other) {
      if (other == io.grasscutter.net.proto.define.Quest.getDefaultInstance()) return this;
      if (!other.finishProgressList_.isEmpty()) {
        if (finishProgressList_.isEmpty()) {
          finishProgressList_ = other.finishProgressList_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureFinishProgressListIsMutable();
          finishProgressList_.addAll(other.finishProgressList_);
        }
        onChanged();
      }
      if (!other.fKILEOBOBPK_.isEmpty()) {
        if (fKILEOBOBPK_.isEmpty()) {
          fKILEOBOBPK_ = other.fKILEOBOBPK_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureFKILEOBOBPKIsMutable();
          fKILEOBOBPK_.addAll(other.fKILEOBOBPK_);
        }
        onChanged();
      }
      if (other.hasNCKECKMMKDK()) {
        mergeNCKECKMMKDK(other.getNCKECKMMKDK());
      }
      if (!other.failProgressList_.isEmpty()) {
        if (failProgressList_.isEmpty()) {
          failProgressList_ = other.failProgressList_;
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          ensureFailProgressListIsMutable();
          failProgressList_.addAll(other.failProgressList_);
        }
        onChanged();
      }
      if (other.getQuestId() != 0) {
        setQuestId(other.getQuestId());
      }
      if (other.getIsRandom() != false) {
        setIsRandom(other.getIsRandom());
      }
      if (other.getStartTime() != 0) {
        setStartTime(other.getStartTime());
      }
      if (other.getAcceptTime() != 0) {
        setAcceptTime(other.getAcceptTime());
      }
      if (other.getStartGameTime() != 0) {
        setStartGameTime(other.getStartGameTime());
      }
      if (other.getState() != 0) {
        setState(other.getState());
      }
      if (other.getParentQuestId() != 0) {
        setParentQuestId(other.getParentQuestId());
      }
      if (other.getQuestConfigId() != 0) {
        setQuestConfigId(other.getQuestConfigId());
      }
      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.define.Quest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.define.Quest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.Internal.IntList finishProgressList_ = emptyIntList();
    private void ensureFinishProgressListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        finishProgressList_ = mutableCopy(finishProgressList_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <code>repeated uint32 finish_progress_list = 10;</code>
     * @return A list containing the finishProgressList.
     */
    public java.util.List<java.lang.Integer>
        getFinishProgressListList() {
      return ((bitField0_ & 0x00000001) != 0) ?
               java.util.Collections.unmodifiableList(finishProgressList_) : finishProgressList_;
    }
    /**
     * <code>repeated uint32 finish_progress_list = 10;</code>
     * @return The count of finishProgressList.
     */
    public int getFinishProgressListCount() {
      return finishProgressList_.size();
    }
    /**
     * <code>repeated uint32 finish_progress_list = 10;</code>
     * @param index The index of the element to return.
     * @return The finishProgressList at the given index.
     */
    public int getFinishProgressList(int index) {
      return finishProgressList_.getInt(index);
    }
    /**
     * <code>repeated uint32 finish_progress_list = 10;</code>
     * @param index The index to set the value at.
     * @param value The finishProgressList to set.
     * @return This builder for chaining.
     */
    public Builder setFinishProgressList(
        int index, int value) {
      ensureFinishProgressListIsMutable();
      finishProgressList_.setInt(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 finish_progress_list = 10;</code>
     * @param value The finishProgressList to add.
     * @return This builder for chaining.
     */
    public Builder addFinishProgressList(int value) {
      ensureFinishProgressListIsMutable();
      finishProgressList_.addInt(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 finish_progress_list = 10;</code>
     * @param values The finishProgressList to add.
     * @return This builder for chaining.
     */
    public Builder addAllFinishProgressList(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureFinishProgressListIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, finishProgressList_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 finish_progress_list = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearFinishProgressList() {
      finishProgressList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }

    private com.google.protobuf.Internal.IntList fKILEOBOBPK_ = emptyIntList();
    private void ensureFKILEOBOBPKIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        fKILEOBOBPK_ = mutableCopy(fKILEOBOBPK_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * <code>repeated uint32 FKILEOBOBPK = 12;</code>
     * @return A list containing the fKILEOBOBPK.
     */
    public java.util.List<java.lang.Integer>
        getFKILEOBOBPKList() {
      return ((bitField0_ & 0x00000002) != 0) ?
               java.util.Collections.unmodifiableList(fKILEOBOBPK_) : fKILEOBOBPK_;
    }
    /**
     * <code>repeated uint32 FKILEOBOBPK = 12;</code>
     * @return The count of fKILEOBOBPK.
     */
    public int getFKILEOBOBPKCount() {
      return fKILEOBOBPK_.size();
    }
    /**
     * <code>repeated uint32 FKILEOBOBPK = 12;</code>
     * @param index The index of the element to return.
     * @return The fKILEOBOBPK at the given index.
     */
    public int getFKILEOBOBPK(int index) {
      return fKILEOBOBPK_.getInt(index);
    }
    /**
     * <code>repeated uint32 FKILEOBOBPK = 12;</code>
     * @param index The index to set the value at.
     * @param value The fKILEOBOBPK to set.
     * @return This builder for chaining.
     */
    public Builder setFKILEOBOBPK(
        int index, int value) {
      ensureFKILEOBOBPKIsMutable();
      fKILEOBOBPK_.setInt(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 FKILEOBOBPK = 12;</code>
     * @param value The fKILEOBOBPK to add.
     * @return This builder for chaining.
     */
    public Builder addFKILEOBOBPK(int value) {
      ensureFKILEOBOBPKIsMutable();
      fKILEOBOBPK_.addInt(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 FKILEOBOBPK = 12;</code>
     * @param values The fKILEOBOBPK to add.
     * @return This builder for chaining.
     */
    public Builder addAllFKILEOBOBPK(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureFKILEOBOBPKIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, fKILEOBOBPK_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 FKILEOBOBPK = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearFKILEOBOBPK() {
      fKILEOBOBPK_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }

    private io.grasscutter.net.proto.define.ILLMMCDPFAM nCKECKMMKDK_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.ILLMMCDPFAM, io.grasscutter.net.proto.define.ILLMMCDPFAM.Builder, io.grasscutter.net.proto.define.ILLMMCDPFAMOrBuilder> nCKECKMMKDKBuilder_;
    /**
     * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
     * @return Whether the nCKECKMMKDK field is set.
     */
    public boolean hasNCKECKMMKDK() {
      return nCKECKMMKDKBuilder_ != null || nCKECKMMKDK_ != null;
    }
    /**
     * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
     * @return The nCKECKMMKDK.
     */
    public io.grasscutter.net.proto.define.ILLMMCDPFAM getNCKECKMMKDK() {
      if (nCKECKMMKDKBuilder_ == null) {
        return nCKECKMMKDK_ == null ? io.grasscutter.net.proto.define.ILLMMCDPFAM.getDefaultInstance() : nCKECKMMKDK_;
      } else {
        return nCKECKMMKDKBuilder_.getMessage();
      }
    }
    /**
     * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
     */
    public Builder setNCKECKMMKDK(io.grasscutter.net.proto.define.ILLMMCDPFAM value) {
      if (nCKECKMMKDKBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        nCKECKMMKDK_ = value;
        onChanged();
      } else {
        nCKECKMMKDKBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
     */
    public Builder setNCKECKMMKDK(
        io.grasscutter.net.proto.define.ILLMMCDPFAM.Builder builderForValue) {
      if (nCKECKMMKDKBuilder_ == null) {
        nCKECKMMKDK_ = builderForValue.build();
        onChanged();
      } else {
        nCKECKMMKDKBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
     */
    public Builder mergeNCKECKMMKDK(io.grasscutter.net.proto.define.ILLMMCDPFAM value) {
      if (nCKECKMMKDKBuilder_ == null) {
        if (nCKECKMMKDK_ != null) {
          nCKECKMMKDK_ =
            io.grasscutter.net.proto.define.ILLMMCDPFAM.newBuilder(nCKECKMMKDK_).mergeFrom(value).buildPartial();
        } else {
          nCKECKMMKDK_ = value;
        }
        onChanged();
      } else {
        nCKECKMMKDKBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
     */
    public Builder clearNCKECKMMKDK() {
      if (nCKECKMMKDKBuilder_ == null) {
        nCKECKMMKDK_ = null;
        onChanged();
      } else {
        nCKECKMMKDK_ = null;
        nCKECKMMKDKBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
     */
    public io.grasscutter.net.proto.define.ILLMMCDPFAM.Builder getNCKECKMMKDKBuilder() {
      
      onChanged();
      return getNCKECKMMKDKFieldBuilder().getBuilder();
    }
    /**
     * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
     */
    public io.grasscutter.net.proto.define.ILLMMCDPFAMOrBuilder getNCKECKMMKDKOrBuilder() {
      if (nCKECKMMKDKBuilder_ != null) {
        return nCKECKMMKDKBuilder_.getMessageOrBuilder();
      } else {
        return nCKECKMMKDK_ == null ?
            io.grasscutter.net.proto.define.ILLMMCDPFAM.getDefaultInstance() : nCKECKMMKDK_;
      }
    }
    /**
     * <code>.ILLMMCDPFAM NCKECKMMKDK = 13;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.ILLMMCDPFAM, io.grasscutter.net.proto.define.ILLMMCDPFAM.Builder, io.grasscutter.net.proto.define.ILLMMCDPFAMOrBuilder> 
        getNCKECKMMKDKFieldBuilder() {
      if (nCKECKMMKDKBuilder_ == null) {
        nCKECKMMKDKBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.ILLMMCDPFAM, io.grasscutter.net.proto.define.ILLMMCDPFAM.Builder, io.grasscutter.net.proto.define.ILLMMCDPFAMOrBuilder>(
                getNCKECKMMKDK(),
                getParentForChildren(),
                isClean());
        nCKECKMMKDK_ = null;
      }
      return nCKECKMMKDKBuilder_;
    }

    private com.google.protobuf.Internal.IntList failProgressList_ = emptyIntList();
    private void ensureFailProgressListIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        failProgressList_ = mutableCopy(failProgressList_);
        bitField0_ |= 0x00000004;
       }
    }
    /**
     * <code>repeated uint32 fail_progress_list = 11;</code>
     * @return A list containing the failProgressList.
     */
    public java.util.List<java.lang.Integer>
        getFailProgressListList() {
      return ((bitField0_ & 0x00000004) != 0) ?
               java.util.Collections.unmodifiableList(failProgressList_) : failProgressList_;
    }
    /**
     * <code>repeated uint32 fail_progress_list = 11;</code>
     * @return The count of failProgressList.
     */
    public int getFailProgressListCount() {
      return failProgressList_.size();
    }
    /**
     * <code>repeated uint32 fail_progress_list = 11;</code>
     * @param index The index of the element to return.
     * @return The failProgressList at the given index.
     */
    public int getFailProgressList(int index) {
      return failProgressList_.getInt(index);
    }
    /**
     * <code>repeated uint32 fail_progress_list = 11;</code>
     * @param index The index to set the value at.
     * @param value The failProgressList to set.
     * @return This builder for chaining.
     */
    public Builder setFailProgressList(
        int index, int value) {
      ensureFailProgressListIsMutable();
      failProgressList_.setInt(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 fail_progress_list = 11;</code>
     * @param value The failProgressList to add.
     * @return This builder for chaining.
     */
    public Builder addFailProgressList(int value) {
      ensureFailProgressListIsMutable();
      failProgressList_.addInt(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 fail_progress_list = 11;</code>
     * @param values The failProgressList to add.
     * @return This builder for chaining.
     */
    public Builder addAllFailProgressList(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureFailProgressListIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, failProgressList_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 fail_progress_list = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearFailProgressList() {
      failProgressList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }

    private int questId_ ;
    /**
     * <code>uint32 quest_id = 1;</code>
     * @return The questId.
     */
    @java.lang.Override
    public int getQuestId() {
      return questId_;
    }
    /**
     * <code>uint32 quest_id = 1;</code>
     * @param value The questId to set.
     * @return This builder for chaining.
     */
    public Builder setQuestId(int value) {
      
      questId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 quest_id = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearQuestId() {
      
      questId_ = 0;
      onChanged();
      return this;
    }

    private boolean isRandom_ ;
    /**
     * <code>bool is_random = 5;</code>
     * @return The isRandom.
     */
    @java.lang.Override
    public boolean getIsRandom() {
      return isRandom_;
    }
    /**
     * <code>bool is_random = 5;</code>
     * @param value The isRandom to set.
     * @return This builder for chaining.
     */
    public Builder setIsRandom(boolean value) {
      
      isRandom_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_random = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsRandom() {
      
      isRandom_ = false;
      onChanged();
      return this;
    }

    private int startTime_ ;
    /**
     * <code>uint32 start_time = 4;</code>
     * @return The startTime.
     */
    @java.lang.Override
    public int getStartTime() {
      return startTime_;
    }
    /**
     * <code>uint32 start_time = 4;</code>
     * @param value The startTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartTime(int value) {
      
      startTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 start_time = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartTime() {
      
      startTime_ = 0;
      onChanged();
      return this;
    }

    private int acceptTime_ ;
    /**
     * <code>uint32 accept_time = 9;</code>
     * @return The acceptTime.
     */
    @java.lang.Override
    public int getAcceptTime() {
      return acceptTime_;
    }
    /**
     * <code>uint32 accept_time = 9;</code>
     * @param value The acceptTime to set.
     * @return This builder for chaining.
     */
    public Builder setAcceptTime(int value) {
      
      acceptTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 accept_time = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearAcceptTime() {
      
      acceptTime_ = 0;
      onChanged();
      return this;
    }

    private int startGameTime_ ;
    /**
     * <code>uint32 start_game_time = 8;</code>
     * @return The startGameTime.
     */
    @java.lang.Override
    public int getStartGameTime() {
      return startGameTime_;
    }
    /**
     * <code>uint32 start_game_time = 8;</code>
     * @param value The startGameTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartGameTime(int value) {
      
      startGameTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 start_game_time = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartGameTime() {
      
      startGameTime_ = 0;
      onChanged();
      return this;
    }

    private int state_ ;
    /**
     * <code>uint32 state = 2;</code>
     * @return The state.
     */
    @java.lang.Override
    public int getState() {
      return state_;
    }
    /**
     * <code>uint32 state = 2;</code>
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(int value) {
      
      state_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 state = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearState() {
      
      state_ = 0;
      onChanged();
      return this;
    }

    private int parentQuestId_ ;
    /**
     * <code>uint32 parent_quest_id = 6;</code>
     * @return The parentQuestId.
     */
    @java.lang.Override
    public int getParentQuestId() {
      return parentQuestId_;
    }
    /**
     * <code>uint32 parent_quest_id = 6;</code>
     * @param value The parentQuestId to set.
     * @return This builder for chaining.
     */
    public Builder setParentQuestId(int value) {
      
      parentQuestId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 parent_quest_id = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearParentQuestId() {
      
      parentQuestId_ = 0;
      onChanged();
      return this;
    }

    private int questConfigId_ ;
    /**
     * <code>uint32 quest_config_id = 7;</code>
     * @return The questConfigId.
     */
    @java.lang.Override
    public int getQuestConfigId() {
      return questConfigId_;
    }
    /**
     * <code>uint32 quest_config_id = 7;</code>
     * @param value The questConfigId to set.
     * @return This builder for chaining.
     */
    public Builder setQuestConfigId(int value) {
      
      questConfigId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 quest_config_id = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearQuestConfigId() {
      
      questConfigId_ = 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:Quest)
  }

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

  public static io.grasscutter.net.proto.define.Quest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

