xyz.block.ftl.v1.ControllerState.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.ControllerState in xyz/block/ftl/v1/ftl.proto
package xyz.block.ftl.v1
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 ControllerState(
override val `value`: Int,
) : WireEnum {
CONTROLLER_LIVE(0),
CONTROLLER_DEAD(1),
;
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : EnumAdapter(
ControllerState::class,
PROTO_3,
ControllerState.CONTROLLER_LIVE
) {
override fun fromValue(`value`: Int): ControllerState? = ControllerState.fromValue(value)
}
@JvmStatic
public fun fromValue(`value`: Int): ControllerState? = when (value) {
0 -> CONTROLLER_LIVE
1 -> CONTROLLER_DEAD
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy