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

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

    /**
     * <code>optional int64 modify_time = 15;</code>
     */
    private long modifyTime;

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

    /**
     * <code>optional bool is_need_refresh = 6;</code>
     */
    private boolean isNeedRefresh;

    /**
     * <code>repeated uint32 destory_monster_config_id_list = 11;</code>
     */
    private final RepeatedInt destoryMonsterConfigIdList = RepeatedInt.newEmptyInstance();

    /**
     * <code>repeated .MapInfoGroup.PropertyMapEntry property_map = 12;</code>
     */
    private final RepeatedMessage<PropertyMapEntry> propertyMap = RepeatedMessage.newEmptyInstance(PropertyMapEntry.getFactory());

    private MapInfoGroup() {
    }

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

    /**
     * <code>optional int64 modify_time = 15;</code>
     * @return whether the modifyTime field is set
     */
    public boolean hasModifyTime() {
      return (bitField0_ & 0x00000001) != 0;
    }

    /**
     * <code>optional int64 modify_time = 15;</code>
     * @return this
     */
    public MapInfoGroup clearModifyTime() {
      bitField0_ &= ~0x00000001;
      modifyTime = 0L;
      return this;
    }

    /**
     * <code>optional int64 modify_time = 15;</code>
     * @return the modifyTime
     */
    public long getModifyTime() {
      return modifyTime;
    }

    /**
     * <code>optional int64 modify_time = 15;</code>
     * @param value the modifyTime to set
     * @return this
     */
    public MapInfoGroup setModifyTime(final long value) {
      bitField0_ |= 0x00000001;
      modifyTime = value;
      return this;
    }

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

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

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

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

    /**
     * <code>optional bool is_need_refresh = 6;</code>
     * @return whether the isNeedRefresh field is set
     */
    public boolean hasIsNeedRefresh() {
      return (bitField0_ & 0x00000004) != 0;
    }

    /**
     * <code>optional bool is_need_refresh = 6;</code>
     * @return this
     */
    public MapInfoGroup clearIsNeedRefresh() {
      bitField0_ &= ~0x00000004;
      isNeedRefresh = false;
      return this;
    }

    /**
     * <code>optional bool is_need_refresh = 6;</code>
     * @return the isNeedRefresh
     */
    public boolean getIsNeedRefresh() {
      return isNeedRefresh;
    }

    /**
     * <code>optional bool is_need_refresh = 6;</code>
     * @param value the isNeedRefresh to set
     * @return this
     */
    public MapInfoGroup setIsNeedRefresh(final boolean value) {
      bitField0_ |= 0x00000004;
      isNeedRefresh = value;
      return this;
    }

    /**
     * <code>repeated uint32 destory_monster_config_id_list = 11;</code>
     * @return whether the destoryMonsterConfigIdList field is set
     */
    public boolean hasDestoryMonsterConfigIdList() {
      return (bitField0_ & 0x00000008) != 0;
    }

    /**
     * <code>repeated uint32 destory_monster_config_id_list = 11;</code>
     * @return this
     */
    public MapInfoGroup clearDestoryMonsterConfigIdList() {
      bitField0_ &= ~0x00000008;
      destoryMonsterConfigIdList.clear();
      return this;
    }

    /**
     * <code>repeated uint32 destory_monster_config_id_list = 11;</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 #getMutableDestoryMonsterConfigIdList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedInt getDestoryMonsterConfigIdList() {
      return destoryMonsterConfigIdList;
    }

    /**
     * <code>repeated uint32 destory_monster_config_id_list = 11;</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 getMutableDestoryMonsterConfigIdList() {
      bitField0_ |= 0x00000008;
      return destoryMonsterConfigIdList;
    }

    /**
     * <code>repeated uint32 destory_monster_config_id_list = 11;</code>
     * @param value the destoryMonsterConfigIdList to add
     * @return this
     */
    public MapInfoGroup addDestoryMonsterConfigIdList(final int value) {
      bitField0_ |= 0x00000008;
      destoryMonsterConfigIdList.add(value);
      return this;
    }

    /**
     * <code>repeated uint32 destory_monster_config_id_list = 11;</code>
     * @param values the destoryMonsterConfigIdList to add
     * @return this
     */
    public MapInfoGroup addAllDestoryMonsterConfigIdList(final int... values) {
      bitField0_ |= 0x00000008;
      destoryMonsterConfigIdList.addAll(values);
      return this;
    }

    /**
     * <code>repeated .MapInfoGroup.PropertyMapEntry property_map = 12;</code>
     * @return whether the propertyMap field is set
     */
    public boolean hasPropertyMap() {
      return (bitField0_ & 0x00000010) != 0;
    }

    /**
     * <code>repeated .MapInfoGroup.PropertyMapEntry property_map = 12;</code>
     * @return this
     */
    public MapInfoGroup clearPropertyMap() {
      bitField0_ &= ~0x00000010;
      propertyMap.clear();
      return this;
    }

    /**
     * <code>repeated .MapInfoGroup.PropertyMapEntry property_map = 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 #getMutablePropertyMap()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<PropertyMapEntry> getPropertyMap() {
      return propertyMap;
    }

    /**
     * <code>repeated .MapInfoGroup.PropertyMapEntry property_map = 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<PropertyMapEntry> getMutablePropertyMap() {
      bitField0_ |= 0x00000010;
      return propertyMap;
    }

    /**
     * <code>repeated .MapInfoGroup.PropertyMapEntry property_map = 12;</code>
     * @param value the propertyMap to add
     * @return this
     */
    public MapInfoGroup addPropertyMap(final PropertyMapEntry value) {
      bitField0_ |= 0x00000010;
      propertyMap.add(value);
      return this;
    }

    /**
     * <code>repeated .MapInfoGroup.PropertyMapEntry property_map = 12;</code>
     * @param values the propertyMap to add
     * @return this
     */
    public MapInfoGroup addAllPropertyMap(final PropertyMapEntry... values) {
      bitField0_ |= 0x00000010;
      propertyMap.addAll(values);
      return this;
    }

    @Override
    public MapInfoGroup copyFrom(final MapInfoGroup other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        modifyTime = other.modifyTime;
        groupId = other.groupId;
        isNeedRefresh = other.isNeedRefresh;
        destoryMonsterConfigIdList.copyFrom(other.destoryMonsterConfigIdList);
        propertyMap.copyFrom(other.propertyMap);
      }
      return this;
    }

    @Override
    public MapInfoGroup mergeFrom(final MapInfoGroup other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasModifyTime()) {
        setModifyTime(other.modifyTime);
      }
      if (other.hasGroupId()) {
        setGroupId(other.groupId);
      }
      if (other.hasIsNeedRefresh()) {
        setIsNeedRefresh(other.isNeedRefresh);
      }
      if (other.hasDestoryMonsterConfigIdList()) {
        getMutableDestoryMonsterConfigIdList().addAll(other.destoryMonsterConfigIdList);
      }
      if (other.hasPropertyMap()) {
        getMutablePropertyMap().addAll(other.propertyMap);
      }
      return this;
    }

    @Override
    public MapInfoGroup clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      modifyTime = 0L;
      groupId = 0;
      isNeedRefresh = false;
      destoryMonsterConfigIdList.clear();
      propertyMap.clear();
      return this;
    }

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

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof MapInfoGroup)) {
        return false;
      }
      MapInfoGroup other = (MapInfoGroup) o;
      return bitField0_ == other.bitField0_
        && (!hasModifyTime() || modifyTime == other.modifyTime)
        && (!hasGroupId() || groupId == other.groupId)
        && (!hasIsNeedRefresh() || isNeedRefresh == other.isNeedRefresh)
        && (!hasDestoryMonsterConfigIdList() || destoryMonsterConfigIdList.equals(other.destoryMonsterConfigIdList))
        && (!hasPropertyMap() || propertyMap.equals(other.propertyMap));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 120);
        output.writeInt64NoTag(modifyTime);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawByte((byte) 32);
        output.writeUInt32NoTag(groupId);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRawByte((byte) 48);
        output.writeBoolNoTag(isNeedRefresh);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        for (int i = 0; i < destoryMonsterConfigIdList.length(); i++) {
          output.writeRawByte((byte) 88);
          output.writeUInt32NoTag(destoryMonsterConfigIdList.array()[i]);
        }
      }
      if ((bitField0_ & 0x00000010) != 0) {
        for (int i = 0; i < propertyMap.length(); i++) {
          output.writeRawByte((byte) 98);
          output.writeMessageNoTag(propertyMap.get(i));
        }
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeInt64SizeNoTag(modifyTime);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += 2;
      }
      if ((bitField0_ & 0x00000008) != 0) {
        size += (1 * destoryMonsterConfigIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(destoryMonsterConfigIdList);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        size += (1 * propertyMap.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(propertyMap);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public MapInfoGroup mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 120: {
            // modifyTime
            modifyTime = input.readInt64();
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 32) {
              break;
            }
          }
          case 32: {
            // groupId
            groupId = input.readUInt32();
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 48) {
              break;
            }
          }
          case 48: {
            // isNeedRefresh
            isNeedRefresh = input.readBool();
            bitField0_ |= 0x00000004;
            tag = input.readTag();
            if (tag != 90) {
              break;
            }
          }
          case 90: {
            // destoryMonsterConfigIdList [packed=true]
            input.readPackedUInt32(destoryMonsterConfigIdList, tag);
            bitField0_ |= 0x00000008;
            tag = input.readTag();
            if (tag != 98) {
              break;
            }
          }
          case 98: {
            // propertyMap
            tag = input.readRepeatedMessage(propertyMap, tag);
            bitField0_ |= 0x00000010;
            if (tag != 0) {
              break;
            }
          }
          case 0: {
            return this;
          }
          default: {
            if (!input.skipField(tag)) {
              return this;
            }
            tag = input.readTag();
            break;
          }
          case 88: {
            // destoryMonsterConfigIdList [packed=false]
            tag = input.readRepeatedUInt32(destoryMonsterConfigIdList, tag);
            bitField0_ |= 0x00000008;
            break;
          }
        }
      }
    }

    @Override
    public void writeTo(final JsonSink output) throws IOException {
      output.beginObject();
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeInt64(FieldNames.modifyTime, modifyTime);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeUInt32(FieldNames.groupId, groupId);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeBool(FieldNames.isNeedRefresh, isNeedRefresh);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeRepeatedUInt32(FieldNames.destoryMonsterConfigIdList, destoryMonsterConfigIdList);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeRepeatedMessage(FieldNames.propertyMap, propertyMap);
      }
      output.endObject();
    }

    @Override
    public MapInfoGroup mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case 1211388583:
          case -1091176654: {
            if (input.isAtField(FieldNames.modifyTime)) {
              if (!input.trySkipNullValue()) {
                modifyTime = input.readInt64();
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 293428218:
          case 506361563: {
            if (input.isAtField(FieldNames.groupId)) {
              if (!input.trySkipNullValue()) {
                groupId = input.readUInt32();
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1106015781:
          case -104440537: {
            if (input.isAtField(FieldNames.isNeedRefresh)) {
              if (!input.trySkipNullValue()) {
                isNeedRefresh = input.readBool();
                bitField0_ |= 0x00000004;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1102059905:
          case -1928058923: {
            if (input.isAtField(FieldNames.destoryMonsterConfigIdList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedUInt32(destoryMonsterConfigIdList);
                bitField0_ |= 0x00000008;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1357579079:
          case -864174094: {
            if (input.isAtField(FieldNames.propertyMap)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(propertyMap);
                bitField0_ |= 0x00000010;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      private enum PropertyMapEntryFactory implements MessageFactory<PropertyMapEntry> {
        INSTANCE;

        @Override
        public PropertyMapEntry create() {
          return PropertyMapEntry.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 MapInfoGroupFactory implements MessageFactory<MapInfoGroup> {
      INSTANCE;

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

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

      static final FieldName groupId = FieldName.forField("groupId", "group_id");

      static final FieldName isNeedRefresh = FieldName.forField("isNeedRefresh", "is_need_refresh");

      static final FieldName destoryMonsterConfigIdList = FieldName.forField("destoryMonsterConfigIdList", "destory_monster_config_id_list");

      static final FieldName propertyMap = FieldName.forField("propertyMap", "property_map");
    }
  }
}
