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, 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.AMP.Builder>
public LightningApi.AMP.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.AMP.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.AMP.Builder>
public LightningApi.AMP getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.AMP build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.AMP buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.AMP.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.AMP.Builder>
java.io.IOException
public 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.AMPOrBuilder
public 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.AMPOrBuilder
public 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.AMPOrBuilder
public 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.AMPOrBuilder
public 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.AMPOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.AMP.Builder>