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

lnrpc.FeatureBit.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 FeatureBit(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
  type EnumType = FeatureBit
  def isDatalossProtectReq: _root_.scala.Boolean = false
  def isDatalossProtectOpt: _root_.scala.Boolean = false
  def isInitialRouingSync: _root_.scala.Boolean = false
  def isUpfrontShutdownScriptReq: _root_.scala.Boolean = false
  def isUpfrontShutdownScriptOpt: _root_.scala.Boolean = false
  def isGossipQueriesReq: _root_.scala.Boolean = false
  def isGossipQueriesOpt: _root_.scala.Boolean = false
  def isTlvOnionReq: _root_.scala.Boolean = false
  def isTlvOnionOpt: _root_.scala.Boolean = false
  def isExtGossipQueriesReq: _root_.scala.Boolean = false
  def isExtGossipQueriesOpt: _root_.scala.Boolean = false
  def isStaticRemoteKeyReq: _root_.scala.Boolean = false
  def isStaticRemoteKeyOpt: _root_.scala.Boolean = false
  def isPaymentAddrReq: _root_.scala.Boolean = false
  def isPaymentAddrOpt: _root_.scala.Boolean = false
  def isMppReq: _root_.scala.Boolean = false
  def isMppOpt: _root_.scala.Boolean = false
  def isWumboChannelsReq: _root_.scala.Boolean = false
  def isWumboChannelsOpt: _root_.scala.Boolean = false
  def isAnchorsReq: _root_.scala.Boolean = false
  def isAnchorsOpt: _root_.scala.Boolean = false
  def isAnchorsZeroFeeHtlcReq: _root_.scala.Boolean = false
  def isAnchorsZeroFeeHtlcOpt: _root_.scala.Boolean = false
  def isAmpReq: _root_.scala.Boolean = false
  def isAmpOpt: _root_.scala.Boolean = false
  def companion: _root_.scalapb.GeneratedEnumCompanion[FeatureBit] = lnrpc.FeatureBit
  final def asRecognized: _root_.scala.Option[lnrpc.FeatureBit.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[lnrpc.FeatureBit.Recognized])
}

object FeatureBit extends _root_.scalapb.GeneratedEnumCompanion[FeatureBit] {
  sealed trait Recognized extends FeatureBit
  implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[FeatureBit] = this
  
