public static final class LightningApi.PayReq.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PayReq.Builder> implements LightningApi.PayReqOrBuilder
lnrpc.PayReq| Modifier and Type | Method and Description |
|---|---|
LightningApi.PayReq.Builder |
addAllRouteHints(java.lang.Iterable<? extends LightningApi.RouteHint> values)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.PayReq.Builder |
addRouteHints(int index,
LightningApi.RouteHint.Builder builderForValue)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.PayReq.Builder |
addRouteHints(int index,
LightningApi.RouteHint value)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.PayReq.Builder |
addRouteHints(LightningApi.RouteHint.Builder builderForValue)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.PayReq.Builder |
addRouteHints(LightningApi.RouteHint value)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.RouteHint.Builder |
addRouteHintsBuilder()
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.RouteHint.Builder |
addRouteHintsBuilder(int index)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.PayReq |
build() |
LightningApi.PayReq |
buildPartial() |
LightningApi.PayReq.Builder |
clear() |
LightningApi.PayReq.Builder |
clearCltvExpiry()
int64 cltv_expiry = 9; |
LightningApi.PayReq.Builder |
clearDescription()
string description = 6; |
LightningApi.PayReq.Builder |
clearDescriptionHash()
string description_hash = 7; |
LightningApi.PayReq.Builder |
clearDestination()
string destination = 1; |
LightningApi.PayReq.Builder |
clearExpiry()
int64 expiry = 5; |
LightningApi.PayReq.Builder |
clearFallbackAddr()
string fallback_addr = 8; |
LightningApi.PayReq.Builder |
clearFeatures() |
LightningApi.PayReq.Builder |
clearNumMsat()
int64 num_msat = 12; |
LightningApi.PayReq.Builder |
clearNumSatoshis()
int64 num_satoshis = 3; |
LightningApi.PayReq.Builder |
clearPaymentAddr()
bytes payment_addr = 11; |
LightningApi.PayReq.Builder |
clearPaymentHash()
string payment_hash = 2; |
LightningApi.PayReq.Builder |
clearRouteHints()
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.PayReq.Builder |
clearTimestamp()
int64 timestamp = 4; |
boolean |
containsFeatures(int key)
map<uint32, .lnrpc.Feature> features = 13; |
long |
getCltvExpiry()
int64 cltv_expiry = 9; |
LightningApi.PayReq |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
string description = 6; |
com.google.protobuf.ByteString |
getDescriptionBytes()
string description = 6; |
java.lang.String |
getDescriptionHash()
string description_hash = 7; |
com.google.protobuf.ByteString |
getDescriptionHashBytes()
string description_hash = 7; |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getDestination()
string destination = 1; |
com.google.protobuf.ByteString |
getDestinationBytes()
string destination = 1; |
long |
getExpiry()
int64 expiry = 5; |
java.lang.String |
getFallbackAddr()
string fallback_addr = 8; |
com.google.protobuf.ByteString |
getFallbackAddrBytes()
string fallback_addr = 8; |
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getFeatures()
Deprecated.
|
int |
getFeaturesCount()
map<uint32, .lnrpc.Feature> features = 13; |
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getFeaturesMap()
map<uint32, .lnrpc.Feature> features = 13; |
LightningApi.Feature |
getFeaturesOrDefault(int key,
LightningApi.Feature defaultValue)
map<uint32, .lnrpc.Feature> features = 13; |
LightningApi.Feature |
getFeaturesOrThrow(int key)
map<uint32, .lnrpc.Feature> features = 13; |
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getMutableFeatures()
Deprecated.
|
long |
getNumMsat()
int64 num_msat = 12; |
long |
getNumSatoshis()
int64 num_satoshis = 3; |
com.google.protobuf.ByteString |
getPaymentAddr()
bytes payment_addr = 11; |
java.lang.String |
getPaymentHash()
string payment_hash = 2; |
com.google.protobuf.ByteString |
getPaymentHashBytes()
string payment_hash = 2; |
LightningApi.RouteHint |
getRouteHints(int index)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.RouteHint.Builder |
getRouteHintsBuilder(int index)
repeated .lnrpc.RouteHint route_hints = 10; |
java.util.List<LightningApi.RouteHint.Builder> |
getRouteHintsBuilderList()
repeated .lnrpc.RouteHint route_hints = 10; |
int |
getRouteHintsCount()
repeated .lnrpc.RouteHint route_hints = 10; |
java.util.List<LightningApi.RouteHint> |
getRouteHintsList()
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.RouteHintOrBuilder |
getRouteHintsOrBuilder(int index)
repeated .lnrpc.RouteHint route_hints = 10; |
java.util.List<? extends LightningApi.RouteHintOrBuilder> |
getRouteHintsOrBuilderList()
repeated .lnrpc.RouteHint route_hints = 10; |
long |
getTimestamp()
int64 timestamp = 4; |
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() |
LightningApi.PayReq.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.PayReq.Builder |
mergeFrom(LightningApi.PayReq other) |
LightningApi.PayReq.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.PayReq.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.PayReq.Builder |
putAllFeatures(java.util.Map<java.lang.Integer,LightningApi.Feature> values)
map<uint32, .lnrpc.Feature> features = 13; |
LightningApi.PayReq.Builder |
putFeatures(int key,
LightningApi.Feature value)
map<uint32, .lnrpc.Feature> features = 13; |
LightningApi.PayReq.Builder |
removeFeatures(int key)
map<uint32, .lnrpc.Feature> features = 13; |
LightningApi.PayReq.Builder |
removeRouteHints(int index)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.PayReq.Builder |
setCltvExpiry(long value)
int64 cltv_expiry = 9; |
LightningApi.PayReq.Builder |
setDescription(java.lang.String value)
string description = 6; |
LightningApi.PayReq.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
string description = 6; |
LightningApi.PayReq.Builder |
setDescriptionHash(java.lang.String value)
string description_hash = 7; |
LightningApi.PayReq.Builder |
setDescriptionHashBytes(com.google.protobuf.ByteString value)
string description_hash = 7; |
LightningApi.PayReq.Builder |
setDestination(java.lang.String value)
string destination = 1; |
LightningApi.PayReq.Builder |
setDestinationBytes(com.google.protobuf.ByteString value)
string destination = 1; |
LightningApi.PayReq.Builder |
setExpiry(long value)
int64 expiry = 5; |
LightningApi.PayReq.Builder |
setFallbackAddr(java.lang.String value)
string fallback_addr = 8; |
LightningApi.PayReq.Builder |
setFallbackAddrBytes(com.google.protobuf.ByteString value)
string fallback_addr = 8; |
LightningApi.PayReq.Builder |
setNumMsat(long value)
int64 num_msat = 12; |
LightningApi.PayReq.Builder |
setNumSatoshis(long value)
int64 num_satoshis = 3; |
LightningApi.PayReq.Builder |
setPaymentAddr(com.google.protobuf.ByteString value)
bytes payment_addr = 11; |
LightningApi.PayReq.Builder |
setPaymentHash(java.lang.String value)
string payment_hash = 2; |
LightningApi.PayReq.Builder |
setPaymentHashBytes(com.google.protobuf.ByteString value)
string payment_hash = 2; |
LightningApi.PayReq.Builder |
setRouteHints(int index,
LightningApi.RouteHint.Builder builderForValue)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.PayReq.Builder |
setRouteHints(int index,
LightningApi.RouteHint value)
repeated .lnrpc.RouteHint route_hints = 10; |
LightningApi.PayReq.Builder |
setTimestamp(long value)
int64 timestamp = 4; |
LightningApi.PayReq.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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PayReq.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PayReq.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PayReq.Builder>public LightningApi.PayReq.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PayReq.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PayReq.Builder>public LightningApi.PayReq getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LightningApi.PayReq build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.PayReq buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.PayReq.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.PayReq.Builder>public LightningApi.PayReq.Builder mergeFrom(LightningApi.PayReq other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PayReq.Builder>public LightningApi.PayReq.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.PayReq.Builder>java.io.IOExceptionpublic java.lang.String getDestination()
string destination = 1;getDestination in interface LightningApi.PayReqOrBuilderpublic com.google.protobuf.ByteString getDestinationBytes()
string destination = 1;getDestinationBytes in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setDestination(java.lang.String value)
string destination = 1;value - The destination to set.public LightningApi.PayReq.Builder clearDestination()
string destination = 1;public LightningApi.PayReq.Builder setDestinationBytes(com.google.protobuf.ByteString value)
string destination = 1;value - The bytes for destination to set.public java.lang.String getPaymentHash()
string payment_hash = 2;getPaymentHash in interface LightningApi.PayReqOrBuilderpublic com.google.protobuf.ByteString getPaymentHashBytes()
string payment_hash = 2;getPaymentHashBytes in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setPaymentHash(java.lang.String value)
string payment_hash = 2;value - The paymentHash to set.public LightningApi.PayReq.Builder clearPaymentHash()
string payment_hash = 2;public LightningApi.PayReq.Builder setPaymentHashBytes(com.google.protobuf.ByteString value)
string payment_hash = 2;value - The bytes for paymentHash to set.public long getNumSatoshis()
int64 num_satoshis = 3;getNumSatoshis in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setNumSatoshis(long value)
int64 num_satoshis = 3;value - The numSatoshis to set.public LightningApi.PayReq.Builder clearNumSatoshis()
int64 num_satoshis = 3;public long getTimestamp()
int64 timestamp = 4;getTimestamp in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setTimestamp(long value)
int64 timestamp = 4;value - The timestamp to set.public LightningApi.PayReq.Builder clearTimestamp()
int64 timestamp = 4;public long getExpiry()
int64 expiry = 5;getExpiry in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setExpiry(long value)
int64 expiry = 5;value - The expiry to set.public LightningApi.PayReq.Builder clearExpiry()
int64 expiry = 5;public java.lang.String getDescription()
string description = 6;getDescription in interface LightningApi.PayReqOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
string description = 6;getDescriptionBytes in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setDescription(java.lang.String value)
string description = 6;value - The description to set.public LightningApi.PayReq.Builder clearDescription()
string description = 6;public LightningApi.PayReq.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
string description = 6;value - The bytes for description to set.public java.lang.String getDescriptionHash()
string description_hash = 7;getDescriptionHash in interface LightningApi.PayReqOrBuilderpublic com.google.protobuf.ByteString getDescriptionHashBytes()
string description_hash = 7;getDescriptionHashBytes in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setDescriptionHash(java.lang.String value)
string description_hash = 7;value - The descriptionHash to set.public LightningApi.PayReq.Builder clearDescriptionHash()
string description_hash = 7;public LightningApi.PayReq.Builder setDescriptionHashBytes(com.google.protobuf.ByteString value)
string description_hash = 7;value - The bytes for descriptionHash to set.public java.lang.String getFallbackAddr()
string fallback_addr = 8;getFallbackAddr in interface LightningApi.PayReqOrBuilderpublic com.google.protobuf.ByteString getFallbackAddrBytes()
string fallback_addr = 8;getFallbackAddrBytes in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setFallbackAddr(java.lang.String value)
string fallback_addr = 8;value - The fallbackAddr to set.public LightningApi.PayReq.Builder clearFallbackAddr()
string fallback_addr = 8;public LightningApi.PayReq.Builder setFallbackAddrBytes(com.google.protobuf.ByteString value)
string fallback_addr = 8;value - The bytes for fallbackAddr to set.public long getCltvExpiry()
int64 cltv_expiry = 9;getCltvExpiry in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setCltvExpiry(long value)
int64 cltv_expiry = 9;value - The cltvExpiry to set.public LightningApi.PayReq.Builder clearCltvExpiry()
int64 cltv_expiry = 9;public java.util.List<LightningApi.RouteHint> getRouteHintsList()
repeated .lnrpc.RouteHint route_hints = 10;getRouteHintsList in interface LightningApi.PayReqOrBuilderpublic int getRouteHintsCount()
repeated .lnrpc.RouteHint route_hints = 10;getRouteHintsCount in interface LightningApi.PayReqOrBuilderpublic LightningApi.RouteHint getRouteHints(int index)
repeated .lnrpc.RouteHint route_hints = 10;getRouteHints in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setRouteHints(int index, LightningApi.RouteHint value)
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.PayReq.Builder setRouteHints(int index, LightningApi.RouteHint.Builder builderForValue)
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.PayReq.Builder addRouteHints(LightningApi.RouteHint value)
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.PayReq.Builder addRouteHints(int index, LightningApi.RouteHint value)
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.PayReq.Builder addRouteHints(LightningApi.RouteHint.Builder builderForValue)
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.PayReq.Builder addRouteHints(int index, LightningApi.RouteHint.Builder builderForValue)
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.PayReq.Builder addAllRouteHints(java.lang.Iterable<? extends LightningApi.RouteHint> values)
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.PayReq.Builder clearRouteHints()
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.PayReq.Builder removeRouteHints(int index)
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.RouteHint.Builder getRouteHintsBuilder(int index)
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.RouteHintOrBuilder getRouteHintsOrBuilder(int index)
repeated .lnrpc.RouteHint route_hints = 10;getRouteHintsOrBuilder in interface LightningApi.PayReqOrBuilderpublic java.util.List<? extends LightningApi.RouteHintOrBuilder> getRouteHintsOrBuilderList()
repeated .lnrpc.RouteHint route_hints = 10;getRouteHintsOrBuilderList in interface LightningApi.PayReqOrBuilderpublic LightningApi.RouteHint.Builder addRouteHintsBuilder()
repeated .lnrpc.RouteHint route_hints = 10;public LightningApi.RouteHint.Builder addRouteHintsBuilder(int index)
repeated .lnrpc.RouteHint route_hints = 10;public java.util.List<LightningApi.RouteHint.Builder> getRouteHintsBuilderList()
repeated .lnrpc.RouteHint route_hints = 10;public com.google.protobuf.ByteString getPaymentAddr()
bytes payment_addr = 11;getPaymentAddr in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setPaymentAddr(com.google.protobuf.ByteString value)
bytes payment_addr = 11;value - The paymentAddr to set.public LightningApi.PayReq.Builder clearPaymentAddr()
bytes payment_addr = 11;public long getNumMsat()
int64 num_msat = 12;getNumMsat in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder setNumMsat(long value)
int64 num_msat = 12;value - The numMsat to set.public LightningApi.PayReq.Builder clearNumMsat()
int64 num_msat = 12;public int getFeaturesCount()
LightningApi.PayReqOrBuildermap<uint32, .lnrpc.Feature> features = 13;getFeaturesCount in interface LightningApi.PayReqOrBuilderpublic boolean containsFeatures(int key)
map<uint32, .lnrpc.Feature> features = 13;containsFeatures in interface LightningApi.PayReqOrBuilder@Deprecated public java.util.Map<java.lang.Integer,LightningApi.Feature> getFeatures()
getFeaturesMap() instead.getFeatures in interface LightningApi.PayReqOrBuilderpublic java.util.Map<java.lang.Integer,LightningApi.Feature> getFeaturesMap()
map<uint32, .lnrpc.Feature> features = 13;getFeaturesMap in interface LightningApi.PayReqOrBuilderpublic LightningApi.Feature getFeaturesOrDefault(int key, LightningApi.Feature defaultValue)
map<uint32, .lnrpc.Feature> features = 13;getFeaturesOrDefault in interface LightningApi.PayReqOrBuilderpublic LightningApi.Feature getFeaturesOrThrow(int key)
map<uint32, .lnrpc.Feature> features = 13;getFeaturesOrThrow in interface LightningApi.PayReqOrBuilderpublic LightningApi.PayReq.Builder clearFeatures()
public LightningApi.PayReq.Builder removeFeatures(int key)
map<uint32, .lnrpc.Feature> features = 13;@Deprecated public java.util.Map<java.lang.Integer,LightningApi.Feature> getMutableFeatures()
public LightningApi.PayReq.Builder putFeatures(int key, LightningApi.Feature value)
map<uint32, .lnrpc.Feature> features = 13;public LightningApi.PayReq.Builder putAllFeatures(java.util.Map<java.lang.Integer,LightningApi.Feature> values)
map<uint32, .lnrpc.Feature> features = 13;public final LightningApi.PayReq.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PayReq.Builder>public final LightningApi.PayReq.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PayReq.Builder>