// Code generated by protocol buffer compiler. Do not edit!
package emu.lunarcore.proto;

import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
import us.hebi.quickbuf.RepeatedInt;
import us.hebi.quickbuf.RepeatedMessage;

public final class MissionStatusBySceneInfoOuterClass {
  /**
   * Protobuf type {@code MissionStatusBySceneInfo}
   */
  public static final class MissionStatusBySceneInfo extends ProtoMessage<MissionStatusBySceneInfo> implements Cloneable {
    private static final long serialVersionUID = 0L;

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 disabled_main_mission_id_list = 9;</code>
     */
    private final RepeatedInt disabledMainMissionIdList = RepeatedInt.newEmptyInstance();

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 finished_main_mission_id_list = 13;</code>
     */
    private final RepeatedInt finishedMainMissionIdList = RepeatedInt.newEmptyInstance();

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 unfinished_main_mission_id_list = 14;</code>
     */
    private final RepeatedInt unfinishedMainMissionIdList = RepeatedInt.newEmptyInstance();

    /**
     * <code>repeated .MainMissionCustomValue main_mission_mcv_list = 3;</code>
     */
    private final RepeatedMessage<MainMissionCustomValueOuterClass.MainMissionCustomValue> mainMissionMcvList = RepeatedMessage.newEmptyInstance(MainMissionCustomValueOuterClass.MainMissionCustomValue.getFactory());

    /**
     * <code>repeated .Mission sub_mission_status_list = 15;</code>
     */
    private final RepeatedMessage<MissionOuterClass.Mission> subMissionStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory());

    private MissionStatusBySceneInfo() {
    }

