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

    /**
     * <code>optional uint32 head_icon = 2;</code>
     */
    private int headIcon;

    /**
     * <code>optional uint32 level = 6;</code>
     */
    private int level;

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

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

    /**
     * <code>optional .PlatformType platform_type = 13;</code>
     */
    private int platformType;

    /**
     * <code>optional bool is_banned = 12;</code>
     */
    private boolean isBanned;

    /**
     * <code>optional bool show_display_avatars = 14;</code>
     */
    private boolean showDisplayAvatars;

    /**
     * <code>optional .PlayerRecordInfo record_info = 3;</code>
     */
    private final PlayerRecordInfoOuterClass.PlayerRecordInfo recordInfo = PlayerRecordInfoOuterClass.PlayerRecordInfo.newInstance();

    /**
     * <code>optional .PlayerOutfitInfo player_outfit_data = 831;</code>
     */
    private final PlayerOutfitInfoOuterClass.PlayerOutfitInfo playerOutfitData = PlayerOutfitInfoOuterClass.PlayerOutfitInfo.newInstance();

    /**
     * <code>optional .HeadIconFrameInfo head_icon_frame_info = 1012;</code>
     */
    private final HeadIconFrameInfoOuterClass.HeadIconFrameInfo headIconFrameInfo = HeadIconFrameInfoOuterClass.HeadIconFrameInfo.newInstance();

    /**
     * <code>optional .PlayerChallengeDetailInfo challenge_detail = 1039;</code>
     */
    private final PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo challengeDetail = PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo.newInstance();

    /**
     * <code>optional .PlayerDisplaySettings display_settings = 1052;</code>
     */
    private final PlayerDisplaySettingsOuterClass.PlayerDisplaySettings displaySettings = PlayerDisplaySettingsOuterClass.PlayerDisplaySettings.newInstance();

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

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

    /**
     * <code>optional string unk_detail = 1966;</code>
     */
    private final Utf8String unkDetail = Utf8String.newEmptyInstance();

    /**
     * <code>repeated .DisplayAvatarDetailInfo display_avatar_list = 8;</code>
     */
    private final RepeatedMessage<DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo> displayAvatarList = RepeatedMessage.newEmptyInstance(DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo.getFactory());

    /**
     * <code>repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809;</code>
     */
    private final RepeatedMessage<DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo> assistAvatarList = RepeatedMessage.newEmptyInstance(DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo.getFactory());

    private PlayerDetailInfo() {
    }

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

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

    /**
     * <code>optional uint32 head_icon = 2;</code>
     * @return this
     */
    public PlayerDetailInfo clearHeadIcon() {
      bitField0_ &= ~0x00000001;
      headIcon = 0;
      return this;
    }

    /**
     * <code>optional uint32 head_icon = 2;</code>
     * @return the headIcon
     */
    public int getHeadIcon() {
      return headIcon;
    }

    /**
     * <code>optional uint32 head_icon = 2;</code>
     * @param value the headIcon to set
     * @return this
     */
    public PlayerDetailInfo setHeadIcon(final int value) {
      bitField0_ |= 0x00000001;
      headIcon = value;
      return this;
    }

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

    /**
     * <code>optional uint32 level = 6;</code>
     * @return this
     */
    public PlayerDetailInfo clearLevel() {
      bitField0_ &= ~0x00000002;
      level = 0;
      return this;
    }

    /**
     * <code>optional uint32 level = 6;</code>
     * @return the level
     */
    public int getLevel() {
      return level;
    }

    /**
     * <code>optional uint32 level = 6;</code>
     * @param value the level to set
     * @return this
     */
    public PlayerDetailInfo setLevel(final int value) {
      bitField0_ |= 0x00000002;
      level = value;
      return this;
    }

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

    /**
     * <code>optional uint32 uid = 10;</code>
     * @return this
     */
    public PlayerDetailInfo clearUid() {
      bitField0_ &= ~0x00000004;
      uid = 0;
      return this;
    }

    /**
     * <code>optional uint32 uid = 10;</code>
     * @return the uid
     */
    public int getUid() {
      return uid;
    }

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

    /**
     * <code>optional uint32 world_level = 15;</code>
     * @return whether the worldLevel field is set
     */
    public boolean hasWorldLevel() {
      return (bitField0_ & 0x00000008) != 0;
    }

    /**
     * <code>optional uint32 world_level = 15;</code>
     * @return this
     */
    public PlayerDetailInfo clearWorldLevel() {
      bitField0_ &= ~0x00000008;
      worldLevel = 0;
      return this;
    }

    /**
     * <code>optional uint32 world_level = 15;</code>
     * @return the worldLevel
     */
    public int getWorldLevel() {
      return worldLevel;
    }

    /**
     * <code>optional uint32 world_level = 15;</code>
     * @param value the worldLevel to set
     * @return this
     */
    public PlayerDetailInfo setWorldLevel(final int value) {
      bitField0_ |= 0x00000008;
      worldLevel = value;
      return this;
    }

    /**
     * <code>optional .PlatformType platform_type = 13;</code>
     * @return whether the platformType field is set
     */
    public boolean hasPlatformType() {
      return (bitField0_ & 0x00000010) != 0;
    }

    /**
     * <code>optional .PlatformType platform_type = 13;</code>
     * @return this
     */
    public PlayerDetailInfo clearPlatformType() {
      bitField0_ &= ~0x00000010;
      platformType = 0;
      return this;
    }

    /**
     * <code>optional .PlatformType platform_type = 13;</code>
     * @return the platformType
     */
    public PlatformTypeOuterClass.PlatformType getPlatformType() {
      return PlatformTypeOuterClass.PlatformType.forNumber(platformType);
    }

    /**
     * Gets the value of the internal enum store. The result is
     * equivalent to {@link PlayerDetailInfo#getPlatformType()}.getNumber().
     *
     * @return numeric wire representation
     */
    public int getPlatformTypeValue() {
      return platformType;
    }

    /**
     * Sets the value of the internal enum store. This does not
     * do any validity checks, so be sure to use appropriate value
     * constants from {@link PlatformTypeOuterClass.PlatformType}. Setting an invalid value
     * can cause {@link PlayerDetailInfo#getPlatformType()} to return null
     *
     * @param value the numeric wire value to set
     * @return this
     */
    public PlayerDetailInfo setPlatformTypeValue(final int value) {
      bitField0_ |= 0x00000010;
      platformType = value;
      return this;
    }

    /**
     * <code>optional .PlatformType platform_type = 13;</code>
     * @param value the platformType to set
     * @return this
     */
    public PlayerDetailInfo setPlatformType(final PlatformTypeOuterClass.PlatformType value) {
      bitField0_ |= 0x00000010;
      platformType = value.getNumber();
      return this;
    }

    /**
     * <code>optional bool is_banned = 12;</code>
     * @return whether the isBanned field is set
     */
    public boolean hasIsBanned() {
      return (bitField0_ & 0x00000020) != 0;
    }

    /**
     * <code>optional bool is_banned = 12;</code>
     * @return this
     */
    public PlayerDetailInfo clearIsBanned() {
      bitField0_ &= ~0x00000020;
      isBanned = false;
      return this;
    }

    /**
     * <code>optional bool is_banned = 12;</code>
     * @return the isBanned
     */
    public boolean getIsBanned() {
      return isBanned;
    }

    /**
     * <code>optional bool is_banned = 12;</code>
     * @param value the isBanned to set
     * @return this
     */
    public PlayerDetailInfo setIsBanned(final boolean value) {
      bitField0_ |= 0x00000020;
      isBanned = value;
      return this;
    }

    /**
     * <code>optional bool show_display_avatars = 14;</code>
     * @return whether the showDisplayAvatars field is set
     */
    public boolean hasShowDisplayAvatars() {
      return (bitField0_ & 0x00000040) != 0;
    }

    /**
     * <code>optional bool show_display_avatars = 14;</code>
     * @return this
     */
    public PlayerDetailInfo clearShowDisplayAvatars() {
      bitField0_ &= ~0x00000040;
      showDisplayAvatars = false;
      return this;
    }

    /**
     * <code>optional bool show_display_avatars = 14;</code>
     * @return the showDisplayAvatars
     */
    public boolean getShowDisplayAvatars() {
      return showDisplayAvatars;
    }

    /**
     * <code>optional bool show_display_avatars = 14;</code>
     * @param value the showDisplayAvatars to set
     * @return this
     */
    public PlayerDetailInfo setShowDisplayAvatars(final boolean value) {
      bitField0_ |= 0x00000040;
      showDisplayAvatars = value;
      return this;
    }

    /**
     * <code>optional .PlayerRecordInfo record_info = 3;</code>
     * @return whether the recordInfo field is set
     */
    public boolean hasRecordInfo() {
      return (bitField0_ & 0x00000080) != 0;
    }

    /**
     * <code>optional .PlayerRecordInfo record_info = 3;</code>
     * @return this
     */
    public PlayerDetailInfo clearRecordInfo() {
      bitField0_ &= ~0x00000080;
      recordInfo.clear();
      return this;
    }

    /**
     * <code>optional .PlayerRecordInfo record_info = 3;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableRecordInfo()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public PlayerRecordInfoOuterClass.PlayerRecordInfo getRecordInfo() {
      return recordInfo;
    }

    /**
     * <code>optional .PlayerRecordInfo record_info = 3;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public PlayerRecordInfoOuterClass.PlayerRecordInfo getMutableRecordInfo() {
      bitField0_ |= 0x00000080;
      return recordInfo;
    }

    /**
     * <code>optional .PlayerRecordInfo record_info = 3;</code>
     * @param value the recordInfo to set
     * @return this
     */
    public PlayerDetailInfo setRecordInfo(final PlayerRecordInfoOuterClass.PlayerRecordInfo value) {
      bitField0_ |= 0x00000080;
      recordInfo.copyFrom(value);
      return this;
    }

    /**
     * <code>optional .PlayerOutfitInfo player_outfit_data = 831;</code>
     * @return whether the playerOutfitData field is set
     */
    public boolean hasPlayerOutfitData() {
      return (bitField0_ & 0x00000100) != 0;
    }

    /**
     * <code>optional .PlayerOutfitInfo player_outfit_data = 831;</code>
     * @return this
     */
    public PlayerDetailInfo clearPlayerOutfitData() {
      bitField0_ &= ~0x00000100;
      playerOutfitData.clear();
      return this;
    }

    /**
     * <code>optional .PlayerOutfitInfo player_outfit_data = 831;</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 #getMutablePlayerOutfitData()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getPlayerOutfitData() {
      return playerOutfitData;
    }

    /**
     * <code>optional .PlayerOutfitInfo player_outfit_data = 831;</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 PlayerOutfitInfoOuterClass.PlayerOutfitInfo getMutablePlayerOutfitData() {
      bitField0_ |= 0x00000100;
      return playerOutfitData;
    }

    /**
     * <code>optional .PlayerOutfitInfo player_outfit_data = 831;</code>
     * @param value the playerOutfitData to set
     * @return this
     */
    public PlayerDetailInfo setPlayerOutfitData(
        final PlayerOutfitInfoOuterClass.PlayerOutfitInfo value) {
      bitField0_ |= 0x00000100;
      playerOutfitData.copyFrom(value);
      return this;
    }

    /**
     * <code>optional .HeadIconFrameInfo head_icon_frame_info = 1012;</code>
     * @return whether the headIconFrameInfo field is set
     */
    public boolean hasHeadIconFrameInfo() {
      return (bitField0_ & 0x00000200) != 0;
    }

    /**
     * <code>optional .HeadIconFrameInfo head_icon_frame_info = 1012;</code>
     * @return this
     */
    public PlayerDetailInfo clearHeadIconFrameInfo() {
      bitField0_ &= ~0x00000200;
      headIconFrameInfo.clear();
      return this;
    }

    /**
     * <code>optional .HeadIconFrameInfo head_icon_frame_info = 1012;</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 #getMutableHeadIconFrameInfo()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public HeadIconFrameInfoOuterClass.HeadIconFrameInfo getHeadIconFrameInfo() {
      return headIconFrameInfo;
    }

    /**
     * <code>optional .HeadIconFrameInfo head_icon_frame_info = 1012;</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 HeadIconFrameInfoOuterClass.HeadIconFrameInfo getMutableHeadIconFrameInfo() {
      bitField0_ |= 0x00000200;
      return headIconFrameInfo;
    }

    /**
     * <code>optional .HeadIconFrameInfo head_icon_frame_info = 1012;</code>
     * @param value the headIconFrameInfo to set
     * @return this
     */
    public PlayerDetailInfo setHeadIconFrameInfo(
        final HeadIconFrameInfoOuterClass.HeadIconFrameInfo value) {
      bitField0_ |= 0x00000200;
      headIconFrameInfo.copyFrom(value);
      return this;
    }

    /**
     * <code>optional .PlayerChallengeDetailInfo challenge_detail = 1039;</code>
     * @return whether the challengeDetail field is set
     */
    public boolean hasChallengeDetail() {
      return (bitField0_ & 0x00000400) != 0;
    }

    /**
     * <code>optional .PlayerChallengeDetailInfo challenge_detail = 1039;</code>
     * @return this
     */
    public PlayerDetailInfo clearChallengeDetail() {
      bitField0_ &= ~0x00000400;
      challengeDetail.clear();
      return this;
    }

    /**
     * <code>optional .PlayerChallengeDetailInfo challenge_detail = 1039;</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 #getMutableChallengeDetail()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo getChallengeDetail() {
      return challengeDetail;
    }

    /**
     * <code>optional .PlayerChallengeDetailInfo challenge_detail = 1039;</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 PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo getMutableChallengeDetail(
        ) {
      bitField0_ |= 0x00000400;
      return challengeDetail;
    }

    /**
     * <code>optional .PlayerChallengeDetailInfo challenge_detail = 1039;</code>
     * @param value the challengeDetail to set
     * @return this
     */
    public PlayerDetailInfo setChallengeDetail(
        final PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo value) {
      bitField0_ |= 0x00000400;
      challengeDetail.copyFrom(value);
      return this;
    }

    /**
     * <code>optional .PlayerDisplaySettings display_settings = 1052;</code>
     * @return whether the displaySettings field is set
     */
    public boolean hasDisplaySettings() {
      return (bitField0_ & 0x00000800) != 0;
    }

    /**
     * <code>optional .PlayerDisplaySettings display_settings = 1052;</code>
     * @return this
     */
    public PlayerDetailInfo clearDisplaySettings() {
      bitField0_ &= ~0x00000800;
      displaySettings.clear();
      return this;
    }

    /**
     * <code>optional .PlayerDisplaySettings display_settings = 1052;</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 #getMutableDisplaySettings()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public PlayerDisplaySettingsOuterClass.PlayerDisplaySettings getDisplaySettings() {
      return displaySettings;
    }

    /**
     * <code>optional .PlayerDisplaySettings display_settings = 1052;</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 PlayerDisplaySettingsOuterClass.PlayerDisplaySettings getMutableDisplaySettings() {
      bitField0_ |= 0x00000800;
      return displaySettings;
    }

    /**
     * <code>optional .PlayerDisplaySettings display_settings = 1052;</code>
     * @param value the displaySettings to set
     * @return this
     */
    public PlayerDetailInfo setDisplaySettings(
        final PlayerDisplaySettingsOuterClass.PlayerDisplaySettings value) {
      bitField0_ |= 0x00000800;
      displaySettings.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string nickname = 5;</code>
     * @return whether the nickname field is set
     */
    public boolean hasNickname() {
      return (bitField0_ & 0x00001000) != 0;
    }

    /**
     * <code>optional string nickname = 5;</code>
     * @return this
     */
    public PlayerDetailInfo clearNickname() {
      bitField0_ &= ~0x00001000;
      nickname.clear();
      return this;
    }

    /**
     * <code>optional string nickname = 5;</code>
     * @return the nickname
     */
    public String getNickname() {
      return nickname.getString();
    }

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

    /**
     * <code>optional string nickname = 5;</code>
     * @return internal {@code Utf8String} representation of nickname for modifications
     */
    public Utf8String getMutableNicknameBytes() {
      bitField0_ |= 0x00001000;
      return this.nickname;
    }

    /**
     * <code>optional string nickname = 5;</code>
     * @param value the nickname to set
     * @return this
     */
    public PlayerDetailInfo setNickname(final CharSequence value) {
      bitField0_ |= 0x00001000;
      nickname.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string nickname = 5;</code>
     * @param value the nickname to set
     * @return this
     */
    public PlayerDetailInfo setNickname(final Utf8String value) {
      bitField0_ |= 0x00001000;
      nickname.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string signature = 11;</code>
     * @return whether the signature field is set
     */
    public boolean hasSignature() {
      return (bitField0_ & 0x00002000) != 0;
    }

    /**
     * <code>optional string signature = 11;</code>
     * @return this
     */
    public PlayerDetailInfo clearSignature() {
      bitField0_ &= ~0x00002000;
      signature.clear();
      return this;
    }

    /**
     * <code>optional string signature = 11;</code>
     * @return the signature
     */
    public String getSignature() {
      return signature.getString();
    }

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

    /**
     * <code>optional string signature = 11;</code>
     * @return internal {@code Utf8String} representation of signature for modifications
     */
    public Utf8String getMutableSignatureBytes() {
      bitField0_ |= 0x00002000;
      return this.signature;
    }

    /**
     * <code>optional string signature = 11;</code>
     * @param value the signature to set
     * @return this
     */
    public PlayerDetailInfo setSignature(final CharSequence value) {
      bitField0_ |= 0x00002000;
      signature.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string signature = 11;</code>
     * @param value the signature to set
     * @return this
     */
    public PlayerDetailInfo setSignature(final Utf8String value) {
      bitField0_ |= 0x00002000;
      signature.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string unk_detail = 1966;</code>
     * @return whether the unkDetail field is set
     */
    public boolean hasUnkDetail() {
      return (bitField0_ & 0x00004000) != 0;
    }

    /**
     * <code>optional string unk_detail = 1966;</code>
     * @return this
     */
    public PlayerDetailInfo clearUnkDetail() {
      bitField0_ &= ~0x00004000;
      unkDetail.clear();
      return this;
    }

    /**
     * <code>optional string unk_detail = 1966;</code>
     * @return the unkDetail
     */
    public String getUnkDetail() {
      return unkDetail.getString();
    }

    /**
     * <code>optional string unk_detail = 1966;</code>
     * @return internal {@code Utf8String} representation of unkDetail for reading
     */
    public Utf8String getUnkDetailBytes() {
      return this.unkDetail;
    }

    /**
     * <code>optional string unk_detail = 1966;</code>
     * @return internal {@code Utf8String} representation of unkDetail for modifications
     */
    public Utf8String getMutableUnkDetailBytes() {
      bitField0_ |= 0x00004000;
      return this.unkDetail;
    }

    /**
     * <code>optional string unk_detail = 1966;</code>
     * @param value the unkDetail to set
     * @return this
     */
    public PlayerDetailInfo setUnkDetail(final CharSequence value) {
      bitField0_ |= 0x00004000;
      unkDetail.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string unk_detail = 1966;</code>
     * @param value the unkDetail to set
     * @return this
     */
    public PlayerDetailInfo setUnkDetail(final Utf8String value) {
      bitField0_ |= 0x00004000;
      unkDetail.copyFrom(value);
      return this;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo display_avatar_list = 8;</code>
     * @return whether the displayAvatarList field is set
     */
    public boolean hasDisplayAvatarList() {
      return (bitField0_ & 0x00008000) != 0;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo display_avatar_list = 8;</code>
     * @return this
     */
    public PlayerDetailInfo clearDisplayAvatarList() {
      bitField0_ &= ~0x00008000;
      displayAvatarList.clear();
      return this;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo display_avatar_list = 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 #getMutableDisplayAvatarList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo> getDisplayAvatarList(
        ) {
      return displayAvatarList;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo display_avatar_list = 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<DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo> getMutableDisplayAvatarList(
        ) {
      bitField0_ |= 0x00008000;
      return displayAvatarList;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo display_avatar_list = 8;</code>
     * @param value the displayAvatarList to add
     * @return this
     */
    public PlayerDetailInfo addDisplayAvatarList(
        final DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo value) {
      bitField0_ |= 0x00008000;
      displayAvatarList.add(value);
      return this;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo display_avatar_list = 8;</code>
     * @param values the displayAvatarList to add
     * @return this
     */
    public PlayerDetailInfo addAllDisplayAvatarList(
        final DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo... values) {
      bitField0_ |= 0x00008000;
      displayAvatarList.addAll(values);
      return this;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809;</code>
     * @return whether the assistAvatarList field is set
     */
    public boolean hasAssistAvatarList() {
      return (bitField0_ & 0x00010000) != 0;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809;</code>
     * @return this
     */
    public PlayerDetailInfo clearAssistAvatarList() {
      bitField0_ &= ~0x00010000;
      assistAvatarList.clear();
      return this;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809;</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 #getMutableAssistAvatarList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo> getAssistAvatarList(
        ) {
      return assistAvatarList;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809;</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<DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo> getMutableAssistAvatarList(
        ) {
      bitField0_ |= 0x00010000;
      return assistAvatarList;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809;</code>
     * @param value the assistAvatarList to add
     * @return this
     */
    public PlayerDetailInfo addAssistAvatarList(
        final DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo value) {
      bitField0_ |= 0x00010000;
      assistAvatarList.add(value);
      return this;
    }

    /**
     * <code>repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809;</code>
     * @param values the assistAvatarList to add
     * @return this
     */
    public PlayerDetailInfo addAllAssistAvatarList(
        final DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo... values) {
      bitField0_ |= 0x00010000;
      assistAvatarList.addAll(values);
      return this;
    }

    @Override
    public PlayerDetailInfo copyFrom(final PlayerDetailInfo other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        headIcon = other.headIcon;
        level = other.level;
        uid = other.uid;
        worldLevel = other.worldLevel;
        platformType = other.platformType;
        isBanned = other.isBanned;
        showDisplayAvatars = other.showDisplayAvatars;
        recordInfo.copyFrom(other.recordInfo);
        playerOutfitData.copyFrom(other.playerOutfitData);
        headIconFrameInfo.copyFrom(other.headIconFrameInfo);
        challengeDetail.copyFrom(other.challengeDetail);
        displaySettings.copyFrom(other.displaySettings);
        nickname.copyFrom(other.nickname);
        signature.copyFrom(other.signature);
        unkDetail.copyFrom(other.unkDetail);
        displayAvatarList.copyFrom(other.displayAvatarList);
        assistAvatarList.copyFrom(other.assistAvatarList);
      }
      return this;
    }

    @Override
    public PlayerDetailInfo mergeFrom(final PlayerDetailInfo other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasHeadIcon()) {
        setHeadIcon(other.headIcon);
      }
      if (other.hasLevel()) {
        setLevel(other.level);
      }
      if (other.hasUid()) {
        setUid(other.uid);
      }
      if (other.hasWorldLevel()) {
        setWorldLevel(other.worldLevel);
      }
      if (other.hasPlatformType()) {
        setPlatformTypeValue(other.platformType);
      }
      if (other.hasIsBanned()) {
        setIsBanned(other.isBanned);
      }
      if (other.hasShowDisplayAvatars()) {
        setShowDisplayAvatars(other.showDisplayAvatars);
      }
      if (other.hasRecordInfo()) {
        getMutableRecordInfo().mergeFrom(other.recordInfo);
      }
      if (other.hasPlayerOutfitData()) {
        getMutablePlayerOutfitData().mergeFrom(other.playerOutfitData);
      }
      if (other.hasHeadIconFrameInfo()) {
        getMutableHeadIconFrameInfo().mergeFrom(other.headIconFrameInfo);
      }
      if (other.hasChallengeDetail()) {
        getMutableChallengeDetail().mergeFrom(other.challengeDetail);
      }
      if (other.hasDisplaySettings()) {
        getMutableDisplaySettings().mergeFrom(other.displaySettings);
      }
      if (other.hasNickname()) {
        getMutableNicknameBytes().copyFrom(other.nickname);
      }
      if (other.hasSignature()) {
        getMutableSignatureBytes().copyFrom(other.signature);
      }
      if (other.hasUnkDetail()) {
        getMutableUnkDetailBytes().copyFrom(other.unkDetail);
      }
      if (other.hasDisplayAvatarList()) {
        getMutableDisplayAvatarList().addAll(other.displayAvatarList);
      }
      if (other.hasAssistAvatarList()) {
        getMutableAssistAvatarList().addAll(other.assistAvatarList);
      }
      return this;
    }

    @Override
    public PlayerDetailInfo clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      headIcon = 0;
      level = 0;
      uid = 0;
      worldLevel = 0;
      platformType = 0;
      isBanned = false;
      showDisplayAvatars = false;
      recordInfo.clear();
      playerOutfitData.clear();
      headIconFrameInfo.clear();
      challengeDetail.clear();
      displaySettings.clear();
      nickname.clear();
      signature.clear();
      unkDetail.clear();
      displayAvatarList.clear();
      assistAvatarList.clear();
      return this;
    }

    @Override
    public PlayerDetailInfo clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      recordInfo.clearQuick();
      playerOutfitData.clearQuick();
      headIconFrameInfo.clearQuick();
      challengeDetail.clearQuick();
      displaySettings.clearQuick();
      nickname.clear();
      signature.clear();
      unkDetail.clear();
      displayAvatarList.clearQuick();
      assistAvatarList.clearQuick();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof PlayerDetailInfo)) {
        return false;
      }
      PlayerDetailInfo other = (PlayerDetailInfo) o;
      return bitField0_ == other.bitField0_
        && (!hasHeadIcon() || headIcon == other.headIcon)
        && (!hasLevel() || level == other.level)
        && (!hasUid() || uid == other.uid)
        && (!hasWorldLevel() || worldLevel == other.worldLevel)
        && (!hasPlatformType() || platformType == other.platformType)
        && (!hasIsBanned() || isBanned == other.isBanned)
        && (!hasShowDisplayAvatars() || showDisplayAvatars == other.showDisplayAvatars)
        && (!hasRecordInfo() || recordInfo.equals(other.recordInfo))
        && (!hasPlayerOutfitData() || playerOutfitData.equals(other.playerOutfitData))
        && (!hasHeadIconFrameInfo() || headIconFrameInfo.equals(other.headIconFrameInfo))
        && (!hasChallengeDetail() || challengeDetail.equals(other.challengeDetail))
        && (!hasDisplaySettings() || displaySettings.equals(other.displaySettings))
        && (!hasNickname() || nickname.equals(other.nickname))
        && (!hasSignature() || signature.equals(other.signature))
        && (!hasUnkDetail() || unkDetail.equals(other.unkDetail))
        && (!hasDisplayAvatarList() || displayAvatarList.equals(other.displayAvatarList))
        && (!hasAssistAvatarList() || assistAvatarList.equals(other.assistAvatarList));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 16);
        output.writeUInt32NoTag(headIcon);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawByte((byte) 48);
        output.writeUInt32NoTag(level);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRawByte((byte) 80);
        output.writeUInt32NoTag(uid);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeRawByte((byte) 120);
        output.writeUInt32NoTag(worldLevel);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeRawByte((byte) 104);
        output.writeEnumNoTag(platformType);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeRawByte((byte) 96);
        output.writeBoolNoTag(isBanned);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeRawByte((byte) 112);
        output.writeBoolNoTag(showDisplayAvatars);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        output.writeRawByte((byte) 26);
        output.writeMessageNoTag(recordInfo);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        output.writeRawLittleEndian16((short) 13306);
        output.writeMessageNoTag(playerOutfitData);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        output.writeRawLittleEndian16((short) 16290);
        output.writeMessageNoTag(headIconFrameInfo);
      }
      if ((bitField0_ & 0x00000400) != 0) {
        output.writeRawLittleEndian16((short) 16634);
        output.writeMessageNoTag(challengeDetail);
      }
      if ((bitField0_ & 0x00000800) != 0) {
        output.writeRawLittleEndian16((short) 16866);
        output.writeMessageNoTag(displaySettings);
      }
      if ((bitField0_ & 0x00001000) != 0) {
        output.writeRawByte((byte) 42);
        output.writeStringNoTag(nickname);
      }
      if ((bitField0_ & 0x00002000) != 0) {
        output.writeRawByte((byte) 90);
        output.writeStringNoTag(signature);
      }
      if ((bitField0_ & 0x00004000) != 0) {
        output.writeRawLittleEndian16((short) 31474);
        output.writeStringNoTag(unkDetail);
      }
      if ((bitField0_ & 0x00008000) != 0) {
        for (int i = 0; i < displayAvatarList.length(); i++) {
          output.writeRawByte((byte) 66);
          output.writeMessageNoTag(displayAvatarList.get(i));
        }
      }
      if ((bitField0_ & 0x00010000) != 0) {
        for (int i = 0; i < assistAvatarList.length(); i++) {
          output.writeRawLittleEndian16((short) 29066);
          output.writeMessageNoTag(assistAvatarList.get(i));
        }
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(headIcon);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(uid);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        size += 1 + ProtoSink.computeEnumSizeNoTag(platformType);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        size += 2;
      }
      if ((bitField0_ & 0x00000040) != 0) {
        size += 2;
      }
      if ((bitField0_ & 0x00000080) != 0) {
        size += 1 + ProtoSink.computeMessageSizeNoTag(recordInfo);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        size += 2 + ProtoSink.computeMessageSizeNoTag(playerOutfitData);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        size += 2 + ProtoSink.computeMessageSizeNoTag(headIconFrameInfo);
      }
      if ((bitField0_ & 0x00000400) != 0) {
        size += 2 + ProtoSink.computeMessageSizeNoTag(challengeDetail);
      }
      if ((bitField0_ & 0x00000800) != 0) {
        size += 2 + ProtoSink.computeMessageSizeNoTag(displaySettings);
      }
      if ((bitField0_ & 0x00001000) != 0) {
        size += 1 + ProtoSink.computeStringSizeNoTag(nickname);
      }
      if ((bitField0_ & 0x00002000) != 0) {
        size += 1 + ProtoSink.computeStringSizeNoTag(signature);
      }
      if ((bitField0_ & 0x00004000) != 0) {
        size += 2 + ProtoSink.computeStringSizeNoTag(unkDetail);
      }
      if ((bitField0_ & 0x00008000) != 0) {
        size += (1 * displayAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(displayAvatarList);
      }
      if ((bitField0_ & 0x00010000) != 0) {
        size += (2 * assistAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assistAvatarList);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public PlayerDetailInfo mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 16: {
            // headIcon
            headIcon = input.readUInt32();
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 48) {
              break;
            }
          }
          case 48: {
            // level
            level = input.readUInt32();
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 80) {
              break;
            }
          }
          case 80: {
            // uid
            uid = input.readUInt32();
            bitField0_ |= 0x00000004;
            tag = input.readTag();
            if (tag != 120) {
              break;
            }
          }
          case 120: {
            // worldLevel
            worldLevel = input.readUInt32();
            bitField0_ |= 0x00000008;
            tag = input.readTag();
            if (tag != 104) {
              break;
            }
          }
          case 104: {
            // platformType
            final int value = input.readInt32();
            if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) {
              platformType = value;
              bitField0_ |= 0x00000010;
            }
            tag = input.readTag();
            if (tag != 96) {
              break;
            }
          }
          case 96: {
            // isBanned
            isBanned = input.readBool();
            bitField0_ |= 0x00000020;
            tag = input.readTag();
            if (tag != 112) {
              break;
            }
          }
          case 112: {
            // showDisplayAvatars
            showDisplayAvatars = input.readBool();
            bitField0_ |= 0x00000040;
            tag = input.readTag();
            if (tag != 26) {
              break;
            }
          }
          case 26: {
            // recordInfo
            input.readMessage(recordInfo);
            bitField0_ |= 0x00000080;
            tag = input.readTag();
            if (tag != 6650) {
              break;
            }
          }
          case 6650: {
            // playerOutfitData
            input.readMessage(playerOutfitData);
            bitField0_ |= 0x00000100;
            tag = input.readTag();
            if (tag != 8098) {
              break;
            }
          }
          case 8098: {
            // headIconFrameInfo
            input.readMessage(headIconFrameInfo);
            bitField0_ |= 0x00000200;
            tag = input.readTag();
            if (tag != 8314) {
              break;
            }
          }
          case 8314: {
            // challengeDetail
            input.readMessage(challengeDetail);
            bitField0_ |= 0x00000400;
            tag = input.readTag();
            if (tag != 8418) {
              break;
            }
          }
          case 8418: {
            // displaySettings
            input.readMessage(displaySettings);
            bitField0_ |= 0x00000800;
            tag = input.readTag();
            if (tag != 42) {
              break;
            }
          }
          case 42: {
            // nickname
            input.readString(nickname);
            bitField0_ |= 0x00001000;
            tag = input.readTag();
            if (tag != 90) {
              break;
            }
          }
          case 90: {
            // signature
            input.readString(signature);
            bitField0_ |= 0x00002000;
            tag = input.readTag();
            if (tag != 15730) {
              break;
            }
          }
          case 15730: {
            // unkDetail
            input.readString(unkDetail);
            bitField0_ |= 0x00004000;
            tag = input.readTag();
            if (tag != 66) {
              break;
            }
          }
          case 66: {
            // displayAvatarList
            tag = input.readRepeatedMessage(displayAvatarList, tag);
            bitField0_ |= 0x00008000;
            if (tag != 14474) {
              break;
            }
          }
          case 14474: {
            // assistAvatarList
            tag = input.readRepeatedMessage(assistAvatarList, tag);
            bitField0_ |= 0x00010000;
            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.headIcon, headIcon);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeUInt32(FieldNames.level, level);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeUInt32(FieldNames.uid, uid);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeUInt32(FieldNames.worldLevel, worldLevel);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter());
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeBool(FieldNames.isBanned, isBanned);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeBool(FieldNames.showDisplayAvatars, showDisplayAvatars);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        output.writeMessage(FieldNames.recordInfo, recordInfo);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        output.writeMessage(FieldNames.playerOutfitData, playerOutfitData);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        output.writeMessage(FieldNames.headIconFrameInfo, headIconFrameInfo);
      }
      if ((bitField0_ & 0x00000400) != 0) {
        output.writeMessage(FieldNames.challengeDetail, challengeDetail);
      }
      if ((bitField0_ & 0x00000800) != 0) {
        output.writeMessage(FieldNames.displaySettings, displaySettings);
      }
      if ((bitField0_ & 0x00001000) != 0) {
        output.writeString(FieldNames.nickname, nickname);
      }
      if ((bitField0_ & 0x00002000) != 0) {
        output.writeString(FieldNames.signature, signature);
      }
      if ((bitField0_ & 0x00004000) != 0) {
        output.writeString(FieldNames.unkDetail, unkDetail);
      }
      if ((bitField0_ & 0x00008000) != 0) {
        output.writeRepeatedMessage(FieldNames.displayAvatarList, displayAvatarList);
      }
      if ((bitField0_ & 0x00010000) != 0) {
        output.writeRepeatedMessage(FieldNames.assistAvatarList, assistAvatarList);
      }
      output.endObject();
    }

    @Override
    public PlayerDetailInfo mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case -1116107143:
          case -219098248: {
            if (input.isAtField(FieldNames.headIcon)) {
              if (!input.trySkipNullValue()) {
                headIcon = input.readUInt32();
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 102865796: {
            if (input.isAtField(FieldNames.level)) {
              if (!input.trySkipNullValue()) {
                level = input.readUInt32();
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 115792: {
            if (input.isAtField(FieldNames.uid)) {
              if (!input.trySkipNullValue()) {
                uid = input.readUInt32();
                bitField0_ |= 0x00000004;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 440007442:
          case 1305257111: {
            if (input.isAtField(FieldNames.worldLevel)) {
              if (!input.trySkipNullValue()) {
                worldLevel = input.readUInt32();
                bitField0_ |= 0x00000008;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 155581005:
          case 538062726: {
            if (input.isAtField(FieldNames.platformType)) {
              if (!input.trySkipNullValue()) {
                final PlatformTypeOuterClass.PlatformType value = input.readEnum(PlatformTypeOuterClass.PlatformType.converter());
                if (value != null) {
                  platformType = value.getNumber();
                  bitField0_ |= 0x00000010;
                } else {
                  input.skipUnknownEnumValue();
                }
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -722308888:
          case -932303917: {
            if (input.isAtField(FieldNames.isBanned)) {
              if (!input.trySkipNullValue()) {
                isBanned = input.readBool();
                bitField0_ |= 0x00000020;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1526656139:
          case 635559547: {
            if (input.isAtField(FieldNames.showDisplayAvatars)) {
              if (!input.trySkipNullValue()) {
                showDisplayAvatars = input.readBool();
                bitField0_ |= 0x00000040;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 734573727:
          case 1317125084: {
            if (input.isAtField(FieldNames.recordInfo)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(recordInfo);
                bitField0_ |= 0x00000080;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1168879118:
          case 1803235336: {
            if (input.isAtField(FieldNames.playerOutfitData)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(playerOutfitData);
                bitField0_ |= 0x00000100;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 638045506:
          case 240940903: {
            if (input.isAtField(FieldNames.headIconFrameInfo)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(headIconFrameInfo);
                bitField0_ |= 0x00000200;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 732261012:
          case -623873107: {
            if (input.isAtField(FieldNames.challengeDetail)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(challengeDetail);
                bitField0_ |= 0x00000400;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 239490821:
          case 1126534912: {
            if (input.isAtField(FieldNames.displaySettings)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(displaySettings);
                bitField0_ |= 0x00000800;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 70690926: {
            if (input.isAtField(FieldNames.nickname)) {
              if (!input.trySkipNullValue()) {
                input.readString(nickname);
                bitField0_ |= 0x00001000;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1073584312: {
            if (input.isAtField(FieldNames.signature)) {
              if (!input.trySkipNullValue()) {
                input.readString(signature);
                bitField0_ |= 0x00002000;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -65942557:
          case 401620030: {
            if (input.isAtField(FieldNames.unkDetail)) {
              if (!input.trySkipNullValue()) {
                input.readString(unkDetail);
                bitField0_ |= 0x00004000;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 2117925881:
          case 245562311: {
            if (input.isAtField(FieldNames.displayAvatarList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(displayAvatarList);
                bitField0_ |= 0x00008000;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1802092768:
          case 1672618734: {
            if (input.isAtField(FieldNames.assistAvatarList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(assistAvatarList);
                bitField0_ |= 0x00010000;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

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

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

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

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

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

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

    private enum PlayerDetailInfoFactory implements MessageFactory<PlayerDetailInfo> {
      INSTANCE;

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

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

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

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

      static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level");

      static final FieldName platformType = FieldName.forField("platformType", "platform_type");

      static final FieldName isBanned = FieldName.forField("isBanned", "is_banned");

      static final FieldName showDisplayAvatars = FieldName.forField("showDisplayAvatars", "show_display_avatars");

      static final FieldName recordInfo = FieldName.forField("recordInfo", "record_info");

      static final FieldName playerOutfitData = FieldName.forField("playerOutfitData", "player_outfit_data");

      static final FieldName headIconFrameInfo = FieldName.forField("headIconFrameInfo", "head_icon_frame_info");

      static final FieldName challengeDetail = FieldName.forField("challengeDetail", "challenge_detail");

      static final FieldName displaySettings = FieldName.forField("displaySettings", "display_settings");

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

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

      static final FieldName unkDetail = FieldName.forField("unkDetail", "unk_detail");

      static final FieldName displayAvatarList = FieldName.forField("displayAvatarList", "display_avatar_list");

      static final FieldName assistAvatarList = FieldName.forField("assistAvatarList", "assist_avatar_list");
    }
  }
}
