public static final class LightningApi.AMPInvoiceState.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMPInvoiceState.Builder> implements LightningApi.AMPInvoiceStateOrBuilder
lnrpc.AMPInvoiceState
Modifier and Type | Method and Description |
---|---|
LightningApi.AMPInvoiceState |
build() |
LightningApi.AMPInvoiceState |
buildPartial() |
LightningApi.AMPInvoiceState.Builder |
clear() |
LightningApi.AMPInvoiceState.Builder |
clearAmtPaidMsat()
The total amount paid for the sub-invoice expressed in milli satoshis.
|
LightningApi.AMPInvoiceState.Builder |
clearSettleIndex()
The settle index of this HTLC set, if the invoice state is settled.
|
LightningApi.AMPInvoiceState.Builder |
clearSettleTime()
The time this HTLC set was settled expressed in unix epoch.
|
LightningApi.AMPInvoiceState.Builder |
clearState()
The state the HTLCs associated with this setID are in.
|
long |
getAmtPaidMsat()
The total amount paid for the sub-invoice expressed in milli satoshis.
|
LightningApi.AMPInvoiceState |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getSettleIndex()
The settle index of this HTLC set, if the invoice state is settled.
|
long |
getSettleTime()
The time this HTLC set was settled expressed in unix epoch.
|
LightningApi.InvoiceHTLCState |
getState()
The state the HTLCs associated with this setID are in.
|
int |
getStateValue()
The state the HTLCs associated with this setID are in.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.AMPInvoiceState.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.AMPInvoiceState.Builder |
mergeFrom(LightningApi.AMPInvoiceState other) |
LightningApi.AMPInvoiceState.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.AMPInvoiceState.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.AMPInvoiceState.Builder |
setAmtPaidMsat(long value)
The total amount paid for the sub-invoice expressed in milli satoshis.
|
LightningApi.AMPInvoiceState.Builder |
setSettleIndex(long value)
The settle index of this HTLC set, if the invoice state is settled.
|
LightningApi.AMPInvoiceState.Builder |
setSettleTime(long value)
The time this HTLC set was settled expressed in unix epoch.
|
LightningApi.AMPInvoiceState.Builder |
setState(LightningApi.InvoiceHTLCState value)
The state the HTLCs associated with this setID are in.
|
LightningApi.AMPInvoiceState.Builder |
setStateValue(int value)
The state the HTLCs associated with this setID are in.
|
LightningApi.AMPInvoiceState.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.AMPInvoiceState.Builder>
public LightningApi.AMPInvoiceState.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.AMPInvoiceState.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.AMPInvoiceState.Builder>
public LightningApi.AMPInvoiceState getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.AMPInvoiceState build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.AMPInvoiceState buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.AMPInvoiceState.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.AMPInvoiceState.Builder>
public LightningApi.AMPInvoiceState.Builder mergeFrom(LightningApi.AMPInvoiceState other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMPInvoiceState.Builder>
public LightningApi.AMPInvoiceState.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.AMPInvoiceState.Builder>
java.io.IOException
public int getStateValue()
The state the HTLCs associated with this setID are in.
.lnrpc.InvoiceHTLCState state = 1;
getStateValue
in interface LightningApi.AMPInvoiceStateOrBuilder
public LightningApi.AMPInvoiceState.Builder setStateValue(int value)
The state the HTLCs associated with this setID are in.
.lnrpc.InvoiceHTLCState state = 1;
value
- The enum numeric value on the wire for state to set.public LightningApi.InvoiceHTLCState getState()
The state the HTLCs associated with this setID are in.
.lnrpc.InvoiceHTLCState state = 1;
getState
in interface LightningApi.AMPInvoiceStateOrBuilder
public LightningApi.AMPInvoiceState.Builder setState(LightningApi.InvoiceHTLCState value)
The state the HTLCs associated with this setID are in.
.lnrpc.InvoiceHTLCState state = 1;
value
- The state to set.public LightningApi.AMPInvoiceState.Builder clearState()
The state the HTLCs associated with this setID are in.
.lnrpc.InvoiceHTLCState state = 1;
public long getSettleIndex()
The settle index of this HTLC set, if the invoice state is settled.
uint64 settle_index = 2;
getSettleIndex
in interface LightningApi.AMPInvoiceStateOrBuilder
public LightningApi.AMPInvoiceState.Builder setSettleIndex(long value)
The settle index of this HTLC set, if the invoice state is settled.
uint64 settle_index = 2;
value
- The settleIndex to set.public LightningApi.AMPInvoiceState.Builder clearSettleIndex()
The settle index of this HTLC set, if the invoice state is settled.
uint64 settle_index = 2;
public long getSettleTime()
The time this HTLC set was settled expressed in unix epoch.
int64 settle_time = 3;
getSettleTime
in interface LightningApi.AMPInvoiceStateOrBuilder
public LightningApi.AMPInvoiceState.Builder setSettleTime(long value)
The time this HTLC set was settled expressed in unix epoch.
int64 settle_time = 3;
value
- The settleTime to set.public LightningApi.AMPInvoiceState.Builder clearSettleTime()
The time this HTLC set was settled expressed in unix epoch.
int64 settle_time = 3;
public long getAmtPaidMsat()
The total amount paid for the sub-invoice expressed in milli satoshis.
int64 amt_paid_msat = 5;
getAmtPaidMsat
in interface LightningApi.AMPInvoiceStateOrBuilder
public LightningApi.AMPInvoiceState.Builder setAmtPaidMsat(long value)
The total amount paid for the sub-invoice expressed in milli satoshis.
int64 amt_paid_msat = 5;
value
- The amtPaidMsat to set.public LightningApi.AMPInvoiceState.Builder clearAmtPaidMsat()
The total amount paid for the sub-invoice expressed in milli satoshis.
int64 amt_paid_msat = 5;
public final LightningApi.AMPInvoiceState.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMPInvoiceState.Builder>
public final LightningApi.AMPInvoiceState.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMPInvoiceState.Builder>