io.envoyproxy.envoy.service.status.v3.ConfigStatus.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envoy-scala-control-plane_2.13 Show documentation
Show all versions of envoy-scala-control-plane_2.13 Show documentation
ScalaPB generated bindings for Envoy
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package io.envoyproxy.envoy.service.status.v3
/** Status of a config from a management server view.
*/
sealed abstract class ConfigStatus(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = ConfigStatus
def isUnknown: _root_.scala.Boolean = false
def isSynced: _root_.scala.Boolean = false
def isNotSent: _root_.scala.Boolean = false
def isStale: _root_.scala.Boolean = false
def isError: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[ConfigStatus] = io.envoyproxy.envoy.service.status.v3.ConfigStatus
final def asRecognized: _root_.scala.Option[io.envoyproxy.envoy.service.status.v3.ConfigStatus.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[io.envoyproxy.envoy.service.status.v3.ConfigStatus.Recognized])
}
object ConfigStatus extends _root_.scalapb.GeneratedEnumCompanion[ConfigStatus] {
sealed trait Recognized extends ConfigStatus
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[ConfigStatus] = this
/** Status info is not available/unknown.
*/
@SerialVersionUID(0L)
case object UNKNOWN extends ConfigStatus(0) with ConfigStatus.Recognized {
val index = 0
val name = "UNKNOWN"
override def isUnknown: _root_.scala.Boolean = true
}
/** Management server has sent the config to client and received ACK.
*/
@SerialVersionUID(0L)
case object SYNCED extends ConfigStatus(1) with ConfigStatus.Recognized {
val index = 1
val name = "SYNCED"
override def isSynced: _root_.scala.Boolean = true
}
/** Config is not sent.
*/
@SerialVersionUID(0L)
case object NOT_SENT extends ConfigStatus(2) with ConfigStatus.Recognized {
val index = 2
val name = "NOT_SENT"
override def isNotSent: _root_.scala.Boolean = true
}
/** Management server has sent the config to client but hasn’t received
* ACK/NACK.
*/
@SerialVersionUID(0L)
case object STALE extends ConfigStatus(3) with ConfigStatus.Recognized {
val index = 3
val name = "STALE"
override def isStale: _root_.scala.Boolean = true
}
/** Management server has sent the config to client but received NACK. The
* attached config dump will be the latest config (the rejected one), since
* it is the persisted version in the management server.
*/
@SerialVersionUID(0L)
case object ERROR extends ConfigStatus(4) with ConfigStatus.Recognized {
val index = 4
val name = "ERROR"
override def isError: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends ConfigStatus(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(UNKNOWN, SYNCED, NOT_SENT, STALE, ERROR)
def fromValue(__value: _root_.scala.Int): ConfigStatus = __value match {
case 0 => UNKNOWN
case 1 => SYNCED
case 2 => NOT_SENT
case 3 => STALE
case 4 => ERROR
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = CsdsProto.javaDescriptor.getEnumTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = CsdsProto.scalaDescriptor.enums(0)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy