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

io.envoyproxy.envoy.data.cluster.v3.Action.scala Maven / Gradle / Ivy

There is a newer version: 1.23.0-dev-f04150-1
Show newest version
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3

package io.envoyproxy.envoy.data.cluster.v3

/** Represents possible action applied to upstream host
  */
sealed abstract class Action(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
  type EnumType = Action
  def isEject: _root_.scala.Boolean = false
  def isUneject: _root_.scala.Boolean = false
  def companion: _root_.scalapb.GeneratedEnumCompanion[Action] = io.envoyproxy.envoy.data.cluster.v3.Action
  final def asRecognized: _root_.scala.Option[io.envoyproxy.envoy.data.cluster.v3.Action.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[io.envoyproxy.envoy.data.cluster.v3.Action.Recognized])
}

object Action extends _root_.scalapb.GeneratedEnumCompanion[Action] {
  sealed trait Recognized extends Action
  implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[Action] = this
  
  /** In case host was excluded from service
    */
  @SerialVersionUID(0L)
  case object EJECT extends Action(0) with Action.Recognized {
    val index = 0
    val name = "EJECT"
    override def isEject: _root_.scala.Boolean = true
  }
  
  /** In case host was brought back into service
    */
  @SerialVersionUID(0L)
  case object UNEJECT extends Action(1) with Action.Recognized {
    val index = 1
    val name = "UNEJECT"
    override def isUneject: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends Action(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
  lazy val values = scala.collection.immutable.Seq(EJECT, UNEJECT)
  def fromValue(__value: _root_.scala.Int): Action = __value match {
    case 0 => EJECT
    case 1 => UNEJECT
    case __other => Unrecognized(__other)
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = OutlierDetectionEventProto.javaDescriptor.getEnumTypes().get(1)
  def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = OutlierDetectionEventProto.scalaDescriptor.enums(1)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy