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

routerrpc.ChanStatusAction.scala Maven / Gradle / Ivy

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

package routerrpc

sealed abstract class ChanStatusAction(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
  type EnumType = ChanStatusAction
  def isEnable: _root_.scala.Boolean = false
  def isDisable: _root_.scala.Boolean = false
  def isAuto: _root_.scala.Boolean = false
  def companion: _root_.scalapb.GeneratedEnumCompanion[ChanStatusAction] = routerrpc.ChanStatusAction
  final def asRecognized: _root_.scala.Option[routerrpc.ChanStatusAction.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[routerrpc.ChanStatusAction.Recognized])
}

object ChanStatusAction extends _root_.scalapb.GeneratedEnumCompanion[ChanStatusAction] {
  sealed trait Recognized extends ChanStatusAction
  implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[ChanStatusAction] = this
  
  @SerialVersionUID(0L)
  case object ENABLE extends ChanStatusAction(0) with ChanStatusAction.Recognized {
    val index = 0
    val name = "ENABLE"
    override def isEnable: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object DISABLE extends ChanStatusAction(1) with ChanStatusAction.Recognized {
    val index = 1
    val name = "DISABLE"
    override def isDisable: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object AUTO extends ChanStatusAction(2) with ChanStatusAction.Recognized {
    val index = 2
    val name = "AUTO"
    override def isAuto: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends ChanStatusAction(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
  lazy val values = scala.collection.immutable.Seq(ENABLE, DISABLE, AUTO)
  def fromValue(__value: _root_.scala.Int): ChanStatusAction = __value match {
    case 0 => ENABLE
    case 1 => DISABLE
    case 2 => AUTO
    case __other => Unrecognized(__other)
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = RouterProto.javaDescriptor.getEnumTypes().get(3)
  def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = RouterProto.scalaDescriptor.enums(3)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy