/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // @generated by enums.py package com.facebook.yoga import com.facebook.yoga.annotations.DoNotStrip @DoNotStrip public enum class YogaLogLevel(public val intValue: Int) { ERROR(0), WARN(1), INFO(2), DEBUG(3), VERBOSE(4), FATAL(5); public fun intValue(): Int = intValue public companion object { @DoNotStrip @JvmStatic public fun fromInt(value: Int): YogaLogLevel = when (value) { 0 -> ERROR 1 -> WARN 2 -> INFO 3 -> DEBUG 4 -> VERBOSE 5 -> FATAL else -> throw IllegalArgumentException("Unknown enum value: $value") } } }