public static final class LightningApi.HTLC.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.HTLC.Builder> implements LightningApi.HTLCOrBuilder
lnrpc.HTLC
Modifier and Type | Method and Description |
---|---|
LightningApi.HTLC |
build() |
LightningApi.HTLC |
buildPartial() |
LightningApi.HTLC.Builder |
clear() |
LightningApi.HTLC.Builder |
clearAmount()
int64 amount = 2; |
LightningApi.HTLC.Builder |
clearExpirationHeight()
uint32 expiration_height = 4; |
LightningApi.HTLC.Builder |
clearForwardingChannel()
If this HTLC is involved in a forwarding operation, this field indicates
the forwarding channel.
|
LightningApi.HTLC.Builder |
clearForwardingHtlcIndex()
Index identifying the htlc on the forwarding channel.
|
LightningApi.HTLC.Builder |
clearHashLock()
bytes hash_lock = 3; |
LightningApi.HTLC.Builder |
clearHtlcIndex()
Index identifying the htlc on the channel.
|
LightningApi.HTLC.Builder |
clearIncoming()
bool incoming = 1; |
long |
getAmount()
int64 amount = 2; |
LightningApi.HTLC |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getExpirationHeight()
uint32 expiration_height = 4; |
long |
getForwardingChannel()
If this HTLC is involved in a forwarding operation, this field indicates
the forwarding channel.
|
long |
getForwardingHtlcIndex()
Index identifying the htlc on the forwarding channel.
|
com.google.protobuf.ByteString |
getHashLock()
bytes hash_lock = 3; |
long |
getHtlcIndex()
Index identifying the htlc on the channel.
|
boolean |
getIncoming()
bool incoming = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.HTLC.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.HTLC.Builder |
mergeFrom(LightningApi.HTLC other) |
LightningApi.HTLC.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.HTLC.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.HTLC.Builder |
setAmount(long value)
int64 amount = 2; |
LightningApi.HTLC.Builder |
setExpirationHeight(int value)
uint32 expiration_height = 4; |
LightningApi.HTLC.Builder |
setForwardingChannel(long value)
If this HTLC is involved in a forwarding operation, this field indicates
the forwarding channel.
|
LightningApi.HTLC.Builder |
setForwardingHtlcIndex(long value)
Index identifying the htlc on the forwarding channel.
|
LightningApi.HTLC.Builder |
setHashLock(com.google.protobuf.ByteString value)
bytes hash_lock = 3; |
LightningApi.HTLC.Builder |
setHtlcIndex(long value)
Index identifying the htlc on the channel.
|
LightningApi.HTLC.Builder |
setIncoming(boolean value)
bool incoming = 1; |
LightningApi.HTLC.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.HTLC.Builder>
public LightningApi.HTLC.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.HTLC.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.HTLC.Builder>
public LightningApi.HTLC getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.HTLC build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.HTLC buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.HTLC.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.HTLC.Builder>
public LightningApi.HTLC.Builder mergeFrom(LightningApi.HTLC other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.HTLC.Builder>
public LightningApi.HTLC.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.HTLC.Builder>
java.io.IOException
public boolean getIncoming()
bool incoming = 1;
getIncoming
in interface LightningApi.HTLCOrBuilder
public LightningApi.HTLC.Builder setIncoming(boolean value)
bool incoming = 1;
value
- The incoming to set.public LightningApi.HTLC.Builder clearIncoming()
bool incoming = 1;
public long getAmount()
int64 amount = 2;
getAmount
in interface LightningApi.HTLCOrBuilder
public LightningApi.HTLC.Builder setAmount(long value)
int64 amount = 2;
value
- The amount to set.public LightningApi.HTLC.Builder clearAmount()
int64 amount = 2;
public com.google.protobuf.ByteString getHashLock()
bytes hash_lock = 3;
getHashLock
in interface LightningApi.HTLCOrBuilder
public LightningApi.HTLC.Builder setHashLock(com.google.protobuf.ByteString value)
bytes hash_lock = 3;
value
- The hashLock to set.public LightningApi.HTLC.Builder clearHashLock()
bytes hash_lock = 3;
public int getExpirationHeight()
uint32 expiration_height = 4;
getExpirationHeight
in interface LightningApi.HTLCOrBuilder
public LightningApi.HTLC.Builder setExpirationHeight(int value)
uint32 expiration_height = 4;
value
- The expirationHeight to set.public LightningApi.HTLC.Builder clearExpirationHeight()
uint32 expiration_height = 4;
public long getHtlcIndex()
Index identifying the htlc on the channel.
uint64 htlc_index = 5;
getHtlcIndex
in interface LightningApi.HTLCOrBuilder
public LightningApi.HTLC.Builder setHtlcIndex(long value)
Index identifying the htlc on the channel.
uint64 htlc_index = 5;
value
- The htlcIndex to set.public LightningApi.HTLC.Builder clearHtlcIndex()
Index identifying the htlc on the channel.
uint64 htlc_index = 5;
public long getForwardingChannel()
If this HTLC is involved in a forwarding operation, this field indicates the forwarding channel. For an outgoing htlc, it is the incoming channel. For an incoming htlc, it is the outgoing channel. When the htlc originates from this node or this node is the final destination, forwarding_channel will be zero. The forwarding channel will also be zero for htlcs that need to be forwarded but don't have a forwarding decision persisted yet.
uint64 forwarding_channel = 6;
getForwardingChannel
in interface LightningApi.HTLCOrBuilder
public LightningApi.HTLC.Builder setForwardingChannel(long value)
If this HTLC is involved in a forwarding operation, this field indicates the forwarding channel. For an outgoing htlc, it is the incoming channel. For an incoming htlc, it is the outgoing channel. When the htlc originates from this node or this node is the final destination, forwarding_channel will be zero. The forwarding channel will also be zero for htlcs that need to be forwarded but don't have a forwarding decision persisted yet.
uint64 forwarding_channel = 6;
value
- The forwardingChannel to set.public LightningApi.HTLC.Builder clearForwardingChannel()
If this HTLC is involved in a forwarding operation, this field indicates the forwarding channel. For an outgoing htlc, it is the incoming channel. For an incoming htlc, it is the outgoing channel. When the htlc originates from this node or this node is the final destination, forwarding_channel will be zero. The forwarding channel will also be zero for htlcs that need to be forwarded but don't have a forwarding decision persisted yet.
uint64 forwarding_channel = 6;
public long getForwardingHtlcIndex()
Index identifying the htlc on the forwarding channel.
uint64 forwarding_htlc_index = 7;
getForwardingHtlcIndex
in interface LightningApi.HTLCOrBuilder
public LightningApi.HTLC.Builder setForwardingHtlcIndex(long value)
Index identifying the htlc on the forwarding channel.
uint64 forwarding_htlc_index = 7;
value
- The forwardingHtlcIndex to set.public LightningApi.HTLC.Builder clearForwardingHtlcIndex()
Index identifying the htlc on the forwarding channel.
uint64 forwarding_htlc_index = 7;
public final LightningApi.HTLC.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.HTLC.Builder>
public final LightningApi.HTLC.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.HTLC.Builder>