public static final class LightningApi.Failure.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Failure.Builder> implements LightningApi.FailureOrBuilder
lnrpc.Failure| Modifier and Type | Method and Description |
|---|---|
LightningApi.Failure |
build() |
LightningApi.Failure |
buildPartial() |
LightningApi.Failure.Builder |
clear() |
LightningApi.Failure.Builder |
clearChannelUpdate()
An optional channel update message.
|
LightningApi.Failure.Builder |
clearCltvExpiry()
A failure type-dependent cltv expiry value.
|
LightningApi.Failure.Builder |
clearCode()
Failure code as defined in the Lightning spec
|
LightningApi.Failure.Builder |
clearFailureSourceIndex()
The position in the path of the intermediate or final node that generated
the failure message.
|
LightningApi.Failure.Builder |
clearFlags()
A failure type-dependent flags value.
|
LightningApi.Failure.Builder |
clearHeight()
A failure type-dependent block height.
|
LightningApi.Failure.Builder |
clearHtlcMsat()
A failure type-dependent htlc value.
|
LightningApi.Failure.Builder |
clearOnionSha256()
The sha256 sum of the onion payload.
|
LightningApi.ChannelUpdate |
getChannelUpdate()
An optional channel update message.
|
LightningApi.ChannelUpdate.Builder |
getChannelUpdateBuilder()
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
|
LightningApi.Failure |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
boolean |
hasChannelUpdate()
An optional channel update message.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.Failure.Builder |
mergeChannelUpdate(LightningApi.ChannelUpdate value)
An optional channel update message.
|
LightningApi.Failure.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.Failure.Builder |
mergeFrom(LightningApi.Failure other) |
LightningApi.Failure.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.Failure.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.Failure.Builder |
setChannelUpdate(LightningApi.ChannelUpdate.Builder builderForValue)
An optional channel update message.
|
LightningApi.Failure.Builder |
setChannelUpdate(LightningApi.ChannelUpdate value)
An optional channel update message.
|
LightningApi.Failure.Builder |
setCltvExpiry(int value)
A failure type-dependent cltv expiry value.
|
LightningApi.Failure.Builder |
setCode(LightningApi.Failure.FailureCode value)
Failure code as defined in the Lightning spec
|
LightningApi.Failure.Builder |
setCodeValue(int value)
Failure code as defined in the Lightning spec
|
LightningApi.Failure.Builder |
setFailureSourceIndex(int value)
The position in the path of the intermediate or final node that generated
the failure message.
|
LightningApi.Failure.Builder |
setFlags(int value)
A failure type-dependent flags value.
|
LightningApi.Failure.Builder |
setHeight(int value)
A failure type-dependent block height.
|
LightningApi.Failure.Builder |
setHtlcMsat(long value)
A failure type-dependent htlc value.
|
LightningApi.Failure.Builder |
setOnionSha256(com.google.protobuf.ByteString value)
The sha256 sum of the onion payload.
|
LightningApi.Failure.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Failure.Builder>public LightningApi.Failure.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.Failure.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.Failure.Builder>public LightningApi.Failure getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LightningApi.Failure build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.Failure buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.Failure.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.Failure.Builder>public LightningApi.Failure.Builder mergeFrom(LightningApi.Failure other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Failure.Builder>public LightningApi.Failure.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.Failure.Builder>java.io.IOExceptionpublic int getCodeValue()
Failure code as defined in the Lightning spec
.lnrpc.Failure.FailureCode code = 1;getCodeValue in interface LightningApi.FailureOrBuilderpublic LightningApi.Failure.Builder setCodeValue(int value)
Failure code as defined in the Lightning spec
.lnrpc.Failure.FailureCode code = 1;value - The enum numeric value on the wire for code to set.public LightningApi.Failure.FailureCode getCode()
Failure code as defined in the Lightning spec
.lnrpc.Failure.FailureCode code = 1;getCode in interface LightningApi.FailureOrBuilderpublic LightningApi.Failure.Builder setCode(LightningApi.Failure.FailureCode value)
Failure code as defined in the Lightning spec
.lnrpc.Failure.FailureCode code = 1;value - The code to set.public LightningApi.Failure.Builder clearCode()
Failure code as defined in the Lightning spec
.lnrpc.Failure.FailureCode code = 1;public 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.Failure.Builder setChannelUpdate(LightningApi.ChannelUpdate value)
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;public LightningApi.Failure.Builder setChannelUpdate(LightningApi.ChannelUpdate.Builder builderForValue)
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;public LightningApi.Failure.Builder mergeChannelUpdate(LightningApi.ChannelUpdate value)
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;public LightningApi.Failure.Builder clearChannelUpdate()
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;public LightningApi.ChannelUpdate.Builder getChannelUpdateBuilder()
An optional channel update message.
.lnrpc.ChannelUpdate channel_update = 3;public 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 LightningApi.Failure.Builder setHtlcMsat(long value)
A failure type-dependent htlc value.
uint64 htlc_msat = 4;value - The htlcMsat to set.public LightningApi.Failure.Builder clearHtlcMsat()
A failure type-dependent htlc value.
uint64 htlc_msat = 4;public com.google.protobuf.ByteString getOnionSha256()
The sha256 sum of the onion payload.
bytes onion_sha_256 = 5;getOnionSha256 in interface LightningApi.FailureOrBuilderpublic LightningApi.Failure.Builder setOnionSha256(com.google.protobuf.ByteString value)
The sha256 sum of the onion payload.
bytes onion_sha_256 = 5;value - The onionSha256 to set.public LightningApi.Failure.Builder clearOnionSha256()
The sha256 sum of the onion payload.
bytes onion_sha_256 = 5;public int getCltvExpiry()
A failure type-dependent cltv expiry value.
uint32 cltv_expiry = 6;getCltvExpiry in interface LightningApi.FailureOrBuilderpublic LightningApi.Failure.Builder setCltvExpiry(int value)
A failure type-dependent cltv expiry value.
uint32 cltv_expiry = 6;value - The cltvExpiry to set.public LightningApi.Failure.Builder clearCltvExpiry()
A failure type-dependent cltv expiry value.
uint32 cltv_expiry = 6;public int getFlags()
A failure type-dependent flags value.
uint32 flags = 7;getFlags in interface LightningApi.FailureOrBuilderpublic LightningApi.Failure.Builder setFlags(int value)
A failure type-dependent flags value.
uint32 flags = 7;value - The flags to set.public LightningApi.Failure.Builder clearFlags()
A failure type-dependent flags value.
uint32 flags = 7;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.FailureOrBuilderpublic LightningApi.Failure.Builder setFailureSourceIndex(int value)
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;value - The failureSourceIndex to set.public LightningApi.Failure.Builder clearFailureSourceIndex()
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;public int getHeight()
A failure type-dependent block height.
uint32 height = 9;getHeight in interface LightningApi.FailureOrBuilderpublic LightningApi.Failure.Builder setHeight(int value)
A failure type-dependent block height.
uint32 height = 9;value - The height to set.public LightningApi.Failure.Builder clearHeight()
A failure type-dependent block height.
uint32 height = 9;public final LightningApi.Failure.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Failure.Builder>public final LightningApi.Failure.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Failure.Builder>