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

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

There is a newer version: 0.133.2
Show newest version
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: xyz.block.ftl.v1.RunnerState 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 RunnerState(
  override val `value`: Int,
) : WireEnum {
  /**
   * The Runner is waiting for a deployment.
   */
  RUNNER_IDLE(0),
  /**
   * The Runner and Controller have agreed that the Runner is reserved.
   */
  RUNNER_RESERVED(1),
  /**
   * The Runner is assigned to a deployment.
   */
  RUNNER_ASSIGNED(2),
  /**
   * The Runner is dead.
   */
  RUNNER_DEAD(3),
  ;

  public companion object {
    @JvmField
    public val ADAPTER: ProtoAdapter = object : EnumAdapter(
      RunnerState::class, 
      PROTO_3, 
      RunnerState.RUNNER_IDLE
    ) {
      override fun fromValue(`value`: Int): RunnerState? = RunnerState.fromValue(value)
    }

    @JvmStatic
    public fun fromValue(`value`: Int): RunnerState? = when (value) {
      0 -> RUNNER_IDLE
      1 -> RUNNER_RESERVED
      2 -> RUNNER_ASSIGNED
      3 -> RUNNER_DEAD
      else -> null
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy