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

lnrpc.NodeUpdate.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._

/** @param addresses
  *  
  *  Deprecated, use node_addresses.
  * @param globalFeatures
  *  
  *  Deprecated, use features.
  * @param features
  *  
  *  Features that the node has advertised in the init message, node
  *  announcements and invoices.
  */
@SerialVersionUID(0L)
final case class NodeUpdate(
    @scala.deprecated(message="Marked as deprecated in proto file", "") addresses: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty,
    identityKey: _root_.scala.Predef.String = "",
    @scala.deprecated(message="Marked as deprecated in proto file", "") globalFeatures: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
    alias: _root_.scala.Predef.String = "",
    color: _root_.scala.Predef.String = "",
    nodeAddresses: _root_.scala.Seq[lnrpc.NodeAddress] = _root_.scala.Seq.empty,
    features: _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature] = _root_.scala.collection.immutable.Map.empty,
    unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
    ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[NodeUpdate] {
    @transient
    private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
    private[this] def __computeSerializedSize(): _root_.scala.Int = {
      var __size = 0
      addresses.foreach { __item =>
        val __value = __item
        __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, __value)
      }
      
      {
        val __value = identityKey
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, __value)
        }
      };
      
      {
        val __value = globalFeatures
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(3, __value)
        }
      };
      
      {
        val __value = alias
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(4, __value)
        }
      };
      
      {
        val __value = color
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(5, __value)
        }
      };
      nodeAddresses.foreach { __item =>
        val __value = __item
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      }
      features.foreach { __item =>
        val __value = lnrpc.NodeUpdate._typemapper_features.toBase(__item)
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      }
      __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 = {
      addresses.foreach { __v =>
        val __m = __v
        _output__.writeString(1, __m)
      };
      {
        val __v = identityKey
        if (!__v.isEmpty) {
          _output__.writeString(2, __v)
        }
      };
      {
        val __v = globalFeatures
        if (!__v.isEmpty) {
          _output__.writeBytes(3, __v)
        }
      };
      {
        val __v = alias
        if (!__v.isEmpty) {
          _output__.writeString(4, __v)
        }
      };
      {
        val __v = color
        if (!__v.isEmpty) {
          _output__.writeString(5, __v)
        }
      };
      features.foreach { __v =>
        val __m = lnrpc.NodeUpdate._typemapper_features.toBase(__v)
        _output__.writeTag(6, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      nodeAddresses.foreach { __v =>
        val __m = __v
        _output__.writeTag(7, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      unknownFields.writeTo(_output__)
    }
    def clearAddresses = copy(addresses = _root_.scala.Seq.empty)
    def addAddresses(__vs: _root_.scala.Predef.String *): NodeUpdate = addAllAddresses(__vs)
    def addAllAddresses(__vs: Iterable[_root_.scala.Predef.String]): NodeUpdate = copy(addresses = addresses ++ __vs)
    def withAddresses(__v: _root_.scala.Seq[_root_.scala.Predef.String]): NodeUpdate = copy(addresses = __v)
    def withIdentityKey(__v: _root_.scala.Predef.String): NodeUpdate = copy(identityKey = __v)
    def withGlobalFeatures(__v: _root_.com.google.protobuf.ByteString): NodeUpdate = copy(globalFeatures = __v)
    def withAlias(__v: _root_.scala.Predef.String): NodeUpdate = copy(alias = __v)
    def withColor(__v: _root_.scala.Predef.String): NodeUpdate = copy(color = __v)
    def clearNodeAddresses = copy(nodeAddresses = _root_.scala.Seq.empty)
    def addNodeAddresses(__vs: lnrpc.NodeAddress *): NodeUpdate = addAllNodeAddresses(__vs)
    def addAllNodeAddresses(__vs: Iterable[lnrpc.NodeAddress]): NodeUpdate = copy(nodeAddresses = nodeAddresses ++ __vs)
    def withNodeAddresses(__v: _root_.scala.Seq[lnrpc.NodeAddress]): NodeUpdate = copy(nodeAddresses = __v)
    def clearFeatures = copy(features = _root_.scala.collection.immutable.Map.empty)
    def addFeatures(__vs: (org.bitcoins.core.number.UInt32, lnrpc.Feature) *): NodeUpdate = addAllFeatures(__vs)
    def addAllFeatures(__vs: Iterable[(org.bitcoins.core.number.UInt32, lnrpc.Feature)]): NodeUpdate = copy(features = features ++ __vs)
    def withFeatures(__v: _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature]): NodeUpdate = copy(features = __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 => addresses
        case 2 => {
          val __t = identityKey
          if (__t != "") __t else null
        }
        case 3 => {
          val __t = globalFeatures
          if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
        }
        case 4 => {
          val __t = alias
          if (__t != "") __t else null
        }
        case 5 => {
          val __t = color
          if (__t != "") __t else null
        }
        case 7 => nodeAddresses
        case 6 => features.iterator.map(lnrpc.NodeUpdate._typemapper_features.toBase(_)).toSeq
      }
    }
    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 => _root_.scalapb.descriptors.PRepeated(addresses.iterator.map(_root_.scalapb.descriptors.PString(_)).toVector)
        case 2 => _root_.scalapb.descriptors.PString(identityKey)
        case 3 => _root_.scalapb.descriptors.PByteString(globalFeatures)
        case 4 => _root_.scalapb.descriptors.PString(alias)
        case 5 => _root_.scalapb.descriptors.PString(color)
        case 7 => _root_.scalapb.descriptors.PRepeated(nodeAddresses.iterator.map(_.toPMessage).toVector)
        case 6 => _root_.scalapb.descriptors.PRepeated(features.iterator.map(lnrpc.NodeUpdate._typemapper_features.toBase(_).toPMessage).toVector)
      }
    }
    def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
    def companion: lnrpc.NodeUpdate.type = lnrpc.NodeUpdate
    // @@protoc_insertion_point(GeneratedMessage[lnrpc.NodeUpdate])
}

object NodeUpdate extends scalapb.GeneratedMessageCompanion[lnrpc.NodeUpdate] {
  implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.NodeUpdate] = this
  def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.NodeUpdate = {
    val __addresses: _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Predef.String] = new _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Predef.String]
    var __identityKey: _root_.scala.Predef.String = ""
    var __globalFeatures: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
    var __alias: _root_.scala.Predef.String = ""
    var __color: _root_.scala.Predef.String = ""
    val __nodeAddresses: _root_.scala.collection.immutable.VectorBuilder[lnrpc.NodeAddress] = new _root_.scala.collection.immutable.VectorBuilder[lnrpc.NodeAddress]
    val __features: _root_.scala.collection.mutable.Builder[(org.bitcoins.core.number.UInt32, lnrpc.Feature), _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature]] = _root_.scala.collection.immutable.Map.newBuilder[org.bitcoins.core.number.UInt32, lnrpc.Feature]
    var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
    var _done__ = false
    while (!_done__) {
      val _tag__ = _input__.readTag()
      _tag__ match {
        case 0 => _done__ = true
        case 10 =>
          __addresses += _input__.readStringRequireUtf8()
        case 18 =>
          __identityKey = _input__.readStringRequireUtf8()
        case 26 =>
          __globalFeatures = _input__.readBytes()
        case 34 =>
          __alias = _input__.readStringRequireUtf8()
        case 42 =>
          __color = _input__.readStringRequireUtf8()
        case 58 =>
          __nodeAddresses += _root_.scalapb.LiteParser.readMessage[lnrpc.NodeAddress](_input__)
        case 50 =>
          __features += lnrpc.NodeUpdate._typemapper_features.toCustom(_root_.scalapb.LiteParser.readMessage[lnrpc.NodeUpdate.FeaturesEntry](_input__))
        case tag =>
          if (_unknownFields__ == null) {
            _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
          }
          _unknownFields__.parseField(tag, _input__)
      }
    }
    lnrpc.NodeUpdate(
        addresses = __addresses.result(),
        identityKey = __identityKey,
        globalFeatures = __globalFeatures,
        alias = __alias,
        color = __color,
        nodeAddresses = __nodeAddresses.result(),
        features = __features.result(),
        unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
    )
  }
  implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.NodeUpdate] = _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.NodeUpdate(
        addresses = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Seq[_root_.scala.Predef.String]]).getOrElse(_root_.scala.Seq.empty),
        identityKey = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        globalFeatures = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY),
        alias = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        color = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        nodeAddresses = __fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Seq[lnrpc.NodeAddress]]).getOrElse(_root_.scala.Seq.empty),
        features = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Seq[lnrpc.NodeUpdate.FeaturesEntry]]).getOrElse(_root_.scala.Seq.empty).iterator.map(lnrpc.NodeUpdate._typemapper_features.toCustom(_)).toMap
      )
    case _ => throw new RuntimeException("Expected PMessage")
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = LightningProto.javaDescriptor.getMessageTypes().get(121)
  def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = LightningProto.scalaDescriptor.messages(121)
  def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
    var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
    (__number: @_root_.scala.unchecked) match {
      case 7 => __out = lnrpc.NodeAddress
      case 6 => __out = lnrpc.NodeUpdate.FeaturesEntry
    }
    __out
  }
  lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
    Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
      _root_.lnrpc.NodeUpdate.FeaturesEntry
    )
  def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
  lazy val defaultInstance = lnrpc.NodeUpdate(
    addresses = _root_.scala.Seq.empty,
    identityKey = "",
    globalFeatures = _root_.com.google.protobuf.ByteString.EMPTY,
    alias = "",
    color = "",
    nodeAddresses = _root_.scala.Seq.empty,
    features = _root_.scala.collection.immutable.Map.empty
  )
  @SerialVersionUID(0L)
  final case class FeaturesEntry(
      key: org.bitcoins.core.number.UInt32 = lnrpc.NodeUpdate.FeaturesEntry._typemapper_key.toCustom(0),
      value: _root_.scala.Option[lnrpc.Feature] = _root_.scala.None,
      unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
      ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FeaturesEntry] {
      @transient
      private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
      private[this] def __computeSerializedSize(): _root_.scala.Int = {
        var __size = 0
        
        {
          val __value = lnrpc.NodeUpdate.FeaturesEntry._typemapper_key.toBase(key)
          if (__value != 0) {
            __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(1, __value)
          }
        };
        if (value.isDefined) {
          val __value = value.get
          __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
        };
        __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 = {
        {
          val __v = lnrpc.NodeUpdate.FeaturesEntry._typemapper_key.toBase(key)
          if (__v != 0) {
            _output__.writeUInt32(1, __v)
          }
        };
        value.foreach { __v =>
          val __m = __v
          _output__.writeTag(2, 2)
          _output__.writeUInt32NoTag(__m.serializedSize)
          __m.writeTo(_output__)
        };
        unknownFields.writeTo(_output__)
      }
      def withKey(__v: org.bitcoins.core.number.UInt32): FeaturesEntry = copy(key = __v)
      def getValue: lnrpc.Feature = value.getOrElse(lnrpc.Feature.defaultInstance)
      def clearValue: FeaturesEntry = copy(value = _root_.scala.None)
      def withValue(__v: lnrpc.Feature): FeaturesEntry = copy(value = Option(__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 => {
            val __t = lnrpc.NodeUpdate.FeaturesEntry._typemapper_key.toBase(key)
            if (__t != 0) __t else null
          }
          case 2 => value.orNull
        }
      }
      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 => _root_.scalapb.descriptors.PInt(lnrpc.NodeUpdate.FeaturesEntry._typemapper_key.toBase(key))
          case 2 => value.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
        }
      }
      def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
      def companion: lnrpc.NodeUpdate.FeaturesEntry.type = lnrpc.NodeUpdate.FeaturesEntry
      // @@protoc_insertion_point(GeneratedMessage[lnrpc.NodeUpdate.FeaturesEntry])
  }
  
  object FeaturesEntry extends scalapb.GeneratedMessageCompanion[lnrpc.NodeUpdate.FeaturesEntry] {
    implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.NodeUpdate.FeaturesEntry] = this
    def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.NodeUpdate.FeaturesEntry = {
      var __key: _root_.scala.Int = 0
      var __value: _root_.scala.Option[lnrpc.Feature] = _root_.scala.None
      var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
      var _done__ = false
      while (!_done__) {
        val _tag__ = _input__.readTag()
        _tag__ match {
          case 0 => _done__ = true
          case 8 =>
            __key = _input__.readUInt32()
          case 18 =>
            __value = Option(__value.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.Feature](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
          case tag =>
            if (_unknownFields__ == null) {
              _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
            }
            _unknownFields__.parseField(tag, _input__)
        }
      }
      lnrpc.NodeUpdate.FeaturesEntry(
          key = lnrpc.NodeUpdate.FeaturesEntry._typemapper_key.toCustom(__key),
          value = __value,
          unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
      )
    }
    implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.NodeUpdate.FeaturesEntry] = _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.NodeUpdate.FeaturesEntry(
          key = lnrpc.NodeUpdate.FeaturesEntry._typemapper_key.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
          value = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[lnrpc.Feature]])
        )
      case _ => throw new RuntimeException("Expected PMessage")
    }
    def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = lnrpc.NodeUpdate.javaDescriptor.getNestedTypes().get(0)
    def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = lnrpc.NodeUpdate.scalaDescriptor.nestedMessages(0)
    def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
      var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
      (__number: @_root_.scala.unchecked) match {
        case 2 => __out = lnrpc.Feature
      }
      __out
    }
    lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
    def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
    lazy val defaultInstance = lnrpc.NodeUpdate.FeaturesEntry(
      key = lnrpc.NodeUpdate.FeaturesEntry._typemapper_key.toCustom(0),
      value = _root_.scala.None
    )
    implicit class FeaturesEntryLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.NodeUpdate.FeaturesEntry]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.NodeUpdate.FeaturesEntry](_l) {
      def key: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.key)((c_, f_) => c_.copy(key = f_))
      def value: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.Feature] = field(_.getValue)((c_, f_) => c_.copy(value = Option(f_)))
      def optionalValue: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[lnrpc.Feature]] = field(_.value)((c_, f_) => c_.copy(value = f_))
    }
    final val KEY_FIELD_NUMBER = 1
    final val VALUE_FIELD_NUMBER = 2
    @transient
    private[lnrpc] val _typemapper_key: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
    @transient
    implicit val keyValueMapper: _root_.scalapb.TypeMapper[lnrpc.NodeUpdate.FeaturesEntry, (org.bitcoins.core.number.UInt32, lnrpc.Feature)] =
      _root_.scalapb.TypeMapper[lnrpc.NodeUpdate.FeaturesEntry, (org.bitcoins.core.number.UInt32, lnrpc.Feature)](__m => (__m.key, __m.getValue))(__p => lnrpc.NodeUpdate.FeaturesEntry(__p._1, Some(__p._2)))
    def of(
      key: org.bitcoins.core.number.UInt32,
      value: _root_.scala.Option[lnrpc.Feature]
    ): _root_.lnrpc.NodeUpdate.FeaturesEntry = _root_.lnrpc.NodeUpdate.FeaturesEntry(
      key,
      value
    )
    // @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.NodeUpdate.FeaturesEntry])
  }
  
  implicit class NodeUpdateLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.NodeUpdate]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.NodeUpdate](_l) {
    def addresses: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Predef.String]] = field(_.addresses)((c_, f_) => c_.copy(addresses = f_))
    def identityKey: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.identityKey)((c_, f_) => c_.copy(identityKey = f_))
    def globalFeatures: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.globalFeatures)((c_, f_) => c_.copy(globalFeatures = f_))
    def alias: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.alias)((c_, f_) => c_.copy(alias = f_))
    def color: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.color)((c_, f_) => c_.copy(color = f_))
    def nodeAddresses: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[lnrpc.NodeAddress]] = field(_.nodeAddresses)((c_, f_) => c_.copy(nodeAddresses = f_))
    def features: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature]] = field(_.features)((c_, f_) => c_.copy(features = f_))
  }
  final val ADDRESSES_FIELD_NUMBER = 1
  final val IDENTITY_KEY_FIELD_NUMBER = 2
  final val GLOBAL_FEATURES_FIELD_NUMBER = 3
  final val ALIAS_FIELD_NUMBER = 4
  final val COLOR_FIELD_NUMBER = 5
  final val NODE_ADDRESSES_FIELD_NUMBER = 7
  final val FEATURES_FIELD_NUMBER = 6
  @transient
  private[lnrpc] val _typemapper_features: _root_.scalapb.TypeMapper[lnrpc.NodeUpdate.FeaturesEntry, (org.bitcoins.core.number.UInt32, lnrpc.Feature)] = implicitly[_root_.scalapb.TypeMapper[lnrpc.NodeUpdate.FeaturesEntry, (org.bitcoins.core.number.UInt32, lnrpc.Feature)]]
  def of(
    addresses: _root_.scala.Seq[_root_.scala.Predef.String],
    identityKey: _root_.scala.Predef.String,
    globalFeatures: _root_.com.google.protobuf.ByteString,
    alias: _root_.scala.Predef.String,
    color: _root_.scala.Predef.String,
    nodeAddresses: _root_.scala.Seq[lnrpc.NodeAddress],
    features: _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature]
  ): _root_.lnrpc.NodeUpdate = _root_.lnrpc.NodeUpdate(
    addresses,
    identityKey,
    globalFeatures,
    alias,
    color,
    nodeAddresses,
    features
  )
  // @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.NodeUpdate])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy