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

package io.grasscutter.net.proto.quest;

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

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

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

            parentQuestVarSeq_ = input.readUInt32();
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              questVarOpList_ = new java.util.ArrayList<io.grasscutter.net.proto.quest.QuestVarOp>();
              mutable_bitField0_ |= 0x00000001;
            }
            questVarOpList_.add(
                input.readMessage(io.grasscutter.net.proto.quest.QuestVarOp.parser(), extensionRegistry));
            break;
          }
          case 56: {

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

            questId_ = 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)) {
        questVarOpList_ = java.util.Collections.unmodifiableList(questVarOpList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.quest.Quest.internal_static_QuestUpdateQuestVarReq_descriptor;
  }

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

  public static final int QUEST_VAR_OP_LIST_FIELD_NUMBER = 6;
  private java.util.List<io.grasscutter.net.proto.quest.QuestVarOp> questVarOpList_;
  /**
   * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.quest.QuestVarOp> getQuestVarOpListList() {
    return questVarOpList_;
  }
  /**
   * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.quest.QuestVarOpOrBuilder> 
      getQuestVarOpListOrBuilderList() {
    return questVarOpList_;
  }
  /**
   * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
   */
  @java.lang.Override
  public int getQuestVarOpListCount() {
    return questVarOpList_.size();
  }
  /**
   * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.quest.QuestVarOp getQuestVarOpList(int index) {
    return questVarOpList_.get(index);
  }
  /**
   * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.quest.QuestVarOpOrBuilder getQuestVarOpListOrBuilder(
      int index) {
    return questVarOpList_.get(index);
  }

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

  public static final int PARENT_QUEST_VAR_SEQ_FIELD_NUMBER = 5;
  private int parentQuestVarSeq_;
  /**
   * <code>uint32 parent_quest_var_seq = 5;</code>
   * @return The parentQuestVarSeq.
   */
  @java.lang.Override
  public int getParentQuestVarSeq() {
    return parentQuestVarSeq_;
  }

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

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (parentQuestVarSeq_ != 0) {
      output.writeUInt32(5, parentQuestVarSeq_);
    }
    for (int i = 0; i < questVarOpList_.size(); i++) {
      output.writeMessage(6, questVarOpList_.get(i));
    }
    if (parentQuestId_ != 0) {
      output.writeUInt32(7, parentQuestId_);
    }
    if (questId_ != 0) {
      output.writeUInt32(14, questId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (parentQuestVarSeq_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(5, parentQuestVarSeq_);
    }
    for (int i = 0; i < questVarOpList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, questVarOpList_.get(i));
    }
    if (parentQuestId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(7, parentQuestId_);
    }
    if (questId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(14, questId_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    if (!getQuestVarOpListList()
        .equals(other.getQuestVarOpListList())) return false;
    if (getParentQuestId()
        != other.getParentQuestId()) return false;
    if (getParentQuestVarSeq()
        != other.getParentQuestVarSeq()) return false;
    if (getQuestId()
        != other.getQuestId()) 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 (getQuestVarOpListCount() > 0) {
      hash = (37 * hash) + QUEST_VAR_OP_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getQuestVarOpListList().hashCode();
    }
    hash = (37 * hash) + PARENT_QUEST_ID_FIELD_NUMBER;
    hash = (53 * hash) + getParentQuestId();
    hash = (37 * hash) + PARENT_QUEST_VAR_SEQ_FIELD_NUMBER;
    hash = (53 * hash) + getParentQuestVarSeq();
    hash = (37 * hash) + QUEST_ID_FIELD_NUMBER;
    hash = (53 * hash) + getQuestId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(io.grasscutter.net.proto.quest.QuestUpdateQuestVarReq 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;
  }
  /**
   * <pre>
   * CmdId: 5072
   * </pre>
   *
   * Protobuf type {@code QuestUpdateQuestVarReq}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:QuestUpdateQuestVarReq)
      io.grasscutter.net.proto.quest.QuestUpdateQuestVarReqOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.quest.Quest.internal_static_QuestUpdateQuestVarReq_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getQuestVarOpListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (questVarOpListBuilder_ == null) {
        questVarOpList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        questVarOpListBuilder_.clear();
      }
      parentQuestId_ = 0;

      parentQuestVarSeq_ = 0;

      questId_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.quest.Quest.internal_static_QuestUpdateQuestVarReq_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.quest.QuestUpdateQuestVarReq buildPartial() {
      io.grasscutter.net.proto.quest.QuestUpdateQuestVarReq result = new io.grasscutter.net.proto.quest.QuestUpdateQuestVarReq(this);
      int from_bitField0_ = bitField0_;
      if (questVarOpListBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          questVarOpList_ = java.util.Collections.unmodifiableList(questVarOpList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.questVarOpList_ = questVarOpList_;
      } else {
        result.questVarOpList_ = questVarOpListBuilder_.build();
      }
      result.parentQuestId_ = parentQuestId_;
      result.parentQuestVarSeq_ = parentQuestVarSeq_;
      result.questId_ = questId_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(io.grasscutter.net.proto.quest.QuestUpdateQuestVarReq other) {
      if (other == io.grasscutter.net.proto.quest.QuestUpdateQuestVarReq.getDefaultInstance()) return this;
      if (questVarOpListBuilder_ == null) {
        if (!other.questVarOpList_.isEmpty()) {
          if (questVarOpList_.isEmpty()) {
            questVarOpList_ = other.questVarOpList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureQuestVarOpListIsMutable();
            questVarOpList_.addAll(other.questVarOpList_);
          }
          onChanged();
        }
      } else {
        if (!other.questVarOpList_.isEmpty()) {
          if (questVarOpListBuilder_.isEmpty()) {
            questVarOpListBuilder_.dispose();
            questVarOpListBuilder_ = null;
            questVarOpList_ = other.questVarOpList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            questVarOpListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getQuestVarOpListFieldBuilder() : null;
          } else {
            questVarOpListBuilder_.addAllMessages(other.questVarOpList_);
          }
        }
      }
      if (other.getParentQuestId() != 0) {
        setParentQuestId(other.getParentQuestId());
      }
      if (other.getParentQuestVarSeq() != 0) {
        setParentQuestVarSeq(other.getParentQuestVarSeq());
      }
      if (other.getQuestId() != 0) {
        setQuestId(other.getQuestId());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private java.util.List<io.grasscutter.net.proto.quest.QuestVarOp> questVarOpList_ =
      java.util.Collections.emptyList();
    private void ensureQuestVarOpListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        questVarOpList_ = new java.util.ArrayList<io.grasscutter.net.proto.quest.QuestVarOp>(questVarOpList_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.quest.QuestVarOp, io.grasscutter.net.proto.quest.QuestVarOp.Builder, io.grasscutter.net.proto.quest.QuestVarOpOrBuilder> questVarOpListBuilder_;

    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public java.util.List<io.grasscutter.net.proto.quest.QuestVarOp> getQuestVarOpListList() {
      if (questVarOpListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(questVarOpList_);
      } else {
        return questVarOpListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public int getQuestVarOpListCount() {
      if (questVarOpListBuilder_ == null) {
        return questVarOpList_.size();
      } else {
        return questVarOpListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public io.grasscutter.net.proto.quest.QuestVarOp getQuestVarOpList(int index) {
      if (questVarOpListBuilder_ == null) {
        return questVarOpList_.get(index);
      } else {
        return questVarOpListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public Builder setQuestVarOpList(
        int index, io.grasscutter.net.proto.quest.QuestVarOp value) {
      if (questVarOpListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureQuestVarOpListIsMutable();
        questVarOpList_.set(index, value);
        onChanged();
      } else {
        questVarOpListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public Builder setQuestVarOpList(
        int index, io.grasscutter.net.proto.quest.QuestVarOp.Builder builderForValue) {
      if (questVarOpListBuilder_ == null) {
        ensureQuestVarOpListIsMutable();
        questVarOpList_.set(index, builderForValue.build());
        onChanged();
      } else {
        questVarOpListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public Builder addQuestVarOpList(io.grasscutter.net.proto.quest.QuestVarOp value) {
      if (questVarOpListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureQuestVarOpListIsMutable();
        questVarOpList_.add(value);
        onChanged();
      } else {
        questVarOpListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public Builder addQuestVarOpList(
        int index, io.grasscutter.net.proto.quest.QuestVarOp value) {
      if (questVarOpListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureQuestVarOpListIsMutable();
        questVarOpList_.add(index, value);
        onChanged();
      } else {
        questVarOpListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public Builder addQuestVarOpList(
        io.grasscutter.net.proto.quest.QuestVarOp.Builder builderForValue) {
      if (questVarOpListBuilder_ == null) {
        ensureQuestVarOpListIsMutable();
        questVarOpList_.add(builderForValue.build());
        onChanged();
      } else {
        questVarOpListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public Builder addQuestVarOpList(
        int index, io.grasscutter.net.proto.quest.QuestVarOp.Builder builderForValue) {
      if (questVarOpListBuilder_ == null) {
        ensureQuestVarOpListIsMutable();
        questVarOpList_.add(index, builderForValue.build());
        onChanged();
      } else {
        questVarOpListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public Builder addAllQuestVarOpList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.quest.QuestVarOp> values) {
      if (questVarOpListBuilder_ == null) {
        ensureQuestVarOpListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, questVarOpList_);
        onChanged();
      } else {
        questVarOpListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public Builder clearQuestVarOpList() {
      if (questVarOpListBuilder_ == null) {
        questVarOpList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        questVarOpListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public Builder removeQuestVarOpList(int index) {
      if (questVarOpListBuilder_ == null) {
        ensureQuestVarOpListIsMutable();
        questVarOpList_.remove(index);
        onChanged();
      } else {
        questVarOpListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public io.grasscutter.net.proto.quest.QuestVarOp.Builder getQuestVarOpListBuilder(
        int index) {
      return getQuestVarOpListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public io.grasscutter.net.proto.quest.QuestVarOpOrBuilder getQuestVarOpListOrBuilder(
        int index) {
      if (questVarOpListBuilder_ == null) {
        return questVarOpList_.get(index);  } else {
        return questVarOpListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.quest.QuestVarOpOrBuilder> 
         getQuestVarOpListOrBuilderList() {
      if (questVarOpListBuilder_ != null) {
        return questVarOpListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(questVarOpList_);
      }
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public io.grasscutter.net.proto.quest.QuestVarOp.Builder addQuestVarOpListBuilder() {
      return getQuestVarOpListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.quest.QuestVarOp.getDefaultInstance());
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public io.grasscutter.net.proto.quest.QuestVarOp.Builder addQuestVarOpListBuilder(
        int index) {
      return getQuestVarOpListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.quest.QuestVarOp.getDefaultInstance());
    }
    /**
     * <code>repeated .QuestVarOp quest_var_op_list = 6;</code>
     */
    public java.util.List<io.grasscutter.net.proto.quest.QuestVarOp.Builder> 
         getQuestVarOpListBuilderList() {
      return getQuestVarOpListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.quest.QuestVarOp, io.grasscutter.net.proto.quest.QuestVarOp.Builder, io.grasscutter.net.proto.quest.QuestVarOpOrBuilder> 
        getQuestVarOpListFieldBuilder() {
      if (questVarOpListBuilder_ == null) {
        questVarOpListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.quest.QuestVarOp, io.grasscutter.net.proto.quest.QuestVarOp.Builder, io.grasscutter.net.proto.quest.QuestVarOpOrBuilder>(
                questVarOpList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        questVarOpList_ = null;
      }
      return questVarOpListBuilder_;
    }

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

    private int parentQuestVarSeq_ ;
    /**
     * <code>uint32 parent_quest_var_seq = 5;</code>
     * @return The parentQuestVarSeq.
     */
    @java.lang.Override
    public int getParentQuestVarSeq() {
      return parentQuestVarSeq_;
    }
    /**
     * <code>uint32 parent_quest_var_seq = 5;</code>
     * @param value The parentQuestVarSeq to set.
     * @return This builder for chaining.
     */
    public Builder setParentQuestVarSeq(int value) {
      
      parentQuestVarSeq_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 parent_quest_var_seq = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearParentQuestVarSeq() {
      
      parentQuestVarSeq_ = 0;
      onChanged();
      return this;
    }

    private int questId_ ;
    /**
     * <code>uint32 quest_id = 14;</code>
     * @return The questId.
     */
    @java.lang.Override
    public int getQuestId() {
      return questId_;
    }
    /**
     * <code>uint32 quest_id = 14;</code>
     * @param value The questId to set.
     * @return This builder for chaining.
     */
    public Builder setQuestId(int value) {
      
      questId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 quest_id = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearQuestId() {
      
      questId_ = 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:QuestUpdateQuestVarReq)
  }

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

  public static io.grasscutter.net.proto.quest.QuestUpdateQuestVarReq getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

