// 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>.ParentQuestRandomInfo random_info = 12;</code>
     * @return Whether the randomInfo field is set.
     */
    boolean hasRandomInfo();
    /**
     * <code>.ParentQuestRandomInfo random_info = 12;</code>
     * @return The randomInfo.
     */
    emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo getRandomInfo();
    /**
     * <code>.ParentQuestRandomInfo random_info = 12;</code>
     */
    emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfoOrBuilder getRandomInfoOrBuilder();

    /**
     * <code>uint32 quest_var_seq = 11;</code>
     * @return The questVarSeq.
     */
    int getQuestVarSeq();

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

    /**
     * <code>uint64 cutscene_encryption_key = 6;</code>
     * @return The cutsceneEncryptionKey.
     */
    long getCutsceneEncryptionKey();

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

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

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

    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 8;</code>
     */
    int getTimeVarMapCount();
    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 8;</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 = 8;</code>
     */
    java.util.Map<java.lang.Integer, java.lang.Integer>
    getTimeVarMapMap();
    /**
     * <code>map&lt;uint32, uint32&gt; time_var_map = 8;</code>
     */

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

    int getTimeVarMapOrThrow(
        int key);

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

    /**
     * <code>repeated .ChildQuest child_quest_list = 9;</code>
     */
    java.util.List<emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest> 
        getChildQuestListList();
    /**
     * <code>repeated .ChildQuest child_quest_list = 9;</code>
     */
    emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest getChildQuestList(int index);
    /**
     * <code>repeated .ChildQuest child_quest_list = 9;</code>
     */
    int getChildQuestListCount();
    /**
     * <code>repeated .ChildQuest child_quest_list = 9;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder> 
        getChildQuestListOrBuilderList();
    /**
     * <code>repeated .ChildQuest child_quest_list = 9;</code>
     */
    emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuestOrBuilder getChildQuestListOrBuilder(
        int index);
  }
  /**
   * 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() {
      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: {

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

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

              cutsceneEncryptionKey_ = input.readUInt64();
              break;
            }
            case 56: {

              isFinished_ = input.readBool();
              break;
            }
            case 66: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                timeVarMap_ = com.google.protobuf.MapField.newMapField(
                    TimeVarMapDefaultEntryHolder.defaultEntry);
                mutable_bitField0_ |= 0x00000002;
              }
              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 74: {
              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 88: {

              questVarSeq_ = input.readUInt32();
              break;
            }
            case 98: {
              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 104: {

              isRandom_ = input.readBool();
              break;
            }
            case 112: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                questVar_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              questVar_.addInt(input.readInt32());
              break;
            }
            case 114: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                questVar_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                questVar_.addInt(input.readInt32());
              }
              input.popLimit(limit);
              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_ & 0x00000004) != 0)) {
          childQuestList_ = java.util.Collections.unmodifiableList(childQuestList_);
        }
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          questVar_.makeImmutable(); // C
        }
        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 8:
          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 RANDOM_INFO_FIELD_NUMBER = 12;
    private emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo randomInfo_;
    /**
     * <code>.ParentQuestRandomInfo random_info = 12;</code>
     * @return Whether the randomInfo field is set.
     */
    @java.lang.Override
    public boolean hasRandomInfo() {
      return randomInfo_ != null;
    }
    /**
     * <code>.ParentQuestRandomInfo random_info = 12;</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 = 12;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfoOrBuilder getRandomInfoOrBuilder() {
      return getRandomInfo();
    }

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

    public static final int QUEST_VAR_FIELD_NUMBER = 14;
    private com.google.protobuf.Internal.IntList questVar_;
    /**
     * <code>repeated int32 quest_var = 14;</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 = 14;</code>
     * @return The count of questVar.
     */
    public int getQuestVarCount() {
      return questVar_.size();
    }
    /**
     * <code>repeated int32 quest_var = 14;</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 CUTSCENE_ENCRYPTION_KEY_FIELD_NUMBER = 6;
    private long cutsceneEncryptionKey_;
    /**
     * <code>uint64 cutscene_encryption_key = 6;</code>
     * @return The cutsceneEncryptionKey.
     */
    @java.lang.Override
    public long getCutsceneEncryptionKey() {
      return cutsceneEncryptionKey_;
    }

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

    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_FINISHED_FIELD_NUMBER = 7;
    private boolean isFinished_;
    /**
     * <code>bool is_finished = 7;</code>
     * @return The isFinished.
     */
    @java.lang.Override
    public boolean getIsFinished() {
      return isFinished_;
    }

    public static final int TIME_VAR_MAP_FIELD_NUMBER = 8;
    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 = 8;</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 = 8;</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 = 8;</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 = 8;</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 PARENT_QUEST_STATE_FIELD_NUMBER = 1;
    private int parentQuestState_;
    /**
     * <code>uint32 parent_quest_state = 1;</code>
     * @return The parentQuestState.
     */
    @java.lang.Override
    public int getParentQuestState() {
      return parentQuestState_;
    }

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

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

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

      size = 0;
      if (parentQuestState_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, parentQuestState_);
      }
      if (parentQuestId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(3, parentQuestId_);
      }
      if (cutsceneEncryptionKey_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(6, cutsceneEncryptionKey_);
      }
      if (isFinished_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, 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(8, timeVarMap__);
      }
      for (int i = 0; i < childQuestList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, childQuestList_.get(i));
      }
      if (questVarSeq_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(11, questVarSeq_);
      }
      if (randomInfo_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(12, getRandomInfo());
      }
      if (isRandom_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(13, isRandom_);
      }
      {
        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;
      }
      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 (hasRandomInfo() != other.hasRandomInfo()) return false;
      if (hasRandomInfo()) {
        if (!getRandomInfo()
            .equals(other.getRandomInfo())) return false;
      }
      if (getQuestVarSeq()
          != other.getQuestVarSeq()) return false;
      if (!getQuestVarList()
          .equals(other.getQuestVarList())) return false;
      if (getCutsceneEncryptionKey()
          != other.getCutsceneEncryptionKey()) return false;
      if (getIsRandom()
          != other.getIsRandom()) return false;
      if (getParentQuestId()
          != other.getParentQuestId()) return false;
      if (getIsFinished()
          != other.getIsFinished()) return false;
      if (!internalGetTimeVarMap().equals(
          other.internalGetTimeVarMap())) return false;
      if (getParentQuestState()
          != other.getParentQuestState()) return false;
      if (!getChildQuestListList()
          .equals(other.getChildQuestListList())) 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 (hasRandomInfo()) {
        hash = (37 * hash) + RANDOM_INFO_FIELD_NUMBER;
        hash = (53 * hash) + getRandomInfo().hashCode();
      }
      hash = (37 * hash) + QUEST_VAR_SEQ_FIELD_NUMBER;
      hash = (53 * hash) + getQuestVarSeq();
      if (getQuestVarCount() > 0) {
        hash = (37 * hash) + QUEST_VAR_FIELD_NUMBER;
        hash = (53 * hash) + getQuestVarList().hashCode();
      }
      hash = (37 * hash) + CUTSCENE_ENCRYPTION_KEY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCutsceneEncryptionKey());
      hash = (37 * hash) + IS_RANDOM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsRandom());
      hash = (37 * hash) + PARENT_QUEST_ID_FIELD_NUMBER;
      hash = (53 * hash) + getParentQuestId();
      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) + PARENT_QUEST_STATE_FIELD_NUMBER;
      hash = (53 * hash) + getParentQuestState();
      if (getChildQuestListCount() > 0) {
        hash = (37 * hash) + CHILD_QUEST_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getChildQuestListList().hashCode();
      }
      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 8:
            return internalGetTimeVarMap();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 8:
            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) {
          getChildQuestListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (randomInfoBuilder_ == null) {
          randomInfo_ = null;
        } else {
          randomInfo_ = null;
          randomInfoBuilder_ = null;
        }
        questVarSeq_ = 0;

        questVar_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        cutsceneEncryptionKey_ = 0L;

        isRandom_ = false;

        parentQuestId_ = 0;

        isFinished_ = false;

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

        if (childQuestListBuilder_ == null) {
          childQuestList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          childQuestListBuilder_.clear();
        }
        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 (randomInfoBuilder_ == null) {
          result.randomInfo_ = randomInfo_;
        } else {
          result.randomInfo_ = randomInfoBuilder_.build();
        }
        result.questVarSeq_ = questVarSeq_;
        if (((bitField0_ & 0x00000001) != 0)) {
          questVar_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.questVar_ = questVar_;
        result.cutsceneEncryptionKey_ = cutsceneEncryptionKey_;
        result.isRandom_ = isRandom_;
        result.parentQuestId_ = parentQuestId_;
        result.isFinished_ = isFinished_;
        result.timeVarMap_ = internalGetTimeVarMap();
        result.timeVarMap_.makeImmutable();
        result.parentQuestState_ = parentQuestState_;
        if (childQuestListBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            childQuestList_ = java.util.Collections.unmodifiableList(childQuestList_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.childQuestList_ = childQuestList_;
        } else {
          result.childQuestList_ = childQuestListBuilder_.build();
        }
        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 (other.hasRandomInfo()) {
          mergeRandomInfo(other.getRandomInfo());
        }
        if (other.getQuestVarSeq() != 0) {
          setQuestVarSeq(other.getQuestVarSeq());
        }
        if (!other.questVar_.isEmpty()) {
          if (questVar_.isEmpty()) {
            questVar_ = other.questVar_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureQuestVarIsMutable();
            questVar_.addAll(other.questVar_);
          }
          onChanged();
        }
        if (other.getCutsceneEncryptionKey() != 0L) {
          setCutsceneEncryptionKey(other.getCutsceneEncryptionKey());
        }
        if (other.getIsRandom() != false) {
          setIsRandom(other.getIsRandom());
        }
        if (other.getParentQuestId() != 0) {
          setParentQuestId(other.getParentQuestId());
        }
        if (other.getIsFinished() != false) {
          setIsFinished(other.getIsFinished());
        }
        internalGetMutableTimeVarMap().mergeFrom(
            other.internalGetTimeVarMap());
        if (other.getParentQuestState() != 0) {
          setParentQuestState(other.getParentQuestState());
        }
        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_);
            }
          }
        }
        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 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 = 12;</code>
       * @return Whether the randomInfo field is set.
       */
      public boolean hasRandomInfo() {
        return randomInfoBuilder_ != null || randomInfo_ != null;
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 12;</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 = 12;</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 = 12;</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 = 12;</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 = 12;</code>
       */
      public Builder clearRandomInfo() {
        if (randomInfoBuilder_ == null) {
          randomInfo_ = null;
          onChanged();
        } else {
          randomInfo_ = null;
          randomInfoBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 12;</code>
       */
      public emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.Builder getRandomInfoBuilder() {
        
        onChanged();
        return getRandomInfoFieldBuilder().getBuilder();
      }
      /**
       * <code>.ParentQuestRandomInfo random_info = 12;</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 = 12;</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 questVarSeq_ ;
      /**
       * <code>uint32 quest_var_seq = 11;</code>
       * @return The questVarSeq.
       */
      @java.lang.Override
      public int getQuestVarSeq() {
        return questVarSeq_;
      }
      /**
       * <code>uint32 quest_var_seq = 11;</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 = 11;</code>
       * @return This builder for chaining.
       */
      public Builder clearQuestVarSeq() {
        
        questVarSeq_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.Internal.IntList questVar_ = emptyIntList();
      private void ensureQuestVarIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          questVar_ = mutableCopy(questVar_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated int32 quest_var = 14;</code>
       * @return A list containing the questVar.
       */
      public java.util.List<java.lang.Integer>
          getQuestVarList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(questVar_) : questVar_;
      }
      /**
       * <code>repeated int32 quest_var = 14;</code>
       * @return The count of questVar.
       */
      public int getQuestVarCount() {
        return questVar_.size();
      }
      /**
       * <code>repeated int32 quest_var = 14;</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 = 14;</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 = 14;</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 = 14;</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 = 14;</code>
       * @return This builder for chaining.
       */
      public Builder clearQuestVar() {
        questVar_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      private long cutsceneEncryptionKey_ ;
      /**
       * <code>uint64 cutscene_encryption_key = 6;</code>
       * @return The cutsceneEncryptionKey.
       */
      @java.lang.Override
      public long getCutsceneEncryptionKey() {
        return cutsceneEncryptionKey_;
      }
      /**
       * <code>uint64 cutscene_encryption_key = 6;</code>
       * @param value The cutsceneEncryptionKey to set.
       * @return This builder for chaining.
       */
      public Builder setCutsceneEncryptionKey(long value) {
        
        cutsceneEncryptionKey_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 cutscene_encryption_key = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearCutsceneEncryptionKey() {
        
        cutsceneEncryptionKey_ = 0L;
        onChanged();
        return this;
      }

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

      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 isFinished_ ;
      /**
       * <code>bool is_finished = 7;</code>
       * @return The isFinished.
       */
      @java.lang.Override
      public boolean getIsFinished() {
        return isFinished_;
      }
      /**
       * <code>bool is_finished = 7;</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 = 7;</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 = 8;</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 = 8;</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 = 8;</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 = 8;</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 = 8;</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 = 8;</code>
       */
      public Builder putTimeVarMap(
          int key,
          int value) {
        
        
        internalGetMutableTimeVarMap().getMutableMap()
            .put(key, value);
        return this;
      }
      /**
       * <code>map&lt;uint32, uint32&gt; time_var_map = 8;</code>
       */

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

      private int parentQuestState_ ;
      /**
       * <code>uint32 parent_quest_state = 1;</code>
       * @return The parentQuestState.
       */
      @java.lang.Override
      public int getParentQuestState() {
        return parentQuestState_;
      }
      /**
       * <code>uint32 parent_quest_state = 1;</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 = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearParentQuestState() {
        
        parentQuestState_ = 0;
        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 = 9;</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 = 9;</code>
       */
      public int getChildQuestListCount() {
        if (childQuestListBuilder_ == null) {
          return childQuestList_.size();
        } else {
          return childQuestListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</code>
       */
      public emu.grasscutter.net.proto.ChildQuestOuterClass.ChildQuest.Builder getChildQuestListBuilder(
          int index) {
        return getChildQuestListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .ChildQuest child_quest_list = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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_;
      }
      @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\033P" +
      "arentQuestRandomInfo.proto\"\360\002\n\013ParentQue" +
      "st\022+\n\013random_info\030\014 \001(\0132\026.ParentQuestRan" +
      "domInfo\022\025\n\rquest_var_seq\030\013 \001(\r\022\021\n\tquest_" +
      "var\030\016 \003(\005\022\037\n\027cutscene_encryption_key\030\006 \001" +
      "(\004\022\021\n\tis_random\030\r \001(\010\022\027\n\017parent_quest_id" +
      "\030\003 \001(\r\022\023\n\013is_finished\030\007 \001(\010\0222\n\014time_var_" +
      "map\030\010 \003(\0132\034.ParentQuest.TimeVarMapEntry\022" +
      "\032\n\022parent_quest_state\030\001 \001(\r\022%\n\020child_que" +
      "st_list\030\t \003(\0132\013.ChildQuest\0321\n\017TimeVarMap" +
      "Entry\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.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[] { "RandomInfo", "QuestVarSeq", "QuestVar", "CutsceneEncryptionKey", "IsRandom", "ParentQuestId", "IsFinished", "TimeVarMap", "ParentQuestState", "ChildQuestList", });
    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.ParentQuestRandomInfoOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