    /**
     * @return a new empty instance of {@code MissionStatusBySceneInfo}
     */
    public static MissionStatusBySceneInfo newInstance() {
      return new MissionStatusBySceneInfo();
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 disabled_main_mission_id_list = 9;</code>
     * @return whether the disabledMainMissionIdList field is set
     */
    public boolean hasDisabledMainMissionIdList() {
      return (bitField0_ & 0x00000001) != 0;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 disabled_main_mission_id_list = 9;</code>
     * @return this
     */
    public MissionStatusBySceneInfo clearDisabledMainMissionIdList() {
      bitField0_ &= ~0x00000001;
      disabledMainMissionIdList.clear();
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 disabled_main_mission_id_list = 9;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableDisabledMainMissionIdList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedInt getDisabledMainMissionIdList() {
      return disabledMainMissionIdList;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 disabled_main_mission_id_list = 9;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedInt getMutableDisabledMainMissionIdList() {
      bitField0_ |= 0x00000001;
      return disabledMainMissionIdList;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 disabled_main_mission_id_list = 9;</code>
     * @param value the disabledMainMissionIdList to add
     * @return this
     */
    public MissionStatusBySceneInfo addDisabledMainMissionIdList(final int value) {
      bitField0_ |= 0x00000001;
      disabledMainMissionIdList.add(value);
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 disabled_main_mission_id_list = 9;</code>
     * @param values the disabledMainMissionIdList to add
     * @return this
     */
    public MissionStatusBySceneInfo addAllDisabledMainMissionIdList(final int... values) {
      bitField0_ |= 0x00000001;
      disabledMainMissionIdList.addAll(values);
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 finished_main_mission_id_list = 13;</code>
     * @return whether the finishedMainMissionIdList field is set
     */
    public boolean hasFinishedMainMissionIdList() {
      return (bitField0_ & 0x00000002) != 0;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 finished_main_mission_id_list = 13;</code>
     * @return this
     */
    public MissionStatusBySceneInfo clearFinishedMainMissionIdList() {
      bitField0_ &= ~0x00000002;
      finishedMainMissionIdList.clear();
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 finished_main_mission_id_list = 13;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableFinishedMainMissionIdList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedInt getFinishedMainMissionIdList() {
      return finishedMainMissionIdList;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 finished_main_mission_id_list = 13;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedInt getMutableFinishedMainMissionIdList() {
      bitField0_ |= 0x00000002;
      return finishedMainMissionIdList;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 finished_main_mission_id_list = 13;</code>
     * @param value the finishedMainMissionIdList to add
     * @return this
     */
    public MissionStatusBySceneInfo addFinishedMainMissionIdList(final int value) {
      bitField0_ |= 0x00000002;
      finishedMainMissionIdList.add(value);
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 finished_main_mission_id_list = 13;</code>
     * @param values the finishedMainMissionIdList to add
     * @return this
     */
    public MissionStatusBySceneInfo addAllFinishedMainMissionIdList(final int... values) {
      bitField0_ |= 0x00000002;
      finishedMainMissionIdList.addAll(values);
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 unfinished_main_mission_id_list = 14;</code>
     * @return whether the unfinishedMainMissionIdList field is set
     */
    public boolean hasUnfinishedMainMissionIdList() {
      return (bitField0_ & 0x00000004) != 0;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 unfinished_main_mission_id_list = 14;</code>
     * @return this
     */
    public MissionStatusBySceneInfo clearUnfinishedMainMissionIdList() {
      bitField0_ &= ~0x00000004;
      unfinishedMainMissionIdList.clear();
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 unfinished_main_mission_id_list = 14;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableUnfinishedMainMissionIdList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedInt getUnfinishedMainMissionIdList() {
      return unfinishedMainMissionIdList;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 unfinished_main_mission_id_list = 14;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedInt getMutableUnfinishedMainMissionIdList() {
      bitField0_ |= 0x00000004;
      return unfinishedMainMissionIdList;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 unfinished_main_mission_id_list = 14;</code>
     * @param value the unfinishedMainMissionIdList to add
     * @return this
     */
    public MissionStatusBySceneInfo addUnfinishedMainMissionIdList(final int value) {
      bitField0_ |= 0x00000004;
      unfinishedMainMissionIdList.add(value);
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>repeated uint32 unfinished_main_mission_id_list = 14;</code>
     * @param values the unfinishedMainMissionIdList to add
     * @return this
     */
    public MissionStatusBySceneInfo addAllUnfinishedMainMissionIdList(final int... values) {
      bitField0_ |= 0x00000004;
      unfinishedMainMissionIdList.addAll(values);
      return this;
    }

    /**
     * <code>repeated .MainMissionCustomValue main_mission_mcv_list = 3;</code>
     * @return whether the mainMissionMcvList field is set
     */
    public boolean hasMainMissionMcvList() {
      return (bitField0_ & 0x00000008) != 0;
    }

    /**
     * <code>repeated .MainMissionCustomValue main_mission_mcv_list = 3;</code>
     * @return this
     */
    public MissionStatusBySceneInfo clearMainMissionMcvList() {
      bitField0_ &= ~0x00000008;
      mainMissionMcvList.clear();
      return this;
    }

    /**
     * <code>repeated .MainMissionCustomValue main_mission_mcv_list = 3;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableMainMissionMcvList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<MainMissionCustomValueOuterClass.MainMissionCustomValue> getMainMissionMcvList(
        ) {
      return mainMissionMcvList;
    }

    /**
     * <code>repeated .MainMissionCustomValue main_mission_mcv_list = 3;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedMessage<MainMissionCustomValueOuterClass.MainMissionCustomValue> getMutableMainMissionMcvList(
        ) {
      bitField0_ |= 0x00000008;
      return mainMissionMcvList;
    }

    /**
     * <code>repeated .MainMissionCustomValue main_mission_mcv_list = 3;</code>
     * @param value the mainMissionMcvList to add
     * @return this
     */
    public MissionStatusBySceneInfo addMainMissionMcvList(
        final MainMissionCustomValueOuterClass.MainMissionCustomValue value) {
      bitField0_ |= 0x00000008;
      mainMissionMcvList.add(value);
      return this;
    }

    /**
     * <code>repeated .MainMissionCustomValue main_mission_mcv_list = 3;</code>
     * @param values the mainMissionMcvList to add
     * @return this
     */
    public MissionStatusBySceneInfo addAllMainMissionMcvList(
        final MainMissionCustomValueOuterClass.MainMissionCustomValue... values) {
      bitField0_ |= 0x00000008;
      mainMissionMcvList.addAll(values);
      return this;
    }

    /**
     * <code>repeated .Mission sub_mission_status_list = 15;</code>
     * @return whether the subMissionStatusList field is set
     */
    public boolean hasSubMissionStatusList() {
      return (bitField0_ & 0x00000010) != 0;
    }

    /**
     * <code>repeated .Mission sub_mission_status_list = 15;</code>
     * @return this
     */
    public MissionStatusBySceneInfo clearSubMissionStatusList() {
      bitField0_ &= ~0x00000010;
      subMissionStatusList.clear();
      return this;
    }

    /**
     * <code>repeated .Mission sub_mission_status_list = 15;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableSubMissionStatusList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<MissionOuterClass.Mission> getSubMissionStatusList() {
      return subMissionStatusList;
    }

    /**
     * <code>repeated .Mission sub_mission_status_list = 15;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedMessage<MissionOuterClass.Mission> getMutableSubMissionStatusList() {
      bitField0_ |= 0x00000010;
      return subMissionStatusList;
    }

    /**
     * <code>repeated .Mission sub_mission_status_list = 15;</code>
     * @param value the subMissionStatusList to add
     * @return this
     */
    public MissionStatusBySceneInfo addSubMissionStatusList(final MissionOuterClass.Mission value) {
      bitField0_ |= 0x00000010;
      subMissionStatusList.add(value);
      return this;
    }

    /**
     * <code>repeated .Mission sub_mission_status_list = 15;</code>
     * @param values the subMissionStatusList to add
     * @return this
     */
    public MissionStatusBySceneInfo addAllSubMissionStatusList(
        final MissionOuterClass.Mission... values) {
      bitField0_ |= 0x00000010;
      subMissionStatusList.addAll(values);
      return this;
    }

    @Override
    public MissionStatusBySceneInfo copyFrom(final MissionStatusBySceneInfo other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        disabledMainMissionIdList.copyFrom(other.disabledMainMissionIdList);
        finishedMainMissionIdList.copyFrom(other.finishedMainMissionIdList);
        unfinishedMainMissionIdList.copyFrom(other.unfinishedMainMissionIdList);
        mainMissionMcvList.copyFrom(other.mainMissionMcvList);
        subMissionStatusList.copyFrom(other.subMissionStatusList);
      }
      return this;
    }

    @Override
    public MissionStatusBySceneInfo mergeFrom(final MissionStatusBySceneInfo other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasDisabledMainMissionIdList()) {
        getMutableDisabledMainMissionIdList().addAll(other.disabledMainMissionIdList);
      }
      if (other.hasFinishedMainMissionIdList()) {
        getMutableFinishedMainMissionIdList().addAll(other.finishedMainMissionIdList);
      }
      if (other.hasUnfinishedMainMissionIdList()) {
        getMutableUnfinishedMainMissionIdList().addAll(other.unfinishedMainMissionIdList);
      }
      if (other.hasMainMissionMcvList()) {
        getMutableMainMissionMcvList().addAll(other.mainMissionMcvList);
      }
      if (other.hasSubMissionStatusList()) {
        getMutableSubMissionStatusList().addAll(other.subMissionStatusList);
      }
      return this;
    }

    @Override
    public MissionStatusBySceneInfo clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      disabledMainMissionIdList.clear();
      finishedMainMissionIdList.clear();
      unfinishedMainMissionIdList.clear();
      mainMissionMcvList.clear();
      subMissionStatusList.clear();
      return this;
    }

    @Override
    public MissionStatusBySceneInfo clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      disabledMainMissionIdList.clear();
      finishedMainMissionIdList.clear();
      unfinishedMainMissionIdList.clear();
      mainMissionMcvList.clearQuick();
      subMissionStatusList.clearQuick();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof MissionStatusBySceneInfo)) {
        return false;
      }
      MissionStatusBySceneInfo other = (MissionStatusBySceneInfo) o;
      return bitField0_ == other.bitField0_
        && (!hasDisabledMainMissionIdList() || disabledMainMissionIdList.equals(other.disabledMainMissionIdList))
        && (!hasFinishedMainMissionIdList() || finishedMainMissionIdList.equals(other.finishedMainMissionIdList))
        && (!hasUnfinishedMainMissionIdList() || unfinishedMainMissionIdList.equals(other.unfinishedMainMissionIdList))
        && (!hasMainMissionMcvList() || mainMissionMcvList.equals(other.mainMissionMcvList))
        && (!hasSubMissionStatusList() || subMissionStatusList.equals(other.subMissionStatusList));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        for (int i = 0; i < disabledMainMissionIdList.length(); i++) {
          output.writeRawByte((byte) 72);
          output.writeUInt32NoTag(disabledMainMissionIdList.array()[i]);
        }
      }
      if ((bitField0_ & 0x00000002) != 0) {
        for (int i = 0; i < finishedMainMissionIdList.length(); i++) {
          output.writeRawByte((byte) 104);
          output.writeUInt32NoTag(finishedMainMissionIdList.array()[i]);
        }
      }
      if ((bitField0_ & 0x00000004) != 0) {
        for (int i = 0; i < unfinishedMainMissionIdList.length(); i++) {
          output.writeRawByte((byte) 112);
          output.writeUInt32NoTag(unfinishedMainMissionIdList.array()[i]);
        }
      }
      if ((bitField0_ & 0x00000008) != 0) {
        for (int i = 0; i < mainMissionMcvList.length(); i++) {
          output.writeRawByte((byte) 26);
          output.writeMessageNoTag(mainMissionMcvList.get(i));
        }
      }
      if ((bitField0_ & 0x00000010) != 0) {
        for (int i = 0; i < subMissionStatusList.length(); i++) {
          output.writeRawByte((byte) 122);
          output.writeMessageNoTag(subMissionStatusList.get(i));
        }
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += (1 * disabledMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(disabledMainMissionIdList);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += (1 * finishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(finishedMainMissionIdList);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += (1 * unfinishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unfinishedMainMissionIdList);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        size += (1 * mainMissionMcvList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mainMissionMcvList);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        size += (1 * subMissionStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subMissionStatusList);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public MissionStatusBySceneInfo mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 74: {
            // disabledMainMissionIdList [packed=true]
            input.readPackedUInt32(disabledMainMissionIdList, tag);
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 106) {
              break;
            }
          }
          case 106: {
            // finishedMainMissionIdList [packed=true]
            input.readPackedUInt32(finishedMainMissionIdList, tag);
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 114) {
              break;
            }
          }
          case 114: {
            // unfinishedMainMissionIdList [packed=true]
            input.readPackedUInt32(unfinishedMainMissionIdList, tag);
            bitField0_ |= 0x00000004;
            tag = input.readTag();
            if (tag != 26) {
              break;
            }
          }
          case 26: {
            // mainMissionMcvList
            tag = input.readRepeatedMessage(mainMissionMcvList, tag);
            bitField0_ |= 0x00000008;
            if (tag != 122) {
              break;
            }
          }
          case 122: {
            // subMissionStatusList
            tag = input.readRepeatedMessage(subMissionStatusList, tag);
            bitField0_ |= 0x00000010;
            if (tag != 0) {
              break;
            }
          }
          case 0: {
            return this;
          }
          default: {
            if (!input.skipField(tag)) {
              return this;
            }
            tag = input.readTag();
            break;
          }
          case 72: {
            // disabledMainMissionIdList [packed=false]
            tag = input.readRepeatedUInt32(disabledMainMissionIdList, tag);
            bitField0_ |= 0x00000001;
            break;
          }
          case 104: {
            // finishedMainMissionIdList [packed=false]
            tag = input.readRepeatedUInt32(finishedMainMissionIdList, tag);
            bitField0_ |= 0x00000002;
            break;
          }
          case 112: {
            // unfinishedMainMissionIdList [packed=false]
            tag = input.readRepeatedUInt32(unfinishedMainMissionIdList, tag);
            bitField0_ |= 0x00000004;
            break;
          }
        }
      }
    }

    @Override
    public void writeTo(final JsonSink output) throws IOException {
      output.beginObject();
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRepeatedUInt32(FieldNames.disabledMainMissionIdList, disabledMainMissionIdList);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRepeatedUInt32(FieldNames.finishedMainMissionIdList, finishedMainMissionIdList);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRepeatedUInt32(FieldNames.unfinishedMainMissionIdList, unfinishedMainMissionIdList);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeRepeatedMessage(FieldNames.mainMissionMcvList, mainMissionMcvList);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeRepeatedMessage(FieldNames.subMissionStatusList, subMissionStatusList);
      }
      output.endObject();
    }

    @Override
    public MissionStatusBySceneInfo mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case 83823792:
          case 1929478380: {
            if (input.isAtField(FieldNames.disabledMainMissionIdList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedUInt32(disabledMainMissionIdList);
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 104231290:
          case -1929023306: {
            if (input.isAtField(FieldNames.finishedMainMissionIdList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedUInt32(finishedMainMissionIdList);
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 61133057:
          case 1704637629: {
            if (input.isAtField(FieldNames.unfinishedMainMissionIdList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedUInt32(unfinishedMainMissionIdList);
                bitField0_ |= 0x00000004;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 905073995:
          case -1773053194: {
            if (input.isAtField(FieldNames.mainMissionMcvList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(mainMissionMcvList);
                bitField0_ |= 0x00000008;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1842850820:
          case 1165580825: {
            if (input.isAtField(FieldNames.subMissionStatusList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(subMissionStatusList);
                bitField0_ |= 0x00000010;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

    @Override
    public MissionStatusBySceneInfo clone() {
      return new MissionStatusBySceneInfo().copyFrom(this);
    }

    @Override
    public boolean isEmpty() {
      return ((bitField0_) == 0);
    }

    public static MissionStatusBySceneInfo parseFrom(final byte[] data) throws
        InvalidProtocolBufferException {
      return ProtoMessage.mergeFrom(new MissionStatusBySceneInfo(), data).checkInitialized();
    }

    public static MissionStatusBySceneInfo parseFrom(final ProtoSource input) throws IOException {
      return ProtoMessage.mergeFrom(new MissionStatusBySceneInfo(), input).checkInitialized();
    }

    public static MissionStatusBySceneInfo parseFrom(final JsonSource input) throws IOException {
      return ProtoMessage.mergeFrom(new MissionStatusBySceneInfo(), input).checkInitialized();
    }

    /**
     * @return factory for creating MissionStatusBySceneInfo messages
     */
    public static MessageFactory<MissionStatusBySceneInfo> getFactory() {
      return MissionStatusBySceneInfoFactory.INSTANCE;
    }

    private enum MissionStatusBySceneInfoFactory implements MessageFactory<MissionStatusBySceneInfo> {
      INSTANCE;

      @Override
      public MissionStatusBySceneInfo create() {
        return MissionStatusBySceneInfo.newInstance();
      }
    }

    /**
     * Contains name constants used for serializing JSON
     */
    static class FieldNames {
      static final FieldName disabledMainMissionIdList = FieldName.forField("disabledMainMissionIdList", "disabled_main_mission_id_list");

      static final FieldName finishedMainMissionIdList = FieldName.forField("finishedMainMissionIdList", "finished_main_mission_id_list");

      static final FieldName unfinishedMainMissionIdList = FieldName.forField("unfinishedMainMissionIdList", "unfinished_main_mission_id_list");

      static final FieldName mainMissionMcvList = FieldName.forField("mainMissionMcvList", "main_mission_mcv_list");

      static final FieldName subMissionStatusList = FieldName.forField("subMissionStatusList", "sub_mission_status_list");
    }
  }
}
