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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
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 |
clearAmtMsat()
/ The amount of the htlc in msat.
|
LightningApi.InvoiceHTLC.Builder |
clearChanId()
/ Short channel id over which the htlc was received.
|
LightningApi.InvoiceHTLC.Builder |
clearExpiryHeight()
/ Block height at which this htlc expires.
|
LightningApi.InvoiceHTLC.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LightningApi.InvoiceHTLC.Builder |
clearHtlcIndex()
/ Index identifying the htlc on the channel.
|
LightningApi.InvoiceHTLC.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LightningApi.InvoiceHTLC.Builder |
clearResolveTime()
/ Time at which this htlc was settled or canceled.
|
LightningApi.InvoiceHTLC.Builder |
clearState()
/ Current state the htlc is in.
|
LightningApi.InvoiceHTLC.Builder |
clone() |
int |
getAcceptHeight()
/ Block height at which this htlc was accepted.
|
long |
getAcceptTime()
/ Time at which this htlc was accepted.
|
long |
getAmtMsat()
/ The amount of the htlc in msat.
|
long |
getChanId()
/ Short channel id over which the htlc was received.
|
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 |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
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 |
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 |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LightningApi.InvoiceHTLC.Builder |
setHtlcIndex(long value)
/ Index identifying the htlc on the channel.
|
LightningApi.InvoiceHTLC.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>
public LightningApi.InvoiceHTLC getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.InvoiceHTLC build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.InvoiceHTLC buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.InvoiceHTLC.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>
public LightningApi.InvoiceHTLC.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>
public LightningApi.InvoiceHTLC.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>
public LightningApi.InvoiceHTLC.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>
public LightningApi.InvoiceHTLC.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>
public LightningApi.InvoiceHTLC.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>
public LightningApi.InvoiceHTLC.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.InvoiceHTLC.Builder>
java.io.IOException
public long getChanId()
/ Short channel id over which the htlc was received.
uint64 chan_id = 1[json_name = "chan_id"];
getChanId
in interface LightningApi.InvoiceHTLCOrBuilder
public LightningApi.InvoiceHTLC.Builder setChanId(long value)
/ Short channel id over which the htlc was received.
uint64 chan_id = 1[json_name = "chan_id"];
public LightningApi.InvoiceHTLC.Builder clearChanId()
/ Short channel id over which the htlc was received.
uint64 chan_id = 1[json_name = "chan_id"];
public long getHtlcIndex()
/ Index identifying the htlc on the channel.
uint64 htlc_index = 2[json_name = "htlc_index"];
getHtlcIndex
in interface LightningApi.InvoiceHTLCOrBuilder
public LightningApi.InvoiceHTLC.Builder setHtlcIndex(long value)
/ Index identifying the htlc on the channel.
uint64 htlc_index = 2[json_name = "htlc_index"];
public LightningApi.InvoiceHTLC.Builder clearHtlcIndex()
/ Index identifying the htlc on the channel.
uint64 htlc_index = 2[json_name = "htlc_index"];
public long getAmtMsat()
/ The amount of the htlc in msat.
uint64 amt_msat = 3[json_name = "amt_msat"];
getAmtMsat
in interface LightningApi.InvoiceHTLCOrBuilder
public LightningApi.InvoiceHTLC.Builder setAmtMsat(long value)
/ The amount of the htlc in msat.
uint64 amt_msat = 3[json_name = "amt_msat"];
public LightningApi.InvoiceHTLC.Builder clearAmtMsat()
/ The amount of the htlc in msat.
uint64 amt_msat = 3[json_name = "amt_msat"];
public int getAcceptHeight()
/ Block height at which this htlc was accepted.
int32 accept_height = 4[json_name = "accept_height"];
getAcceptHeight
in interface LightningApi.InvoiceHTLCOrBuilder
public LightningApi.InvoiceHTLC.Builder setAcceptHeight(int value)
/ Block height at which this htlc was accepted.
int32 accept_height = 4[json_name = "accept_height"];
public LightningApi.InvoiceHTLC.Builder clearAcceptHeight()
/ Block height at which this htlc was accepted.
int32 accept_height = 4[json_name = "accept_height"];
public long getAcceptTime()
/ Time at which this htlc was accepted.
int64 accept_time = 5[json_name = "accept_time"];
getAcceptTime
in interface LightningApi.InvoiceHTLCOrBuilder
public LightningApi.InvoiceHTLC.Builder setAcceptTime(long value)
/ Time at which this htlc was accepted.
int64 accept_time = 5[json_name = "accept_time"];
public LightningApi.InvoiceHTLC.Builder clearAcceptTime()
/ Time at which this htlc was accepted.
int64 accept_time = 5[json_name = "accept_time"];
public long getResolveTime()
/ Time at which this htlc was settled or canceled.
int64 resolve_time = 6[json_name = "resolve_time"];
getResolveTime
in interface LightningApi.InvoiceHTLCOrBuilder
public LightningApi.InvoiceHTLC.Builder setResolveTime(long value)
/ Time at which this htlc was settled or canceled.
int64 resolve_time = 6[json_name = "resolve_time"];
public LightningApi.InvoiceHTLC.Builder clearResolveTime()
/ Time at which this htlc was settled or canceled.
int64 resolve_time = 6[json_name = "resolve_time"];
public int getExpiryHeight()
/ Block height at which this htlc expires.
int32 expiry_height = 7[json_name = "expiry_height"];
getExpiryHeight
in interface LightningApi.InvoiceHTLCOrBuilder
public LightningApi.InvoiceHTLC.Builder setExpiryHeight(int value)
/ Block height at which this htlc expires.
int32 expiry_height = 7[json_name = "expiry_height"];
public LightningApi.InvoiceHTLC.Builder clearExpiryHeight()
/ Block height at which this htlc expires.
int32 expiry_height = 7[json_name = "expiry_height"];
public int getStateValue()
/ Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8[json_name = "state"];
getStateValue
in interface LightningApi.InvoiceHTLCOrBuilder
public LightningApi.InvoiceHTLC.Builder setStateValue(int value)
/ Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8[json_name = "state"];
public LightningApi.InvoiceHTLCState getState()
/ Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8[json_name = "state"];
getState
in interface LightningApi.InvoiceHTLCOrBuilder
public LightningApi.InvoiceHTLC.Builder setState(LightningApi.InvoiceHTLCState value)
/ Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8[json_name = "state"];
public LightningApi.InvoiceHTLC.Builder clearState()
/ Current state the htlc is in.
.lnrpc.InvoiceHTLCState state = 8[json_name = "state"];
public final LightningApi.InvoiceHTLC.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InvoiceHTLC.Builder>