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

package pb.xiugou.x1.protobuf.formation;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code pb.PbFormationType}
   */
  public enum PbFormationType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>NO_FORMATION = 0;</code>
     */
    NO_FORMATION(0),
    /**
     * <pre>
     *主线布阵
     * </pre>
     *
     * <code>MAIN = 1;</code>
     */
    MAIN(1),
    /**
     * <pre>
     *普通塔
     * </pre>
     *
     * <code>TOWER = 2;</code>
     */
    TOWER(2),
    /**
     * <pre>
     *力量塔布阵
     * </pre>
     *
     * <code>TOWER_STRENGTH = 3;</code>
     */
    TOWER_STRENGTH(3),
    /**
     * <pre>
     *敏捷塔布阵
     * </pre>
     *
     * <code>TOWER_AGILITY = 4;</code>
     */
    TOWER_AGILITY(4),
    /**
     * <pre>
     *智力塔布阵
     * </pre>
     *
     * <code>TOWER_WISDOM = 5;</code>
     */
    TOWER_WISDOM(5),
    /**
     * <pre>
     *黄金猪布阵
     * </pre>
     *
     * <code>GOLDEN_PIG = 6;</code>
     */
    GOLDEN_PIG(6),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>NO_FORMATION = 0;</code>
     */
    public static final int NO_FORMATION_VALUE = 0;
    /**
     * <pre>
     *主线布阵
     * </pre>
     *
     * <code>MAIN = 1;</code>
     */
    public static final int MAIN_VALUE = 1;
    /**
     * <pre>
     *普通塔
     * </pre>
     *
     * <code>TOWER = 2;</code>
     */
    public static final int TOWER_VALUE = 2;
    /**
     * <pre>
     *力量塔布阵
     * </pre>
     *
     * <code>TOWER_STRENGTH = 3;</code>
     */
    public static final int TOWER_STRENGTH_VALUE = 3;
    /**
     * <pre>
     *敏捷塔布阵
     * </pre>
     *
     * <code>TOWER_AGILITY = 4;</code>
     */
    public static final int TOWER_AGILITY_VALUE = 4;
    /**
     * <pre>
     *智力塔布阵
     * </pre>
     *
     * <code>TOWER_WISDOM = 5;</code>
     */
    public static final int TOWER_WISDOM_VALUE = 5;
    /**
     * <pre>
     *黄金猪布阵
     * </pre>
     *
     * <code>GOLDEN_PIG = 6;</code>
     */
    public static final int GOLDEN_PIG_VALUE = 6;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PbFormationType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static PbFormationType forNumber(int value) {
      switch (value) {
        case 0: return NO_FORMATION;
        case 1: return MAIN;
        case 2: return TOWER;
        case 3: return TOWER_STRENGTH;
        case 4: return TOWER_AGILITY;
        case 5: return TOWER_WISDOM;
        case 6: return GOLDEN_PIG;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<PbFormationType>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PbFormationType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<PbFormationType>() {
            public PbFormationType findValueByNumber(int number) {
              return PbFormationType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.formation.Formation.getDescriptor().getEnumTypes().get(0);
    }

    private static final PbFormationType[] VALUES = values();

    public static PbFormationType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private PbFormationType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:pb.PbFormationType)
  }

  public interface FormationInfoResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.FormationInfoResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> 
        getFormationsList();
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormation getFormations(int index);
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    int getFormationsCount();
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> 
        getFormationsOrBuilderList();
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder getFormationsOrBuilder(
        int index);
  }
  /**
   * <pre>
   *布阵信息
   * </pre>
   *
   * Protobuf type {@code pb.FormationInfoResponse}
   */
  public  static final class FormationInfoResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.FormationInfoResponse)
      FormationInfoResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use FormationInfoResponse.newBuilder() to construct.
    private FormationInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private FormationInfoResponse() {
      formations_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private FormationInfoResponse(
        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 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                formations_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.formation.Formation.PbFormation>();
                mutable_bitField0_ |= 0x00000001;
              }
              formations_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.formation.Formation.PbFormation.parser(), extensionRegistry));
              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_ & 0x00000001) != 0)) {
          formations_ = java.util.Collections.unmodifiableList(formations_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationInfoResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationInfoResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse.class, pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.FormationInfoResponse.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 1000001;</code>
       */
      ID(1000001),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 1000001;</code>
       */
      public static final int ID_VALUE = 1000001;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 1000001: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.FormationInfoResponse.Proto)
    }

    public static final int FORMATIONS_FIELD_NUMBER = 1;
    private java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> formations_;
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> getFormationsList() {
      return formations_;
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> 
        getFormationsOrBuilderList() {
      return formations_;
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public int getFormationsCount() {
      return formations_.size();
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormation getFormations(int index) {
      return formations_.get(index);
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder getFormationsOrBuilder(
        int index) {
      return formations_.get(index);
    }

    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 {
      for (int i = 0; i < formations_.size(); i++) {
        output.writeMessage(1, formations_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < formations_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, formations_.get(i));
      }
      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 pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse other = (pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse) obj;

      if (!getFormationsList()
          .equals(other.getFormationsList())) 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 (getFormationsCount() > 0) {
        hash = (37 * hash) + FORMATIONS_FIELD_NUMBER;
        hash = (53 * hash) + getFormationsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse 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 pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse 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 pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse 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(pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse 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;
    }
    /**
     * <pre>
     *布阵信息
     * </pre>
     *
     * Protobuf type {@code pb.FormationInfoResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.FormationInfoResponse)
        pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationInfoResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationInfoResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse.class, pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getFormationsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (formationsBuilder_ == null) {
          formations_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          formationsBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationInfoResponse_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse build() {
        pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse buildPartial() {
        pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse result = new pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse(this);
        int from_bitField0_ = bitField0_;
        if (formationsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            formations_ = java.util.Collections.unmodifiableList(formations_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.formations_ = formations_;
        } else {
          result.formations_ = formationsBuilder_.build();
        }
        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 pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse) {
          return mergeFrom((pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse other) {
        if (other == pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse.getDefaultInstance()) return this;
        if (formationsBuilder_ == null) {
          if (!other.formations_.isEmpty()) {
            if (formations_.isEmpty()) {
              formations_ = other.formations_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureFormationsIsMutable();
              formations_.addAll(other.formations_);
            }
            onChanged();
          }
        } else {
          if (!other.formations_.isEmpty()) {
            if (formationsBuilder_.isEmpty()) {
              formationsBuilder_.dispose();
              formationsBuilder_ = null;
              formations_ = other.formations_;
              bitField0_ = (bitField0_ & ~0x00000001);
              formationsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getFormationsFieldBuilder() : null;
            } else {
              formationsBuilder_.addAllMessages(other.formations_);
            }
          }
        }
        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 {
        pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> formations_ =
        java.util.Collections.emptyList();
      private void ensureFormationsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          formations_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.formation.Formation.PbFormation>(formations_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormation, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> formationsBuilder_;

      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> getFormationsList() {
        if (formationsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(formations_);
        } else {
          return formationsBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public int getFormationsCount() {
        if (formationsBuilder_ == null) {
          return formations_.size();
        } else {
          return formationsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation getFormations(int index) {
        if (formationsBuilder_ == null) {
          return formations_.get(index);
        } else {
          return formationsBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder setFormations(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation value) {
        if (formationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFormationsIsMutable();
          formations_.set(index, value);
          onChanged();
        } else {
          formationsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder setFormations(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder builderForValue) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          formations_.set(index, builderForValue.build());
          onChanged();
        } else {
          formationsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addFormations(pb.xiugou.x1.protobuf.formation.Formation.PbFormation value) {
        if (formationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFormationsIsMutable();
          formations_.add(value);
          onChanged();
        } else {
          formationsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addFormations(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation value) {
        if (formationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFormationsIsMutable();
          formations_.add(index, value);
          onChanged();
        } else {
          formationsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addFormations(
          pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder builderForValue) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          formations_.add(builderForValue.build());
          onChanged();
        } else {
          formationsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addFormations(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder builderForValue) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          formations_.add(index, builderForValue.build());
          onChanged();
        } else {
          formationsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addAllFormations(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormation> values) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, formations_);
          onChanged();
        } else {
          formationsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder clearFormations() {
        if (formationsBuilder_ == null) {
          formations_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          formationsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder removeFormations(int index) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          formations_.remove(index);
          onChanged();
        } else {
          formationsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder getFormationsBuilder(
          int index) {
        return getFormationsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder getFormationsOrBuilder(
          int index) {
        if (formationsBuilder_ == null) {
          return formations_.get(index);  } else {
          return formationsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> 
           getFormationsOrBuilderList() {
        if (formationsBuilder_ != null) {
          return formationsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(formations_);
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder addFormationsBuilder() {
        return getFormationsFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.formation.Formation.PbFormation.getDefaultInstance());
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder addFormationsBuilder(
          int index) {
        return getFormationsFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.getDefaultInstance());
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder> 
           getFormationsBuilderList() {
        return getFormationsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormation, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> 
          getFormationsFieldBuilder() {
        if (formationsBuilder_ == null) {
          formationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.formation.Formation.PbFormation, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder>(
                  formations_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          formations_ = null;
        }
        return formationsBuilder_;
      }
      @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:pb.FormationInfoResponse)
    }

    // @@protoc_insertion_point(class_scope:pb.FormationInfoResponse)
    private static final pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse();
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.formation.Formation.FormationInfoResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface FormationChangeMessageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.FormationChangeMessage)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> 
        getFormationsList();
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormation getFormations(int index);
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    int getFormationsCount();
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> 
        getFormationsOrBuilderList();
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder getFormationsOrBuilder(
        int index);
  }
  /**
   * <pre>
   *编队变化推送
   * </pre>
   *
   * Protobuf type {@code pb.FormationChangeMessage}
   */
  public  static final class FormationChangeMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.FormationChangeMessage)
      FormationChangeMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use FormationChangeMessage.newBuilder() to construct.
    private FormationChangeMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private FormationChangeMessage() {
      formations_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private FormationChangeMessage(
        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 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                formations_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.formation.Formation.PbFormation>();
                mutable_bitField0_ |= 0x00000001;
              }
              formations_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.formation.Formation.PbFormation.parser(), extensionRegistry));
              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_ & 0x00000001) != 0)) {
          formations_ = java.util.Collections.unmodifiableList(formations_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationChangeMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationChangeMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage.class, pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.FormationChangeMessage.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 1000002;</code>
       */
      ID(1000002),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 1000002;</code>
       */
      public static final int ID_VALUE = 1000002;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 1000002: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.FormationChangeMessage.Proto)
    }

    public static final int FORMATIONS_FIELD_NUMBER = 1;
    private java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> formations_;
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> getFormationsList() {
      return formations_;
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> 
        getFormationsOrBuilderList() {
      return formations_;
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public int getFormationsCount() {
      return formations_.size();
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormation getFormations(int index) {
      return formations_.get(index);
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>repeated .pb.PbFormation formations = 1;</code>
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder getFormationsOrBuilder(
        int index) {
      return formations_.get(index);
    }

    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 {
      for (int i = 0; i < formations_.size(); i++) {
        output.writeMessage(1, formations_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < formations_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, formations_.get(i));
      }
      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 pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage other = (pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage) obj;

      if (!getFormationsList()
          .equals(other.getFormationsList())) 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 (getFormationsCount() > 0) {
        hash = (37 * hash) + FORMATIONS_FIELD_NUMBER;
        hash = (53 * hash) + getFormationsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage 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 pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage 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 pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage 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(pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage 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;
    }
    /**
     * <pre>
     *编队变化推送
     * </pre>
     *
     * Protobuf type {@code pb.FormationChangeMessage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.FormationChangeMessage)
        pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationChangeMessage_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationChangeMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage.class, pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getFormationsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (formationsBuilder_ == null) {
          formations_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          formationsBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationChangeMessage_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage build() {
        pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage buildPartial() {
        pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage result = new pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage(this);
        int from_bitField0_ = bitField0_;
        if (formationsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            formations_ = java.util.Collections.unmodifiableList(formations_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.formations_ = formations_;
        } else {
          result.formations_ = formationsBuilder_.build();
        }
        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 pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage) {
          return mergeFrom((pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage other) {
        if (other == pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage.getDefaultInstance()) return this;
        if (formationsBuilder_ == null) {
          if (!other.formations_.isEmpty()) {
            if (formations_.isEmpty()) {
              formations_ = other.formations_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureFormationsIsMutable();
              formations_.addAll(other.formations_);
            }
            onChanged();
          }
        } else {
          if (!other.formations_.isEmpty()) {
            if (formationsBuilder_.isEmpty()) {
              formationsBuilder_.dispose();
              formationsBuilder_ = null;
              formations_ = other.formations_;
              bitField0_ = (bitField0_ & ~0x00000001);
              formationsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getFormationsFieldBuilder() : null;
            } else {
              formationsBuilder_.addAllMessages(other.formations_);
            }
          }
        }
        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 {
        pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> formations_ =
        java.util.Collections.emptyList();
      private void ensureFormationsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          formations_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.formation.Formation.PbFormation>(formations_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormation, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> formationsBuilder_;

      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation> getFormationsList() {
        if (formationsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(formations_);
        } else {
          return formationsBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public int getFormationsCount() {
        if (formationsBuilder_ == null) {
          return formations_.size();
        } else {
          return formationsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation getFormations(int index) {
        if (formationsBuilder_ == null) {
          return formations_.get(index);
        } else {
          return formationsBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder setFormations(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation value) {
        if (formationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFormationsIsMutable();
          formations_.set(index, value);
          onChanged();
        } else {
          formationsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder setFormations(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder builderForValue) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          formations_.set(index, builderForValue.build());
          onChanged();
        } else {
          formationsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addFormations(pb.xiugou.x1.protobuf.formation.Formation.PbFormation value) {
        if (formationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFormationsIsMutable();
          formations_.add(value);
          onChanged();
        } else {
          formationsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addFormations(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation value) {
        if (formationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFormationsIsMutable();
          formations_.add(index, value);
          onChanged();
        } else {
          formationsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addFormations(
          pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder builderForValue) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          formations_.add(builderForValue.build());
          onChanged();
        } else {
          formationsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addFormations(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder builderForValue) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          formations_.add(index, builderForValue.build());
          onChanged();
        } else {
          formationsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder addAllFormations(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormation> values) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, formations_);
          onChanged();
        } else {
          formationsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder clearFormations() {
        if (formationsBuilder_ == null) {
          formations_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          formationsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public Builder removeFormations(int index) {
        if (formationsBuilder_ == null) {
          ensureFormationsIsMutable();
          formations_.remove(index);
          onChanged();
        } else {
          formationsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder getFormationsBuilder(
          int index) {
        return getFormationsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder getFormationsOrBuilder(
          int index) {
        if (formationsBuilder_ == null) {
          return formations_.get(index);  } else {
          return formationsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> 
           getFormationsOrBuilderList() {
        if (formationsBuilder_ != null) {
          return formationsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(formations_);
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder addFormationsBuilder() {
        return getFormationsFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.formation.Formation.PbFormation.getDefaultInstance());
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder addFormationsBuilder(
          int index) {
        return getFormationsFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.getDefaultInstance());
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>repeated .pb.PbFormation formations = 1;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder> 
           getFormationsBuilderList() {
        return getFormationsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormation, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> 
          getFormationsFieldBuilder() {
        if (formationsBuilder_ == null) {
          formationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.formation.Formation.PbFormation, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder>(
                  formations_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          formations_ = null;
        }
        return formationsBuilder_;
      }
      @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:pb.FormationChangeMessage)
    }

    // @@protoc_insertion_point(class_scope:pb.FormationChangeMessage)
    private static final pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage();
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.formation.Formation.FormationChangeMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface FormationSaveRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.FormationSaveRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *布阵类型
     * </pre>
     *
     * <code>int32 type = 1;</code>
     * @return The type.
     */
    int getType();

    /**
     * <pre>
     *可出战的英雄上限
     * </pre>
     *
     * <code>int32 main_hero = 2;</code>
     * @return The mainHero.
     */
    int getMainHero();

    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> 
        getPosListList();
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos getPosList(int index);
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    int getPosListCount();
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> 
        getPosListOrBuilderList();
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder getPosListOrBuilder(
        int index);
  }
  /**
   * <pre>
   *保存阵容
   * </pre>
   *
   * Protobuf type {@code pb.FormationSaveRequest}
   */
  public  static final class FormationSaveRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.FormationSaveRequest)
      FormationSaveRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use FormationSaveRequest.newBuilder() to construct.
    private FormationSaveRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private FormationSaveRequest() {
      posList_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private FormationSaveRequest(
        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: {

              type_ = input.readInt32();
              break;
            }
            case 16: {

              mainHero_ = input.readInt32();
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                posList_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos>();
                mutable_bitField0_ |= 0x00000001;
              }
              posList_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.parser(), extensionRegistry));
              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_ & 0x00000001) != 0)) {
          posList_ = java.util.Collections.unmodifiableList(posList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest.class, pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.FormationSaveRequest.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 1000003;</code>
       */
      ID(1000003),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 1000003;</code>
       */
      public static final int ID_VALUE = 1000003;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 1000003: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.FormationSaveRequest.Proto)
    }

    public static final int TYPE_FIELD_NUMBER = 1;
    private int type_;
    /**
     * <pre>
     *布阵类型
     * </pre>
     *
     * <code>int32 type = 1;</code>
     * @return The type.
     */
    public int getType() {
      return type_;
    }

    public static final int MAIN_HERO_FIELD_NUMBER = 2;
    private int mainHero_;
    /**
     * <pre>
     *可出战的英雄上限
     * </pre>
     *
     * <code>int32 main_hero = 2;</code>
     * @return The mainHero.
     */
    public int getMainHero() {
      return mainHero_;
    }

    public static final int POS_LIST_FIELD_NUMBER = 3;
    private java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> posList_;
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> getPosListList() {
      return posList_;
    }
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> 
        getPosListOrBuilderList() {
      return posList_;
    }
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public int getPosListCount() {
      return posList_.size();
    }
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos getPosList(int index) {
      return posList_.get(index);
    }
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder getPosListOrBuilder(
        int index) {
      return posList_.get(index);
    }

    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 {
      if (type_ != 0) {
        output.writeInt32(1, type_);
      }
      if (mainHero_ != 0) {
        output.writeInt32(2, mainHero_);
      }
      for (int i = 0; i < posList_.size(); i++) {
        output.writeMessage(3, posList_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (type_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, type_);
      }
      if (mainHero_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, mainHero_);
      }
      for (int i = 0; i < posList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, posList_.get(i));
      }
      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 pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest other = (pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest) obj;

      if (getType()
          != other.getType()) return false;
      if (getMainHero()
          != other.getMainHero()) return false;
      if (!getPosListList()
          .equals(other.getPosListList())) 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();
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getType();
      hash = (37 * hash) + MAIN_HERO_FIELD_NUMBER;
      hash = (53 * hash) + getMainHero();
      if (getPosListCount() > 0) {
        hash = (37 * hash) + POS_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getPosListList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest 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 pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest 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 pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest 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(pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest 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;
    }
    /**
     * <pre>
     *保存阵容
     * </pre>
     *
     * Protobuf type {@code pb.FormationSaveRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.FormationSaveRequest)
        pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest.class, pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getPosListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        type_ = 0;

        mainHero_ = 0;

        if (posListBuilder_ == null) {
          posList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          posListBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveRequest_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest build() {
        pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest buildPartial() {
        pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest result = new pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest(this);
        int from_bitField0_ = bitField0_;
        result.type_ = type_;
        result.mainHero_ = mainHero_;
        if (posListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            posList_ = java.util.Collections.unmodifiableList(posList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.posList_ = posList_;
        } else {
          result.posList_ = posListBuilder_.build();
        }
        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 pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest) {
          return mergeFrom((pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest other) {
        if (other == pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest.getDefaultInstance()) return this;
        if (other.getType() != 0) {
          setType(other.getType());
        }
        if (other.getMainHero() != 0) {
          setMainHero(other.getMainHero());
        }
        if (posListBuilder_ == null) {
          if (!other.posList_.isEmpty()) {
            if (posList_.isEmpty()) {
              posList_ = other.posList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensurePosListIsMutable();
              posList_.addAll(other.posList_);
            }
            onChanged();
          }
        } else {
          if (!other.posList_.isEmpty()) {
            if (posListBuilder_.isEmpty()) {
              posListBuilder_.dispose();
              posListBuilder_ = null;
              posList_ = other.posList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              posListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getPosListFieldBuilder() : null;
            } else {
              posListBuilder_.addAllMessages(other.posList_);
            }
          }
        }
        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 {
        pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int type_ ;
      /**
       * <pre>
       *布阵类型
       * </pre>
       *
       * <code>int32 type = 1;</code>
       * @return The type.
       */
      public int getType() {
        return type_;
      }
      /**
       * <pre>
       *布阵类型
       * </pre>
       *
       * <code>int32 type = 1;</code>
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(int value) {
        
        type_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *布阵类型
       * </pre>
       *
       * <code>int32 type = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearType() {
        
        type_ = 0;
        onChanged();
        return this;
      }

      private int mainHero_ ;
      /**
       * <pre>
       *可出战的英雄上限
       * </pre>
       *
       * <code>int32 main_hero = 2;</code>
       * @return The mainHero.
       */
      public int getMainHero() {
        return mainHero_;
      }
      /**
       * <pre>
       *可出战的英雄上限
       * </pre>
       *
       * <code>int32 main_hero = 2;</code>
       * @param value The mainHero to set.
       * @return This builder for chaining.
       */
      public Builder setMainHero(int value) {
        
        mainHero_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *可出战的英雄上限
       * </pre>
       *
       * <code>int32 main_hero = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearMainHero() {
        
        mainHero_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> posList_ =
        java.util.Collections.emptyList();
      private void ensurePosListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          posList_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos>(posList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> posListBuilder_;

      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> getPosListList() {
        if (posListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(posList_);
        } else {
          return posListBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public int getPosListCount() {
        if (posListBuilder_ == null) {
          return posList_.size();
        } else {
          return posListBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos getPosList(int index) {
        if (posListBuilder_ == null) {
          return posList_.get(index);
        } else {
          return posListBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder setPosList(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos value) {
        if (posListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePosListIsMutable();
          posList_.set(index, value);
          onChanged();
        } else {
          posListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder setPosList(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder builderForValue) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          posList_.set(index, builderForValue.build());
          onChanged();
        } else {
          posListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addPosList(pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos value) {
        if (posListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePosListIsMutable();
          posList_.add(value);
          onChanged();
        } else {
          posListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addPosList(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos value) {
        if (posListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePosListIsMutable();
          posList_.add(index, value);
          onChanged();
        } else {
          posListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addPosList(
          pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder builderForValue) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          posList_.add(builderForValue.build());
          onChanged();
        } else {
          posListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addPosList(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder builderForValue) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          posList_.add(index, builderForValue.build());
          onChanged();
        } else {
          posListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addAllPosList(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> values) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, posList_);
          onChanged();
        } else {
          posListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder clearPosList() {
        if (posListBuilder_ == null) {
          posList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          posListBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder removePosList(int index) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          posList_.remove(index);
          onChanged();
        } else {
          posListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder getPosListBuilder(
          int index) {
        return getPosListFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder getPosListOrBuilder(
          int index) {
        if (posListBuilder_ == null) {
          return posList_.get(index);  } else {
          return posListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> 
           getPosListOrBuilderList() {
        if (posListBuilder_ != null) {
          return posListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(posList_);
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder addPosListBuilder() {
        return getPosListFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.getDefaultInstance());
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder addPosListBuilder(
          int index) {
        return getPosListFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.getDefaultInstance());
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder> 
           getPosListBuilderList() {
        return getPosListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> 
          getPosListFieldBuilder() {
        if (posListBuilder_ == null) {
          posListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder>(
                  posList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          posList_ = null;
        }
        return posListBuilder_;
      }
      @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:pb.FormationSaveRequest)
    }

    // @@protoc_insertion_point(class_scope:pb.FormationSaveRequest)
    private static final pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest();
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.formation.Formation.FormationSaveRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface FormationSaveResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.FormationSaveResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>.pb.PbFormation formation = 1;</code>
     * @return Whether the formation field is set.
     */
    boolean hasFormation();
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>.pb.PbFormation formation = 1;</code>
     * @return The formation.
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormation getFormation();
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>.pb.PbFormation formation = 1;</code>
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder getFormationOrBuilder();
  }
  /**
   * Protobuf type {@code pb.FormationSaveResponse}
   */
  public  static final class FormationSaveResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.FormationSaveResponse)
      FormationSaveResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use FormationSaveResponse.newBuilder() to construct.
    private FormationSaveResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private FormationSaveResponse() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private FormationSaveResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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 10: {
              pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder subBuilder = null;
              if (formation_ != null) {
                subBuilder = formation_.toBuilder();
              }
              formation_ = input.readMessage(pb.xiugou.x1.protobuf.formation.Formation.PbFormation.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(formation_);
                formation_ = subBuilder.buildPartial();
              }

              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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse.class, pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.FormationSaveResponse.Proto}
     */
    public enum Proto
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>ID = 1000003;</code>
       */
      ID(1000003),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>ID = 1000003;</code>
       */
      public static final int ID_VALUE = 1000003;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Proto valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Proto forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 1000003: return ID;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Proto>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Proto> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Proto>() {
              public Proto findValueByNumber(int number) {
                return Proto.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse.getDescriptor().getEnumTypes().get(0);
      }

      private static final Proto[] VALUES = values();

      public static Proto valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Proto(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.FormationSaveResponse.Proto)
    }

    public static final int FORMATION_FIELD_NUMBER = 1;
    private pb.xiugou.x1.protobuf.formation.Formation.PbFormation formation_;
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>.pb.PbFormation formation = 1;</code>
     * @return Whether the formation field is set.
     */
    public boolean hasFormation() {
      return formation_ != null;
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>.pb.PbFormation formation = 1;</code>
     * @return The formation.
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormation getFormation() {
      return formation_ == null ? pb.xiugou.x1.protobuf.formation.Formation.PbFormation.getDefaultInstance() : formation_;
    }
    /**
     * <pre>
     *布阵
     * </pre>
     *
     * <code>.pb.PbFormation formation = 1;</code>
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder getFormationOrBuilder() {
      return getFormation();
    }

    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 {
      if (formation_ != null) {
        output.writeMessage(1, getFormation());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (formation_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getFormation());
      }
      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 pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse other = (pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse) obj;

      if (hasFormation() != other.hasFormation()) return false;
      if (hasFormation()) {
        if (!getFormation()
            .equals(other.getFormation())) 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 (hasFormation()) {
        hash = (37 * hash) + FORMATION_FIELD_NUMBER;
        hash = (53 * hash) + getFormation().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse 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 pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse 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 pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse 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(pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse 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 pb.FormationSaveResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.FormationSaveResponse)
        pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse.class, pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (formationBuilder_ == null) {
          formation_ = null;
        } else {
          formation_ = null;
          formationBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_FormationSaveResponse_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse build() {
        pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse buildPartial() {
        pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse result = new pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse(this);
        if (formationBuilder_ == null) {
          result.formation_ = formation_;
        } else {
          result.formation_ = formationBuilder_.build();
        }
        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 pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse) {
          return mergeFrom((pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse other) {
        if (other == pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse.getDefaultInstance()) return this;
        if (other.hasFormation()) {
          mergeFormation(other.getFormation());
        }
        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 {
        pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private pb.xiugou.x1.protobuf.formation.Formation.PbFormation formation_;
      private com.google.protobuf.SingleFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormation, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> formationBuilder_;
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>.pb.PbFormation formation = 1;</code>
       * @return Whether the formation field is set.
       */
      public boolean hasFormation() {
        return formationBuilder_ != null || formation_ != null;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>.pb.PbFormation formation = 1;</code>
       * @return The formation.
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation getFormation() {
        if (formationBuilder_ == null) {
          return formation_ == null ? pb.xiugou.x1.protobuf.formation.Formation.PbFormation.getDefaultInstance() : formation_;
        } else {
          return formationBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>.pb.PbFormation formation = 1;</code>
       */
      public Builder setFormation(pb.xiugou.x1.protobuf.formation.Formation.PbFormation value) {
        if (formationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          formation_ = value;
          onChanged();
        } else {
          formationBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>.pb.PbFormation formation = 1;</code>
       */
      public Builder setFormation(
          pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder builderForValue) {
        if (formationBuilder_ == null) {
          formation_ = builderForValue.build();
          onChanged();
        } else {
          formationBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>.pb.PbFormation formation = 1;</code>
       */
      public Builder mergeFormation(pb.xiugou.x1.protobuf.formation.Formation.PbFormation value) {
        if (formationBuilder_ == null) {
          if (formation_ != null) {
            formation_ =
              pb.xiugou.x1.protobuf.formation.Formation.PbFormation.newBuilder(formation_).mergeFrom(value).buildPartial();
          } else {
            formation_ = value;
          }
          onChanged();
        } else {
          formationBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>.pb.PbFormation formation = 1;</code>
       */
      public Builder clearFormation() {
        if (formationBuilder_ == null) {
          formation_ = null;
          onChanged();
        } else {
          formation_ = null;
          formationBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>.pb.PbFormation formation = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder getFormationBuilder() {
        
        onChanged();
        return getFormationFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>.pb.PbFormation formation = 1;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder getFormationOrBuilder() {
        if (formationBuilder_ != null) {
          return formationBuilder_.getMessageOrBuilder();
        } else {
          return formation_ == null ?
              pb.xiugou.x1.protobuf.formation.Formation.PbFormation.getDefaultInstance() : formation_;
        }
      }
      /**
       * <pre>
       *布阵
       * </pre>
       *
       * <code>.pb.PbFormation formation = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormation, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder> 
          getFormationFieldBuilder() {
        if (formationBuilder_ == null) {
          formationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              pb.xiugou.x1.protobuf.formation.Formation.PbFormation, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder>(
                  getFormation(),
                  getParentForChildren(),
                  isClean());
          formation_ = null;
        }
        return formationBuilder_;
      }
      @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:pb.FormationSaveResponse)
    }

    // @@protoc_insertion_point(class_scope:pb.FormationSaveResponse)
    private static final pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse();
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.formation.Formation.FormationSaveResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PbFormationOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.PbFormation)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *布阵类型
     * </pre>
     *
     * <code>int32 type = 1;</code>
     * @return The type.
     */
    int getType();

    /**
     * <pre>
     *可出战的英雄上限
     * </pre>
     *
     * <code>int32 main_hero_identity = 2;</code>
     * @return The mainHeroIdentity.
     */
    int getMainHeroIdentity();

    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> 
        getPosListList();
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos getPosList(int index);
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    int getPosListCount();
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> 
        getPosListOrBuilderList();
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder getPosListOrBuilder(
        int index);

    /**
     * <pre>
     *编队战力
     * </pre>
     *
     * <code>int64 fighting = 4;</code>
     * @return The fighting.
     */
    long getFighting();

    /**
     * <pre>
     *装备提供的战力
     * </pre>
     *
     * <code>int64 equip_fighting = 5;</code>
     * @return The equipFighting.
     */
    long getEquipFighting();

    /**
     * <pre>
     *玩家是否修改过
     * </pre>
     *
     * <code>bool manual_change = 6;</code>
     * @return The manualChange.
     */
    boolean getManualChange();
  }
  /**
   * Protobuf type {@code pb.PbFormation}
   */
  public  static final class PbFormation extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PbFormation)
      PbFormationOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PbFormation.newBuilder() to construct.
    private PbFormation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PbFormation() {
      posList_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PbFormation(
        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: {

              type_ = input.readInt32();
              break;
            }
            case 16: {

              mainHeroIdentity_ = input.readInt32();
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                posList_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos>();
                mutable_bitField0_ |= 0x00000001;
              }
              posList_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.parser(), extensionRegistry));
              break;
            }
            case 32: {

              fighting_ = input.readInt64();
              break;
            }
            case 40: {

              equipFighting_ = input.readInt64();
              break;
            }
            case 48: {

              manualChange_ = input.readBool();
              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_ & 0x00000001) != 0)) {
          posList_ = java.util.Collections.unmodifiableList(posList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormation_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.formation.Formation.PbFormation.class, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder.class);
    }

    public static final int TYPE_FIELD_NUMBER = 1;
    private int type_;
    /**
     * <pre>
     *布阵类型
     * </pre>
     *
     * <code>int32 type = 1;</code>
     * @return The type.
     */
    public int getType() {
      return type_;
    }

    public static final int MAIN_HERO_IDENTITY_FIELD_NUMBER = 2;
    private int mainHeroIdentity_;
    /**
     * <pre>
     *可出战的英雄上限
     * </pre>
     *
     * <code>int32 main_hero_identity = 2;</code>
     * @return The mainHeroIdentity.
     */
    public int getMainHeroIdentity() {
      return mainHeroIdentity_;
    }

    public static final int POS_LIST_FIELD_NUMBER = 3;
    private java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> posList_;
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> getPosListList() {
      return posList_;
    }
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> 
        getPosListOrBuilderList() {
      return posList_;
    }
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public int getPosListCount() {
      return posList_.size();
    }
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos getPosList(int index) {
      return posList_.get(index);
    }
    /**
     * <pre>
     *站位信息
     * </pre>
     *
     * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
     */
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder getPosListOrBuilder(
        int index) {
      return posList_.get(index);
    }

    public static final int FIGHTING_FIELD_NUMBER = 4;
    private long fighting_;
    /**
     * <pre>
     *编队战力
     * </pre>
     *
     * <code>int64 fighting = 4;</code>
     * @return The fighting.
     */
    public long getFighting() {
      return fighting_;
    }

    public static final int EQUIP_FIGHTING_FIELD_NUMBER = 5;
    private long equipFighting_;
    /**
     * <pre>
     *装备提供的战力
     * </pre>
     *
     * <code>int64 equip_fighting = 5;</code>
     * @return The equipFighting.
     */
    public long getEquipFighting() {
      return equipFighting_;
    }

    public static final int MANUAL_CHANGE_FIELD_NUMBER = 6;
    private boolean manualChange_;
    /**
     * <pre>
     *玩家是否修改过
     * </pre>
     *
     * <code>bool manual_change = 6;</code>
     * @return The manualChange.
     */
    public boolean getManualChange() {
      return manualChange_;
    }

    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 {
      if (type_ != 0) {
        output.writeInt32(1, type_);
      }
      if (mainHeroIdentity_ != 0) {
        output.writeInt32(2, mainHeroIdentity_);
      }
      for (int i = 0; i < posList_.size(); i++) {
        output.writeMessage(3, posList_.get(i));
      }
      if (fighting_ != 0L) {
        output.writeInt64(4, fighting_);
      }
      if (equipFighting_ != 0L) {
        output.writeInt64(5, equipFighting_);
      }
      if (manualChange_ != false) {
        output.writeBool(6, manualChange_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (type_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, type_);
      }
      if (mainHeroIdentity_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, mainHeroIdentity_);
      }
      for (int i = 0; i < posList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, posList_.get(i));
      }
      if (fighting_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, fighting_);
      }
      if (equipFighting_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, equipFighting_);
      }
      if (manualChange_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(6, manualChange_);
      }
      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 pb.xiugou.x1.protobuf.formation.Formation.PbFormation)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.formation.Formation.PbFormation other = (pb.xiugou.x1.protobuf.formation.Formation.PbFormation) obj;

      if (getType()
          != other.getType()) return false;
      if (getMainHeroIdentity()
          != other.getMainHeroIdentity()) return false;
      if (!getPosListList()
          .equals(other.getPosListList())) return false;
      if (getFighting()
          != other.getFighting()) return false;
      if (getEquipFighting()
          != other.getEquipFighting()) return false;
      if (getManualChange()
          != other.getManualChange()) 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();
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getType();
      hash = (37 * hash) + MAIN_HERO_IDENTITY_FIELD_NUMBER;
      hash = (53 * hash) + getMainHeroIdentity();
      if (getPosListCount() > 0) {
        hash = (37 * hash) + POS_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getPosListList().hashCode();
      }
      hash = (37 * hash) + FIGHTING_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getFighting());
      hash = (37 * hash) + EQUIP_FIGHTING_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getEquipFighting());
      hash = (37 * hash) + MANUAL_CHANGE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getManualChange());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation 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 pb.xiugou.x1.protobuf.formation.Formation.PbFormation parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation 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 pb.xiugou.x1.protobuf.formation.Formation.PbFormation parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation 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(pb.xiugou.x1.protobuf.formation.Formation.PbFormation 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 pb.PbFormation}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.PbFormation)
        pb.xiugou.x1.protobuf.formation.Formation.PbFormationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormation_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormation_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.formation.Formation.PbFormation.class, pb.xiugou.x1.protobuf.formation.Formation.PbFormation.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.formation.Formation.PbFormation.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getPosListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        type_ = 0;

        mainHeroIdentity_ = 0;

        if (posListBuilder_ == null) {
          posList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          posListBuilder_.clear();
        }
        fighting_ = 0L;

        equipFighting_ = 0L;

        manualChange_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormation_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.PbFormation.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation build() {
        pb.xiugou.x1.protobuf.formation.Formation.PbFormation result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormation buildPartial() {
        pb.xiugou.x1.protobuf.formation.Formation.PbFormation result = new pb.xiugou.x1.protobuf.formation.Formation.PbFormation(this);
        int from_bitField0_ = bitField0_;
        result.type_ = type_;
        result.mainHeroIdentity_ = mainHeroIdentity_;
        if (posListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            posList_ = java.util.Collections.unmodifiableList(posList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.posList_ = posList_;
        } else {
          result.posList_ = posListBuilder_.build();
        }
        result.fighting_ = fighting_;
        result.equipFighting_ = equipFighting_;
        result.manualChange_ = manualChange_;
        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 pb.xiugou.x1.protobuf.formation.Formation.PbFormation) {
          return mergeFrom((pb.xiugou.x1.protobuf.formation.Formation.PbFormation)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.formation.Formation.PbFormation other) {
        if (other == pb.xiugou.x1.protobuf.formation.Formation.PbFormation.getDefaultInstance()) return this;
        if (other.getType() != 0) {
          setType(other.getType());
        }
        if (other.getMainHeroIdentity() != 0) {
          setMainHeroIdentity(other.getMainHeroIdentity());
        }
        if (posListBuilder_ == null) {
          if (!other.posList_.isEmpty()) {
            if (posList_.isEmpty()) {
              posList_ = other.posList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensurePosListIsMutable();
              posList_.addAll(other.posList_);
            }
            onChanged();
          }
        } else {
          if (!other.posList_.isEmpty()) {
            if (posListBuilder_.isEmpty()) {
              posListBuilder_.dispose();
              posListBuilder_ = null;
              posList_ = other.posList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              posListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getPosListFieldBuilder() : null;
            } else {
              posListBuilder_.addAllMessages(other.posList_);
            }
          }
        }
        if (other.getFighting() != 0L) {
          setFighting(other.getFighting());
        }
        if (other.getEquipFighting() != 0L) {
          setEquipFighting(other.getEquipFighting());
        }
        if (other.getManualChange() != false) {
          setManualChange(other.getManualChange());
        }
        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 {
        pb.xiugou.x1.protobuf.formation.Formation.PbFormation parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.formation.Formation.PbFormation) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int type_ ;
      /**
       * <pre>
       *布阵类型
       * </pre>
       *
       * <code>int32 type = 1;</code>
       * @return The type.
       */
      public int getType() {
        return type_;
      }
      /**
       * <pre>
       *布阵类型
       * </pre>
       *
       * <code>int32 type = 1;</code>
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(int value) {
        
        type_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *布阵类型
       * </pre>
       *
       * <code>int32 type = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearType() {
        
        type_ = 0;
        onChanged();
        return this;
      }

      private int mainHeroIdentity_ ;
      /**
       * <pre>
       *可出战的英雄上限
       * </pre>
       *
       * <code>int32 main_hero_identity = 2;</code>
       * @return The mainHeroIdentity.
       */
      public int getMainHeroIdentity() {
        return mainHeroIdentity_;
      }
      /**
       * <pre>
       *可出战的英雄上限
       * </pre>
       *
       * <code>int32 main_hero_identity = 2;</code>
       * @param value The mainHeroIdentity to set.
       * @return This builder for chaining.
       */
      public Builder setMainHeroIdentity(int value) {
        
        mainHeroIdentity_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *可出战的英雄上限
       * </pre>
       *
       * <code>int32 main_hero_identity = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearMainHeroIdentity() {
        
        mainHeroIdentity_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> posList_ =
        java.util.Collections.emptyList();
      private void ensurePosListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          posList_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos>(posList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> posListBuilder_;

      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> getPosListList() {
        if (posListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(posList_);
        } else {
          return posListBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public int getPosListCount() {
        if (posListBuilder_ == null) {
          return posList_.size();
        } else {
          return posListBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos getPosList(int index) {
        if (posListBuilder_ == null) {
          return posList_.get(index);
        } else {
          return posListBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder setPosList(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos value) {
        if (posListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePosListIsMutable();
          posList_.set(index, value);
          onChanged();
        } else {
          posListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder setPosList(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder builderForValue) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          posList_.set(index, builderForValue.build());
          onChanged();
        } else {
          posListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addPosList(pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos value) {
        if (posListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePosListIsMutable();
          posList_.add(value);
          onChanged();
        } else {
          posListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addPosList(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos value) {
        if (posListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePosListIsMutable();
          posList_.add(index, value);
          onChanged();
        } else {
          posListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addPosList(
          pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder builderForValue) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          posList_.add(builderForValue.build());
          onChanged();
        } else {
          posListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addPosList(
          int index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder builderForValue) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          posList_.add(index, builderForValue.build());
          onChanged();
        } else {
          posListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder addAllPosList(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos> values) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, posList_);
          onChanged();
        } else {
          posListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder clearPosList() {
        if (posListBuilder_ == null) {
          posList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          posListBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public Builder removePosList(int index) {
        if (posListBuilder_ == null) {
          ensurePosListIsMutable();
          posList_.remove(index);
          onChanged();
        } else {
          posListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder getPosListBuilder(
          int index) {
        return getPosListFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder getPosListOrBuilder(
          int index) {
        if (posListBuilder_ == null) {
          return posList_.get(index);  } else {
          return posListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> 
           getPosListOrBuilderList() {
        if (posListBuilder_ != null) {
          return posListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(posList_);
        }
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder addPosListBuilder() {
        return getPosListFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.getDefaultInstance());
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder addPosListBuilder(
          int index) {
        return getPosListFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.getDefaultInstance());
      }
      /**
       * <pre>
       *站位信息
       * </pre>
       *
       * <code>repeated .pb.PbFormationPos pos_list = 3;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder> 
           getPosListBuilderList() {
        return getPosListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder> 
          getPosListFieldBuilder() {
        if (posListBuilder_ == null) {
          posListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder>(
                  posList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          posList_ = null;
        }
        return posListBuilder_;
      }

      private long fighting_ ;
      /**
       * <pre>
       *编队战力
       * </pre>
       *
       * <code>int64 fighting = 4;</code>
       * @return The fighting.
       */
      public long getFighting() {
        return fighting_;
      }
      /**
       * <pre>
       *编队战力
       * </pre>
       *
       * <code>int64 fighting = 4;</code>
       * @param value The fighting to set.
       * @return This builder for chaining.
       */
      public Builder setFighting(long value) {
        
        fighting_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *编队战力
       * </pre>
       *
       * <code>int64 fighting = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearFighting() {
        
        fighting_ = 0L;
        onChanged();
        return this;
      }

      private long equipFighting_ ;
      /**
       * <pre>
       *装备提供的战力
       * </pre>
       *
       * <code>int64 equip_fighting = 5;</code>
       * @return The equipFighting.
       */
      public long getEquipFighting() {
        return equipFighting_;
      }
      /**
       * <pre>
       *装备提供的战力
       * </pre>
       *
       * <code>int64 equip_fighting = 5;</code>
       * @param value The equipFighting to set.
       * @return This builder for chaining.
       */
      public Builder setEquipFighting(long value) {
        
        equipFighting_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *装备提供的战力
       * </pre>
       *
       * <code>int64 equip_fighting = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearEquipFighting() {
        
        equipFighting_ = 0L;
        onChanged();
        return this;
      }

      private boolean manualChange_ ;
      /**
       * <pre>
       *玩家是否修改过
       * </pre>
       *
       * <code>bool manual_change = 6;</code>
       * @return The manualChange.
       */
      public boolean getManualChange() {
        return manualChange_;
      }
      /**
       * <pre>
       *玩家是否修改过
       * </pre>
       *
       * <code>bool manual_change = 6;</code>
       * @param value The manualChange to set.
       * @return This builder for chaining.
       */
      public Builder setManualChange(boolean value) {
        
        manualChange_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *玩家是否修改过
       * </pre>
       *
       * <code>bool manual_change = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearManualChange() {
        
        manualChange_ = false;
        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:pb.PbFormation)
    }

    // @@protoc_insertion_point(class_scope:pb.PbFormation)
    private static final pb.xiugou.x1.protobuf.formation.Formation.PbFormation DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.formation.Formation.PbFormation();
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormation getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormation getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PbFormationPosOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.PbFormationPos)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *位置，从1开始
     * </pre>
     *
     * <code>int32 pos = 1;</code>
     * @return The pos.
     */
    int getPos();

    /**
     * <pre>
     *英雄类型
     * </pre>
     *
     * <code>int32 identity = 2;</code>
     * @return The identity.
     */
    int getIdentity();
  }
  /**
   * Protobuf type {@code pb.PbFormationPos}
   */
  public  static final class PbFormationPos extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PbFormationPos)
      PbFormationPosOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PbFormationPos.newBuilder() to construct.
    private PbFormationPos(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PbFormationPos() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PbFormationPos(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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: {

              pos_ = input.readInt32();
              break;
            }
            case 16: {

              identity_ = input.readInt32();
              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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormationPos_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormationPos_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.class, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder.class);
    }

    public static final int POS_FIELD_NUMBER = 1;
    private int pos_;
    /**
     * <pre>
     *位置，从1开始
     * </pre>
     *
     * <code>int32 pos = 1;</code>
     * @return The pos.
     */
    public int getPos() {
      return pos_;
    }

    public static final int IDENTITY_FIELD_NUMBER = 2;
    private int identity_;
    /**
     * <pre>
     *英雄类型
     * </pre>
     *
     * <code>int32 identity = 2;</code>
     * @return The identity.
     */
    public int getIdentity() {
      return identity_;
    }

    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 {
      if (pos_ != 0) {
        output.writeInt32(1, pos_);
      }
      if (identity_ != 0) {
        output.writeInt32(2, identity_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (pos_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, pos_);
      }
      if (identity_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, identity_);
      }
      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 pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos other = (pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos) obj;

      if (getPos()
          != other.getPos()) return false;
      if (getIdentity()
          != other.getIdentity()) 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();
      hash = (37 * hash) + POS_FIELD_NUMBER;
      hash = (53 * hash) + getPos();
      hash = (37 * hash) + IDENTITY_FIELD_NUMBER;
      hash = (53 * hash) + getIdentity();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos 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 pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos 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 pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos 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(pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos 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 pb.PbFormationPos}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.PbFormationPos)
        pb.xiugou.x1.protobuf.formation.Formation.PbFormationPosOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormationPos_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormationPos_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.class, pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        pos_ = 0;

        identity_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.internal_static_pb_PbFormationPos_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.getDefaultInstance();
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos build() {
        pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos buildPartial() {
        pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos result = new pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos(this);
        result.pos_ = pos_;
        result.identity_ = identity_;
        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 pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos) {
          return mergeFrom((pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos other) {
        if (other == pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos.getDefaultInstance()) return this;
        if (other.getPos() != 0) {
          setPos(other.getPos());
        }
        if (other.getIdentity() != 0) {
          setIdentity(other.getIdentity());
        }
        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 {
        pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int pos_ ;
      /**
       * <pre>
       *位置，从1开始
       * </pre>
       *
       * <code>int32 pos = 1;</code>
       * @return The pos.
       */
      public int getPos() {
        return pos_;
      }
      /**
       * <pre>
       *位置，从1开始
       * </pre>
       *
       * <code>int32 pos = 1;</code>
       * @param value The pos to set.
       * @return This builder for chaining.
       */
      public Builder setPos(int value) {
        
        pos_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *位置，从1开始
       * </pre>
       *
       * <code>int32 pos = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearPos() {
        
        pos_ = 0;
        onChanged();
        return this;
      }

      private int identity_ ;
      /**
       * <pre>
       *英雄类型
       * </pre>
       *
       * <code>int32 identity = 2;</code>
       * @return The identity.
       */
      public int getIdentity() {
        return identity_;
      }
      /**
       * <pre>
       *英雄类型
       * </pre>
       *
       * <code>int32 identity = 2;</code>
       * @param value The identity to set.
       * @return This builder for chaining.
       */
      public Builder setIdentity(int value) {
        
        identity_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *英雄类型
       * </pre>
       *
       * <code>int32 identity = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearIdentity() {
        
        identity_ = 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:pb.PbFormationPos)
    }

    // @@protoc_insertion_point(class_scope:pb.PbFormationPos)
    private static final pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos();
    }

    public static pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.formation.Formation.PbFormationPos getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_FormationInfoResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_FormationInfoResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_FormationChangeMessage_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_FormationChangeMessage_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_FormationSaveRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_FormationSaveRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_FormationSaveResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_FormationSaveResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PbFormation_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PbFormation_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PbFormationPos_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PbFormationPos_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\017Formation.proto\022\002pb\"\\\n\025FormationInfoRe" +
      "sponse\022#\n\nformations\030\001 \003(\0132\017.pb.PbFormat" +
      "ion\"\036\n\005Proto\022\013\n\007UNKNOWN\020\000\022\010\n\002ID\020\301\204=\"]\n\026F" +
      "ormationChangeMessage\022#\n\nformations\030\001 \003(" +
      "\0132\017.pb.PbFormation\"\036\n\005Proto\022\013\n\007UNKNOWN\020\000" +
      "\022\010\n\002ID\020\302\204=\"}\n\024FormationSaveRequest\022\014\n\004ty" +
      "pe\030\001 \001(\005\022\021\n\tmain_hero\030\002 \001(\005\022$\n\010pos_list\030" +
      "\003 \003(\0132\022.pb.PbFormationPos\"\036\n\005Proto\022\013\n\007UN" +
      "KNOWN\020\000\022\010\n\002ID\020\303\204=\"[\n\025FormationSaveRespon" +
      "se\022\"\n\tformation\030\001 \001(\0132\017.pb.PbFormation\"\036" +
      "\n\005Proto\022\013\n\007UNKNOWN\020\000\022\010\n\002ID\020\303\204=\"\236\001\n\013PbFor" +
      "mation\022\014\n\004type\030\001 \001(\005\022\032\n\022main_hero_identi" +
      "ty\030\002 \001(\005\022$\n\010pos_list\030\003 \003(\0132\022.pb.PbFormat" +
      "ionPos\022\020\n\010fighting\030\004 \001(\003\022\026\n\016equip_fighti" +
      "ng\030\005 \001(\003\022\025\n\rmanual_change\030\006 \001(\010\"/\n\016PbFor" +
      "mationPos\022\013\n\003pos\030\001 \001(\005\022\020\n\010identity\030\002 \001(\005" +
      "*\201\001\n\017PbFormationType\022\020\n\014NO_FORMATION\020\000\022\010" +
      "\n\004MAIN\020\001\022\t\n\005TOWER\020\002\022\022\n\016TOWER_STRENGTH\020\003\022" +
      "\021\n\rTOWER_AGILITY\020\004\022\020\n\014TOWER_WISDOM\020\005\022\016\n\n" +
      "GOLDEN_PIG\020\006B9\n\037pb.xiugou.x1.protobuf.fo" +
      "rmation\252\002\025pb.xiugou.x1.protobufb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_pb_FormationInfoResponse_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_pb_FormationInfoResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_FormationInfoResponse_descriptor,
        new java.lang.String[] { "Formations", });
    internal_static_pb_FormationChangeMessage_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_pb_FormationChangeMessage_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_FormationChangeMessage_descriptor,
        new java.lang.String[] { "Formations", });
    internal_static_pb_FormationSaveRequest_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_pb_FormationSaveRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_FormationSaveRequest_descriptor,
        new java.lang.String[] { "Type", "MainHero", "PosList", });
    internal_static_pb_FormationSaveResponse_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_pb_FormationSaveResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_FormationSaveResponse_descriptor,
        new java.lang.String[] { "Formation", });
    internal_static_pb_PbFormation_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_pb_PbFormation_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PbFormation_descriptor,
        new java.lang.String[] { "Type", "MainHeroIdentity", "PosList", "Fighting", "EquipFighting", "ManualChange", });
    internal_static_pb_PbFormationPos_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_pb_PbFormationPos_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PbFormationPos_descriptor,
        new java.lang.String[] { "Pos", "Identity", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
