public static final class LightningApi.PendingHTLC.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PendingHTLC.Builder> implements LightningApi.PendingHTLCOrBuilder
lnrpc.PendingHTLC
Modifier and Type | Method and Description |
---|---|
LightningApi.PendingHTLC |
build() |
LightningApi.PendingHTLC |
buildPartial() |
LightningApi.PendingHTLC.Builder |
clear() |
LightningApi.PendingHTLC.Builder |
clearAmount()
The total value of the htlc
|
LightningApi.PendingHTLC.Builder |
clearBlocksTilMaturity()
The number of blocks remaining until the current stage can be swept.
|
LightningApi.PendingHTLC.Builder |
clearIncoming()
The direction within the channel that the htlc was sent
|
LightningApi.PendingHTLC.Builder |
clearMaturityHeight()
The next block height at which we can spend the current stage
|
LightningApi.PendingHTLC.Builder |
clearOutpoint()
The final output to be swept back to the user's wallet
|
LightningApi.PendingHTLC.Builder |
clearStage()
Indicates whether the htlc is in its first or second stage of recovery
|
long |
getAmount()
The total value of the htlc
|
int |
getBlocksTilMaturity()
The number of blocks remaining until the current stage can be swept.
|
LightningApi.PendingHTLC |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIncoming()
The direction within the channel that the htlc was sent
|
int |
getMaturityHeight()
The next block height at which we can spend the current stage
|
java.lang.String |
getOutpoint()
The final output to be swept back to the user's wallet
|
com.google.protobuf.ByteString |
getOutpointBytes()
The final output to be swept back to the user's wallet
|
int |
getStage()
Indicates whether the htlc is in its first or second stage of recovery
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.PendingHTLC.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.PendingHTLC.Builder |
mergeFrom(LightningApi.PendingHTLC other) |
LightningApi.PendingHTLC.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.PendingHTLC.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.PendingHTLC.Builder |
setAmount(long value)
The total value of the htlc
|
LightningApi.PendingHTLC.Builder |
setBlocksTilMaturity(int value)
The number of blocks remaining until the current stage can be swept.
|
LightningApi.PendingHTLC.Builder |
setIncoming(boolean value)
The direction within the channel that the htlc was sent
|
LightningApi.PendingHTLC.Builder |
setMaturityHeight(int value)
The next block height at which we can spend the current stage
|
LightningApi.PendingHTLC.Builder |
setOutpoint(java.lang.String value)
The final output to be swept back to the user's wallet
|
LightningApi.PendingHTLC.Builder |
setOutpointBytes(com.google.protobuf.ByteString value)
The final output to be swept back to the user's wallet
|
LightningApi.PendingHTLC.Builder |
setStage(int value)
Indicates whether the htlc is in its first or second stage of recovery
|
LightningApi.PendingHTLC.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.PendingHTLC.Builder>
public LightningApi.PendingHTLC.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.PendingHTLC.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.PendingHTLC.Builder>
public LightningApi.PendingHTLC getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.PendingHTLC build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.PendingHTLC buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.PendingHTLC.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.PendingHTLC.Builder>
public LightningApi.PendingHTLC.Builder mergeFrom(LightningApi.PendingHTLC other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PendingHTLC.Builder>
public LightningApi.PendingHTLC.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.PendingHTLC.Builder>
java.io.IOException
public boolean getIncoming()
The direction within the channel that the htlc was sent
bool incoming = 1;
getIncoming
in interface LightningApi.PendingHTLCOrBuilder
public LightningApi.PendingHTLC.Builder setIncoming(boolean value)
The direction within the channel that the htlc was sent
bool incoming = 1;
value
- The incoming to set.public LightningApi.PendingHTLC.Builder clearIncoming()
The direction within the channel that the htlc was sent
bool incoming = 1;
public long getAmount()
The total value of the htlc
int64 amount = 2;
getAmount
in interface LightningApi.PendingHTLCOrBuilder
public LightningApi.PendingHTLC.Builder setAmount(long value)
The total value of the htlc
int64 amount = 2;
value
- The amount to set.public LightningApi.PendingHTLC.Builder clearAmount()
The total value of the htlc
int64 amount = 2;
public java.lang.String getOutpoint()
The final output to be swept back to the user's wallet
string outpoint = 3;
getOutpoint
in interface LightningApi.PendingHTLCOrBuilder
public com.google.protobuf.ByteString getOutpointBytes()
The final output to be swept back to the user's wallet
string outpoint = 3;
getOutpointBytes
in interface LightningApi.PendingHTLCOrBuilder
public LightningApi.PendingHTLC.Builder setOutpoint(java.lang.String value)
The final output to be swept back to the user's wallet
string outpoint = 3;
value
- The outpoint to set.public LightningApi.PendingHTLC.Builder clearOutpoint()
The final output to be swept back to the user's wallet
string outpoint = 3;
public LightningApi.PendingHTLC.Builder setOutpointBytes(com.google.protobuf.ByteString value)
The final output to be swept back to the user's wallet
string outpoint = 3;
value
- The bytes for outpoint to set.public int getMaturityHeight()
The next block height at which we can spend the current stage
uint32 maturity_height = 4;
getMaturityHeight
in interface LightningApi.PendingHTLCOrBuilder
public LightningApi.PendingHTLC.Builder setMaturityHeight(int value)
The next block height at which we can spend the current stage
uint32 maturity_height = 4;
value
- The maturityHeight to set.public LightningApi.PendingHTLC.Builder clearMaturityHeight()
The next block height at which we can spend the current stage
uint32 maturity_height = 4;
public int getBlocksTilMaturity()
The number of blocks remaining until the current stage can be swept. Negative values indicate how many blocks have passed since becoming mature.
int32 blocks_til_maturity = 5;
getBlocksTilMaturity
in interface LightningApi.PendingHTLCOrBuilder
public LightningApi.PendingHTLC.Builder setBlocksTilMaturity(int value)
The number of blocks remaining until the current stage can be swept. Negative values indicate how many blocks have passed since becoming mature.
int32 blocks_til_maturity = 5;
value
- The blocksTilMaturity to set.public LightningApi.PendingHTLC.Builder clearBlocksTilMaturity()
The number of blocks remaining until the current stage can be swept. Negative values indicate how many blocks have passed since becoming mature.
int32 blocks_til_maturity = 5;
public int getStage()
Indicates whether the htlc is in its first or second stage of recovery
uint32 stage = 6;
getStage
in interface LightningApi.PendingHTLCOrBuilder
public LightningApi.PendingHTLC.Builder setStage(int value)
Indicates whether the htlc is in its first or second stage of recovery
uint32 stage = 6;
value
- The stage to set.public LightningApi.PendingHTLC.Builder clearStage()
Indicates whether the htlc is in its first or second stage of recovery
uint32 stage = 6;
public final LightningApi.PendingHTLC.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PendingHTLC.Builder>
public final LightningApi.PendingHTLC.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PendingHTLC.Builder>