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

package io.grasscutter.net.proto.gadget;

/**
 * Protobuf enum {@code VehicleInteractReason}
 */
public enum VehicleInteractReason
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * <code>VehicleInteractReason_NONE = 0;</code>
   */
  VehicleInteractReason_NONE(0),
  /**
   * <code>VehicleInteractReason_DESTORY_VEHCILE = 1;</code>
   */
  VehicleInteractReason_DESTORY_VEHCILE(1),
  /**
   * <code>VehicleInteractReason_ENTER_SCENE = 2;</code>
   */
  VehicleInteractReason_ENTER_SCENE(2),
  /**
   * <code>VehicleInteractReason_LEAVE_SCENE = 3;</code>
   */
  VehicleInteractReason_LEAVE_SCENE(3),
  /**
   * <code>VehicleInteractReason_ACTIVE_VEHCILE = 4;</code>
   */
  VehicleInteractReason_ACTIVE_VEHCILE(4),
  /**
   * <code>VehicleInteractReason_ENTER_VEHICLE = 5;</code>
   */
  VehicleInteractReason_ENTER_VEHICLE(5),
  /**
   * <code>VehicleInteractReason_SPEED_CHECK = 6;</code>
   */
  VehicleInteractReason_SPEED_CHECK(6),
  /**
   * <code>VehicleInteractReason_GM = 7;</code>
   */
  VehicleInteractReason_GM(7),
  /**
   * <code>VehicleInteractReason_USE_WIDGET_TP = 8;</code>
   */
  VehicleInteractReason_USE_WIDGET_TP(8),
  /**
   * <code>VehicleInteractReason_USE_WIDGET_NOT_TP = 9;</code>
   */
  VehicleInteractReason_USE_WIDGET_NOT_TP(9),
  /**
   * <code>VehicleInteractReason_GALLERY_VEHCILE_NOT_TP = 10;</code>
   */
  VehicleInteractReason_GALLERY_VEHCILE_NOT_TP(10),
  /**
   * <code>VehicleInteractReason_QUEST_EXEC = 11;</code>
   */
  VehicleInteractReason_QUEST_EXEC(11),
  UNRECOGNIZED(-1),
  ;

  /**
   * <code>VehicleInteractReason_NONE = 0;</code>
   */
  public static final int VehicleInteractReason_NONE_VALUE = 0;
  /**
   * <code>VehicleInteractReason_DESTORY_VEHCILE = 1;</code>
   */
  public static final int VehicleInteractReason_DESTORY_VEHCILE_VALUE = 1;
  /**
   * <code>VehicleInteractReason_ENTER_SCENE = 2;</code>
   */
  public static final int VehicleInteractReason_ENTER_SCENE_VALUE = 2;
  /**
   * <code>VehicleInteractReason_LEAVE_SCENE = 3;</code>
   */
  public static final int VehicleInteractReason_LEAVE_SCENE_VALUE = 3;
  /**
   * <code>VehicleInteractReason_ACTIVE_VEHCILE = 4;</code>
   */
  public static final int VehicleInteractReason_ACTIVE_VEHCILE_VALUE = 4;
  /**
   * <code>VehicleInteractReason_ENTER_VEHICLE = 5;</code>
   */
  public static final int VehicleInteractReason_ENTER_VEHICLE_VALUE = 5;
  /**
   * <code>VehicleInteractReason_SPEED_CHECK = 6;</code>
   */
  public static final int VehicleInteractReason_SPEED_CHECK_VALUE = 6;
  /**
   * <code>VehicleInteractReason_GM = 7;</code>
   */
  public static final int VehicleInteractReason_GM_VALUE = 7;
  /**
   * <code>VehicleInteractReason_USE_WIDGET_TP = 8;</code>
   */
  public static final int VehicleInteractReason_USE_WIDGET_TP_VALUE = 8;
  /**
   * <code>VehicleInteractReason_USE_WIDGET_NOT_TP = 9;</code>
   */
  public static final int VehicleInteractReason_USE_WIDGET_NOT_TP_VALUE = 9;
  /**
   * <code>VehicleInteractReason_GALLERY_VEHCILE_NOT_TP = 10;</code>
   */
  public static final int VehicleInteractReason_GALLERY_VEHCILE_NOT_TP_VALUE = 10;
  /**
   * <code>VehicleInteractReason_QUEST_EXEC = 11;</code>
   */
  public static final int VehicleInteractReason_QUEST_EXEC_VALUE = 11;


  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 VehicleInteractReason 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 VehicleInteractReason forNumber(int value) {
    switch (value) {
      case 0: return VehicleInteractReason_NONE;
      case 1: return VehicleInteractReason_DESTORY_VEHCILE;
      case 2: return VehicleInteractReason_ENTER_SCENE;
      case 3: return VehicleInteractReason_LEAVE_SCENE;
      case 4: return VehicleInteractReason_ACTIVE_VEHCILE;
      case 5: return VehicleInteractReason_ENTER_VEHICLE;
      case 6: return VehicleInteractReason_SPEED_CHECK;
      case 7: return VehicleInteractReason_GM;
      case 8: return VehicleInteractReason_USE_WIDGET_TP;
      case 9: return VehicleInteractReason_USE_WIDGET_NOT_TP;
      case 10: return VehicleInteractReason_GALLERY_VEHCILE_NOT_TP;
      case 11: return VehicleInteractReason_QUEST_EXEC;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap<VehicleInteractReason>
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      VehicleInteractReason> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<VehicleInteractReason>() {
          public VehicleInteractReason findValueByNumber(int number) {
            return VehicleInteractReason.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.gadget.Gadget.getDescriptor().getEnumTypes().get(4);
  }

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

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

  // @@protoc_insertion_point(enum_scope:VehicleInteractReason)
}

