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

package emu.grasscutter.net.proto;

public final class ReasonOuterClass {
  private ReasonOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code Reason}
   */
  public enum Reason
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>REASON_SUCC = 0;</code>
     */
    REASON_SUCC(0),
    /**
     * <code>REASON_TARGET_SCENE_CANNOT_ENTER = 1;</code>
     */
    REASON_TARGET_SCENE_CANNOT_ENTER(1),
    /**
     * <code>REASON_SELF_MP_UNAVAILABLE = 2;</code>
     */
    REASON_SELF_MP_UNAVAILABLE(2),
    /**
     * <code>REASON_OTHER_DATA_VERSION_NOT_LATEST = 3;</code>
     */
    REASON_OTHER_DATA_VERSION_NOT_LATEST(3),
    /**
     * <code>REASON_DATA_VERSION_NOT_LATEST = 4;</code>
     */
    REASON_DATA_VERSION_NOT_LATEST(4),
    /**
     * <code>REASON_GM_CLEAR = 5;</code>
     */
    REASON_GM_CLEAR(5),
    /**
     * <code>REASON_PLAYER_TRANSFER = 6;</code>
     */
    REASON_PLAYER_TRANSFER(6),
    /**
     * <code>REASON_CLIENT_CHECKSUM_INVALID = 7;</code>
     */
    REASON_CLIENT_CHECKSUM_INVALID(7),
    /**
     * <code>NHMKGJGLHPO = 8;</code>
     */
    NHMKGJGLHPO(8),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>REASON_SUCC = 0;</code>
     */
    public static final int REASON_SUCC_VALUE = 0;
    /**
     * <code>REASON_TARGET_SCENE_CANNOT_ENTER = 1;</code>
     */
    public static final int REASON_TARGET_SCENE_CANNOT_ENTER_VALUE = 1;
    /**
     * <code>REASON_SELF_MP_UNAVAILABLE = 2;</code>
     */
    public static final int REASON_SELF_MP_UNAVAILABLE_VALUE = 2;
    /**
     * <code>REASON_OTHER_DATA_VERSION_NOT_LATEST = 3;</code>
     */
    public static final int REASON_OTHER_DATA_VERSION_NOT_LATEST_VALUE = 3;
    /**
     * <code>REASON_DATA_VERSION_NOT_LATEST = 4;</code>
     */
    public static final int REASON_DATA_VERSION_NOT_LATEST_VALUE = 4;
    /**
     * <code>REASON_GM_CLEAR = 5;</code>
     */
    public static final int REASON_GM_CLEAR_VALUE = 5;
    /**
     * <code>REASON_PLAYER_TRANSFER = 6;</code>
     */
    public static final int REASON_PLAYER_TRANSFER_VALUE = 6;
    /**
     * <code>REASON_CLIENT_CHECKSUM_INVALID = 7;</code>
     */
    public static final int REASON_CLIENT_CHECKSUM_INVALID_VALUE = 7;
    /**
     * <code>NHMKGJGLHPO = 8;</code>
     */
    public static final int NHMKGJGLHPO_VALUE = 8;


    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 Reason 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 Reason forNumber(int value) {
      switch (value) {
        case 0: return REASON_SUCC;
        case 1: return REASON_TARGET_SCENE_CANNOT_ENTER;
        case 2: return REASON_SELF_MP_UNAVAILABLE;
        case 3: return REASON_OTHER_DATA_VERSION_NOT_LATEST;
        case 4: return REASON_DATA_VERSION_NOT_LATEST;
        case 5: return REASON_GM_CLEAR;
        case 6: return REASON_PLAYER_TRANSFER;
        case 7: return REASON_CLIENT_CHECKSUM_INVALID;
        case 8: return NHMKGJGLHPO;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Reason>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Reason> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<Reason>() {
            public Reason findValueByNumber(int number) {
              return Reason.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 emu.grasscutter.net.proto.ReasonOuterClass.getDescriptor().getEnumTypes().get(0);
    }

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

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

    // @@protoc_insertion_point(enum_scope:Reason)
  }


  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\014Reason.proto*\223\002\n\006Reason\022\017\n\013REASON_SUCC" +
      "\020\000\022$\n REASON_TARGET_SCENE_CANNOT_ENTER\020\001" +
      "\022\036\n\032REASON_SELF_MP_UNAVAILABLE\020\002\022(\n$REAS" +
      "ON_OTHER_DATA_VERSION_NOT_LATEST\020\003\022\"\n\036RE" +
      "ASON_DATA_VERSION_NOT_LATEST\020\004\022\023\n\017REASON" +
      "_GM_CLEAR\020\005\022\032\n\026REASON_PLAYER_TRANSFER\020\006\022" +
      "\"\n\036REASON_CLIENT_CHECKSUM_INVALID\020\007\022\017\n\013N" +
      "HMKGJGLHPO\020\010B\033\n\031emu.grasscutter.net.prot" +
      "ob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
