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

package pb.xiugou.x1.protobuf.tower;

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

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

    /**
     * <pre>
     *普通塔已通关层数
     * </pre>
     *
     * <code>int32 normal_layer = 1;</code>
     * @return The normalLayer.
     */
    int getNormalLayer();

    /**
     * <pre>
     *力量塔已通关层数
     * </pre>
     *
     * <code>int32 strength_layer = 2;</code>
     * @return The strengthLayer.
     */
    int getStrengthLayer();

    /**
     * <pre>
     *敏捷塔已通关层数
     * </pre>
     *
     * <code>int32 agility_layer = 3;</code>
     * @return The agilityLayer.
     */
    int getAgilityLayer();

    /**
     * <pre>
     *智力塔已通关层数
     * </pre>
     *
     * <code>int32 wisdom_layer = 4;</code>
     * @return The wisdomLayer.
     */
    int getWisdomLayer();
  }
  /**
   * <pre>
   *塔信息
   * </pre>
   *
   * Protobuf type {@code pb.TowerInfoResponse}
   */
  public  static final class TowerInfoResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.TowerInfoResponse)
      TowerInfoResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TowerInfoResponse.newBuilder() to construct.
    private TowerInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TowerInfoResponse() {
    }

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

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

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

              strengthLayer_ = input.readInt32();
              break;
            }
            case 24: {

              agilityLayer_ = input.readInt32();
              break;
            }
            case 32: {

              wisdomLayer_ = 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.tower.Tower.internal_static_pb_TowerInfoResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_TowerInfoResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse.class, pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse.Builder.class);
    }

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

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


      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 1800001: 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.tower.Tower.TowerInfoResponse.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.TowerInfoResponse.Proto)
    }

    public static final int NORMAL_LAYER_FIELD_NUMBER = 1;
    private int normalLayer_;
    /**
     * <pre>
     *普通塔已通关层数
     * </pre>
     *
     * <code>int32 normal_layer = 1;</code>
     * @return The normalLayer.
     */
    public int getNormalLayer() {
      return normalLayer_;
    }

    public static final int STRENGTH_LAYER_FIELD_NUMBER = 2;
    private int strengthLayer_;
    /**
     * <pre>
     *力量塔已通关层数
     * </pre>
     *
     * <code>int32 strength_layer = 2;</code>
     * @return The strengthLayer.
     */
    public int getStrengthLayer() {
      return strengthLayer_;
    }

    public static final int AGILITY_LAYER_FIELD_NUMBER = 3;
    private int agilityLayer_;
    /**
     * <pre>
     *敏捷塔已通关层数
     * </pre>
     *
     * <code>int32 agility_layer = 3;</code>
     * @return The agilityLayer.
     */
    public int getAgilityLayer() {
      return agilityLayer_;
    }

    public static final int WISDOM_LAYER_FIELD_NUMBER = 4;
    private int wisdomLayer_;
    /**
     * <pre>
     *智力塔已通关层数
     * </pre>
     *
     * <code>int32 wisdom_layer = 4;</code>
     * @return The wisdomLayer.
     */
    public int getWisdomLayer() {
      return wisdomLayer_;
    }

    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 (normalLayer_ != 0) {
        output.writeInt32(1, normalLayer_);
      }
      if (strengthLayer_ != 0) {
        output.writeInt32(2, strengthLayer_);
      }
      if (agilityLayer_ != 0) {
        output.writeInt32(3, agilityLayer_);
      }
      if (wisdomLayer_ != 0) {
        output.writeInt32(4, wisdomLayer_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (normalLayer_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, normalLayer_);
      }
      if (strengthLayer_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, strengthLayer_);
      }
      if (agilityLayer_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, agilityLayer_);
      }
      if (wisdomLayer_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, wisdomLayer_);
      }
      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.tower.Tower.TowerInfoResponse)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse other = (pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse) obj;

      if (getNormalLayer()
          != other.getNormalLayer()) return false;
      if (getStrengthLayer()
          != other.getStrengthLayer()) return false;
      if (getAgilityLayer()
          != other.getAgilityLayer()) return false;
      if (getWisdomLayer()
          != other.getWisdomLayer()) 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) + NORMAL_LAYER_FIELD_NUMBER;
      hash = (53 * hash) + getNormalLayer();
      hash = (37 * hash) + STRENGTH_LAYER_FIELD_NUMBER;
      hash = (53 * hash) + getStrengthLayer();
      hash = (37 * hash) + AGILITY_LAYER_FIELD_NUMBER;
      hash = (53 * hash) + getAgilityLayer();
      hash = (37 * hash) + WISDOM_LAYER_FIELD_NUMBER;
      hash = (53 * hash) + getWisdomLayer();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_TowerInfoResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse.class, pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse.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();
        normalLayer_ = 0;

        strengthLayer_ = 0;

        agilityLayer_ = 0;

        wisdomLayer_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_TowerInfoResponse_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse.getDefaultInstance();
      }

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

      @java.lang.Override
      public pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse buildPartial() {
        pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse result = new pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse(this);
        result.normalLayer_ = normalLayer_;
        result.strengthLayer_ = strengthLayer_;
        result.agilityLayer_ = agilityLayer_;
        result.wisdomLayer_ = wisdomLayer_;
        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.tower.Tower.TowerInfoResponse) {
          return mergeFrom((pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse other) {
        if (other == pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse.getDefaultInstance()) return this;
        if (other.getNormalLayer() != 0) {
          setNormalLayer(other.getNormalLayer());
        }
        if (other.getStrengthLayer() != 0) {
          setStrengthLayer(other.getStrengthLayer());
        }
        if (other.getAgilityLayer() != 0) {
          setAgilityLayer(other.getAgilityLayer());
        }
        if (other.getWisdomLayer() != 0) {
          setWisdomLayer(other.getWisdomLayer());
        }
        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.tower.Tower.TowerInfoResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int normalLayer_ ;
      /**
       * <pre>
       *普通塔已通关层数
       * </pre>
       *
       * <code>int32 normal_layer = 1;</code>
       * @return The normalLayer.
       */
      public int getNormalLayer() {
        return normalLayer_;
      }
      /**
       * <pre>
       *普通塔已通关层数
       * </pre>
       *
       * <code>int32 normal_layer = 1;</code>
       * @param value The normalLayer to set.
       * @return This builder for chaining.
       */
      public Builder setNormalLayer(int value) {
        
        normalLayer_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *普通塔已通关层数
       * </pre>
       *
       * <code>int32 normal_layer = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearNormalLayer() {
        
        normalLayer_ = 0;
        onChanged();
        return this;
      }

      private int strengthLayer_ ;
      /**
       * <pre>
       *力量塔已通关层数
       * </pre>
       *
       * <code>int32 strength_layer = 2;</code>
       * @return The strengthLayer.
       */
      public int getStrengthLayer() {
        return strengthLayer_;
      }
      /**
       * <pre>
       *力量塔已通关层数
       * </pre>
       *
       * <code>int32 strength_layer = 2;</code>
       * @param value The strengthLayer to set.
       * @return This builder for chaining.
       */
      public Builder setStrengthLayer(int value) {
        
        strengthLayer_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *力量塔已通关层数
       * </pre>
       *
       * <code>int32 strength_layer = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearStrengthLayer() {
        
        strengthLayer_ = 0;
        onChanged();
        return this;
      }

      private int agilityLayer_ ;
      /**
       * <pre>
       *敏捷塔已通关层数
       * </pre>
       *
       * <code>int32 agility_layer = 3;</code>
       * @return The agilityLayer.
       */
      public int getAgilityLayer() {
        return agilityLayer_;
      }
      /**
       * <pre>
       *敏捷塔已通关层数
       * </pre>
       *
       * <code>int32 agility_layer = 3;</code>
       * @param value The agilityLayer to set.
       * @return This builder for chaining.
       */
      public Builder setAgilityLayer(int value) {
        
        agilityLayer_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *敏捷塔已通关层数
       * </pre>
       *
       * <code>int32 agility_layer = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearAgilityLayer() {
        
        agilityLayer_ = 0;
        onChanged();
        return this;
      }

      private int wisdomLayer_ ;
      /**
       * <pre>
       *智力塔已通关层数
       * </pre>
       *
       * <code>int32 wisdom_layer = 4;</code>
       * @return The wisdomLayer.
       */
      public int getWisdomLayer() {
        return wisdomLayer_;
      }
      /**
       * <pre>
       *智力塔已通关层数
       * </pre>
       *
       * <code>int32 wisdom_layer = 4;</code>
       * @param value The wisdomLayer to set.
       * @return This builder for chaining.
       */
      public Builder setWisdomLayer(int value) {
        
        wisdomLayer_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *智力塔已通关层数
       * </pre>
       *
       * <code>int32 wisdom_layer = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearWisdomLayer() {
        
        wisdomLayer_ = 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.TowerInfoResponse)
    }

    // @@protoc_insertion_point(class_scope:pb.TowerInfoResponse)
    private static final pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse();
    }

    public static pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.tower.Tower.TowerInfoResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PbTowerBattleParamOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.PbTowerBattleParam)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code pb.PbTowerBattleParam}
   */
  public  static final class PbTowerBattleParam extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PbTowerBattleParam)
      PbTowerBattleParamOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PbTowerBattleParam.newBuilder() to construct.
    private PbTowerBattleParam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PbTowerBattleParam() {
    }

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_PbTowerBattleParam_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam.class, pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam.Builder.class);
    }

    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 {
      unknownFields.writeTo(output);
    }

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

      size = 0;
      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.tower.Tower.PbTowerBattleParam)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam other = (pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam) obj;

      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 = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_PbTowerBattleParam_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam.class, pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam.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();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_PbTowerBattleParam_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam.getDefaultInstance();
      }

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

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

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

    // @@protoc_insertion_point(class_scope:pb.PbTowerBattleParam)
    private static final pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam();
    }

    public static pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleParam getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <pre>
     *塔类型，1普通，2力量，3敏捷，4智力
     * </pre>
     *
     * <code>int32 tower_type = 1;</code>
     * @return The towerType.
     */
    int getTowerType();

    /**
     * <pre>
     *层数
     * </pre>
     *
     * <code>int32 layer = 2;</code>
     * @return The layer.
     */
    int getLayer();

    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> 
        getRewardsList();
    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing getRewards(int index);
    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    int getRewardsCount();
    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> 
        getRewardsOrBuilderList();
    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder getRewardsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code pb.PbTowerBattleResult}
   */
  public  static final class PbTowerBattleResult extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PbTowerBattleResult)
      PbTowerBattleResultOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PbTowerBattleResult.newBuilder() to construct.
    private PbTowerBattleResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PbTowerBattleResult() {
      rewards_ = java.util.Collections.emptyList();
    }

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

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

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

              layer_ = input.readInt32();
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                rewards_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing>();
                mutable_bitField0_ |= 0x00000001;
              }
              rewards_.add(
                  input.readMessage(pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.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)) {
          rewards_ = java.util.Collections.unmodifiableList(rewards_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_PbTowerBattleResult_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_PbTowerBattleResult_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult.class, pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult.Builder.class);
    }

    public static final int TOWER_TYPE_FIELD_NUMBER = 1;
    private int towerType_;
    /**
     * <pre>
     *塔类型，1普通，2力量，3敏捷，4智力
     * </pre>
     *
     * <code>int32 tower_type = 1;</code>
     * @return The towerType.
     */
    public int getTowerType() {
      return towerType_;
    }

    public static final int LAYER_FIELD_NUMBER = 2;
    private int layer_;
    /**
     * <pre>
     *层数
     * </pre>
     *
     * <code>int32 layer = 2;</code>
     * @return The layer.
     */
    public int getLayer() {
      return layer_;
    }

    public static final int REWARDS_FIELD_NUMBER = 3;
    private java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> rewards_;
    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> getRewardsList() {
      return rewards_;
    }
    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    public java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> 
        getRewardsOrBuilderList() {
      return rewards_;
    }
    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    public int getRewardsCount() {
      return rewards_.size();
    }
    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing getRewards(int index) {
      return rewards_.get(index);
    }
    /**
     * <pre>
     *通关奖励
     * </pre>
     *
     * <code>repeated .pb.PbThing rewards = 3;</code>
     */
    public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder getRewardsOrBuilder(
        int index) {
      return rewards_.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 (towerType_ != 0) {
        output.writeInt32(1, towerType_);
      }
      if (layer_ != 0) {
        output.writeInt32(2, layer_);
      }
      for (int i = 0; i < rewards_.size(); i++) {
        output.writeMessage(3, rewards_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (towerType_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, towerType_);
      }
      if (layer_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, layer_);
      }
      for (int i = 0; i < rewards_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, rewards_.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.tower.Tower.PbTowerBattleResult)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult other = (pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult) obj;

      if (getTowerType()
          != other.getTowerType()) return false;
      if (getLayer()
          != other.getLayer()) return false;
      if (!getRewardsList()
          .equals(other.getRewardsList())) 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) + TOWER_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getTowerType();
      hash = (37 * hash) + LAYER_FIELD_NUMBER;
      hash = (53 * hash) + getLayer();
      if (getRewardsCount() > 0) {
        hash = (37 * hash) + REWARDS_FIELD_NUMBER;
        hash = (53 * hash) + getRewardsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_PbTowerBattleResult_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult.class, pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        layer_ = 0;

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.tower.Tower.internal_static_pb_PbTowerBattleResult_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult.getDefaultInstance();
      }

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

      @java.lang.Override
      public pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult buildPartial() {
        pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult result = new pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult(this);
        int from_bitField0_ = bitField0_;
        result.towerType_ = towerType_;
        result.layer_ = layer_;
        if (rewardsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            rewards_ = java.util.Collections.unmodifiableList(rewards_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.rewards_ = rewards_;
        } else {
          result.rewards_ = rewardsBuilder_.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.tower.Tower.PbTowerBattleResult) {
          return mergeFrom((pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult other) {
        if (other == pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult.getDefaultInstance()) return this;
        if (other.getTowerType() != 0) {
          setTowerType(other.getTowerType());
        }
        if (other.getLayer() != 0) {
          setLayer(other.getLayer());
        }
        if (rewardsBuilder_ == null) {
          if (!other.rewards_.isEmpty()) {
            if (rewards_.isEmpty()) {
              rewards_ = other.rewards_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureRewardsIsMutable();
              rewards_.addAll(other.rewards_);
            }
            onChanged();
          }
        } else {
          if (!other.rewards_.isEmpty()) {
            if (rewardsBuilder_.isEmpty()) {
              rewardsBuilder_.dispose();
              rewardsBuilder_ = null;
              rewards_ = other.rewards_;
              bitField0_ = (bitField0_ & ~0x00000001);
              rewardsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getRewardsFieldBuilder() : null;
            } else {
              rewardsBuilder_.addAllMessages(other.rewards_);
            }
          }
        }
        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.tower.Tower.PbTowerBattleResult parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int towerType_ ;
      /**
       * <pre>
       *塔类型，1普通，2力量，3敏捷，4智力
       * </pre>
       *
       * <code>int32 tower_type = 1;</code>
       * @return The towerType.
       */
      public int getTowerType() {
        return towerType_;
      }
      /**
       * <pre>
       *塔类型，1普通，2力量，3敏捷，4智力
       * </pre>
       *
       * <code>int32 tower_type = 1;</code>
       * @param value The towerType to set.
       * @return This builder for chaining.
       */
      public Builder setTowerType(int value) {
        
        towerType_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *塔类型，1普通，2力量，3敏捷，4智力
       * </pre>
       *
       * <code>int32 tower_type = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearTowerType() {
        
        towerType_ = 0;
        onChanged();
        return this;
      }

      private int layer_ ;
      /**
       * <pre>
       *层数
       * </pre>
       *
       * <code>int32 layer = 2;</code>
       * @return The layer.
       */
      public int getLayer() {
        return layer_;
      }
      /**
       * <pre>
       *层数
       * </pre>
       *
       * <code>int32 layer = 2;</code>
       * @param value The layer to set.
       * @return This builder for chaining.
       */
      public Builder setLayer(int value) {
        
        layer_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *层数
       * </pre>
       *
       * <code>int32 layer = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearLayer() {
        
        layer_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> rewards_ =
        java.util.Collections.emptyList();
      private void ensureRewardsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          rewards_ = new java.util.ArrayList<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing>(rewards_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> rewardsBuilder_;

      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> getRewardsList() {
        if (rewardsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(rewards_);
        } else {
          return rewardsBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public int getRewardsCount() {
        if (rewardsBuilder_ == null) {
          return rewards_.size();
        } else {
          return rewardsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing getRewards(int index) {
        if (rewardsBuilder_ == null) {
          return rewards_.get(index);
        } else {
          return rewardsBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public Builder setRewards(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing value) {
        if (rewardsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRewardsIsMutable();
          rewards_.set(index, value);
          onChanged();
        } else {
          rewardsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public Builder setRewards(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder builderForValue) {
        if (rewardsBuilder_ == null) {
          ensureRewardsIsMutable();
          rewards_.set(index, builderForValue.build());
          onChanged();
        } else {
          rewardsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public Builder addRewards(pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing value) {
        if (rewardsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRewardsIsMutable();
          rewards_.add(value);
          onChanged();
        } else {
          rewardsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public Builder addRewards(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing value) {
        if (rewardsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRewardsIsMutable();
          rewards_.add(index, value);
          onChanged();
        } else {
          rewardsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public Builder addRewards(
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder builderForValue) {
        if (rewardsBuilder_ == null) {
          ensureRewardsIsMutable();
          rewards_.add(builderForValue.build());
          onChanged();
        } else {
          rewardsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public Builder addRewards(
          int index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder builderForValue) {
        if (rewardsBuilder_ == null) {
          ensureRewardsIsMutable();
          rewards_.add(index, builderForValue.build());
          onChanged();
        } else {
          rewardsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public Builder addAllRewards(
          java.lang.Iterable<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing> values) {
        if (rewardsBuilder_ == null) {
          ensureRewardsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, rewards_);
          onChanged();
        } else {
          rewardsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public Builder clearRewards() {
        if (rewardsBuilder_ == null) {
          rewards_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          rewardsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public Builder removeRewards(int index) {
        if (rewardsBuilder_ == null) {
          ensureRewardsIsMutable();
          rewards_.remove(index);
          onChanged();
        } else {
          rewardsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder getRewardsBuilder(
          int index) {
        return getRewardsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder getRewardsOrBuilder(
          int index) {
        if (rewardsBuilder_ == null) {
          return rewards_.get(index);  } else {
          return rewardsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public java.util.List<? extends pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> 
           getRewardsOrBuilderList() {
        if (rewardsBuilder_ != null) {
          return rewardsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(rewards_);
        }
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder addRewardsBuilder() {
        return getRewardsFieldBuilder().addBuilder(
            pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.getDefaultInstance());
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder addRewardsBuilder(
          int index) {
        return getRewardsFieldBuilder().addBuilder(
            index, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.getDefaultInstance());
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 3;</code>
       */
      public java.util.List<pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder> 
           getRewardsBuilderList() {
        return getRewardsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder> 
          getRewardsFieldBuilder() {
        if (rewardsBuilder_ == null) {
          rewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder, pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThingOrBuilder>(
                  rewards_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          rewards_ = null;
        }
        return rewardsBuilder_;
      }
      @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.PbTowerBattleResult)
    }

    // @@protoc_insertion_point(class_scope:pb.PbTowerBattleResult)
    private static final pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult();
    }

    public static pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.tower.Tower.PbTowerBattleResult getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_TowerInfoResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_TowerInfoResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PbTowerBattleParam_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PbTowerBattleParam_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PbTowerBattleResult_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PbTowerBattleResult_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\013Tower.proto\022\002pb\032\020MiniStruct.proto\"\216\001\n\021" +
      "TowerInfoResponse\022\024\n\014normal_layer\030\001 \001(\005\022" +
      "\026\n\016strength_layer\030\002 \001(\005\022\025\n\ragility_layer" +
      "\030\003 \001(\005\022\024\n\014wisdom_layer\030\004 \001(\005\"\036\n\005Proto\022\013\n" +
      "\007UNKNOWN\020\000\022\010\n\002ID\020\301\356m\"\024\n\022PbTowerBattlePar" +
      "am\"V\n\023PbTowerBattleResult\022\022\n\ntower_type\030" +
      "\001 \001(\005\022\r\n\005layer\030\002 \001(\005\022\034\n\007rewards\030\003 \003(\0132\013." +
      "pb.PbThingB5\n\033pb.xiugou.x1.protobuf.towe" +
      "r\252\002\025pb.xiugou.x1.protobufb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          pb.xiugou.x1.protobuf.ministruct.MiniStruct.getDescriptor(),
        });
    internal_static_pb_TowerInfoResponse_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_pb_TowerInfoResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_TowerInfoResponse_descriptor,
        new java.lang.String[] { "NormalLayer", "StrengthLayer", "AgilityLayer", "WisdomLayer", });
    internal_static_pb_PbTowerBattleParam_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_pb_PbTowerBattleParam_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PbTowerBattleParam_descriptor,
        new java.lang.String[] { });
    internal_static_pb_PbTowerBattleResult_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_pb_PbTowerBattleResult_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PbTowerBattleResult_descriptor,
        new java.lang.String[] { "TowerType", "Layer", "Rewards", });
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
