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

    /**
     * <code>optional uint64 login_random = 10;</code>
     */
    private long loginRandom;

    /**
     * <code>optional uint64 server_timestamp_ms = 12;</code>
     */
    private long serverTimestampMs;

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

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

    /**
     * <code>optional sint32 cur_timezone = 4;</code>
     */
    private int curTimezone;

    /**
     * <code>optional bool GIALIFNNOPN = 7;</code>
     */
    private boolean gIALIFNNOPN;

    /**
     * <code>optional bool HNAGOHGGJDH = 13;</code>
     */
    private boolean hNAGOHGGJDH;

    /**
     * <code>optional .PlayerBasicInfo basic_info = 11;</code>
     */
    private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance();

    /**
     * <code>optional string DBOOCPHLJJE = 2;</code>
     */
    private final Utf8String dBOOCPHLJJE = Utf8String.newEmptyInstance();

    /**
     * <code>optional string JIDCKGFNDNP = 3;</code>
     */
    private final Utf8String jIDCKGFNDNP = Utf8String.newEmptyInstance();

    private PlayerLoginScRsp() {
    }

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

    /**
     * <code>optional uint64 login_random = 10;</code>
     * @return whether the loginRandom field is set
     */
    public boolean hasLoginRandom() {
      return (bitField0_ & 0x00000001) != 0;
    }

    /**
     * <code>optional uint64 login_random = 10;</code>
     * @return this
     */
    public PlayerLoginScRsp clearLoginRandom() {
      bitField0_ &= ~0x00000001;
      loginRandom = 0L;
      return this;
    }

    /**
     * <code>optional uint64 login_random = 10;</code>
     * @return the loginRandom
     */
    public long getLoginRandom() {
      return loginRandom;
    }

    /**
     * <code>optional uint64 login_random = 10;</code>
     * @param value the loginRandom to set
     * @return this
     */
    public PlayerLoginScRsp setLoginRandom(final long value) {
      bitField0_ |= 0x00000001;
      loginRandom = value;
      return this;
    }

    /**
     * <code>optional uint64 server_timestamp_ms = 12;</code>
     * @return whether the serverTimestampMs field is set
     */
    public boolean hasServerTimestampMs() {
      return (bitField0_ & 0x00000002) != 0;
    }

    /**
     * <code>optional uint64 server_timestamp_ms = 12;</code>
     * @return this
     */
    public PlayerLoginScRsp clearServerTimestampMs() {
      bitField0_ &= ~0x00000002;
      serverTimestampMs = 0L;
      return this;
    }

    /**
     * <code>optional uint64 server_timestamp_ms = 12;</code>
     * @return the serverTimestampMs
     */
    public long getServerTimestampMs() {
      return serverTimestampMs;
    }

    /**
     * <code>optional uint64 server_timestamp_ms = 12;</code>
     * @param value the serverTimestampMs to set
     * @return this
     */
    public PlayerLoginScRsp setServerTimestampMs(final long value) {
      bitField0_ |= 0x00000002;
      serverTimestampMs = value;
      return this;
    }

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

    /**
     * <code>optional uint32 stamina = 8;</code>
     * @return this
     */
    public PlayerLoginScRsp clearStamina() {
      bitField0_ &= ~0x00000004;
      stamina = 0;
      return this;
    }

    /**
     * <code>optional uint32 stamina = 8;</code>
     * @return the stamina
     */
    public int getStamina() {
      return stamina;
    }

    /**
     * <code>optional uint32 stamina = 8;</code>
     * @param value the stamina to set
     * @return this
     */
    public PlayerLoginScRsp setStamina(final int value) {
      bitField0_ |= 0x00000004;
      stamina = value;
      return this;
    }

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

    /**
     * <code>optional uint32 retcode = 15;</code>
     * @return this
     */
    public PlayerLoginScRsp clearRetcode() {
      bitField0_ &= ~0x00000008;
      retcode = 0;
      return this;
    }

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

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

    /**
     * <code>optional sint32 cur_timezone = 4;</code>
     * @return whether the curTimezone field is set
     */
    public boolean hasCurTimezone() {
      return (bitField0_ & 0x00000010) != 0;
    }

    /**
     * <code>optional sint32 cur_timezone = 4;</code>
     * @return this
     */
    public PlayerLoginScRsp clearCurTimezone() {
      bitField0_ &= ~0x00000010;
      curTimezone = 0;
      return this;
    }

    /**
     * <code>optional sint32 cur_timezone = 4;</code>
     * @return the curTimezone
     */
    public int getCurTimezone() {
      return curTimezone;
    }

    /**
     * <code>optional sint32 cur_timezone = 4;</code>
     * @param value the curTimezone to set
     * @return this
     */
    public PlayerLoginScRsp setCurTimezone(final int value) {
      bitField0_ |= 0x00000010;
      curTimezone = value;
      return this;
    }

    /**
     * <code>optional bool GIALIFNNOPN = 7;</code>
     * @return whether the gIALIFNNOPN field is set
     */
    public boolean hasGIALIFNNOPN() {
      return (bitField0_ & 0x00000020) != 0;
    }

    /**
     * <code>optional bool GIALIFNNOPN = 7;</code>
     * @return this
     */
    public PlayerLoginScRsp clearGIALIFNNOPN() {
      bitField0_ &= ~0x00000020;
      gIALIFNNOPN = false;
      return this;
    }

    /**
     * <code>optional bool GIALIFNNOPN = 7;</code>
     * @return the gIALIFNNOPN
     */
    public boolean getGIALIFNNOPN() {
      return gIALIFNNOPN;
    }

    /**
     * <code>optional bool GIALIFNNOPN = 7;</code>
     * @param value the gIALIFNNOPN to set
     * @return this
     */
    public PlayerLoginScRsp setGIALIFNNOPN(final boolean value) {
      bitField0_ |= 0x00000020;
      gIALIFNNOPN = value;
      return this;
    }

    /**
     * <code>optional bool HNAGOHGGJDH = 13;</code>
     * @return whether the hNAGOHGGJDH field is set
     */
    public boolean hasHNAGOHGGJDH() {
      return (bitField0_ & 0x00000040) != 0;
    }

    /**
     * <code>optional bool HNAGOHGGJDH = 13;</code>
     * @return this
     */
    public PlayerLoginScRsp clearHNAGOHGGJDH() {
      bitField0_ &= ~0x00000040;
      hNAGOHGGJDH = false;
      return this;
    }

    /**
     * <code>optional bool HNAGOHGGJDH = 13;</code>
     * @return the hNAGOHGGJDH
     */
    public boolean getHNAGOHGGJDH() {
      return hNAGOHGGJDH;
    }

    /**
     * <code>optional bool HNAGOHGGJDH = 13;</code>
     * @param value the hNAGOHGGJDH to set
     * @return this
     */
    public PlayerLoginScRsp setHNAGOHGGJDH(final boolean value) {
      bitField0_ |= 0x00000040;
      hNAGOHGGJDH = value;
      return this;
    }

    /**
     * <code>optional .PlayerBasicInfo basic_info = 11;</code>
     * @return whether the basicInfo field is set
     */
    public boolean hasBasicInfo() {
      return (bitField0_ & 0x00000080) != 0;
    }

    /**
     * <code>optional .PlayerBasicInfo basic_info = 11;</code>
     * @return this
     */
    public PlayerLoginScRsp clearBasicInfo() {
      bitField0_ &= ~0x00000080;
      basicInfo.clear();
      return this;
    }

    /**
     * <code>optional .PlayerBasicInfo basic_info = 11;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableBasicInfo()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public PlayerBasicInfoOuterClass.PlayerBasicInfo getBasicInfo() {
      return basicInfo;
    }

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

    /**
     * <code>optional .PlayerBasicInfo basic_info = 11;</code>
     * @param value the basicInfo to set
     * @return this
     */
    public PlayerLoginScRsp setBasicInfo(final PlayerBasicInfoOuterClass.PlayerBasicInfo value) {
      bitField0_ |= 0x00000080;
      basicInfo.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string DBOOCPHLJJE = 2;</code>
     * @return whether the dBOOCPHLJJE field is set
     */
    public boolean hasDBOOCPHLJJE() {
      return (bitField0_ & 0x00000100) != 0;
    }

    /**
     * <code>optional string DBOOCPHLJJE = 2;</code>
     * @return this
     */
    public PlayerLoginScRsp clearDBOOCPHLJJE() {
      bitField0_ &= ~0x00000100;
      dBOOCPHLJJE.clear();
      return this;
    }

    /**
     * <code>optional string DBOOCPHLJJE = 2;</code>
     * @return the dBOOCPHLJJE
     */
    public String getDBOOCPHLJJE() {
      return dBOOCPHLJJE.getString();
    }

    /**
     * <code>optional string DBOOCPHLJJE = 2;</code>
     * @return internal {@code Utf8String} representation of dBOOCPHLJJE for reading
     */
    public Utf8String getDBOOCPHLJJEBytes() {
      return this.dBOOCPHLJJE;
    }

    /**
     * <code>optional string DBOOCPHLJJE = 2;</code>
     * @return internal {@code Utf8String} representation of dBOOCPHLJJE for modifications
     */
    public Utf8String getMutableDBOOCPHLJJEBytes() {
      bitField0_ |= 0x00000100;
      return this.dBOOCPHLJJE;
    }

    /**
     * <code>optional string DBOOCPHLJJE = 2;</code>
     * @param value the dBOOCPHLJJE to set
     * @return this
     */
    public PlayerLoginScRsp setDBOOCPHLJJE(final CharSequence value) {
      bitField0_ |= 0x00000100;
      dBOOCPHLJJE.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string DBOOCPHLJJE = 2;</code>
     * @param value the dBOOCPHLJJE to set
     * @return this
     */
    public PlayerLoginScRsp setDBOOCPHLJJE(final Utf8String value) {
      bitField0_ |= 0x00000100;
      dBOOCPHLJJE.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string JIDCKGFNDNP = 3;</code>
     * @return whether the jIDCKGFNDNP field is set
     */
    public boolean hasJIDCKGFNDNP() {
      return (bitField0_ & 0x00000200) != 0;
    }

    /**
     * <code>optional string JIDCKGFNDNP = 3;</code>
     * @return this
     */
    public PlayerLoginScRsp clearJIDCKGFNDNP() {
      bitField0_ &= ~0x00000200;
      jIDCKGFNDNP.clear();
      return this;
    }

    /**
     * <code>optional string JIDCKGFNDNP = 3;</code>
     * @return the jIDCKGFNDNP
     */
    public String getJIDCKGFNDNP() {
      return jIDCKGFNDNP.getString();
    }

    /**
     * <code>optional string JIDCKGFNDNP = 3;</code>
     * @return internal {@code Utf8String} representation of jIDCKGFNDNP for reading
     */
    public Utf8String getJIDCKGFNDNPBytes() {
      return this.jIDCKGFNDNP;
    }

    /**
     * <code>optional string JIDCKGFNDNP = 3;</code>
     * @return internal {@code Utf8String} representation of jIDCKGFNDNP for modifications
     */
    public Utf8String getMutableJIDCKGFNDNPBytes() {
      bitField0_ |= 0x00000200;
      return this.jIDCKGFNDNP;
    }

    /**
     * <code>optional string JIDCKGFNDNP = 3;</code>
     * @param value the jIDCKGFNDNP to set
     * @return this
     */
    public PlayerLoginScRsp setJIDCKGFNDNP(final CharSequence value) {
      bitField0_ |= 0x00000200;
      jIDCKGFNDNP.copyFrom(value);
      return this;
    }

    /**
     * <code>optional string JIDCKGFNDNP = 3;</code>
     * @param value the jIDCKGFNDNP to set
     * @return this
     */
    public PlayerLoginScRsp setJIDCKGFNDNP(final Utf8String value) {
      bitField0_ |= 0x00000200;
      jIDCKGFNDNP.copyFrom(value);
      return this;
    }

    @Override
    public PlayerLoginScRsp copyFrom(final PlayerLoginScRsp other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        loginRandom = other.loginRandom;
        serverTimestampMs = other.serverTimestampMs;
        stamina = other.stamina;
        retcode = other.retcode;
        curTimezone = other.curTimezone;
        gIALIFNNOPN = other.gIALIFNNOPN;
        hNAGOHGGJDH = other.hNAGOHGGJDH;
        basicInfo.copyFrom(other.basicInfo);
        dBOOCPHLJJE.copyFrom(other.dBOOCPHLJJE);
        jIDCKGFNDNP.copyFrom(other.jIDCKGFNDNP);
      }
      return this;
    }

    @Override
    public PlayerLoginScRsp mergeFrom(final PlayerLoginScRsp other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasLoginRandom()) {
        setLoginRandom(other.loginRandom);
      }
      if (other.hasServerTimestampMs()) {
        setServerTimestampMs(other.serverTimestampMs);
      }
      if (other.hasStamina()) {
        setStamina(other.stamina);
      }
      if (other.hasRetcode()) {
        setRetcode(other.retcode);
      }
      if (other.hasCurTimezone()) {
        setCurTimezone(other.curTimezone);
      }
      if (other.hasGIALIFNNOPN()) {
        setGIALIFNNOPN(other.gIALIFNNOPN);
      }
      if (other.hasHNAGOHGGJDH()) {
        setHNAGOHGGJDH(other.hNAGOHGGJDH);
      }
      if (other.hasBasicInfo()) {
        getMutableBasicInfo().mergeFrom(other.basicInfo);
      }
      if (other.hasDBOOCPHLJJE()) {
        getMutableDBOOCPHLJJEBytes().copyFrom(other.dBOOCPHLJJE);
      }
      if (other.hasJIDCKGFNDNP()) {
        getMutableJIDCKGFNDNPBytes().copyFrom(other.jIDCKGFNDNP);
      }
      return this;
    }

    @Override
    public PlayerLoginScRsp clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      loginRandom = 0L;
      serverTimestampMs = 0L;
      stamina = 0;
      retcode = 0;
      curTimezone = 0;
      gIALIFNNOPN = false;
      hNAGOHGGJDH = false;
      basicInfo.clear();
      dBOOCPHLJJE.clear();
      jIDCKGFNDNP.clear();
      return this;
    }

    @Override
    public PlayerLoginScRsp clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      basicInfo.clearQuick();
      dBOOCPHLJJE.clear();
      jIDCKGFNDNP.clear();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof PlayerLoginScRsp)) {
        return false;
      }
      PlayerLoginScRsp other = (PlayerLoginScRsp) o;
      return bitField0_ == other.bitField0_
        && (!hasLoginRandom() || loginRandom == other.loginRandom)
        && (!hasServerTimestampMs() || serverTimestampMs == other.serverTimestampMs)
        && (!hasStamina() || stamina == other.stamina)
        && (!hasRetcode() || retcode == other.retcode)
        && (!hasCurTimezone() || curTimezone == other.curTimezone)
        && (!hasGIALIFNNOPN() || gIALIFNNOPN == other.gIALIFNNOPN)
        && (!hasHNAGOHGGJDH() || hNAGOHGGJDH == other.hNAGOHGGJDH)
        && (!hasBasicInfo() || basicInfo.equals(other.basicInfo))
        && (!hasDBOOCPHLJJE() || dBOOCPHLJJE.equals(other.dBOOCPHLJJE))
        && (!hasJIDCKGFNDNP() || jIDCKGFNDNP.equals(other.jIDCKGFNDNP));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 80);
        output.writeUInt64NoTag(loginRandom);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawByte((byte) 96);
        output.writeUInt64NoTag(serverTimestampMs);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRawByte((byte) 64);
        output.writeUInt32NoTag(stamina);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeRawByte((byte) 120);
        output.writeUInt32NoTag(retcode);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeRawByte((byte) 32);
        output.writeSInt32NoTag(curTimezone);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeRawByte((byte) 56);
        output.writeBoolNoTag(gIALIFNNOPN);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeRawByte((byte) 104);
        output.writeBoolNoTag(hNAGOHGGJDH);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        output.writeRawByte((byte) 90);
        output.writeMessageNoTag(basicInfo);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        output.writeRawByte((byte) 18);
        output.writeStringNoTag(dBOOCPHLJJE);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        output.writeRawByte((byte) 26);
        output.writeStringNoTag(jIDCKGFNDNP);
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeUInt64SizeNoTag(loginRandom);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 1 + ProtoSink.computeUInt64SizeNoTag(serverTimestampMs);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        size += 1 + ProtoSink.computeSInt32SizeNoTag(curTimezone);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        size += 2;
      }
      if ((bitField0_ & 0x00000040) != 0) {
        size += 2;
      }
      if ((bitField0_ & 0x00000080) != 0) {
        size += 1 + ProtoSink.computeMessageSizeNoTag(basicInfo);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        size += 1 + ProtoSink.computeStringSizeNoTag(dBOOCPHLJJE);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        size += 1 + ProtoSink.computeStringSizeNoTag(jIDCKGFNDNP);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public PlayerLoginScRsp mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 80: {
            // loginRandom
            loginRandom = input.readUInt64();
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 96) {
              break;
            }
          }
          case 96: {
            // serverTimestampMs
            serverTimestampMs = input.readUInt64();
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 64) {
              break;
            }
          }
          case 64: {
            // stamina
            stamina = input.readUInt32();
            bitField0_ |= 0x00000004;
            tag = input.readTag();
            if (tag != 120) {
              break;
            }
          }
          case 120: {
            // retcode
            retcode = input.readUInt32();
            bitField0_ |= 0x00000008;
            tag = input.readTag();
            if (tag != 32) {
              break;
            }
          }
          case 32: {
            // curTimezone
            curTimezone = input.readSInt32();
            bitField0_ |= 0x00000010;
            tag = input.readTag();
            if (tag != 56) {
              break;
            }
          }
          case 56: {
            // gIALIFNNOPN
            gIALIFNNOPN = input.readBool();
            bitField0_ |= 0x00000020;
            tag = input.readTag();
            if (tag != 104) {
              break;
            }
          }
          case 104: {
            // hNAGOHGGJDH
            hNAGOHGGJDH = input.readBool();
            bitField0_ |= 0x00000040;
            tag = input.readTag();
            if (tag != 90) {
              break;
            }
          }
          case 90: {
            // basicInfo
            input.readMessage(basicInfo);
            bitField0_ |= 0x00000080;
            tag = input.readTag();
            if (tag != 18) {
              break;
            }
          }
          case 18: {
            // dBOOCPHLJJE
            input.readString(dBOOCPHLJJE);
            bitField0_ |= 0x00000100;
            tag = input.readTag();
            if (tag != 26) {
              break;
            }
          }
          case 26: {
            // jIDCKGFNDNP
            input.readString(jIDCKGFNDNP);
            bitField0_ |= 0x00000200;
            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.writeUInt64(FieldNames.loginRandom, loginRandom);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeUInt64(FieldNames.serverTimestampMs, serverTimestampMs);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeUInt32(FieldNames.stamina, stamina);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeUInt32(FieldNames.retcode, retcode);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeSInt32(FieldNames.curTimezone, curTimezone);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeBool(FieldNames.gIALIFNNOPN, gIALIFNNOPN);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeBool(FieldNames.hNAGOHGGJDH, hNAGOHGGJDH);
      }
      if ((bitField0_ & 0x00000080) != 0) {
        output.writeMessage(FieldNames.basicInfo, basicInfo);
      }
      if ((bitField0_ & 0x00000100) != 0) {
        output.writeString(FieldNames.dBOOCPHLJJE, dBOOCPHLJJE);
      }
      if ((bitField0_ & 0x00000200) != 0) {
        output.writeString(FieldNames.jIDCKGFNDNP, jIDCKGFNDNP);
      }
      output.endObject();
    }

    @Override
    public PlayerLoginScRsp mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case 1268567436:
          case -201491879: {
            if (input.isAtField(FieldNames.loginRandom)) {
              if (!input.trySkipNullValue()) {
                loginRandom = input.readUInt64();
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1700420071:
          case -1078785813: {
            if (input.isAtField(FieldNames.serverTimestampMs)) {
              if (!input.trySkipNullValue()) {
                serverTimestampMs = input.readUInt64();
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1897344401: {
            if (input.isAtField(FieldNames.stamina)) {
              if (!input.trySkipNullValue()) {
                stamina = input.readUInt32();
                bitField0_ |= 0x00000004;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1097936398: {
            if (input.isAtField(FieldNames.retcode)) {
              if (!input.trySkipNullValue()) {
                retcode = input.readUInt32();
                bitField0_ |= 0x00000008;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -929763751:
          case 1485930264: {
            if (input.isAtField(FieldNames.curTimezone)) {
              if (!input.trySkipNullValue()) {
                curTimezone = input.readSInt32();
                bitField0_ |= 0x00000010;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 35801251: {
            if (input.isAtField(FieldNames.gIALIFNNOPN)) {
              if (!input.trySkipNullValue()) {
                gIALIFNNOPN = input.readBool();
                bitField0_ |= 0x00000020;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1787199991: {
            if (input.isAtField(FieldNames.hNAGOHGGJDH)) {
              if (!input.trySkipNullValue()) {
                hNAGOHGGJDH = input.readBool();
                bitField0_ |= 0x00000040;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1699486212:
          case -1124288993: {
            if (input.isAtField(FieldNames.basicInfo)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(basicInfo);
                bitField0_ |= 0x00000080;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -1138148714: {
            if (input.isAtField(FieldNames.dBOOCPHLJJE)) {
              if (!input.trySkipNullValue()) {
                input.readString(dBOOCPHLJJE);
                bitField0_ |= 0x00000100;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1103332260: {
            if (input.isAtField(FieldNames.jIDCKGFNDNP)) {
              if (!input.trySkipNullValue()) {
                input.readString(jIDCKGFNDNP);
                bitField0_ |= 0x00000200;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

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

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

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

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

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

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

    private enum PlayerLoginScRspFactory implements MessageFactory<PlayerLoginScRsp> {
      INSTANCE;

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

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

      static final FieldName serverTimestampMs = FieldName.forField("serverTimestampMs", "server_timestamp_ms");

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

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

      static final FieldName curTimezone = FieldName.forField("curTimezone", "cur_timezone");

      static final FieldName gIALIFNNOPN = FieldName.forField("GIALIFNNOPN");

      static final FieldName hNAGOHGGJDH = FieldName.forField("HNAGOHGGJDH");

      static final FieldName basicInfo = FieldName.forField("basicInfo", "basic_info");

      static final FieldName dBOOCPHLJJE = FieldName.forField("DBOOCPHLJJE");

      static final FieldName jIDCKGFNDNP = FieldName.forField("JIDCKGFNDNP");
    }
  }
}
