xyz.block.ftl.v1.schema.Status.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.schema.Status in xyz/block/ftl/v1/schema/runtime.proto
package xyz.block.ftl.v1.schema
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
public enum class Status(
override val `value`: Int,
) : WireEnum {
OFFLINE(0),
STARTING(1),
ONLINE(2),
STOPPING(3),
STOPPED(4),
ERRORED(5),
;
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : EnumAdapter(
Status::class,
PROTO_3,
Status.OFFLINE
) {
override fun fromValue(`value`: Int): Status? = Status.fromValue(value)
}
@JvmStatic
public fun fromValue(`value`: Int): Status? = when (value) {
0 -> OFFLINE
1 -> STARTING
2 -> ONLINE
3 -> STOPPING
4 -> STOPPED
5 -> ERRORED
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy