// Code generated by protocol buffer compiler. Do not edit!
package emu.lunarcore.proto;

import us.hebi.quickbuf.ProtoEnum;
import us.hebi.quickbuf.ProtoUtil;

public final class BigDataRecommendTypeOuterClass {
  /**
   * Protobuf enum {@code BigDataRecommendType}
   */
  public enum BigDataRecommendType implements ProtoEnum<BigDataRecommendType> {
    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_NONE = 0;</code>
     */
    BIG_DATA_RECOMMEND_TYPE_NONE("BIG_DATA_RECOMMEND_TYPE_NONE", 0),

    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_EQUIPMENT = 1;</code>
     */
    BIG_DATA_RECOMMEND_TYPE_EQUIPMENT("BIG_DATA_RECOMMEND_TYPE_EQUIPMENT", 1),

    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT = 2;</code>
     */
    BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT("BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT", 2),

    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR = 3;</code>
     */
    BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR("BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR", 3),

    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC = 4;</code>
     */
    BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC("BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC", 4);

    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_NONE = 0;</code>
     */
    public static final int BIG_DATA_RECOMMEND_TYPE_NONE_VALUE = 0;

    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_EQUIPMENT = 1;</code>
     */
    public static final int BIG_DATA_RECOMMEND_TYPE_EQUIPMENT_VALUE = 1;

    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT = 2;</code>
     */
    public static final int BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT_VALUE = 2;

    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR = 3;</code>
     */
    public static final int BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR_VALUE = 3;

    /**
     * <code>BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC = 4;</code>
     */
    public static final int BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC_VALUE = 4;

    private final String name;

    private final int number;

    private BigDataRecommendType(String name, int number) {
      this.name = name;
      this.number = number;
    }

    /**
     * @return the string representation of enum entry
     */
    @Override
    public String getName() {
      return name;
    }

    /**
     * @return the numeric wire value of this enum entry
     */
    @Override
    public int getNumber() {
      return number;
    }

    /**
     * @return a converter that maps between this enum's numeric and text representations
     */
    public static ProtoEnum.EnumConverter<BigDataRecommendType> converter() {
      return BigDataRecommendTypeConverter.INSTANCE;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value, or null if unknown.
     */
    public static BigDataRecommendType forNumber(int value) {
      return BigDataRecommendTypeConverter.INSTANCE.forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @param other Fallback value in case the value is not known.
     * @return The enum associated with the given numeric wire value, or the fallback value if unknown.
     */
    public static BigDataRecommendType forNumberOr(int number, BigDataRecommendType other) {
      BigDataRecommendType value = forNumber(number);
      return value == null ? other : value;
    }

    enum BigDataRecommendTypeConverter implements ProtoEnum.EnumConverter<BigDataRecommendType> {
      INSTANCE;

      private static final BigDataRecommendType[] lookup = new BigDataRecommendType[5];

      static {
        lookup[0] = BIG_DATA_RECOMMEND_TYPE_NONE;
        lookup[1] = BIG_DATA_RECOMMEND_TYPE_EQUIPMENT;
        lookup[2] = BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT;
        lookup[3] = BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR;
        lookup[4] = BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC;
      }

      @Override
      public final BigDataRecommendType forNumber(final int value) {
        if (value >= 0 && value < lookup.length) {
          return lookup[value];
        }
        return null;
      }

      @Override
      public final BigDataRecommendType forName(final CharSequence value) {
        switch (value.length()) {
          case 28: {
            if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_NONE", value)) {
              return BIG_DATA_RECOMMEND_TYPE_NONE;
            }
            break;
          }
          case 33: {
            if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_EQUIPMENT", value)) {
              return BIG_DATA_RECOMMEND_TYPE_EQUIPMENT;
            }
            break;
          }
          case 34: {
            if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT", value)) {
              return BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT;
            }
            break;
          }
          case 36: {
            if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR", value)) {
              return BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR;
            }
            if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC", value)) {
              return BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC;
            }
            break;
          }
        }
        return null;
      }
    }
  }
}
