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

package io.grasscutter.net.proto.scene;

/**
 * Protobuf enum {@code EnterType}
 */
public enum EnterType
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * <code>EnterType_ENTER_NONE = 0;</code>
   */
  EnterType_ENTER_NONE(0),
  /**
   * <code>EnterType_ENTER_SELF = 1;</code>
   */
  EnterType_ENTER_SELF(1),
  /**
   * <code>EnterType_ENTER_GOTO = 2;</code>
   */
  EnterType_ENTER_GOTO(2),
  /**
   * <code>EnterType_ENTER_JUMP = 3;</code>
   */
  EnterType_ENTER_JUMP(3),
  /**
   * <code>EnterType_ENTER_OTHER = 4;</code>
   */
  EnterType_ENTER_OTHER(4),
  /**
   * <code>EnterType_ENTER_BACK = 5;</code>
   */
  EnterType_ENTER_BACK(5),
  /**
   * <code>EnterType_ENTER_DUNGEON = 6;</code>
   */
  EnterType_ENTER_DUNGEON(6),
  /**
   * <code>EnterType_ENTER_DUNGEON_REPLAY = 7;</code>
   */
  EnterType_ENTER_DUNGEON_REPLAY(7),
  /**
   * <code>EnterType_ENTER_GOTO_BY_PORTAL = 8;</code>
   */
  EnterType_ENTER_GOTO_BY_PORTAL(8),
  /**
   * <code>EnterType_ENTER_SELF_HOME = 9;</code>
   */
  EnterType_ENTER_SELF_HOME(9),
  /**
   * <code>EnterType_ENTER_OTHER_HOME = 10;</code>
   */
  EnterType_ENTER_OTHER_HOME(10),
  /**
   * <code>EnterType_ENTER_GOTO_RECREATE = 11;</code>
   */
  EnterType_ENTER_GOTO_RECREATE(11),
  /**
   * <code>EnterType_ENTER_GOTO_BY_TPL = 12;</code>
   */
  EnterType_ENTER_GOTO_BY_TPL(12),
  UNRECOGNIZED(-1),
  ;

  /**
   * <code>EnterType_ENTER_NONE = 0;</code>
   */
  public static final int EnterType_ENTER_NONE_VALUE = 0;
  /**
   * <code>EnterType_ENTER_SELF = 1;</code>
   */
  public static final int EnterType_ENTER_SELF_VALUE = 1;
  /**
   * <code>EnterType_ENTER_GOTO = 2;</code>
   */
  public static final int EnterType_ENTER_GOTO_VALUE = 2;
  /**
   * <code>EnterType_ENTER_JUMP = 3;</code>
   */
  public static final int EnterType_ENTER_JUMP_VALUE = 3;
  /**
   * <code>EnterType_ENTER_OTHER = 4;</code>
   */
  public static final int EnterType_ENTER_OTHER_VALUE = 4;
  /**
   * <code>EnterType_ENTER_BACK = 5;</code>
   */
  public static final int EnterType_ENTER_BACK_VALUE = 5;
  /**
   * <code>EnterType_ENTER_DUNGEON = 6;</code>
   */
  public static final int EnterType_ENTER_DUNGEON_VALUE = 6;
  /**
   * <code>EnterType_ENTER_DUNGEON_REPLAY = 7;</code>
   */
  public static final int EnterType_ENTER_DUNGEON_REPLAY_VALUE = 7;
  /**
   * <code>EnterType_ENTER_GOTO_BY_PORTAL = 8;</code>
   */
  public static final int EnterType_ENTER_GOTO_BY_PORTAL_VALUE = 8;
  /**
   * <code>EnterType_ENTER_SELF_HOME = 9;</code>
   */
  public static final int EnterType_ENTER_SELF_HOME_VALUE = 9;
  /**
   * <code>EnterType_ENTER_OTHER_HOME = 10;</code>
   */
  public static final int EnterType_ENTER_OTHER_HOME_VALUE = 10;
  /**
   * <code>EnterType_ENTER_GOTO_RECREATE = 11;</code>
   */
  public static final int EnterType_ENTER_GOTO_RECREATE_VALUE = 11;
  /**
   * <code>EnterType_ENTER_GOTO_BY_TPL = 12;</code>
   */
  public static final int EnterType_ENTER_GOTO_BY_TPL_VALUE = 12;


  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 EnterType 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 EnterType forNumber(int value) {
    switch (value) {
      case 0: return EnterType_ENTER_NONE;
      case 1: return EnterType_ENTER_SELF;
      case 2: return EnterType_ENTER_GOTO;
      case 3: return EnterType_ENTER_JUMP;
      case 4: return EnterType_ENTER_OTHER;
      case 5: return EnterType_ENTER_BACK;
      case 6: return EnterType_ENTER_DUNGEON;
      case 7: return EnterType_ENTER_DUNGEON_REPLAY;
      case 8: return EnterType_ENTER_GOTO_BY_PORTAL;
      case 9: return EnterType_ENTER_SELF_HOME;
      case 10: return EnterType_ENTER_OTHER_HOME;
      case 11: return EnterType_ENTER_GOTO_RECREATE;
      case 12: return EnterType_ENTER_GOTO_BY_TPL;
      default: return null;
    }
  }

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

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

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

  // @@protoc_insertion_point(enum_scope:EnterType)
}

