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

routerrpc.ResolveHoldForwardAction.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 ResolveHoldForwardAction(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
  type EnumType = ResolveHoldForwardAction
  def isSettle: _root_.scala.Boolean = false
  def isFail: _root_.scala.Boolean = false
  def isResume: _root_.scala.Boolean = false
  def companion: _root_.scalapb.GeneratedEnumCompanion[ResolveHoldForwardAction] = routerrpc.ResolveHoldForwardAction
  final def asRecognized: _root_.scala.Option[routerrpc.ResolveHoldForwardAction.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[routerrpc.ResolveHoldForwardAction.Recognized])
}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy