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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public int getCodeValue()
Failure code as defined in the Lightning spec
.lnrpc.Failure.FailureCode code = 1;
getCodeValue
in interface LightningApi.FailureOrBuilder
public LightningApi.Failure.FailureCode getCode()
Failure code as defined in the Lightning spec
.lnrpc.Failure.FailureCode code = 1;
getCode
in interface LightningApi.FailureOrBuilder
public boolean hasChannelUpdate()
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;
hasChannelUpdate
in interface LightningApi.FailureOrBuilder
public LightningApi.ChannelUpdate getChannelUpdate()
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;
getChannelUpdate
in interface LightningApi.FailureOrBuilder
public LightningApi.ChannelUpdateOrBuilder getChannelUpdateOrBuilder()
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;
getChannelUpdateOrBuilder
in interface LightningApi.FailureOrBuilder
public long getHtlcMsat()
A failure type-dependent htlc value.
uint64 htlc_msat = 4;
getHtlcMsat
in interface LightningApi.FailureOrBuilder
public com.google.protobuf.ByteString getOnionSha256()
The sha256 sum of the onion payload.
bytes onion_sha_256 = 5;
getOnionSha256
in interface LightningApi.FailureOrBuilder
public int getCltvExpiry()
A failure type-dependent cltv expiry value.
uint32 cltv_expiry = 6;
getCltvExpiry
in interface LightningApi.FailureOrBuilder
public int getFlags()
A failure type-dependent flags value.
uint32 flags = 7;
getFlags
in interface LightningApi.FailureOrBuilder
public 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.FailureOrBuilder
public int getHeight()
A failure type-dependent block height.
uint32 height = 9;
getHeight
in interface LightningApi.FailureOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static LightningApi.Failure parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Failure parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Failure parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Failure parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Failure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Failure parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Failure parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.Failure parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.Failure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.Failure parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.Failure parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.Failure parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public LightningApi.Failure.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected LightningApi.Failure.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public LightningApi.Failure getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder