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.ForwardHtlcInterceptResponse
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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>
public RouterOuterClass.ForwardHtlcInterceptResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RouterOuterClass.ForwardHtlcInterceptResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RouterOuterClass.ForwardHtlcInterceptResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RouterOuterClass.ForwardHtlcInterceptResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>
java.io.IOException
public 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.ForwardHtlcInterceptResponseOrBuilder
public 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.ForwardHtlcInterceptResponseOrBuilder
public 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.ForwardHtlcInterceptResponseOrBuilder
public int getActionValue()
The resolve action for this intercepted htlc.
.routerrpc.ResolveHoldForwardAction action = 2;
getActionValue
in interface RouterOuterClass.ForwardHtlcInterceptResponseOrBuilder
public 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.ForwardHtlcInterceptResponseOrBuilder
public 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.ForwardHtlcInterceptResponseOrBuilder
public 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.ForwardHtlcInterceptResponseOrBuilder
public 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.ForwardHtlcInterceptResponseOrBuilder
public 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.ForwardHtlcInterceptResponseOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.ForwardHtlcInterceptResponse.Builder>