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

package pb.xiugou.x1.protobuf.goldenpig;

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

    /**
     * <pre>
     *今日已挑战次数
     * </pre>
     *
     * <code>int32 challenge_num = 1;</code>
     * @return The challengeNum.
     */
    int getChallengeNum();

    /**
     * <pre>
     *已通关的最大难度
     * </pre>
     *
     * <code>int32 max_stage = 2;</code>
     * @return The maxStage.
     */
    int getMaxStage();

    /**
     * <pre>
     *每日重置时间
     * </pre>
     *
     * <code>int64 daily_time = 3;</code>
     * @return The dailyTime.
     */
    long getDailyTime();
  }
  /**
   * Protobuf type {@code pb.GoldenPigInfoResponse}
   */
  public  static final class GoldenPigInfoResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.GoldenPigInfoResponse)
      GoldenPigInfoResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GoldenPigInfoResponse.newBuilder() to construct.
    private GoldenPigInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private GoldenPigInfoResponse() {
    }

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

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

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

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

              dailyTime_ = input.readInt64();
              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.goldenpig.GoldenPig.internal_static_pb_GoldenPigInfoResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.internal_static_pb_GoldenPigInfoResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse.class, pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse.Builder.class);
    }

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

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


      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 1700001: 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.goldenpig.GoldenPig.GoldenPigInfoResponse.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.GoldenPigInfoResponse.Proto)
    }

    public static final int CHALLENGE_NUM_FIELD_NUMBER = 1;
    private int challengeNum_;
    /**
     * <pre>
     *今日已挑战次数
     * </pre>
     *
     * <code>int32 challenge_num = 1;</code>
     * @return The challengeNum.
     */
    public int getChallengeNum() {
      return challengeNum_;
    }

    public static final int MAX_STAGE_FIELD_NUMBER = 2;
    private int maxStage_;
    /**
     * <pre>
     *已通关的最大难度
     * </pre>
     *
     * <code>int32 max_stage = 2;</code>
     * @return The maxStage.
     */
    public int getMaxStage() {
      return maxStage_;
    }

    public static final int DAILY_TIME_FIELD_NUMBER = 3;
    private long dailyTime_;
    /**
     * <pre>
     *每日重置时间
     * </pre>
     *
     * <code>int64 daily_time = 3;</code>
     * @return The dailyTime.
     */
    public long getDailyTime() {
      return dailyTime_;
    }

    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 (challengeNum_ != 0) {
        output.writeInt32(1, challengeNum_);
      }
      if (maxStage_ != 0) {
        output.writeInt32(2, maxStage_);
      }
      if (dailyTime_ != 0L) {
        output.writeInt64(3, dailyTime_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (challengeNum_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, challengeNum_);
      }
      if (maxStage_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, maxStage_);
      }
      if (dailyTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, dailyTime_);
      }
      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.goldenpig.GoldenPig.GoldenPigInfoResponse)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse other = (pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse) obj;

      if (getChallengeNum()
          != other.getChallengeNum()) return false;
      if (getMaxStage()
          != other.getMaxStage()) return false;
      if (getDailyTime()
          != other.getDailyTime()) 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) + CHALLENGE_NUM_FIELD_NUMBER;
      hash = (53 * hash) + getChallengeNum();
      hash = (37 * hash) + MAX_STAGE_FIELD_NUMBER;
      hash = (53 * hash) + getMaxStage();
      hash = (37 * hash) + DAILY_TIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getDailyTime());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.internal_static_pb_GoldenPigInfoResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse.class, pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse.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();
        challengeNum_ = 0;

        maxStage_ = 0;

        dailyTime_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.internal_static_pb_GoldenPigInfoResponse_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse.getDefaultInstance();
      }

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

      @java.lang.Override
      public pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse buildPartial() {
        pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse result = new pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse(this);
        result.challengeNum_ = challengeNum_;
        result.maxStage_ = maxStage_;
        result.dailyTime_ = dailyTime_;
        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.goldenpig.GoldenPig.GoldenPigInfoResponse) {
          return mergeFrom((pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse other) {
        if (other == pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse.getDefaultInstance()) return this;
        if (other.getChallengeNum() != 0) {
          setChallengeNum(other.getChallengeNum());
        }
        if (other.getMaxStage() != 0) {
          setMaxStage(other.getMaxStage());
        }
        if (other.getDailyTime() != 0L) {
          setDailyTime(other.getDailyTime());
        }
        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.goldenpig.GoldenPig.GoldenPigInfoResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int challengeNum_ ;
      /**
       * <pre>
       *今日已挑战次数
       * </pre>
       *
       * <code>int32 challenge_num = 1;</code>
       * @return The challengeNum.
       */
      public int getChallengeNum() {
        return challengeNum_;
      }
      /**
       * <pre>
       *今日已挑战次数
       * </pre>
       *
       * <code>int32 challenge_num = 1;</code>
       * @param value The challengeNum to set.
       * @return This builder for chaining.
       */
      public Builder setChallengeNum(int value) {
        
        challengeNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *今日已挑战次数
       * </pre>
       *
       * <code>int32 challenge_num = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearChallengeNum() {
        
        challengeNum_ = 0;
        onChanged();
        return this;
      }

      private int maxStage_ ;
      /**
       * <pre>
       *已通关的最大难度
       * </pre>
       *
       * <code>int32 max_stage = 2;</code>
       * @return The maxStage.
       */
      public int getMaxStage() {
        return maxStage_;
      }
      /**
       * <pre>
       *已通关的最大难度
       * </pre>
       *
       * <code>int32 max_stage = 2;</code>
       * @param value The maxStage to set.
       * @return This builder for chaining.
       */
      public Builder setMaxStage(int value) {
        
        maxStage_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *已通关的最大难度
       * </pre>
       *
       * <code>int32 max_stage = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearMaxStage() {
        
        maxStage_ = 0;
        onChanged();
        return this;
      }

      private long dailyTime_ ;
      /**
       * <pre>
       *每日重置时间
       * </pre>
       *
       * <code>int64 daily_time = 3;</code>
       * @return The dailyTime.
       */
      public long getDailyTime() {
        return dailyTime_;
      }
      /**
       * <pre>
       *每日重置时间
       * </pre>
       *
       * <code>int64 daily_time = 3;</code>
       * @param value The dailyTime to set.
       * @return This builder for chaining.
       */
      public Builder setDailyTime(long value) {
        
        dailyTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *每日重置时间
       * </pre>
       *
       * <code>int64 daily_time = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearDailyTime() {
        
        dailyTime_ = 0L;
        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.GoldenPigInfoResponse)
    }

    // @@protoc_insertion_point(class_scope:pb.GoldenPigInfoResponse)
    private static final pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse();
    }

    public static pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.goldenpig.GoldenPig.GoldenPigInfoResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <pre>
     *难度
     * </pre>
     *
     * <code>int32 stage = 1;</code>
     * @return The stage.
     */
    int getStage();
  }
  /**
   * Protobuf type {@code pb.PbGoldenPigBattleParam}
   */
  public  static final class PbGoldenPigBattleParam extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PbGoldenPigBattleParam)
      PbGoldenPigBattleParamOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PbGoldenPigBattleParam.newBuilder() to construct.
    private PbGoldenPigBattleParam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PbGoldenPigBattleParam() {
    }

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

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

              stage_ = 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.goldenpig.GoldenPig.internal_static_pb_PbGoldenPigBattleParam_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.internal_static_pb_PbGoldenPigBattleParam_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam.class, pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam.Builder.class);
    }

    public static final int STAGE_FIELD_NUMBER = 1;
    private int stage_;
    /**
     * <pre>
     *难度
     * </pre>
     *
     * <code>int32 stage = 1;</code>
     * @return The stage.
     */
    public int getStage() {
      return stage_;
    }

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

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

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

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

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.internal_static_pb_PbGoldenPigBattleParam_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam.class, pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam.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();
        stage_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.internal_static_pb_PbGoldenPigBattleParam_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam.getDefaultInstance();
      }

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

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

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

      private int stage_ ;
      /**
       * <pre>
       *难度
       * </pre>
       *
       * <code>int32 stage = 1;</code>
       * @return The stage.
       */
      public int getStage() {
        return stage_;
      }
      /**
       * <pre>
       *难度
       * </pre>
       *
       * <code>int32 stage = 1;</code>
       * @param value The stage to set.
       * @return This builder for chaining.
       */
      public Builder setStage(int value) {
        
        stage_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *难度
       * </pre>
       *
       * <code>int32 stage = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearStage() {
        
        stage_ = 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.PbGoldenPigBattleParam)
    }

    // @@protoc_insertion_point(class_scope:pb.PbGoldenPigBattleParam)
    private static final pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam();
    }

    public static pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleParam getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <pre>
     *今日已挑战次数
     * </pre>
     *
     * <code>int32 challenge_num = 1;</code>
     * @return The challengeNum.
     */
    int getChallengeNum();

    /**
     * <pre>
     *已通关的最大层数
     * </pre>
     *
     * <code>int32 max_stage = 2;</code>
     * @return The maxStage.
     */
    int getMaxStage();

    /**
     * <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);

    /**
     * <pre>
     *每日剩余免费次数
     * </pre>
     *
     * <code>int32 free_times = 4;</code>
     * @return The freeTimes.
     */
    int getFreeTimes();
  }
  /**
   * Protobuf type {@code pb.PbGoldenPigBattleResult}
   */
  public  static final class PbGoldenPigBattleResult extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:pb.PbGoldenPigBattleResult)
      PbGoldenPigBattleResultOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PbGoldenPigBattleResult.newBuilder() to construct.
    private PbGoldenPigBattleResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PbGoldenPigBattleResult() {
      rewards_ = java.util.Collections.emptyList();
    }

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

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

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

              maxStage_ = 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;
            }
            case 32: {

              freeTimes_ = 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 {
        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.goldenpig.GoldenPig.internal_static_pb_PbGoldenPigBattleResult_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.internal_static_pb_PbGoldenPigBattleResult_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult.class, pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult.Builder.class);
    }

    public static final int CHALLENGE_NUM_FIELD_NUMBER = 1;
    private int challengeNum_;
    /**
     * <pre>
     *今日已挑战次数
     * </pre>
     *
     * <code>int32 challenge_num = 1;</code>
     * @return The challengeNum.
     */
    public int getChallengeNum() {
      return challengeNum_;
    }

    public static final int MAX_STAGE_FIELD_NUMBER = 2;
    private int maxStage_;
    /**
     * <pre>
     *已通关的最大层数
     * </pre>
     *
     * <code>int32 max_stage = 2;</code>
     * @return The maxStage.
     */
    public int getMaxStage() {
      return maxStage_;
    }

    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);
    }

    public static final int FREE_TIMES_FIELD_NUMBER = 4;
    private int freeTimes_;
    /**
     * <pre>
     *每日剩余免费次数
     * </pre>
     *
     * <code>int32 free_times = 4;</code>
     * @return The freeTimes.
     */
    public int getFreeTimes() {
      return freeTimes_;
    }

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

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

      size = 0;
      if (challengeNum_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, challengeNum_);
      }
      if (maxStage_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, maxStage_);
      }
      for (int i = 0; i < rewards_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, rewards_.get(i));
      }
      if (freeTimes_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, freeTimes_);
      }
      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.goldenpig.GoldenPig.PbGoldenPigBattleResult)) {
        return super.equals(obj);
      }
      pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult other = (pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult) obj;

      if (getChallengeNum()
          != other.getChallengeNum()) return false;
      if (getMaxStage()
          != other.getMaxStage()) return false;
      if (!getRewardsList()
          .equals(other.getRewardsList())) return false;
      if (getFreeTimes()
          != other.getFreeTimes()) 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) + CHALLENGE_NUM_FIELD_NUMBER;
      hash = (53 * hash) + getChallengeNum();
      hash = (37 * hash) + MAX_STAGE_FIELD_NUMBER;
      hash = (53 * hash) + getMaxStage();
      if (getRewardsCount() > 0) {
        hash = (37 * hash) + REWARDS_FIELD_NUMBER;
        hash = (53 * hash) + getRewardsList().hashCode();
      }
      hash = (37 * hash) + FREE_TIMES_FIELD_NUMBER;
      hash = (53 * hash) + getFreeTimes();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.internal_static_pb_PbGoldenPigBattleResult_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult.class, pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult.Builder.class);
      }

      // Construct using pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult.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();
        challengeNum_ = 0;

        maxStage_ = 0;

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

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.internal_static_pb_PbGoldenPigBattleResult_descriptor;
      }

      @java.lang.Override
      public pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult getDefaultInstanceForType() {
        return pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult.getDefaultInstance();
      }

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

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

      public Builder mergeFrom(pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult other) {
        if (other == pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult.getDefaultInstance()) return this;
        if (other.getChallengeNum() != 0) {
          setChallengeNum(other.getChallengeNum());
        }
        if (other.getMaxStage() != 0) {
          setMaxStage(other.getMaxStage());
        }
        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_);
            }
          }
        }
        if (other.getFreeTimes() != 0) {
          setFreeTimes(other.getFreeTimes());
        }
        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.goldenpig.GoldenPig.PbGoldenPigBattleResult parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int challengeNum_ ;
      /**
       * <pre>
       *今日已挑战次数
       * </pre>
       *
       * <code>int32 challenge_num = 1;</code>
       * @return The challengeNum.
       */
      public int getChallengeNum() {
        return challengeNum_;
      }
      /**
       * <pre>
       *今日已挑战次数
       * </pre>
       *
       * <code>int32 challenge_num = 1;</code>
       * @param value The challengeNum to set.
       * @return This builder for chaining.
       */
      public Builder setChallengeNum(int value) {
        
        challengeNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *今日已挑战次数
       * </pre>
       *
       * <code>int32 challenge_num = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearChallengeNum() {
        
        challengeNum_ = 0;
        onChanged();
        return this;
      }

      private int maxStage_ ;
      /**
       * <pre>
       *已通关的最大层数
       * </pre>
       *
       * <code>int32 max_stage = 2;</code>
       * @return The maxStage.
       */
      public int getMaxStage() {
        return maxStage_;
      }
      /**
       * <pre>
       *已通关的最大层数
       * </pre>
       *
       * <code>int32 max_stage = 2;</code>
       * @param value The maxStage to set.
       * @return This builder for chaining.
       */
      public Builder setMaxStage(int value) {
        
        maxStage_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *已通关的最大层数
       * </pre>
       *
       * <code>int32 max_stage = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearMaxStage() {
        
        maxStage_ = 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_;
      }

      private int freeTimes_ ;
      /**
       * <pre>
       *每日剩余免费次数
       * </pre>
       *
       * <code>int32 free_times = 4;</code>
       * @return The freeTimes.
       */
      public int getFreeTimes() {
        return freeTimes_;
      }
      /**
       * <pre>
       *每日剩余免费次数
       * </pre>
       *
       * <code>int32 free_times = 4;</code>
       * @param value The freeTimes to set.
       * @return This builder for chaining.
       */
      public Builder setFreeTimes(int value) {
        
        freeTimes_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *每日剩余免费次数
       * </pre>
       *
       * <code>int32 free_times = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearFreeTimes() {
        
        freeTimes_ = 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.PbGoldenPigBattleResult)
    }

    // @@protoc_insertion_point(class_scope:pb.PbGoldenPigBattleResult)
    private static final pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult();
    }

    public static pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public pb.xiugou.x1.protobuf.goldenpig.GoldenPig.PbGoldenPigBattleResult getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_GoldenPigInfoResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_GoldenPigInfoResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PbGoldenPigBattleParam_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PbGoldenPigBattleParam_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_PbGoldenPigBattleResult_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_pb_PbGoldenPigBattleResult_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\017GoldenPig.proto\022\002pb\032\020MiniStruct.proto\"" +
      "u\n\025GoldenPigInfoResponse\022\025\n\rchallenge_nu" +
      "m\030\001 \001(\005\022\021\n\tmax_stage\030\002 \001(\005\022\022\n\ndaily_time" +
      "\030\003 \001(\003\"\036\n\005Proto\022\013\n\007UNKNOWN\020\000\022\010\n\002ID\020\241\341g\"\'" +
      "\n\026PbGoldenPigBattleParam\022\r\n\005stage\030\001 \001(\005\"" +
      "u\n\027PbGoldenPigBattleResult\022\025\n\rchallenge_" +
      "num\030\001 \001(\005\022\021\n\tmax_stage\030\002 \001(\005\022\034\n\007rewards\030" +
      "\003 \003(\0132\013.pb.PbThing\022\022\n\nfree_times\030\004 \001(\005B9" +
      "\n\037pb.xiugou.x1.protobuf.goldenpig\252\002\025pb.x" +
      "iugou.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_GoldenPigInfoResponse_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_pb_GoldenPigInfoResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_GoldenPigInfoResponse_descriptor,
        new java.lang.String[] { "ChallengeNum", "MaxStage", "DailyTime", });
    internal_static_pb_PbGoldenPigBattleParam_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_pb_PbGoldenPigBattleParam_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PbGoldenPigBattleParam_descriptor,
        new java.lang.String[] { "Stage", });
    internal_static_pb_PbGoldenPigBattleResult_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_pb_PbGoldenPigBattleResult_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_pb_PbGoldenPigBattleResult_descriptor,
        new java.lang.String[] { "ChallengeNum", "MaxStage", "Rewards", "FreeTimes", });
    pb.xiugou.x1.protobuf.ministruct.MiniStruct.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
