public static final class InvoicesOuterClass.AddHoldInvoiceRequest extends com.google.protobuf.GeneratedMessageV3 implements InvoicesOuterClass.AddHoldInvoiceRequestOrBuilder
invoicesrpc.AddHoldInvoiceRequest| Modifier and Type | Class and Description |
|---|---|
static class |
InvoicesOuterClass.AddHoldInvoiceRequest.Builder
Protobuf type
invoicesrpc.AddHoldInvoiceRequest |
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 |
CLTV_EXPIRY_FIELD_NUMBER |
static int |
DESCRIPTION_HASH_FIELD_NUMBER |
static int |
EXPIRY_FIELD_NUMBER |
static int |
FALLBACK_ADDR_FIELD_NUMBER |
static int |
HASH_FIELD_NUMBER |
static int |
MEMO_FIELD_NUMBER |
static int |
PRIVATE_FIELD_NUMBER |
static int |
ROUTE_HINTS_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
static int |
VALUE_MSAT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getCltvExpiry()
Delta to use for the time-lock of the CLTV extended to the final hop.
|
static InvoicesOuterClass.AddHoldInvoiceRequest |
getDefaultInstance() |
InvoicesOuterClass.AddHoldInvoiceRequest |
getDefaultInstanceForType() |
com.google.protobuf.ByteString |
getDescriptionHash()
Hash (SHA-256) of a description of the payment.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getExpiry()
Payment request expiry time in seconds.
|
java.lang.String |
getFallbackAddr()
Fallback on-chain address.
|
com.google.protobuf.ByteString |
getFallbackAddrBytes()
Fallback on-chain address.
|
com.google.protobuf.ByteString |
getHash()
The hash of the preimage
|
java.lang.String |
getMemo()
An optional memo to attach along with the invoice.
|
com.google.protobuf.ByteString |
getMemoBytes()
An optional memo to attach along with the invoice.
|
com.google.protobuf.Parser<InvoicesOuterClass.AddHoldInvoiceRequest> |
getParserForType() |
boolean |
getPrivate()
Whether this invoice should include routing hints for private channels.
|
LightningApi.RouteHint |
getRouteHints(int index)
Route hints that can each be individually used to assist in reaching the
invoice's destination.
|
int |
getRouteHintsCount()
Route hints that can each be individually used to assist in reaching the
invoice's destination.
|
java.util.List<LightningApi.RouteHint> |
getRouteHintsList()
Route hints that can each be individually used to assist in reaching the
invoice's destination.
|
LightningApi.RouteHintOrBuilder |
getRouteHintsOrBuilder(int index)
Route hints that can each be individually used to assist in reaching the
invoice's destination.
|
java.util.List<? extends LightningApi.RouteHintOrBuilder> |
getRouteHintsOrBuilderList()
Route hints that can each be individually used to assist in reaching the
invoice's destination.
|
int |
getSerializedSize() |
long |
getValue()
The value of this invoice in satoshis
The fields value and value_msat are mutually exclusive.
|
long |
getValueMsat()
The value of this invoice in millisatoshis
The fields value and value_msat are mutually exclusive.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static InvoicesOuterClass.AddHoldInvoiceRequest.Builder |
newBuilder() |
static InvoicesOuterClass.AddHoldInvoiceRequest.Builder |
newBuilder(InvoicesOuterClass.AddHoldInvoiceRequest prototype) |
InvoicesOuterClass.AddHoldInvoiceRequest.Builder |
newBuilderForType() |
protected InvoicesOuterClass.AddHoldInvoiceRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseDelimitedFrom(java.io.InputStream input) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(byte[] data) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(java.nio.ByteBuffer data) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(com.google.protobuf.ByteString data) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(java.io.InputStream input) |
static InvoicesOuterClass.AddHoldInvoiceRequest |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<InvoicesOuterClass.AddHoldInvoiceRequest> |
parser() |
InvoicesOuterClass.AddHoldInvoiceRequest.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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MEMO_FIELD_NUMBER
public static final int HASH_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
public static final int VALUE_MSAT_FIELD_NUMBER
public static final int DESCRIPTION_HASH_FIELD_NUMBER
public static final int EXPIRY_FIELD_NUMBER
public static final int FALLBACK_ADDR_FIELD_NUMBER
public static final int CLTV_EXPIRY_FIELD_NUMBER
public static final int ROUTE_HINTS_FIELD_NUMBER
public static final int PRIVATE_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getMemo()
An optional memo to attach along with the invoice. Used for record keeping purposes for the invoice's creator, and will also be set in the description field of the encoded payment request if the description_hash field is not being used.
string memo = 1;getMemo in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic com.google.protobuf.ByteString getMemoBytes()
An optional memo to attach along with the invoice. Used for record keeping purposes for the invoice's creator, and will also be set in the description field of the encoded payment request if the description_hash field is not being used.
string memo = 1;getMemoBytes in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic com.google.protobuf.ByteString getHash()
The hash of the preimage
bytes hash = 2;getHash in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic long getValue()
The value of this invoice in satoshis The fields value and value_msat are mutually exclusive.
int64 value = 3;getValue in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic long getValueMsat()
The value of this invoice in millisatoshis The fields value and value_msat are mutually exclusive.
int64 value_msat = 10;getValueMsat in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic com.google.protobuf.ByteString getDescriptionHash()
Hash (SHA-256) of a description of the payment. Used if the description of payment (memo) is too long to naturally fit within the description field of an encoded payment request.
bytes description_hash = 4;getDescriptionHash in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic long getExpiry()
Payment request expiry time in seconds. Default is 86400 (24 hours).
int64 expiry = 5;getExpiry in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic java.lang.String getFallbackAddr()
Fallback on-chain address.
string fallback_addr = 6;getFallbackAddr in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic com.google.protobuf.ByteString getFallbackAddrBytes()
Fallback on-chain address.
string fallback_addr = 6;getFallbackAddrBytes in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic long getCltvExpiry()
Delta to use for the time-lock of the CLTV extended to the final hop.
uint64 cltv_expiry = 7;getCltvExpiry in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic java.util.List<LightningApi.RouteHint> getRouteHintsList()
Route hints that can each be individually used to assist in reaching the invoice's destination.
repeated .lnrpc.RouteHint route_hints = 8;getRouteHintsList in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic java.util.List<? extends LightningApi.RouteHintOrBuilder> getRouteHintsOrBuilderList()
Route hints that can each be individually used to assist in reaching the invoice's destination.
repeated .lnrpc.RouteHint route_hints = 8;getRouteHintsOrBuilderList in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic int getRouteHintsCount()
Route hints that can each be individually used to assist in reaching the invoice's destination.
repeated .lnrpc.RouteHint route_hints = 8;getRouteHintsCount in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic LightningApi.RouteHint getRouteHints(int index)
Route hints that can each be individually used to assist in reaching the invoice's destination.
repeated .lnrpc.RouteHint route_hints = 8;getRouteHints in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic LightningApi.RouteHintOrBuilder getRouteHintsOrBuilder(int index)
Route hints that can each be individually used to assist in reaching the invoice's destination.
repeated .lnrpc.RouteHint route_hints = 8;getRouteHintsOrBuilder in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic boolean getPrivate()
Whether this invoice should include routing hints for private channels.
bool private = 9;getPrivate in interface InvoicesOuterClass.AddHoldInvoiceRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static InvoicesOuterClass.AddHoldInvoiceRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic InvoicesOuterClass.AddHoldInvoiceRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static InvoicesOuterClass.AddHoldInvoiceRequest.Builder newBuilder()
public static InvoicesOuterClass.AddHoldInvoiceRequest.Builder newBuilder(InvoicesOuterClass.AddHoldInvoiceRequest prototype)
public InvoicesOuterClass.AddHoldInvoiceRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected InvoicesOuterClass.AddHoldInvoiceRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static InvoicesOuterClass.AddHoldInvoiceRequest getDefaultInstance()
public static com.google.protobuf.Parser<InvoicesOuterClass.AddHoldInvoiceRequest> parser()
public com.google.protobuf.Parser<InvoicesOuterClass.AddHoldInvoiceRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public InvoicesOuterClass.AddHoldInvoiceRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder