// 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 SceneEntityGroupInfoOuterClass {
  /**
   * Protobuf type {@code SceneEntityGroupInfo}
   */
  public static final class SceneEntityGroupInfo extends ProtoMessage<SceneEntityGroupInfo> implements Cloneable {
    private static final long serialVersionUID = 0L;

    /**
     * <code>optional uint32 group_id = 2;</code>
     */
    private int groupId;

    /**
     * <code>optional uint32 state = 15;</code>
     */
    private int state;

    /**
     * <code>repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8;</code>
     */
    private final RepeatedMessage<GroupPropertyMapEntry> groupPropertyMap = RepeatedMessage.newEmptyInstance(GroupPropertyMapEntry.getFactory());

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

    private SceneEntityGroupInfo() {
    }

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

    /**
     * <code>optional uint32 group_id = 2;</code>
     * @return whether the groupId field is set
     */
    public boolean hasGroupId() {
      return (bitField0_ & 0x00000001) != 0;
    }

    /**
     * <code>optional uint32 group_id = 2;</code>
     * @return this
     */
    public SceneEntityGroupInfo clearGroupId() {
      bitField0_ &= ~0x00000001;
      groupId = 0;
      return this;
    }

    /**
     * <code>optional uint32 group_id = 2;</code>
     * @return the groupId
     */
    public int getGroupId() {
      return groupId;
    }

    /**
     * <code>optional uint32 group_id = 2;</code>
     * @param value the groupId to set
     * @return this
     */
    public SceneEntityGroupInfo setGroupId(final int value) {
      bitField0_ |= 0x00000001;
      groupId = value;
      return this;
    }

    /**
     * <code>optional uint32 state = 15;</code>
     * @return whether the state field is set
     */
    public boolean hasState() {
      return (bitField0_ & 0x00000002) != 0;
    }

    /**
     * <code>optional uint32 state = 15;</code>
     * @return this
     */
    public SceneEntityGroupInfo clearState() {
      bitField0_ &= ~0x00000002;
      state = 0;
      return this;
    }

    /**
     * <code>optional uint32 state = 15;</code>
     * @return the state
     */
    public int getState() {
      return state;
    }

    /**
     * <code>optional uint32 state = 15;</code>
     * @param value the state to set
     * @return this
     */
    public SceneEntityGroupInfo setState(final int value) {
      bitField0_ |= 0x00000002;
      state = value;
      return this;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8;</code>
     * @return whether the groupPropertyMap field is set
     */
    public boolean hasGroupPropertyMap() {
      return (bitField0_ & 0x00000004) != 0;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8;</code>
     * @return this
     */
    public SceneEntityGroupInfo clearGroupPropertyMap() {
      bitField0_ &= ~0x00000004;
      groupPropertyMap.clear();
      return this;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8;</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 #getMutableGroupPropertyMap()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<GroupPropertyMapEntry> getGroupPropertyMap() {
      return groupPropertyMap;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8;</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<GroupPropertyMapEntry> getMutableGroupPropertyMap() {
      bitField0_ |= 0x00000004;
      return groupPropertyMap;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8;</code>
     * @param value the groupPropertyMap to add
     * @return this
     */
    public SceneEntityGroupInfo addGroupPropertyMap(final GroupPropertyMapEntry value) {
      bitField0_ |= 0x00000004;
      groupPropertyMap.add(value);
      return this;
    }

    /**
     * <code>repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8;</code>
     * @param values the groupPropertyMap to add
     * @return this
     */
    public SceneEntityGroupInfo addAllGroupPropertyMap(final GroupPropertyMapEntry... values) {
      bitField0_ |= 0x00000004;
      groupPropertyMap.addAll(values);
      return this;
    }

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

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

    /**
     * <code>repeated .SceneEntityInfo entity_list = 12;</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 = 12;</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_ |= 0x00000008;
      return entityList;
    }

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

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

    @Override
    public SceneEntityGroupInfo copyFrom(final SceneEntityGroupInfo other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        groupId = other.groupId;
        state = other.state;
        groupPropertyMap.copyFrom(other.groupPropertyMap);
        entityList.copyFrom(other.entityList);
      }
      return this;
    }

    @Override
    public SceneEntityGroupInfo mergeFrom(final SceneEntityGroupInfo other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasGroupId()) {
        setGroupId(other.groupId);
      }
      if (other.hasState()) {
        setState(other.state);
      }
      if (other.hasGroupPropertyMap()) {
        getMutableGroupPropertyMap().addAll(other.groupPropertyMap);
      }
      if (other.hasEntityList()) {
        getMutableEntityList().addAll(other.entityList);
      }
      return this;
    }

    @Override
    public SceneEntityGroupInfo clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      groupId = 0;
      state = 0;
      groupPropertyMap.clear();
      entityList.clear();
      return this;
    }

    @Override
    public SceneEntityGroupInfo clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      groupPropertyMap.clearQuick();
      entityList.clearQuick();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof SceneEntityGroupInfo)) {
        return false;
      }
      SceneEntityGroupInfo other = (SceneEntityGroupInfo) o;
      return bitField0_ == other.bitField0_
        && (!hasGroupId() || groupId == other.groupId)
        && (!hasState() || state == other.state)
        && (!hasGroupPropertyMap() || groupPropertyMap.equals(other.groupPropertyMap))
        && (!hasEntityList() || entityList.equals(other.entityList));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 16);
        output.writeUInt32NoTag(groupId);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawByte((byte) 120);
        output.writeUInt32NoTag(state);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        for (int i = 0; i < groupPropertyMap.length(); i++) {
          output.writeRawByte((byte) 66);
          output.writeMessageNoTag(groupPropertyMap.get(i));
        }
      }
      if ((bitField0_ & 0x00000008) != 0) {
        for (int i = 0; i < entityList.length(); i++) {
          output.writeRawByte((byte) 98);
          output.writeMessageNoTag(entityList.get(i));
        }
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(state);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += (1 * groupPropertyMap.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupPropertyMap);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public SceneEntityGroupInfo mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 16: {
            // groupId
            groupId = input.readUInt32();
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 120) {
              break;
            }
          }
          case 120: {
            // state
            state = input.readUInt32();
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 66) {
              break;
            }
          }
          case 66: {
            // groupPropertyMap
            tag = input.readRepeatedMessage(groupPropertyMap, tag);
            bitField0_ |= 0x00000004;
            if (tag != 98) {
              break;
            }
          }
          case 98: {
            // entityList
            tag = input.readRepeatedMessage(entityList, tag);
            bitField0_ |= 0x00000008;
            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.groupId, groupId);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeUInt32(FieldNames.state, state);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRepeatedMessage(FieldNames.groupPropertyMap, groupPropertyMap);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeRepeatedMessage(FieldNames.entityList, entityList);
      }
      output.endObject();
    }

    @Override
    public SceneEntityGroupInfo mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case 293428218:
          case 506361563: {
            if (input.isAtField(FieldNames.groupId)) {
              if (!input.trySkipNullValue()) {
                groupId = input.readUInt32();
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 109757585: {
            if (input.isAtField(FieldNames.state)) {
              if (!input.trySkipNullValue()) {
                state = input.readUInt32();
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -931201208:
          case 33749426: {
            if (input.isAtField(FieldNames.groupPropertyMap)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(groupPropertyMap);
                bitField0_ |= 0x00000004;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1483251935:
          case 1281457018: {
            if (input.isAtField(FieldNames.entityList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(entityList);
                bitField0_ |= 0x00000008;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

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

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

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

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

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

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

    /**
     * Protobuf type {@code GroupPropertyMapEntry}
     */
    public static final class GroupPropertyMapEntry extends ProtoMessage<GroupPropertyMapEntry> 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 GroupPropertyMapEntry() {
      }

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

      /**
       * <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 GroupPropertyMapEntry 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 GroupPropertyMapEntry 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 GroupPropertyMapEntry 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 GroupPropertyMapEntry 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 GroupPropertyMapEntry setKey(final Utf8String value) {
        bitField0_ |= 0x00000002;
        key.copyFrom(value);
        return this;
      }

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

      @Override
      public GroupPropertyMapEntry mergeFrom(final GroupPropertyMapEntry 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 GroupPropertyMapEntry clear() {
        if (isEmpty()) {
          return this;
        }
        cachedSize = -1;
        bitField0_ = 0;
        value_ = 0;
        key.clear();
        return this;
      }

      @Override
      public GroupPropertyMapEntry 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 GroupPropertyMapEntry)) {
          return false;
        }
        GroupPropertyMapEntry other = (GroupPropertyMapEntry) 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 GroupPropertyMapEntry 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 GroupPropertyMapEntry 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 GroupPropertyMapEntry clone() {
        return new GroupPropertyMapEntry().copyFrom(this);
      }

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

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

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

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

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

      private enum GroupPropertyMapEntryFactory implements MessageFactory<GroupPropertyMapEntry> {
        INSTANCE;

        @Override
        public GroupPropertyMapEntry create() {
          return GroupPropertyMapEntry.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 SceneEntityGroupInfoFactory implements MessageFactory<SceneEntityGroupInfo> {
      INSTANCE;

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

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

      static final FieldName state = FieldName.forField("state");

      static final FieldName groupPropertyMap = FieldName.forField("groupPropertyMap", "group_property_map");

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