public static final class RouterOuterClass.ForwardHtlcInterceptResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.Builder> implements RouterOuterClass.ForwardHtlcInterceptResponseOrBuilder
ForwardHtlcInterceptResponse enables the caller to resolve a previously hold forward. The caller can choose either to: - `Resume`: Execute the default behavior (usually forward). - `Reject`: Fail the htlc backwards. - `Settle`: Settle this htlc with a given preimage.Protobuf type
routerrpc.ForwardHtlcInterceptResponseaddRepeatedField, 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<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>public RouterOuterClass.ForwardHtlcInterceptResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.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<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>public RouterOuterClass.ForwardHtlcInterceptResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouterOuterClass.ForwardHtlcInterceptResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouterOuterClass.ForwardHtlcInterceptResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouterOuterClass.ForwardHtlcInterceptResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>public RouterOuterClass.ForwardHtlcInterceptResponse.Builder mergeFrom(RouterOuterClass.ForwardHtlcInterceptResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>public RouterOuterClass.ForwardHtlcInterceptResponse.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<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>java.io.IOExceptionpublic boolean hasIncomingCircuitKey()
The key of this forwarded htlc. It defines the incoming channel id and the index in this channel.
.routerrpc.CircuitKey incoming_circuit_key = 1;hasIncomingCircuitKey in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilderpublic RouterOuterClass.CircuitKey getIncomingCircuitKey()
The key of this forwarded htlc. It defines the incoming channel id and the index in this channel.
.routerrpc.CircuitKey incoming_circuit_key = 1;getIncomingCircuitKey in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilderpublic RouterOuterClass.ForwardHtlcInterceptResponse.Builder setIncomingCircuitKey(RouterOuterClass.CircuitKey value)
The key of this forwarded htlc. It defines the incoming channel id and the index in this channel.
.routerrpc.CircuitKey incoming_circuit_key = 1;public RouterOuterClass.ForwardHtlcInterceptResponse.Builder setIncomingCircuitKey(RouterOuterClass.CircuitKey.Builder builderForValue)
The key of this forwarded htlc. It defines the incoming channel id and the index in this channel.
.routerrpc.CircuitKey incoming_circuit_key = 1;public RouterOuterClass.ForwardHtlcInterceptResponse.Builder mergeIncomingCircuitKey(RouterOuterClass.CircuitKey value)
The key of this forwarded htlc. It defines the incoming channel id and the index in this channel.
.routerrpc.CircuitKey incoming_circuit_key = 1;public RouterOuterClass.ForwardHtlcInterceptResponse.Builder clearIncomingCircuitKey()
The key of this forwarded htlc. It defines the incoming channel id and the index in this channel.
.routerrpc.CircuitKey incoming_circuit_key = 1;public RouterOuterClass.CircuitKey.Builder getIncomingCircuitKeyBuilder()
The key of this forwarded htlc. It defines the incoming channel id and the index in this channel.
.routerrpc.CircuitKey incoming_circuit_key = 1;public RouterOuterClass.CircuitKeyOrBuilder getIncomingCircuitKeyOrBuilder()
The key of this forwarded htlc. It defines the incoming channel id and the index in this channel.
.routerrpc.CircuitKey incoming_circuit_key = 1;getIncomingCircuitKeyOrBuilder in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilderpublic int getActionValue()
The resolve action for this intercepted htlc.
.routerrpc.ResolveHoldForwardAction action = 2;getActionValue in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilderpublic RouterOuterClass.ForwardHtlcInterceptResponse.Builder setActionValue(int value)
The resolve action for this intercepted htlc.
.routerrpc.ResolveHoldForwardAction action = 2;value - The enum numeric value on the wire for action to set.public RouterOuterClass.ResolveHoldForwardAction getAction()
The resolve action for this intercepted htlc.
.routerrpc.ResolveHoldForwardAction action = 2;getAction in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilderpublic RouterOuterClass.ForwardHtlcInterceptResponse.Builder setAction(RouterOuterClass.ResolveHoldForwardAction value)
The resolve action for this intercepted htlc.
.routerrpc.ResolveHoldForwardAction action = 2;value - The action to set.public RouterOuterClass.ForwardHtlcInterceptResponse.Builder clearAction()
The resolve action for this intercepted htlc.
.routerrpc.ResolveHoldForwardAction action = 2;public com.google.protobuf.ByteString getPreimage()
The preimage in case the resolve action is Settle.
bytes preimage = 3;getPreimage in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilderpublic RouterOuterClass.ForwardHtlcInterceptResponse.Builder setPreimage(com.google.protobuf.ByteString value)
The preimage in case the resolve action is Settle.
bytes preimage = 3;value - The preimage to set.public RouterOuterClass.ForwardHtlcInterceptResponse.Builder clearPreimage()
The preimage in case the resolve action is Settle.
bytes preimage = 3;public com.google.protobuf.ByteString getFailureMessage()
Encrypted failure message in case the resolve action is Fail. If failure_message is specified, the failure_code field must be set to zero.
bytes failure_message = 4;getFailureMessage in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilderpublic RouterOuterClass.ForwardHtlcInterceptResponse.Builder setFailureMessage(com.google.protobuf.ByteString value)
Encrypted failure message in case the resolve action is Fail. If failure_message is specified, the failure_code field must be set to zero.
bytes failure_message = 4;value - The failureMessage to set.public RouterOuterClass.ForwardHtlcInterceptResponse.Builder clearFailureMessage()
Encrypted failure message in case the resolve action is Fail. If failure_message is specified, the failure_code field must be set to zero.
bytes failure_message = 4;public int getFailureCodeValue()
Return the specified failure code in case the resolve action is Fail. The message data fields are populated automatically. If a non-zero failure_code is specified, failure_message must not be set. For backwards-compatibility reasons, TEMPORARY_CHANNEL_FAILURE is the default value for this field.
.lnrpc.Failure.FailureCode failure_code = 5;getFailureCodeValue in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilderpublic RouterOuterClass.ForwardHtlcInterceptResponse.Builder setFailureCodeValue(int value)
Return the specified failure code in case the resolve action is Fail. The message data fields are populated automatically. If a non-zero failure_code is specified, failure_message must not be set. For backwards-compatibility reasons, TEMPORARY_CHANNEL_FAILURE is the default value for this field.
.lnrpc.Failure.FailureCode failure_code = 5;value - The enum numeric value on the wire for failureCode to set.public LightningApi.Failure.FailureCode getFailureCode()
Return the specified failure code in case the resolve action is Fail. The message data fields are populated automatically. If a non-zero failure_code is specified, failure_message must not be set. For backwards-compatibility reasons, TEMPORARY_CHANNEL_FAILURE is the default value for this field.
.lnrpc.Failure.FailureCode failure_code = 5;getFailureCode in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilderpublic RouterOuterClass.ForwardHtlcInterceptResponse.Builder setFailureCode(LightningApi.Failure.FailureCode value)
Return the specified failure code in case the resolve action is Fail. The message data fields are populated automatically. If a non-zero failure_code is specified, failure_message must not be set. For backwards-compatibility reasons, TEMPORARY_CHANNEL_FAILURE is the default value for this field.
.lnrpc.Failure.FailureCode failure_code = 5;value - The failureCode to set.public RouterOuterClass.ForwardHtlcInterceptResponse.Builder clearFailureCode()
Return the specified failure code in case the resolve action is Fail. The message data fields are populated automatically. If a non-zero failure_code is specified, failure_message must not be set. For backwards-compatibility reasons, TEMPORARY_CHANNEL_FAILURE is the default value for this field.
.lnrpc.Failure.FailureCode failure_code = 5;public final RouterOuterClass.ForwardHtlcInterceptResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>public final RouterOuterClass.ForwardHtlcInterceptResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>