public static final class LightningApi.HTLCAttempt.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.HTLCAttempt.Builder> implements LightningApi.HTLCAttemptOrBuilder
lnrpc.HTLCAttempt
Modifier and Type | Method and Description |
---|---|
LightningApi.HTLCAttempt |
build() |
LightningApi.HTLCAttempt |
buildPartial() |
LightningApi.HTLCAttempt.Builder |
clear() |
LightningApi.HTLCAttempt.Builder |
clearAttemptId()
The unique ID that is used for this attempt.
|
LightningApi.HTLCAttempt.Builder |
clearAttemptTimeNs()
The time in UNIX nanoseconds at which this HTLC was sent.
|
LightningApi.HTLCAttempt.Builder |
clearFailure()
Detailed htlc failure info.
|
LightningApi.HTLCAttempt.Builder |
clearPreimage()
The preimage that was used to settle the HTLC.
|
LightningApi.HTLCAttempt.Builder |
clearResolveTimeNs()
The time in UNIX nanoseconds at which this HTLC was settled or failed.
|
LightningApi.HTLCAttempt.Builder |
clearRoute()
The route taken by this HTLC.
|
LightningApi.HTLCAttempt.Builder |
clearStatus()
The status of the HTLC.
|
long |
getAttemptId()
The unique ID that is used for this attempt.
|
long |
getAttemptTimeNs()
The time in UNIX nanoseconds at which this HTLC was sent.
|
LightningApi.HTLCAttempt |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LightningApi.Failure |
getFailure()
Detailed htlc failure info.
|
LightningApi.Failure.Builder |
getFailureBuilder()
Detailed htlc failure info.
|
LightningApi.FailureOrBuilder |
getFailureOrBuilder()
Detailed htlc failure info.
|
com.google.protobuf.ByteString |
getPreimage()
The preimage that was used to settle the HTLC.
|
long |
getResolveTimeNs()
The time in UNIX nanoseconds at which this HTLC was settled or failed.
|
LightningApi.Route |
getRoute()
The route taken by this HTLC.
|
LightningApi.Route.Builder |
getRouteBuilder()
The route taken by this HTLC.
|
LightningApi.RouteOrBuilder |
getRouteOrBuilder()
The route taken by this HTLC.
|
LightningApi.HTLCAttempt.HTLCStatus |
getStatus()
The status of the HTLC.
|
int |
getStatusValue()
The status of the HTLC.
|
boolean |
hasFailure()
Detailed htlc failure info.
|
boolean |
hasRoute()
The route taken by this HTLC.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.HTLCAttempt.Builder |
mergeFailure(LightningApi.Failure value)
Detailed htlc failure info.
|
LightningApi.HTLCAttempt.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.HTLCAttempt.Builder |
mergeFrom(LightningApi.HTLCAttempt other) |
LightningApi.HTLCAttempt.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.HTLCAttempt.Builder |
mergeRoute(LightningApi.Route value)
The route taken by this HTLC.
|
LightningApi.HTLCAttempt.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.HTLCAttempt.Builder |
setAttemptId(long value)
The unique ID that is used for this attempt.
|
LightningApi.HTLCAttempt.Builder |
setAttemptTimeNs(long value)
The time in UNIX nanoseconds at which this HTLC was sent.
|
LightningApi.HTLCAttempt.Builder |
setFailure(LightningApi.Failure.Builder builderForValue)
Detailed htlc failure info.
|
LightningApi.HTLCAttempt.Builder |
setFailure(LightningApi.Failure value)
Detailed htlc failure info.
|
LightningApi.HTLCAttempt.Builder |
setPreimage(com.google.protobuf.ByteString value)
The preimage that was used to settle the HTLC.
|
LightningApi.HTLCAttempt.Builder |
setResolveTimeNs(long value)
The time in UNIX nanoseconds at which this HTLC was settled or failed.
|
LightningApi.HTLCAttempt.Builder |
setRoute(LightningApi.Route.Builder builderForValue)
The route taken by this HTLC.
|
LightningApi.HTLCAttempt.Builder |
setRoute(LightningApi.Route value)
The route taken by this HTLC.
|
LightningApi.HTLCAttempt.Builder |
setStatus(LightningApi.HTLCAttempt.HTLCStatus value)
The status of the HTLC.
|
LightningApi.HTLCAttempt.Builder |
setStatusValue(int value)
The status of the HTLC.
|
LightningApi.HTLCAttempt.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, 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<LightningApi.HTLCAttempt.Builder>
public LightningApi.HTLCAttempt.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<LightningApi.HTLCAttempt.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<LightningApi.HTLCAttempt.Builder>
public LightningApi.HTLCAttempt getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.HTLCAttempt build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.HTLCAttempt buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.HTLCAttempt.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.HTLCAttempt.Builder>
public LightningApi.HTLCAttempt.Builder mergeFrom(LightningApi.HTLCAttempt other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.HTLCAttempt.Builder>
public LightningApi.HTLCAttempt.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<LightningApi.HTLCAttempt.Builder>
java.io.IOException
public long getAttemptId()
The unique ID that is used for this attempt.
uint64 attempt_id = 7;
getAttemptId
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.HTLCAttempt.Builder setAttemptId(long value)
The unique ID that is used for this attempt.
uint64 attempt_id = 7;
value
- The attemptId to set.public LightningApi.HTLCAttempt.Builder clearAttemptId()
The unique ID that is used for this attempt.
uint64 attempt_id = 7;
public int getStatusValue()
The status of the HTLC.
.lnrpc.HTLCAttempt.HTLCStatus status = 1;
getStatusValue
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.HTLCAttempt.Builder setStatusValue(int value)
The status of the HTLC.
.lnrpc.HTLCAttempt.HTLCStatus status = 1;
value
- The enum numeric value on the wire for status to set.public LightningApi.HTLCAttempt.HTLCStatus getStatus()
The status of the HTLC.
.lnrpc.HTLCAttempt.HTLCStatus status = 1;
getStatus
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.HTLCAttempt.Builder setStatus(LightningApi.HTLCAttempt.HTLCStatus value)
The status of the HTLC.
.lnrpc.HTLCAttempt.HTLCStatus status = 1;
value
- The status to set.public LightningApi.HTLCAttempt.Builder clearStatus()
The status of the HTLC.
.lnrpc.HTLCAttempt.HTLCStatus status = 1;
public boolean hasRoute()
The route taken by this HTLC.
.lnrpc.Route route = 2;
hasRoute
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.Route getRoute()
The route taken by this HTLC.
.lnrpc.Route route = 2;
getRoute
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.HTLCAttempt.Builder setRoute(LightningApi.Route value)
The route taken by this HTLC.
.lnrpc.Route route = 2;
public LightningApi.HTLCAttempt.Builder setRoute(LightningApi.Route.Builder builderForValue)
The route taken by this HTLC.
.lnrpc.Route route = 2;
public LightningApi.HTLCAttempt.Builder mergeRoute(LightningApi.Route value)
The route taken by this HTLC.
.lnrpc.Route route = 2;
public LightningApi.HTLCAttempt.Builder clearRoute()
The route taken by this HTLC.
.lnrpc.Route route = 2;
public LightningApi.Route.Builder getRouteBuilder()
The route taken by this HTLC.
.lnrpc.Route route = 2;
public LightningApi.RouteOrBuilder getRouteOrBuilder()
The route taken by this HTLC.
.lnrpc.Route route = 2;
getRouteOrBuilder
in interface LightningApi.HTLCAttemptOrBuilder
public long getAttemptTimeNs()
The time in UNIX nanoseconds at which this HTLC was sent.
int64 attempt_time_ns = 3;
getAttemptTimeNs
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.HTLCAttempt.Builder setAttemptTimeNs(long value)
The time in UNIX nanoseconds at which this HTLC was sent.
int64 attempt_time_ns = 3;
value
- The attemptTimeNs to set.public LightningApi.HTLCAttempt.Builder clearAttemptTimeNs()
The time in UNIX nanoseconds at which this HTLC was sent.
int64 attempt_time_ns = 3;
public long getResolveTimeNs()
The time in UNIX nanoseconds at which this HTLC was settled or failed. This value will not be set if the HTLC is still IN_FLIGHT.
int64 resolve_time_ns = 4;
getResolveTimeNs
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.HTLCAttempt.Builder setResolveTimeNs(long value)
The time in UNIX nanoseconds at which this HTLC was settled or failed. This value will not be set if the HTLC is still IN_FLIGHT.
int64 resolve_time_ns = 4;
value
- The resolveTimeNs to set.public LightningApi.HTLCAttempt.Builder clearResolveTimeNs()
The time in UNIX nanoseconds at which this HTLC was settled or failed. This value will not be set if the HTLC is still IN_FLIGHT.
int64 resolve_time_ns = 4;
public boolean hasFailure()
Detailed htlc failure info.
.lnrpc.Failure failure = 5;
hasFailure
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.Failure getFailure()
Detailed htlc failure info.
.lnrpc.Failure failure = 5;
getFailure
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.HTLCAttempt.Builder setFailure(LightningApi.Failure value)
Detailed htlc failure info.
.lnrpc.Failure failure = 5;
public LightningApi.HTLCAttempt.Builder setFailure(LightningApi.Failure.Builder builderForValue)
Detailed htlc failure info.
.lnrpc.Failure failure = 5;
public LightningApi.HTLCAttempt.Builder mergeFailure(LightningApi.Failure value)
Detailed htlc failure info.
.lnrpc.Failure failure = 5;
public LightningApi.HTLCAttempt.Builder clearFailure()
Detailed htlc failure info.
.lnrpc.Failure failure = 5;
public LightningApi.Failure.Builder getFailureBuilder()
Detailed htlc failure info.
.lnrpc.Failure failure = 5;
public LightningApi.FailureOrBuilder getFailureOrBuilder()
Detailed htlc failure info.
.lnrpc.Failure failure = 5;
getFailureOrBuilder
in interface LightningApi.HTLCAttemptOrBuilder
public com.google.protobuf.ByteString getPreimage()
The preimage that was used to settle the HTLC.
bytes preimage = 6;
getPreimage
in interface LightningApi.HTLCAttemptOrBuilder
public LightningApi.HTLCAttempt.Builder setPreimage(com.google.protobuf.ByteString value)
The preimage that was used to settle the HTLC.
bytes preimage = 6;
value
- The preimage to set.public LightningApi.HTLCAttempt.Builder clearPreimage()
The preimage that was used to settle the HTLC.
bytes preimage = 6;
public final LightningApi.HTLCAttempt.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.HTLCAttempt.Builder>
public final LightningApi.HTLCAttempt.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.HTLCAttempt.Builder>