public static final class RouterOuterClass.SendPaymentRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.SendPaymentRequest.Builder> implements RouterOuterClass.SendPaymentRequestOrBuilder
routerrpc.SendPaymentRequest
Modifier and Type | Method and Description |
---|---|
RouterOuterClass.SendPaymentRequest.Builder |
addAllDestFeatures(java.lang.Iterable<? extends LightningApi.FeatureBit> values)
Features assumed to be supported by the final node.
|
RouterOuterClass.SendPaymentRequest.Builder |
addAllDestFeaturesValue(java.lang.Iterable<java.lang.Integer> values)
Features assumed to be supported by the final node.
|
RouterOuterClass.SendPaymentRequest.Builder |
addAllOutgoingChanIds(java.lang.Iterable<? extends java.lang.Long> values)
The channel ids of the channels are allowed for the first hop.
|
RouterOuterClass.SendPaymentRequest.Builder |
addAllRouteHints(java.lang.Iterable<? extends LightningApi.RouteHint> values)
Optional route hints to reach the destination through private channels.
|
RouterOuterClass.SendPaymentRequest.Builder |
addDestFeatures(LightningApi.FeatureBit value)
Features assumed to be supported by the final node.
|
RouterOuterClass.SendPaymentRequest.Builder |
addDestFeaturesValue(int value)
Features assumed to be supported by the final node.
|
RouterOuterClass.SendPaymentRequest.Builder |
addOutgoingChanIds(long value)
The channel ids of the channels are allowed for the first hop.
|
RouterOuterClass.SendPaymentRequest.Builder |
addRouteHints(int index,
LightningApi.RouteHint.Builder builderForValue)
Optional route hints to reach the destination through private channels.
|
RouterOuterClass.SendPaymentRequest.Builder |
addRouteHints(int index,
LightningApi.RouteHint value)
Optional route hints to reach the destination through private channels.
|
RouterOuterClass.SendPaymentRequest.Builder |
addRouteHints(LightningApi.RouteHint.Builder builderForValue)
Optional route hints to reach the destination through private channels.
|
RouterOuterClass.SendPaymentRequest.Builder |
addRouteHints(LightningApi.RouteHint value)
Optional route hints to reach the destination through private channels.
|
LightningApi.RouteHint.Builder |
addRouteHintsBuilder()
Optional route hints to reach the destination through private channels.
|
LightningApi.RouteHint.Builder |
addRouteHintsBuilder(int index)
Optional route hints to reach the destination through private channels.
|
RouterOuterClass.SendPaymentRequest |
build() |
RouterOuterClass.SendPaymentRequest |
buildPartial() |
RouterOuterClass.SendPaymentRequest.Builder |
clear() |
RouterOuterClass.SendPaymentRequest.Builder |
clearAllowSelfPayment()
If set, circular payments to self are permitted.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearAmp()
If set, an AMP-payment will be attempted.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearAmt()
Number of satoshis to send.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearAmtMsat()
Number of millisatoshis to send.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearCltvLimit()
An optional maximum total time lock for the route.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearDest()
The identity pubkey of the payment recipient
|
RouterOuterClass.SendPaymentRequest.Builder |
clearDestCustomRecords() |
RouterOuterClass.SendPaymentRequest.Builder |
clearDestFeatures()
Features assumed to be supported by the final node.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearFeeLimitMsat()
The maximum number of millisatoshis that will be paid as a fee of the
payment.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearFeeLimitSat()
The maximum number of satoshis that will be paid as a fee of the payment.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearFinalCltvDelta()
The CLTV delta from the current height that should be used to set the
timelock for the final hop.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearLastHopPubkey()
The pubkey of the last hop of the route.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearMaxParts()
The maximum number of partial payments that may be use to complete the full
amount.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearMaxShardSizeMsat()
The largest payment split that should be attempted when making a payment if
splitting is necessary.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearNoInflightUpdates()
If set, only the final payment update is streamed back.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearOutgoingChanId()
Deprecated.
routerrpc.SendPaymentRequest.outgoing_chan_id is deprecated.
See router.proto;l=234
|
RouterOuterClass.SendPaymentRequest.Builder |
clearOutgoingChanIds()
The channel ids of the channels are allowed for the first hop.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearPaymentAddr()
An optional payment addr to be included within the last hop of the route.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearPaymentHash()
The hash to use within the payment's HTLC
|
RouterOuterClass.SendPaymentRequest.Builder |
clearPaymentRequest()
A bare-bones invoice for a payment within the Lightning Network.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearRouteHints()
Optional route hints to reach the destination through private channels.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearTimeoutSeconds()
An upper limit on the amount of time we should spend when attempting to
fulfill the payment.
|
RouterOuterClass.SendPaymentRequest.Builder |
clearTimePref()
The time preference for this payment.
|
boolean |
containsDestCustomRecords(long key)
An optional field that can be used to pass an arbitrary set of TLV records
to a peer which understands the new records.
|
boolean |
getAllowSelfPayment()
If set, circular payments to self are permitted.
|
boolean |
getAmp()
If set, an AMP-payment will be attempted.
|
long |
getAmt()
Number of satoshis to send.
|
long |
getAmtMsat()
Number of millisatoshis to send.
|
int |
getCltvLimit()
An optional maximum total time lock for the route.
|
RouterOuterClass.SendPaymentRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getDest()
The identity pubkey of the payment recipient
|
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getDestCustomRecords()
Deprecated.
|
int |
getDestCustomRecordsCount()
An optional field that can be used to pass an arbitrary set of TLV records
to a peer which understands the new records.
|
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getDestCustomRecordsMap()
An optional field that can be used to pass an arbitrary set of TLV records
to a peer which understands the new records.
|
com.google.protobuf.ByteString |
getDestCustomRecordsOrDefault(long key,
com.google.protobuf.ByteString defaultValue)
An optional field that can be used to pass an arbitrary set of TLV records
to a peer which understands the new records.
|
com.google.protobuf.ByteString |
getDestCustomRecordsOrThrow(long key)
An optional field that can be used to pass an arbitrary set of TLV records
to a peer which understands the new records.
|
LightningApi.FeatureBit |
getDestFeatures(int index)
Features assumed to be supported by the final node.
|
int |
getDestFeaturesCount()
Features assumed to be supported by the final node.
|
java.util.List<LightningApi.FeatureBit> |
getDestFeaturesList()
Features assumed to be supported by the final node.
|
int |
getDestFeaturesValue(int index)
Features assumed to be supported by the final node.
|
java.util.List<java.lang.Integer> |
getDestFeaturesValueList()
Features assumed to be supported by the final node.
|
long |
getFeeLimitMsat()
The maximum number of millisatoshis that will be paid as a fee of the
payment.
|
long |
getFeeLimitSat()
The maximum number of satoshis that will be paid as a fee of the payment.
|
int |
getFinalCltvDelta()
The CLTV delta from the current height that should be used to set the
timelock for the final hop.
|
com.google.protobuf.ByteString |
getLastHopPubkey()
The pubkey of the last hop of the route.
|
int |
getMaxParts()
The maximum number of partial payments that may be use to complete the full
amount.
|
long |
getMaxShardSizeMsat()
The largest payment split that should be attempted when making a payment if
splitting is necessary.
|
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getMutableDestCustomRecords()
Deprecated.
|
boolean |
getNoInflightUpdates()
If set, only the final payment update is streamed back.
|
long |
getOutgoingChanId()
Deprecated.
routerrpc.SendPaymentRequest.outgoing_chan_id is deprecated.
See router.proto;l=234
|
long |
getOutgoingChanIds(int index)
The channel ids of the channels are allowed for the first hop.
|
int |
getOutgoingChanIdsCount()
The channel ids of the channels are allowed for the first hop.
|
java.util.List<java.lang.Long> |
getOutgoingChanIdsList()
The channel ids of the channels are allowed for the first hop.
|
com.google.protobuf.ByteString |
getPaymentAddr()
An optional payment addr to be included within the last hop of the route.
|
com.google.protobuf.ByteString |
getPaymentHash()
The hash to use within the payment's HTLC
|
java.lang.String |
getPaymentRequest()
A bare-bones invoice for a payment within the Lightning Network.
|
com.google.protobuf.ByteString |
getPaymentRequestBytes()
A bare-bones invoice for a payment within the Lightning Network.
|
LightningApi.RouteHint |
getRouteHints(int index)
Optional route hints to reach the destination through private channels.
|
LightningApi.RouteHint.Builder |
getRouteHintsBuilder(int index)
Optional route hints to reach the destination through private channels.
|
java.util.List<LightningApi.RouteHint.Builder> |
getRouteHintsBuilderList()
Optional route hints to reach the destination through private channels.
|
int |
getRouteHintsCount()
Optional route hints to reach the destination through private channels.
|
java.util.List<LightningApi.RouteHint> |
getRouteHintsList()
Optional route hints to reach the destination through private channels.
|
LightningApi.RouteHintOrBuilder |
getRouteHintsOrBuilder(int index)
Optional route hints to reach the destination through private channels.
|
java.util.List<? extends LightningApi.RouteHintOrBuilder> |
getRouteHintsOrBuilderList()
Optional route hints to reach the destination through private channels.
|
int |
getTimeoutSeconds()
An upper limit on the amount of time we should spend when attempting to
fulfill the payment.
|
double |
getTimePref()
The time preference for this payment.
|
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() |
RouterOuterClass.SendPaymentRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouterOuterClass.SendPaymentRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouterOuterClass.SendPaymentRequest.Builder |
mergeFrom(RouterOuterClass.SendPaymentRequest other) |
RouterOuterClass.SendPaymentRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouterOuterClass.SendPaymentRequest.Builder |
putAllDestCustomRecords(java.util.Map<java.lang.Long,com.google.protobuf.ByteString> values)
An optional field that can be used to pass an arbitrary set of TLV records
to a peer which understands the new records.
|
RouterOuterClass.SendPaymentRequest.Builder |
putDestCustomRecords(long key,
com.google.protobuf.ByteString value)
An optional field that can be used to pass an arbitrary set of TLV records
to a peer which understands the new records.
|
RouterOuterClass.SendPaymentRequest.Builder |
removeDestCustomRecords(long key)
An optional field that can be used to pass an arbitrary set of TLV records
to a peer which understands the new records.
|
RouterOuterClass.SendPaymentRequest.Builder |
removeRouteHints(int index)
Optional route hints to reach the destination through private channels.
|
RouterOuterClass.SendPaymentRequest.Builder |
setAllowSelfPayment(boolean value)
If set, circular payments to self are permitted.
|
RouterOuterClass.SendPaymentRequest.Builder |
setAmp(boolean value)
If set, an AMP-payment will be attempted.
|
RouterOuterClass.SendPaymentRequest.Builder |
setAmt(long value)
Number of satoshis to send.
|
RouterOuterClass.SendPaymentRequest.Builder |
setAmtMsat(long value)
Number of millisatoshis to send.
|
RouterOuterClass.SendPaymentRequest.Builder |
setCltvLimit(int value)
An optional maximum total time lock for the route.
|
RouterOuterClass.SendPaymentRequest.Builder |
setDest(com.google.protobuf.ByteString value)
The identity pubkey of the payment recipient
|
RouterOuterClass.SendPaymentRequest.Builder |
setDestFeatures(int index,
LightningApi.FeatureBit value)
Features assumed to be supported by the final node.
|
RouterOuterClass.SendPaymentRequest.Builder |
setDestFeaturesValue(int index,
int value)
Features assumed to be supported by the final node.
|
RouterOuterClass.SendPaymentRequest.Builder |
setFeeLimitMsat(long value)
The maximum number of millisatoshis that will be paid as a fee of the
payment.
|
RouterOuterClass.SendPaymentRequest.Builder |
setFeeLimitSat(long value)
The maximum number of satoshis that will be paid as a fee of the payment.
|
RouterOuterClass.SendPaymentRequest.Builder |
setFinalCltvDelta(int value)
The CLTV delta from the current height that should be used to set the
timelock for the final hop.
|
RouterOuterClass.SendPaymentRequest.Builder |
setLastHopPubkey(com.google.protobuf.ByteString value)
The pubkey of the last hop of the route.
|
RouterOuterClass.SendPaymentRequest.Builder |
setMaxParts(int value)
The maximum number of partial payments that may be use to complete the full
amount.
|
RouterOuterClass.SendPaymentRequest.Builder |
setMaxShardSizeMsat(long value)
The largest payment split that should be attempted when making a payment if
splitting is necessary.
|
RouterOuterClass.SendPaymentRequest.Builder |
setNoInflightUpdates(boolean value)
If set, only the final payment update is streamed back.
|
RouterOuterClass.SendPaymentRequest.Builder |
setOutgoingChanId(long value)
Deprecated.
routerrpc.SendPaymentRequest.outgoing_chan_id is deprecated.
See router.proto;l=234
|
RouterOuterClass.SendPaymentRequest.Builder |
setOutgoingChanIds(int index,
long value)
The channel ids of the channels are allowed for the first hop.
|
RouterOuterClass.SendPaymentRequest.Builder |
setPaymentAddr(com.google.protobuf.ByteString value)
An optional payment addr to be included within the last hop of the route.
|
RouterOuterClass.SendPaymentRequest.Builder |
setPaymentHash(com.google.protobuf.ByteString value)
The hash to use within the payment's HTLC
|
RouterOuterClass.SendPaymentRequest.Builder |
setPaymentRequest(java.lang.String value)
A bare-bones invoice for a payment within the Lightning Network.
|
RouterOuterClass.SendPaymentRequest.Builder |
setPaymentRequestBytes(com.google.protobuf.ByteString value)
A bare-bones invoice for a payment within the Lightning Network.
|
RouterOuterClass.SendPaymentRequest.Builder |
setRouteHints(int index,
LightningApi.RouteHint.Builder builderForValue)
Optional route hints to reach the destination through private channels.
|
RouterOuterClass.SendPaymentRequest.Builder |
setRouteHints(int index,
LightningApi.RouteHint value)
Optional route hints to reach the destination through private channels.
|
RouterOuterClass.SendPaymentRequest.Builder |
setTimeoutSeconds(int value)
An upper limit on the amount of time we should spend when attempting to
fulfill the payment.
|
RouterOuterClass.SendPaymentRequest.Builder |
setTimePref(double value)
The time preference for this payment.
|
RouterOuterClass.SendPaymentRequest.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, 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.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.SendPaymentRequest.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.SendPaymentRequest.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.SendPaymentRequest.Builder>
public RouterOuterClass.SendPaymentRequest.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<RouterOuterClass.SendPaymentRequest.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<RouterOuterClass.SendPaymentRequest.Builder>
public RouterOuterClass.SendPaymentRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RouterOuterClass.SendPaymentRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RouterOuterClass.SendPaymentRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RouterOuterClass.SendPaymentRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RouterOuterClass.SendPaymentRequest.Builder>
public RouterOuterClass.SendPaymentRequest.Builder mergeFrom(RouterOuterClass.SendPaymentRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.SendPaymentRequest.Builder>
public RouterOuterClass.SendPaymentRequest.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<RouterOuterClass.SendPaymentRequest.Builder>
java.io.IOException
public com.google.protobuf.ByteString getDest()
The identity pubkey of the payment recipient
bytes dest = 1;
getDest
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setDest(com.google.protobuf.ByteString value)
The identity pubkey of the payment recipient
bytes dest = 1;
value
- The dest to set.public RouterOuterClass.SendPaymentRequest.Builder clearDest()
The identity pubkey of the payment recipient
bytes dest = 1;
public long getAmt()
Number of satoshis to send. The fields amt and amt_msat are mutually exclusive.
int64 amt = 2;
getAmt
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setAmt(long value)
Number of satoshis to send. The fields amt and amt_msat are mutually exclusive.
int64 amt = 2;
value
- The amt to set.public RouterOuterClass.SendPaymentRequest.Builder clearAmt()
Number of satoshis to send. The fields amt and amt_msat are mutually exclusive.
int64 amt = 2;
public long getAmtMsat()
Number of millisatoshis to send. The fields amt and amt_msat are mutually exclusive.
int64 amt_msat = 12;
getAmtMsat
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setAmtMsat(long value)
Number of millisatoshis to send. The fields amt and amt_msat are mutually exclusive.
int64 amt_msat = 12;
value
- The amtMsat to set.public RouterOuterClass.SendPaymentRequest.Builder clearAmtMsat()
Number of millisatoshis to send. The fields amt and amt_msat are mutually exclusive.
int64 amt_msat = 12;
public com.google.protobuf.ByteString getPaymentHash()
The hash to use within the payment's HTLC
bytes payment_hash = 3;
getPaymentHash
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setPaymentHash(com.google.protobuf.ByteString value)
The hash to use within the payment's HTLC
bytes payment_hash = 3;
value
- The paymentHash to set.public RouterOuterClass.SendPaymentRequest.Builder clearPaymentHash()
The hash to use within the payment's HTLC
bytes payment_hash = 3;
public int getFinalCltvDelta()
The CLTV delta from the current height that should be used to set the timelock for the final hop.
int32 final_cltv_delta = 4;
getFinalCltvDelta
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setFinalCltvDelta(int value)
The CLTV delta from the current height that should be used to set the timelock for the final hop.
int32 final_cltv_delta = 4;
value
- The finalCltvDelta to set.public RouterOuterClass.SendPaymentRequest.Builder clearFinalCltvDelta()
The CLTV delta from the current height that should be used to set the timelock for the final hop.
int32 final_cltv_delta = 4;
public com.google.protobuf.ByteString getPaymentAddr()
An optional payment addr to be included within the last hop of the route.
bytes payment_addr = 20;
getPaymentAddr
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setPaymentAddr(com.google.protobuf.ByteString value)
An optional payment addr to be included within the last hop of the route.
bytes payment_addr = 20;
value
- The paymentAddr to set.public RouterOuterClass.SendPaymentRequest.Builder clearPaymentAddr()
An optional payment addr to be included within the last hop of the route.
bytes payment_addr = 20;
public java.lang.String getPaymentRequest()
A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient. The amount in the payment request may be zero. In that case it is required to set the amt field as well. If no payment request is specified, the following fields are required: dest, amt and payment_hash.
string payment_request = 5;
getPaymentRequest
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public com.google.protobuf.ByteString getPaymentRequestBytes()
A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient. The amount in the payment request may be zero. In that case it is required to set the amt field as well. If no payment request is specified, the following fields are required: dest, amt and payment_hash.
string payment_request = 5;
getPaymentRequestBytes
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setPaymentRequest(java.lang.String value)
A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient. The amount in the payment request may be zero. In that case it is required to set the amt field as well. If no payment request is specified, the following fields are required: dest, amt and payment_hash.
string payment_request = 5;
value
- The paymentRequest to set.public RouterOuterClass.SendPaymentRequest.Builder clearPaymentRequest()
A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient. The amount in the payment request may be zero. In that case it is required to set the amt field as well. If no payment request is specified, the following fields are required: dest, amt and payment_hash.
string payment_request = 5;
public RouterOuterClass.SendPaymentRequest.Builder setPaymentRequestBytes(com.google.protobuf.ByteString value)
A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient. The amount in the payment request may be zero. In that case it is required to set the amt field as well. If no payment request is specified, the following fields are required: dest, amt and payment_hash.
string payment_request = 5;
value
- The bytes for paymentRequest to set.public int getTimeoutSeconds()
An upper limit on the amount of time we should spend when attempting to fulfill the payment. This is expressed in seconds. If we cannot make a successful payment within this time frame, an error will be returned. This field must be non-zero.
int32 timeout_seconds = 6;
getTimeoutSeconds
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setTimeoutSeconds(int value)
An upper limit on the amount of time we should spend when attempting to fulfill the payment. This is expressed in seconds. If we cannot make a successful payment within this time frame, an error will be returned. This field must be non-zero.
int32 timeout_seconds = 6;
value
- The timeoutSeconds to set.public RouterOuterClass.SendPaymentRequest.Builder clearTimeoutSeconds()
An upper limit on the amount of time we should spend when attempting to fulfill the payment. This is expressed in seconds. If we cannot make a successful payment within this time frame, an error will be returned. This field must be non-zero.
int32 timeout_seconds = 6;
public long getFeeLimitSat()
The maximum number of satoshis that will be paid as a fee of the payment. If this field is left to the default value of 0, only zero-fee routes will be considered. This usually means single hop routes connecting directly to the destination. To send the payment without a fee limit, use max int here. The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
int64 fee_limit_sat = 7;
getFeeLimitSat
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setFeeLimitSat(long value)
The maximum number of satoshis that will be paid as a fee of the payment. If this field is left to the default value of 0, only zero-fee routes will be considered. This usually means single hop routes connecting directly to the destination. To send the payment without a fee limit, use max int here. The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
int64 fee_limit_sat = 7;
value
- The feeLimitSat to set.public RouterOuterClass.SendPaymentRequest.Builder clearFeeLimitSat()
The maximum number of satoshis that will be paid as a fee of the payment. If this field is left to the default value of 0, only zero-fee routes will be considered. This usually means single hop routes connecting directly to the destination. To send the payment without a fee limit, use max int here. The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
int64 fee_limit_sat = 7;
public long getFeeLimitMsat()
The maximum number of millisatoshis that will be paid as a fee of the payment. If this field is left to the default value of 0, only zero-fee routes will be considered. This usually means single hop routes connecting directly to the destination. To send the payment without a fee limit, use max int here. The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
int64 fee_limit_msat = 13;
getFeeLimitMsat
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setFeeLimitMsat(long value)
The maximum number of millisatoshis that will be paid as a fee of the payment. If this field is left to the default value of 0, only zero-fee routes will be considered. This usually means single hop routes connecting directly to the destination. To send the payment without a fee limit, use max int here. The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
int64 fee_limit_msat = 13;
value
- The feeLimitMsat to set.public RouterOuterClass.SendPaymentRequest.Builder clearFeeLimitMsat()
The maximum number of millisatoshis that will be paid as a fee of the payment. If this field is left to the default value of 0, only zero-fee routes will be considered. This usually means single hop routes connecting directly to the destination. To send the payment without a fee limit, use max int here. The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
int64 fee_limit_msat = 13;
@Deprecated public long getOutgoingChanId()
Deprecated, use outgoing_chan_ids. The channel id of the channel that must be taken to the first hop. If zero, any channel may be used (unless outgoing_chan_ids are set).
uint64 outgoing_chan_id = 8 [deprecated = true, jstype = JS_STRING];
getOutgoingChanId
in interface RouterOuterClass.SendPaymentRequestOrBuilder
@Deprecated public RouterOuterClass.SendPaymentRequest.Builder setOutgoingChanId(long value)
Deprecated, use outgoing_chan_ids. The channel id of the channel that must be taken to the first hop. If zero, any channel may be used (unless outgoing_chan_ids are set).
uint64 outgoing_chan_id = 8 [deprecated = true, jstype = JS_STRING];
value
- The outgoingChanId to set.@Deprecated public RouterOuterClass.SendPaymentRequest.Builder clearOutgoingChanId()
Deprecated, use outgoing_chan_ids. The channel id of the channel that must be taken to the first hop. If zero, any channel may be used (unless outgoing_chan_ids are set).
uint64 outgoing_chan_id = 8 [deprecated = true, jstype = JS_STRING];
public java.util.List<java.lang.Long> getOutgoingChanIdsList()
The channel ids of the channels are allowed for the first hop. If empty, any channel may be used.
repeated uint64 outgoing_chan_ids = 19;
getOutgoingChanIdsList
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public int getOutgoingChanIdsCount()
The channel ids of the channels are allowed for the first hop. If empty, any channel may be used.
repeated uint64 outgoing_chan_ids = 19;
getOutgoingChanIdsCount
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public long getOutgoingChanIds(int index)
The channel ids of the channels are allowed for the first hop. If empty, any channel may be used.
repeated uint64 outgoing_chan_ids = 19;
getOutgoingChanIds
in interface RouterOuterClass.SendPaymentRequestOrBuilder
index
- The index of the element to return.public RouterOuterClass.SendPaymentRequest.Builder setOutgoingChanIds(int index, long value)
The channel ids of the channels are allowed for the first hop. If empty, any channel may be used.
repeated uint64 outgoing_chan_ids = 19;
index
- The index to set the value at.value
- The outgoingChanIds to set.public RouterOuterClass.SendPaymentRequest.Builder addOutgoingChanIds(long value)
The channel ids of the channels are allowed for the first hop. If empty, any channel may be used.
repeated uint64 outgoing_chan_ids = 19;
value
- The outgoingChanIds to add.public RouterOuterClass.SendPaymentRequest.Builder addAllOutgoingChanIds(java.lang.Iterable<? extends java.lang.Long> values)
The channel ids of the channels are allowed for the first hop. If empty, any channel may be used.
repeated uint64 outgoing_chan_ids = 19;
values
- The outgoingChanIds to add.public RouterOuterClass.SendPaymentRequest.Builder clearOutgoingChanIds()
The channel ids of the channels are allowed for the first hop. If empty, any channel may be used.
repeated uint64 outgoing_chan_ids = 19;
public com.google.protobuf.ByteString getLastHopPubkey()
The pubkey of the last hop of the route. If empty, any hop may be used.
bytes last_hop_pubkey = 14;
getLastHopPubkey
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setLastHopPubkey(com.google.protobuf.ByteString value)
The pubkey of the last hop of the route. If empty, any hop may be used.
bytes last_hop_pubkey = 14;
value
- The lastHopPubkey to set.public RouterOuterClass.SendPaymentRequest.Builder clearLastHopPubkey()
The pubkey of the last hop of the route. If empty, any hop may be used.
bytes last_hop_pubkey = 14;
public int getCltvLimit()
An optional maximum total time lock for the route. This should not exceed lnd's `--max-cltv-expiry` setting. If zero, then the value of `--max-cltv-expiry` is enforced.
int32 cltv_limit = 9;
getCltvLimit
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setCltvLimit(int value)
An optional maximum total time lock for the route. This should not exceed lnd's `--max-cltv-expiry` setting. If zero, then the value of `--max-cltv-expiry` is enforced.
int32 cltv_limit = 9;
value
- The cltvLimit to set.public RouterOuterClass.SendPaymentRequest.Builder clearCltvLimit()
An optional maximum total time lock for the route. This should not exceed lnd's `--max-cltv-expiry` setting. If zero, then the value of `--max-cltv-expiry` is enforced.
int32 cltv_limit = 9;
public java.util.List<LightningApi.RouteHint> getRouteHintsList()
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
getRouteHintsList
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public int getRouteHintsCount()
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
getRouteHintsCount
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public LightningApi.RouteHint getRouteHints(int index)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
getRouteHints
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setRouteHints(int index, LightningApi.RouteHint value)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public RouterOuterClass.SendPaymentRequest.Builder setRouteHints(int index, LightningApi.RouteHint.Builder builderForValue)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public RouterOuterClass.SendPaymentRequest.Builder addRouteHints(LightningApi.RouteHint value)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public RouterOuterClass.SendPaymentRequest.Builder addRouteHints(int index, LightningApi.RouteHint value)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public RouterOuterClass.SendPaymentRequest.Builder addRouteHints(LightningApi.RouteHint.Builder builderForValue)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public RouterOuterClass.SendPaymentRequest.Builder addRouteHints(int index, LightningApi.RouteHint.Builder builderForValue)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public RouterOuterClass.SendPaymentRequest.Builder addAllRouteHints(java.lang.Iterable<? extends LightningApi.RouteHint> values)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public RouterOuterClass.SendPaymentRequest.Builder clearRouteHints()
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public RouterOuterClass.SendPaymentRequest.Builder removeRouteHints(int index)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public LightningApi.RouteHint.Builder getRouteHintsBuilder(int index)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public LightningApi.RouteHintOrBuilder getRouteHintsOrBuilder(int index)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
getRouteHintsOrBuilder
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public java.util.List<? extends LightningApi.RouteHintOrBuilder> getRouteHintsOrBuilderList()
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
getRouteHintsOrBuilderList
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public LightningApi.RouteHint.Builder addRouteHintsBuilder()
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public LightningApi.RouteHint.Builder addRouteHintsBuilder(int index)
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public java.util.List<LightningApi.RouteHint.Builder> getRouteHintsBuilderList()
Optional route hints to reach the destination through private channels.
repeated .lnrpc.RouteHint route_hints = 10;
public int getDestCustomRecordsCount()
RouterOuterClass.SendPaymentRequestOrBuilder
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
map<uint64, bytes> dest_custom_records = 11;
getDestCustomRecordsCount
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public boolean containsDestCustomRecords(long key)
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
map<uint64, bytes> dest_custom_records = 11;
containsDestCustomRecords
in interface RouterOuterClass.SendPaymentRequestOrBuilder
@Deprecated public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getDestCustomRecords()
getDestCustomRecordsMap()
instead.getDestCustomRecords
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getDestCustomRecordsMap()
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
map<uint64, bytes> dest_custom_records = 11;
getDestCustomRecordsMap
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public com.google.protobuf.ByteString getDestCustomRecordsOrDefault(long key, com.google.protobuf.ByteString defaultValue)
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
map<uint64, bytes> dest_custom_records = 11;
getDestCustomRecordsOrDefault
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public com.google.protobuf.ByteString getDestCustomRecordsOrThrow(long key)
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
map<uint64, bytes> dest_custom_records = 11;
getDestCustomRecordsOrThrow
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder clearDestCustomRecords()
public RouterOuterClass.SendPaymentRequest.Builder removeDestCustomRecords(long key)
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
map<uint64, bytes> dest_custom_records = 11;
@Deprecated public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getMutableDestCustomRecords()
public RouterOuterClass.SendPaymentRequest.Builder putDestCustomRecords(long key, com.google.protobuf.ByteString value)
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
map<uint64, bytes> dest_custom_records = 11;
public RouterOuterClass.SendPaymentRequest.Builder putAllDestCustomRecords(java.util.Map<java.lang.Long,com.google.protobuf.ByteString> values)
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
map<uint64, bytes> dest_custom_records = 11;
public boolean getAllowSelfPayment()
If set, circular payments to self are permitted.
bool allow_self_payment = 15;
getAllowSelfPayment
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setAllowSelfPayment(boolean value)
If set, circular payments to self are permitted.
bool allow_self_payment = 15;
value
- The allowSelfPayment to set.public RouterOuterClass.SendPaymentRequest.Builder clearAllowSelfPayment()
If set, circular payments to self are permitted.
bool allow_self_payment = 15;
public java.util.List<LightningApi.FeatureBit> getDestFeaturesList()
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
getDestFeaturesList
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public int getDestFeaturesCount()
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
getDestFeaturesCount
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public LightningApi.FeatureBit getDestFeatures(int index)
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
getDestFeatures
in interface RouterOuterClass.SendPaymentRequestOrBuilder
index
- The index of the element to return.public RouterOuterClass.SendPaymentRequest.Builder setDestFeatures(int index, LightningApi.FeatureBit value)
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
index
- The index to set the value at.value
- The destFeatures to set.public RouterOuterClass.SendPaymentRequest.Builder addDestFeatures(LightningApi.FeatureBit value)
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
value
- The destFeatures to add.public RouterOuterClass.SendPaymentRequest.Builder addAllDestFeatures(java.lang.Iterable<? extends LightningApi.FeatureBit> values)
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
values
- The destFeatures to add.public RouterOuterClass.SendPaymentRequest.Builder clearDestFeatures()
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
public java.util.List<java.lang.Integer> getDestFeaturesValueList()
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
getDestFeaturesValueList
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public int getDestFeaturesValue(int index)
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
getDestFeaturesValue
in interface RouterOuterClass.SendPaymentRequestOrBuilder
index
- The index of the value to return.public RouterOuterClass.SendPaymentRequest.Builder setDestFeaturesValue(int index, int value)
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
index
- The index to set the value at.value
- The enum numeric value on the wire for destFeatures to set.public RouterOuterClass.SendPaymentRequest.Builder addDestFeaturesValue(int value)
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
value
- The enum numeric value on the wire for destFeatures to add.public RouterOuterClass.SendPaymentRequest.Builder addAllDestFeaturesValue(java.lang.Iterable<java.lang.Integer> values)
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
repeated .lnrpc.FeatureBit dest_features = 16;
values
- The enum numeric values on the wire for destFeatures to add.public int getMaxParts()
The maximum number of partial payments that may be use to complete the full amount.
uint32 max_parts = 17;
getMaxParts
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setMaxParts(int value)
The maximum number of partial payments that may be use to complete the full amount.
uint32 max_parts = 17;
value
- The maxParts to set.public RouterOuterClass.SendPaymentRequest.Builder clearMaxParts()
The maximum number of partial payments that may be use to complete the full amount.
uint32 max_parts = 17;
public boolean getNoInflightUpdates()
If set, only the final payment update is streamed back. Intermediate updates that show which htlcs are still in flight are suppressed.
bool no_inflight_updates = 18;
getNoInflightUpdates
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setNoInflightUpdates(boolean value)
If set, only the final payment update is streamed back. Intermediate updates that show which htlcs are still in flight are suppressed.
bool no_inflight_updates = 18;
value
- The noInflightUpdates to set.public RouterOuterClass.SendPaymentRequest.Builder clearNoInflightUpdates()
If set, only the final payment update is streamed back. Intermediate updates that show which htlcs are still in flight are suppressed.
bool no_inflight_updates = 18;
public long getMaxShardSizeMsat()
The largest payment split that should be attempted when making a payment if splitting is necessary. Setting this value will effectively cause lnd to split more aggressively, vs only when it thinks it needs to. Note that this value is in milli-satoshis.
uint64 max_shard_size_msat = 21;
getMaxShardSizeMsat
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setMaxShardSizeMsat(long value)
The largest payment split that should be attempted when making a payment if splitting is necessary. Setting this value will effectively cause lnd to split more aggressively, vs only when it thinks it needs to. Note that this value is in milli-satoshis.
uint64 max_shard_size_msat = 21;
value
- The maxShardSizeMsat to set.public RouterOuterClass.SendPaymentRequest.Builder clearMaxShardSizeMsat()
The largest payment split that should be attempted when making a payment if splitting is necessary. Setting this value will effectively cause lnd to split more aggressively, vs only when it thinks it needs to. Note that this value is in milli-satoshis.
uint64 max_shard_size_msat = 21;
public boolean getAmp()
If set, an AMP-payment will be attempted.
bool amp = 22;
getAmp
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setAmp(boolean value)
If set, an AMP-payment will be attempted.
bool amp = 22;
value
- The amp to set.public RouterOuterClass.SendPaymentRequest.Builder clearAmp()
If set, an AMP-payment will be attempted.
bool amp = 22;
public double getTimePref()
The time preference for this payment. Set to -1 to optimize for fees only, to 1 to optimize for reliability only or a value inbetween for a mix.
double time_pref = 23;
getTimePref
in interface RouterOuterClass.SendPaymentRequestOrBuilder
public RouterOuterClass.SendPaymentRequest.Builder setTimePref(double value)
The time preference for this payment. Set to -1 to optimize for fees only, to 1 to optimize for reliability only or a value inbetween for a mix.
double time_pref = 23;
value
- The timePref to set.public RouterOuterClass.SendPaymentRequest.Builder clearTimePref()
The time preference for this payment. Set to -1 to optimize for fees only, to 1 to optimize for reliability only or a value inbetween for a mix.
double time_pref = 23;
public final RouterOuterClass.SendPaymentRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.SendPaymentRequest.Builder>
public final RouterOuterClass.SendPaymentRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.SendPaymentRequest.Builder>