lnrpc.Initiator.scala Maven / Gradle / Ivy
The newest version!
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package lnrpc
import org.bitcoins.lnd.rpc.LndUtils._
sealed abstract class Initiator(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = Initiator
def isInitiatorUnknown: _root_.scala.Boolean = false
def isInitiatorLocal: _root_.scala.Boolean = false
def isInitiatorRemote: _root_.scala.Boolean = false
def isInitiatorBoth: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[Initiator] = lnrpc.Initiator
final def asRecognized: _root_.scala.Option[lnrpc.Initiator.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[lnrpc.Initiator.Recognized])
}
object Initiator extends _root_.scalapb.GeneratedEnumCompanion[Initiator] {
sealed trait Recognized extends Initiator
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[Initiator] = this
@SerialVersionUID(0L)
case object INITIATOR_UNKNOWN extends Initiator(0) with Initiator.Recognized {
val index = 0
val name = "INITIATOR_UNKNOWN"
override def isInitiatorUnknown: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object INITIATOR_LOCAL extends Initiator(1) with Initiator.Recognized {
val index = 1
val name = "INITIATOR_LOCAL"
override def isInitiatorLocal: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object INITIATOR_REMOTE extends Initiator(2) with Initiator.Recognized {
val index = 2
val name = "INITIATOR_REMOTE"
override def isInitiatorRemote: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object INITIATOR_BOTH extends Initiator(3) with Initiator.Recognized {
val index = 3
val name = "INITIATOR_BOTH"
override def isInitiatorBoth: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends Initiator(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(INITIATOR_UNKNOWN, INITIATOR_LOCAL, INITIATOR_REMOTE, INITIATOR_BOTH)
def fromValue(__value: _root_.scala.Int): Initiator = __value match {
case 0 => INITIATOR_UNKNOWN
case 1 => INITIATOR_LOCAL
case 2 => INITIATOR_REMOTE
case 3 => INITIATOR_BOTH
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = LightningProto.javaDescriptor.getEnumTypes().get(3)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = LightningProto.scalaDescriptor.enums(3)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy