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

package io.grasscutter.net.proto.property;

/**
 * Protobuf enum {@code ChangeHpDebts}
 */
public enum ChangeHpDebts
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_NONE = 0;</code>
   */
  ChangeHpDebts_CHANGE_HP_DEBTS_NONE(0),
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_PAY = 1;</code>
   */
  ChangeHpDebts_CHANGE_HP_DEBTS_PAY(1),
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_PAY_FINISH = 2;</code>
   */
  ChangeHpDebts_CHANGE_HP_DEBTS_PAY_FINISH(2),
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_CLEAR = 21;</code>
   */
  ChangeHpDebts_CHANGE_HP_DEBTS_CLEAR(21),
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_REDUCE_ABILITY = 41;</code>
   */
  ChangeHpDebts_CHANGE_HP_DEBTS_REDUCE_ABILITY(41),
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_ADD_ABILITY = 51;</code>
   */
  ChangeHpDebts_CHANGE_HP_DEBTS_ADD_ABILITY(51),
  UNRECOGNIZED(-1),
  ;

  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_NONE = 0;</code>
   */
  public static final int ChangeHpDebts_CHANGE_HP_DEBTS_NONE_VALUE = 0;
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_PAY = 1;</code>
   */
  public static final int ChangeHpDebts_CHANGE_HP_DEBTS_PAY_VALUE = 1;
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_PAY_FINISH = 2;</code>
   */
  public static final int ChangeHpDebts_CHANGE_HP_DEBTS_PAY_FINISH_VALUE = 2;
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_CLEAR = 21;</code>
   */
  public static final int ChangeHpDebts_CHANGE_HP_DEBTS_CLEAR_VALUE = 21;
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_REDUCE_ABILITY = 41;</code>
   */
  public static final int ChangeHpDebts_CHANGE_HP_DEBTS_REDUCE_ABILITY_VALUE = 41;
  /**
   * <code>ChangeHpDebts_CHANGE_HP_DEBTS_ADD_ABILITY = 51;</code>
   */
  public static final int ChangeHpDebts_CHANGE_HP_DEBTS_ADD_ABILITY_VALUE = 51;


  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 ChangeHpDebts 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 ChangeHpDebts forNumber(int value) {
    switch (value) {
      case 0: return ChangeHpDebts_CHANGE_HP_DEBTS_NONE;
      case 1: return ChangeHpDebts_CHANGE_HP_DEBTS_PAY;
      case 2: return ChangeHpDebts_CHANGE_HP_DEBTS_PAY_FINISH;
      case 21: return ChangeHpDebts_CHANGE_HP_DEBTS_CLEAR;
      case 41: return ChangeHpDebts_CHANGE_HP_DEBTS_REDUCE_ABILITY;
      case 51: return ChangeHpDebts_CHANGE_HP_DEBTS_ADD_ABILITY;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap<ChangeHpDebts>
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      ChangeHpDebts> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<ChangeHpDebts>() {
          public ChangeHpDebts findValueByNumber(int number) {
            return ChangeHpDebts.forNumber(number);
          }
        };

  public final com.google.protobuf.Descriptors.EnumValueDescriptor
      getValueDescriptor() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalStateException(
          "Can't get the descriptor of an unrecognized enum value.");
    }
    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 io.grasscutter.net.proto.property.Property.getDescriptor().getEnumTypes().get(2);
  }

  private static final ChangeHpDebts[] VALUES = values();

  public static ChangeHpDebts 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 ChangeHpDebts(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:ChangeHpDebts)
}

