// 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.RepeatedMessage;
import us.hebi.quickbuf.Utf8String;

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

    /**
     * <code>optional uint32 game_mode_type = 1;</code>
     */
    private int gameModeType;

    /**
     * <code>optional uint32 client_pos_version = 4;</code>
     */
    private int clientPosVersion;

    /**
     * <code>optional uint32 plane_id = 5;</code>
     */
    private int planeId;

    /**
     * <code>optional uint32 floor_id = 10;</code>
     */
    private int floorId;

    /**
     * <code>optional uint32 entry_id = 12;</code>
     */
    private int entryId;

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 leader_entity_id = 13;</code>
     */
    private int leaderEntityId;

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 world_id = 15;</code>
     */
    private int worldId;

    /**
     * <code>optional uint32 game_id = 602;</code>
     */
    private int gameId;

    /**
     * <code>optional uint32 content_id = 986;</code>
     */
    private int contentId;

    /**
     * <code>optional .SceneIdentifierInfo scene_identifier = 1947;</code>
     */
    private final SceneIdentifierInfoOuterClass.SceneIdentifierInfo sceneIdentifier = SceneIdentifierInfoOuterClass.SceneIdentifierInfo.newInstance();

    /**
     * <code>repeated .SceneEntityInfo entity_list = 9;</code>
     */
    private final RepeatedMessage<SceneEntityInfoOuterClass.SceneEntityInfo> entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory());

    /**
     * <code>repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680;</code>
     */
    private final RepeatedMessage<FloorSavedValueMapEntry> floorSavedValueMap = RepeatedMessage.newEmptyInstance(FloorSavedValueMapEntry.getFactory());

    /**
     * <code>repeated .SceneEntityGroupInfo entity_group_list = 1153;</code>
     */
    private final RepeatedMessage<SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo> entityGroupList = RepeatedMessage.newEmptyInstance(SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo.getFactory());

    /**
     * <code>repeated .SceneGroupState group_state_list = 1553;</code>
     */
    private final RepeatedMessage<SceneGroupStateOuterClass.SceneGroupState> groupStateList = RepeatedMessage.newEmptyInstance(SceneGroupStateOuterClass.SceneGroupState.getFactory());

    private SceneInfo() {
    }

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

    /**
     * <code>optional uint32 game_mode_type = 1;</code>
     * @return whether the gameModeType field is set
     */
    public boolean hasGameModeType() {
      return (bitField0_ & 0x00000001) != 0;
    }

    /**
     * <code>optional uint32 game_mode_type = 1;</code>
     * @return this
     */
    public SceneInfo clearGameModeType() {
      bitField0_ &= ~0x00000001;
      gameModeType = 0;
      return this;
    }

    /**
     * <code>optional uint32 game_mode_type = 1;</code>
     * @return the gameModeType
     */
    public int getGameModeType() {
      return gameModeType;
    }

    /**
     * <code>optional uint32 game_mode_type = 1;</code>
     * @param value the gameModeType to set
     * @return this
     */
    public SceneInfo setGameModeType(final int value) {
      bitField0_ |= 0x00000001;
      gameModeType = value;
      return this;
    }

    /**
     * <code>optional uint32 client_pos_version = 4;</code>
     * @return whether the clientPosVersion field is set
     */
    public boolean hasClientPosVersion() {
      return (bitField0_ & 0x00000002) != 0;
    }

    /**
     * <code>optional uint32 client_pos_version = 4;</code>
     * @return this
     */
    public SceneInfo clearClientPosVersion() {
      bitField0_ &= ~0x00000002;
      clientPosVersion = 0;
      return this;
    }

    /**
     * <code>optional uint32 client_pos_version = 4;</code>
     * @return the clientPosVersion
     */
    public int getClientPosVersion() {
      return clientPosVersion;
    }

    /**
     * <code>optional uint32 client_pos_version = 4;</code>
     * @param value the clientPosVersion to set
     * @return this
     */
    public SceneInfo setClientPosVersion(final int value) {
      bitField0_ |= 0x00000002;
      clientPosVersion = value;
      return this;
    }

    /**
     * <code>optional uint32 plane_id = 5;</code>
     * @return whether the planeId field is set
     */
    public boolean hasPlaneId() {
      return (bitField0_ & 0x00000004) != 0;
    }

    /**
     * <code>optional uint32 plane_id = 5;</code>
     * @return this
     */
    public SceneInfo clearPlaneId() {
      bitField0_ &= ~0x00000004;
      planeId = 0;
      return this;
    }

    /**
     * <code>optional uint32 plane_id = 5;</code>
     * @return the planeId
     */
    public int getPlaneId() {
      return planeId;
    }

    /**
     * <code>optional uint32 plane_id = 5;</code>
     * @param value the planeId to set
     * @return this
     */
    public SceneInfo setPlaneId(final int value) {
      bitField0_ |= 0x00000004;
      planeId = value;
      return this;
    }

    /**
     * <code>optional uint32 floor_id = 10;</code>
     * @return whether the floorId field is set
     */
    public boolean hasFloorId() {
      return (bitField0_ & 0x00000008) != 0;
    }

    /**
     * <code>optional uint32 floor_id = 10;</code>
     * @return this
     */
    public SceneInfo clearFloorId() {
      bitField0_ &= ~0x00000008;
      floorId = 0;
      return this;
    }

    /**
     * <code>optional uint32 floor_id = 10;</code>
     * @return the floorId
     */
    public int getFloorId() {
      return floorId;
    }

    /**
     * <code>optional uint32 floor_id = 10;</code>
     * @param value the floorId to set
     * @return this
     */
    public SceneInfo setFloorId(final int value) {
      bitField0_ |= 0x00000008;
      floorId = value;
      return this;
    }

    /**
     * <code>optional uint32 entry_id = 12;</code>
     * @return whether the entryId field is set
     */
    public boolean hasEntryId() {
      return (bitField0_ & 0x00000010) != 0;
    }

    /**
     * <code>optional uint32 entry_id = 12;</code>
     * @return this
     */
    public SceneInfo clearEntryId() {
      bitField0_ &= ~0x00000010;
      entryId = 0;
      return this;
    }

    /**
     * <code>optional uint32 entry_id = 12;</code>
     * @return the entryId
     */
    public int getEntryId() {
      return entryId;
    }

    /**
     * <code>optional uint32 entry_id = 12;</code>
     * @param value the entryId to set
     * @return this
     */
    public SceneInfo setEntryId(final int value) {
      bitField0_ |= 0x00000010;
      entryId = value;
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 leader_entity_id = 13;</code>
     * @return whether the leaderEntityId field is set
     */
    public boolean hasLeaderEntityId() {
      return (bitField0_ & 0x00000020) != 0;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 leader_entity_id = 13;</code>
     * @return this
     */
    public SceneInfo clearLeaderEntityId() {
      bitField0_ &= ~0x00000020;
      leaderEntityId = 0;
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 leader_entity_id = 13;</code>
     * @return the leaderEntityId
     */
    public int getLeaderEntityId() {
      return leaderEntityId;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 leader_entity_id = 13;</code>
     * @param value the leaderEntityId to set
     * @return this
     */
    public SceneInfo setLeaderEntityId(final int value) {
      bitField0_ |= 0x00000020;
      leaderEntityId = value;
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 world_id = 15;</code>
     * @return whether the worldId field is set
     */
    public boolean hasWorldId() {
      return (bitField0_ & 0x00000040) != 0;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 world_id = 15;</code>
     * @return this
     */
    public SceneInfo clearWorldId() {
      bitField0_ &= ~0x00000040;
      worldId = 0;
      return this;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 world_id = 15;</code>
     * @return the worldId
     */
    public int getWorldId() {
      return worldId;
    }

    /**
     * <pre>
     *  guessed
     * </pre>
     *
     * <code>optional uint32 world_id = 15;</code>
     * @param value the worldId to set
     * @return this
     */
    public SceneInfo setWorldId(final int value) {
      bitField0_ |= 0x00000040;
      worldId = value;
      return this;
    }

    /**
     * <code>optional uint32 game_id = 602;</code>
     * @return whether the gameId field is set
     */
    public boolean hasGameId() {
      return (bitField0_ & 0x00000080) != 0;
    }

    /**
     * <code>optional uint32 game_id = 602;</code>
     * @return this
     */
    public SceneInfo clearGameId() {
      bitField0_ &= ~0x00000080;
      gameId = 0;
      return this;
    }

    /**
     * <code>optional uint32 game_id = 602;</code>
     * @return the gameId
     */
    public int getGameId() {
      return gameId;
    }

    /**
     * <code>optional uint32 game_id = 602;</code>
     * @param value the gameId to set
     * @return this
     */
    public SceneInfo setGameId(final int value) {
      bitField0_ |= 0x00000080;
      gameId = value;
      return this;
    }

    /**
     * <code>optional uint32 content_id = 986;</code>
     * @return whether the contentId field is set
     */
    public boolean hasContentId() {
      return (bitField0_ & 0x00000100) != 0;
    }

    /**
     * <code>optional uint32 content_id = 986;</code>
     * @return this
     */
    public SceneInfo clearContentId() {
      bitField0_ &= ~0x00000100;
      contentId = 0;
      return this;
    }

    /**
     * <code>optional uint32 content_id = 986;</code>
     * @return the contentId
     */
    public int getContentId() {
      return contentId;
    }

    /**
     * <code>optional uint32 content_id = 986;</code>
     * @param value the contentId to set
     * @return this
     */
    public SceneInfo setContentId(final int value) {
      bitField0_ |= 0x00000100;
      contentId = value;
      return this;
    }

    /**
     * <code>optional .SceneIdentifierInfo scene_identifier = 1947;</code>
     * @return whether the sceneIdentifier field is set
     */
    public boolean hasSceneIdentifier() {
      return (bitField0_ & 0x00000200) != 0;
    }

    /**
     * <code>optional .SceneIdentifierInfo scene_identifier = 1947;</code>
     * @return this
     */
    public SceneInfo clearSceneIdentifier() {
      bitField0_ &= ~0x00000200;
      sceneIdentifier.clear();
      return this;
    }

    /**
     * <code>optional .SceneIdentifierInfo scene_identifier = 1947;</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 #getMutableSceneIdentifier()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public SceneIdentifierInfoOuterClass.SceneIdentifierInfo getSceneIdentifier() {
      return sceneIdentifier;
    }

    /**
     * <code>optional .SceneIdentifierInfo scene_identifier = 1947;</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 SceneIdentifierInfoOuterClass.SceneIdentifierInfo getMutableSceneIdentifier() {
      bitField0_ |= 0x00000200;
      return sceneIdentifier;
    }

    /**
     * <code>optional .SceneIdentifierInfo scene_identifier = 1947;</code>
     * @param value the sceneIdentifier to set
     * @return this
     */
    public SceneInfo setSceneIdentifier(
        final SceneIdentifierInfoOuterClass.SceneIdentifierInfo value) {
      bitField0_ |= 0x00000200;
      sceneIdentifier.copyFrom(value);
      return this;
    }

    /**
     * <code>repeated .SceneEntityInfo entity_list = 9;</code>
     * @return whether the entityList field is set
     */
    public boolean hasEntityList() {
      return (bitField0_ & 0x00000400) != 0;
    }

    /**
     * <code>repeated .SceneEntityInfo entity_list = 9;</code>
     * @return this
     */
    public SceneInfo clearEntityList() {
      bitField0_ &= ~0x00000400;
      entityList.clear();
      return this;
    }

    /**
     * <code>repeated .SceneEntityInfo entity_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 #getMutableEntityList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<SceneEntityInfoOuterClass.SceneEntityInfo> getEntityList() {
      return entityList;
    }

    /**
     * <code>repeated .SceneEntityInfo entity_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 RepeatedMessage<SceneEntityInfoOuterClass.SceneEntityInfo> getMutableEntityList() {
      bitField0_ |= 0x00000400;
      return entityList;
    }

    /**
     * <code>repeated .SceneEntityInfo entity_list = 9;</code>
     * @param value the entityList to add
     * @return this
     */
    public SceneInfo addEntityList(final SceneEntityInfoOuterClass.SceneEntityInfo value) {
      bitField0_ |= 0x00000400;
      entityList.add(value);
      return this;
    }

    /**
     * <code>repeated .SceneEntityInfo entity_list = 9;</code>
     * @param values the entityList to add
     * @return this
     */
    public SceneInfo addAllEntityList(final SceneEntityInfoOuterClass.SceneEntityInfo... values) {
      bitField0_ |= 0x00000400;
      entityList.addAll(values);
      return this;
    }

    /**
     * <code>repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680;</code>
     * @return whether the floorSavedValueMap field is set
     */
    public boolean hasFloorSavedValueMap() {
      return (bitField0_ & 0x00000800) != 0;
    }

    /**
     * <code>repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680;</code>
     * @return this
     */
    public SceneInfo clearFloorSavedValueMap() {
      bitField0_ &= ~0x00000800;
      floorSavedValueMap.clear();
      return this;
    }

    /**
     * <code>repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680;</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 #getMutableFloorSavedValueMap()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<FloorSavedValueMapEntry> getFloorSavedValueMap() {
      return floorSavedValueMap;
    }

    /**
     * <code>repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680;</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<FloorSavedValueMapEntry> getMutableFloorSavedValueMap() {
      bitField0_ |= 0x00000800;
      return floorSavedValueMap;
    }

    /**
     * <code>repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680;</code>
     * @param value the floorSavedValueMap to add
     * @return this
     */
    public SceneInfo addFloorSavedValueMap(final FloorSavedValueMapEntry value) {
      bitField0_ |= 0x00000800;
      floorSavedValueMap.add(value);
      return this;
    }

    /**
     * <code>repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680;</code>
     * @param values the floorSavedValueMap to add
     * @return this
     */
    public SceneInfo addAllFloorSavedValueMap(final FloorSavedValueMapEntry... values) {
      bitField0_ |= 0x00000800;
      floorSavedValueMap.addAll(values);
      return this;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo entity_group_list = 1153;</code>
     * @return whether the entityGroupList field is set
     */
    public boolean hasEntityGroupList() {
      return (bitField0_ & 0x00001000) != 0;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo entity_group_list = 1153;</code>
     * @return this
     */
    public SceneInfo clearEntityGroupList() {
      bitField0_ &= ~0x00001000;
      entityGroupList.clear();
      return this;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo entity_group_list = 1153;</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 #getMutableEntityGroupList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo> getEntityGroupList(
        ) {
      return entityGroupList;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo entity_group_list = 1153;</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<SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo> getMutableEntityGroupList(
        ) {
      bitField0_ |= 0x00001000;
      return entityGroupList;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo entity_group_list = 1153;</code>
     * @param value the entityGroupList to add
     * @return this
     */
    public SceneInfo addEntityGroupList(
        final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo value) {
      bitField0_ |= 0x00001000;
      entityGroupList.add(value);
      return this;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo entity_group_list = 1153;</code>
     * @param values the entityGroupList to add
     * @return this
     */
    public SceneInfo addAllEntityGroupList(
        final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo... values) {
      bitField0_ |= 0x00001000;
      entityGroupList.addAll(values);
      return this;
    }

    /**
     * <code>repeated .SceneGroupState group_state_list = 1553;</code>
     * @return whether the groupStateList field is set
     */
    public boolean hasGroupStateList() {
      return (bitField0_ & 0x00002000) != 0;
    }

    /**
     * <code>repeated .SceneGroupState group_state_list = 1553;</code>
     * @return this
     */
    public SceneInfo clearGroupStateList() {
      bitField0_ &= ~0x00002000;
      groupStateList.clear();
      return this;
    }

    /**
     * <code>repeated .SceneGroupState group_state_list = 1553;</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 #getMutableGroupStateList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<SceneGroupStateOuterClass.SceneGroupState> getGroupStateList() {
      return groupStateList;
    }

    /**
     * <code>repeated .SceneGroupState group_state_list = 1553;</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<SceneGroupStateOuterClass.SceneGroupState> getMutableGroupStateList() {
      bitField0_ |= 0x00002000;
      return groupStateList;
    }

    /**
     * <code>repeated .SceneGroupState group_state_list = 1553;</code>
     * @param value the groupStateList to add
     * @return this
     */
    public SceneInfo addGroupStateList(final SceneGroupStateOuterClass.SceneGroupState value) {
      bitField0_ |= 0x00002000;
      groupStateList.add(value);
      return this;
    }

    /**
     * <code>repeated .SceneGroupState group_state_list = 1553;</code>
     * @param values the groupStateList to add
     * @return this
     */
    public SceneInfo addAllGroupStateList(
        final SceneGroupStateOuterClass.SceneGroupState... values) {
      bitField0_ |= 0x00002000;
      groupStateList.addAll(values);
      return this;
    }

    @Override
    public SceneInfo copyFrom(final SceneInfo other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        gameModeType = other.gameModeType;
        clientPosVersion = other.clientPosVersion;
        planeId = other.planeId;
        floorId = other.floorId;
        entryId = other.entryId;
        leaderEntityId = other.leaderEntityId;
        worldId = other.worldId;
        gameId = other.gameId;
        contentId = other.contentId;
        sceneIdentifier.copyFrom(other.sceneIdentifier);
        entityList.copyFrom(other.entityList);
        floorSavedValueMap.copyFrom(other.floorSavedValueMap);
        entityGroupList.copyFrom(other.entityGroupList);
        groupStateList.copyFrom(other.groupStateList);
      }
      return this;
    }

    @Override
    public SceneInfo mergeFrom(final SceneInfo other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasGameModeType()) {
        setGameModeType(other.gameModeType);
      }
      if (other.hasClientPosVersion()) {
        setClientPosVersion(other.clientPosVersion);
      }
      if (other.hasPlaneId()) {
        setPlaneId(other.planeId);
      }
      if (other.hasFloorId()) {
        setFloorId(other.floorId);
      }
      if (other.hasEntryId()) {
        setEntryId(other.entryId);
      }
      if (other.hasLeaderEntityId()) {
        setLeaderEntityId(other.leaderEntityId);
      }
      if (other.hasWorldId()) {
        setWorldId(other.worldId);
      }
      if (other.hasGameId()) {
        setGameId(other.gameId);
      }
      if (other.hasContentId()) {
        setContentId(other.contentId);
      }
      if (other.hasSceneIdentifier()) {
        getMutableSceneIdentifier().mergeFrom(other.sceneIdentifier);
      }
      if (other.hasEntityList()) {
        getMutableEntityList().addAll(other.entityList);
      }
      if (other.hasFloorSavedValueMap()) {
        getMutableFloorSavedValueMap().addAll(other.floorSavedValueMap);
      }
      if (other.hasEntityGroupList()) {
        getMutableEntityGroupList().addAll(other.entityGroupList);
      }
      if (other.hasGroupStateList()) {
        getMutableGroupStateList().addAll(other.groupStateList);
      }
      return this;
    }

    @Override
    public SceneInfo clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      gameModeType = 0;
      clientPosVersion = 0;
      planeId = 0;
      floorId = 0;
      entryId = 0;
      leaderEntityId = 0;
      worldId = 0;
      gameId = 0;
      contentId = 0;
      sceneIdentifier.clear();
      entityList.clear();
      floorSavedValueMap.clear();
      entityGroupList.clear();
      groupStateList.clear();
      return this;
    }

    @Override
    public SceneInfo clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      sceneIdentifier.clearQuick();
      entityList.clearQuick();
      floorSavedValueMap.clearQuick();
      entityGroupList.clearQuick();
      groupStateList.clearQuick();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof SceneInfo)) {
        return false;
      }
      SceneInfo other = (SceneInfo) o;
      return bitField0_ == other.bitField0_
        && (!hasGameModeType() || gameModeType == other.gameModeType)
        && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion)
        && (!hasPlaneId() || planeId == other.planeId)
        && (!hasFloorId() || floorId == other.floorId)
        && (!hasEntryId() || entryId == other.entryId)
        && (!hasLeaderEntityId() || leaderEntityId == other.leaderEntityId)
        && (!hasWorldId() || worldId == other.worldId)
        && (!hasGameId() || gameId == other.gameId)
        && (!hasContentId() || contentId == other.contentId)
        && (!hasSceneIdentifier() || sceneIdentifier.equals(other.sceneIdentifier))
        && (!hasEntityList() || entityList.equals(other.entityList))
        && (!hasFloorSavedValueMap() || floorSavedValueMap.equals(other.floorSavedValueMap))
        && (!hasEntityGroupList() || entityGroupList.equals(other.entityGroupList))
        && (!hasGroupStateList() || groupStateList.equals(other.groupStateList));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 8);
        output.writeUInt32NoTag(gameModeType);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawByte((byte) 32);
        output.writeUInt32NoTag(clientPosVersion);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRawByte((byte) 40);
        output.writeUInt32NoTag(planeId);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeRawByte((byte) 80);
        output.writeUInt32NoTag(floorId);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeRawByte((byte) 96);
        output.writeUInt32NoTag(entryId);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeRawByte((byte) 104);
        output.writeUInt32NoTag(leaderEntityId);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeRawByte((byte) 120);
        output.writeUInt32NoTag(worldId);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        output.writeRawLittleEndian16((short) 9680);
        output.writeUInt32NoTag(gameId);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        output.writeRawLittleEndian16((short) 15824);
        output.writeUInt32NoTag(contentId);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        output.writeRawLittleEndian16((short) 31194);
        output.writeMessageNoTag(sceneIdentifier);
      }
      if ((bitField0_ & 0x00000400) != 0) {
        for (int i = 0; i < entityList.length(); i++) {
          output.writeRawByte((byte) 74);
          output.writeMessageNoTag(entityList.get(i));
        }
      }
      if ((bitField0_ & 0x00000800) != 0) {
        for (int i = 0; i < floorSavedValueMap.length(); i++) {
          output.writeRawLittleEndian16((short) 10946);
          output.writeMessageNoTag(floorSavedValueMap.get(i));
        }
      }
      if ((bitField0_ & 0x00001000) != 0) {
        for (int i = 0; i < entityGroupList.length(); i++) {
          output.writeRawLittleEndian16((short) 18570);
          output.writeMessageNoTag(entityGroupList.get(i));
        }
      }
      if ((bitField0_ & 0x00002000) != 0) {
        for (int i = 0; i < groupStateList.length(); i++) {
          output.writeRawLittleEndian16((short) 24970);
          output.writeMessageNoTag(groupStateList.get(i));
        }
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(gameModeType);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderEntityId);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(worldId);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        size += 2 + ProtoSink.computeUInt32SizeNoTag(gameId);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        size += 2 + ProtoSink.computeUInt32SizeNoTag(contentId);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        size += 2 + ProtoSink.computeMessageSizeNoTag(sceneIdentifier);
      }
      if ((bitField0_ & 0x00000400) != 0) {
        size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList);
      }
      if ((bitField0_ & 0x00000800) != 0) {
        size += (2 * floorSavedValueMap.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(floorSavedValueMap);
      }
      if ((bitField0_ & 0x00001000) != 0) {
        size += (2 * entityGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityGroupList);
      }
      if ((bitField0_ & 0x00002000) != 0) {
        size += (2 * groupStateList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupStateList);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public SceneInfo mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 8: {
            // gameModeType
            gameModeType = input.readUInt32();
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 32) {
              break;
            }
          }
          case 32: {
            // clientPosVersion
            clientPosVersion = input.readUInt32();
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 40) {
              break;
            }
          }
          case 40: {
            // planeId
            planeId = input.readUInt32();
            bitField0_ |= 0x00000004;
            tag = input.readTag();
            if (tag != 80) {
              break;
            }
          }
          case 80: {
            // floorId
            floorId = input.readUInt32();
            bitField0_ |= 0x00000008;
            tag = input.readTag();
            if (tag != 96) {
              break;
            }
          }
          case 96: {
            // entryId
            entryId = input.readUInt32();
            bitField0_ |= 0x00000010;
            tag = input.readTag();
            if (tag != 104) {
              break;
            }
          }
          case 104: {
            // leaderEntityId
            leaderEntityId = input.readUInt32();
            bitField0_ |= 0x00000020;
            tag = input.readTag();
            if (tag != 120) {
              break;
            }
          }
          case 120: {
            // worldId
            worldId = input.readUInt32();
            bitField0_ |= 0x00000040;
            tag = input.readTag();
            if (tag != 4816) {
              break;
            }
          }
          case 4816: {
            // gameId
            gameId = input.readUInt32();
            bitField0_ |= 0x00000080;
            tag = input.readTag();
            if (tag != 7888) {
              break;
            }
          }
          case 7888: {
            // contentId
            contentId = input.readUInt32();
            bitField0_ |= 0x00000100;
            tag = input.readTag();
            if (tag != 15578) {
              break;
            }
          }
          case 15578: {
            // sceneIdentifier
            input.readMessage(sceneIdentifier);
            bitField0_ |= 0x00000200;
            tag = input.readTag();
            if (tag != 74) {
              break;
            }
          }
          case 74: {
            // entityList
            tag = input.readRepeatedMessage(entityList, tag);
            bitField0_ |= 0x00000400;
            if (tag != 5442) {
              break;
            }
          }
          case 5442: {
            // floorSavedValueMap
            tag = input.readRepeatedMessage(floorSavedValueMap, tag);
            bitField0_ |= 0x00000800;
            if (tag != 9226) {
              break;
            }
          }
          case 9226: {
            // entityGroupList
            tag = input.readRepeatedMessage(entityGroupList, tag);
            bitField0_ |= 0x00001000;
            if (tag != 12426) {
              break;
            }
          }
          case 12426: {
            // groupStateList
            tag = input.readRepeatedMessage(groupStateList, tag);
            bitField0_ |= 0x00002000;
            if (tag != 0) {
              break;
            }
          }
          case 0: {
            return this;
          }
          default: {
            if (!input.skipField(tag)) {
              return this;
            }
            tag = input.readTag();
            break;
          }
        }
      }
    }

    @Override
    public void writeTo(final JsonSink output) throws IOException {
      output.beginObject();
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeUInt32(FieldNames.gameModeType, gameModeType);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeUInt32(FieldNames.planeId, planeId);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeUInt32(FieldNames.floorId, floorId);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeUInt32(FieldNames.entryId, entryId);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeUInt32(FieldNames.leaderEntityId, leaderEntityId);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeUInt32(FieldNames.worldId, worldId);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        output.writeUInt32(FieldNames.gameId, gameId);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        output.writeUInt32(FieldNames.contentId, contentId);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        output.writeMessage(FieldNames.sceneIdentifier, sceneIdentifier);
      }
      if ((bitField0_ & 0x00000400) != 0) {
        output.writeRepeatedMessage(FieldNames.entityList, entityList);
      }
      if ((bitField0_ & 0x00000800) != 0) {
        output.writeRepeatedMessage(FieldNames.floorSavedValueMap, floorSavedValueMap);
      }
      if ((bitField0_ & 0x00001000) != 0) {
        output.writeRepeatedMessage(FieldNames.entityGroupList, entityGroupList);
      }
      if ((bitField0_ & 0x00002000) != 0) {
        output.writeRepeatedMessage(FieldNames.groupStateList, groupStateList);
      }
      output.endObject();
    }

    @Override
    public SceneInfo mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case -464498289:
          case 1937775689: {
            if (input.isAtField(FieldNames.gameModeType)) {
              if (!input.trySkipNullValue()) {
                gameModeType = input.readUInt32();
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1787644431:
          case 1278860153: {
            if (input.isAtField(FieldNames.clientPosVersion)) {
              if (!input.trySkipNullValue()) {
                clientPosVersion = input.readUInt32();
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -493896553:
          case 1869097438: {
            if (input.isAtField(FieldNames.planeId)) {
              if (!input.trySkipNullValue()) {
                planeId = input.readUInt32();
                bitField0_ |= 0x00000004;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -766027193:
          case 2022982190: {
            if (input.isAtField(FieldNames.floorId)) {
              if (!input.trySkipNullValue()) {
                floorId = input.readUInt32();
                bitField0_ |= 0x00000008;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1591558867:
          case -2093663224: {
            if (input.isAtField(FieldNames.entryId)) {
              if (!input.trySkipNullValue()) {
                entryId = input.readUInt32();
                bitField0_ |= 0x00000010;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1693061255:
          case 794634049: {
            if (input.isAtField(FieldNames.leaderEntityId)) {
              if (!input.trySkipNullValue()) {
                leaderEntityId = input.readUInt32();
                bitField0_ |= 0x00000020;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1525188685:
          case 36230376: {
            if (input.isAtField(FieldNames.worldId)) {
              if (!input.trySkipNullValue()) {
                worldId = input.readUInt32();
                bitField0_ |= 0x00000040;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1253236563:
          case -195606392: {
            if (input.isAtField(FieldNames.gameId)) {
              if (!input.trySkipNullValue()) {
                gameId = input.readUInt32();
                bitField0_ |= 0x00000080;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -407108748:
          case 264552097: {
            if (input.isAtField(FieldNames.contentId)) {
              if (!input.trySkipNullValue()) {
                contentId = input.readUInt32();
                bitField0_ |= 0x00000100;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -219061675:
          case -1767155140: {
            if (input.isAtField(FieldNames.sceneIdentifier)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(sceneIdentifier);
                bitField0_ |= 0x00000200;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1483251935:
          case 1281457018: {
            if (input.isAtField(FieldNames.entityList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(entityList);
                bitField0_ |= 0x00000400;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1901677274:
          case 1429033891: {
            if (input.isAtField(FieldNames.floorSavedValueMap)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(floorSavedValueMap);
                bitField0_ |= 0x00000800;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -914706662:
          case 1589108794: {
            if (input.isAtField(FieldNames.entityGroupList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(entityGroupList);
                bitField0_ |= 0x00001000;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1415397648:
          case 1198817612: {
            if (input.isAtField(FieldNames.groupStateList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(groupStateList);
                bitField0_ |= 0x00002000;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

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

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

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

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

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

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

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

      /**
       * <code>optional sint32 value = 2;</code>
       */
      private int value_;

      /**
       * <code>optional string key = 1;</code>
       */
      private final Utf8String key = Utf8String.newEmptyInstance();

      private FloorSavedValueMapEntry() {
      }

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

      /**
       * <code>optional sint32 value = 2;</code>
       * @return whether the value_ field is set
       */
      public boolean hasValue() {
        return (bitField0_ & 0x00000001) != 0;
      }

      /**
       * <code>optional sint32 value = 2;</code>
       * @return this
       */
      public FloorSavedValueMapEntry clearValue() {
        bitField0_ &= ~0x00000001;
        value_ = 0;
        return this;
      }

      /**
       * <code>optional sint32 value = 2;</code>
       * @return the value_
       */
      public int getValue() {
        return value_;
      }

      /**
       * <code>optional sint32 value = 2;</code>
       * @param value the value_ to set
       * @return this
       */
      public FloorSavedValueMapEntry setValue(final int value) {
        bitField0_ |= 0x00000001;
        value_ = value;
        return this;
      }

      /**
       * <code>optional string key = 1;</code>
       * @return whether the key field is set
       */
      public boolean hasKey() {
        return (bitField0_ & 0x00000002) != 0;
      }

      /**
       * <code>optional string key = 1;</code>
       * @return this
       */
      public FloorSavedValueMapEntry clearKey() {
        bitField0_ &= ~0x00000002;
        key.clear();
        return this;
      }

      /**
       * <code>optional string key = 1;</code>
       * @return the key
       */
      public String getKey() {
        return key.getString();
      }

      /**
       * <code>optional string key = 1;</code>
       * @return internal {@code Utf8String} representation of key for reading
       */
      public Utf8String getKeyBytes() {
        return this.key;
      }

      /**
       * <code>optional string key = 1;</code>
       * @return internal {@code Utf8String} representation of key for modifications
       */
      public Utf8String getMutableKeyBytes() {
        bitField0_ |= 0x00000002;
        return this.key;
      }

      /**
       * <code>optional string key = 1;</code>
       * @param value the key to set
       * @return this
       */
      public FloorSavedValueMapEntry setKey(final CharSequence value) {
        bitField0_ |= 0x00000002;
        key.copyFrom(value);
        return this;
      }

      /**
       * <code>optional string key = 1;</code>
       * @param value the key to set
       * @return this
       */
      public FloorSavedValueMapEntry setKey(final Utf8String value) {
        bitField0_ |= 0x00000002;
        key.copyFrom(value);
        return this;
      }

      @Override
      public FloorSavedValueMapEntry copyFrom(final FloorSavedValueMapEntry other) {
        cachedSize = other.cachedSize;
        if ((bitField0_ | other.bitField0_) != 0) {
          bitField0_ = other.bitField0_;
          value_ = other.value_;
          key.copyFrom(other.key);
        }
        return this;
      }

      @Override
      public FloorSavedValueMapEntry mergeFrom(final FloorSavedValueMapEntry other) {
        if (other.isEmpty()) {
          return this;
        }
        cachedSize = -1;
        if (other.hasValue()) {
          setValue(other.value_);
        }
        if (other.hasKey()) {
          getMutableKeyBytes().copyFrom(other.key);
        }
        return this;
      }

      @Override
      public FloorSavedValueMapEntry clear() {
        if (isEmpty()) {
          return this;
        }
        cachedSize = -1;
        bitField0_ = 0;
        value_ = 0;
        key.clear();
        return this;
      }

      @Override
      public FloorSavedValueMapEntry clearQuick() {
        if (isEmpty()) {
          return this;
        }
        cachedSize = -1;
        bitField0_ = 0;
        key.clear();
        return this;
      }

      @Override
      public boolean equals(Object o) {
        if (o == this) {
          return true;
        }
        if (!(o instanceof FloorSavedValueMapEntry)) {
          return false;
        }
        FloorSavedValueMapEntry other = (FloorSavedValueMapEntry) o;
        return bitField0_ == other.bitField0_
          && (!hasValue() || value_ == other.value_)
          && (!hasKey() || key.equals(other.key));
      }

      @Override
      public void writeTo(final ProtoSink output) throws IOException {
        if ((bitField0_ & 0x00000001) != 0) {
          output.writeRawByte((byte) 16);
          output.writeSInt32NoTag(value_);
        }
        if ((bitField0_ & 0x00000002) != 0) {
          output.writeRawByte((byte) 10);
          output.writeStringNoTag(key);
        }
      }

      @Override
      protected int computeSerializedSize() {
        int size = 0;
        if ((bitField0_ & 0x00000001) != 0) {
          size += 1 + ProtoSink.computeSInt32SizeNoTag(value_);
        }
        if ((bitField0_ & 0x00000002) != 0) {
          size += 1 + ProtoSink.computeStringSizeNoTag(key);
        }
        return size;
      }

      @Override
      @SuppressWarnings("fallthrough")
      public FloorSavedValueMapEntry mergeFrom(final ProtoSource input) throws IOException {
        // Enabled Fall-Through Optimization (QuickBuffers)
        int tag = input.readTag();
        while (true) {
          switch (tag) {
            case 16: {
              // value_
              value_ = input.readSInt32();
              bitField0_ |= 0x00000001;
              tag = input.readTag();
              if (tag != 10) {
                break;
              }
            }
            case 10: {
              // key
              input.readString(key);
              bitField0_ |= 0x00000002;
              tag = input.readTag();
              if (tag != 0) {
                break;
              }
            }
            case 0: {
              return this;
            }
            default: {
              if (!input.skipField(tag)) {
                return this;
              }
              tag = input.readTag();
              break;
            }
          }
        }
      }

      @Override
      public void writeTo(final JsonSink output) throws IOException {
        output.beginObject();
        if ((bitField0_ & 0x00000001) != 0) {
          output.writeSInt32(FieldNames.value_, value_);
        }
        if ((bitField0_ & 0x00000002) != 0) {
          output.writeString(FieldNames.key, key);
        }
        output.endObject();
      }

      @Override
      public FloorSavedValueMapEntry mergeFrom(final JsonSource input) throws IOException {
        if (!input.beginObject()) {
          return this;
        }
        while (!input.isAtEnd()) {
          switch (input.readFieldHash()) {
            case 111972721: {
              if (input.isAtField(FieldNames.value_)) {
                if (!input.trySkipNullValue()) {
                  value_ = input.readSInt32();
                  bitField0_ |= 0x00000001;
                }
              } else {
                input.skipUnknownField();
              }
              break;
            }
            case 106079: {
              if (input.isAtField(FieldNames.key)) {
                if (!input.trySkipNullValue()) {
                  input.readString(key);
                  bitField0_ |= 0x00000002;
                }
              } else {
                input.skipUnknownField();
              }
              break;
            }
            default: {
              input.skipUnknownField();
              break;
            }
          }
        }
        input.endObject();
        return this;
      }

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

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

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

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

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

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

      private enum FloorSavedValueMapEntryFactory implements MessageFactory<FloorSavedValueMapEntry> {
        INSTANCE;

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

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

        static final FieldName key = FieldName.forField("key");
      }
    }

    private enum SceneInfoFactory implements MessageFactory<SceneInfo> {
      INSTANCE;

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

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

      static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version");

      static final FieldName planeId = FieldName.forField("planeId", "plane_id");

      static final FieldName floorId = FieldName.forField("floorId", "floor_id");

      static final FieldName entryId = FieldName.forField("entryId", "entry_id");

      static final FieldName leaderEntityId = FieldName.forField("leaderEntityId", "leader_entity_id");

      static final FieldName worldId = FieldName.forField("worldId", "world_id");

      static final FieldName gameId = FieldName.forField("gameId", "game_id");

      static final FieldName contentId = FieldName.forField("contentId", "content_id");

      static final FieldName sceneIdentifier = FieldName.forField("sceneIdentifier", "scene_identifier");

      static final FieldName entityList = FieldName.forField("entityList", "entity_list");

      static final FieldName floorSavedValueMap = FieldName.forField("floorSavedValueMap", "floor_saved_value_map");

      static final FieldName entityGroupList = FieldName.forField("entityGroupList", "entity_group_list");

      static final FieldName groupStateList = FieldName.forField("groupStateList", "group_state_list");
    }
  }
}
