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

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

    /**
     * <code>optional int64 last_active_time = 14;</code>
     */
    private long lastActiveTime;

    /**
     * <code>optional uint32 profile_picture = 1;</code>
     */
    private int profilePicture;

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

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

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

    /**
     * <code>optional .FriendOnlineStatus online_status = 7;</code>
     */
    private int onlineStatus;

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

    /**
     * <code>optional bool HACOPLBOGPN = 8;</code>
     */
    private boolean hACOPLBOGPN;

    /**
     * <code>optional .FriendAvatarInfo friend_avatar_info = 5;</code>
     */
    private final FriendAvatarInfoOuterClass.FriendAvatarInfo friendAvatarInfo = FriendAvatarInfoOuterClass.FriendAvatarInfo.newInstance();

    /**
     * <code>optional string BEBEMMGFELC = 4;</code>
     */
    private final Utf8String bEBEMMGFELC = Utf8String.newEmptyInstance();

    /**
     * <code>optional string FKNMNLICHIF = 9;</code>
     */
    private final Utf8String fKNMNLICHIF = Utf8String.newEmptyInstance();

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

    /**
     * <code>optional string LAAPGMDLJHL = 12;</code>
     */
    private final Utf8String lAAPGMDLJHL = Utf8String.newEmptyInstance();

    private SimpleInfo() {
    }

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

    /**
     * <code>optional int64 last_active_time = 14;</code>
     * @return whether the lastActiveTime field is set
     */
    public boolean hasLastActiveTime() {
      return (bitField0_ & 0x00000001) != 0;
    }

    /**
     * <code>optional int64 last_active_time = 14;</code>
     * @return this
     */
    public SimpleInfo clearLastActiveTime() {
      bitField0_ &= ~0x00000001;
      lastActiveTime = 0L;
      return this;
    }

    /**
     * <code>optional int64 last_active_time = 14;</code>
     * @return the lastActiveTime
     */
    public long getLastActiveTime() {
      return lastActiveTime;
    }

    /**
     * <code>optional int64 last_active_time = 14;</code>
     * @param value the lastActiveTime to set
     * @return this
     */
    public SimpleInfo setLastActiveTime(final long value) {
      bitField0_ |= 0x00000001;
      lastActiveTime = value;
      return this;
    }

    /**
     * <code>optional uint32 profile_picture = 1;</code>
     * @return whether the profilePicture field is set
     */
    public boolean hasProfilePicture() {
      return (bitField0_ & 0x00000002) != 0;
    }

    /**
     * <code>optional uint32 profile_picture = 1;</code>
     * @return this
     */
    public SimpleInfo clearProfilePicture() {
      bitField0_ &= ~0x00000002;
      profilePicture = 0;
      return this;
    }

    /**
     * <code>optional uint32 profile_picture = 1;</code>
     * @return the profilePicture
     */
    public int getProfilePicture() {
      return profilePicture;
    }

    /**
     * <code>optional uint32 profile_picture = 1;</code>
     * @param value the profilePicture to set
     * @return this
     */
    public SimpleInfo setProfilePicture(final int value) {
      bitField0_ |= 0x00000002;
      profilePicture = value;
      return this;
    }

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

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

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

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

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

    /**
     * <code>optional uint32 level = 3;</code>
     * @return this
     */
    public SimpleInfo clearLevel() {
      bitField0_ &= ~0x00000008;
      level = 0;
      return this;
    }

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

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

    /**
     * <code>optional uint32 KBLFCBBJKOA = 6;</code>
     * @return whether the kBLFCBBJKOA field is set
     */
    public boolean hasKBLFCBBJKOA() {
      return (bitField0_ & 0x00000010) != 0;
    }

    /**
     * <code>optional uint32 KBLFCBBJKOA = 6;</code>
     * @return this
     */
    public SimpleInfo clearKBLFCBBJKOA() {
      bitField0_ &= ~0x00000010;
      kBLFCBBJKOA = 0;
      return this;
    }

    /**
     * <code>optional uint32 KBLFCBBJKOA = 6;</code>
     * @return the kBLFCBBJKOA
     */
    public int getKBLFCBBJKOA() {
      return kBLFCBBJKOA;
    }

    /**
     * <code>optional uint32 KBLFCBBJKOA = 6;</code>
     * @param value the kBLFCBBJKOA to set
     * @return this
     */
    public SimpleInfo setKBLFCBBJKOA(final int value) {
      bitField0_ |= 0x00000010;
      kBLFCBBJKOA = value;
      return this;
    }

    /**
     * <code>optional .FriendOnlineStatus online_status = 7;</code>
     * @return whether the onlineStatus field is set
     */
    public boolean hasOnlineStatus() {
      return (bitField0_ & 0x00000020) != 0;
    }

    /**
     * <code>optional .FriendOnlineStatus online_status = 7;</code>
     * @return this
     */
    public SimpleInfo clearOnlineStatus() {
      bitField0_ &= ~0x00000020;
      onlineStatus = 0;
      return this;
    }

    /**
     * <code>optional .FriendOnlineStatus online_status = 7;</code>
     * @return the onlineStatus
     */
    public FriendOnlineStatusOuterClass.FriendOnlineStatus getOnlineStatus() {
      return FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(onlineStatus);
    }

    /**
     * Gets the value of the internal enum store. The result is
     * equivalent to {@link SimpleInfo#getOnlineStatus()}.getNumber().
     *
     * @return numeric wire representation
     */
    public int getOnlineStatusValue() {
      return onlineStatus;
    }

    /**
     * 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 FriendOnlineStatusOuterClass.FriendOnlineStatus}. Setting an invalid value
     * can cause {@link SimpleInfo#getOnlineStatus()} to return null
     *
     * @param value the numeric wire value to set
     * @return this
     */
    public SimpleInfo setOnlineStatusValue(final int value) {
      bitField0_ |= 0x00000020;
      onlineStatus = value;
      return this;
    }

    /**
     * <code>optional .FriendOnlineStatus online_status = 7;</code>
     * @param value the onlineStatus to set
     * @return this
     */
    public SimpleInfo setOnlineStatus(final FriendOnlineStatusOuterClass.FriendOnlineStatus value) {
      bitField0_ |= 0x00000020;
      onlineStatus = value.getNumber();
      return this;
    }

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

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

    /**
     * <code>optional .PlatformType platform_type = 11;</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 SimpleInfo#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 SimpleInfo#getPlatformType()} to return null
     *
     * @param value the numeric wire value to set
     * @return this
     */
    public SimpleInfo setPlatformTypeValue(final int value) {
      bitField0_ |= 0x00000040;
      platformType = value;
      return this;
    }

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

    /**
     * <code>optional bool HACOPLBOGPN = 8;</code>
     * @return whether the hACOPLBOGPN field is set
     */
    public boolean hasHACOPLBOGPN() {
      return (bitField0_ & 0x00000080) != 0;
    }

    /**
     * <code>optional bool HACOPLBOGPN = 8;</code>
     * @return this
     */
    public SimpleInfo clearHACOPLBOGPN() {
      bitField0_ &= ~0x00000080;
      hACOPLBOGPN = false;
      return this;
    }

    /**
     * <code>optional bool HACOPLBOGPN = 8;</code>
     * @return the hACOPLBOGPN
     */
    public boolean getHACOPLBOGPN() {
      return hACOPLBOGPN;
    }

    /**
     * <code>optional bool HACOPLBOGPN = 8;</code>
     * @param value the hACOPLBOGPN to set
     * @return this
     */
    public SimpleInfo setHACOPLBOGPN(final boolean value) {
      bitField0_ |= 0x00000080;
      hACOPLBOGPN = value;
      return this;
    }

    /**
     * <code>optional .FriendAvatarInfo friend_avatar_info = 5;</code>
     * @return whether the friendAvatarInfo field is set
     */
    public boolean hasFriendAvatarInfo() {
      return (bitField0_ & 0x00000100) != 0;
    }

    /**
     * <code>optional .FriendAvatarInfo friend_avatar_info = 5;</code>
     * @return this
     */
    public SimpleInfo clearFriendAvatarInfo() {
      bitField0_ &= ~0x00000100;
      friendAvatarInfo.clear();
      return this;
    }

    /**
     * <code>optional .FriendAvatarInfo friend_avatar_info = 5;</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 #getMutableFriendAvatarInfo()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public FriendAvatarInfoOuterClass.FriendAvatarInfo getFriendAvatarInfo() {
      return friendAvatarInfo;
    }

    /**
     * <code>optional .FriendAvatarInfo friend_avatar_info = 5;</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 FriendAvatarInfoOuterClass.FriendAvatarInfo getMutableFriendAvatarInfo() {
      bitField0_ |= 0x00000100;
      return friendAvatarInfo;
    }

    /**
     * <code>optional .FriendAvatarInfo friend_avatar_info = 5;</code>
     * @param value the friendAvatarInfo to set
     * @return this
     */
    public SimpleInfo setFriendAvatarInfo(final FriendAvatarInfoOuterClass.FriendAvatarInfo value) {
      bitField0_ |= 0x00000100;
      friendAvatarInfo.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string BEBEMMGFELC = 4;</code>
     * @return whether the bEBEMMGFELC field is set
     */
    public boolean hasBEBEMMGFELC() {
      return (bitField0_ & 0x00000200) != 0;
    }

    /**
     * <code>optional string BEBEMMGFELC = 4;</code>
     * @return this
     */
    public SimpleInfo clearBEBEMMGFELC() {
      bitField0_ &= ~0x00000200;
      bEBEMMGFELC.clear();
      return this;
    }

    /**
     * <code>optional string BEBEMMGFELC = 4;</code>
     * @return the bEBEMMGFELC
     */
    public String getBEBEMMGFELC() {
      return bEBEMMGFELC.getString();
    }

    /**
     * <code>optional string BEBEMMGFELC = 4;</code>
     * @return internal {@code Utf8String} representation of bEBEMMGFELC for reading
     */
    public Utf8String getBEBEMMGFELCBytes() {
      return this.bEBEMMGFELC;
    }

    /**
     * <code>optional string BEBEMMGFELC = 4;</code>
     * @return internal {@code Utf8String} representation of bEBEMMGFELC for modifications
     */
    public Utf8String getMutableBEBEMMGFELCBytes() {
      bitField0_ |= 0x00000200;
      return this.bEBEMMGFELC;
    }

    /**
     * <code>optional string BEBEMMGFELC = 4;</code>
     * @param value the bEBEMMGFELC to set
     * @return this
     */
    public SimpleInfo setBEBEMMGFELC(final CharSequence value) {
      bitField0_ |= 0x00000200;
      bEBEMMGFELC.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string BEBEMMGFELC = 4;</code>
     * @param value the bEBEMMGFELC to set
     * @return this
     */
    public SimpleInfo setBEBEMMGFELC(final Utf8String value) {
      bitField0_ |= 0x00000200;
      bEBEMMGFELC.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string FKNMNLICHIF = 9;</code>
     * @return whether the fKNMNLICHIF field is set
     */
    public boolean hasFKNMNLICHIF() {
      return (bitField0_ & 0x00000400) != 0;
    }

    /**
     * <code>optional string FKNMNLICHIF = 9;</code>
     * @return this
     */
    public SimpleInfo clearFKNMNLICHIF() {
      bitField0_ &= ~0x00000400;
      fKNMNLICHIF.clear();
      return this;
    }

    /**
     * <code>optional string FKNMNLICHIF = 9;</code>
     * @return the fKNMNLICHIF
     */
    public String getFKNMNLICHIF() {
      return fKNMNLICHIF.getString();
    }

    /**
     * <code>optional string FKNMNLICHIF = 9;</code>
     * @return internal {@code Utf8String} representation of fKNMNLICHIF for reading
     */
    public Utf8String getFKNMNLICHIFBytes() {
      return this.fKNMNLICHIF;
    }

    /**
     * <code>optional string FKNMNLICHIF = 9;</code>
     * @return internal {@code Utf8String} representation of fKNMNLICHIF for modifications
     */
    public Utf8String getMutableFKNMNLICHIFBytes() {
      bitField0_ |= 0x00000400;
      return this.fKNMNLICHIF;
    }

    /**
     * <code>optional string FKNMNLICHIF = 9;</code>
     * @param value the fKNMNLICHIF to set
     * @return this
     */
    public SimpleInfo setFKNMNLICHIF(final CharSequence value) {
      bitField0_ |= 0x00000400;
      fKNMNLICHIF.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string FKNMNLICHIF = 9;</code>
     * @param value the fKNMNLICHIF to set
     * @return this
     */
    public SimpleInfo setFKNMNLICHIF(final Utf8String value) {
      bitField0_ |= 0x00000400;
      fKNMNLICHIF.copyFrom(value);
      return this;
    }

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

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

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

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

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

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

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

    /**
     * <code>optional string LAAPGMDLJHL = 12;</code>
     * @return whether the lAAPGMDLJHL field is set
     */
    public boolean hasLAAPGMDLJHL() {
      return (bitField0_ & 0x00001000) != 0;
    }

    /**
     * <code>optional string LAAPGMDLJHL = 12;</code>
     * @return this
     */
    public SimpleInfo clearLAAPGMDLJHL() {
      bitField0_ &= ~0x00001000;
      lAAPGMDLJHL.clear();
      return this;
    }

    /**
     * <code>optional string LAAPGMDLJHL = 12;</code>
     * @return the lAAPGMDLJHL
     */
    public String getLAAPGMDLJHL() {
      return lAAPGMDLJHL.getString();
    }

    /**
     * <code>optional string LAAPGMDLJHL = 12;</code>
     * @return internal {@code Utf8String} representation of lAAPGMDLJHL for reading
     */
    public Utf8String getLAAPGMDLJHLBytes() {
      return this.lAAPGMDLJHL;
    }

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

    /**
     * <code>optional string LAAPGMDLJHL = 12;</code>
     * @param value the lAAPGMDLJHL to set
     * @return this
     */
    public SimpleInfo setLAAPGMDLJHL(final CharSequence value) {
      bitField0_ |= 0x00001000;
      lAAPGMDLJHL.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string LAAPGMDLJHL = 12;</code>
     * @param value the lAAPGMDLJHL to set
     * @return this
     */
    public SimpleInfo setLAAPGMDLJHL(final Utf8String value) {
      bitField0_ |= 0x00001000;
      lAAPGMDLJHL.copyFrom(value);
      return this;
    }

    @Override
    public SimpleInfo copyFrom(final SimpleInfo other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        lastActiveTime = other.lastActiveTime;
        profilePicture = other.profilePicture;
        uid = other.uid;
        level = other.level;
        kBLFCBBJKOA = other.kBLFCBBJKOA;
        onlineStatus = other.onlineStatus;
        platformType = other.platformType;
        hACOPLBOGPN = other.hACOPLBOGPN;
        friendAvatarInfo.copyFrom(other.friendAvatarInfo);
        bEBEMMGFELC.copyFrom(other.bEBEMMGFELC);
        fKNMNLICHIF.copyFrom(other.fKNMNLICHIF);
        nickname.copyFrom(other.nickname);
        lAAPGMDLJHL.copyFrom(other.lAAPGMDLJHL);
      }
      return this;
    }

    @Override
    public SimpleInfo mergeFrom(final SimpleInfo other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasLastActiveTime()) {
        setLastActiveTime(other.lastActiveTime);
      }
      if (other.hasProfilePicture()) {
        setProfilePicture(other.profilePicture);
      }
      if (other.hasUid()) {
        setUid(other.uid);
      }
      if (other.hasLevel()) {
        setLevel(other.level);
      }
      if (other.hasKBLFCBBJKOA()) {
        setKBLFCBBJKOA(other.kBLFCBBJKOA);
      }
      if (other.hasOnlineStatus()) {
        setOnlineStatusValue(other.onlineStatus);
      }
      if (other.hasPlatformType()) {
        setPlatformTypeValue(other.platformType);
      }
      if (other.hasHACOPLBOGPN()) {
        setHACOPLBOGPN(other.hACOPLBOGPN);
      }
      if (other.hasFriendAvatarInfo()) {
        getMutableFriendAvatarInfo().mergeFrom(other.friendAvatarInfo);
      }
      if (other.hasBEBEMMGFELC()) {
        getMutableBEBEMMGFELCBytes().copyFrom(other.bEBEMMGFELC);
      }
      if (other.hasFKNMNLICHIF()) {
        getMutableFKNMNLICHIFBytes().copyFrom(other.fKNMNLICHIF);
      }
      if (other.hasNickname()) {
        getMutableNicknameBytes().copyFrom(other.nickname);
      }
      if (other.hasLAAPGMDLJHL()) {
        getMutableLAAPGMDLJHLBytes().copyFrom(other.lAAPGMDLJHL);
      }
      return this;
    }

    @Override
    public SimpleInfo clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      lastActiveTime = 0L;
      profilePicture = 0;
      uid = 0;
      level = 0;
      kBLFCBBJKOA = 0;
      onlineStatus = 0;
      platformType = 0;
      hACOPLBOGPN = false;
      friendAvatarInfo.clear();
      bEBEMMGFELC.clear();
      fKNMNLICHIF.clear();
      nickname.clear();
      lAAPGMDLJHL.clear();
      return this;
    }

    @Override
    public SimpleInfo clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      friendAvatarInfo.clearQuick();
      bEBEMMGFELC.clear();
      fKNMNLICHIF.clear();
      nickname.clear();
      lAAPGMDLJHL.clear();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof SimpleInfo)) {
        return false;
      }
      SimpleInfo other = (SimpleInfo) o;
      return bitField0_ == other.bitField0_
        && (!hasLastActiveTime() || lastActiveTime == other.lastActiveTime)
        && (!hasProfilePicture() || profilePicture == other.profilePicture)
        && (!hasUid() || uid == other.uid)
        && (!hasLevel() || level == other.level)
        && (!hasKBLFCBBJKOA() || kBLFCBBJKOA == other.kBLFCBBJKOA)
        && (!hasOnlineStatus() || onlineStatus == other.onlineStatus)
        && (!hasPlatformType() || platformType == other.platformType)
        && (!hasHACOPLBOGPN() || hACOPLBOGPN == other.hACOPLBOGPN)
        && (!hasFriendAvatarInfo() || friendAvatarInfo.equals(other.friendAvatarInfo))
        && (!hasBEBEMMGFELC() || bEBEMMGFELC.equals(other.bEBEMMGFELC))
        && (!hasFKNMNLICHIF() || fKNMNLICHIF.equals(other.fKNMNLICHIF))
        && (!hasNickname() || nickname.equals(other.nickname))
        && (!hasLAAPGMDLJHL() || lAAPGMDLJHL.equals(other.lAAPGMDLJHL));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 112);
        output.writeInt64NoTag(lastActiveTime);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawByte((byte) 8);
        output.writeUInt32NoTag(profilePicture);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRawByte((byte) 16);
        output.writeUInt32NoTag(uid);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeRawByte((byte) 24);
        output.writeUInt32NoTag(level);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeRawByte((byte) 48);
        output.writeUInt32NoTag(kBLFCBBJKOA);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeRawByte((byte) 56);
        output.writeEnumNoTag(onlineStatus);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeRawByte((byte) 88);
        output.writeEnumNoTag(platformType);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        output.writeRawByte((byte) 64);
        output.writeBoolNoTag(hACOPLBOGPN);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        output.writeRawByte((byte) 42);
        output.writeMessageNoTag(friendAvatarInfo);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        output.writeRawByte((byte) 34);
        output.writeStringNoTag(bEBEMMGFELC);
      }
      if ((bitField0_ & 0x00000400) != 0) {
        output.writeRawByte((byte) 74);
        output.writeStringNoTag(fKNMNLICHIF);
      }
      if ((bitField0_ & 0x00000800) != 0) {
        output.writeRawByte((byte) 82);
        output.writeStringNoTag(nickname);
      }
      if ((bitField0_ & 0x00001000) != 0) {
        output.writeRawByte((byte) 98);
        output.writeStringNoTag(lAAPGMDLJHL);
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeInt64SizeNoTag(lastActiveTime);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(profilePicture);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(uid);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(kBLFCBBJKOA);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        size += 1 + ProtoSink.computeEnumSizeNoTag(onlineStatus);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        size += 1 + ProtoSink.computeEnumSizeNoTag(platformType);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        size += 2;
      }
      if ((bitField0_ & 0x00000100) != 0) {
        size += 1 + ProtoSink.computeMessageSizeNoTag(friendAvatarInfo);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        size += 1 + ProtoSink.computeStringSizeNoTag(bEBEMMGFELC);
      }
      if ((bitField0_ & 0x00000400) != 0) {
        size += 1 + ProtoSink.computeStringSizeNoTag(fKNMNLICHIF);
      }
      if ((bitField0_ & 0x00000800) != 0) {
        size += 1 + ProtoSink.computeStringSizeNoTag(nickname);
      }
      if ((bitField0_ & 0x00001000) != 0) {
        size += 1 + ProtoSink.computeStringSizeNoTag(lAAPGMDLJHL);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public SimpleInfo mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 112: {
            // lastActiveTime
            lastActiveTime = input.readInt64();
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 8) {
              break;
            }
          }
          case 8: {
            // profilePicture
            profilePicture = input.readUInt32();
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 16) {
              break;
            }
          }
          case 16: {
            // uid
            uid = input.readUInt32();
            bitField0_ |= 0x00000004;
            tag = input.readTag();
            if (tag != 24) {
              break;
            }
          }
          case 24: {
            // level
            level = input.readUInt32();
            bitField0_ |= 0x00000008;
            tag = input.readTag();
            if (tag != 48) {
              break;
            }
          }
          case 48: {
            // kBLFCBBJKOA
            kBLFCBBJKOA = input.readUInt32();
            bitField0_ |= 0x00000010;
            tag = input.readTag();
            if (tag != 56) {
              break;
            }
          }
          case 56: {
            // onlineStatus
            final int value = input.readInt32();
            if (FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(value) != null) {
              onlineStatus = value;
              bitField0_ |= 0x00000020;
            }
            tag = input.readTag();
            if (tag != 88) {
              break;
            }
          }
          case 88: {
            // platformType
            final int value = input.readInt32();
            if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) {
              platformType = value;
              bitField0_ |= 0x00000040;
            }
            tag = input.readTag();
            if (tag != 64) {
              break;
            }
          }
          case 64: {
            // hACOPLBOGPN
            hACOPLBOGPN = input.readBool();
            bitField0_ |= 0x00000080;
            tag = input.readTag();
            if (tag != 42) {
              break;
            }
          }
          case 42: {
            // friendAvatarInfo
            input.readMessage(friendAvatarInfo);
            bitField0_ |= 0x00000100;
            tag = input.readTag();
            if (tag != 34) {
              break;
            }
          }
          case 34: {
            // bEBEMMGFELC
            input.readString(bEBEMMGFELC);
            bitField0_ |= 0x00000200;
            tag = input.readTag();
            if (tag != 74) {
              break;
            }
          }
          case 74: {
            // fKNMNLICHIF
            input.readString(fKNMNLICHIF);
            bitField0_ |= 0x00000400;
            tag = input.readTag();
            if (tag != 82) {
              break;
            }
          }
          case 82: {
            // nickname
            input.readString(nickname);
            bitField0_ |= 0x00000800;
            tag = input.readTag();
            if (tag != 98) {
              break;
            }
          }
          case 98: {
            // lAAPGMDLJHL
            input.readString(lAAPGMDLJHL);
            bitField0_ |= 0x00001000;
            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.writeInt64(FieldNames.lastActiveTime, lastActiveTime);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeUInt32(FieldNames.profilePicture, profilePicture);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeUInt32(FieldNames.uid, uid);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeUInt32(FieldNames.level, level);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeUInt32(FieldNames.kBLFCBBJKOA, kBLFCBBJKOA);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeEnum(FieldNames.onlineStatus, onlineStatus, FriendOnlineStatusOuterClass.FriendOnlineStatus.converter());
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter());
      }
      if ((bitField0_ & 0x00000080) != 0) {
        output.writeBool(FieldNames.hACOPLBOGPN, hACOPLBOGPN);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        output.writeMessage(FieldNames.friendAvatarInfo, friendAvatarInfo);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        output.writeString(FieldNames.bEBEMMGFELC, bEBEMMGFELC);
      }
      if ((bitField0_ & 0x00000400) != 0) {
        output.writeString(FieldNames.fKNMNLICHIF, fKNMNLICHIF);
      }
      if ((bitField0_ & 0x00000800) != 0) {
        output.writeString(FieldNames.nickname, nickname);
      }
      if ((bitField0_ & 0x00001000) != 0) {
        output.writeString(FieldNames.lAAPGMDLJHL, lAAPGMDLJHL);
      }
      output.endObject();
    }

    @Override
    public SimpleInfo mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case -2041905623:
          case 1542438973: {
            if (input.isAtField(FieldNames.lastActiveTime)) {
              if (!input.trySkipNullValue()) {
                lastActiveTime = input.readInt64();
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1406866667:
          case 1782764648: {
            if (input.isAtField(FieldNames.profilePicture)) {
              if (!input.trySkipNullValue()) {
                profilePicture = 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 102865796: {
            if (input.isAtField(FieldNames.level)) {
              if (!input.trySkipNullValue()) {
                level = input.readUInt32();
                bitField0_ |= 0x00000008;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1383658213: {
            if (input.isAtField(FieldNames.kBLFCBBJKOA)) {
              if (!input.trySkipNullValue()) {
                kBLFCBBJKOA = input.readUInt32();
                bitField0_ |= 0x00000010;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1159866405:
          case -650386594: {
            if (input.isAtField(FieldNames.onlineStatus)) {
              if (!input.trySkipNullValue()) {
                final FriendOnlineStatusOuterClass.FriendOnlineStatus value = input.readEnum(FriendOnlineStatusOuterClass.FriendOnlineStatus.converter());
                if (value != null) {
                  onlineStatus = value.getNumber();
                  bitField0_ |= 0x00000020;
                } else {
                  input.skipUnknownEnumValue();
                }
              }
            } 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_ |= 0x00000040;
                } else {
                  input.skipUnknownEnumValue();
                }
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -792214057: {
            if (input.isAtField(FieldNames.hACOPLBOGPN)) {
              if (!input.trySkipNullValue()) {
                hACOPLBOGPN = input.readBool();
                bitField0_ |= 0x00000080;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 2012020453:
          case 1631238067: {
            if (input.isAtField(FieldNames.friendAvatarInfo)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(friendAvatarInfo);
                bitField0_ |= 0x00000100;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -456808681: {
            if (input.isAtField(FieldNames.bEBEMMGFELC)) {
              if (!input.trySkipNullValue()) {
                input.readString(bEBEMMGFELC);
                bitField0_ |= 0x00000200;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1469838153: {
            if (input.isAtField(FieldNames.fKNMNLICHIF)) {
              if (!input.trySkipNullValue()) {
                input.readString(fKNMNLICHIF);
                bitField0_ |= 0x00000400;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 70690926: {
            if (input.isAtField(FieldNames.nickname)) {
              if (!input.trySkipNullValue()) {
                input.readString(nickname);
                bitField0_ |= 0x00000800;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1989509316: {
            if (input.isAtField(FieldNames.lAAPGMDLJHL)) {
              if (!input.trySkipNullValue()) {
                input.readString(lAAPGMDLJHL);
                bitField0_ |= 0x00001000;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

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

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

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

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

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

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

    private enum SimpleInfoFactory implements MessageFactory<SimpleInfo> {
      INSTANCE;

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

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

      static final FieldName profilePicture = FieldName.forField("profilePicture", "profile_picture");

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

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

      static final FieldName kBLFCBBJKOA = FieldName.forField("KBLFCBBJKOA");

      static final FieldName onlineStatus = FieldName.forField("onlineStatus", "online_status");

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

      static final FieldName hACOPLBOGPN = FieldName.forField("HACOPLBOGPN");

      static final FieldName friendAvatarInfo = FieldName.forField("friendAvatarInfo", "friend_avatar_info");

      static final FieldName bEBEMMGFELC = FieldName.forField("BEBEMMGFELC");

      static final FieldName fKNMNLICHIF = FieldName.forField("FKNMNLICHIF");

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

      static final FieldName lAAPGMDLJHL = FieldName.forField("LAAPGMDLJHL");
    }
  }
}
