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

package emu.grasscutter.net.proto;

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

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

    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    java.util.List<emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo> 
        getInferencePageListList();
    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo getInferencePageList(int index);
    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    int getInferencePageListCount();
    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfoOrBuilder> 
        getInferencePageListOrBuilderList();
    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfoOrBuilder getInferencePageListOrBuilder(
        int index);

    /**
     * <code>repeated int32 quest_var = 7;</code>
     * @return A list containing the questVar.
     */
    java.util.List<java.lang.Integer> getQuestVarList();
    /**
     * <code>repeated int32 quest_var = 7;</code>
     * @return The count of questVar.
     */
    int getQuestVarCount();
    /**
     * <code>repeated int32 quest_var = 7;</code>
     * @param index The index of the element to return.
     * @return The questVar at the given index.
     */
    int getQuestVar(int index);

    /**
     * <code>uint64 video_key = 11;</code>
     * @return The videoKey.
     */
    long getVideoKey();

    /**
     * <code>uint32 parent_quest_state = 15;</code>
     * @return The parentQuestState.
     */
    int getParentQuestState();

    /**
     * <code>.ParentQuestRandomInfo random_info = 9;</code>
     * @return Whether the randomInfo field is set.
     */
    boolean hasRandomInfo();
    /**
     * <code>.ParentQuestRandomInfo random_info = 9;</code>
     * @return The randomInfo.
     */
    emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo getRandomInfo();
    /**
     * <code>.ParentQuestRandomInfo random_info = 9;</code>
     */
    emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfoOrBuilder getRandomInfoOrBuilder();

    /**
     * <code>uint32 parent_quest_id = 3;</code>
     * @return The parentQuestId.
     */
    int getParentQuestId();

    /**
     * <code>bool is_random = 12;</code>
     * @return The isRandom.
     */
    boolean getIsRandom();

    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    java.util.List<emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest> 
        getChildQuestListList();
    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest getChildQuestList(int index);
    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    int getChildQuestListCount();
    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder> 
        getChildQuestListOrBuilderList();
    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder getChildQuestListOrBuilder(
        int index);

    /**
     * <code>bool is_finished = 1;</code>
     * @return The isFinished.
     */
    boolean getIsFinished();

    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
     */
    int getTimeVarMapCount();
    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
     */
    boolean containsTimeVarMap(
        int key);
    /**
     * Use {@link #getTimeVarMapMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.Integer, java.lang.Integer>
    getTimeVarMap();
    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
     */
    java.util.Map<java.lang.Integer, java.lang.Integer>
    getTimeVarMapMap();
    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
     */

    int getTimeVarMapOrDefault(
        int key,
        int defaultValue);
    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
     */

    int getTimeVarMapOrThrow(
        int key);

    /**
     * <code>uint32 quest_var_seq = 14;</code>
     * @return The questVarSeq.
     */
    int getQuestVarSeq();
  }
  /**
   * Protobuf type {@code ParentQuest}
   */
  public static final class ParentQuest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:ParentQuest)
      ParentQuestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ParentQuest.newBuilder() to construct.
    private ParentQuest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ParentQuest() {
      inferencePageList_ = java.util.Collections.emptyList();
      questVar_ = emptyIntList();
      childQuestList_ = java.util.Collections.emptyList();
    }

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

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

              isFinished_ = input.readBool();
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
                timeVarMap_ = com.google.protobuf.MapField.newMapField(
                    TimeVarMapDefaultEntryHolder.defaultEntry);
                mutable_bitField0_ |= 0x00000008;
              }
              com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
              timeVarMap__ = input.readMessage(
                  TimeVarMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              timeVarMap_.getMutableMap().put(
                  timeVarMap__.getKey(), timeVarMap__.getValue());
              break;
            }
            case 24: {

              parentQuestId_ = input.readUInt32();
              break;
            }
            case 42: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                inferencePageList_ = new java.util.ArrayList<emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo>();
                mutable_bitField0_ |= 0x00000001;
              }
              inferencePageList_.add(
                  input.readMessage(emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.parser(), extensionRegistry));
              break;
            }
            case 56: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                questVar_ = newIntList();
                mutable_bitField0_ |= 0x00000002;
              }
              questVar_.addInt(input.readInt32());
              break;
            }
            case 58: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
                questVar_ = newIntList();
                mutable_bitField0_ |= 0x00000002;
              }
              while (input.getBytesUntilLimit() > 0) {
                questVar_.addInt(input.readInt32());
              }
              input.popLimit(limit);
              break;
            }
            case 66: {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                childQuestList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest>();
                mutable_bitField0_ |= 0x00000004;
              }
              childQuestList_.add(
                  input.readMessage(emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.parser(), extensionRegistry));
              break;
            }
            case 74: {
              emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.Builder subBuilder = null;
              if (randomInfo_ != null) {
                subBuilder = randomInfo_.toBuilder();
              }
              randomInfo_ = input.readMessage(emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(randomInfo_);
                randomInfo_ = subBuilder.buildPartial();
              }

              break;
            }
            case 88: {

              videoKey_ = input.readUInt64();
              break;
            }
            case 96: {

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

              questVarSeq_ = input.readUInt32();
              break;
            }
            case 120: {

              parentQuestState_ = 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)) {
          inferencePageList_ = java.util.Collections.unmodifiableList(inferencePageList_);
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          questVar_.makeImmutable(); // C
        }
        if (((mutable_bitField0_ & 0x00000004) != 0)) {
          childQuestList_ = java.util.Collections.unmodifiableList(childQuestList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.ParentQuestOuterClass.internal_static_ParentQuest_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetTimeVarMap();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return emu.grasscutter.net.proto.ParentQuestOuterClass.internal_static_ParentQuest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest.class, emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest.Builder.class);
    }

    public static final int INFERENCE_PAGE_LIST_FIELD_NUMBER = 5;
    private java.util.List<emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo> inferencePageList_;
    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo> getInferencePageListList() {
      return inferencePageList_;
    }
    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfoOrBuilder> 
        getInferencePageListOrBuilderList() {
      return inferencePageList_;
    }
    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    @java.lang.Override
    public int getInferencePageListCount() {
      return inferencePageList_.size();
    }
    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo getInferencePageList(int index) {
      return inferencePageList_.get(index);
    }
    /**
     * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfoOrBuilder getInferencePageListOrBuilder(
        int index) {
      return inferencePageList_.get(index);
    }

    public static final int QUEST_VAR_FIELD_NUMBER = 7;
    private com.google.protobuf.Internal.IntList questVar_;
    /**
     * <code>repeated int32 quest_var = 7;</code>
     * @return A list containing the questVar.
     */
    @java.lang.Override
    public java.util.List<java.lang.Integer>
        getQuestVarList() {
      return questVar_;
    }
    /**
     * <code>repeated int32 quest_var = 7;</code>
     * @return The count of questVar.
     */
    public int getQuestVarCount() {
      return questVar_.size();
    }
    /**
     * <code>repeated int32 quest_var = 7;</code>
     * @param index The index of the element to return.
     * @return The questVar at the given index.
     */
    public int getQuestVar(int index) {
      return questVar_.getInt(index);
    }
    private int questVarMemoizedSerializedSize = -1;

    public static final int VIDEO_KEY_FIELD_NUMBER = 11;
    private long videoKey_;
    /**
     * <code>uint64 video_key = 11;</code>
     * @return The videoKey.
     */
    @java.lang.Override
    public long getVideoKey() {
      return videoKey_;
    }

    public static final int PARENT_QUEST_STATE_FIELD_NUMBER = 15;
    private int parentQuestState_;
    /**
     * <code>uint32 parent_quest_state = 15;</code>
     * @return The parentQuestState.
     */
    @java.lang.Override
    public int getParentQuestState() {
      return parentQuestState_;
    }

    public static final int RANDOM_INFO_FIELD_NUMBER = 9;
    private emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo randomInfo_;
    /**
     * <code>.ParentQuestRandomInfo random_info = 9;</code>
     * @return Whether the randomInfo field is set.
     */
    @java.lang.Override
    public boolean hasRandomInfo() {
      return randomInfo_ != null;
    }
    /**
     * <code>.ParentQuestRandomInfo random_info = 9;</code>
     * @return The randomInfo.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo getRandomInfo() {
      return randomInfo_ == null ? emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.getDefaultInstance() : randomInfo_;
    }
    /**
     * <code>.ParentQuestRandomInfo random_info = 9;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfoOrBuilder getRandomInfoOrBuilder() {
      return getRandomInfo();
    }

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

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

    public static final int CHILD_QUEST_LIST_FIELD_NUMBER = 8;
    private java.util.List<emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest> childQuestList_;
    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest> getChildQuestListList() {
      return childQuestList_;
    }
    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder> 
        getChildQuestListOrBuilderList() {
      return childQuestList_;
    }
    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    @java.lang.Override
    public int getChildQuestListCount() {
      return childQuestList_.size();
    }
    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest getChildQuestList(int index) {
      return childQuestList_.get(index);
    }
    /**
     * <code>repeated .ChildQuest child_quest_list = 8;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder getChildQuestListOrBuilder(
        int index) {
      return childQuestList_.get(index);
    }

    public static final int IS_FINISHED_FIELD_NUMBER = 1;
    private boolean isFinished_;
    /**
     * <code>bool is_finished = 1;</code>
     * @return The isFinished.
     */
    @java.lang.Override
    public boolean getIsFinished() {
      return isFinished_;
    }

    public static final int TIME_VAR_MAP_FIELD_NUMBER = 2;
    private static final class TimeVarMapDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.Integer, java.lang.Integer> defaultEntry =
              com.google.protobuf.MapEntry
              .<java.lang.Integer, java.lang.Integer>newDefaultInstance(
                  emu.grasscutter.net.proto.ParentQuestOuterClass.internal_static_ParentQuest_TimeVarMapEntry_descriptor, 
                  com.google.protobuf.WireFormat.FieldType.UINT32,
                  0,
                  com.google.protobuf.WireFormat.FieldType.UINT32,
                  0);
    }
    private com.google.protobuf.MapField<
        java.lang.Integer, java.lang.Integer> timeVarMap_;
    private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
    internalGetTimeVarMap() {
      if (timeVarMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            TimeVarMapDefaultEntryHolder.defaultEntry);
      }
      return timeVarMap_;
    }

    public int getTimeVarMapCount() {
      return internalGetTimeVarMap().getMap().size();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
     */

    @java.lang.Override
    public boolean containsTimeVarMap(
        int key) {
      
      return internalGetTimeVarMap().getMap().containsKey(key);
    }
    /**
     * Use {@link #getTimeVarMapMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.Integer, java.lang.Integer> getTimeVarMap() {
      return getTimeVarMapMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.Integer, java.lang.Integer> getTimeVarMapMap() {
      return internalGetTimeVarMap().getMap();
    }
    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
     */
    @java.lang.Override

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

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

    public static final int QUEST_VAR_SEQ_FIELD_NUMBER = 14;
    private int questVarSeq_;
    /**
     * <code>uint32 quest_var_seq = 14;</code>
     * @return The questVarSeq.
     */
    @java.lang.Override
    public int getQuestVarSeq() {
      return questVarSeq_;
    }

    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 (isFinished_ != false) {
        output.writeBool(1, isFinished_);
      }
      com.google.protobuf.GeneratedMessageV3
        .serializeIntegerMapTo(
          output,
          internalGetTimeVarMap(),
          TimeVarMapDefaultEntryHolder.defaultEntry,
          2);
      if (parentQuestId_ != 0) {
        output.writeUInt32(3, parentQuestId_);
      }
      for (int i = 0; i < inferencePageList_.size(); i++) {
        output.writeMessage(5, inferencePageList_.get(i));
      }
      if (getQuestVarList().size() > 0) {
        output.writeUInt32NoTag(58);
        output.writeUInt32NoTag(questVarMemoizedSerializedSize);
      }
      for (int i = 0; i < questVar_.size(); i++) {
        output.writeInt32NoTag(questVar_.getInt(i));
      }
      for (int i = 0; i < childQuestList_.size(); i++) {
        output.writeMessage(8, childQuestList_.get(i));
      }
      if (randomInfo_ != null) {
        output.writeMessage(9, getRandomInfo());
      }
      if (videoKey_ != 0L) {
        output.writeUInt64(11, videoKey_);
      }
      if (isRandom_ != false) {
        output.writeBool(12, isRandom_);
      }
      if (questVarSeq_ != 0) {
        output.writeUInt32(14, questVarSeq_);
      }
      if (parentQuestState_ != 0) {
        output.writeUInt32(15, parentQuestState_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (isFinished_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(1, isFinished_);
      }
      for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
           : internalGetTimeVarMap().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
        timeVarMap__ = TimeVarMapDefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, timeVarMap__);
      }
      if (parentQuestId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(3, parentQuestId_);
      }
      for (int i = 0; i < inferencePageList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, inferencePageList_.get(i));
      }
      {
        int dataSize = 0;
        for (int i = 0; i < questVar_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(questVar_.getInt(i));
        }
        size += dataSize;
        if (!getQuestVarList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        questVarMemoizedSerializedSize = dataSize;
      }
      for (int i = 0; i < childQuestList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, childQuestList_.get(i));
      }
      if (randomInfo_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, getRandomInfo());
      }
      if (videoKey_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(11, videoKey_);
      }
      if (isRandom_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(12, isRandom_);
      }
      if (questVarSeq_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(14, questVarSeq_);
      }
      if (parentQuestState_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(15, parentQuestState_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (!getInferencePageListList()
          .equals(other.getInferencePageListList())) return false;
      if (!getQuestVarList()
          .equals(other.getQuestVarList())) return false;
      if (getVideoKey()
          != other.getVideoKey()) return false;
      if (getParentQuestState()
          != other.getParentQuestState()) return false;
      if (hasRandomInfo() != other.hasRandomInfo()) return false;
      if (hasRandomInfo()) {
        if (!getRandomInfo()
            .equals(other.getRandomInfo())) return false;
      }
      if (getParentQuestId()
          != other.getParentQuestId()) return false;
      if (getIsRandom()
          != other.getIsRandom()) return false;
      if (!getChildQuestListList()
          .equals(other.getChildQuestListList())) return false;
      if (getIsFinished()
          != other.getIsFinished()) return false;
      if (!internalGetTimeVarMap().equals(
          other.internalGetTimeVarMap())) return false;
      if (getQuestVarSeq()
          != other.getQuestVarSeq()) 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 (getInferencePageListCount() > 0) {
        hash = (37 * hash) + INFERENCE_PAGE_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getInferencePageListList().hashCode();
      }
      if (getQuestVarCount() > 0) {
        hash = (37 * hash) + QUEST_VAR_FIELD_NUMBER;
        hash = (53 * hash) + getQuestVarList().hashCode();
      }
      hash = (37 * hash) + VIDEO_KEY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getVideoKey());
      hash = (37 * hash) + PARENT_QUEST_STATE_FIELD_NUMBER;
      hash = (53 * hash) + getParentQuestState();
      if (hasRandomInfo()) {
        hash = (37 * hash) + RANDOM_INFO_FIELD_NUMBER;
        hash = (53 * hash) + getRandomInfo().hashCode();
      }
      hash = (37 * hash) + PARENT_QUEST_ID_FIELD_NUMBER;
      hash = (53 * hash) + getParentQuestId();
      hash = (37 * hash) + IS_RANDOM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsRandom());
      if (getChildQuestListCount() > 0) {
        hash = (37 * hash) + CHILD_QUEST_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getChildQuestListList().hashCode();
      }
      hash = (37 * hash) + IS_FINISHED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsFinished());
      if (!internalGetTimeVarMap().getMap().isEmpty()) {
        hash = (37 * hash) + TIME_VAR_MAP_FIELD_NUMBER;
        hash = (53 * hash) + internalGetTimeVarMap().hashCode();
      }
      hash = (37 * hash) + QUEST_VAR_SEQ_FIELD_NUMBER;
      hash = (53 * hash) + getQuestVarSeq();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 2:
            return internalGetTimeVarMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 2:
            return internalGetMutableTimeVarMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return emu.grasscutter.net.proto.ParentQuestOuterClass.internal_static_ParentQuest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest.class, emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest.Builder.class);
      }

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

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getInferencePageListFieldBuilder();
          getChildQuestListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (inferencePageListBuilder_ == null) {
          inferencePageList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          inferencePageListBuilder_.clear();
        }
        questVar_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000002);
        videoKey_ = 0L;

        parentQuestState_ = 0;

        if (randomInfoBuilder_ == null) {
          randomInfo_ = null;
        } else {
          randomInfo_ = null;
          randomInfoBuilder_ = null;
        }
        parentQuestId_ = 0;

        isRandom_ = false;

        if (childQuestListBuilder_ == null) {
          childQuestList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          childQuestListBuilder_.clear();
        }
        isFinished_ = false;

        internalGetMutableTimeVarMap().clear();
        questVarSeq_ = 0;

        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest buildPartial() {
        emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest result = new emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest(this);
        int from_bitField0_ = bitField0_;
        if (inferencePageListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            inferencePageList_ = java.util.Collections.unmodifiableList(inferencePageList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.inferencePageList_ = inferencePageList_;
        } else {
          result.inferencePageList_ = inferencePageListBuilder_.build();
        }
        if (((bitField0_ & 0x00000002) != 0)) {
          questVar_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.questVar_ = questVar_;
        result.videoKey_ = videoKey_;
        result.parentQuestState_ = parentQuestState_;
        if (randomInfoBuilder_ == null) {
          result.randomInfo_ = randomInfo_;
        } else {
          result.randomInfo_ = randomInfoBuilder_.build();
        }
        result.parentQuestId_ = parentQuestId_;
        result.isRandom_ = isRandom_;
        if (childQuestListBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            childQuestList_ = java.util.Collections.unmodifiableList(childQuestList_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.childQuestList_ = childQuestList_;
        } else {
          result.childQuestList_ = childQuestListBuilder_.build();
        }
        result.isFinished_ = isFinished_;
        result.timeVarMap_ = internalGetTimeVarMap();
        result.timeVarMap_.makeImmutable();
        result.questVarSeq_ = questVarSeq_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest other) {
        if (other == emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest.getDefaultInstance()) return this;
        if (inferencePageListBuilder_ == null) {
          if (!other.inferencePageList_.isEmpty()) {
            if (inferencePageList_.isEmpty()) {
              inferencePageList_ = other.inferencePageList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureInferencePageListIsMutable();
              inferencePageList_.addAll(other.inferencePageList_);
            }
            onChanged();
          }
        } else {
          if (!other.inferencePageList_.isEmpty()) {
            if (inferencePageListBuilder_.isEmpty()) {
              inferencePageListBuilder_.dispose();
              inferencePageListBuilder_ = null;
              inferencePageList_ = other.inferencePageList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              inferencePageListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getInferencePageListFieldBuilder() : null;
            } else {
              inferencePageListBuilder_.addAllMessages(other.inferencePageList_);
            }
          }
        }
        if (!other.questVar_.isEmpty()) {
          if (questVar_.isEmpty()) {
            questVar_ = other.questVar_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureQuestVarIsMutable();
            questVar_.addAll(other.questVar_);
          }
          onChanged();
        }
        if (other.getVideoKey() != 0L) {
          setVideoKey(other.getVideoKey());
        }
        if (other.getParentQuestState() != 0) {
          setParentQuestState(other.getParentQuestState());
        }
        if (other.hasRandomInfo()) {
          mergeRandomInfo(other.getRandomInfo());
        }
        if (other.getParentQuestId() != 0) {
          setParentQuestId(other.getParentQuestId());
        }
        if (other.getIsRandom() != false) {
          setIsRandom(other.getIsRandom());
        }
        if (childQuestListBuilder_ == null) {
          if (!other.childQuestList_.isEmpty()) {
            if (childQuestList_.isEmpty()) {
              childQuestList_ = other.childQuestList_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureChildQuestListIsMutable();
              childQuestList_.addAll(other.childQuestList_);
            }
            onChanged();
          }
        } else {
          if (!other.childQuestList_.isEmpty()) {
            if (childQuestListBuilder_.isEmpty()) {
              childQuestListBuilder_.dispose();
              childQuestListBuilder_ = null;
              childQuestList_ = other.childQuestList_;
              bitField0_ = (bitField0_ & ~0x00000004);
              childQuestListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getChildQuestListFieldBuilder() : null;
            } else {
              childQuestListBuilder_.addAllMessages(other.childQuestList_);
            }
          }
        }
        if (other.getIsFinished() != false) {
          setIsFinished(other.getIsFinished());
        }
        internalGetMutableTimeVarMap().mergeFrom(
            other.internalGetTimeVarMap());
        if (other.getQuestVarSeq() != 0) {
          setQuestVarSeq(other.getQuestVarSeq());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

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

      private java.util.List<emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo> inferencePageList_ =
        java.util.Collections.emptyList();
      private void ensureInferencePageListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          inferencePageList_ = new java.util.ArrayList<emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo>(inferencePageList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfoOrBuilder> inferencePageListBuilder_;

      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo> getInferencePageListList() {
        if (inferencePageListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(inferencePageList_);
        } else {
          return inferencePageListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public int getInferencePageListCount() {
        if (inferencePageListBuilder_ == null) {
          return inferencePageList_.size();
        } else {
          return inferencePageListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo getInferencePageList(int index) {
        if (inferencePageListBuilder_ == null) {
          return inferencePageList_.get(index);
        } else {
          return inferencePageListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public Builder setInferencePageList(
          int index, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo value) {
        if (inferencePageListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInferencePageListIsMutable();
          inferencePageList_.set(index, value);
          onChanged();
        } else {
          inferencePageListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public Builder setInferencePageList(
          int index, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder builderForValue) {
        if (inferencePageListBuilder_ == null) {
          ensureInferencePageListIsMutable();
          inferencePageList_.set(index, builderForValue.build());
          onChanged();
        } else {
          inferencePageListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public Builder addInferencePageList(emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo value) {
        if (inferencePageListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInferencePageListIsMutable();
          inferencePageList_.add(value);
          onChanged();
        } else {
          inferencePageListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public Builder addInferencePageList(
          int index, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo value) {
        if (inferencePageListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInferencePageListIsMutable();
          inferencePageList_.add(index, value);
          onChanged();
        } else {
          inferencePageListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public Builder addInferencePageList(
          emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder builderForValue) {
        if (inferencePageListBuilder_ == null) {
          ensureInferencePageListIsMutable();
          inferencePageList_.add(builderForValue.build());
          onChanged();
        } else {
          inferencePageListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public Builder addInferencePageList(
          int index, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder builderForValue) {
        if (inferencePageListBuilder_ == null) {
          ensureInferencePageListIsMutable();
          inferencePageList_.add(index, builderForValue.build());
          onChanged();
        } else {
          inferencePageListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public Builder addAllInferencePageList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo> values) {
        if (inferencePageListBuilder_ == null) {
          ensureInferencePageListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, inferencePageList_);
          onChanged();
        } else {
          inferencePageListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public Builder clearInferencePageList() {
        if (inferencePageListBuilder_ == null) {
          inferencePageList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          inferencePageListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public Builder removeInferencePageList(int index) {
        if (inferencePageListBuilder_ == null) {
          ensureInferencePageListIsMutable();
          inferencePageList_.remove(index);
          onChanged();
        } else {
          inferencePageListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder getInferencePageListBuilder(
          int index) {
        return getInferencePageListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfoOrBuilder getInferencePageListOrBuilder(
          int index) {
        if (inferencePageListBuilder_ == null) {
          return inferencePageList_.get(index);  } else {
          return inferencePageListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfoOrBuilder> 
           getInferencePageListOrBuilderList() {
        if (inferencePageListBuilder_ != null) {
          return inferencePageListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(inferencePageList_);
        }
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder addInferencePageListBuilder() {
        return getInferencePageListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.getDefaultInstance());
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder addInferencePageListBuilder(
          int index) {
        return getInferencePageListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.getDefaultInstance());
      }
      /**
       * <code>repeated .InferencePageInfo inference_page_list = 5;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder> 
           getInferencePageListBuilderList() {
        return getInferencePageListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfoOrBuilder> 
          getInferencePageListFieldBuilder() {
        if (inferencePageListBuilder_ == null) {
          inferencePageListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfo.Builder, emu.grasscutter.net.proto.InferencePageInfoOuterClass.InferencePageInfoOrBuilder>(
                  inferencePageList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          inferencePageList_ = null;
        }
        return inferencePageListBuilder_;
      }

      private com.google.protobuf.Internal.IntList questVar_ = emptyIntList();
      private void ensureQuestVarIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          questVar_ = mutableCopy(questVar_);
          bitField0_ |= 0x00000002;
         }
      }
      /**
       * <code>repeated int32 quest_var = 7;</code>
       * @return A list containing the questVar.
       */
      public java.util.List<java.lang.Integer>
          getQuestVarList() {
        return ((bitField0_ & 0x00000002) != 0) ?
                 java.util.Collections.unmodifiableList(questVar_) : questVar_;
      }
      /**
       * <code>repeated int32 quest_var = 7;</code>
       * @return The count of questVar.
       */
      public int getQuestVarCount() {
        return questVar_.size();
      }
      /**
       * <code>repeated int32 quest_var = 7;</code>
       * @param index The index of the element to return.
       * @return The questVar at the given index.
       */
      public int getQuestVar(int index) {
        return questVar_.getInt(index);
      }
      /**
       * <code>repeated int32 quest_var = 7;</code>
       * @param index The index to set the value at.
       * @param value The questVar to set.
       * @return This builder for chaining.
       */
      public Builder setQuestVar(
          int index, int value) {
        ensureQuestVarIsMutable();
        questVar_.setInt(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 quest_var = 7;</code>
       * @param value The questVar to add.
       * @return This builder for chaining.
       */
      public Builder addQuestVar(int value) {
        ensureQuestVarIsMutable();
        questVar_.addInt(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 quest_var = 7;</code>
       * @param values The questVar to add.
       * @return This builder for chaining.
       */
      public Builder addAllQuestVar(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureQuestVarIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, questVar_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 quest_var = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearQuestVar() {
        questVar_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }

      private long videoKey_ ;
      /**
       * <code>uint64 video_key = 11;</code>
       * @return The videoKey.
       */
      @java.lang.Override
      public long getVideoKey() {
        return videoKey_;
      }
      /**
       * <code>uint64 video_key = 11;</code>
       * @param value The videoKey to set.
       * @return This builder for chaining.
       */
      public Builder setVideoKey(long value) {
        
        videoKey_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 video_key = 11;</code>
       * @return This builder for chaining.
       */
      public Builder clearVideoKey() {
        
        videoKey_ = 0L;
        onChanged();
        return this;
      }

      private int parentQuestState_ ;
      /**
       * <code>uint32 parent_quest_state = 15;</code>
       * @return The parentQuestState.
       */
      @java.lang.Override
      public int getParentQuestState() {
        return parentQuestState_;
      }
      /**
       * <code>uint32 parent_quest_state = 15;</code>
       * @param value The parentQuestState to set.
       * @return This builder for chaining.
       */
      public Builder setParentQuestState(int value) {
        
        parentQuestState_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 parent_quest_state = 15;</code>
       * @return This builder for chaining.
       */
      public Builder clearParentQuestState() {
        
        parentQuestState_ = 0;
        onChanged();
        return this;
      }

      private emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo randomInfo_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo, emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.Builder, emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfoOrBuilder> randomInfoBuilder_;
      /**
       * <code>.ParentQuestRandomInfo random_info = 9;</code>
       * @return Whether the randomInfo field is set.
       */
      public boolean hasRandomInfo() {
        return randomInfoBuilder_ != null || randomInfo_ != null;
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 9;</code>
       * @return The randomInfo.
       */
      public emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo getRandomInfo() {
        if (randomInfoBuilder_ == null) {
          return randomInfo_ == null ? emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.getDefaultInstance() : randomInfo_;
        } else {
          return randomInfoBuilder_.getMessage();
        }
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 9;</code>
       */
      public Builder setRandomInfo(emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo value) {
        if (randomInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          randomInfo_ = value;
          onChanged();
        } else {
          randomInfoBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 9;</code>
       */
      public Builder setRandomInfo(
          emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.Builder builderForValue) {
        if (randomInfoBuilder_ == null) {
          randomInfo_ = builderForValue.build();
          onChanged();
        } else {
          randomInfoBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 9;</code>
       */
      public Builder mergeRandomInfo(emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo value) {
        if (randomInfoBuilder_ == null) {
          if (randomInfo_ != null) {
            randomInfo_ =
              emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.newBuilder(randomInfo_).mergeFrom(value).buildPartial();
          } else {
            randomInfo_ = value;
          }
          onChanged();
        } else {
          randomInfoBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 9;</code>
       */
      public Builder clearRandomInfo() {
        if (randomInfoBuilder_ == null) {
          randomInfo_ = null;
          onChanged();
        } else {
          randomInfo_ = null;
          randomInfoBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 9;</code>
       */
      public emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.Builder getRandomInfoBuilder() {
        
        onChanged();
        return getRandomInfoFieldBuilder().getBuilder();
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 9;</code>
       */
      public emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfoOrBuilder getRandomInfoOrBuilder() {
        if (randomInfoBuilder_ != null) {
          return randomInfoBuilder_.getMessageOrBuilder();
        } else {
          return randomInfo_ == null ?
              emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.getDefaultInstance() : randomInfo_;
        }
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 9;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo, emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.Builder, emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfoOrBuilder> 
          getRandomInfoFieldBuilder() {
        if (randomInfoBuilder_ == null) {
          randomInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo, emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.Builder, emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfoOrBuilder>(
                  getRandomInfo(),
                  getParentForChildren(),
                  isClean());
          randomInfo_ = null;
        }
        return randomInfoBuilder_;
      }

      private int parentQuestId_ ;
      /**
       * <code>uint32 parent_quest_id = 3;</code>
       * @return The parentQuestId.
       */
      @java.lang.Override
      public int getParentQuestId() {
        return parentQuestId_;
      }
      /**
       * <code>uint32 parent_quest_id = 3;</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 = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearParentQuestId() {
        
        parentQuestId_ = 0;
        onChanged();
        return this;
      }

      private boolean isRandom_ ;
      /**
       * <code>bool is_random = 12;</code>
       * @return The isRandom.
       */
      @java.lang.Override
      public boolean getIsRandom() {
        return isRandom_;
      }
      /**
       * <code>bool is_random = 12;</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 = 12;</code>
       * @return This builder for chaining.
       */
      public Builder clearIsRandom() {
        
        isRandom_ = false;
        onChanged();
        return this;
      }

      private java.util.List<emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest> childQuestList_ =
        java.util.Collections.emptyList();
      private void ensureChildQuestListIsMutable() {
        if (!((bitField0_ & 0x00000004) != 0)) {
          childQuestList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest>(childQuestList_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder> childQuestListBuilder_;

      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest> getChildQuestListList() {
        if (childQuestListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(childQuestList_);
        } else {
          return childQuestListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public int getChildQuestListCount() {
        if (childQuestListBuilder_ == null) {
          return childQuestList_.size();
        } else {
          return childQuestListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest getChildQuestList(int index) {
        if (childQuestListBuilder_ == null) {
          return childQuestList_.get(index);
        } else {
          return childQuestListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public Builder setChildQuestList(
          int index, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest value) {
        if (childQuestListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureChildQuestListIsMutable();
          childQuestList_.set(index, value);
          onChanged();
        } else {
          childQuestListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public Builder setChildQuestList(
          int index, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder builderForValue) {
        if (childQuestListBuilder_ == null) {
          ensureChildQuestListIsMutable();
          childQuestList_.set(index, builderForValue.build());
          onChanged();
        } else {
          childQuestListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public Builder addChildQuestList(emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest value) {
        if (childQuestListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureChildQuestListIsMutable();
          childQuestList_.add(value);
          onChanged();
        } else {
          childQuestListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public Builder addChildQuestList(
          int index, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest value) {
        if (childQuestListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureChildQuestListIsMutable();
          childQuestList_.add(index, value);
          onChanged();
        } else {
          childQuestListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public Builder addChildQuestList(
          emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder builderForValue) {
        if (childQuestListBuilder_ == null) {
          ensureChildQuestListIsMutable();
          childQuestList_.add(builderForValue.build());
          onChanged();
        } else {
          childQuestListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public Builder addChildQuestList(
          int index, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder builderForValue) {
        if (childQuestListBuilder_ == null) {
          ensureChildQuestListIsMutable();
          childQuestList_.add(index, builderForValue.build());
          onChanged();
        } else {
          childQuestListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public Builder addAllChildQuestList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest> values) {
        if (childQuestListBuilder_ == null) {
          ensureChildQuestListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, childQuestList_);
          onChanged();
        } else {
          childQuestListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public Builder clearChildQuestList() {
        if (childQuestListBuilder_ == null) {
          childQuestList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          childQuestListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public Builder removeChildQuestList(int index) {
        if (childQuestListBuilder_ == null) {
          ensureChildQuestListIsMutable();
          childQuestList_.remove(index);
          onChanged();
        } else {
          childQuestListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder getChildQuestListBuilder(
          int index) {
        return getChildQuestListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder getChildQuestListOrBuilder(
          int index) {
        if (childQuestListBuilder_ == null) {
          return childQuestList_.get(index);  } else {
          return childQuestListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder> 
           getChildQuestListOrBuilderList() {
        if (childQuestListBuilder_ != null) {
          return childQuestListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(childQuestList_);
        }
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder addChildQuestListBuilder() {
        return getChildQuestListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.getDefaultInstance());
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder addChildQuestListBuilder(
          int index) {
        return getChildQuestListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.getDefaultInstance());
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 8;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder> 
           getChildQuestListBuilderList() {
        return getChildQuestListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder> 
          getChildQuestListFieldBuilder() {
        if (childQuestListBuilder_ == null) {
          childQuestListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder, emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder>(
                  childQuestList_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          childQuestList_ = null;
        }
        return childQuestListBuilder_;
      }

      private boolean isFinished_ ;
      /**
       * <code>bool is_finished = 1;</code>
       * @return The isFinished.
       */
      @java.lang.Override
      public boolean getIsFinished() {
        return isFinished_;
      }
      /**
       * <code>bool is_finished = 1;</code>
       * @param value The isFinished to set.
       * @return This builder for chaining.
       */
      public Builder setIsFinished(boolean value) {
        
        isFinished_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool is_finished = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearIsFinished() {
        
        isFinished_ = false;
        onChanged();
        return this;
      }

      private com.google.protobuf.MapField<
          java.lang.Integer, java.lang.Integer> timeVarMap_;
      private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
      internalGetTimeVarMap() {
        if (timeVarMap_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              TimeVarMapDefaultEntryHolder.defaultEntry);
        }
        return timeVarMap_;
      }
      private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
      internalGetMutableTimeVarMap() {
        onChanged();;
        if (timeVarMap_ == null) {
          timeVarMap_ = com.google.protobuf.MapField.newMapField(
              TimeVarMapDefaultEntryHolder.defaultEntry);
        }
        if (!timeVarMap_.isMutable()) {
          timeVarMap_ = timeVarMap_.copy();
        }
        return timeVarMap_;
      }

      public int getTimeVarMapCount() {
        return internalGetTimeVarMap().getMap().size();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
       */

      @java.lang.Override
      public boolean containsTimeVarMap(
          int key) {
        
        return internalGetTimeVarMap().getMap().containsKey(key);
      }
      /**
       * Use {@link #getTimeVarMapMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, java.lang.Integer> getTimeVarMap() {
        return getTimeVarMapMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
       */
      @java.lang.Override

      public java.util.Map<java.lang.Integer, java.lang.Integer> getTimeVarMapMap() {
        return internalGetTimeVarMap().getMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
       */
      @java.lang.Override

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

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

      public Builder clearTimeVarMap() {
        internalGetMutableTimeVarMap().getMutableMap()
            .clear();
        return this;
      }
      /**
       * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
       */

      public Builder removeTimeVarMap(
          int key) {
        
        internalGetMutableTimeVarMap().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.Integer, java.lang.Integer>
      getMutableTimeVarMap() {
        return internalGetMutableTimeVarMap().getMutableMap();
      }
      /**
       * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
       */
      public Builder putTimeVarMap(
          int key,
          int value) {
        
        
        internalGetMutableTimeVarMap().getMutableMap()
            .put(key, value);
        return this;
      }
      /**
       * <code>map&lt;uint32, uint32&gt; time_var_map = 2;</code>
       */

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

      private int questVarSeq_ ;
      /**
       * <code>uint32 quest_var_seq = 14;</code>
       * @return The questVarSeq.
       */
      @java.lang.Override
      public int getQuestVarSeq() {
        return questVarSeq_;
      }
      /**
       * <code>uint32 quest_var_seq = 14;</code>
       * @param value The questVarSeq to set.
       * @return This builder for chaining.
       */
      public Builder setQuestVarSeq(int value) {
        
        questVarSeq_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 quest_var_seq = 14;</code>
       * @return This builder for chaining.
       */
      public Builder clearQuestVarSeq() {
        
        questVarSeq_ = 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:ParentQuest)
    }

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

    public static emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_ParentQuest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_ParentQuest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_ParentQuest_TimeVarMapEntry_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_ParentQuest_TimeVarMapEntry_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\021ParentQuest.proto\032\020ChildQuest.proto\032\027I" +
      "nferencePageInfo.proto\032\033ParentQuestRando" +
      "mInfo.proto\"\223\003\n\013ParentQuest\022/\n\023inference" +
      "_page_list\030\005 \003(\0132\022.InferencePageInfo\022\021\n\t" +
      "quest_var\030\007 \003(\005\022\021\n\tvideo_key\030\013 \001(\004\022\032\n\022pa" +
      "rent_quest_state\030\017 \001(\r\022+\n\013random_info\030\t " +
      "\001(\0132\026.ParentQuestRandomInfo\022\027\n\017parent_qu" +
      "est_id\030\003 \001(\r\022\021\n\tis_random\030\014 \001(\010\022%\n\020child" +
      "_quest_list\030\010 \003(\0132\013.ChildQuest\022\023\n\013is_fin" +
      "ished\030\001 \001(\010\0222\n\014time_var_map\030\002 \003(\0132\034.Pare" +
      "ntQuest.TimeVarMapEntry\022\025\n\rquest_var_seq" +
      "\030\016 \001(\r\0321\n\017TimeVarMapEntry\022\013\n\003key\030\001 \001(\r\022\r" +
      "\n\005value\030\002 \001(\r:\0028\001B\033\n\031emu.grasscutter.net" +
      ".protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.ChildQuestOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.InferencePageInfoOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.getDescriptor(),
        });
    internal_static_ParentQuest_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_ParentQuest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_ParentQuest_descriptor,
        new java.lang.String[] { "InferencePageList", "QuestVar", "VideoKey", "ParentQuestState", "RandomInfo", "ParentQuestId", "IsRandom", "ChildQuestList", "IsFinished", "TimeVarMap", "QuestVarSeq", });
    internal_static_ParentQuest_TimeVarMapEntry_descriptor =
      internal_static_ParentQuest_descriptor.getNestedTypes().get(0);
    internal_static_ParentQuest_TimeVarMapEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_ParentQuest_TimeVarMapEntry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    emu.grasscutter.net.proto.ChildQuestOuterClass.getDescriptor();
    emu.grasscutter.net.proto.InferencePageInfoOuterClass.getDescriptor();
    emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
