public static final class LightningApi.Failure extends com.google.protobuf.GeneratedMessageV3 implements LightningApi.FailureOrBuilder
lnrpc.Failure| Modifier and Type | Class and Description |
|---|---|
static class |
LightningApi.Failure.Builder
Protobuf type
lnrpc.Failure |
static class |
LightningApi.Failure.FailureCode
Protobuf enum
lnrpc.Failure.FailureCode |
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 |
CHANNEL_UPDATE_FIELD_NUMBER |
static int |
CLTV_EXPIRY_FIELD_NUMBER |
static int |
CODE_FIELD_NUMBER |
static int |
FAILURE_SOURCE_INDEX_FIELD_NUMBER |
static int |
FLAGS_FIELD_NUMBER |
static int |
HEIGHT_FIELD_NUMBER |
static int |
HTLC_MSAT_FIELD_NUMBER |
static int |
ONION_SHA_256_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
LightningApi.ChannelUpdate |
getChannelUpdate()
An optional channel update message.
|
LightningApi.ChannelUpdateOrBuilder |
getChannelUpdateOrBuilder()
An optional channel update message.
|
int |
getCltvExpiry()
A failure type-dependent cltv expiry value.
|
LightningApi.Failure.FailureCode |
getCode()
Failure code as defined in the Lightning spec
|
int |
getCodeValue()
Failure code as defined in the Lightning spec
|
static LightningApi.Failure |
getDefaultInstance() |
LightningApi.Failure |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getFailureSourceIndex()
The position in the path of the intermediate or final node that generated
the failure message.
|
int |
getFlags()
A failure type-dependent flags value.
|
int |
getHeight()
A failure type-dependent block height.
|
long |
getHtlcMsat()
A failure type-dependent htlc value.
|
com.google.protobuf.ByteString |
getOnionSha256()
The sha256 sum of the onion payload.
|
com.google.protobuf.Parser<LightningApi.Failure> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasChannelUpdate()
An optional channel update message.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LightningApi.Failure.Builder |
newBuilder() |
static LightningApi.Failure.Builder |
newBuilder(LightningApi.Failure prototype) |
LightningApi.Failure.Builder |
newBuilderForType() |
protected LightningApi.Failure.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LightningApi.Failure |
parseDelimitedFrom(java.io.InputStream input) |
static LightningApi.Failure |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Failure |
parseFrom(byte[] data) |
static LightningApi.Failure |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Failure |
parseFrom(java.nio.ByteBuffer data) |
static LightningApi.Failure |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Failure |
parseFrom(com.google.protobuf.ByteString data) |
static LightningApi.Failure |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Failure |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LightningApi.Failure |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Failure |
parseFrom(java.io.InputStream input) |
static LightningApi.Failure |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LightningApi.Failure> |
parser() |
LightningApi.Failure.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 CODE_FIELD_NUMBER
public static final int CHANNEL_UPDATE_FIELD_NUMBER
public static final int HTLC_MSAT_FIELD_NUMBER
public static final int ONION_SHA_256_FIELD_NUMBER
public static final int CLTV_EXPIRY_FIELD_NUMBER
public static final int FLAGS_FIELD_NUMBER
public static final int FAILURE_SOURCE_INDEX_FIELD_NUMBER
public static final int HEIGHT_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 int getCodeValue()
Failure code as defined in the Lightning spec
.lnrpc.Failure.FailureCode code = 1;getCodeValue in interface LightningApi.FailureOrBuilderpublic LightningApi.Failure.FailureCode getCode()
Failure code as defined in the Lightning spec
.lnrpc.Failure.FailureCode code = 1;getCode in interface LightningApi.FailureOrBuilderpublic boolean hasChannelUpdate()
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;hasChannelUpdate in interface LightningApi.FailureOrBuilderpublic LightningApi.ChannelUpdate getChannelUpdate()
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;getChannelUpdate in interface LightningApi.FailureOrBuilderpublic LightningApi.ChannelUpdateOrBuilder getChannelUpdateOrBuilder()
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;getChannelUpdateOrBuilder in interface LightningApi.FailureOrBuilderpublic long getHtlcMsat()
A failure type-dependent htlc value.
uint64 htlc_msat = 4;getHtlcMsat in interface LightningApi.FailureOrBuilderpublic com.google.protobuf.ByteString getOnionSha256()
The sha256 sum of the onion payload.
bytes onion_sha_256 = 5;getOnionSha256 in interface LightningApi.FailureOrBuilderpublic int getCltvExpiry()
A failure type-dependent cltv expiry value.
uint32 cltv_expiry = 6;getCltvExpiry in interface LightningApi.FailureOrBuilderpublic int getFlags()
A failure type-dependent flags value.
uint32 flags = 7;getFlags in interface LightningApi.FailureOrBuilderpublic int getFailureSourceIndex()
The position in the path of the intermediate or final node that generated the failure message. Position zero is the sender node.
uint32 failure_source_index = 8;getFailureSourceIndex in interface LightningApi.FailureOrBuilderpublic int getHeight()
A failure type-dependent block height.
uint32 height = 9;getHeight in interface LightningApi.FailureOrBuilderpublic 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 LightningApi.Failure parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Failure parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Failure parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Failure parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Failure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Failure parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Failure parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Failure parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Failure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Failure parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Failure parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Failure parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic LightningApi.Failure.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LightningApi.Failure.Builder newBuilder()
public static LightningApi.Failure.Builder newBuilder(LightningApi.Failure prototype)
public LightningApi.Failure.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LightningApi.Failure.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LightningApi.Failure getDefaultInstance()
public static com.google.protobuf.Parser<LightningApi.Failure> parser()
public com.google.protobuf.Parser<LightningApi.Failure> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LightningApi.Failure getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder