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

package io.grasscutter.net.proto.activity;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SalvageChallengeInfo(
      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 42: {
            io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.Builder subBuilder = null;
            if (lFPGPCBEAHPCase_ == 5) {
              subBuilder = ((io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_).toBuilder();
            }
            lFPGPCBEAHP_ =
                input.readMessage(io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_);
              lFPGPCBEAHP_ = subBuilder.buildPartial();
            }
            lFPGPCBEAHPCase_ = 5;
            break;
          }
          case 50: {
            io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.Builder subBuilder = null;
            if (lFPGPCBEAHPCase_ == 6) {
              subBuilder = ((io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_).toBuilder();
            }
            lFPGPCBEAHP_ =
                input.readMessage(io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_);
              lFPGPCBEAHP_ = subBuilder.buildPartial();
            }
            lFPGPCBEAHPCase_ = 6;
            break;
          }
          case 88: {

            isUnlock_ = input.readBool();
            break;
          }
          case 104: {

            challengeType_ = input.readUInt32();
            break;
          }
          case 120: {
            lFPGPCBEAHPCase_ = 15;
            lFPGPCBEAHP_ = input.readUInt32();
            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 io.grasscutter.net.proto.activity.Activity.internal_static_SalvageChallengeInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.activity.Activity.internal_static_SalvageChallengeInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.activity.SalvageChallengeInfo.class, io.grasscutter.net.proto.activity.SalvageChallengeInfo.Builder.class);
  }

  private int lFPGPCBEAHPCase_ = 0;
  private java.lang.Object lFPGPCBEAHP_;
  public enum LFPGPCBEAHPCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    SCORE_CHALLENGE_INFO(6),
    BUNDLE_INFO(5),
    BOSS_CHALLENGE_ID(15),
    LFPGPCBEAHP_NOT_SET(0);
    private final int value;
    private LFPGPCBEAHPCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static LFPGPCBEAHPCase valueOf(int value) {
      return forNumber(value);
    }

    public static LFPGPCBEAHPCase forNumber(int value) {
      switch (value) {
        case 6: return SCORE_CHALLENGE_INFO;
        case 5: return BUNDLE_INFO;
        case 15: return BOSS_CHALLENGE_ID;
        case 0: return LFPGPCBEAHP_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public LFPGPCBEAHPCase
  getLFPGPCBEAHPCase() {
    return LFPGPCBEAHPCase.forNumber(
        lFPGPCBEAHPCase_);
  }

  public static final int IS_UNLOCK_FIELD_NUMBER = 11;
  private boolean isUnlock_;
  /**
   * <code>bool is_unlock = 11;</code>
   * @return The isUnlock.
   */
  @java.lang.Override
  public boolean getIsUnlock() {
    return isUnlock_;
  }

  public static final int CHALLENGE_TYPE_FIELD_NUMBER = 13;
  private int challengeType_;
  /**
   * <code>uint32 challenge_type = 13;</code>
   * @return The challengeType.
   */
  @java.lang.Override
  public int getChallengeType() {
    return challengeType_;
  }

  public static final int SCORE_CHALLENGE_INFO_FIELD_NUMBER = 6;
  /**
   * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
   * @return Whether the scoreChallengeInfo field is set.
   */
  @java.lang.Override
  public boolean hasScoreChallengeInfo() {
    return lFPGPCBEAHPCase_ == 6;
  }
  /**
   * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
   * @return The scoreChallengeInfo.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo getScoreChallengeInfo() {
    if (lFPGPCBEAHPCase_ == 6) {
       return (io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_;
    }
    return io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.getDefaultInstance();
  }
  /**
   * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.SalvageScoreChallengeInfoOrBuilder getScoreChallengeInfoOrBuilder() {
    if (lFPGPCBEAHPCase_ == 6) {
       return (io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_;
    }
    return io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.getDefaultInstance();
  }

  public static final int BUNDLE_INFO_FIELD_NUMBER = 5;
  /**
   * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
   * @return Whether the bundleInfo field is set.
   */
  @java.lang.Override
  public boolean hasBundleInfo() {
    return lFPGPCBEAHPCase_ == 5;
  }
  /**
   * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
   * @return The bundleInfo.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo getBundleInfo() {
    if (lFPGPCBEAHPCase_ == 5) {
       return (io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_;
    }
    return io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.getDefaultInstance();
  }
  /**
   * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.activity.SalvageBundleChallengeInfoOrBuilder getBundleInfoOrBuilder() {
    if (lFPGPCBEAHPCase_ == 5) {
       return (io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_;
    }
    return io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.getDefaultInstance();
  }

  public static final int BOSS_CHALLENGE_ID_FIELD_NUMBER = 15;
  /**
   * <code>uint32 boss_challenge_id = 15;</code>
   * @return Whether the bossChallengeId field is set.
   */
  @java.lang.Override
  public boolean hasBossChallengeId() {
    return lFPGPCBEAHPCase_ == 15;
  }
  /**
   * <code>uint32 boss_challenge_id = 15;</code>
   * @return The bossChallengeId.
   */
  @java.lang.Override
  public int getBossChallengeId() {
    if (lFPGPCBEAHPCase_ == 15) {
      return (java.lang.Integer) lFPGPCBEAHP_;
    }
    return 0;
  }

  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 (lFPGPCBEAHPCase_ == 5) {
      output.writeMessage(5, (io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_);
    }
    if (lFPGPCBEAHPCase_ == 6) {
      output.writeMessage(6, (io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_);
    }
    if (isUnlock_ != false) {
      output.writeBool(11, isUnlock_);
    }
    if (challengeType_ != 0) {
      output.writeUInt32(13, challengeType_);
    }
    if (lFPGPCBEAHPCase_ == 15) {
      output.writeUInt32(
          15, (int)((java.lang.Integer) lFPGPCBEAHP_));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (lFPGPCBEAHPCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_);
    }
    if (lFPGPCBEAHPCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_);
    }
    if (isUnlock_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(11, isUnlock_);
    }
    if (challengeType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(13, challengeType_);
    }
    if (lFPGPCBEAHPCase_ == 15) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(
            15, (int)((java.lang.Integer) lFPGPCBEAHP_));
    }
    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 io.grasscutter.net.proto.activity.SalvageChallengeInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.activity.SalvageChallengeInfo other = (io.grasscutter.net.proto.activity.SalvageChallengeInfo) obj;

    if (getIsUnlock()
        != other.getIsUnlock()) return false;
    if (getChallengeType()
        != other.getChallengeType()) return false;
    if (!getLFPGPCBEAHPCase().equals(other.getLFPGPCBEAHPCase())) return false;
    switch (lFPGPCBEAHPCase_) {
      case 6:
        if (!getScoreChallengeInfo()
            .equals(other.getScoreChallengeInfo())) return false;
        break;
      case 5:
        if (!getBundleInfo()
            .equals(other.getBundleInfo())) return false;
        break;
      case 15:
        if (getBossChallengeId()
            != other.getBossChallengeId()) return false;
        break;
      case 0:
      default:
    }
    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) + IS_UNLOCK_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsUnlock());
    hash = (37 * hash) + CHALLENGE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getChallengeType();
    switch (lFPGPCBEAHPCase_) {
      case 6:
        hash = (37 * hash) + SCORE_CHALLENGE_INFO_FIELD_NUMBER;
        hash = (53 * hash) + getScoreChallengeInfo().hashCode();
        break;
      case 5:
        hash = (37 * hash) + BUNDLE_INFO_FIELD_NUMBER;
        hash = (53 * hash) + getBundleInfo().hashCode();
        break;
      case 15:
        hash = (37 * hash) + BOSS_CHALLENGE_ID_FIELD_NUMBER;
        hash = (53 * hash) + getBossChallengeId();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo 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 io.grasscutter.net.proto.activity.SalvageChallengeInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo 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 io.grasscutter.net.proto.activity.SalvageChallengeInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo 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(io.grasscutter.net.proto.activity.SalvageChallengeInfo 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 SalvageChallengeInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:SalvageChallengeInfo)
      io.grasscutter.net.proto.activity.SalvageChallengeInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_SalvageChallengeInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_SalvageChallengeInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.activity.SalvageChallengeInfo.class, io.grasscutter.net.proto.activity.SalvageChallengeInfo.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.activity.SalvageChallengeInfo.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();
      isUnlock_ = false;

      challengeType_ = 0;

      lFPGPCBEAHPCase_ = 0;
      lFPGPCBEAHP_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.activity.Activity.internal_static_SalvageChallengeInfo_descriptor;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.activity.SalvageChallengeInfo getDefaultInstanceForType() {
      return io.grasscutter.net.proto.activity.SalvageChallengeInfo.getDefaultInstance();
    }

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

    @java.lang.Override
    public io.grasscutter.net.proto.activity.SalvageChallengeInfo buildPartial() {
      io.grasscutter.net.proto.activity.SalvageChallengeInfo result = new io.grasscutter.net.proto.activity.SalvageChallengeInfo(this);
      result.isUnlock_ = isUnlock_;
      result.challengeType_ = challengeType_;
      if (lFPGPCBEAHPCase_ == 6) {
        if (scoreChallengeInfoBuilder_ == null) {
          result.lFPGPCBEAHP_ = lFPGPCBEAHP_;
        } else {
          result.lFPGPCBEAHP_ = scoreChallengeInfoBuilder_.build();
        }
      }
      if (lFPGPCBEAHPCase_ == 5) {
        if (bundleInfoBuilder_ == null) {
          result.lFPGPCBEAHP_ = lFPGPCBEAHP_;
        } else {
          result.lFPGPCBEAHP_ = bundleInfoBuilder_.build();
        }
      }
      if (lFPGPCBEAHPCase_ == 15) {
        result.lFPGPCBEAHP_ = lFPGPCBEAHP_;
      }
      result.lFPGPCBEAHPCase_ = lFPGPCBEAHPCase_;
      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 io.grasscutter.net.proto.activity.SalvageChallengeInfo) {
        return mergeFrom((io.grasscutter.net.proto.activity.SalvageChallengeInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.activity.SalvageChallengeInfo other) {
      if (other == io.grasscutter.net.proto.activity.SalvageChallengeInfo.getDefaultInstance()) return this;
      if (other.getIsUnlock() != false) {
        setIsUnlock(other.getIsUnlock());
      }
      if (other.getChallengeType() != 0) {
        setChallengeType(other.getChallengeType());
      }
      switch (other.getLFPGPCBEAHPCase()) {
        case SCORE_CHALLENGE_INFO: {
          mergeScoreChallengeInfo(other.getScoreChallengeInfo());
          break;
        }
        case BUNDLE_INFO: {
          mergeBundleInfo(other.getBundleInfo());
          break;
        }
        case BOSS_CHALLENGE_ID: {
          setBossChallengeId(other.getBossChallengeId());
          break;
        }
        case LFPGPCBEAHP_NOT_SET: {
          break;
        }
      }
      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 {
      io.grasscutter.net.proto.activity.SalvageChallengeInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.activity.SalvageChallengeInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int lFPGPCBEAHPCase_ = 0;
    private java.lang.Object lFPGPCBEAHP_;
    public LFPGPCBEAHPCase
        getLFPGPCBEAHPCase() {
      return LFPGPCBEAHPCase.forNumber(
          lFPGPCBEAHPCase_);
    }

    public Builder clearLFPGPCBEAHP() {
      lFPGPCBEAHPCase_ = 0;
      lFPGPCBEAHP_ = null;
      onChanged();
      return this;
    }


    private boolean isUnlock_ ;
    /**
     * <code>bool is_unlock = 11;</code>
     * @return The isUnlock.
     */
    @java.lang.Override
    public boolean getIsUnlock() {
      return isUnlock_;
    }
    /**
     * <code>bool is_unlock = 11;</code>
     * @param value The isUnlock to set.
     * @return This builder for chaining.
     */
    public Builder setIsUnlock(boolean value) {
      
      isUnlock_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_unlock = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsUnlock() {
      
      isUnlock_ = false;
      onChanged();
      return this;
    }

    private int challengeType_ ;
    /**
     * <code>uint32 challenge_type = 13;</code>
     * @return The challengeType.
     */
    @java.lang.Override
    public int getChallengeType() {
      return challengeType_;
    }
    /**
     * <code>uint32 challenge_type = 13;</code>
     * @param value The challengeType to set.
     * @return This builder for chaining.
     */
    public Builder setChallengeType(int value) {
      
      challengeType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 challenge_type = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearChallengeType() {
      
      challengeType_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo, io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.Builder, io.grasscutter.net.proto.activity.SalvageScoreChallengeInfoOrBuilder> scoreChallengeInfoBuilder_;
    /**
     * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
     * @return Whether the scoreChallengeInfo field is set.
     */
    @java.lang.Override
    public boolean hasScoreChallengeInfo() {
      return lFPGPCBEAHPCase_ == 6;
    }
    /**
     * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
     * @return The scoreChallengeInfo.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo getScoreChallengeInfo() {
      if (scoreChallengeInfoBuilder_ == null) {
        if (lFPGPCBEAHPCase_ == 6) {
          return (io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_;
        }
        return io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.getDefaultInstance();
      } else {
        if (lFPGPCBEAHPCase_ == 6) {
          return scoreChallengeInfoBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.getDefaultInstance();
      }
    }
    /**
     * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
     */
    public Builder setScoreChallengeInfo(io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo value) {
      if (scoreChallengeInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        lFPGPCBEAHP_ = value;
        onChanged();
      } else {
        scoreChallengeInfoBuilder_.setMessage(value);
      }
      lFPGPCBEAHPCase_ = 6;
      return this;
    }
    /**
     * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
     */
    public Builder setScoreChallengeInfo(
        io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.Builder builderForValue) {
      if (scoreChallengeInfoBuilder_ == null) {
        lFPGPCBEAHP_ = builderForValue.build();
        onChanged();
      } else {
        scoreChallengeInfoBuilder_.setMessage(builderForValue.build());
      }
      lFPGPCBEAHPCase_ = 6;
      return this;
    }
    /**
     * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
     */
    public Builder mergeScoreChallengeInfo(io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo value) {
      if (scoreChallengeInfoBuilder_ == null) {
        if (lFPGPCBEAHPCase_ == 6 &&
            lFPGPCBEAHP_ != io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.getDefaultInstance()) {
          lFPGPCBEAHP_ = io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.newBuilder((io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_)
              .mergeFrom(value).buildPartial();
        } else {
          lFPGPCBEAHP_ = value;
        }
        onChanged();
      } else {
        if (lFPGPCBEAHPCase_ == 6) {
          scoreChallengeInfoBuilder_.mergeFrom(value);
        }
        scoreChallengeInfoBuilder_.setMessage(value);
      }
      lFPGPCBEAHPCase_ = 6;
      return this;
    }
    /**
     * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
     */
    public Builder clearScoreChallengeInfo() {
      if (scoreChallengeInfoBuilder_ == null) {
        if (lFPGPCBEAHPCase_ == 6) {
          lFPGPCBEAHPCase_ = 0;
          lFPGPCBEAHP_ = null;
          onChanged();
        }
      } else {
        if (lFPGPCBEAHPCase_ == 6) {
          lFPGPCBEAHPCase_ = 0;
          lFPGPCBEAHP_ = null;
        }
        scoreChallengeInfoBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
     */
    public io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.Builder getScoreChallengeInfoBuilder() {
      return getScoreChallengeInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.activity.SalvageScoreChallengeInfoOrBuilder getScoreChallengeInfoOrBuilder() {
      if ((lFPGPCBEAHPCase_ == 6) && (scoreChallengeInfoBuilder_ != null)) {
        return scoreChallengeInfoBuilder_.getMessageOrBuilder();
      } else {
        if (lFPGPCBEAHPCase_ == 6) {
          return (io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_;
        }
        return io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.getDefaultInstance();
      }
    }
    /**
     * <code>.SalvageScoreChallengeInfo score_challenge_info = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo, io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.Builder, io.grasscutter.net.proto.activity.SalvageScoreChallengeInfoOrBuilder> 
        getScoreChallengeInfoFieldBuilder() {
      if (scoreChallengeInfoBuilder_ == null) {
        if (!(lFPGPCBEAHPCase_ == 6)) {
          lFPGPCBEAHP_ = io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.getDefaultInstance();
        }
        scoreChallengeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo, io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo.Builder, io.grasscutter.net.proto.activity.SalvageScoreChallengeInfoOrBuilder>(
                (io.grasscutter.net.proto.activity.SalvageScoreChallengeInfo) lFPGPCBEAHP_,
                getParentForChildren(),
                isClean());
        lFPGPCBEAHP_ = null;
      }
      lFPGPCBEAHPCase_ = 6;
      onChanged();;
      return scoreChallengeInfoBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo, io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.Builder, io.grasscutter.net.proto.activity.SalvageBundleChallengeInfoOrBuilder> bundleInfoBuilder_;
    /**
     * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
     * @return Whether the bundleInfo field is set.
     */
    @java.lang.Override
    public boolean hasBundleInfo() {
      return lFPGPCBEAHPCase_ == 5;
    }
    /**
     * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
     * @return The bundleInfo.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo getBundleInfo() {
      if (bundleInfoBuilder_ == null) {
        if (lFPGPCBEAHPCase_ == 5) {
          return (io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_;
        }
        return io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.getDefaultInstance();
      } else {
        if (lFPGPCBEAHPCase_ == 5) {
          return bundleInfoBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.getDefaultInstance();
      }
    }
    /**
     * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
     */
    public Builder setBundleInfo(io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo value) {
      if (bundleInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        lFPGPCBEAHP_ = value;
        onChanged();
      } else {
        bundleInfoBuilder_.setMessage(value);
      }
      lFPGPCBEAHPCase_ = 5;
      return this;
    }
    /**
     * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
     */
    public Builder setBundleInfo(
        io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.Builder builderForValue) {
      if (bundleInfoBuilder_ == null) {
        lFPGPCBEAHP_ = builderForValue.build();
        onChanged();
      } else {
        bundleInfoBuilder_.setMessage(builderForValue.build());
      }
      lFPGPCBEAHPCase_ = 5;
      return this;
    }
    /**
     * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
     */
    public Builder mergeBundleInfo(io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo value) {
      if (bundleInfoBuilder_ == null) {
        if (lFPGPCBEAHPCase_ == 5 &&
            lFPGPCBEAHP_ != io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.getDefaultInstance()) {
          lFPGPCBEAHP_ = io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.newBuilder((io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_)
              .mergeFrom(value).buildPartial();
        } else {
          lFPGPCBEAHP_ = value;
        }
        onChanged();
      } else {
        if (lFPGPCBEAHPCase_ == 5) {
          bundleInfoBuilder_.mergeFrom(value);
        }
        bundleInfoBuilder_.setMessage(value);
      }
      lFPGPCBEAHPCase_ = 5;
      return this;
    }
    /**
     * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
     */
    public Builder clearBundleInfo() {
      if (bundleInfoBuilder_ == null) {
        if (lFPGPCBEAHPCase_ == 5) {
          lFPGPCBEAHPCase_ = 0;
          lFPGPCBEAHP_ = null;
          onChanged();
        }
      } else {
        if (lFPGPCBEAHPCase_ == 5) {
          lFPGPCBEAHPCase_ = 0;
          lFPGPCBEAHP_ = null;
        }
        bundleInfoBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
     */
    public io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.Builder getBundleInfoBuilder() {
      return getBundleInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.activity.SalvageBundleChallengeInfoOrBuilder getBundleInfoOrBuilder() {
      if ((lFPGPCBEAHPCase_ == 5) && (bundleInfoBuilder_ != null)) {
        return bundleInfoBuilder_.getMessageOrBuilder();
      } else {
        if (lFPGPCBEAHPCase_ == 5) {
          return (io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_;
        }
        return io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.getDefaultInstance();
      }
    }
    /**
     * <code>.SalvageBundleChallengeInfo bundle_info = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo, io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.Builder, io.grasscutter.net.proto.activity.SalvageBundleChallengeInfoOrBuilder> 
        getBundleInfoFieldBuilder() {
      if (bundleInfoBuilder_ == null) {
        if (!(lFPGPCBEAHPCase_ == 5)) {
          lFPGPCBEAHP_ = io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.getDefaultInstance();
        }
        bundleInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo, io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo.Builder, io.grasscutter.net.proto.activity.SalvageBundleChallengeInfoOrBuilder>(
                (io.grasscutter.net.proto.activity.SalvageBundleChallengeInfo) lFPGPCBEAHP_,
                getParentForChildren(),
                isClean());
        lFPGPCBEAHP_ = null;
      }
      lFPGPCBEAHPCase_ = 5;
      onChanged();;
      return bundleInfoBuilder_;
    }

    /**
     * <code>uint32 boss_challenge_id = 15;</code>
     * @return Whether the bossChallengeId field is set.
     */
    public boolean hasBossChallengeId() {
      return lFPGPCBEAHPCase_ == 15;
    }
    /**
     * <code>uint32 boss_challenge_id = 15;</code>
     * @return The bossChallengeId.
     */
    public int getBossChallengeId() {
      if (lFPGPCBEAHPCase_ == 15) {
        return (java.lang.Integer) lFPGPCBEAHP_;
      }
      return 0;
    }
    /**
     * <code>uint32 boss_challenge_id = 15;</code>
     * @param value The bossChallengeId to set.
     * @return This builder for chaining.
     */
    public Builder setBossChallengeId(int value) {
      lFPGPCBEAHPCase_ = 15;
      lFPGPCBEAHP_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 boss_challenge_id = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearBossChallengeId() {
      if (lFPGPCBEAHPCase_ == 15) {
        lFPGPCBEAHPCase_ = 0;
        lFPGPCBEAHP_ = null;
        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:SalvageChallengeInfo)
  }

  // @@protoc_insertion_point(class_scope:SalvageChallengeInfo)
  private static final io.grasscutter.net.proto.activity.SalvageChallengeInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grasscutter.net.proto.activity.SalvageChallengeInfo();
  }

  public static io.grasscutter.net.proto.activity.SalvageChallengeInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public io.grasscutter.net.proto.activity.SalvageChallengeInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

