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

package io.grasscutter.net.proto.define;

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

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

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

            hasDeleteConfig_ = input.readBool();
            break;
          }
          case 18: {
            io.grasscutter.net.proto.define.CountDownDelete.Builder subBuilder = null;
            if (cJHHLAICPFGCase_ == 2) {
              subBuilder = ((io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_).toBuilder();
            }
            cJHHLAICPFG_ =
                input.readMessage(io.grasscutter.net.proto.define.CountDownDelete.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_);
              cJHHLAICPFG_ = subBuilder.buildPartial();
            }
            cJHHLAICPFGCase_ = 2;
            break;
          }
          case 26: {
            io.grasscutter.net.proto.define.DateTimeDelete.Builder subBuilder = null;
            if (cJHHLAICPFGCase_ == 3) {
              subBuilder = ((io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_).toBuilder();
            }
            cJHHLAICPFG_ =
                input.readMessage(io.grasscutter.net.proto.define.DateTimeDelete.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_);
              cJHHLAICPFG_ = subBuilder.buildPartial();
            }
            cJHHLAICPFGCase_ = 3;
            break;
          }
          case 34: {
            io.grasscutter.net.proto.define.DelayWeekCountDownDelete.Builder subBuilder = null;
            if (cJHHLAICPFGCase_ == 4) {
              subBuilder = ((io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_).toBuilder();
            }
            cJHHLAICPFG_ =
                input.readMessage(io.grasscutter.net.proto.define.DelayWeekCountDownDelete.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_);
              cJHHLAICPFG_ = subBuilder.buildPartial();
            }
            cJHHLAICPFGCase_ = 4;
            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.define.Define.internal_static_MaterialDeleteInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.define.Define.internal_static_MaterialDeleteInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.define.MaterialDeleteInfo.class, io.grasscutter.net.proto.define.MaterialDeleteInfo.Builder.class);
  }

  private int cJHHLAICPFGCase_ = 0;
  private java.lang.Object cJHHLAICPFG_;
  public enum CJHHLAICPFGCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    DATE_DELETE(3),
    COUNT_DOWN_DELETE(2),
    DELAY_WEEK_COUNT_DOWN_DELETE(4),
    CJHHLAICPFG_NOT_SET(0);
    private final int value;
    private CJHHLAICPFGCase(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 CJHHLAICPFGCase valueOf(int value) {
      return forNumber(value);
    }

    public static CJHHLAICPFGCase forNumber(int value) {
      switch (value) {
        case 3: return DATE_DELETE;
        case 2: return COUNT_DOWN_DELETE;
        case 4: return DELAY_WEEK_COUNT_DOWN_DELETE;
        case 0: return CJHHLAICPFG_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public CJHHLAICPFGCase
  getCJHHLAICPFGCase() {
    return CJHHLAICPFGCase.forNumber(
        cJHHLAICPFGCase_);
  }

  public static final int HAS_DELETE_CONFIG_FIELD_NUMBER = 1;
  private boolean hasDeleteConfig_;
  /**
   * <code>bool has_delete_config = 1;</code>
   * @return The hasDeleteConfig.
   */
  @java.lang.Override
  public boolean getHasDeleteConfig() {
    return hasDeleteConfig_;
  }

  public static final int DATE_DELETE_FIELD_NUMBER = 3;
  /**
   * <code>.DateTimeDelete date_delete = 3;</code>
   * @return Whether the dateDelete field is set.
   */
  @java.lang.Override
  public boolean hasDateDelete() {
    return cJHHLAICPFGCase_ == 3;
  }
  /**
   * <code>.DateTimeDelete date_delete = 3;</code>
   * @return The dateDelete.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.DateTimeDelete getDateDelete() {
    if (cJHHLAICPFGCase_ == 3) {
       return (io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_;
    }
    return io.grasscutter.net.proto.define.DateTimeDelete.getDefaultInstance();
  }
  /**
   * <code>.DateTimeDelete date_delete = 3;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.DateTimeDeleteOrBuilder getDateDeleteOrBuilder() {
    if (cJHHLAICPFGCase_ == 3) {
       return (io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_;
    }
    return io.grasscutter.net.proto.define.DateTimeDelete.getDefaultInstance();
  }

  public static final int COUNT_DOWN_DELETE_FIELD_NUMBER = 2;
  /**
   * <code>.CountDownDelete count_down_delete = 2;</code>
   * @return Whether the countDownDelete field is set.
   */
  @java.lang.Override
  public boolean hasCountDownDelete() {
    return cJHHLAICPFGCase_ == 2;
  }
  /**
   * <code>.CountDownDelete count_down_delete = 2;</code>
   * @return The countDownDelete.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.CountDownDelete getCountDownDelete() {
    if (cJHHLAICPFGCase_ == 2) {
       return (io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_;
    }
    return io.grasscutter.net.proto.define.CountDownDelete.getDefaultInstance();
  }
  /**
   * <code>.CountDownDelete count_down_delete = 2;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.CountDownDeleteOrBuilder getCountDownDeleteOrBuilder() {
    if (cJHHLAICPFGCase_ == 2) {
       return (io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_;
    }
    return io.grasscutter.net.proto.define.CountDownDelete.getDefaultInstance();
  }

  public static final int DELAY_WEEK_COUNT_DOWN_DELETE_FIELD_NUMBER = 4;
  /**
   * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
   * @return Whether the delayWeekCountDownDelete field is set.
   */
  @java.lang.Override
  public boolean hasDelayWeekCountDownDelete() {
    return cJHHLAICPFGCase_ == 4;
  }
  /**
   * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
   * @return The delayWeekCountDownDelete.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.DelayWeekCountDownDelete getDelayWeekCountDownDelete() {
    if (cJHHLAICPFGCase_ == 4) {
       return (io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_;
    }
    return io.grasscutter.net.proto.define.DelayWeekCountDownDelete.getDefaultInstance();
  }
  /**
   * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.DelayWeekCountDownDeleteOrBuilder getDelayWeekCountDownDeleteOrBuilder() {
    if (cJHHLAICPFGCase_ == 4) {
       return (io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_;
    }
    return io.grasscutter.net.proto.define.DelayWeekCountDownDelete.getDefaultInstance();
  }

  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 (hasDeleteConfig_ != false) {
      output.writeBool(1, hasDeleteConfig_);
    }
    if (cJHHLAICPFGCase_ == 2) {
      output.writeMessage(2, (io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_);
    }
    if (cJHHLAICPFGCase_ == 3) {
      output.writeMessage(3, (io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_);
    }
    if (cJHHLAICPFGCase_ == 4) {
      output.writeMessage(4, (io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (hasDeleteConfig_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(1, hasDeleteConfig_);
    }
    if (cJHHLAICPFGCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_);
    }
    if (cJHHLAICPFGCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_);
    }
    if (cJHHLAICPFGCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_);
    }
    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.define.MaterialDeleteInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.MaterialDeleteInfo other = (io.grasscutter.net.proto.define.MaterialDeleteInfo) obj;

    if (getHasDeleteConfig()
        != other.getHasDeleteConfig()) return false;
    if (!getCJHHLAICPFGCase().equals(other.getCJHHLAICPFGCase())) return false;
    switch (cJHHLAICPFGCase_) {
      case 3:
        if (!getDateDelete()
            .equals(other.getDateDelete())) return false;
        break;
      case 2:
        if (!getCountDownDelete()
            .equals(other.getCountDownDelete())) return false;
        break;
      case 4:
        if (!getDelayWeekCountDownDelete()
            .equals(other.getDelayWeekCountDownDelete())) 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) + HAS_DELETE_CONFIG_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getHasDeleteConfig());
    switch (cJHHLAICPFGCase_) {
      case 3:
        hash = (37 * hash) + DATE_DELETE_FIELD_NUMBER;
        hash = (53 * hash) + getDateDelete().hashCode();
        break;
      case 2:
        hash = (37 * hash) + COUNT_DOWN_DELETE_FIELD_NUMBER;
        hash = (53 * hash) + getCountDownDelete().hashCode();
        break;
      case 4:
        hash = (37 * hash) + DELAY_WEEK_COUNT_DOWN_DELETE_FIELD_NUMBER;
        hash = (53 * hash) + getDelayWeekCountDownDelete().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.define.Define.internal_static_MaterialDeleteInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.define.MaterialDeleteInfo.class, io.grasscutter.net.proto.define.MaterialDeleteInfo.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.define.MaterialDeleteInfo.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();
      hasDeleteConfig_ = false;

      cJHHLAICPFGCase_ = 0;
      cJHHLAICPFG_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.define.Define.internal_static_MaterialDeleteInfo_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.MaterialDeleteInfo buildPartial() {
      io.grasscutter.net.proto.define.MaterialDeleteInfo result = new io.grasscutter.net.proto.define.MaterialDeleteInfo(this);
      result.hasDeleteConfig_ = hasDeleteConfig_;
      if (cJHHLAICPFGCase_ == 3) {
        if (dateDeleteBuilder_ == null) {
          result.cJHHLAICPFG_ = cJHHLAICPFG_;
        } else {
          result.cJHHLAICPFG_ = dateDeleteBuilder_.build();
        }
      }
      if (cJHHLAICPFGCase_ == 2) {
        if (countDownDeleteBuilder_ == null) {
          result.cJHHLAICPFG_ = cJHHLAICPFG_;
        } else {
          result.cJHHLAICPFG_ = countDownDeleteBuilder_.build();
        }
      }
      if (cJHHLAICPFGCase_ == 4) {
        if (delayWeekCountDownDeleteBuilder_ == null) {
          result.cJHHLAICPFG_ = cJHHLAICPFG_;
        } else {
          result.cJHHLAICPFG_ = delayWeekCountDownDeleteBuilder_.build();
        }
      }
      result.cJHHLAICPFGCase_ = cJHHLAICPFGCase_;
      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.define.MaterialDeleteInfo) {
        return mergeFrom((io.grasscutter.net.proto.define.MaterialDeleteInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.define.MaterialDeleteInfo other) {
      if (other == io.grasscutter.net.proto.define.MaterialDeleteInfo.getDefaultInstance()) return this;
      if (other.getHasDeleteConfig() != false) {
        setHasDeleteConfig(other.getHasDeleteConfig());
      }
      switch (other.getCJHHLAICPFGCase()) {
        case DATE_DELETE: {
          mergeDateDelete(other.getDateDelete());
          break;
        }
        case COUNT_DOWN_DELETE: {
          mergeCountDownDelete(other.getCountDownDelete());
          break;
        }
        case DELAY_WEEK_COUNT_DOWN_DELETE: {
          mergeDelayWeekCountDownDelete(other.getDelayWeekCountDownDelete());
          break;
        }
        case CJHHLAICPFG_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.define.MaterialDeleteInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.define.MaterialDeleteInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int cJHHLAICPFGCase_ = 0;
    private java.lang.Object cJHHLAICPFG_;
    public CJHHLAICPFGCase
        getCJHHLAICPFGCase() {
      return CJHHLAICPFGCase.forNumber(
          cJHHLAICPFGCase_);
    }

    public Builder clearCJHHLAICPFG() {
      cJHHLAICPFGCase_ = 0;
      cJHHLAICPFG_ = null;
      onChanged();
      return this;
    }


    private boolean hasDeleteConfig_ ;
    /**
     * <code>bool has_delete_config = 1;</code>
     * @return The hasDeleteConfig.
     */
    @java.lang.Override
    public boolean getHasDeleteConfig() {
      return hasDeleteConfig_;
    }
    /**
     * <code>bool has_delete_config = 1;</code>
     * @param value The hasDeleteConfig to set.
     * @return This builder for chaining.
     */
    public Builder setHasDeleteConfig(boolean value) {
      
      hasDeleteConfig_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool has_delete_config = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearHasDeleteConfig() {
      
      hasDeleteConfig_ = false;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.DateTimeDelete, io.grasscutter.net.proto.define.DateTimeDelete.Builder, io.grasscutter.net.proto.define.DateTimeDeleteOrBuilder> dateDeleteBuilder_;
    /**
     * <code>.DateTimeDelete date_delete = 3;</code>
     * @return Whether the dateDelete field is set.
     */
    @java.lang.Override
    public boolean hasDateDelete() {
      return cJHHLAICPFGCase_ == 3;
    }
    /**
     * <code>.DateTimeDelete date_delete = 3;</code>
     * @return The dateDelete.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.DateTimeDelete getDateDelete() {
      if (dateDeleteBuilder_ == null) {
        if (cJHHLAICPFGCase_ == 3) {
          return (io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_;
        }
        return io.grasscutter.net.proto.define.DateTimeDelete.getDefaultInstance();
      } else {
        if (cJHHLAICPFGCase_ == 3) {
          return dateDeleteBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.DateTimeDelete.getDefaultInstance();
      }
    }
    /**
     * <code>.DateTimeDelete date_delete = 3;</code>
     */
    public Builder setDateDelete(io.grasscutter.net.proto.define.DateTimeDelete value) {
      if (dateDeleteBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cJHHLAICPFG_ = value;
        onChanged();
      } else {
        dateDeleteBuilder_.setMessage(value);
      }
      cJHHLAICPFGCase_ = 3;
      return this;
    }
    /**
     * <code>.DateTimeDelete date_delete = 3;</code>
     */
    public Builder setDateDelete(
        io.grasscutter.net.proto.define.DateTimeDelete.Builder builderForValue) {
      if (dateDeleteBuilder_ == null) {
        cJHHLAICPFG_ = builderForValue.build();
        onChanged();
      } else {
        dateDeleteBuilder_.setMessage(builderForValue.build());
      }
      cJHHLAICPFGCase_ = 3;
      return this;
    }
    /**
     * <code>.DateTimeDelete date_delete = 3;</code>
     */
    public Builder mergeDateDelete(io.grasscutter.net.proto.define.DateTimeDelete value) {
      if (dateDeleteBuilder_ == null) {
        if (cJHHLAICPFGCase_ == 3 &&
            cJHHLAICPFG_ != io.grasscutter.net.proto.define.DateTimeDelete.getDefaultInstance()) {
          cJHHLAICPFG_ = io.grasscutter.net.proto.define.DateTimeDelete.newBuilder((io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_)
              .mergeFrom(value).buildPartial();
        } else {
          cJHHLAICPFG_ = value;
        }
        onChanged();
      } else {
        if (cJHHLAICPFGCase_ == 3) {
          dateDeleteBuilder_.mergeFrom(value);
        }
        dateDeleteBuilder_.setMessage(value);
      }
      cJHHLAICPFGCase_ = 3;
      return this;
    }
    /**
     * <code>.DateTimeDelete date_delete = 3;</code>
     */
    public Builder clearDateDelete() {
      if (dateDeleteBuilder_ == null) {
        if (cJHHLAICPFGCase_ == 3) {
          cJHHLAICPFGCase_ = 0;
          cJHHLAICPFG_ = null;
          onChanged();
        }
      } else {
        if (cJHHLAICPFGCase_ == 3) {
          cJHHLAICPFGCase_ = 0;
          cJHHLAICPFG_ = null;
        }
        dateDeleteBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.DateTimeDelete date_delete = 3;</code>
     */
    public io.grasscutter.net.proto.define.DateTimeDelete.Builder getDateDeleteBuilder() {
      return getDateDeleteFieldBuilder().getBuilder();
    }
    /**
     * <code>.DateTimeDelete date_delete = 3;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.DateTimeDeleteOrBuilder getDateDeleteOrBuilder() {
      if ((cJHHLAICPFGCase_ == 3) && (dateDeleteBuilder_ != null)) {
        return dateDeleteBuilder_.getMessageOrBuilder();
      } else {
        if (cJHHLAICPFGCase_ == 3) {
          return (io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_;
        }
        return io.grasscutter.net.proto.define.DateTimeDelete.getDefaultInstance();
      }
    }
    /**
     * <code>.DateTimeDelete date_delete = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.DateTimeDelete, io.grasscutter.net.proto.define.DateTimeDelete.Builder, io.grasscutter.net.proto.define.DateTimeDeleteOrBuilder> 
        getDateDeleteFieldBuilder() {
      if (dateDeleteBuilder_ == null) {
        if (!(cJHHLAICPFGCase_ == 3)) {
          cJHHLAICPFG_ = io.grasscutter.net.proto.define.DateTimeDelete.getDefaultInstance();
        }
        dateDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.DateTimeDelete, io.grasscutter.net.proto.define.DateTimeDelete.Builder, io.grasscutter.net.proto.define.DateTimeDeleteOrBuilder>(
                (io.grasscutter.net.proto.define.DateTimeDelete) cJHHLAICPFG_,
                getParentForChildren(),
                isClean());
        cJHHLAICPFG_ = null;
      }
      cJHHLAICPFGCase_ = 3;
      onChanged();;
      return dateDeleteBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.CountDownDelete, io.grasscutter.net.proto.define.CountDownDelete.Builder, io.grasscutter.net.proto.define.CountDownDeleteOrBuilder> countDownDeleteBuilder_;
    /**
     * <code>.CountDownDelete count_down_delete = 2;</code>
     * @return Whether the countDownDelete field is set.
     */
    @java.lang.Override
    public boolean hasCountDownDelete() {
      return cJHHLAICPFGCase_ == 2;
    }
    /**
     * <code>.CountDownDelete count_down_delete = 2;</code>
     * @return The countDownDelete.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.CountDownDelete getCountDownDelete() {
      if (countDownDeleteBuilder_ == null) {
        if (cJHHLAICPFGCase_ == 2) {
          return (io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_;
        }
        return io.grasscutter.net.proto.define.CountDownDelete.getDefaultInstance();
      } else {
        if (cJHHLAICPFGCase_ == 2) {
          return countDownDeleteBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.CountDownDelete.getDefaultInstance();
      }
    }
    /**
     * <code>.CountDownDelete count_down_delete = 2;</code>
     */
    public Builder setCountDownDelete(io.grasscutter.net.proto.define.CountDownDelete value) {
      if (countDownDeleteBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cJHHLAICPFG_ = value;
        onChanged();
      } else {
        countDownDeleteBuilder_.setMessage(value);
      }
      cJHHLAICPFGCase_ = 2;
      return this;
    }
    /**
     * <code>.CountDownDelete count_down_delete = 2;</code>
     */
    public Builder setCountDownDelete(
        io.grasscutter.net.proto.define.CountDownDelete.Builder builderForValue) {
      if (countDownDeleteBuilder_ == null) {
        cJHHLAICPFG_ = builderForValue.build();
        onChanged();
      } else {
        countDownDeleteBuilder_.setMessage(builderForValue.build());
      }
      cJHHLAICPFGCase_ = 2;
      return this;
    }
    /**
     * <code>.CountDownDelete count_down_delete = 2;</code>
     */
    public Builder mergeCountDownDelete(io.grasscutter.net.proto.define.CountDownDelete value) {
      if (countDownDeleteBuilder_ == null) {
        if (cJHHLAICPFGCase_ == 2 &&
            cJHHLAICPFG_ != io.grasscutter.net.proto.define.CountDownDelete.getDefaultInstance()) {
          cJHHLAICPFG_ = io.grasscutter.net.proto.define.CountDownDelete.newBuilder((io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_)
              .mergeFrom(value).buildPartial();
        } else {
          cJHHLAICPFG_ = value;
        }
        onChanged();
      } else {
        if (cJHHLAICPFGCase_ == 2) {
          countDownDeleteBuilder_.mergeFrom(value);
        }
        countDownDeleteBuilder_.setMessage(value);
      }
      cJHHLAICPFGCase_ = 2;
      return this;
    }
    /**
     * <code>.CountDownDelete count_down_delete = 2;</code>
     */
    public Builder clearCountDownDelete() {
      if (countDownDeleteBuilder_ == null) {
        if (cJHHLAICPFGCase_ == 2) {
          cJHHLAICPFGCase_ = 0;
          cJHHLAICPFG_ = null;
          onChanged();
        }
      } else {
        if (cJHHLAICPFGCase_ == 2) {
          cJHHLAICPFGCase_ = 0;
          cJHHLAICPFG_ = null;
        }
        countDownDeleteBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.CountDownDelete count_down_delete = 2;</code>
     */
    public io.grasscutter.net.proto.define.CountDownDelete.Builder getCountDownDeleteBuilder() {
      return getCountDownDeleteFieldBuilder().getBuilder();
    }
    /**
     * <code>.CountDownDelete count_down_delete = 2;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.CountDownDeleteOrBuilder getCountDownDeleteOrBuilder() {
      if ((cJHHLAICPFGCase_ == 2) && (countDownDeleteBuilder_ != null)) {
        return countDownDeleteBuilder_.getMessageOrBuilder();
      } else {
        if (cJHHLAICPFGCase_ == 2) {
          return (io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_;
        }
        return io.grasscutter.net.proto.define.CountDownDelete.getDefaultInstance();
      }
    }
    /**
     * <code>.CountDownDelete count_down_delete = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.CountDownDelete, io.grasscutter.net.proto.define.CountDownDelete.Builder, io.grasscutter.net.proto.define.CountDownDeleteOrBuilder> 
        getCountDownDeleteFieldBuilder() {
      if (countDownDeleteBuilder_ == null) {
        if (!(cJHHLAICPFGCase_ == 2)) {
          cJHHLAICPFG_ = io.grasscutter.net.proto.define.CountDownDelete.getDefaultInstance();
        }
        countDownDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.CountDownDelete, io.grasscutter.net.proto.define.CountDownDelete.Builder, io.grasscutter.net.proto.define.CountDownDeleteOrBuilder>(
                (io.grasscutter.net.proto.define.CountDownDelete) cJHHLAICPFG_,
                getParentForChildren(),
                isClean());
        cJHHLAICPFG_ = null;
      }
      cJHHLAICPFGCase_ = 2;
      onChanged();;
      return countDownDeleteBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.DelayWeekCountDownDelete, io.grasscutter.net.proto.define.DelayWeekCountDownDelete.Builder, io.grasscutter.net.proto.define.DelayWeekCountDownDeleteOrBuilder> delayWeekCountDownDeleteBuilder_;
    /**
     * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
     * @return Whether the delayWeekCountDownDelete field is set.
     */
    @java.lang.Override
    public boolean hasDelayWeekCountDownDelete() {
      return cJHHLAICPFGCase_ == 4;
    }
    /**
     * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
     * @return The delayWeekCountDownDelete.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.DelayWeekCountDownDelete getDelayWeekCountDownDelete() {
      if (delayWeekCountDownDeleteBuilder_ == null) {
        if (cJHHLAICPFGCase_ == 4) {
          return (io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_;
        }
        return io.grasscutter.net.proto.define.DelayWeekCountDownDelete.getDefaultInstance();
      } else {
        if (cJHHLAICPFGCase_ == 4) {
          return delayWeekCountDownDeleteBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.DelayWeekCountDownDelete.getDefaultInstance();
      }
    }
    /**
     * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
     */
    public Builder setDelayWeekCountDownDelete(io.grasscutter.net.proto.define.DelayWeekCountDownDelete value) {
      if (delayWeekCountDownDeleteBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cJHHLAICPFG_ = value;
        onChanged();
      } else {
        delayWeekCountDownDeleteBuilder_.setMessage(value);
      }
      cJHHLAICPFGCase_ = 4;
      return this;
    }
    /**
     * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
     */
    public Builder setDelayWeekCountDownDelete(
        io.grasscutter.net.proto.define.DelayWeekCountDownDelete.Builder builderForValue) {
      if (delayWeekCountDownDeleteBuilder_ == null) {
        cJHHLAICPFG_ = builderForValue.build();
        onChanged();
      } else {
        delayWeekCountDownDeleteBuilder_.setMessage(builderForValue.build());
      }
      cJHHLAICPFGCase_ = 4;
      return this;
    }
    /**
     * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
     */
    public Builder mergeDelayWeekCountDownDelete(io.grasscutter.net.proto.define.DelayWeekCountDownDelete value) {
      if (delayWeekCountDownDeleteBuilder_ == null) {
        if (cJHHLAICPFGCase_ == 4 &&
            cJHHLAICPFG_ != io.grasscutter.net.proto.define.DelayWeekCountDownDelete.getDefaultInstance()) {
          cJHHLAICPFG_ = io.grasscutter.net.proto.define.DelayWeekCountDownDelete.newBuilder((io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_)
              .mergeFrom(value).buildPartial();
        } else {
          cJHHLAICPFG_ = value;
        }
        onChanged();
      } else {
        if (cJHHLAICPFGCase_ == 4) {
          delayWeekCountDownDeleteBuilder_.mergeFrom(value);
        }
        delayWeekCountDownDeleteBuilder_.setMessage(value);
      }
      cJHHLAICPFGCase_ = 4;
      return this;
    }
    /**
     * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
     */
    public Builder clearDelayWeekCountDownDelete() {
      if (delayWeekCountDownDeleteBuilder_ == null) {
        if (cJHHLAICPFGCase_ == 4) {
          cJHHLAICPFGCase_ = 0;
          cJHHLAICPFG_ = null;
          onChanged();
        }
      } else {
        if (cJHHLAICPFGCase_ == 4) {
          cJHHLAICPFGCase_ = 0;
          cJHHLAICPFG_ = null;
        }
        delayWeekCountDownDeleteBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
     */
    public io.grasscutter.net.proto.define.DelayWeekCountDownDelete.Builder getDelayWeekCountDownDeleteBuilder() {
      return getDelayWeekCountDownDeleteFieldBuilder().getBuilder();
    }
    /**
     * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.DelayWeekCountDownDeleteOrBuilder getDelayWeekCountDownDeleteOrBuilder() {
      if ((cJHHLAICPFGCase_ == 4) && (delayWeekCountDownDeleteBuilder_ != null)) {
        return delayWeekCountDownDeleteBuilder_.getMessageOrBuilder();
      } else {
        if (cJHHLAICPFGCase_ == 4) {
          return (io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_;
        }
        return io.grasscutter.net.proto.define.DelayWeekCountDownDelete.getDefaultInstance();
      }
    }
    /**
     * <code>.DelayWeekCountDownDelete delay_week_count_down_delete = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.DelayWeekCountDownDelete, io.grasscutter.net.proto.define.DelayWeekCountDownDelete.Builder, io.grasscutter.net.proto.define.DelayWeekCountDownDeleteOrBuilder> 
        getDelayWeekCountDownDeleteFieldBuilder() {
      if (delayWeekCountDownDeleteBuilder_ == null) {
        if (!(cJHHLAICPFGCase_ == 4)) {
          cJHHLAICPFG_ = io.grasscutter.net.proto.define.DelayWeekCountDownDelete.getDefaultInstance();
        }
        delayWeekCountDownDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.DelayWeekCountDownDelete, io.grasscutter.net.proto.define.DelayWeekCountDownDelete.Builder, io.grasscutter.net.proto.define.DelayWeekCountDownDeleteOrBuilder>(
                (io.grasscutter.net.proto.define.DelayWeekCountDownDelete) cJHHLAICPFG_,
                getParentForChildren(),
                isClean());
        cJHHLAICPFG_ = null;
      }
      cJHHLAICPFGCase_ = 4;
      onChanged();;
      return delayWeekCountDownDeleteBuilder_;
    }
    @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:MaterialDeleteInfo)
  }

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

  public static io.grasscutter.net.proto.define.MaterialDeleteInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

