public static final class LightningApi.InvoiceHTLC.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder> implements LightningApi.InvoiceHTLCOrBuilder
Details of an HTLC that paid to an invoiceProtobuf type
lnrpc.InvoiceHTLC| Modifier and Type | Method and Description |
|---|---|
LightningApi.InvoiceHTLC |
build() |
LightningApi.InvoiceHTLC |
buildPartial() |
LightningApi.InvoiceHTLC.Builder |
clear() |
LightningApi.InvoiceHTLC.Builder |
clearAcceptHeight()
Block height at which this htlc was accepted.
|
LightningApi.InvoiceHTLC.Builder |
clearAcceptTime()
Time at which this htlc was accepted.
|
LightningApi.InvoiceHTLC.Builder |
clearAmp()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
|
LightningApi.InvoiceHTLC.Builder |
clearAmtMsat()
The amount of the htlc in msat.
|
LightningApi.InvoiceHTLC.Builder |
clearChanId()
Short channel id over which the htlc was received.
|
LightningApi.InvoiceHTLC.Builder |
clearCustomRecords() |
LightningApi.InvoiceHTLC.Builder |
clearExpiryHeight()
Block height at which this htlc expires.
|
LightningApi.InvoiceHTLC.Builder |
clearHtlcIndex()
Index identifying the htlc on the channel.
|
LightningApi.InvoiceHTLC.Builder |
clearMppTotalAmtMsat()
The total amount of the mpp payment in msat.
|
LightningApi.InvoiceHTLC.Builder |
clearResolveTime()
Time at which this htlc was settled or canceled.
|
LightningApi.InvoiceHTLC.Builder |
clearState()
Current state the htlc is in.
|
boolean |
containsCustomRecords(long key)
Custom tlv records.
|
int |
getAcceptHeight()
Block height at which this htlc was accepted.
|
long |
getAcceptTime()
Time at which this htlc was accepted.
|
LightningApi.AMP |
getAmp()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
|
LightningApi.AMP.Builder |
getAmpBuilder()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
|
LightningApi.AMPOrBuilder |
getAmpOrBuilder()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
|
long |
getAmtMsat()
The amount of the htlc in msat.
|
long |
getChanId()
Short channel id over which the htlc was received.
|
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getCustomRecords()
Deprecated.
|
int |
getCustomRecordsCount()
Custom tlv records.
|
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getCustomRecordsMap()
Custom tlv records.
|
com.google.protobuf.ByteString |
getCustomRecordsOrDefault(long key,
com.google.protobuf.ByteString defaultValue)
Custom tlv records.
|
com.google.protobuf.ByteString |
getCustomRecordsOrThrow(long key)
Custom tlv records.
|
LightningApi.InvoiceHTLC |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getExpiryHeight()
Block height at which this htlc expires.
|
long |
getHtlcIndex()
Index identifying the htlc on the channel.
|
long |
getMppTotalAmtMsat()
The total amount of the mpp payment in msat.
|
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getMutableCustomRecords()
Deprecated.
|
long |
getResolveTime()
Time at which this htlc was settled or canceled.
|
LightningApi.InvoiceHTLCState |
getState()
Current state the htlc is in.
|
int |
getStateValue()
Current state the htlc is in.
|
boolean |
hasAmp()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
LightningApi.InvoiceHTLC.Builder |
mergeAmp(LightningApi.AMP value)
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
|
LightningApi.InvoiceHTLC.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.InvoiceHTLC.Builder |
mergeFrom(LightningApi.InvoiceHTLC other) |
LightningApi.InvoiceHTLC.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.InvoiceHTLC.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.InvoiceHTLC.Builder |
putAllCustomRecords(java.util.Map<java.lang.Long,com.google.protobuf.ByteString> values)
Custom tlv records.
|
LightningApi.InvoiceHTLC.Builder |
putCustomRecords(long key,
com.google.protobuf.ByteString value)
Custom tlv records.
|
LightningApi.InvoiceHTLC.Builder |
removeCustomRecords(long key)
Custom tlv records.
|
LightningApi.InvoiceHTLC.Builder |
setAcceptHeight(int value)
Block height at which this htlc was accepted.
|
LightningApi.InvoiceHTLC.Builder |
setAcceptTime(long value)
Time at which this htlc was accepted.
|
LightningApi.InvoiceHTLC.Builder |
setAmp(LightningApi.AMP.Builder builderForValue)
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
|
LightningApi.InvoiceHTLC.Builder |
setAmp(LightningApi.AMP value)
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
|
LightningApi.InvoiceHTLC.Builder |
setAmtMsat(long value)
The amount of the htlc in msat.
|
LightningApi.InvoiceHTLC.Builder |
setChanId(long value)
Short channel id over which the htlc was received.
|
LightningApi.InvoiceHTLC.Builder |
setExpiryHeight(int value)
Block height at which this htlc expires.
|
LightningApi.InvoiceHTLC.Builder |
setHtlcIndex(long value)
Index identifying the htlc on the channel.
|
LightningApi.InvoiceHTLC.Builder |
setMppTotalAmtMsat(long value)
The total amount of the mpp payment in msat.
|
LightningApi.InvoiceHTLC.Builder |
setResolveTime(long value)
Time at which this htlc was settled or canceled.
|
LightningApi.InvoiceHTLC.Builder |
setState(LightningApi.InvoiceHTLCState value)
Current state the htlc is in.
|
LightningApi.InvoiceHTLC.Builder |
setStateValue(int value)
Current state the htlc is in.
|
LightningApi.InvoiceHTLC.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>public LightningApi.InvoiceHTLC.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>public LightningApi.InvoiceHTLC getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LightningApi.InvoiceHTLC build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.InvoiceHTLC buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.InvoiceHTLC.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.InvoiceHTLC.Builder>public LightningApi.InvoiceHTLC.Builder mergeFrom(LightningApi.InvoiceHTLC other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>public LightningApi.InvoiceHTLC.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.InvoiceHTLC.Builder>java.io.IOExceptionpublic long getChanId()
Short channel id over which the htlc was received.
uint64 chan_id = 1 [jstype = JS_STRING];getChanId in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setChanId(long value)
Short channel id over which the htlc was received.
uint64 chan_id = 1 [jstype = JS_STRING];value - The chanId to set.public LightningApi.InvoiceHTLC.Builder clearChanId()
Short channel id over which the htlc was received.
uint64 chan_id = 1 [jstype = JS_STRING];public long getHtlcIndex()
Index identifying the htlc on the channel.
uint64 htlc_index = 2;getHtlcIndex in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setHtlcIndex(long value)
Index identifying the htlc on the channel.
uint64 htlc_index = 2;value - The htlcIndex to set.public LightningApi.InvoiceHTLC.Builder clearHtlcIndex()
Index identifying the htlc on the channel.
uint64 htlc_index = 2;public long getAmtMsat()
The amount of the htlc in msat.
uint64 amt_msat = 3;getAmtMsat in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setAmtMsat(long value)
The amount of the htlc in msat.
uint64 amt_msat = 3;value - The amtMsat to set.public LightningApi.InvoiceHTLC.Builder clearAmtMsat()
The amount of the htlc in msat.
uint64 amt_msat = 3;public int getAcceptHeight()
Block height at which this htlc was accepted.
int32 accept_height = 4;getAcceptHeight in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setAcceptHeight(int value)
Block height at which this htlc was accepted.
int32 accept_height = 4;value - The acceptHeight to set.public LightningApi.InvoiceHTLC.Builder clearAcceptHeight()
Block height at which this htlc was accepted.
int32 accept_height = 4;public long getAcceptTime()
Time at which this htlc was accepted.
int64 accept_time = 5;getAcceptTime in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setAcceptTime(long value)
Time at which this htlc was accepted.
int64 accept_time = 5;value - The acceptTime to set.public LightningApi.InvoiceHTLC.Builder clearAcceptTime()
Time at which this htlc was accepted.
int64 accept_time = 5;public long getResolveTime()
Time at which this htlc was settled or canceled.
int64 resolve_time = 6;getResolveTime in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setResolveTime(long value)
Time at which this htlc was settled or canceled.
int64 resolve_time = 6;value - The resolveTime to set.public LightningApi.InvoiceHTLC.Builder clearResolveTime()
Time at which this htlc was settled or canceled.
int64 resolve_time = 6;public int getExpiryHeight()
Block height at which this htlc expires.
int32 expiry_height = 7;getExpiryHeight in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setExpiryHeight(int value)
Block height at which this htlc expires.
int32 expiry_height = 7;value - The expiryHeight to set.public LightningApi.InvoiceHTLC.Builder clearExpiryHeight()
Block height at which this htlc expires.
int32 expiry_height = 7;public int getStateValue()
Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8;getStateValue in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setStateValue(int value)
Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8;value - The enum numeric value on the wire for state to set.public LightningApi.InvoiceHTLCState getState()
Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8;getState in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setState(LightningApi.InvoiceHTLCState value)
Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8;value - The state to set.public LightningApi.InvoiceHTLC.Builder clearState()
Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8;public int getCustomRecordsCount()
LightningApi.InvoiceHTLCOrBuilderCustom tlv records.
map<uint64, bytes> custom_records = 9;getCustomRecordsCount in interface LightningApi.InvoiceHTLCOrBuilderpublic boolean containsCustomRecords(long key)
Custom tlv records.
map<uint64, bytes> custom_records = 9;containsCustomRecords in interface LightningApi.InvoiceHTLCOrBuilder@Deprecated public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getCustomRecords()
getCustomRecordsMap() instead.getCustomRecords in interface LightningApi.InvoiceHTLCOrBuilderpublic java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getCustomRecordsMap()
Custom tlv records.
map<uint64, bytes> custom_records = 9;getCustomRecordsMap in interface LightningApi.InvoiceHTLCOrBuilderpublic com.google.protobuf.ByteString getCustomRecordsOrDefault(long key,
com.google.protobuf.ByteString defaultValue)
Custom tlv records.
map<uint64, bytes> custom_records = 9;getCustomRecordsOrDefault in interface LightningApi.InvoiceHTLCOrBuilderpublic com.google.protobuf.ByteString getCustomRecordsOrThrow(long key)
Custom tlv records.
map<uint64, bytes> custom_records = 9;getCustomRecordsOrThrow in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder clearCustomRecords()
public LightningApi.InvoiceHTLC.Builder removeCustomRecords(long key)
Custom tlv records.
map<uint64, bytes> custom_records = 9;@Deprecated public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getMutableCustomRecords()
public LightningApi.InvoiceHTLC.Builder putCustomRecords(long key, com.google.protobuf.ByteString value)
Custom tlv records.
map<uint64, bytes> custom_records = 9;public LightningApi.InvoiceHTLC.Builder putAllCustomRecords(java.util.Map<java.lang.Long,com.google.protobuf.ByteString> values)
Custom tlv records.
map<uint64, bytes> custom_records = 9;public long getMppTotalAmtMsat()
The total amount of the mpp payment in msat.
uint64 mpp_total_amt_msat = 10;getMppTotalAmtMsat in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setMppTotalAmtMsat(long value)
The total amount of the mpp payment in msat.
uint64 mpp_total_amt_msat = 10;value - The mppTotalAmtMsat to set.public LightningApi.InvoiceHTLC.Builder clearMppTotalAmtMsat()
The total amount of the mpp payment in msat.
uint64 mpp_total_amt_msat = 10;public boolean hasAmp()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
.lnrpc.AMP amp = 11;hasAmp in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.AMP getAmp()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
.lnrpc.AMP amp = 11;getAmp in interface LightningApi.InvoiceHTLCOrBuilderpublic LightningApi.InvoiceHTLC.Builder setAmp(LightningApi.AMP value)
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
.lnrpc.AMP amp = 11;public LightningApi.InvoiceHTLC.Builder setAmp(LightningApi.AMP.Builder builderForValue)
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
.lnrpc.AMP amp = 11;public LightningApi.InvoiceHTLC.Builder mergeAmp(LightningApi.AMP value)
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
.lnrpc.AMP amp = 11;public LightningApi.InvoiceHTLC.Builder clearAmp()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
.lnrpc.AMP amp = 11;public LightningApi.AMP.Builder getAmpBuilder()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
.lnrpc.AMP amp = 11;public LightningApi.AMPOrBuilder getAmpOrBuilder()
Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
.lnrpc.AMP amp = 11;getAmpOrBuilder in interface LightningApi.InvoiceHTLCOrBuilderpublic final LightningApi.InvoiceHTLC.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>public final LightningApi.InvoiceHTLC.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>