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

package io.grasscutter.net.proto.property;

/**
 * Protobuf enum {@code PropChangeReason}
 */
public enum PropChangeReason
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * <code>PropChangeReason_PROP_CHANGE_NONE = 0;</code>
   */
  PropChangeReason_PROP_CHANGE_NONE(0),
  /**
   * <code>PropChangeReason_PROP_CHANGE_STATUE_RECOVER = 1;</code>
   */
  PropChangeReason_PROP_CHANGE_STATUE_RECOVER(1),
  /**
   * <code>PropChangeReason_PROP_CHANGE_ENERGY_BALL = 2;</code>
   */
  PropChangeReason_PROP_CHANGE_ENERGY_BALL(2),
  /**
   * <code>PropChangeReason_PROP_CHANGE_ABILITY = 3;</code>
   */
  PropChangeReason_PROP_CHANGE_ABILITY(3),
  /**
   * <code>PropChangeReason_PROP_CHANGE_LEVELUP = 4;</code>
   */
  PropChangeReason_PROP_CHANGE_LEVELUP(4),
  /**
   * <code>PropChangeReason_PROP_CHANGE_ITEM = 5;</code>
   */
  PropChangeReason_PROP_CHANGE_ITEM(5),
  /**
   * <code>PropChangeReason_PROP_CHANGE_AVATAR_CARD = 6;</code>
   */
  PropChangeReason_PROP_CHANGE_AVATAR_CARD(6),
  /**
   * <code>PropChangeReason_PROP_CHANGE_CITY_LEVELUP = 7;</code>
   */
  PropChangeReason_PROP_CHANGE_CITY_LEVELUP(7),
  /**
   * <code>PropChangeReason_PROP_CHANGE_AVATAR_UPGRADE = 8;</code>
   */
  PropChangeReason_PROP_CHANGE_AVATAR_UPGRADE(8),
  /**
   * <code>PropChangeReason_PROP_CHANGE_AVATAR_PROMOTE = 9;</code>
   */
  PropChangeReason_PROP_CHANGE_AVATAR_PROMOTE(9),
  /**
   * <code>PropChangeReason_PROP_CHANGE_PLAYER_ADD_EXP = 10;</code>
   */
  PropChangeReason_PROP_CHANGE_PLAYER_ADD_EXP(10),
  /**
   * <code>PropChangeReason_PROP_CHANGE_FINISH_QUEST = 11;</code>
   */
  PropChangeReason_PROP_CHANGE_FINISH_QUEST(11),
  /**
   * <code>PropChangeReason_PROP_CHANGE_GM = 12;</code>
   */
  PropChangeReason_PROP_CHANGE_GM(12),
  /**
   * <code>PropChangeReason_PROP_CHANGE_MANUAL_ADJUST_WORLD_LEVEL = 13;</code>
   */
  PropChangeReason_PROP_CHANGE_MANUAL_ADJUST_WORLD_LEVEL(13),
  UNRECOGNIZED(-1),
  ;

  /**
   * <code>PropChangeReason_PROP_CHANGE_NONE = 0;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_NONE_VALUE = 0;
  /**
   * <code>PropChangeReason_PROP_CHANGE_STATUE_RECOVER = 1;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_STATUE_RECOVER_VALUE = 1;
  /**
   * <code>PropChangeReason_PROP_CHANGE_ENERGY_BALL = 2;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_ENERGY_BALL_VALUE = 2;
  /**
   * <code>PropChangeReason_PROP_CHANGE_ABILITY = 3;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_ABILITY_VALUE = 3;
  /**
   * <code>PropChangeReason_PROP_CHANGE_LEVELUP = 4;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_LEVELUP_VALUE = 4;
  /**
   * <code>PropChangeReason_PROP_CHANGE_ITEM = 5;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_ITEM_VALUE = 5;
  /**
   * <code>PropChangeReason_PROP_CHANGE_AVATAR_CARD = 6;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_AVATAR_CARD_VALUE = 6;
  /**
   * <code>PropChangeReason_PROP_CHANGE_CITY_LEVELUP = 7;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_CITY_LEVELUP_VALUE = 7;
  /**
   * <code>PropChangeReason_PROP_CHANGE_AVATAR_UPGRADE = 8;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_AVATAR_UPGRADE_VALUE = 8;
  /**
   * <code>PropChangeReason_PROP_CHANGE_AVATAR_PROMOTE = 9;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_AVATAR_PROMOTE_VALUE = 9;
  /**
   * <code>PropChangeReason_PROP_CHANGE_PLAYER_ADD_EXP = 10;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_PLAYER_ADD_EXP_VALUE = 10;
  /**
   * <code>PropChangeReason_PROP_CHANGE_FINISH_QUEST = 11;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_FINISH_QUEST_VALUE = 11;
  /**
   * <code>PropChangeReason_PROP_CHANGE_GM = 12;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_GM_VALUE = 12;
  /**
   * <code>PropChangeReason_PROP_CHANGE_MANUAL_ADJUST_WORLD_LEVEL = 13;</code>
   */
  public static final int PropChangeReason_PROP_CHANGE_MANUAL_ADJUST_WORLD_LEVEL_VALUE = 13;


  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 PropChangeReason 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 PropChangeReason forNumber(int value) {
    switch (value) {
      case 0: return PropChangeReason_PROP_CHANGE_NONE;
      case 1: return PropChangeReason_PROP_CHANGE_STATUE_RECOVER;
      case 2: return PropChangeReason_PROP_CHANGE_ENERGY_BALL;
      case 3: return PropChangeReason_PROP_CHANGE_ABILITY;
      case 4: return PropChangeReason_PROP_CHANGE_LEVELUP;
      case 5: return PropChangeReason_PROP_CHANGE_ITEM;
      case 6: return PropChangeReason_PROP_CHANGE_AVATAR_CARD;
      case 7: return PropChangeReason_PROP_CHANGE_CITY_LEVELUP;
      case 8: return PropChangeReason_PROP_CHANGE_AVATAR_UPGRADE;
      case 9: return PropChangeReason_PROP_CHANGE_AVATAR_PROMOTE;
      case 10: return PropChangeReason_PROP_CHANGE_PLAYER_ADD_EXP;
      case 11: return PropChangeReason_PROP_CHANGE_FINISH_QUEST;
      case 12: return PropChangeReason_PROP_CHANGE_GM;
      case 13: return PropChangeReason_PROP_CHANGE_MANUAL_ADJUST_WORLD_LEVEL;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap<PropChangeReason>
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      PropChangeReason> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<PropChangeReason>() {
          public PropChangeReason findValueByNumber(int number) {
            return PropChangeReason.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(1);
  }

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

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

  // @@protoc_insertion_point(enum_scope:PropChangeReason)
}

