public static final class LightningApi.AMP.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMP.Builder> implements LightningApi.AMPOrBuilder
Details specific to AMP HTLCs.Protobuf type
lnrpc.AMP| Modifier and Type | Method and Description |
|---|---|
LightningApi.AMP |
build() |
LightningApi.AMP |
buildPartial() |
LightningApi.AMP.Builder |
clear() |
LightningApi.AMP.Builder |
clearChildIndex()
A nonce used to randomize the child preimage and child hash from a given
root_share.
|
LightningApi.AMP.Builder |
clearHash()
The payment hash of the AMP HTLC.
|
LightningApi.AMP.Builder |
clearPreimage()
The preimage used to settle this AMP htlc.
|
LightningApi.AMP.Builder |
clearRootShare()
An n-of-n secret share of the root seed from which child payment hashes
and preimages are derived.
|
LightningApi.AMP.Builder |
clearSetId()
An identifier for the HTLC set that this HTLC belongs to.
|
int |
getChildIndex()
A nonce used to randomize the child preimage and child hash from a given
root_share.
|
LightningApi.AMP |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getHash()
The payment hash of the AMP HTLC.
|
com.google.protobuf.ByteString |
getPreimage()
The preimage used to settle this AMP htlc.
|
com.google.protobuf.ByteString |
getRootShare()
An n-of-n secret share of the root seed from which child payment hashes
and preimages are derived.
|
com.google.protobuf.ByteString |
getSetId()
An identifier for the HTLC set that this HTLC belongs to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.AMP.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.AMP.Builder |
mergeFrom(LightningApi.AMP other) |
LightningApi.AMP.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.AMP.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.AMP.Builder |
setChildIndex(int value)
A nonce used to randomize the child preimage and child hash from a given
root_share.
|
LightningApi.AMP.Builder |
setHash(com.google.protobuf.ByteString value)
The payment hash of the AMP HTLC.
|
LightningApi.AMP.Builder |
setPreimage(com.google.protobuf.ByteString value)
The preimage used to settle this AMP htlc.
|
LightningApi.AMP.Builder |
setRootShare(com.google.protobuf.ByteString value)
An n-of-n secret share of the root seed from which child payment hashes
and preimages are derived.
|
LightningApi.AMP.Builder |
setSetId(com.google.protobuf.ByteString value)
An identifier for the HTLC set that this HTLC belongs to.
|
LightningApi.AMP.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, 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<LightningApi.AMP.Builder>public LightningApi.AMP.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMP.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<LightningApi.AMP.Builder>public LightningApi.AMP getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LightningApi.AMP build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.AMP buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.AMP.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.AMP.Builder>public LightningApi.AMP.Builder mergeFrom(LightningApi.AMP other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMP.Builder>public LightningApi.AMP.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<LightningApi.AMP.Builder>java.io.IOExceptionpublic com.google.protobuf.ByteString getRootShare()
An n-of-n secret share of the root seed from which child payment hashes and preimages are derived.
bytes root_share = 1;getRootShare in interface LightningApi.AMPOrBuilderpublic LightningApi.AMP.Builder setRootShare(com.google.protobuf.ByteString value)
An n-of-n secret share of the root seed from which child payment hashes and preimages are derived.
bytes root_share = 1;value - The rootShare to set.public LightningApi.AMP.Builder clearRootShare()
An n-of-n secret share of the root seed from which child payment hashes and preimages are derived.
bytes root_share = 1;public com.google.protobuf.ByteString getSetId()
An identifier for the HTLC set that this HTLC belongs to.
bytes set_id = 2;getSetId in interface LightningApi.AMPOrBuilderpublic LightningApi.AMP.Builder setSetId(com.google.protobuf.ByteString value)
An identifier for the HTLC set that this HTLC belongs to.
bytes set_id = 2;value - The setId to set.public LightningApi.AMP.Builder clearSetId()
An identifier for the HTLC set that this HTLC belongs to.
bytes set_id = 2;public int getChildIndex()
A nonce used to randomize the child preimage and child hash from a given root_share.
uint32 child_index = 3;getChildIndex in interface LightningApi.AMPOrBuilderpublic LightningApi.AMP.Builder setChildIndex(int value)
A nonce used to randomize the child preimage and child hash from a given root_share.
uint32 child_index = 3;value - The childIndex to set.public LightningApi.AMP.Builder clearChildIndex()
A nonce used to randomize the child preimage and child hash from a given root_share.
uint32 child_index = 3;public com.google.protobuf.ByteString getHash()
The payment hash of the AMP HTLC.
bytes hash = 4;getHash in interface LightningApi.AMPOrBuilderpublic LightningApi.AMP.Builder setHash(com.google.protobuf.ByteString value)
The payment hash of the AMP HTLC.
bytes hash = 4;value - The hash to set.public LightningApi.AMP.Builder clearHash()
The payment hash of the AMP HTLC.
bytes hash = 4;public com.google.protobuf.ByteString getPreimage()
The preimage used to settle this AMP htlc. This field will only be populated if the invoice is in InvoiceState_ACCEPTED or InvoiceState_SETTLED.
bytes preimage = 5;getPreimage in interface LightningApi.AMPOrBuilderpublic LightningApi.AMP.Builder setPreimage(com.google.protobuf.ByteString value)
The preimage used to settle this AMP htlc. This field will only be populated if the invoice is in InvoiceState_ACCEPTED or InvoiceState_SETTLED.
bytes preimage = 5;value - The preimage to set.public LightningApi.AMP.Builder clearPreimage()
The preimage used to settle this AMP htlc. This field will only be populated if the invoice is in InvoiceState_ACCEPTED or InvoiceState_SETTLED.
bytes preimage = 5;public final LightningApi.AMP.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMP.Builder>public final LightningApi.AMP.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMP.Builder>