public static final class LightningApi.Payment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Payment.Builder> implements LightningApi.PaymentOrBuilder
lnrpc.Payment
Modifier and Type | Method and Description |
---|---|
LightningApi.Payment.Builder |
addAllPath(java.lang.Iterable<java.lang.String> values)
/ The path this payment took
|
LightningApi.Payment.Builder |
addPath(java.lang.String value)
/ The path this payment took
|
LightningApi.Payment.Builder |
addPathBytes(com.google.protobuf.ByteString value)
/ The path this payment took
|
LightningApi.Payment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LightningApi.Payment |
build() |
LightningApi.Payment |
buildPartial() |
LightningApi.Payment.Builder |
clear() |
LightningApi.Payment.Builder |
clearCreationDate()
/ The date of this payment
|
LightningApi.Payment.Builder |
clearFee()
/ The fee paid for this payment in satoshis
|
LightningApi.Payment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LightningApi.Payment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LightningApi.Payment.Builder |
clearPath()
/ The path this payment took
|
LightningApi.Payment.Builder |
clearPaymentHash()
/ The payment hash
|
LightningApi.Payment.Builder |
clearPaymentPreimage()
/ The payment preimage
|
LightningApi.Payment.Builder |
clearValue()
Deprecated.
|
LightningApi.Payment.Builder |
clearValueMsat()
/ The value of the payment in milli-satoshis
|
LightningApi.Payment.Builder |
clearValueSat()
/ The value of the payment in satoshis
|
LightningApi.Payment.Builder |
clone() |
long |
getCreationDate()
/ The date of this payment
|
LightningApi.Payment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getFee()
/ The fee paid for this payment in satoshis
|
java.lang.String |
getPath(int index)
/ The path this payment took
|
com.google.protobuf.ByteString |
getPathBytes(int index)
/ The path this payment took
|
int |
getPathCount()
/ The path this payment took
|
com.google.protobuf.ProtocolStringList |
getPathList()
/ The path this payment took
|
java.lang.String |
getPaymentHash()
/ The payment hash
|
com.google.protobuf.ByteString |
getPaymentHashBytes()
/ The payment hash
|
java.lang.String |
getPaymentPreimage()
/ The payment preimage
|
com.google.protobuf.ByteString |
getPaymentPreimageBytes()
/ The payment preimage
|
long |
getValue()
Deprecated.
|
long |
getValueMsat()
/ The value of the payment in milli-satoshis
|
long |
getValueSat()
/ The value of the payment in satoshis
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.Payment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.Payment.Builder |
mergeFrom(LightningApi.Payment other) |
LightningApi.Payment.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.Payment.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.Payment.Builder |
setCreationDate(long value)
/ The date of this payment
|
LightningApi.Payment.Builder |
setFee(long value)
/ The fee paid for this payment in satoshis
|
LightningApi.Payment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LightningApi.Payment.Builder |
setPath(int index,
java.lang.String value)
/ The path this payment took
|
LightningApi.Payment.Builder |
setPaymentHash(java.lang.String value)
/ The payment hash
|
LightningApi.Payment.Builder |
setPaymentHashBytes(com.google.protobuf.ByteString value)
/ The payment hash
|
LightningApi.Payment.Builder |
setPaymentPreimage(java.lang.String value)
/ The payment preimage
|
LightningApi.Payment.Builder |
setPaymentPreimageBytes(com.google.protobuf.ByteString value)
/ The payment preimage
|
LightningApi.Payment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
LightningApi.Payment.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.Payment.Builder |
setValue(long value)
Deprecated.
|
LightningApi.Payment.Builder |
setValueMsat(long value)
/ The value of the payment in milli-satoshis
|
LightningApi.Payment.Builder |
setValueSat(long value)
/ The value of the payment in satoshis
|
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.Payment.Builder>
public LightningApi.Payment.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.Payment.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.Payment.Builder>
public LightningApi.Payment getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.Payment build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.Payment buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.Payment.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.Payment.Builder>
public LightningApi.Payment.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.Payment.Builder>
public LightningApi.Payment.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.Payment.Builder>
public LightningApi.Payment.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.Payment.Builder>
public LightningApi.Payment.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.Payment.Builder>
public LightningApi.Payment.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.Payment.Builder>
public LightningApi.Payment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.Payment.Builder>
public LightningApi.Payment.Builder mergeFrom(LightningApi.Payment other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Payment.Builder>
public LightningApi.Payment.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.Payment.Builder>
java.io.IOException
public java.lang.String getPaymentHash()
/ The payment hash
string payment_hash = 1[json_name = "payment_hash"];
getPaymentHash
in interface LightningApi.PaymentOrBuilder
public com.google.protobuf.ByteString getPaymentHashBytes()
/ The payment hash
string payment_hash = 1[json_name = "payment_hash"];
getPaymentHashBytes
in interface LightningApi.PaymentOrBuilder
public LightningApi.Payment.Builder setPaymentHash(java.lang.String value)
/ The payment hash
string payment_hash = 1[json_name = "payment_hash"];
public LightningApi.Payment.Builder clearPaymentHash()
/ The payment hash
string payment_hash = 1[json_name = "payment_hash"];
public LightningApi.Payment.Builder setPaymentHashBytes(com.google.protobuf.ByteString value)
/ The payment hash
string payment_hash = 1[json_name = "payment_hash"];
@Deprecated public long getValue()
/ Deprecated, use value_sat or value_msat.
int64 value = 2[json_name = "value", deprecated = true];
getValue
in interface LightningApi.PaymentOrBuilder
@Deprecated public LightningApi.Payment.Builder setValue(long value)
/ Deprecated, use value_sat or value_msat.
int64 value = 2[json_name = "value", deprecated = true];
@Deprecated public LightningApi.Payment.Builder clearValue()
/ Deprecated, use value_sat or value_msat.
int64 value = 2[json_name = "value", deprecated = true];
public long getCreationDate()
/ The date of this payment
int64 creation_date = 3[json_name = "creation_date"];
getCreationDate
in interface LightningApi.PaymentOrBuilder
public LightningApi.Payment.Builder setCreationDate(long value)
/ The date of this payment
int64 creation_date = 3[json_name = "creation_date"];
public LightningApi.Payment.Builder clearCreationDate()
/ The date of this payment
int64 creation_date = 3[json_name = "creation_date"];
public com.google.protobuf.ProtocolStringList getPathList()
/ The path this payment took
repeated string path = 4[json_name = "path"];
getPathList
in interface LightningApi.PaymentOrBuilder
public int getPathCount()
/ The path this payment took
repeated string path = 4[json_name = "path"];
getPathCount
in interface LightningApi.PaymentOrBuilder
public java.lang.String getPath(int index)
/ The path this payment took
repeated string path = 4[json_name = "path"];
getPath
in interface LightningApi.PaymentOrBuilder
public com.google.protobuf.ByteString getPathBytes(int index)
/ The path this payment took
repeated string path = 4[json_name = "path"];
getPathBytes
in interface LightningApi.PaymentOrBuilder
public LightningApi.Payment.Builder setPath(int index, java.lang.String value)
/ The path this payment took
repeated string path = 4[json_name = "path"];
public LightningApi.Payment.Builder addPath(java.lang.String value)
/ The path this payment took
repeated string path = 4[json_name = "path"];
public LightningApi.Payment.Builder addAllPath(java.lang.Iterable<java.lang.String> values)
/ The path this payment took
repeated string path = 4[json_name = "path"];
public LightningApi.Payment.Builder clearPath()
/ The path this payment took
repeated string path = 4[json_name = "path"];
public LightningApi.Payment.Builder addPathBytes(com.google.protobuf.ByteString value)
/ The path this payment took
repeated string path = 4[json_name = "path"];
public long getFee()
/ The fee paid for this payment in satoshis
int64 fee = 5[json_name = "fee"];
getFee
in interface LightningApi.PaymentOrBuilder
public LightningApi.Payment.Builder setFee(long value)
/ The fee paid for this payment in satoshis
int64 fee = 5[json_name = "fee"];
public LightningApi.Payment.Builder clearFee()
/ The fee paid for this payment in satoshis
int64 fee = 5[json_name = "fee"];
public java.lang.String getPaymentPreimage()
/ The payment preimage
string payment_preimage = 6[json_name = "payment_preimage"];
getPaymentPreimage
in interface LightningApi.PaymentOrBuilder
public com.google.protobuf.ByteString getPaymentPreimageBytes()
/ The payment preimage
string payment_preimage = 6[json_name = "payment_preimage"];
getPaymentPreimageBytes
in interface LightningApi.PaymentOrBuilder
public LightningApi.Payment.Builder setPaymentPreimage(java.lang.String value)
/ The payment preimage
string payment_preimage = 6[json_name = "payment_preimage"];
public LightningApi.Payment.Builder clearPaymentPreimage()
/ The payment preimage
string payment_preimage = 6[json_name = "payment_preimage"];
public LightningApi.Payment.Builder setPaymentPreimageBytes(com.google.protobuf.ByteString value)
/ The payment preimage
string payment_preimage = 6[json_name = "payment_preimage"];
public long getValueSat()
/ The value of the payment in satoshis
int64 value_sat = 7[json_name = "value_sat"];
getValueSat
in interface LightningApi.PaymentOrBuilder
public LightningApi.Payment.Builder setValueSat(long value)
/ The value of the payment in satoshis
int64 value_sat = 7[json_name = "value_sat"];
public LightningApi.Payment.Builder clearValueSat()
/ The value of the payment in satoshis
int64 value_sat = 7[json_name = "value_sat"];
public long getValueMsat()
/ The value of the payment in milli-satoshis
int64 value_msat = 8[json_name = "value_msat"];
getValueMsat
in interface LightningApi.PaymentOrBuilder
public LightningApi.Payment.Builder setValueMsat(long value)
/ The value of the payment in milli-satoshis
int64 value_msat = 8[json_name = "value_msat"];
public LightningApi.Payment.Builder clearValueMsat()
/ The value of the payment in milli-satoshis
int64 value_msat = 8[json_name = "value_msat"];
public final LightningApi.Payment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Payment.Builder>
public final LightningApi.Payment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Payment.Builder>