xyz.block.ftl.v1.console.LogLevel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ftl-runtime Show documentation
Show all versions of ftl-runtime Show documentation
Towards a 𝝺-calculus for large-scale systems
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: xyz.block.ftl.v1.console.LogLevel in xyz/block/ftl/v1/console/console.proto
@file:Suppress("DEPRECATION")
package xyz.block.ftl.v1.console
import com.squareup.wire.EnumAdapter
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.Syntax.PROTO_3
import com.squareup.wire.WireEnum
import com.squareup.wire.`internal`.JvmField
import com.squareup.wire.`internal`.JvmStatic
import kotlin.Int
import kotlin.Suppress
public enum class LogLevel(
override val `value`: Int,
) : WireEnum {
LOG_LEVEL_UNKNOWN(0),
LOG_LEVEL_TRACE(1),
LOG_LEVEL_DEBUG(5),
LOG_LEVEL_INFO(9),
LOG_LEVEL_WARN(13),
LOG_LEVEL_ERROR(17),
;
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : EnumAdapter(
LogLevel::class,
PROTO_3,
LogLevel.LOG_LEVEL_UNKNOWN
) {
override fun fromValue(`value`: Int): LogLevel? = LogLevel.fromValue(`value`)
}
@JvmStatic
public fun fromValue(`value`: Int): LogLevel? = when (`value`) {
0 -> LOG_LEVEL_UNKNOWN
1 -> LOG_LEVEL_TRACE
5 -> LOG_LEVEL_DEBUG
9 -> LOG_LEVEL_INFO
13 -> LOG_LEVEL_WARN
17 -> LOG_LEVEL_ERROR
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy