lnrpc.ChannelUpdate.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 signature
*
* The signature that validates the announced data and proves the ownership
* of node id.
* @param chainHash
*
* The target chain that this channel was opened within. This value
* should be the genesis hash of the target chain. Along with the short
* channel ID, this uniquely identifies the channel globally in a
* blockchain.
* @param chanId
*
* The unique description of the funding transaction.
* @param timestamp
*
* A timestamp that allows ordering in the case of multiple announcements.
* We should ignore the message if timestamp is not greater than the
* last-received.
* @param messageFlags
*
* The bitfield that describes whether optional fields are present in this
* update. Currently, the least-significant bit must be set to 1 if the
* optional field MaxHtlc is present.
* @param channelFlags
*
* The bitfield that describes additional meta-data concerning how the
* update is to be interpreted. Currently, the least-significant bit must be
* set to 0 if the creating node corresponds to the first node in the
* previously sent channel announcement and 1 otherwise. If the second bit
* is set, then the channel is set to be disabled.
* @param timeLockDelta
*
* The minimum number of blocks this node requires to be added to the expiry
* of HTLCs. This is a security parameter determined by the node operator.
* This value represents the required gap between the time locks of the
* incoming and outgoing HTLC's set to this node.
* @param htlcMinimumMsat
*
* The minimum HTLC value which will be accepted.
* @param baseFee
*
* The base fee that must be used for incoming HTLC's to this particular
* channel. This value will be tacked onto the required for a payment
* independent of the size of the payment.
* @param feeRate
*
* The fee rate that will be charged per millionth of a satoshi.
* @param htlcMaximumMsat
*
* The maximum HTLC value which will be accepted.
* @param extraOpaqueData
*
* The set of data that was appended to this message, some of which we may
* not actually know how to iterate or parse. By holding onto this data, we
* ensure that we're able to properly validate the set of signatures that
* cover these new fields, and ensure we're able to make upgrades to the
* network in a forwards compatible manner.
*/
@SerialVersionUID(0L)
final case class ChannelUpdate(
signature: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
chainHash: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
chanId: org.bitcoins.core.number.UInt64 = lnrpc.ChannelUpdate._typemapper_chanId.toCustom(0L),
timestamp: org.bitcoins.core.number.UInt32 = lnrpc.ChannelUpdate._typemapper_timestamp.toCustom(0),
messageFlags: org.bitcoins.core.number.UInt32 = lnrpc.ChannelUpdate._typemapper_messageFlags.toCustom(0),
channelFlags: org.bitcoins.core.number.UInt32 = lnrpc.ChannelUpdate._typemapper_channelFlags.toCustom(0),
timeLockDelta: org.bitcoins.core.number.UInt32 = lnrpc.ChannelUpdate._typemapper_timeLockDelta.toCustom(0),
htlcMinimumMsat: org.bitcoins.core.number.UInt64 = lnrpc.ChannelUpdate._typemapper_htlcMinimumMsat.toCustom(0L),
baseFee: org.bitcoins.core.number.UInt32 = lnrpc.ChannelUpdate._typemapper_baseFee.toCustom(0),
feeRate: org.bitcoins.core.number.UInt32 = lnrpc.ChannelUpdate._typemapper_feeRate.toCustom(0),
htlcMaximumMsat: org.bitcoins.core.number.UInt64 = lnrpc.ChannelUpdate._typemapper_htlcMaximumMsat.toCustom(0L),
extraOpaqueData: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ChannelUpdate] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = signature
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(1, __value)
}
};
{
val __value = chainHash
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(2, __value)
}
};
{
val __value = lnrpc.ChannelUpdate._typemapper_chanId.toBase(chanId)
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(3, __value)
}
};
{
val __value = lnrpc.ChannelUpdate._typemapper_timestamp.toBase(timestamp)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(4, __value)
}
};
{
val __value = lnrpc.ChannelUpdate._typemapper_messageFlags.toBase(messageFlags)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(10, __value)
}
};
{
val __value = lnrpc.ChannelUpdate._typemapper_channelFlags.toBase(channelFlags)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(5, __value)
}
};
{
val __value = lnrpc.ChannelUpdate._typemapper_timeLockDelta.toBase(timeLockDelta)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(6, __value)
}
};
{
val __value = lnrpc.ChannelUpdate._typemapper_htlcMinimumMsat.toBase(htlcMinimumMsat)
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(7, __value)
}
};
{
val __value = lnrpc.ChannelUpdate._typemapper_baseFee.toBase(baseFee)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(8, __value)
}
};
{
val __value = lnrpc.ChannelUpdate._typemapper_feeRate.toBase(feeRate)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(9, __value)
}
};
{
val __value = lnrpc.ChannelUpdate._typemapper_htlcMaximumMsat.toBase(htlcMaximumMsat)
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(11, __value)
}
};
{
val __value = extraOpaqueData
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(12, __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 = {
{
val __v = signature
if (!__v.isEmpty) {
_output__.writeBytes(1, __v)
}
};
{
val __v = chainHash
if (!__v.isEmpty) {
_output__.writeBytes(2, __v)
}
};
{
val __v = lnrpc.ChannelUpdate._typemapper_chanId.toBase(chanId)
if (__v != 0L) {
_output__.writeUInt64(3, __v)
}
};
{
val __v = lnrpc.ChannelUpdate._typemapper_timestamp.toBase(timestamp)
if (__v != 0) {
_output__.writeUInt32(4, __v)
}
};
{
val __v = lnrpc.ChannelUpdate._typemapper_channelFlags.toBase(channelFlags)
if (__v != 0) {
_output__.writeUInt32(5, __v)
}
};
{
val __v = lnrpc.ChannelUpdate._typemapper_timeLockDelta.toBase(timeLockDelta)
if (__v != 0) {
_output__.writeUInt32(6, __v)
}
};
{
val __v = lnrpc.ChannelUpdate._typemapper_htlcMinimumMsat.toBase(htlcMinimumMsat)
if (__v != 0L) {
_output__.writeUInt64(7, __v)
}
};
{
val __v = lnrpc.ChannelUpdate._typemapper_baseFee.toBase(baseFee)
if (__v != 0) {
_output__.writeUInt32(8, __v)
}
};
{
val __v = lnrpc.ChannelUpdate._typemapper_feeRate.toBase(feeRate)
if (__v != 0) {
_output__.writeUInt32(9, __v)
}
};
{
val __v = lnrpc.ChannelUpdate._typemapper_messageFlags.toBase(messageFlags)
if (__v != 0) {
_output__.writeUInt32(10, __v)
}
};
{
val __v = lnrpc.ChannelUpdate._typemapper_htlcMaximumMsat.toBase(htlcMaximumMsat)
if (__v != 0L) {
_output__.writeUInt64(11, __v)
}
};
{
val __v = extraOpaqueData
if (!__v.isEmpty) {
_output__.writeBytes(12, __v)
}
};
unknownFields.writeTo(_output__)
}
def withSignature(__v: _root_.com.google.protobuf.ByteString): ChannelUpdate = copy(signature = __v)
def withChainHash(__v: _root_.com.google.protobuf.ByteString): ChannelUpdate = copy(chainHash = __v)
def withChanId(__v: org.bitcoins.core.number.UInt64): ChannelUpdate = copy(chanId = __v)
def withTimestamp(__v: org.bitcoins.core.number.UInt32): ChannelUpdate = copy(timestamp = __v)
def withMessageFlags(__v: org.bitcoins.core.number.UInt32): ChannelUpdate = copy(messageFlags = __v)
def withChannelFlags(__v: org.bitcoins.core.number.UInt32): ChannelUpdate = copy(channelFlags = __v)
def withTimeLockDelta(__v: org.bitcoins.core.number.UInt32): ChannelUpdate = copy(timeLockDelta = __v)
def withHtlcMinimumMsat(__v: org.bitcoins.core.number.UInt64): ChannelUpdate = copy(htlcMinimumMsat = __v)
def withBaseFee(__v: org.bitcoins.core.number.UInt32): ChannelUpdate = copy(baseFee = __v)
def withFeeRate(__v: org.bitcoins.core.number.UInt32): ChannelUpdate = copy(feeRate = __v)
def withHtlcMaximumMsat(__v: org.bitcoins.core.number.UInt64): ChannelUpdate = copy(htlcMaximumMsat = __v)
def withExtraOpaqueData(__v: _root_.com.google.protobuf.ByteString): ChannelUpdate = copy(extraOpaqueData = __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 = signature
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
}
case 2 => {
val __t = chainHash
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
}
case 3 => {
val __t = lnrpc.ChannelUpdate._typemapper_chanId.toBase(chanId)
if (__t != 0L) __t else null
}
case 4 => {
val __t = lnrpc.ChannelUpdate._typemapper_timestamp.toBase(timestamp)
if (__t != 0) __t else null
}
case 10 => {
val __t = lnrpc.ChannelUpdate._typemapper_messageFlags.toBase(messageFlags)
if (__t != 0) __t else null
}
case 5 => {
val __t = lnrpc.ChannelUpdate._typemapper_channelFlags.toBase(channelFlags)
if (__t != 0) __t else null
}
case 6 => {
val __t = lnrpc.ChannelUpdate._typemapper_timeLockDelta.toBase(timeLockDelta)
if (__t != 0) __t else null
}
case 7 => {
val __t = lnrpc.ChannelUpdate._typemapper_htlcMinimumMsat.toBase(htlcMinimumMsat)
if (__t != 0L) __t else null
}
case 8 => {
val __t = lnrpc.ChannelUpdate._typemapper_baseFee.toBase(baseFee)
if (__t != 0) __t else null
}
case 9 => {
val __t = lnrpc.ChannelUpdate._typemapper_feeRate.toBase(feeRate)
if (__t != 0) __t else null
}
case 11 => {
val __t = lnrpc.ChannelUpdate._typemapper_htlcMaximumMsat.toBase(htlcMaximumMsat)
if (__t != 0L) __t else null
}
case 12 => {
val __t = extraOpaqueData
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __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 => _root_.scalapb.descriptors.PByteString(signature)
case 2 => _root_.scalapb.descriptors.PByteString(chainHash)
case 3 => _root_.scalapb.descriptors.PLong(lnrpc.ChannelUpdate._typemapper_chanId.toBase(chanId))
case 4 => _root_.scalapb.descriptors.PInt(lnrpc.ChannelUpdate._typemapper_timestamp.toBase(timestamp))
case 10 => _root_.scalapb.descriptors.PInt(lnrpc.ChannelUpdate._typemapper_messageFlags.toBase(messageFlags))
case 5 => _root_.scalapb.descriptors.PInt(lnrpc.ChannelUpdate._typemapper_channelFlags.toBase(channelFlags))
case 6 => _root_.scalapb.descriptors.PInt(lnrpc.ChannelUpdate._typemapper_timeLockDelta.toBase(timeLockDelta))
case 7 => _root_.scalapb.descriptors.PLong(lnrpc.ChannelUpdate._typemapper_htlcMinimumMsat.toBase(htlcMinimumMsat))
case 8 => _root_.scalapb.descriptors.PInt(lnrpc.ChannelUpdate._typemapper_baseFee.toBase(baseFee))
case 9 => _root_.scalapb.descriptors.PInt(lnrpc.ChannelUpdate._typemapper_feeRate.toBase(feeRate))
case 11 => _root_.scalapb.descriptors.PLong(lnrpc.ChannelUpdate._typemapper_htlcMaximumMsat.toBase(htlcMaximumMsat))
case 12 => _root_.scalapb.descriptors.PByteString(extraOpaqueData)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: lnrpc.ChannelUpdate.type = lnrpc.ChannelUpdate
// @@protoc_insertion_point(GeneratedMessage[lnrpc.ChannelUpdate])
}
object ChannelUpdate extends scalapb.GeneratedMessageCompanion[lnrpc.ChannelUpdate] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.ChannelUpdate] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.ChannelUpdate = {
var __signature: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
var __chainHash: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
var __chanId: _root_.scala.Long = 0L
var __timestamp: _root_.scala.Int = 0
var __messageFlags: _root_.scala.Int = 0
var __channelFlags: _root_.scala.Int = 0
var __timeLockDelta: _root_.scala.Int = 0
var __htlcMinimumMsat: _root_.scala.Long = 0L
var __baseFee: _root_.scala.Int = 0
var __feeRate: _root_.scala.Int = 0
var __htlcMaximumMsat: _root_.scala.Long = 0L
var __extraOpaqueData: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.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 =>
__signature = _input__.readBytes()
case 18 =>
__chainHash = _input__.readBytes()
case 24 =>
__chanId = _input__.readUInt64()
case 32 =>
__timestamp = _input__.readUInt32()
case 80 =>
__messageFlags = _input__.readUInt32()
case 40 =>
__channelFlags = _input__.readUInt32()
case 48 =>
__timeLockDelta = _input__.readUInt32()
case 56 =>
__htlcMinimumMsat = _input__.readUInt64()
case 64 =>
__baseFee = _input__.readUInt32()
case 72 =>
__feeRate = _input__.readUInt32()
case 88 =>
__htlcMaximumMsat = _input__.readUInt64()
case 98 =>
__extraOpaqueData = _input__.readBytes()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
lnrpc.ChannelUpdate(
signature = __signature,
chainHash = __chainHash,
chanId = lnrpc.ChannelUpdate._typemapper_chanId.toCustom(__chanId),
timestamp = lnrpc.ChannelUpdate._typemapper_timestamp.toCustom(__timestamp),
messageFlags = lnrpc.ChannelUpdate._typemapper_messageFlags.toCustom(__messageFlags),
channelFlags = lnrpc.ChannelUpdate._typemapper_channelFlags.toCustom(__channelFlags),
timeLockDelta = lnrpc.ChannelUpdate._typemapper_timeLockDelta.toCustom(__timeLockDelta),
htlcMinimumMsat = lnrpc.ChannelUpdate._typemapper_htlcMinimumMsat.toCustom(__htlcMinimumMsat),
baseFee = lnrpc.ChannelUpdate._typemapper_baseFee.toCustom(__baseFee),
feeRate = lnrpc.ChannelUpdate._typemapper_feeRate.toCustom(__feeRate),
htlcMaximumMsat = lnrpc.ChannelUpdate._typemapper_htlcMaximumMsat.toCustom(__htlcMaximumMsat),
extraOpaqueData = __extraOpaqueData,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.ChannelUpdate] = _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.ChannelUpdate(
signature = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY),
chainHash = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY),
chanId = lnrpc.ChannelUpdate._typemapper_chanId.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
timestamp = lnrpc.ChannelUpdate._typemapper_timestamp.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
messageFlags = lnrpc.ChannelUpdate._typemapper_messageFlags.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(10).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
channelFlags = lnrpc.ChannelUpdate._typemapper_channelFlags.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
timeLockDelta = lnrpc.ChannelUpdate._typemapper_timeLockDelta.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
htlcMinimumMsat = lnrpc.ChannelUpdate._typemapper_htlcMinimumMsat.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
baseFee = lnrpc.ChannelUpdate._typemapper_baseFee.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
feeRate = lnrpc.ChannelUpdate._typemapper_feeRate.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
htlcMaximumMsat = lnrpc.ChannelUpdate._typemapper_htlcMaximumMsat.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(11).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
extraOpaqueData = __fieldsMap.get(scalaDescriptor.findFieldByNumber(12).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = LightningProto.javaDescriptor.getMessageTypes().get(181)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = LightningProto.scalaDescriptor.messages(181)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
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.ChannelUpdate(
signature = _root_.com.google.protobuf.ByteString.EMPTY,
chainHash = _root_.com.google.protobuf.ByteString.EMPTY,
chanId = lnrpc.ChannelUpdate._typemapper_chanId.toCustom(0L),
timestamp = lnrpc.ChannelUpdate._typemapper_timestamp.toCustom(0),
messageFlags = lnrpc.ChannelUpdate._typemapper_messageFlags.toCustom(0),
channelFlags = lnrpc.ChannelUpdate._typemapper_channelFlags.toCustom(0),
timeLockDelta = lnrpc.ChannelUpdate._typemapper_timeLockDelta.toCustom(0),
htlcMinimumMsat = lnrpc.ChannelUpdate._typemapper_htlcMinimumMsat.toCustom(0L),
baseFee = lnrpc.ChannelUpdate._typemapper_baseFee.toCustom(0),
feeRate = lnrpc.ChannelUpdate._typemapper_feeRate.toCustom(0),
htlcMaximumMsat = lnrpc.ChannelUpdate._typemapper_htlcMaximumMsat.toCustom(0L),
extraOpaqueData = _root_.com.google.protobuf.ByteString.EMPTY
)
implicit class ChannelUpdateLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelUpdate]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.ChannelUpdate](_l) {
def signature: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.signature)((c_, f_) => c_.copy(signature = f_))
def chainHash: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.chainHash)((c_, f_) => c_.copy(chainHash = f_))
def chanId: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.chanId)((c_, f_) => c_.copy(chanId = f_))
def timestamp: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.timestamp)((c_, f_) => c_.copy(timestamp = f_))
def messageFlags: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.messageFlags)((c_, f_) => c_.copy(messageFlags = f_))
def channelFlags: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.channelFlags)((c_, f_) => c_.copy(channelFlags = f_))
def timeLockDelta: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.timeLockDelta)((c_, f_) => c_.copy(timeLockDelta = f_))
def htlcMinimumMsat: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.htlcMinimumMsat)((c_, f_) => c_.copy(htlcMinimumMsat = f_))
def baseFee: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.baseFee)((c_, f_) => c_.copy(baseFee = f_))
def feeRate: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.feeRate)((c_, f_) => c_.copy(feeRate = f_))
def htlcMaximumMsat: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.htlcMaximumMsat)((c_, f_) => c_.copy(htlcMaximumMsat = f_))
def extraOpaqueData: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.extraOpaqueData)((c_, f_) => c_.copy(extraOpaqueData = f_))
}
final val SIGNATURE_FIELD_NUMBER = 1
final val CHAIN_HASH_FIELD_NUMBER = 2
final val CHAN_ID_FIELD_NUMBER = 3
final val TIMESTAMP_FIELD_NUMBER = 4
final val MESSAGE_FLAGS_FIELD_NUMBER = 10
final val CHANNEL_FLAGS_FIELD_NUMBER = 5
final val TIME_LOCK_DELTA_FIELD_NUMBER = 6
final val HTLC_MINIMUM_MSAT_FIELD_NUMBER = 7
final val BASE_FEE_FIELD_NUMBER = 8
final val FEE_RATE_FIELD_NUMBER = 9
final val HTLC_MAXIMUM_MSAT_FIELD_NUMBER = 11
final val EXTRA_OPAQUE_DATA_FIELD_NUMBER = 12
@transient
private[lnrpc] val _typemapper_chanId: _root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64]]
@transient
private[lnrpc] val _typemapper_timestamp: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
@transient
private[lnrpc] val _typemapper_messageFlags: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
@transient
private[lnrpc] val _typemapper_channelFlags: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
@transient
private[lnrpc] val _typemapper_timeLockDelta: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
@transient
private[lnrpc] val _typemapper_htlcMinimumMsat: _root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64]]
@transient
private[lnrpc] val _typemapper_baseFee: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
@transient
private[lnrpc] val _typemapper_feeRate: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
@transient
private[lnrpc] val _typemapper_htlcMaximumMsat: _root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64]]
def of(
signature: _root_.com.google.protobuf.ByteString,
chainHash: _root_.com.google.protobuf.ByteString,
chanId: org.bitcoins.core.number.UInt64,
timestamp: org.bitcoins.core.number.UInt32,
messageFlags: org.bitcoins.core.number.UInt32,
channelFlags: org.bitcoins.core.number.UInt32,
timeLockDelta: org.bitcoins.core.number.UInt32,
htlcMinimumMsat: org.bitcoins.core.number.UInt64,
baseFee: org.bitcoins.core.number.UInt32,
feeRate: org.bitcoins.core.number.UInt32,
htlcMaximumMsat: org.bitcoins.core.number.UInt64,
extraOpaqueData: _root_.com.google.protobuf.ByteString
): _root_.lnrpc.ChannelUpdate = _root_.lnrpc.ChannelUpdate(
signature,
chainHash,
chanId,
timestamp,
messageFlags,
channelFlags,
timeLockDelta,
htlcMinimumMsat,
baseFee,
feeRate,
htlcMaximumMsat,
extraOpaqueData
)
// @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.ChannelUpdate])
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy