public static final class LightningApi.ChannelAcceptResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelAcceptResponse.Builder> implements LightningApi.ChannelAcceptResponseOrBuilder
lnrpc.ChannelAcceptResponse| Modifier and Type | Method and Description |
|---|---|
LightningApi.ChannelAcceptResponse |
build() |
LightningApi.ChannelAcceptResponse |
buildPartial() |
LightningApi.ChannelAcceptResponse.Builder |
clear() |
LightningApi.ChannelAcceptResponse.Builder |
clearAccept()
Whether or not the client accepts the channel.
|
LightningApi.ChannelAcceptResponse.Builder |
clearCsvDelay()
The csv delay (in blocks) that we require for the remote party.
|
LightningApi.ChannelAcceptResponse.Builder |
clearError()
An optional error to send the initiating party to indicate why the channel
was rejected.
|
LightningApi.ChannelAcceptResponse.Builder |
clearInFlightMaxMsat()
The maximum amount of funds in millisatoshis that we allow the remote peer
to have in outstanding htlcs.
|
LightningApi.ChannelAcceptResponse.Builder |
clearMaxHtlcCount()
The maximum number of htlcs that the remote peer can offer us.
|
LightningApi.ChannelAcceptResponse.Builder |
clearMinAcceptDepth()
The number of confirmations we require before we consider the channel open.
|
LightningApi.ChannelAcceptResponse.Builder |
clearMinHtlcIn()
The minimum value in millisatoshis for incoming htlcs on the channel.
|
LightningApi.ChannelAcceptResponse.Builder |
clearPendingChanId()
The pending channel id to which this response applies.
|
LightningApi.ChannelAcceptResponse.Builder |
clearReserveSat()
The reserve amount in satoshis that we require the remote peer to adhere to.
|
LightningApi.ChannelAcceptResponse.Builder |
clearUpfrontShutdown()
The upfront shutdown address to use if the initiating peer supports option
upfront shutdown script (see ListPeers for the features supported).
|
LightningApi.ChannelAcceptResponse.Builder |
clearZeroConf()
Whether the responder wants this to be a zero-conf channel.
|
boolean |
getAccept()
Whether or not the client accepts the channel.
|
int |
getCsvDelay()
The csv delay (in blocks) that we require for the remote party.
|
LightningApi.ChannelAcceptResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getError()
An optional error to send the initiating party to indicate why the channel
was rejected.
|
com.google.protobuf.ByteString |
getErrorBytes()
An optional error to send the initiating party to indicate why the channel
was rejected.
|
long |
getInFlightMaxMsat()
The maximum amount of funds in millisatoshis that we allow the remote peer
to have in outstanding htlcs.
|
int |
getMaxHtlcCount()
The maximum number of htlcs that the remote peer can offer us.
|
int |
getMinAcceptDepth()
The number of confirmations we require before we consider the channel open.
|
long |
getMinHtlcIn()
The minimum value in millisatoshis for incoming htlcs on the channel.
|
com.google.protobuf.ByteString |
getPendingChanId()
The pending channel id to which this response applies.
|
long |
getReserveSat()
The reserve amount in satoshis that we require the remote peer to adhere to.
|
java.lang.String |
getUpfrontShutdown()
The upfront shutdown address to use if the initiating peer supports option
upfront shutdown script (see ListPeers for the features supported).
|
com.google.protobuf.ByteString |
getUpfrontShutdownBytes()
The upfront shutdown address to use if the initiating peer supports option
upfront shutdown script (see ListPeers for the features supported).
|
boolean |
getZeroConf()
Whether the responder wants this to be a zero-conf channel.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.ChannelAcceptResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.ChannelAcceptResponse.Builder |
mergeFrom(LightningApi.ChannelAcceptResponse other) |
LightningApi.ChannelAcceptResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.ChannelAcceptResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.ChannelAcceptResponse.Builder |
setAccept(boolean value)
Whether or not the client accepts the channel.
|
LightningApi.ChannelAcceptResponse.Builder |
setCsvDelay(int value)
The csv delay (in blocks) that we require for the remote party.
|
LightningApi.ChannelAcceptResponse.Builder |
setError(java.lang.String value)
An optional error to send the initiating party to indicate why the channel
was rejected.
|
LightningApi.ChannelAcceptResponse.Builder |
setErrorBytes(com.google.protobuf.ByteString value)
An optional error to send the initiating party to indicate why the channel
was rejected.
|
LightningApi.ChannelAcceptResponse.Builder |
setInFlightMaxMsat(long value)
The maximum amount of funds in millisatoshis that we allow the remote peer
to have in outstanding htlcs.
|
LightningApi.ChannelAcceptResponse.Builder |
setMaxHtlcCount(int value)
The maximum number of htlcs that the remote peer can offer us.
|
LightningApi.ChannelAcceptResponse.Builder |
setMinAcceptDepth(int value)
The number of confirmations we require before we consider the channel open.
|
LightningApi.ChannelAcceptResponse.Builder |
setMinHtlcIn(long value)
The minimum value in millisatoshis for incoming htlcs on the channel.
|
LightningApi.ChannelAcceptResponse.Builder |
setPendingChanId(com.google.protobuf.ByteString value)
The pending channel id to which this response applies.
|
LightningApi.ChannelAcceptResponse.Builder |
setReserveSat(long value)
The reserve amount in satoshis that we require the remote peer to adhere to.
|
LightningApi.ChannelAcceptResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.ChannelAcceptResponse.Builder |
setUpfrontShutdown(java.lang.String value)
The upfront shutdown address to use if the initiating peer supports option
upfront shutdown script (see ListPeers for the features supported).
|
LightningApi.ChannelAcceptResponse.Builder |
setUpfrontShutdownBytes(com.google.protobuf.ByteString value)
The upfront shutdown address to use if the initiating peer supports option
upfront shutdown script (see ListPeers for the features supported).
|
LightningApi.ChannelAcceptResponse.Builder |
setZeroConf(boolean value)
Whether the responder wants this to be a zero-conf channel.
|
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.ChannelAcceptResponse.Builder>public LightningApi.ChannelAcceptResponse.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.ChannelAcceptResponse.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.ChannelAcceptResponse.Builder>public LightningApi.ChannelAcceptResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LightningApi.ChannelAcceptResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.ChannelAcceptResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.ChannelAcceptResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.ChannelAcceptResponse.Builder>public LightningApi.ChannelAcceptResponse.Builder mergeFrom(LightningApi.ChannelAcceptResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelAcceptResponse.Builder>public LightningApi.ChannelAcceptResponse.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.ChannelAcceptResponse.Builder>java.io.IOExceptionpublic boolean getAccept()
Whether or not the client accepts the channel.
bool accept = 1;getAccept in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setAccept(boolean value)
Whether or not the client accepts the channel.
bool accept = 1;value - The accept to set.public LightningApi.ChannelAcceptResponse.Builder clearAccept()
Whether or not the client accepts the channel.
bool accept = 1;public com.google.protobuf.ByteString getPendingChanId()
The pending channel id to which this response applies.
bytes pending_chan_id = 2;getPendingChanId in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setPendingChanId(com.google.protobuf.ByteString value)
The pending channel id to which this response applies.
bytes pending_chan_id = 2;value - The pendingChanId to set.public LightningApi.ChannelAcceptResponse.Builder clearPendingChanId()
The pending channel id to which this response applies.
bytes pending_chan_id = 2;public java.lang.String getError()
An optional error to send the initiating party to indicate why the channel was rejected. This field *should not* contain sensitive information, it will be sent to the initiating party. This field should only be set if accept is false, the channel will be rejected if an error is set with accept=true because the meaning of this response is ambiguous. Limited to 500 characters.
string error = 3;getError in interface LightningApi.ChannelAcceptResponseOrBuilderpublic com.google.protobuf.ByteString getErrorBytes()
An optional error to send the initiating party to indicate why the channel was rejected. This field *should not* contain sensitive information, it will be sent to the initiating party. This field should only be set if accept is false, the channel will be rejected if an error is set with accept=true because the meaning of this response is ambiguous. Limited to 500 characters.
string error = 3;getErrorBytes in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setError(java.lang.String value)
An optional error to send the initiating party to indicate why the channel was rejected. This field *should not* contain sensitive information, it will be sent to the initiating party. This field should only be set if accept is false, the channel will be rejected if an error is set with accept=true because the meaning of this response is ambiguous. Limited to 500 characters.
string error = 3;value - The error to set.public LightningApi.ChannelAcceptResponse.Builder clearError()
An optional error to send the initiating party to indicate why the channel was rejected. This field *should not* contain sensitive information, it will be sent to the initiating party. This field should only be set if accept is false, the channel will be rejected if an error is set with accept=true because the meaning of this response is ambiguous. Limited to 500 characters.
string error = 3;public LightningApi.ChannelAcceptResponse.Builder setErrorBytes(com.google.protobuf.ByteString value)
An optional error to send the initiating party to indicate why the channel was rejected. This field *should not* contain sensitive information, it will be sent to the initiating party. This field should only be set if accept is false, the channel will be rejected if an error is set with accept=true because the meaning of this response is ambiguous. Limited to 500 characters.
string error = 3;value - The bytes for error to set.public java.lang.String getUpfrontShutdown()
The upfront shutdown address to use if the initiating peer supports option upfront shutdown script (see ListPeers for the features supported). Note that the channel open will fail if this value is set for a peer that does not support this feature bit.
string upfront_shutdown = 4;getUpfrontShutdown in interface LightningApi.ChannelAcceptResponseOrBuilderpublic com.google.protobuf.ByteString getUpfrontShutdownBytes()
The upfront shutdown address to use if the initiating peer supports option upfront shutdown script (see ListPeers for the features supported). Note that the channel open will fail if this value is set for a peer that does not support this feature bit.
string upfront_shutdown = 4;getUpfrontShutdownBytes in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setUpfrontShutdown(java.lang.String value)
The upfront shutdown address to use if the initiating peer supports option upfront shutdown script (see ListPeers for the features supported). Note that the channel open will fail if this value is set for a peer that does not support this feature bit.
string upfront_shutdown = 4;value - The upfrontShutdown to set.public LightningApi.ChannelAcceptResponse.Builder clearUpfrontShutdown()
The upfront shutdown address to use if the initiating peer supports option upfront shutdown script (see ListPeers for the features supported). Note that the channel open will fail if this value is set for a peer that does not support this feature bit.
string upfront_shutdown = 4;public LightningApi.ChannelAcceptResponse.Builder setUpfrontShutdownBytes(com.google.protobuf.ByteString value)
The upfront shutdown address to use if the initiating peer supports option upfront shutdown script (see ListPeers for the features supported). Note that the channel open will fail if this value is set for a peer that does not support this feature bit.
string upfront_shutdown = 4;value - The bytes for upfrontShutdown to set.public int getCsvDelay()
The csv delay (in blocks) that we require for the remote party.
uint32 csv_delay = 5;getCsvDelay in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setCsvDelay(int value)
The csv delay (in blocks) that we require for the remote party.
uint32 csv_delay = 5;value - The csvDelay to set.public LightningApi.ChannelAcceptResponse.Builder clearCsvDelay()
The csv delay (in blocks) that we require for the remote party.
uint32 csv_delay = 5;public long getReserveSat()
The reserve amount in satoshis that we require the remote peer to adhere to. We require that the remote peer always have some reserve amount allocated to them so that there is always a disincentive to broadcast old state (if they hold 0 sats on their side of the channel, there is nothing to lose).
uint64 reserve_sat = 6;getReserveSat in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setReserveSat(long value)
The reserve amount in satoshis that we require the remote peer to adhere to. We require that the remote peer always have some reserve amount allocated to them so that there is always a disincentive to broadcast old state (if they hold 0 sats on their side of the channel, there is nothing to lose).
uint64 reserve_sat = 6;value - The reserveSat to set.public LightningApi.ChannelAcceptResponse.Builder clearReserveSat()
The reserve amount in satoshis that we require the remote peer to adhere to. We require that the remote peer always have some reserve amount allocated to them so that there is always a disincentive to broadcast old state (if they hold 0 sats on their side of the channel, there is nothing to lose).
uint64 reserve_sat = 6;public long getInFlightMaxMsat()
The maximum amount of funds in millisatoshis that we allow the remote peer to have in outstanding htlcs.
uint64 in_flight_max_msat = 7;getInFlightMaxMsat in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setInFlightMaxMsat(long value)
The maximum amount of funds in millisatoshis that we allow the remote peer to have in outstanding htlcs.
uint64 in_flight_max_msat = 7;value - The inFlightMaxMsat to set.public LightningApi.ChannelAcceptResponse.Builder clearInFlightMaxMsat()
The maximum amount of funds in millisatoshis that we allow the remote peer to have in outstanding htlcs.
uint64 in_flight_max_msat = 7;public int getMaxHtlcCount()
The maximum number of htlcs that the remote peer can offer us.
uint32 max_htlc_count = 8;getMaxHtlcCount in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setMaxHtlcCount(int value)
The maximum number of htlcs that the remote peer can offer us.
uint32 max_htlc_count = 8;value - The maxHtlcCount to set.public LightningApi.ChannelAcceptResponse.Builder clearMaxHtlcCount()
The maximum number of htlcs that the remote peer can offer us.
uint32 max_htlc_count = 8;public long getMinHtlcIn()
The minimum value in millisatoshis for incoming htlcs on the channel.
uint64 min_htlc_in = 9;getMinHtlcIn in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setMinHtlcIn(long value)
The minimum value in millisatoshis for incoming htlcs on the channel.
uint64 min_htlc_in = 9;value - The minHtlcIn to set.public LightningApi.ChannelAcceptResponse.Builder clearMinHtlcIn()
The minimum value in millisatoshis for incoming htlcs on the channel.
uint64 min_htlc_in = 9;public int getMinAcceptDepth()
The number of confirmations we require before we consider the channel open.
uint32 min_accept_depth = 10;getMinAcceptDepth in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setMinAcceptDepth(int value)
The number of confirmations we require before we consider the channel open.
uint32 min_accept_depth = 10;value - The minAcceptDepth to set.public LightningApi.ChannelAcceptResponse.Builder clearMinAcceptDepth()
The number of confirmations we require before we consider the channel open.
uint32 min_accept_depth = 10;public boolean getZeroConf()
Whether the responder wants this to be a zero-conf channel. This will fail if either side does not have the scid-alias feature bit set. The minimum depth field must be zero if this is true.
bool zero_conf = 11;getZeroConf in interface LightningApi.ChannelAcceptResponseOrBuilderpublic LightningApi.ChannelAcceptResponse.Builder setZeroConf(boolean value)
Whether the responder wants this to be a zero-conf channel. This will fail if either side does not have the scid-alias feature bit set. The minimum depth field must be zero if this is true.
bool zero_conf = 11;value - The zeroConf to set.public LightningApi.ChannelAcceptResponse.Builder clearZeroConf()
Whether the responder wants this to be a zero-conf channel. This will fail if either side does not have the scid-alias feature bit set. The minimum depth field must be zero if this is true.
bool zero_conf = 11;public final LightningApi.ChannelAcceptResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelAcceptResponse.Builder>public final LightningApi.ChannelAcceptResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelAcceptResponse.Builder>