public static final class LightningApi.Payment extends com.google.protobuf.GeneratedMessageV3 implements LightningApi.PaymentOrBuilder
lnrpc.Payment
Modifier and Type | Class and Description |
---|---|
static class |
LightningApi.Payment.Builder
Protobuf type
lnrpc.Payment |
static class |
LightningApi.Payment.PaymentStatus
Protobuf enum
lnrpc.Payment.PaymentStatus |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
CREATION_DATE_FIELD_NUMBER |
static int |
CREATION_TIME_NS_FIELD_NUMBER |
static int |
FAILURE_REASON_FIELD_NUMBER |
static int |
FEE_FIELD_NUMBER |
static int |
FEE_MSAT_FIELD_NUMBER |
static int |
FEE_SAT_FIELD_NUMBER |
static int |
HTLCS_FIELD_NUMBER |
static int |
PAYMENT_HASH_FIELD_NUMBER |
static int |
PAYMENT_INDEX_FIELD_NUMBER |
static int |
PAYMENT_PREIMAGE_FIELD_NUMBER |
static int |
PAYMENT_REQUEST_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
static int |
VALUE_MSAT_FIELD_NUMBER |
static int |
VALUE_SAT_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getCreationDate()
Deprecated.
lnrpc.Payment.creation_date is deprecated.
See lightning.api.proto;l=3892
|
long |
getCreationTimeNs()
The time in UNIX nanoseconds at which the payment was created.
|
static LightningApi.Payment |
getDefaultInstance() |
LightningApi.Payment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
LightningApi.PaymentFailureReason |
getFailureReason()
.lnrpc.PaymentFailureReason failure_reason = 16; |
int |
getFailureReasonValue()
.lnrpc.PaymentFailureReason failure_reason = 16; |
long |
getFee()
Deprecated.
lnrpc.Payment.fee is deprecated.
See lightning.api.proto;l=3897
|
long |
getFeeMsat()
The fee paid for this payment in milli-satoshis
|
long |
getFeeSat()
The fee paid for this payment in satoshis
|
LightningApi.HTLCAttempt |
getHtlcs(int index)
The HTLCs made in attempt to settle the payment.
|
int |
getHtlcsCount()
The HTLCs made in attempt to settle the payment.
|
java.util.List<LightningApi.HTLCAttempt> |
getHtlcsList()
The HTLCs made in attempt to settle the payment.
|
LightningApi.HTLCAttemptOrBuilder |
getHtlcsOrBuilder(int index)
The HTLCs made in attempt to settle the payment.
|
java.util.List<? extends LightningApi.HTLCAttemptOrBuilder> |
getHtlcsOrBuilderList()
The HTLCs made in attempt to settle the payment.
|
com.google.protobuf.Parser<LightningApi.Payment> |
getParserForType() |
java.lang.String |
getPaymentHash()
The payment hash
|
com.google.protobuf.ByteString |
getPaymentHashBytes()
The payment hash
|
long |
getPaymentIndex()
The creation index of this payment.
|
java.lang.String |
getPaymentPreimage()
The payment preimage
|
com.google.protobuf.ByteString |
getPaymentPreimageBytes()
The payment preimage
|
java.lang.String |
getPaymentRequest()
The optional payment request being fulfilled.
|
com.google.protobuf.ByteString |
getPaymentRequestBytes()
The optional payment request being fulfilled.
|
int |
getSerializedSize() |
LightningApi.Payment.PaymentStatus |
getStatus()
The status of the payment.
|
int |
getStatusValue()
The status of the payment.
|
long |
getValue()
Deprecated.
lnrpc.Payment.value is deprecated.
See lightning.api.proto;l=3889
|
long |
getValueMsat()
The value of the payment in milli-satoshis
|
long |
getValueSat()
The value of the payment in satoshis
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LightningApi.Payment.Builder |
newBuilder() |
static LightningApi.Payment.Builder |
newBuilder(LightningApi.Payment prototype) |
LightningApi.Payment.Builder |
newBuilderForType() |
protected LightningApi.Payment.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LightningApi.Payment |
parseDelimitedFrom(java.io.InputStream input) |
static LightningApi.Payment |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Payment |
parseFrom(byte[] data) |
static LightningApi.Payment |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Payment |
parseFrom(java.nio.ByteBuffer data) |
static LightningApi.Payment |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Payment |
parseFrom(com.google.protobuf.ByteString data) |
static LightningApi.Payment |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Payment |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LightningApi.Payment |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Payment |
parseFrom(java.io.InputStream input) |
static LightningApi.Payment |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LightningApi.Payment> |
parser() |
LightningApi.Payment.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int PAYMENT_HASH_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
public static final int CREATION_DATE_FIELD_NUMBER
public static final int FEE_FIELD_NUMBER
public static final int PAYMENT_PREIMAGE_FIELD_NUMBER
public static final int VALUE_SAT_FIELD_NUMBER
public static final int VALUE_MSAT_FIELD_NUMBER
public static final int PAYMENT_REQUEST_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int FEE_SAT_FIELD_NUMBER
public static final int FEE_MSAT_FIELD_NUMBER
public static final int CREATION_TIME_NS_FIELD_NUMBER
public static final int HTLCS_FIELD_NUMBER
public static final int PAYMENT_INDEX_FIELD_NUMBER
public static final int FAILURE_REASON_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public java.lang.String getPaymentHash()
The payment hash
string payment_hash = 1;
getPaymentHash
in interface LightningApi.PaymentOrBuilder
public com.google.protobuf.ByteString getPaymentHashBytes()
The payment hash
string payment_hash = 1;
getPaymentHashBytes
in interface LightningApi.PaymentOrBuilder
@Deprecated public long getValue()
Deprecated, use value_sat or value_msat.
int64 value = 2 [deprecated = true];
getValue
in interface LightningApi.PaymentOrBuilder
@Deprecated public long getCreationDate()
Deprecated, use creation_time_ns
int64 creation_date = 3 [deprecated = true];
getCreationDate
in interface LightningApi.PaymentOrBuilder
@Deprecated public long getFee()
Deprecated, use fee_sat or fee_msat.
int64 fee = 5 [deprecated = true];
getFee
in interface LightningApi.PaymentOrBuilder
public java.lang.String getPaymentPreimage()
The payment preimage
string payment_preimage = 6;
getPaymentPreimage
in interface LightningApi.PaymentOrBuilder
public com.google.protobuf.ByteString getPaymentPreimageBytes()
The payment preimage
string payment_preimage = 6;
getPaymentPreimageBytes
in interface LightningApi.PaymentOrBuilder
public long getValueSat()
The value of the payment in satoshis
int64 value_sat = 7;
getValueSat
in interface LightningApi.PaymentOrBuilder
public long getValueMsat()
The value of the payment in milli-satoshis
int64 value_msat = 8;
getValueMsat
in interface LightningApi.PaymentOrBuilder
public java.lang.String getPaymentRequest()
The optional payment request being fulfilled.
string payment_request = 9;
getPaymentRequest
in interface LightningApi.PaymentOrBuilder
public com.google.protobuf.ByteString getPaymentRequestBytes()
The optional payment request being fulfilled.
string payment_request = 9;
getPaymentRequestBytes
in interface LightningApi.PaymentOrBuilder
public int getStatusValue()
The status of the payment.
.lnrpc.Payment.PaymentStatus status = 10;
getStatusValue
in interface LightningApi.PaymentOrBuilder
public LightningApi.Payment.PaymentStatus getStatus()
The status of the payment.
.lnrpc.Payment.PaymentStatus status = 10;
getStatus
in interface LightningApi.PaymentOrBuilder
public long getFeeSat()
The fee paid for this payment in satoshis
int64 fee_sat = 11;
getFeeSat
in interface LightningApi.PaymentOrBuilder
public long getFeeMsat()
The fee paid for this payment in milli-satoshis
int64 fee_msat = 12;
getFeeMsat
in interface LightningApi.PaymentOrBuilder
public long getCreationTimeNs()
The time in UNIX nanoseconds at which the payment was created.
int64 creation_time_ns = 13;
getCreationTimeNs
in interface LightningApi.PaymentOrBuilder
public java.util.List<LightningApi.HTLCAttempt> getHtlcsList()
The HTLCs made in attempt to settle the payment.
repeated .lnrpc.HTLCAttempt htlcs = 14;
getHtlcsList
in interface LightningApi.PaymentOrBuilder
public java.util.List<? extends LightningApi.HTLCAttemptOrBuilder> getHtlcsOrBuilderList()
The HTLCs made in attempt to settle the payment.
repeated .lnrpc.HTLCAttempt htlcs = 14;
getHtlcsOrBuilderList
in interface LightningApi.PaymentOrBuilder
public int getHtlcsCount()
The HTLCs made in attempt to settle the payment.
repeated .lnrpc.HTLCAttempt htlcs = 14;
getHtlcsCount
in interface LightningApi.PaymentOrBuilder
public LightningApi.HTLCAttempt getHtlcs(int index)
The HTLCs made in attempt to settle the payment.
repeated .lnrpc.HTLCAttempt htlcs = 14;
getHtlcs
in interface LightningApi.PaymentOrBuilder
public LightningApi.HTLCAttemptOrBuilder getHtlcsOrBuilder(int index)
The HTLCs made in attempt to settle the payment.
repeated .lnrpc.HTLCAttempt htlcs = 14;
getHtlcsOrBuilder
in interface LightningApi.PaymentOrBuilder
public long getPaymentIndex()
The creation index of this payment. Each payment can be uniquely identified by this index, which may not strictly increment by 1 for payments made in older versions of lnd.
uint64 payment_index = 15;
getPaymentIndex
in interface LightningApi.PaymentOrBuilder
public int getFailureReasonValue()
.lnrpc.PaymentFailureReason failure_reason = 16;
getFailureReasonValue
in interface LightningApi.PaymentOrBuilder
public LightningApi.PaymentFailureReason getFailureReason()
.lnrpc.PaymentFailureReason failure_reason = 16;
getFailureReason
in interface LightningApi.PaymentOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static LightningApi.Payment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Payment parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Payment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Payment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Payment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Payment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Payment parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.Payment parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.Payment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.Payment parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.Payment parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.Payment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public LightningApi.Payment.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static LightningApi.Payment.Builder newBuilder()
public static LightningApi.Payment.Builder newBuilder(LightningApi.Payment prototype)
public LightningApi.Payment.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected LightningApi.Payment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static LightningApi.Payment getDefaultInstance()
public static com.google.protobuf.Parser<LightningApi.Payment> parser()
public com.google.protobuf.Parser<LightningApi.Payment> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public LightningApi.Payment getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder