lnrpc.ChannelEventUpdate.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._
@SerialVersionUID(0L)
final case class ChannelEventUpdate(
channel: lnrpc.ChannelEventUpdate.Channel = lnrpc.ChannelEventUpdate.Channel.Empty,
`type`: lnrpc.ChannelEventUpdate.UpdateType = lnrpc.ChannelEventUpdate.UpdateType.OPEN_CHANNEL,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ChannelEventUpdate] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
if (channel.openChannel.isDefined) {
val __value = channel.openChannel.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (channel.closedChannel.isDefined) {
val __value = channel.closedChannel.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (channel.activeChannel.isDefined) {
val __value = channel.activeChannel.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (channel.inactiveChannel.isDefined) {
val __value = channel.inactiveChannel.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (channel.pendingOpenChannel.isDefined) {
val __value = channel.pendingOpenChannel.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (channel.fullyResolvedChannel.isDefined) {
val __value = channel.fullyResolvedChannel.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
{
val __value = `type`.value
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeEnumSize(5, __value)
}
};
__size += unknownFields.serializedSize
__size
}
override def serializedSize: _root_.scala.Int = {
var __size = __serializedSizeMemoized
if (__size == 0) {
__size = __computeSerializedSize() + 1
__serializedSizeMemoized = __size
}
__size - 1
}
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
channel.openChannel.foreach { __v =>
val __m = __v
_output__.writeTag(1, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
channel.closedChannel.foreach { __v =>
val __m = __v
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
channel.activeChannel.foreach { __v =>
val __m = __v
_output__.writeTag(3, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
channel.inactiveChannel.foreach { __v =>
val __m = __v
_output__.writeTag(4, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = `type`.value
if (__v != 0) {
_output__.writeEnum(5, __v)
}
};
channel.pendingOpenChannel.foreach { __v =>
val __m = __v
_output__.writeTag(6, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
channel.fullyResolvedChannel.foreach { __v =>
val __m = __v
_output__.writeTag(7, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def getOpenChannel: lnrpc.Channel = channel.openChannel.getOrElse(lnrpc.Channel.defaultInstance)
def withOpenChannel(__v: lnrpc.Channel): ChannelEventUpdate = copy(channel = lnrpc.ChannelEventUpdate.Channel.OpenChannel(__v))
def getClosedChannel: lnrpc.ChannelCloseSummary = channel.closedChannel.getOrElse(lnrpc.ChannelCloseSummary.defaultInstance)
def withClosedChannel(__v: lnrpc.ChannelCloseSummary): ChannelEventUpdate = copy(channel = lnrpc.ChannelEventUpdate.Channel.ClosedChannel(__v))
def getActiveChannel: lnrpc.ChannelPoint = channel.activeChannel.getOrElse(lnrpc.ChannelPoint.defaultInstance)
def withActiveChannel(__v: lnrpc.ChannelPoint): ChannelEventUpdate = copy(channel = lnrpc.ChannelEventUpdate.Channel.ActiveChannel(__v))
def getInactiveChannel: lnrpc.ChannelPoint = channel.inactiveChannel.getOrElse(lnrpc.ChannelPoint.defaultInstance)
def withInactiveChannel(__v: lnrpc.ChannelPoint): ChannelEventUpdate = copy(channel = lnrpc.ChannelEventUpdate.Channel.InactiveChannel(__v))
def getPendingOpenChannel: lnrpc.PendingUpdate = channel.pendingOpenChannel.getOrElse(lnrpc.PendingUpdate.defaultInstance)
def withPendingOpenChannel(__v: lnrpc.PendingUpdate): ChannelEventUpdate = copy(channel = lnrpc.ChannelEventUpdate.Channel.PendingOpenChannel(__v))
def getFullyResolvedChannel: lnrpc.ChannelPoint = channel.fullyResolvedChannel.getOrElse(lnrpc.ChannelPoint.defaultInstance)
def withFullyResolvedChannel(__v: lnrpc.ChannelPoint): ChannelEventUpdate = copy(channel = lnrpc.ChannelEventUpdate.Channel.FullyResolvedChannel(__v))
def withType(__v: lnrpc.ChannelEventUpdate.UpdateType): ChannelEventUpdate = copy(`type` = __v)
def clearChannel: ChannelEventUpdate = copy(channel = lnrpc.ChannelEventUpdate.Channel.Empty)
def withChannel(__v: lnrpc.ChannelEventUpdate.Channel): ChannelEventUpdate = copy(channel = __v)
def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)
def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty)
def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 1 => channel.openChannel.orNull
case 2 => channel.closedChannel.orNull
case 3 => channel.activeChannel.orNull
case 4 => channel.inactiveChannel.orNull
case 6 => channel.pendingOpenChannel.orNull
case 7 => channel.fullyResolvedChannel.orNull
case 5 => {
val __t = `type`.javaValueDescriptor
if (__t.getNumber() != 0) __t else null
}
}
}
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
_root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
(__field.number: @_root_.scala.unchecked) match {
case 1 => channel.openChannel.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 2 => channel.closedChannel.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 3 => channel.activeChannel.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 4 => channel.inactiveChannel.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 6 => channel.pendingOpenChannel.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 7 => channel.fullyResolvedChannel.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 5 => _root_.scalapb.descriptors.PEnum(`type`.scalaValueDescriptor)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: lnrpc.ChannelEventUpdate.type = lnrpc.ChannelEventUpdate
// @@protoc_insertion_point(GeneratedMessage[lnrpc.ChannelEventUpdate])
}
object ChannelEventUpdate extends scalapb.GeneratedMessageCompanion[lnrpc.ChannelEventUpdate] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.ChannelEventUpdate] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.ChannelEventUpdate = {
var __type: lnrpc.ChannelEventUpdate.UpdateType = lnrpc.ChannelEventUpdate.UpdateType.OPEN_CHANNEL
var __channel: lnrpc.ChannelEventUpdate.Channel = lnrpc.ChannelEventUpdate.Channel.Empty
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__channel = lnrpc.ChannelEventUpdate.Channel.OpenChannel(__channel.openChannel.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.Channel](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 18 =>
__channel = lnrpc.ChannelEventUpdate.Channel.ClosedChannel(__channel.closedChannel.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.ChannelCloseSummary](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 26 =>
__channel = lnrpc.ChannelEventUpdate.Channel.ActiveChannel(__channel.activeChannel.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.ChannelPoint](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 34 =>
__channel = lnrpc.ChannelEventUpdate.Channel.InactiveChannel(__channel.inactiveChannel.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.ChannelPoint](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 50 =>
__channel = lnrpc.ChannelEventUpdate.Channel.PendingOpenChannel(__channel.pendingOpenChannel.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.PendingUpdate](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 58 =>
__channel = lnrpc.ChannelEventUpdate.Channel.FullyResolvedChannel(__channel.fullyResolvedChannel.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.ChannelPoint](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 40 =>
__type = lnrpc.ChannelEventUpdate.UpdateType.fromValue(_input__.readEnum())
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
lnrpc.ChannelEventUpdate(
`type` = __type,
channel = __channel,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.ChannelEventUpdate] = _root_.scalapb.descriptors.Reads{
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
lnrpc.ChannelEventUpdate(
`type` = lnrpc.ChannelEventUpdate.UpdateType.fromValue(__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scalapb.descriptors.EnumValueDescriptor]).getOrElse(lnrpc.ChannelEventUpdate.UpdateType.OPEN_CHANNEL.scalaValueDescriptor).number),
channel = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[lnrpc.Channel]]).map(lnrpc.ChannelEventUpdate.Channel.OpenChannel(_))
.orElse[lnrpc.ChannelEventUpdate.Channel](__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[lnrpc.ChannelCloseSummary]]).map(lnrpc.ChannelEventUpdate.Channel.ClosedChannel(_)))
.orElse[lnrpc.ChannelEventUpdate.Channel](__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).flatMap(_.as[_root_.scala.Option[lnrpc.ChannelPoint]]).map(lnrpc.ChannelEventUpdate.Channel.ActiveChannel(_)))
.orElse[lnrpc.ChannelEventUpdate.Channel](__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).flatMap(_.as[_root_.scala.Option[lnrpc.ChannelPoint]]).map(lnrpc.ChannelEventUpdate.Channel.InactiveChannel(_)))
.orElse[lnrpc.ChannelEventUpdate.Channel](__fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).flatMap(_.as[_root_.scala.Option[lnrpc.PendingUpdate]]).map(lnrpc.ChannelEventUpdate.Channel.PendingOpenChannel(_)))
.orElse[lnrpc.ChannelEventUpdate.Channel](__fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).flatMap(_.as[_root_.scala.Option[lnrpc.ChannelPoint]]).map(lnrpc.ChannelEventUpdate.Channel.FullyResolvedChannel(_)))
.getOrElse(lnrpc.ChannelEventUpdate.Channel.Empty)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = LightningProto.javaDescriptor.getMessageTypes().get(88)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = LightningProto.scalaDescriptor.messages(88)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 1 => __out = lnrpc.Channel
case 2 => __out = lnrpc.ChannelCloseSummary
case 3 => __out = lnrpc.ChannelPoint
case 4 => __out = lnrpc.ChannelPoint
case 6 => __out = lnrpc.PendingUpdate
case 7 => __out = lnrpc.ChannelPoint
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 5 => lnrpc.ChannelEventUpdate.UpdateType
}
}
lazy val defaultInstance = lnrpc.ChannelEventUpdate(
`type` = lnrpc.ChannelEventUpdate.UpdateType.OPEN_CHANNEL,
channel = lnrpc.ChannelEventUpdate.Channel.Empty
)
sealed abstract class UpdateType(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = UpdateType
def isOpenChannel: _root_.scala.Boolean = false
def isClosedChannel: _root_.scala.Boolean = false
def isActiveChannel: _root_.scala.Boolean = false
def isInactiveChannel: _root_.scala.Boolean = false
def isPendingOpenChannel: _root_.scala.Boolean = false
def isFullyResolvedChannel: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[UpdateType] = lnrpc.ChannelEventUpdate.UpdateType
final def asRecognized: _root_.scala.Option[lnrpc.ChannelEventUpdate.UpdateType.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[lnrpc.ChannelEventUpdate.UpdateType.Recognized])
}
object UpdateType extends _root_.scalapb.GeneratedEnumCompanion[UpdateType] {
sealed trait Recognized extends UpdateType
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[UpdateType] = this
@SerialVersionUID(0L)
case object OPEN_CHANNEL extends UpdateType(0) with UpdateType.Recognized {
val index = 0
val name = "OPEN_CHANNEL"
override def isOpenChannel: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object CLOSED_CHANNEL extends UpdateType(1) with UpdateType.Recognized {
val index = 1
val name = "CLOSED_CHANNEL"
override def isClosedChannel: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object ACTIVE_CHANNEL extends UpdateType(2) with UpdateType.Recognized {
val index = 2
val name = "ACTIVE_CHANNEL"
override def isActiveChannel: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object INACTIVE_CHANNEL extends UpdateType(3) with UpdateType.Recognized {
val index = 3
val name = "INACTIVE_CHANNEL"
override def isInactiveChannel: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object PENDING_OPEN_CHANNEL extends UpdateType(4) with UpdateType.Recognized {
val index = 4
val name = "PENDING_OPEN_CHANNEL"
override def isPendingOpenChannel: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object FULLY_RESOLVED_CHANNEL extends UpdateType(5) with UpdateType.Recognized {
val index = 5
val name = "FULLY_RESOLVED_CHANNEL"
override def isFullyResolvedChannel: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends UpdateType(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(OPEN_CHANNEL, CLOSED_CHANNEL, ACTIVE_CHANNEL, INACTIVE_CHANNEL, PENDING_OPEN_CHANNEL, FULLY_RESOLVED_CHANNEL)
def fromValue(__value: _root_.scala.Int): UpdateType = __value match {
case 0 => OPEN_CHANNEL
case 1 => CLOSED_CHANNEL
case 2 => ACTIVE_CHANNEL
case 3 => INACTIVE_CHANNEL
case 4 => PENDING_OPEN_CHANNEL
case 5 => FULLY_RESOLVED_CHANNEL
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = lnrpc.ChannelEventUpdate.javaDescriptor.getEnumTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = lnrpc.ChannelEventUpdate.scalaDescriptor.enums(0)
}
sealed trait Channel extends _root_.scalapb.GeneratedOneof {
def isEmpty: _root_.scala.Boolean = false
def isDefined: _root_.scala.Boolean = true
def isOpenChannel: _root_.scala.Boolean = false
def isClosedChannel: _root_.scala.Boolean = false
def isActiveChannel: _root_.scala.Boolean = false
def isInactiveChannel: _root_.scala.Boolean = false
def isPendingOpenChannel: _root_.scala.Boolean = false
def isFullyResolvedChannel: _root_.scala.Boolean = false
def openChannel: _root_.scala.Option[lnrpc.Channel] = _root_.scala.None
def closedChannel: _root_.scala.Option[lnrpc.ChannelCloseSummary] = _root_.scala.None
def activeChannel: _root_.scala.Option[lnrpc.ChannelPoint] = _root_.scala.None
def inactiveChannel: _root_.scala.Option[lnrpc.ChannelPoint] = _root_.scala.None
def pendingOpenChannel: _root_.scala.Option[lnrpc.PendingUpdate] = _root_.scala.None
def fullyResolvedChannel: _root_.scala.Option[lnrpc.ChannelPoint] = _root_.scala.None
}
object Channel {
@SerialVersionUID(0L)
case object Empty extends lnrpc.ChannelEventUpdate.Channel {
type ValueType = _root_.scala.Nothing
override def isEmpty: _root_.scala.Boolean = true
override def isDefined: _root_.scala.Boolean = false
override def number: _root_.scala.Int = 0
override def value: _root_.scala.Nothing = throw new java.util.NoSuchElementException("Empty.value")
}
@SerialVersionUID(0L)
final case class OpenChannel(value: lnrpc.Channel) extends lnrpc.ChannelEventUpdate.Channel {
type ValueType = lnrpc.Channel
override def isOpenChannel: _root_.scala.Boolean = true
override def openChannel: _root_.scala.Option[lnrpc.Channel] = Some(value)
override def number: _root_.scala.Int = 1
}
@SerialVersionUID(0L)
final case class ClosedChannel(value: lnrpc.ChannelCloseSummary) extends lnrpc.ChannelEventUpdate.Channel {
type ValueType = lnrpc.ChannelCloseSummary
override def isClosedChannel: _root_.scala.Boolean = true
override def closedChannel: _root_.scala.Option[lnrpc.ChannelCloseSummary] = Some(value)
override def number: _root_.scala.Int = 2
}
@SerialVersionUID(0L)
final case class ActiveChannel(value: lnrpc.ChannelPoint) extends lnrpc.ChannelEventUpdate.Channel {
type ValueType = lnrpc.ChannelPoint
override def isActiveChannel: _root_.scala.Boolean = true
override def activeChannel: _root_.scala.Option[lnrpc.ChannelPoint] = Some(value)
override def number: _root_.scala.Int = 3
}
@SerialVersionUID(0L)
final case class InactiveChannel(value: lnrpc.ChannelPoint) extends lnrpc.ChannelEventUpdate.Channel {
type ValueType = lnrpc.ChannelPoint
override def isInactiveChannel: _root_.scala.Boolean = true
override def inactiveChannel: _root_.scala.Option[lnrpc.ChannelPoint] = Some(value)
override def number: _root_.scala.Int = 4
}
@SerialVersionUID(0L)
final case class PendingOpenChannel(value: lnrpc.PendingUpdate) extends lnrpc.ChannelEventUpdate.Channel {
type ValueType = lnrpc.PendingUpdate
override def isPendingOpenChannel: _root_.scala.Boolean = true
override def pendingOpenChannel: _root_.scala.Option[lnrpc.PendingUpdate] = Some(value)
override def number: _root_.scala.Int = 6
}
@SerialVersionUID(0L)
final case class FullyResolvedChannel(value: lnrpc.ChannelPoint) extends lnrpc.ChannelEventUpdate.Channel {
type ValueType = lnrpc.ChannelPoint
override def isFullyResolvedChannel: _root_.scala.Boolean = true
override def fullyResolvedChannel: _root_.scala.Option[lnrpc.ChannelPoint] = Some(value)
override def number: _root_.scala.Int = 7
}
}
implicit class ChannelEventUpdateLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelEventUpdate]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.ChannelEventUpdate](_l) {
def openChannel: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.Channel] = field(_.getOpenChannel)((c_, f_) => c_.copy(channel = lnrpc.ChannelEventUpdate.Channel.OpenChannel(f_)))
def closedChannel: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelCloseSummary] = field(_.getClosedChannel)((c_, f_) => c_.copy(channel = lnrpc.ChannelEventUpdate.Channel.ClosedChannel(f_)))
def activeChannel: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelPoint] = field(_.getActiveChannel)((c_, f_) => c_.copy(channel = lnrpc.ChannelEventUpdate.Channel.ActiveChannel(f_)))
def inactiveChannel: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelPoint] = field(_.getInactiveChannel)((c_, f_) => c_.copy(channel = lnrpc.ChannelEventUpdate.Channel.InactiveChannel(f_)))
def pendingOpenChannel: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.PendingUpdate] = field(_.getPendingOpenChannel)((c_, f_) => c_.copy(channel = lnrpc.ChannelEventUpdate.Channel.PendingOpenChannel(f_)))
def fullyResolvedChannel: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelPoint] = field(_.getFullyResolvedChannel)((c_, f_) => c_.copy(channel = lnrpc.ChannelEventUpdate.Channel.FullyResolvedChannel(f_)))
def `type`: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelEventUpdate.UpdateType] = field(_.`type`)((c_, f_) => c_.copy(`type` = f_))
def channel: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelEventUpdate.Channel] = field(_.channel)((c_, f_) => c_.copy(channel = f_))
}
final val OPEN_CHANNEL_FIELD_NUMBER = 1
final val CLOSED_CHANNEL_FIELD_NUMBER = 2
final val ACTIVE_CHANNEL_FIELD_NUMBER = 3
final val INACTIVE_CHANNEL_FIELD_NUMBER = 4
final val PENDING_OPEN_CHANNEL_FIELD_NUMBER = 6
final val FULLY_RESOLVED_CHANNEL_FIELD_NUMBER = 7
final val TYPE_FIELD_NUMBER = 5
def of(
channel: lnrpc.ChannelEventUpdate.Channel,
`type`: lnrpc.ChannelEventUpdate.UpdateType
): _root_.lnrpc.ChannelEventUpdate = _root_.lnrpc.ChannelEventUpdate(
channel,
`type`
)
// @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.ChannelEventUpdate])
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy