// 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;

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

    /**
     * <code>optional uint64 first_met_timestamp = 12;</code>
     */
    private long firstMetTimestamp;

    /**
     * <code>optional uint32 avatar_skin = 8;</code>
     */
    private int avatarSkin;

    /**
     * <code>optional uint32 avatar_id = 10;</code>
     */
    private int avatarId;

    /**
     * <code>optional uint32 rank = 11;</code>
     */
    private int rank;

    /**
     * <code>optional uint32 path_equipment_id = 13;</code>
     */
    private int pathEquipmentId;

    /**
     * <code>optional uint32 enhance_id = 14;</code>
     */
    private int enhanceId;

    /**
     * <code>repeated .AvatarPathSkillTree skilltree_list = 1;</code>
     */
    private final RepeatedMessage<AvatarPathSkillTreeOuterClass.AvatarPathSkillTree> skilltreeList = RepeatedMessage.newEmptyInstance(AvatarPathSkillTreeOuterClass.AvatarPathSkillTree.getFactory());

    /**
     * <code>repeated .EquipRelic equip_relic_list = 9;</code>
     */
    private final RepeatedMessage<EquipRelicOuterClass.EquipRelic> equipRelicList = RepeatedMessage.newEmptyInstance(EquipRelicOuterClass.EquipRelic.getFactory());

    private AvatarPathInfo() {
    }

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

    /**
     * <code>optional uint64 first_met_timestamp = 12;</code>
     * @return whether the firstMetTimestamp field is set
     */
    public boolean hasFirstMetTimestamp() {
      return (bitField0_ & 0x00000001) != 0;
    }

    /**
     * <code>optional uint64 first_met_timestamp = 12;</code>
     * @return this
     */
    public AvatarPathInfo clearFirstMetTimestamp() {
      bitField0_ &= ~0x00000001;
      firstMetTimestamp = 0L;
      return this;
    }

    /**
     * <code>optional uint64 first_met_timestamp = 12;</code>
     * @return the firstMetTimestamp
     */
    public long getFirstMetTimestamp() {
      return firstMetTimestamp;
    }

    /**
     * <code>optional uint64 first_met_timestamp = 12;</code>
     * @param value the firstMetTimestamp to set
     * @return this
     */
    public AvatarPathInfo setFirstMetTimestamp(final long value) {
      bitField0_ |= 0x00000001;
      firstMetTimestamp = value;
      return this;
    }

    /**
     * <code>optional uint32 avatar_skin = 8;</code>
     * @return whether the avatarSkin field is set
     */
    public boolean hasAvatarSkin() {
      return (bitField0_ & 0x00000002) != 0;
    }

    /**
     * <code>optional uint32 avatar_skin = 8;</code>
     * @return this
     */
    public AvatarPathInfo clearAvatarSkin() {
      bitField0_ &= ~0x00000002;
      avatarSkin = 0;
      return this;
    }

    /**
     * <code>optional uint32 avatar_skin = 8;</code>
     * @return the avatarSkin
     */
    public int getAvatarSkin() {
      return avatarSkin;
    }

    /**
     * <code>optional uint32 avatar_skin = 8;</code>
     * @param value the avatarSkin to set
     * @return this
     */
    public AvatarPathInfo setAvatarSkin(final int value) {
      bitField0_ |= 0x00000002;
      avatarSkin = value;
      return this;
    }

    /**
     * <code>optional uint32 avatar_id = 10;</code>
     * @return whether the avatarId field is set
     */
    public boolean hasAvatarId() {
      return (bitField0_ & 0x00000004) != 0;
    }

    /**
     * <code>optional uint32 avatar_id = 10;</code>
     * @return this
     */
    public AvatarPathInfo clearAvatarId() {
      bitField0_ &= ~0x00000004;
      avatarId = 0;
      return this;
    }

    /**
     * <code>optional uint32 avatar_id = 10;</code>
     * @return the avatarId
     */
    public int getAvatarId() {
      return avatarId;
    }

    /**
     * <code>optional uint32 avatar_id = 10;</code>
     * @param value the avatarId to set
     * @return this
     */
    public AvatarPathInfo setAvatarId(final int value) {
      bitField0_ |= 0x00000004;
      avatarId = value;
      return this;
    }

    /**
     * <code>optional uint32 rank = 11;</code>
     * @return whether the rank field is set
     */
    public boolean hasRank() {
      return (bitField0_ & 0x00000008) != 0;
    }

    /**
     * <code>optional uint32 rank = 11;</code>
     * @return this
     */
    public AvatarPathInfo clearRank() {
      bitField0_ &= ~0x00000008;
      rank = 0;
      return this;
    }

    /**
     * <code>optional uint32 rank = 11;</code>
     * @return the rank
     */
    public int getRank() {
      return rank;
    }

    /**
     * <code>optional uint32 rank = 11;</code>
     * @param value the rank to set
     * @return this
     */
    public AvatarPathInfo setRank(final int value) {
      bitField0_ |= 0x00000008;
      rank = value;
      return this;
    }

    /**
     * <code>optional uint32 path_equipment_id = 13;</code>
     * @return whether the pathEquipmentId field is set
     */
    public boolean hasPathEquipmentId() {
      return (bitField0_ & 0x00000010) != 0;
    }

    /**
     * <code>optional uint32 path_equipment_id = 13;</code>
     * @return this
     */
    public AvatarPathInfo clearPathEquipmentId() {
      bitField0_ &= ~0x00000010;
      pathEquipmentId = 0;
      return this;
    }

    /**
     * <code>optional uint32 path_equipment_id = 13;</code>
     * @return the pathEquipmentId
     */
    public int getPathEquipmentId() {
      return pathEquipmentId;
    }

    /**
     * <code>optional uint32 path_equipment_id = 13;</code>
     * @param value the pathEquipmentId to set
     * @return this
     */
    public AvatarPathInfo setPathEquipmentId(final int value) {
      bitField0_ |= 0x00000010;
      pathEquipmentId = value;
      return this;
    }

    /**
     * <code>optional uint32 enhance_id = 14;</code>
     * @return whether the enhanceId field is set
     */
    public boolean hasEnhanceId() {
      return (bitField0_ & 0x00000020) != 0;
    }

    /**
     * <code>optional uint32 enhance_id = 14;</code>
     * @return this
     */
    public AvatarPathInfo clearEnhanceId() {
      bitField0_ &= ~0x00000020;
      enhanceId = 0;
      return this;
    }

    /**
     * <code>optional uint32 enhance_id = 14;</code>
     * @return the enhanceId
     */
    public int getEnhanceId() {
      return enhanceId;
    }

    /**
     * <code>optional uint32 enhance_id = 14;</code>
     * @param value the enhanceId to set
     * @return this
     */
    public AvatarPathInfo setEnhanceId(final int value) {
      bitField0_ |= 0x00000020;
      enhanceId = value;
      return this;
    }

    /**
     * <code>repeated .AvatarPathSkillTree skilltree_list = 1;</code>
     * @return whether the skilltreeList field is set
     */
    public boolean hasSkilltreeList() {
      return (bitField0_ & 0x00000040) != 0;
    }

    /**
     * <code>repeated .AvatarPathSkillTree skilltree_list = 1;</code>
     * @return this
     */
    public AvatarPathInfo clearSkilltreeList() {
      bitField0_ &= ~0x00000040;
      skilltreeList.clear();
      return this;
    }

    /**
     * <code>repeated .AvatarPathSkillTree skilltree_list = 1;</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 #getMutableSkilltreeList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<AvatarPathSkillTreeOuterClass.AvatarPathSkillTree> getSkilltreeList() {
      return skilltreeList;
    }

    /**
     * <code>repeated .AvatarPathSkillTree skilltree_list = 1;</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<AvatarPathSkillTreeOuterClass.AvatarPathSkillTree> getMutableSkilltreeList(
        ) {
      bitField0_ |= 0x00000040;
      return skilltreeList;
    }

    /**
     * <code>repeated .AvatarPathSkillTree skilltree_list = 1;</code>
     * @param value the skilltreeList to add
     * @return this
     */
    public AvatarPathInfo addSkilltreeList(
        final AvatarPathSkillTreeOuterClass.AvatarPathSkillTree value) {
      bitField0_ |= 0x00000040;
      skilltreeList.add(value);
      return this;
    }

    /**
     * <code>repeated .AvatarPathSkillTree skilltree_list = 1;</code>
     * @param values the skilltreeList to add
     * @return this
     */
    public AvatarPathInfo addAllSkilltreeList(
        final AvatarPathSkillTreeOuterClass.AvatarPathSkillTree... values) {
      bitField0_ |= 0x00000040;
      skilltreeList.addAll(values);
      return this;
    }

    /**
     * <code>repeated .EquipRelic equip_relic_list = 9;</code>
     * @return whether the equipRelicList field is set
     */
    public boolean hasEquipRelicList() {
      return (bitField0_ & 0x00000080) != 0;
    }

    /**
     * <code>repeated .EquipRelic equip_relic_list = 9;</code>
     * @return this
     */
    public AvatarPathInfo clearEquipRelicList() {
      bitField0_ &= ~0x00000080;
      equipRelicList.clear();
      return this;
    }

    /**
     * <code>repeated .EquipRelic equip_relic_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 #getMutableEquipRelicList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<EquipRelicOuterClass.EquipRelic> getEquipRelicList() {
      return equipRelicList;
    }

    /**
     * <code>repeated .EquipRelic equip_relic_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<EquipRelicOuterClass.EquipRelic> getMutableEquipRelicList() {
      bitField0_ |= 0x00000080;
      return equipRelicList;
    }

    /**
     * <code>repeated .EquipRelic equip_relic_list = 9;</code>
     * @param value the equipRelicList to add
     * @return this
     */
    public AvatarPathInfo addEquipRelicList(final EquipRelicOuterClass.EquipRelic value) {
      bitField0_ |= 0x00000080;
      equipRelicList.add(value);
      return this;
    }

    /**
     * <code>repeated .EquipRelic equip_relic_list = 9;</code>
     * @param values the equipRelicList to add
     * @return this
     */
    public AvatarPathInfo addAllEquipRelicList(final EquipRelicOuterClass.EquipRelic... values) {
      bitField0_ |= 0x00000080;
      equipRelicList.addAll(values);
      return this;
    }

    @Override
    public AvatarPathInfo copyFrom(final AvatarPathInfo other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        firstMetTimestamp = other.firstMetTimestamp;
        avatarSkin = other.avatarSkin;
        avatarId = other.avatarId;
        rank = other.rank;
        pathEquipmentId = other.pathEquipmentId;
        enhanceId = other.enhanceId;
        skilltreeList.copyFrom(other.skilltreeList);
        equipRelicList.copyFrom(other.equipRelicList);
      }
      return this;
    }

    @Override
    public AvatarPathInfo mergeFrom(final AvatarPathInfo other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasFirstMetTimestamp()) {
        setFirstMetTimestamp(other.firstMetTimestamp);
      }
      if (other.hasAvatarSkin()) {
        setAvatarSkin(other.avatarSkin);
      }
      if (other.hasAvatarId()) {
        setAvatarId(other.avatarId);
      }
      if (other.hasRank()) {
        setRank(other.rank);
      }
      if (other.hasPathEquipmentId()) {
        setPathEquipmentId(other.pathEquipmentId);
      }
      if (other.hasEnhanceId()) {
        setEnhanceId(other.enhanceId);
      }
      if (other.hasSkilltreeList()) {
        getMutableSkilltreeList().addAll(other.skilltreeList);
      }
      if (other.hasEquipRelicList()) {
        getMutableEquipRelicList().addAll(other.equipRelicList);
      }
      return this;
    }

    @Override
    public AvatarPathInfo clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      firstMetTimestamp = 0L;
      avatarSkin = 0;
      avatarId = 0;
      rank = 0;
      pathEquipmentId = 0;
      enhanceId = 0;
      skilltreeList.clear();
      equipRelicList.clear();
      return this;
    }

    @Override
    public AvatarPathInfo clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      skilltreeList.clearQuick();
      equipRelicList.clearQuick();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof AvatarPathInfo)) {
        return false;
      }
      AvatarPathInfo other = (AvatarPathInfo) o;
      return bitField0_ == other.bitField0_
        && (!hasFirstMetTimestamp() || firstMetTimestamp == other.firstMetTimestamp)
        && (!hasAvatarSkin() || avatarSkin == other.avatarSkin)
        && (!hasAvatarId() || avatarId == other.avatarId)
        && (!hasRank() || rank == other.rank)
        && (!hasPathEquipmentId() || pathEquipmentId == other.pathEquipmentId)
        && (!hasEnhanceId() || enhanceId == other.enhanceId)
        && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList))
        && (!hasEquipRelicList() || equipRelicList.equals(other.equipRelicList));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 96);
        output.writeUInt64NoTag(firstMetTimestamp);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawByte((byte) 64);
        output.writeUInt32NoTag(avatarSkin);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRawByte((byte) 80);
        output.writeUInt32NoTag(avatarId);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeRawByte((byte) 88);
        output.writeUInt32NoTag(rank);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeRawByte((byte) 104);
        output.writeUInt32NoTag(pathEquipmentId);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeRawByte((byte) 112);
        output.writeUInt32NoTag(enhanceId);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        for (int i = 0; i < skilltreeList.length(); i++) {
          output.writeRawByte((byte) 10);
          output.writeMessageNoTag(skilltreeList.get(i));
        }
      }
      if ((bitField0_ & 0x00000080) != 0) {
        for (int i = 0; i < equipRelicList.length(); i++) {
          output.writeRawByte((byte) 74);
          output.writeMessageNoTag(equipRelicList.get(i));
        }
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeUInt64SizeNoTag(firstMetTimestamp);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarSkin);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(rank);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(pathEquipmentId);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(enhanceId);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public AvatarPathInfo mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 96: {
            // firstMetTimestamp
            firstMetTimestamp = input.readUInt64();
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 64) {
              break;
            }
          }
          case 64: {
            // avatarSkin
            avatarSkin = input.readUInt32();
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 80) {
              break;
            }
          }
          case 80: {
            // avatarId
            avatarId = input.readUInt32();
            bitField0_ |= 0x00000004;
            tag = input.readTag();
            if (tag != 88) {
              break;
            }
          }
          case 88: {
            // rank
            rank = input.readUInt32();
            bitField0_ |= 0x00000008;
            tag = input.readTag();
            if (tag != 104) {
              break;
            }
          }
          case 104: {
            // pathEquipmentId
            pathEquipmentId = input.readUInt32();
            bitField0_ |= 0x00000010;
            tag = input.readTag();
            if (tag != 112) {
              break;
            }
          }
          case 112: {
            // enhanceId
            enhanceId = input.readUInt32();
            bitField0_ |= 0x00000020;
            tag = input.readTag();
            if (tag != 10) {
              break;
            }
          }
          case 10: {
            // skilltreeList
            tag = input.readRepeatedMessage(skilltreeList, tag);
            bitField0_ |= 0x00000040;
            if (tag != 74) {
              break;
            }
          }
          case 74: {
            // equipRelicList
            tag = input.readRepeatedMessage(equipRelicList, tag);
            bitField0_ |= 0x00000080;
            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.writeUInt64(FieldNames.firstMetTimestamp, firstMetTimestamp);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeUInt32(FieldNames.avatarSkin, avatarSkin);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeUInt32(FieldNames.avatarId, avatarId);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeUInt32(FieldNames.rank, rank);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeUInt32(FieldNames.pathEquipmentId, pathEquipmentId);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeUInt32(FieldNames.enhanceId, enhanceId);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList);
      }
      output.endObject();
    }

    @Override
    public AvatarPathInfo mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case 1893996906:
          case 329864996: {
            if (input.isAtField(FieldNames.firstMetTimestamp)) {
              if (!input.trySkipNullValue()) {
                firstMetTimestamp = input.readUInt64();
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -403192202:
          case 397266083: {
            if (input.isAtField(FieldNames.avatarSkin)) {
              if (!input.trySkipNullValue()) {
                avatarSkin = input.readUInt32();
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1787287636:
          case -428636735: {
            if (input.isAtField(FieldNames.avatarId)) {
              if (!input.trySkipNullValue()) {
                avatarId = input.readUInt32();
                bitField0_ |= 0x00000004;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 3492908: {
            if (input.isAtField(FieldNames.rank)) {
              if (!input.trySkipNullValue()) {
                rank = input.readUInt32();
                bitField0_ |= 0x00000008;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1371565540:
          case -1584422074: {
            if (input.isAtField(FieldNames.pathEquipmentId)) {
              if (!input.trySkipNullValue()) {
                pathEquipmentId = input.readUInt32();
                bitField0_ |= 0x00000010;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1259067497:
          case 376408140: {
            if (input.isAtField(FieldNames.enhanceId)) {
              if (!input.trySkipNullValue()) {
                enhanceId = input.readUInt32();
                bitField0_ |= 0x00000020;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1549763245:
          case 815647086: {
            if (input.isAtField(FieldNames.skilltreeList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(skilltreeList);
                bitField0_ |= 0x00000040;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1578968161:
          case -795441831: {
            if (input.isAtField(FieldNames.equipRelicList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(equipRelicList);
                bitField0_ |= 0x00000080;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

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

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

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

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

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

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

    private enum AvatarPathInfoFactory implements MessageFactory<AvatarPathInfo> {
      INSTANCE;

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

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

      static final FieldName avatarSkin = FieldName.forField("avatarSkin", "avatar_skin");

      static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id");

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

      static final FieldName pathEquipmentId = FieldName.forField("pathEquipmentId", "path_equipment_id");

      static final FieldName enhanceId = FieldName.forField("enhanceId", "enhance_id");

      static final FieldName skilltreeList = FieldName.forField("skilltreeList", "skilltree_list");

      static final FieldName equipRelicList = FieldName.forField("equipRelicList", "equip_relic_list");
    }
  }
}