  @SerialVersionUID(0L)
  case object DATALOSS_PROTECT_REQ extends FeatureBit(0) with FeatureBit.Recognized {
    val index = 0
    val name = "DATALOSS_PROTECT_REQ"
    override def isDatalossProtectReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object DATALOSS_PROTECT_OPT extends FeatureBit(1) with FeatureBit.Recognized {
    val index = 1
    val name = "DATALOSS_PROTECT_OPT"
    override def isDatalossProtectOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object INITIAL_ROUING_SYNC extends FeatureBit(3) with FeatureBit.Recognized {
    val index = 2
    val name = "INITIAL_ROUING_SYNC"
    override def isInitialRouingSync: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object UPFRONT_SHUTDOWN_SCRIPT_REQ extends FeatureBit(4) with FeatureBit.Recognized {
    val index = 3
    val name = "UPFRONT_SHUTDOWN_SCRIPT_REQ"
    override def isUpfrontShutdownScriptReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object UPFRONT_SHUTDOWN_SCRIPT_OPT extends FeatureBit(5) with FeatureBit.Recognized {
    val index = 4
    val name = "UPFRONT_SHUTDOWN_SCRIPT_OPT"
    override def isUpfrontShutdownScriptOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object GOSSIP_QUERIES_REQ extends FeatureBit(6) with FeatureBit.Recognized {
    val index = 5
    val name = "GOSSIP_QUERIES_REQ"
    override def isGossipQueriesReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object GOSSIP_QUERIES_OPT extends FeatureBit(7) with FeatureBit.Recognized {
    val index = 6
    val name = "GOSSIP_QUERIES_OPT"
    override def isGossipQueriesOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object TLV_ONION_REQ extends FeatureBit(8) with FeatureBit.Recognized {
    val index = 7
    val name = "TLV_ONION_REQ"
    override def isTlvOnionReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object TLV_ONION_OPT extends FeatureBit(9) with FeatureBit.Recognized {
    val index = 8
    val name = "TLV_ONION_OPT"
    override def isTlvOnionOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object EXT_GOSSIP_QUERIES_REQ extends FeatureBit(10) with FeatureBit.Recognized {
    val index = 9
    val name = "EXT_GOSSIP_QUERIES_REQ"
    override def isExtGossipQueriesReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object EXT_GOSSIP_QUERIES_OPT extends FeatureBit(11) with FeatureBit.Recognized {
    val index = 10
    val name = "EXT_GOSSIP_QUERIES_OPT"
    override def isExtGossipQueriesOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object STATIC_REMOTE_KEY_REQ extends FeatureBit(12) with FeatureBit.Recognized {
    val index = 11
    val name = "STATIC_REMOTE_KEY_REQ"
    override def isStaticRemoteKeyReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object STATIC_REMOTE_KEY_OPT extends FeatureBit(13) with FeatureBit.Recognized {
    val index = 12
    val name = "STATIC_REMOTE_KEY_OPT"
    override def isStaticRemoteKeyOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object PAYMENT_ADDR_REQ extends FeatureBit(14) with FeatureBit.Recognized {
    val index = 13
    val name = "PAYMENT_ADDR_REQ"
    override def isPaymentAddrReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object PAYMENT_ADDR_OPT extends FeatureBit(15) with FeatureBit.Recognized {
    val index = 14
    val name = "PAYMENT_ADDR_OPT"
    override def isPaymentAddrOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object MPP_REQ extends FeatureBit(16) with FeatureBit.Recognized {
    val index = 15
    val name = "MPP_REQ"
    override def isMppReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object MPP_OPT extends FeatureBit(17) with FeatureBit.Recognized {
    val index = 16
    val name = "MPP_OPT"
    override def isMppOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object WUMBO_CHANNELS_REQ extends FeatureBit(18) with FeatureBit.Recognized {
    val index = 17
    val name = "WUMBO_CHANNELS_REQ"
    override def isWumboChannelsReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object WUMBO_CHANNELS_OPT extends FeatureBit(19) with FeatureBit.Recognized {
    val index = 18
    val name = "WUMBO_CHANNELS_OPT"
    override def isWumboChannelsOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object ANCHORS_REQ extends FeatureBit(20) with FeatureBit.Recognized {
    val index = 19
    val name = "ANCHORS_REQ"
    override def isAnchorsReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object ANCHORS_OPT extends FeatureBit(21) with FeatureBit.Recognized {
    val index = 20
    val name = "ANCHORS_OPT"
    override def isAnchorsOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object ANCHORS_ZERO_FEE_HTLC_REQ extends FeatureBit(22) with FeatureBit.Recognized {
    val index = 21
    val name = "ANCHORS_ZERO_FEE_HTLC_REQ"
    override def isAnchorsZeroFeeHtlcReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object ANCHORS_ZERO_FEE_HTLC_OPT extends FeatureBit(23) with FeatureBit.Recognized {
    val index = 22
    val name = "ANCHORS_ZERO_FEE_HTLC_OPT"
    override def isAnchorsZeroFeeHtlcOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object AMP_REQ extends FeatureBit(30) with FeatureBit.Recognized {
    val index = 23
    val name = "AMP_REQ"
    override def isAmpReq: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object AMP_OPT extends FeatureBit(31) with FeatureBit.Recognized {
    val index = 24
    val name = "AMP_OPT"
    override def isAmpOpt: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends FeatureBit(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
  lazy val values = scala.collection.immutable.Seq(DATALOSS_PROTECT_REQ, DATALOSS_PROTECT_OPT, INITIAL_ROUING_SYNC, UPFRONT_SHUTDOWN_SCRIPT_REQ, UPFRONT_SHUTDOWN_SCRIPT_OPT, GOSSIP_QUERIES_REQ, GOSSIP_QUERIES_OPT, TLV_ONION_REQ, TLV_ONION_OPT, EXT_GOSSIP_QUERIES_REQ, EXT_GOSSIP_QUERIES_OPT, STATIC_REMOTE_KEY_REQ, STATIC_REMOTE_KEY_OPT, PAYMENT_ADDR_REQ, PAYMENT_ADDR_OPT, MPP_REQ, MPP_OPT, WUMBO_CHANNELS_REQ, WUMBO_CHANNELS_OPT, ANCHORS_REQ, ANCHORS_OPT, ANCHORS_ZERO_FEE_HTLC_REQ, ANCHORS_ZERO_FEE_HTLC_OPT, AMP_REQ, AMP_OPT)
  def fromValue(__value: _root_.scala.Int): FeatureBit = __value match {
    case 0 => DATALOSS_PROTECT_REQ
    case 1 => DATALOSS_PROTECT_OPT
    case 3 => INITIAL_ROUING_SYNC
    case 4 => UPFRONT_SHUTDOWN_SCRIPT_REQ
    case 5 => UPFRONT_SHUTDOWN_SCRIPT_OPT
    case 6 => GOSSIP_QUERIES_REQ
    case 7 => GOSSIP_QUERIES_OPT
    case 8 => TLV_ONION_REQ
    case 9 => TLV_ONION_OPT
    case 10 => EXT_GOSSIP_QUERIES_REQ
    case 11 => EXT_GOSSIP_QUERIES_OPT
    case 12 => STATIC_REMOTE_KEY_REQ
    case 13 => STATIC_REMOTE_KEY_OPT
    case 14 => PAYMENT_ADDR_REQ
    case 15 => PAYMENT_ADDR_OPT
    case 16 => MPP_REQ
    case 17 => MPP_OPT
    case 18 => WUMBO_CHANNELS_REQ
    case 19 => WUMBO_CHANNELS_OPT
    case 20 => ANCHORS_REQ
    case 21 => ANCHORS_OPT
    case 22 => ANCHORS_ZERO_FEE_HTLC_REQ
    case 23 => ANCHORS_ZERO_FEE_HTLC_OPT
    case 30 => AMP_REQ
    case 31 => AMP_OPT
    case __other => Unrecognized(__other)
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = LightningProto.javaDescriptor.getEnumTypes().get(9)
  def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = LightningProto.scalaDescriptor.enums(9)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy