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

io.envoyproxy.envoy.service.status.v3.ClientConfigStatus.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.service.status.v3

/** Config status from a client-side view.
  */
sealed abstract class ClientConfigStatus(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
  type EnumType = ClientConfigStatus
  def isClientUnknown: _root_.scala.Boolean = false
  def isClientRequested: _root_.scala.Boolean = false
  def isClientAcked: _root_.scala.Boolean = false
  def isClientNacked: _root_.scala.Boolean = false
  def companion: _root_.scalapb.GeneratedEnumCompanion[ClientConfigStatus] = io.envoyproxy.envoy.service.status.v3.ClientConfigStatus
  final def asRecognized: _root_.scala.Option[io.envoyproxy.envoy.service.status.v3.ClientConfigStatus.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[io.envoyproxy.envoy.service.status.v3.ClientConfigStatus.Recognized])
}

object ClientConfigStatus extends _root_.scalapb.GeneratedEnumCompanion[ClientConfigStatus] {
  sealed trait Recognized extends ClientConfigStatus
  implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[ClientConfigStatus] = this
  
  /** Config status is not available/unknown.
    */
  @SerialVersionUID(0L)
  case object CLIENT_UNKNOWN extends ClientConfigStatus(0) with ClientConfigStatus.Recognized {
    val index = 0
    val name = "CLIENT_UNKNOWN"
    override def isClientUnknown: _root_.scala.Boolean = true
  }
  
  /** Client requested the config but hasn't received any config from management
    * server yet.
    */
  @SerialVersionUID(0L)
  case object CLIENT_REQUESTED extends ClientConfigStatus(1) with ClientConfigStatus.Recognized {
    val index = 1
    val name = "CLIENT_REQUESTED"
    override def isClientRequested: _root_.scala.Boolean = true
  }
  
  /** Client received the config and replied with ACK.
    */
  @SerialVersionUID(0L)
  case object CLIENT_ACKED extends ClientConfigStatus(2) with ClientConfigStatus.Recognized {
    val index = 2
    val name = "CLIENT_ACKED"
    override def isClientAcked: _root_.scala.Boolean = true
  }
  
  /** Client received the config and replied with NACK. Notably, the attached
    * config dump is not the NACKed version, but the most recent accepted one. If
    * no config is accepted yet, the attached config dump will be empty.
    */
  @SerialVersionUID(0L)
  case object CLIENT_NACKED extends ClientConfigStatus(3) with ClientConfigStatus.Recognized {
    val index = 3
    val name = "CLIENT_NACKED"
    override def isClientNacked: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends ClientConfigStatus(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
  lazy val values = scala.collection.immutable.Seq(CLIENT_UNKNOWN, CLIENT_REQUESTED, CLIENT_ACKED, CLIENT_NACKED)
  def fromValue(__value: _root_.scala.Int): ClientConfigStatus = __value match {
    case 0 => CLIENT_UNKNOWN
    case 1 => CLIENT_REQUESTED
    case 2 => CLIENT_ACKED
    case 3 => CLIENT_NACKED
    case __other => Unrecognized(__other)
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = CsdsProto.javaDescriptor.getEnumTypes().get(1)
  def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = CsdsProto.scalaDescriptor.enums(1)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy