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

io.envoyproxy.envoy.admin.v3.ClientResourceStatus.scala Maven / Gradle / Ivy

// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3

package io.envoyproxy.envoy.admin.v3

/** Resource status from the view of a xDS client, which tells the synchronization
  * status between the xDS client and the xDS server.
  */
sealed abstract class ClientResourceStatus(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
  type EnumType = ClientResourceStatus
  def isUnknown: _root_.scala.Boolean = false
  def isRequested: _root_.scala.Boolean = false
  def isDoesNotExist: _root_.scala.Boolean = false
  def isAcked: _root_.scala.Boolean = false
  def isNacked: _root_.scala.Boolean = false
  def companion: _root_.scalapb.GeneratedEnumCompanion[ClientResourceStatus] = io.envoyproxy.envoy.admin.v3.ClientResourceStatus
  final def asRecognized: _root_.scala.Option[io.envoyproxy.envoy.admin.v3.ClientResourceStatus.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[io.envoyproxy.envoy.admin.v3.ClientResourceStatus.Recognized])
}

object ClientResourceStatus extends _root_.scalapb.GeneratedEnumCompanion[ClientResourceStatus] {
  sealed trait Recognized extends ClientResourceStatus
  implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[ClientResourceStatus] = this
  
  /** Resource status is not available/unknown.
    */
  @SerialVersionUID(0L)
  case object UNKNOWN extends ClientResourceStatus(0) with ClientResourceStatus.Recognized {
    val index = 0
    val name = "UNKNOWN"
    override def isUnknown: _root_.scala.Boolean = true
  }
  
  /** Client requested this resource but hasn't received any update from management
    * server. The client will not fail requests, but will queue them until update
    * arrives or the client times out waiting for the resource.
    */
  @SerialVersionUID(0L)
  case object REQUESTED extends ClientResourceStatus(1) with ClientResourceStatus.Recognized {
    val index = 1
    val name = "REQUESTED"
    override def isRequested: _root_.scala.Boolean = true
  }
  
  /** This resource has been requested by the client but has either not been
    * delivered by the server or was previously delivered by the server and then
    * subsequently removed from resources provided by the server. For more
    * information, please refer to the :ref:`"Knowing When a Requested Resource
    * Does Not Exist" <xds_protocol_resource_not_existed>` section.
    */
  @SerialVersionUID(0L)
  case object DOES_NOT_EXIST extends ClientResourceStatus(2) with ClientResourceStatus.Recognized {
    val index = 2
    val name = "DOES_NOT_EXIST"
    override def isDoesNotExist: _root_.scala.Boolean = true
  }
  
  /** Client received this resource and replied with ACK.
    */
  @SerialVersionUID(0L)
  case object ACKED extends ClientResourceStatus(3) with ClientResourceStatus.Recognized {
    val index = 3
    val name = "ACKED"
    override def isAcked: _root_.scala.Boolean = true
  }
  
  /** Client received this resource and replied with NACK.
    */
  @SerialVersionUID(0L)
  case object NACKED extends ClientResourceStatus(4) with ClientResourceStatus.Recognized {
    val index = 4
    val name = "NACKED"
    override def isNacked: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends ClientResourceStatus(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
  lazy val values = scala.collection.immutable.Seq(UNKNOWN, REQUESTED, DOES_NOT_EXIST, ACKED, NACKED)
  def fromValue(__value: _root_.scala.Int): ClientResourceStatus = __value match {
    case 0 => UNKNOWN
    case 1 => REQUESTED
    case 2 => DOES_NOT_EXIST
    case 3 => ACKED
    case 4 => NACKED
    case __other => Unrecognized(__other)
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = ConfigDumpProto.javaDescriptor.getEnumTypes().get(0)
  def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = ConfigDumpProto.scalaDescriptor.enums(0)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy