// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: TowerCurLevelRecord.proto

package emu.grasscutter.net.proto;

public final class TowerCurLevelRecordOuterClass {
  private TowerCurLevelRecordOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TowerCurLevelRecordOrBuilder extends
      // @@protoc_insertion_point(interface_extends:TowerCurLevelRecord)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated uint32 buff_id_list = 14;</code>
     * @return A list containing the buffIdList.
     */
    java.util.List<java.lang.Integer> getBuffIdListList();
    /**
     * <code>repeated uint32 buff_id_list = 14;</code>
     * @return The count of buffIdList.
     */
    int getBuffIdListCount();
    /**
     * <code>repeated uint32 buff_id_list = 14;</code>
     * @param index The index of the element to return.
     * @return The buffIdList at the given index.
     */
    int getBuffIdList(int index);

    /**
     * <code>bool is_upper_part = 4;</code>
     * @return The isUpperPart.
     */
    boolean getIsUpperPart();

    /**
     * <code>uint32 cur_level_index = 6;</code>
     * @return The curLevelIndex.
     */
    int getCurLevelIndex();

    /**
     * <code>bool is_empty = 1;</code>
     * @return The isEmpty.
     */
    boolean getIsEmpty();

    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> 
        getTowerTeamListList();
    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getTowerTeamList(int index);
    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    int getTowerTeamListCount();
    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> 
        getTowerTeamListOrBuilderList();
    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder getTowerTeamListOrBuilder(
        int index);

    /**
     * <code>uint32 cur_floor_id = 9;</code>
     * @return The curFloorId.
     */
    int getCurFloorId();
  }
  /**
   * Protobuf type {@code TowerCurLevelRecord}
   */
  public static final class TowerCurLevelRecord extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:TowerCurLevelRecord)
      TowerCurLevelRecordOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TowerCurLevelRecord.newBuilder() to construct.
    private TowerCurLevelRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TowerCurLevelRecord() {
      buffIdList_ = emptyIntList();
      towerTeamList_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new TowerCurLevelRecord();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private TowerCurLevelRecord(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              isEmpty_ = input.readBool();
              break;
            }
            case 32: {

              isUpperPart_ = input.readBool();
              break;
            }
            case 48: {

              curLevelIndex_ = input.readUInt32();
              break;
            }
            case 66: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                towerTeamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam>();
                mutable_bitField0_ |= 0x00000002;
              }
              towerTeamList_.add(
                  input.readMessage(emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.parser(), extensionRegistry));
              break;
            }
            case 72: {

              curFloorId_ = input.readUInt32();
              break;
            }
            case 112: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                buffIdList_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              buffIdList_.addInt(input.readUInt32());
              break;
            }
            case 114: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                buffIdList_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                buffIdList_.addInt(input.readUInt32());
              }
              input.popLimit(limit);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          towerTeamList_ = java.util.Collections.unmodifiableList(towerTeamList_);
        }
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          buffIdList_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.class, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder.class);
    }

    public static final int BUFF_ID_LIST_FIELD_NUMBER = 14;
    private com.google.protobuf.Internal.IntList buffIdList_;
    /**
     * <code>repeated uint32 buff_id_list = 14;</code>
     * @return A list containing the buffIdList.
     */
    @java.lang.Override
    public java.util.List<java.lang.Integer>
        getBuffIdListList() {
      return buffIdList_;
    }
    /**
     * <code>repeated uint32 buff_id_list = 14;</code>
     * @return The count of buffIdList.
     */
    public int getBuffIdListCount() {
      return buffIdList_.size();
    }
    /**
     * <code>repeated uint32 buff_id_list = 14;</code>
     * @param index The index of the element to return.
     * @return The buffIdList at the given index.
     */
    public int getBuffIdList(int index) {
      return buffIdList_.getInt(index);
    }
    private int buffIdListMemoizedSerializedSize = -1;

    public static final int IS_UPPER_PART_FIELD_NUMBER = 4;
    private boolean isUpperPart_;
    /**
     * <code>bool is_upper_part = 4;</code>
     * @return The isUpperPart.
     */
    @java.lang.Override
    public boolean getIsUpperPart() {
      return isUpperPart_;
    }

    public static final int CUR_LEVEL_INDEX_FIELD_NUMBER = 6;
    private int curLevelIndex_;
    /**
     * <code>uint32 cur_level_index = 6;</code>
     * @return The curLevelIndex.
     */
    @java.lang.Override
    public int getCurLevelIndex() {
      return curLevelIndex_;
    }

    public static final int IS_EMPTY_FIELD_NUMBER = 1;
    private boolean isEmpty_;
    /**
     * <code>bool is_empty = 1;</code>
     * @return The isEmpty.
     */
    @java.lang.Override
    public boolean getIsEmpty() {
      return isEmpty_;
    }

    public static final int TOWER_TEAM_LIST_FIELD_NUMBER = 8;
    private java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> towerTeamList_;
    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> getTowerTeamListList() {
      return towerTeamList_;
    }
    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> 
        getTowerTeamListOrBuilderList() {
      return towerTeamList_;
    }
    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    @java.lang.Override
    public int getTowerTeamListCount() {
      return towerTeamList_.size();
    }
    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getTowerTeamList(int index) {
      return towerTeamList_.get(index);
    }
    /**
     * <code>repeated .TowerTeam tower_team_list = 8;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder getTowerTeamListOrBuilder(
        int index) {
      return towerTeamList_.get(index);
    }

    public static final int CUR_FLOOR_ID_FIELD_NUMBER = 9;
    private int curFloorId_;
    /**
     * <code>uint32 cur_floor_id = 9;</code>
     * @return The curFloorId.
     */
    @java.lang.Override
    public int getCurFloorId() {
      return curFloorId_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (isEmpty_ != false) {
        output.writeBool(1, isEmpty_);
      }
      if (isUpperPart_ != false) {
        output.writeBool(4, isUpperPart_);
      }
      if (curLevelIndex_ != 0) {
        output.writeUInt32(6, curLevelIndex_);
      }
      for (int i = 0; i < towerTeamList_.size(); i++) {
        output.writeMessage(8, towerTeamList_.get(i));
      }
      if (curFloorId_ != 0) {
        output.writeUInt32(9, curFloorId_);
      }
      if (getBuffIdListList().size() > 0) {
        output.writeUInt32NoTag(114);
        output.writeUInt32NoTag(buffIdListMemoizedSerializedSize);
      }
      for (int i = 0; i < buffIdList_.size(); i++) {
        output.writeUInt32NoTag(buffIdList_.getInt(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (isEmpty_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(1, isEmpty_);
      }
      if (isUpperPart_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(4, isUpperPart_);
      }
      if (curLevelIndex_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(6, curLevelIndex_);
      }
      for (int i = 0; i < towerTeamList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, towerTeamList_.get(i));
      }
      if (curFloorId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(9, curFloorId_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < buffIdList_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeUInt32SizeNoTag(buffIdList_.getInt(i));
        }
        size += dataSize;
        if (!getBuffIdListList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        buffIdListMemoizedSerializedSize = dataSize;
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord other = (emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord) obj;

      if (!getBuffIdListList()
          .equals(other.getBuffIdListList())) return false;
      if (getIsUpperPart()
          != other.getIsUpperPart()) return false;
      if (getCurLevelIndex()
          != other.getCurLevelIndex()) return false;
      if (getIsEmpty()
          != other.getIsEmpty()) return false;
      if (!getTowerTeamListList()
          .equals(other.getTowerTeamListList())) return false;
      if (getCurFloorId()
          != other.getCurFloorId()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getBuffIdListCount() > 0) {
        hash = (37 * hash) + BUFF_ID_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getBuffIdListList().hashCode();
      }
      hash = (37 * hash) + IS_UPPER_PART_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsUpperPart());
      hash = (37 * hash) + CUR_LEVEL_INDEX_FIELD_NUMBER;
      hash = (53 * hash) + getCurLevelIndex();
      hash = (37 * hash) + IS_EMPTY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsEmpty());
      if (getTowerTeamListCount() > 0) {
        hash = (37 * hash) + TOWER_TEAM_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getTowerTeamListList().hashCode();
      }
      hash = (37 * hash) + CUR_FLOOR_ID_FIELD_NUMBER;
      hash = (53 * hash) + getCurFloorId();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code TowerCurLevelRecord}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:TowerCurLevelRecord)
        emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.class, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder.class);
      }

      // Construct using emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTowerTeamListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        buffIdList_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        isUpperPart_ = false;

        curLevelIndex_ = 0;

        isEmpty_ = false;

        if (towerTeamListBuilder_ == null) {
          towerTeamList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          towerTeamListBuilder_.clear();
        }
        curFloorId_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_descriptor;
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getDefaultInstanceForType() {
        return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.getDefaultInstance();
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord build() {
        emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord buildPartial() {
        emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord result = new emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          buffIdList_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.buffIdList_ = buffIdList_;
        result.isUpperPart_ = isUpperPart_;
        result.curLevelIndex_ = curLevelIndex_;
        result.isEmpty_ = isEmpty_;
        if (towerTeamListBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            towerTeamList_ = java.util.Collections.unmodifiableList(towerTeamList_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.towerTeamList_ = towerTeamList_;
        } else {
          result.towerTeamList_ = towerTeamListBuilder_.build();
        }
        result.curFloorId_ = curFloorId_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord) {
          return mergeFrom((emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord other) {
        if (other == emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.getDefaultInstance()) return this;
        if (!other.buffIdList_.isEmpty()) {
          if (buffIdList_.isEmpty()) {
            buffIdList_ = other.buffIdList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureBuffIdListIsMutable();
            buffIdList_.addAll(other.buffIdList_);
          }
          onChanged();
        }
        if (other.getIsUpperPart() != false) {
          setIsUpperPart(other.getIsUpperPart());
        }
        if (other.getCurLevelIndex() != 0) {
          setCurLevelIndex(other.getCurLevelIndex());
        }
        if (other.getIsEmpty() != false) {
          setIsEmpty(other.getIsEmpty());
        }
        if (towerTeamListBuilder_ == null) {
          if (!other.towerTeamList_.isEmpty()) {
            if (towerTeamList_.isEmpty()) {
              towerTeamList_ = other.towerTeamList_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureTowerTeamListIsMutable();
              towerTeamList_.addAll(other.towerTeamList_);
            }
            onChanged();
          }
        } else {
          if (!other.towerTeamList_.isEmpty()) {
            if (towerTeamListBuilder_.isEmpty()) {
              towerTeamListBuilder_.dispose();
              towerTeamListBuilder_ = null;
              towerTeamList_ = other.towerTeamList_;
              bitField0_ = (bitField0_ & ~0x00000002);
              towerTeamListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getTowerTeamListFieldBuilder() : null;
            } else {
              towerTeamListBuilder_.addAllMessages(other.towerTeamList_);
            }
          }
        }
        if (other.getCurFloorId() != 0) {
          setCurFloorId(other.getCurFloorId());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.Internal.IntList buffIdList_ = emptyIntList();
      private void ensureBuffIdListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          buffIdList_ = mutableCopy(buffIdList_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated uint32 buff_id_list = 14;</code>
       * @return A list containing the buffIdList.
       */
      public java.util.List<java.lang.Integer>
          getBuffIdListList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(buffIdList_) : buffIdList_;
      }
      /**
       * <code>repeated uint32 buff_id_list = 14;</code>
       * @return The count of buffIdList.
       */
      public int getBuffIdListCount() {
        return buffIdList_.size();
      }
      /**
       * <code>repeated uint32 buff_id_list = 14;</code>
       * @param index The index of the element to return.
       * @return The buffIdList at the given index.
       */
      public int getBuffIdList(int index) {
        return buffIdList_.getInt(index);
      }
      /**
       * <code>repeated uint32 buff_id_list = 14;</code>
       * @param index The index to set the value at.
       * @param value The buffIdList to set.
       * @return This builder for chaining.
       */
      public Builder setBuffIdList(
          int index, int value) {
        ensureBuffIdListIsMutable();
        buffIdList_.setInt(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 buff_id_list = 14;</code>
       * @param value The buffIdList to add.
       * @return This builder for chaining.
       */
      public Builder addBuffIdList(int value) {
        ensureBuffIdListIsMutable();
        buffIdList_.addInt(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 buff_id_list = 14;</code>
       * @param values The buffIdList to add.
       * @return This builder for chaining.
       */
      public Builder addAllBuffIdList(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureBuffIdListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, buffIdList_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 buff_id_list = 14;</code>
       * @return This builder for chaining.
       */
      public Builder clearBuffIdList() {
        buffIdList_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      private boolean isUpperPart_ ;
      /**
       * <code>bool is_upper_part = 4;</code>
       * @return The isUpperPart.
       */
      @java.lang.Override
      public boolean getIsUpperPart() {
        return isUpperPart_;
      }
      /**
       * <code>bool is_upper_part = 4;</code>
       * @param value The isUpperPart to set.
       * @return This builder for chaining.
       */
      public Builder setIsUpperPart(boolean value) {
        
        isUpperPart_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool is_upper_part = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearIsUpperPart() {
        
        isUpperPart_ = false;
        onChanged();
        return this;
      }

      private int curLevelIndex_ ;
      /**
       * <code>uint32 cur_level_index = 6;</code>
       * @return The curLevelIndex.
       */
      @java.lang.Override
      public int getCurLevelIndex() {
        return curLevelIndex_;
      }
      /**
       * <code>uint32 cur_level_index = 6;</code>
       * @param value The curLevelIndex to set.
       * @return This builder for chaining.
       */
      public Builder setCurLevelIndex(int value) {
        
        curLevelIndex_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 cur_level_index = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearCurLevelIndex() {
        
        curLevelIndex_ = 0;
        onChanged();
        return this;
      }

      private boolean isEmpty_ ;
      /**
       * <code>bool is_empty = 1;</code>
       * @return The isEmpty.
       */
      @java.lang.Override
      public boolean getIsEmpty() {
        return isEmpty_;
      }
      /**
       * <code>bool is_empty = 1;</code>
       * @param value The isEmpty to set.
       * @return This builder for chaining.
       */
      public Builder setIsEmpty(boolean value) {
        
        isEmpty_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool is_empty = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearIsEmpty() {
        
        isEmpty_ = false;
        onChanged();
        return this;
      }

      private java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> towerTeamList_ =
        java.util.Collections.emptyList();
      private void ensureTowerTeamListIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          towerTeamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam>(towerTeamList_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> towerTeamListBuilder_;

      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> getTowerTeamListList() {
        if (towerTeamListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(towerTeamList_);
        } else {
          return towerTeamListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public int getTowerTeamListCount() {
        if (towerTeamListBuilder_ == null) {
          return towerTeamList_.size();
        } else {
          return towerTeamListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getTowerTeamList(int index) {
        if (towerTeamListBuilder_ == null) {
          return towerTeamList_.get(index);
        } else {
          return towerTeamListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public Builder setTowerTeamList(
          int index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam value) {
        if (towerTeamListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTowerTeamListIsMutable();
          towerTeamList_.set(index, value);
          onChanged();
        } else {
          towerTeamListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public Builder setTowerTeamList(
          int index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder builderForValue) {
        if (towerTeamListBuilder_ == null) {
          ensureTowerTeamListIsMutable();
          towerTeamList_.set(index, builderForValue.build());
          onChanged();
        } else {
          towerTeamListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public Builder addTowerTeamList(emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam value) {
        if (towerTeamListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTowerTeamListIsMutable();
          towerTeamList_.add(value);
          onChanged();
        } else {
          towerTeamListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public Builder addTowerTeamList(
          int index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam value) {
        if (towerTeamListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTowerTeamListIsMutable();
          towerTeamList_.add(index, value);
          onChanged();
        } else {
          towerTeamListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public Builder addTowerTeamList(
          emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder builderForValue) {
        if (towerTeamListBuilder_ == null) {
          ensureTowerTeamListIsMutable();
          towerTeamList_.add(builderForValue.build());
          onChanged();
        } else {
          towerTeamListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public Builder addTowerTeamList(
          int index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder builderForValue) {
        if (towerTeamListBuilder_ == null) {
          ensureTowerTeamListIsMutable();
          towerTeamList_.add(index, builderForValue.build());
          onChanged();
        } else {
          towerTeamListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public Builder addAllTowerTeamList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> values) {
        if (towerTeamListBuilder_ == null) {
          ensureTowerTeamListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, towerTeamList_);
          onChanged();
        } else {
          towerTeamListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public Builder clearTowerTeamList() {
        if (towerTeamListBuilder_ == null) {
          towerTeamList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          towerTeamListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public Builder removeTowerTeamList(int index) {
        if (towerTeamListBuilder_ == null) {
          ensureTowerTeamListIsMutable();
          towerTeamList_.remove(index);
          onChanged();
        } else {
          towerTeamListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder getTowerTeamListBuilder(
          int index) {
        return getTowerTeamListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder getTowerTeamListOrBuilder(
          int index) {
        if (towerTeamListBuilder_ == null) {
          return towerTeamList_.get(index);  } else {
          return towerTeamListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> 
           getTowerTeamListOrBuilderList() {
        if (towerTeamListBuilder_ != null) {
          return towerTeamListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(towerTeamList_);
        }
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder addTowerTeamListBuilder() {
        return getTowerTeamListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.getDefaultInstance());
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder addTowerTeamListBuilder(
          int index) {
        return getTowerTeamListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.getDefaultInstance());
      }
      /**
       * <code>repeated .TowerTeam tower_team_list = 8;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder> 
           getTowerTeamListBuilderList() {
        return getTowerTeamListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> 
          getTowerTeamListFieldBuilder() {
        if (towerTeamListBuilder_ == null) {
          towerTeamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder>(
                  towerTeamList_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          towerTeamList_ = null;
        }
        return towerTeamListBuilder_;
      }

      private int curFloorId_ ;
      /**
       * <code>uint32 cur_floor_id = 9;</code>
       * @return The curFloorId.
       */
      @java.lang.Override
      public int getCurFloorId() {
        return curFloorId_;
      }
      /**
       * <code>uint32 cur_floor_id = 9;</code>
       * @param value The curFloorId to set.
       * @return This builder for chaining.
       */
      public Builder setCurFloorId(int value) {
        
        curFloorId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 cur_floor_id = 9;</code>
       * @return This builder for chaining.
       */
      public Builder clearCurFloorId() {
        
        curFloorId_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:TowerCurLevelRecord)
    }

    // @@protoc_insertion_point(class_scope:TowerCurLevelRecord)
    private static final emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord();
    }

    public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<TowerCurLevelRecord>
        PARSER = new com.google.protobuf.AbstractParser<TowerCurLevelRecord>() {
      @java.lang.Override
      public TowerCurLevelRecord parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new TowerCurLevelRecord(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<TowerCurLevelRecord> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<TowerCurLevelRecord> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_TowerCurLevelRecord_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_TowerCurLevelRecord_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\031TowerCurLevelRecord.proto\032\017TowerTeam.p" +
      "roto\"\250\001\n\023TowerCurLevelRecord\022\024\n\014buff_id_" +
      "list\030\016 \003(\r\022\025\n\ris_upper_part\030\004 \001(\010\022\027\n\017cur" +
      "_level_index\030\006 \001(\r\022\020\n\010is_empty\030\001 \001(\010\022#\n\017" +
      "tower_team_list\030\010 \003(\0132\n.TowerTeam\022\024\n\014cur" +
      "_floor_id\030\t \001(\rB\033\n\031emu.grasscutter.net.p" +
      "rotob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.TowerTeamOuterClass.getDescriptor(),
        });
    internal_static_TowerCurLevelRecord_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_TowerCurLevelRecord_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_TowerCurLevelRecord_descriptor,
        new java.lang.String[] { "BuffIdList", "IsUpperPart", "CurLevelIndex", "IsEmpty", "TowerTeamList", "CurFloorId", });
    emu.grasscutter.net.proto.TowerTeamOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
