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

package pb.xiugou.x1.protobuf.dungeon;

public final class Dungeon {
  private Dungeon() {}
  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 DungeonInfoResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.DungeonInfoResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *日常副本通已关ID
     * </pre>
     *
     * <code>repeated int32 normal_dungeons = 1;</code>
     * @return A list containing the normalDungeons.
     */
    java.util.List<java.lang.Integer> getNormalDungeonsList();
    /**
     * <pre>
     *日常副本通已关ID
     * </pre>
     *
     * <code>repeated int32 normal_dungeons = 1;</code>
     * @return The count of normalDungeons.
     */
    int getNormalDungeonsCount();
    /**
     * <pre>
     *日常副本通已关ID
     * </pre>
     *
     * <code>repeated int32 normal_dungeons = 1;</code>
     * @param index The index of the element to return.
     * @return The normalDungeons at the given index.
     */
    int getNormalDungeons(int index);
  }
  /**
   * Protobuf type {@code pb.DungeonInfoResponse}
   */
  public  static final class DungeonInfoResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.DungeonInfoResponse)
      DungeonInfoResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DungeonInfoResponse.newBuilder() to construct.
    private DungeonInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private DungeonInfoResponse() {
      normalDungeons_ = emptyIntList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private DungeonInfoResponse(
        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: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                normalDungeons_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              normalDungeons_.addInt(input.readInt32());
              break;
            }
            case 10: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                normalDungeons_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                normalDungeons_.addInt(input.readInt32());
              }
              input.popLimit(limit);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          normalDungeons_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_DungeonInfoResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_DungeonInfoResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse.class, pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse.Builder.class);
    }

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

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


      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 2200001: 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.dungeon.Dungeon.DungeonInfoResponse.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.DungeonInfoResponse.Proto)
    }

    public static final int NORMAL_DUNGEONS_FIELD_NUMBER = 1;
    private com.google.protobuf.Internal.IntList normalDungeons_;
    /**
     * <pre>
     *日常副本通已关ID
     * </pre>
     *
     * <code>repeated int32 normal_dungeons = 1;</code>
     * @return A list containing the normalDungeons.
     */
    public java.util.List<java.lang.Integer>
        getNormalDungeonsList() {
      return normalDungeons_;
    }
    /**
     * <pre>
     *日常副本通已关ID
     * </pre>
     *
     * <code>repeated int32 normal_dungeons = 1;</code>
     * @return The count of normalDungeons.
     */
    public int getNormalDungeonsCount() {
      return normalDungeons_.size();
    }
    /**
     * <pre>
     *日常副本通已关ID
     * </pre>
     *
     * <code>repeated int32 normal_dungeons = 1;</code>
     * @param index The index of the element to return.
     * @return The normalDungeons at the given index.
     */
    public int getNormalDungeons(int index) {
      return normalDungeons_.getInt(index);
    }
    private int normalDungeonsMemoizedSerializedSize = -1;

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (getNormalDungeonsList().size() > 0) {
        output.writeUInt32NoTag(10);
        output.writeUInt32NoTag(normalDungeonsMemoizedSerializedSize);
      }
      for (int i = 0; i < normalDungeons_.size(); i++) {
        output.writeInt32NoTag(normalDungeons_.getInt(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < normalDungeons_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(normalDungeons_.getInt(i));
        }
        size += dataSize;
        if (!getNormalDungeonsList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        normalDungeonsMemoizedSerializedSize = dataSize;
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse other = (pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse) obj;

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

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_DungeonInfoResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse.class, pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse.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();
        normalDungeons_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_DungeonInfoResponse_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse.getDefaultInstance();
      }

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

      @java.lang.Override
      public pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse buildPartial() {
        pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse result = new pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          normalDungeons_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.normalDungeons_ = normalDungeons_;
        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.dungeon.Dungeon.DungeonInfoResponse) {
          return mergeFrom((pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse other) {
        if (other == pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse.getDefaultInstance()) return this;
        if (!other.normalDungeons_.isEmpty()) {
          if (normalDungeons_.isEmpty()) {
            normalDungeons_ = other.normalDungeons_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureNormalDungeonsIsMutable();
            normalDungeons_.addAll(other.normalDungeons_);
          }
          onChanged();
        }
        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.dungeon.Dungeon.DungeonInfoResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.Internal.IntList normalDungeons_ = emptyIntList();
      private void ensureNormalDungeonsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          normalDungeons_ = mutableCopy(normalDungeons_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <pre>
       *日常副本通已关ID
       * </pre>
       *
       * <code>repeated int32 normal_dungeons = 1;</code>
       * @return A list containing the normalDungeons.
       */
      public java.util.List<java.lang.Integer>
          getNormalDungeonsList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(normalDungeons_) : normalDungeons_;
      }
      /**
       * <pre>
       *日常副本通已关ID
       * </pre>
       *
       * <code>repeated int32 normal_dungeons = 1;</code>
       * @return The count of normalDungeons.
       */
      public int getNormalDungeonsCount() {
        return normalDungeons_.size();
      }
      /**
       * <pre>
       *日常副本通已关ID
       * </pre>
       *
       * <code>repeated int32 normal_dungeons = 1;</code>
       * @param index The index of the element to return.
       * @return The normalDungeons at the given index.
       */
      public int getNormalDungeons(int index) {
        return normalDungeons_.getInt(index);
      }
      /**
       * <pre>
       *日常副本通已关ID
       * </pre>
       *
       * <code>repeated int32 normal_dungeons = 1;</code>
       * @param index The index to set the value at.
       * @param value The normalDungeons to set.
       * @return This builder for chaining.
       */
      public Builder setNormalDungeons(
          int index, int value) {
        ensureNormalDungeonsIsMutable();
        normalDungeons_.setInt(index, value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       *日常副本通已关ID
       * </pre>
       *
       * <code>repeated int32 normal_dungeons = 1;</code>
       * @param value The normalDungeons to add.
       * @return This builder for chaining.
       */
      public Builder addNormalDungeons(int value) {
        ensureNormalDungeonsIsMutable();
        normalDungeons_.addInt(value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       *日常副本通已关ID
       * </pre>
       *
       * <code>repeated int32 normal_dungeons = 1;</code>
       * @param values The normalDungeons to add.
       * @return This builder for chaining.
       */
      public Builder addAllNormalDungeons(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureNormalDungeonsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, normalDungeons_);
        onChanged();
        return this;
      }
      /**
       * <pre>
       *日常副本通已关ID
       * </pre>
       *
       * <code>repeated int32 normal_dungeons = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearNormalDungeons() {
        normalDungeons_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        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.DungeonInfoResponse)
    }

    // @@protoc_insertion_point(class_scope:pb.DungeonInfoResponse)
    private static final pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse();
    }

    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.dungeon.Dungeon.DungeonInfoResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <pre>
     *援军英雄标识
     * </pre>
     *
     * <code>int32 aid_hero = 1;</code>
     * @return The aidHero.
     */
    int getAidHero();
  }
  /**
   * Protobuf type {@code pb.PbDungeonBattleParam}
   */
  public  static final class PbDungeonBattleParam extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PbDungeonBattleParam)
      PbDungeonBattleParamOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PbDungeonBattleParam.newBuilder() to construct.
    private PbDungeonBattleParam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PbDungeonBattleParam() {
    }

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

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

              aidHero_ = 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.dungeon.Dungeon.internal_static_pb_PbDungeonBattleParam_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_PbDungeonBattleParam_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam.class, pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam.Builder.class);
    }

    public static final int AID_HERO_FIELD_NUMBER = 1;
    private int aidHero_;
    /**
     * <pre>
     *援军英雄标识
     * </pre>
     *
     * <code>int32 aid_hero = 1;</code>
     * @return The aidHero.
     */
    public int getAidHero() {
      return aidHero_;
    }

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

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

      size = 0;
      if (aidHero_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, aidHero_);
      }
      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.dungeon.Dungeon.PbDungeonBattleParam)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam other = (pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam) obj;

      if (getAidHero()
          != other.getAidHero()) 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) + AID_HERO_FIELD_NUMBER;
      hash = (53 * hash) + getAidHero();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_PbDungeonBattleParam_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam.class, pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam.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();
        aidHero_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_PbDungeonBattleParam_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam.getDefaultInstance();
      }

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

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

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

      private int aidHero_ ;
      /**
       * <pre>
       *援军英雄标识
       * </pre>
       *
       * <code>int32 aid_hero = 1;</code>
       * @return The aidHero.
       */
      public int getAidHero() {
        return aidHero_;
      }
      /**
       * <pre>
       *援军英雄标识
       * </pre>
       *
       * <code>int32 aid_hero = 1;</code>
       * @param value The aidHero to set.
       * @return This builder for chaining.
       */
      public Builder setAidHero(int value) {
        
        aidHero_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *援军英雄标识
       * </pre>
       *
       * <code>int32 aid_hero = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearAidHero() {
        
        aidHero_ = 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.PbDungeonBattleParam)
    }

    // @@protoc_insertion_point(class_scope:pb.PbDungeonBattleParam)
    private static final pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam();
    }

    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleParam getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <pre>
     *副本ID
     * </pre>
     *
     * <code>int32 dungeon_id = 1;</code>
     * @return The dungeonId.
     */
    int getDungeonId();

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

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

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

              dungeonId_ = input.readInt32();
              break;
            }
            case 18: {
              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.dungeon.Dungeon.internal_static_pb_PbDungeonBattleResult_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_PbDungeonBattleResult_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult.class, pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult.Builder.class);
    }

    public static final int DUNGEON_ID_FIELD_NUMBER = 1;
    private int dungeonId_;
    /**
     * <pre>
     *副本ID
     * </pre>
     *
     * <code>int32 dungeon_id = 1;</code>
     * @return The dungeonId.
     */
    public int getDungeonId() {
      return dungeonId_;
    }

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

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

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

      if (getDungeonId()
          != other.getDungeonId()) 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) + DUNGEON_ID_FIELD_NUMBER;
      hash = (53 * hash) + getDungeonId();
      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.dungeon.Dungeon.PbDungeonBattleResult parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult 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.dungeon.Dungeon.PbDungeonBattleResult parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult 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.dungeon.Dungeon.PbDungeonBattleResult parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult 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.dungeon.Dungeon.PbDungeonBattleResult parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult 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.dungeon.Dungeon.PbDungeonBattleResult parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult 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.dungeon.Dungeon.PbDungeonBattleResult 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.PbDungeonBattleResult}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:pb.PbDungeonBattleResult)
        pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResultOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_PbDungeonBattleResult_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.dungeon.Dungeon.internal_static_pb_PbDungeonBattleResult_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult.class, pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult.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();
        dungeonId_ = 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.dungeon.Dungeon.internal_static_pb_PbDungeonBattleResult_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult.getDefaultInstance();
      }

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

      @java.lang.Override
      public pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult buildPartial() {
        pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult result = new pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult(this);
        int from_bitField0_ = bitField0_;
        result.dungeonId_ = dungeonId_;
        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.dungeon.Dungeon.PbDungeonBattleResult) {
          return mergeFrom((pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult other) {
        if (other == pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult.getDefaultInstance()) return this;
        if (other.getDungeonId() != 0) {
          setDungeonId(other.getDungeonId());
        }
        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.dungeon.Dungeon.PbDungeonBattleResult parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int dungeonId_ ;
      /**
       * <pre>
       *副本ID
       * </pre>
       *
       * <code>int32 dungeon_id = 1;</code>
       * @return The dungeonId.
       */
      public int getDungeonId() {
        return dungeonId_;
      }
      /**
       * <pre>
       *副本ID
       * </pre>
       *
       * <code>int32 dungeon_id = 1;</code>
       * @param value The dungeonId to set.
       * @return This builder for chaining.
       */
      public Builder setDungeonId(int value) {
        
        dungeonId_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *副本ID
       * </pre>
       *
       * <code>int32 dungeon_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearDungeonId() {
        
        dungeonId_ = 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 = 2;</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 = 2;</code>
       */
      public int getRewardsCount() {
        if (rewardsBuilder_ == null) {
          return rewards_.size();
        } else {
          return rewardsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</code>
       */
      public pb.xiugou.x1.protobuf.ministruct.MiniStruct.PbThing.Builder getRewardsBuilder(
          int index) {
        return getRewardsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       *通关奖励
       * </pre>
       *
       * <code>repeated .pb.PbThing rewards = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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.PbDungeonBattleResult)
    }

    // @@protoc_insertion_point(class_scope:pb.PbDungeonBattleResult)
    private static final pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult();
    }

    public static pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.dungeon.Dungeon.PbDungeonBattleResult getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_DungeonInfoResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_DungeonInfoResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PbDungeonBattleParam_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PbDungeonBattleParam_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PbDungeonBattleResult_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PbDungeonBattleResult_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\rDungeon.proto\022\002pb\032\020MiniStruct.proto\"O\n" +
      "\023DungeonInfoResponse\022\027\n\017normal_dungeons\030" +
      "\001 \003(\005\"\037\n\005Proto\022\013\n\007UNKNOWN\020\000\022\t\n\002ID\020\301\243\206\001\"(" +
      "\n\024PbDungeonBattleParam\022\020\n\010aid_hero\030\001 \001(\005" +
      "\"I\n\025PbDungeonBattleResult\022\022\n\ndungeon_id\030" +
      "\001 \001(\005\022\034\n\007rewards\030\002 \003(\0132\013.pb.PbThingB7\n\035p" +
      "b.xiugou.x1.protobuf.dungeon\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_DungeonInfoResponse_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_pb_DungeonInfoResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_DungeonInfoResponse_descriptor,
        new java.lang.String[] { "NormalDungeons", });
    internal_static_pb_PbDungeonBattleParam_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_pb_PbDungeonBattleParam_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PbDungeonBattleParam_descriptor,
        new java.lang.String[] { "AidHero", });
    internal_static_pb_PbDungeonBattleResult_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_pb_PbDungeonBattleResult_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PbDungeonBattleResult_descriptor,
        new java.lang.String[] { "DungeonId", "Rewards", });
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
