// Code generated by protocol buffer compiler. Do not edit!
package emu.lunarcore.proto;

import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
import us.hebi.quickbuf.RepeatedInt;
import us.hebi.quickbuf.RepeatedMessage;

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

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

    /**
     * <code>optional bool is_get_all = 7;</code>
     */
    private boolean isGetAll;

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

    /**
     * <code>repeated uint32 owned_skin_list = 6;</code>
     */
    private final RepeatedInt ownedSkinList = RepeatedInt.newEmptyInstance();

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

    /**
     * <code>repeated .AvatarPathInfo avatar_path_info_list = 12;</code>
     */
    private final RepeatedMessage<AvatarPathInfoOuterClass.AvatarPathInfo> avatarPathInfoList = RepeatedMessage.newEmptyInstance(AvatarPathInfoOuterClass.AvatarPathInfo.getFactory());

    /**
     * <code>repeated .Avatar avatar_list = 14;</code>
     */
    private final RepeatedMessage<AvatarOuterClass.Avatar> avatarList = RepeatedMessage.newEmptyInstance(AvatarOuterClass.Avatar.getFactory());

    private GetAvatarDataScRsp() {
    }

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

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

    /**
     * <code>optional uint32 retcode = 8;</code>
     * @return this
     */
    public GetAvatarDataScRsp clearRetcode() {
      bitField0_ &= ~0x00000001;
      retcode = 0;
      return this;
    }

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

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

    /**
     * <code>optional bool is_get_all = 7;</code>
     * @return whether the isGetAll field is set
     */
    public boolean hasIsGetAll() {
      return (bitField0_ & 0x00000002) != 0;
    }

    /**
     * <code>optional bool is_get_all = 7;</code>
     * @return this
     */
    public GetAvatarDataScRsp clearIsGetAll() {
      bitField0_ &= ~0x00000002;
      isGetAll = false;
      return this;
    }

    /**
     * <code>optional bool is_get_all = 7;</code>
     * @return the isGetAll
     */
    public boolean getIsGetAll() {
      return isGetAll;
    }

    /**
     * <code>optional bool is_get_all = 7;</code>
     * @param value the isGetAll to set
     * @return this
     */
    public GetAvatarDataScRsp setIsGetAll(final boolean value) {
      bitField0_ |= 0x00000002;
      isGetAll = value;
      return this;
    }

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

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

    /**
     * <code>optional .PlayerOutfitInfo player_outfit_data = 1;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #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 = 1;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getMutablePlayerOutfitData() {
      bitField0_ |= 0x00000004;
      return playerOutfitData;
    }

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

    /**
     * <code>repeated uint32 owned_skin_list = 6;</code>
     * @return whether the ownedSkinList field is set
     */
    public boolean hasOwnedSkinList() {
      return (bitField0_ & 0x00000008) != 0;
    }

    /**
     * <code>repeated uint32 owned_skin_list = 6;</code>
     * @return this
     */
    public GetAvatarDataScRsp clearOwnedSkinList() {
      bitField0_ &= ~0x00000008;
      ownedSkinList.clear();
      return this;
    }

    /**
     * <code>repeated uint32 owned_skin_list = 6;</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 #getMutableOwnedSkinList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedInt getOwnedSkinList() {
      return ownedSkinList;
    }

    /**
     * <code>repeated uint32 owned_skin_list = 6;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedInt getMutableOwnedSkinList() {
      bitField0_ |= 0x00000008;
      return ownedSkinList;
    }

    /**
     * <code>repeated uint32 owned_skin_list = 6;</code>
     * @param value the ownedSkinList to add
     * @return this
     */
    public GetAvatarDataScRsp addOwnedSkinList(final int value) {
      bitField0_ |= 0x00000008;
      ownedSkinList.add(value);
      return this;
    }

    /**
     * <code>repeated uint32 owned_skin_list = 6;</code>
     * @param values the ownedSkinList to add
     * @return this
     */
    public GetAvatarDataScRsp addAllOwnedSkinList(final int... values) {
      bitField0_ |= 0x00000008;
      ownedSkinList.addAll(values);
      return this;
    }

    /**
     * <code>repeated uint32 basic_type_id_list = 11;</code>
     * @return whether the basicTypeIdList field is set
     */
    public boolean hasBasicTypeIdList() {
      return (bitField0_ & 0x00000010) != 0;
    }

    /**
     * <code>repeated uint32 basic_type_id_list = 11;</code>
     * @return this
     */
    public GetAvatarDataScRsp clearBasicTypeIdList() {
      bitField0_ &= ~0x00000010;
      basicTypeIdList.clear();
      return this;
    }

    /**
     * <code>repeated uint32 basic_type_id_list = 11;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableBasicTypeIdList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedInt getBasicTypeIdList() {
      return basicTypeIdList;
    }

    /**
     * <code>repeated uint32 basic_type_id_list = 11;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedInt getMutableBasicTypeIdList() {
      bitField0_ |= 0x00000010;
      return basicTypeIdList;
    }

    /**
     * <code>repeated uint32 basic_type_id_list = 11;</code>
     * @param value the basicTypeIdList to add
     * @return this
     */
    public GetAvatarDataScRsp addBasicTypeIdList(final int value) {
      bitField0_ |= 0x00000010;
      basicTypeIdList.add(value);
      return this;
    }

    /**
     * <code>repeated uint32 basic_type_id_list = 11;</code>
     * @param values the basicTypeIdList to add
     * @return this
     */
    public GetAvatarDataScRsp addAllBasicTypeIdList(final int... values) {
      bitField0_ |= 0x00000010;
      basicTypeIdList.addAll(values);
      return this;
    }

    /**
     * <code>repeated .AvatarPathInfo avatar_path_info_list = 12;</code>
     * @return whether the avatarPathInfoList field is set
     */
    public boolean hasAvatarPathInfoList() {
      return (bitField0_ & 0x00000020) != 0;
    }

    /**
     * <code>repeated .AvatarPathInfo avatar_path_info_list = 12;</code>
     * @return this
     */
    public GetAvatarDataScRsp clearAvatarPathInfoList() {
      bitField0_ &= ~0x00000020;
      avatarPathInfoList.clear();
      return this;
    }

    /**
     * <code>repeated .AvatarPathInfo avatar_path_info_list = 12;</code>
     *
     * This method returns the internal storage object without modifying any has state.
     * The returned object should not be modified and be treated as read-only.
     *
     * Use {@link #getMutableAvatarPathInfoList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<AvatarPathInfoOuterClass.AvatarPathInfo> getAvatarPathInfoList() {
      return avatarPathInfoList;
    }

    /**
     * <code>repeated .AvatarPathInfo avatar_path_info_list = 12;</code>
     *
     * This method returns the internal storage object and sets the corresponding
     * has state. The returned object will become part of this message and its
     * contents may be modified as long as the has state is not cleared.
     *
     * @return internal storage object for modifications
     */
    public RepeatedMessage<AvatarPathInfoOuterClass.AvatarPathInfo> getMutableAvatarPathInfoList() {
      bitField0_ |= 0x00000020;
      return avatarPathInfoList;
    }

    /**
     * <code>repeated .AvatarPathInfo avatar_path_info_list = 12;</code>
     * @param value the avatarPathInfoList to add
     * @return this
     */
    public GetAvatarDataScRsp addAvatarPathInfoList(
        final AvatarPathInfoOuterClass.AvatarPathInfo value) {
      bitField0_ |= 0x00000020;
      avatarPathInfoList.add(value);
      return this;
    }

    /**
     * <code>repeated .AvatarPathInfo avatar_path_info_list = 12;</code>
     * @param values the avatarPathInfoList to add
     * @return this
     */
    public GetAvatarDataScRsp addAllAvatarPathInfoList(
        final AvatarPathInfoOuterClass.AvatarPathInfo... values) {
      bitField0_ |= 0x00000020;
      avatarPathInfoList.addAll(values);
      return this;
    }

    /**
     * <code>repeated .Avatar avatar_list = 14;</code>
     * @return whether the avatarList field is set
     */
    public boolean hasAvatarList() {
      return (bitField0_ & 0x00000040) != 0;
    }

    /**
     * <code>repeated .Avatar avatar_list = 14;</code>
     * @return this
     */
    public GetAvatarDataScRsp clearAvatarList() {
      bitField0_ &= ~0x00000040;
      avatarList.clear();
      return this;
    }

    /**
     * <code>repeated .Avatar avatar_list = 14;</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 #getMutableAvatarList()} if you want to modify it.
     *
     * @return internal storage object for reading
     */
    public RepeatedMessage<AvatarOuterClass.Avatar> getAvatarList() {
      return avatarList;
    }

    /**
     * <code>repeated .Avatar avatar_list = 14;</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<AvatarOuterClass.Avatar> getMutableAvatarList() {
      bitField0_ |= 0x00000040;
      return avatarList;
    }

    /**
     * <code>repeated .Avatar avatar_list = 14;</code>
     * @param value the avatarList to add
     * @return this
     */
    public GetAvatarDataScRsp addAvatarList(final AvatarOuterClass.Avatar value) {
      bitField0_ |= 0x00000040;
      avatarList.add(value);
      return this;
    }

    /**
     * <code>repeated .Avatar avatar_list = 14;</code>
     * @param values the avatarList to add
     * @return this
     */
    public GetAvatarDataScRsp addAllAvatarList(final AvatarOuterClass.Avatar... values) {
      bitField0_ |= 0x00000040;
      avatarList.addAll(values);
      return this;
    }

    @Override
    public GetAvatarDataScRsp copyFrom(final GetAvatarDataScRsp other) {
      cachedSize = other.cachedSize;
      if ((bitField0_ | other.bitField0_) != 0) {
        bitField0_ = other.bitField0_;
        retcode = other.retcode;
        isGetAll = other.isGetAll;
        playerOutfitData.copyFrom(other.playerOutfitData);
        ownedSkinList.copyFrom(other.ownedSkinList);
        basicTypeIdList.copyFrom(other.basicTypeIdList);
        avatarPathInfoList.copyFrom(other.avatarPathInfoList);
        avatarList.copyFrom(other.avatarList);
      }
      return this;
    }

    @Override
    public GetAvatarDataScRsp mergeFrom(final GetAvatarDataScRsp other) {
      if (other.isEmpty()) {
        return this;
      }
      cachedSize = -1;
      if (other.hasRetcode()) {
        setRetcode(other.retcode);
      }
      if (other.hasIsGetAll()) {
        setIsGetAll(other.isGetAll);
      }
      if (other.hasPlayerOutfitData()) {
        getMutablePlayerOutfitData().mergeFrom(other.playerOutfitData);
      }
      if (other.hasOwnedSkinList()) {
        getMutableOwnedSkinList().addAll(other.ownedSkinList);
      }
      if (other.hasBasicTypeIdList()) {
        getMutableBasicTypeIdList().addAll(other.basicTypeIdList);
      }
      if (other.hasAvatarPathInfoList()) {
        getMutableAvatarPathInfoList().addAll(other.avatarPathInfoList);
      }
      if (other.hasAvatarList()) {
        getMutableAvatarList().addAll(other.avatarList);
      }
      return this;
    }

    @Override
    public GetAvatarDataScRsp clear() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      retcode = 0;
      isGetAll = false;
      playerOutfitData.clear();
      ownedSkinList.clear();
      basicTypeIdList.clear();
      avatarPathInfoList.clear();
      avatarList.clear();
      return this;
    }

    @Override
    public GetAvatarDataScRsp clearQuick() {
      if (isEmpty()) {
        return this;
      }
      cachedSize = -1;
      bitField0_ = 0;
      playerOutfitData.clearQuick();
      ownedSkinList.clear();
      basicTypeIdList.clear();
      avatarPathInfoList.clearQuick();
      avatarList.clearQuick();
      return this;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (!(o instanceof GetAvatarDataScRsp)) {
        return false;
      }
      GetAvatarDataScRsp other = (GetAvatarDataScRsp) o;
      return bitField0_ == other.bitField0_
        && (!hasRetcode() || retcode == other.retcode)
        && (!hasIsGetAll() || isGetAll == other.isGetAll)
        && (!hasPlayerOutfitData() || playerOutfitData.equals(other.playerOutfitData))
        && (!hasOwnedSkinList() || ownedSkinList.equals(other.ownedSkinList))
        && (!hasBasicTypeIdList() || basicTypeIdList.equals(other.basicTypeIdList))
        && (!hasAvatarPathInfoList() || avatarPathInfoList.equals(other.avatarPathInfoList))
        && (!hasAvatarList() || avatarList.equals(other.avatarList));
    }

    @Override
    public void writeTo(final ProtoSink output) throws IOException {
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeRawByte((byte) 64);
        output.writeUInt32NoTag(retcode);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeRawByte((byte) 56);
        output.writeBoolNoTag(isGetAll);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeRawByte((byte) 10);
        output.writeMessageNoTag(playerOutfitData);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        for (int i = 0; i < ownedSkinList.length(); i++) {
          output.writeRawByte((byte) 48);
          output.writeUInt32NoTag(ownedSkinList.array()[i]);
        }
      }
      if ((bitField0_ & 0x00000010) != 0) {
        for (int i = 0; i < basicTypeIdList.length(); i++) {
          output.writeRawByte((byte) 88);
          output.writeUInt32NoTag(basicTypeIdList.array()[i]);
        }
      }
      if ((bitField0_ & 0x00000020) != 0) {
        for (int i = 0; i < avatarPathInfoList.length(); i++) {
          output.writeRawByte((byte) 98);
          output.writeMessageNoTag(avatarPathInfoList.get(i));
        }
      }
      if ((bitField0_ & 0x00000040) != 0) {
        for (int i = 0; i < avatarList.length(); i++) {
          output.writeRawByte((byte) 114);
          output.writeMessageNoTag(avatarList.get(i));
        }
      }
    }

    @Override
    protected int computeSerializedSize() {
      int size = 0;
      if ((bitField0_ & 0x00000001) != 0) {
        size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        size += 2;
      }
      if ((bitField0_ & 0x00000004) != 0) {
        size += 1 + ProtoSink.computeMessageSizeNoTag(playerOutfitData);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        size += (1 * ownedSkinList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedSkinList);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        size += (1 * basicTypeIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(basicTypeIdList);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        size += (1 * avatarPathInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarPathInfoList);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList);
      }
      return size;
    }

    @Override
    @SuppressWarnings("fallthrough")
    public GetAvatarDataScRsp mergeFrom(final ProtoSource input) throws IOException {
      // Enabled Fall-Through Optimization (QuickBuffers)
      int tag = input.readTag();
      while (true) {
        switch (tag) {
          case 64: {
            // retcode
            retcode = input.readUInt32();
            bitField0_ |= 0x00000001;
            tag = input.readTag();
            if (tag != 56) {
              break;
            }
          }
          case 56: {
            // isGetAll
            isGetAll = input.readBool();
            bitField0_ |= 0x00000002;
            tag = input.readTag();
            if (tag != 10) {
              break;
            }
          }
          case 10: {
            // playerOutfitData
            input.readMessage(playerOutfitData);
            bitField0_ |= 0x00000004;
            tag = input.readTag();
            if (tag != 50) {
              break;
            }
          }
          case 50: {
            // ownedSkinList [packed=true]
            input.readPackedUInt32(ownedSkinList, tag);
            bitField0_ |= 0x00000008;
            tag = input.readTag();
            if (tag != 90) {
              break;
            }
          }
          case 90: {
            // basicTypeIdList [packed=true]
            input.readPackedUInt32(basicTypeIdList, tag);
            bitField0_ |= 0x00000010;
            tag = input.readTag();
            if (tag != 98) {
              break;
            }
          }
          case 98: {
            // avatarPathInfoList
            tag = input.readRepeatedMessage(avatarPathInfoList, tag);
            bitField0_ |= 0x00000020;
            if (tag != 114) {
              break;
            }
          }
          case 114: {
            // avatarList
            tag = input.readRepeatedMessage(avatarList, tag);
            bitField0_ |= 0x00000040;
            if (tag != 0) {
              break;
            }
          }
          case 0: {
            return this;
          }
          default: {
            if (!input.skipField(tag)) {
              return this;
            }
            tag = input.readTag();
            break;
          }
          case 48: {
            // ownedSkinList [packed=false]
            tag = input.readRepeatedUInt32(ownedSkinList, tag);
            bitField0_ |= 0x00000008;
            break;
          }
          case 88: {
            // basicTypeIdList [packed=false]
            tag = input.readRepeatedUInt32(basicTypeIdList, tag);
            bitField0_ |= 0x00000010;
            break;
          }
        }
      }
    }

    @Override
    public void writeTo(final JsonSink output) throws IOException {
      output.beginObject();
      if ((bitField0_ & 0x00000001) != 0) {
        output.writeUInt32(FieldNames.retcode, retcode);
      }
      if ((bitField0_ & 0x00000002) != 0) {
        output.writeBool(FieldNames.isGetAll, isGetAll);
      }
      if ((bitField0_ & 0x00000004) != 0) {
        output.writeMessage(FieldNames.playerOutfitData, playerOutfitData);
      }
      if ((bitField0_ & 0x00000008) != 0) {
        output.writeRepeatedUInt32(FieldNames.ownedSkinList, ownedSkinList);
      }
      if ((bitField0_ & 0x00000010) != 0) {
        output.writeRepeatedUInt32(FieldNames.basicTypeIdList, basicTypeIdList);
      }
      if ((bitField0_ & 0x00000020) != 0) {
        output.writeRepeatedMessage(FieldNames.avatarPathInfoList, avatarPathInfoList);
      }
      if ((bitField0_ & 0x00000040) != 0) {
        output.writeRepeatedMessage(FieldNames.avatarList, avatarList);
      }
      output.endObject();
    }

    @Override
    public GetAvatarDataScRsp mergeFrom(final JsonSource input) throws IOException {
      if (!input.beginObject()) {
        return this;
      }
      while (!input.isAtEnd()) {
        switch (input.readFieldHash()) {
          case 1097936398: {
            if (input.isAtField(FieldNames.retcode)) {
              if (!input.trySkipNullValue()) {
                retcode = input.readUInt32();
                bitField0_ |= 0x00000001;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -575333323:
          case 1425508131: {
            if (input.isAtField(FieldNames.isGetAll)) {
              if (!input.trySkipNullValue()) {
                isGetAll = input.readBool();
                bitField0_ |= 0x00000002;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1168879118:
          case 1803235336: {
            if (input.isAtField(FieldNames.playerOutfitData)) {
              if (!input.trySkipNullValue()) {
                input.readMessage(playerOutfitData);
                bitField0_ |= 0x00000004;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -939989632:
          case -1012790010: {
            if (input.isAtField(FieldNames.ownedSkinList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedUInt32(ownedSkinList);
                bitField0_ |= 0x00000008;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -332160255:
          case 99090862: {
            if (input.isAtField(FieldNames.basicTypeIdList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedUInt32(basicTypeIdList);
                bitField0_ |= 0x00000010;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case 1918381482:
          case 11642267: {
            if (input.isAtField(FieldNames.avatarPathInfoList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(avatarPathInfoList);
                bitField0_ |= 0x00000020;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          case -403402345:
          case 397055940: {
            if (input.isAtField(FieldNames.avatarList)) {
              if (!input.trySkipNullValue()) {
                input.readRepeatedMessage(avatarList);
                bitField0_ |= 0x00000040;
              }
            } else {
              input.skipUnknownField();
            }
            break;
          }
          default: {
            input.skipUnknownField();
            break;
          }
        }
      }
      input.endObject();
      return this;
    }

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

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

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

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

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

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

    private enum GetAvatarDataScRspFactory implements MessageFactory<GetAvatarDataScRsp> {
      INSTANCE;

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

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

      static final FieldName isGetAll = FieldName.forField("isGetAll", "is_get_all");

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

      static final FieldName ownedSkinList = FieldName.forField("ownedSkinList", "owned_skin_list");

      static final FieldName basicTypeIdList = FieldName.forField("basicTypeIdList", "basic_type_id_list");

      static final FieldName avatarPathInfoList = FieldName.forField("avatarPathInfoList", "avatar_path_info_list");

      static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list");
    }
  }
}
