public static final class LightningApi.PsbtShim.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PsbtShim.Builder> implements LightningApi.PsbtShimOrBuilder
lnrpc.PsbtShim
Modifier and Type | Method and Description |
---|---|
LightningApi.PsbtShim |
build() |
LightningApi.PsbtShim |
buildPartial() |
LightningApi.PsbtShim.Builder |
clear() |
LightningApi.PsbtShim.Builder |
clearBasePsbt()
An optional base PSBT the new channel output will be added to.
|
LightningApi.PsbtShim.Builder |
clearNoPublish()
If a channel should be part of a batch (multiple channel openings in one
transaction), it can be dangerous if the whole batch transaction is
published too early before all channel opening negotiations are completed.
|
LightningApi.PsbtShim.Builder |
clearPendingChanId()
A unique identifier of 32 random bytes that will be used as the pending
channel ID to identify the PSBT state machine when interacting with it and
on the wire protocol to initiate the funding request.
|
com.google.protobuf.ByteString |
getBasePsbt()
An optional base PSBT the new channel output will be added to.
|
LightningApi.PsbtShim |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getNoPublish()
If a channel should be part of a batch (multiple channel openings in one
transaction), it can be dangerous if the whole batch transaction is
published too early before all channel opening negotiations are completed.
|
com.google.protobuf.ByteString |
getPendingChanId()
A unique identifier of 32 random bytes that will be used as the pending
channel ID to identify the PSBT state machine when interacting with it and
on the wire protocol to initiate the funding request.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.PsbtShim.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.PsbtShim.Builder |
mergeFrom(LightningApi.PsbtShim other) |
LightningApi.PsbtShim.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.PsbtShim.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.PsbtShim.Builder |
setBasePsbt(com.google.protobuf.ByteString value)
An optional base PSBT the new channel output will be added to.
|
LightningApi.PsbtShim.Builder |
setNoPublish(boolean value)
If a channel should be part of a batch (multiple channel openings in one
transaction), it can be dangerous if the whole batch transaction is
published too early before all channel opening negotiations are completed.
|
LightningApi.PsbtShim.Builder |
setPendingChanId(com.google.protobuf.ByteString value)
A unique identifier of 32 random bytes that will be used as the pending
channel ID to identify the PSBT state machine when interacting with it and
on the wire protocol to initiate the funding request.
|
LightningApi.PsbtShim.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.PsbtShim.Builder>
public LightningApi.PsbtShim.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.PsbtShim.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.PsbtShim.Builder>
public LightningApi.PsbtShim getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.PsbtShim build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.PsbtShim buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.PsbtShim.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.PsbtShim.Builder>
public LightningApi.PsbtShim.Builder mergeFrom(LightningApi.PsbtShim other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PsbtShim.Builder>
public LightningApi.PsbtShim.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.PsbtShim.Builder>
java.io.IOException
public com.google.protobuf.ByteString getPendingChanId()
A unique identifier of 32 random bytes that will be used as the pending channel ID to identify the PSBT state machine when interacting with it and on the wire protocol to initiate the funding request.
bytes pending_chan_id = 1;
getPendingChanId
in interface LightningApi.PsbtShimOrBuilder
public LightningApi.PsbtShim.Builder setPendingChanId(com.google.protobuf.ByteString value)
A unique identifier of 32 random bytes that will be used as the pending channel ID to identify the PSBT state machine when interacting with it and on the wire protocol to initiate the funding request.
bytes pending_chan_id = 1;
value
- The pendingChanId to set.public LightningApi.PsbtShim.Builder clearPendingChanId()
A unique identifier of 32 random bytes that will be used as the pending channel ID to identify the PSBT state machine when interacting with it and on the wire protocol to initiate the funding request.
bytes pending_chan_id = 1;
public com.google.protobuf.ByteString getBasePsbt()
An optional base PSBT the new channel output will be added to. If this is non-empty, it must be a binary serialized PSBT.
bytes base_psbt = 2;
getBasePsbt
in interface LightningApi.PsbtShimOrBuilder
public LightningApi.PsbtShim.Builder setBasePsbt(com.google.protobuf.ByteString value)
An optional base PSBT the new channel output will be added to. If this is non-empty, it must be a binary serialized PSBT.
bytes base_psbt = 2;
value
- The basePsbt to set.public LightningApi.PsbtShim.Builder clearBasePsbt()
An optional base PSBT the new channel output will be added to. If this is non-empty, it must be a binary serialized PSBT.
bytes base_psbt = 2;
public boolean getNoPublish()
If a channel should be part of a batch (multiple channel openings in one transaction), it can be dangerous if the whole batch transaction is published too early before all channel opening negotiations are completed. This flag prevents this particular channel from broadcasting the transaction after the negotiation with the remote peer. In a batch of channel openings this flag should be set to true for every channel but the very last.
bool no_publish = 3;
getNoPublish
in interface LightningApi.PsbtShimOrBuilder
public LightningApi.PsbtShim.Builder setNoPublish(boolean value)
If a channel should be part of a batch (multiple channel openings in one transaction), it can be dangerous if the whole batch transaction is published too early before all channel opening negotiations are completed. This flag prevents this particular channel from broadcasting the transaction after the negotiation with the remote peer. In a batch of channel openings this flag should be set to true for every channel but the very last.
bool no_publish = 3;
value
- The noPublish to set.public LightningApi.PsbtShim.Builder clearNoPublish()
If a channel should be part of a batch (multiple channel openings in one transaction), it can be dangerous if the whole batch transaction is published too early before all channel opening negotiations are completed. This flag prevents this particular channel from broadcasting the transaction after the negotiation with the remote peer. In a batch of channel openings this flag should be set to true for every channel but the very last.
bool no_publish = 3;
public final LightningApi.PsbtShim.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PsbtShim.Builder>
public final LightningApi.PsbtShim.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.PsbtShim.Builder>