All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.block.ftl.v1.ControllerState.kt Maven / Gradle / Ivy

There is a newer version: 0.189.0
Show newest version
// 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