public static final class LightningApi.ChannelAcceptRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelAcceptRequest.Builder> implements LightningApi.ChannelAcceptRequestOrBuilder
lnrpc.ChannelAcceptRequest
Modifier and Type | Method and Description |
---|---|
LightningApi.ChannelAcceptRequest |
build() |
LightningApi.ChannelAcceptRequest |
buildPartial() |
LightningApi.ChannelAcceptRequest.Builder |
clear() |
LightningApi.ChannelAcceptRequest.Builder |
clearChainHash()
The hash of the genesis block that the proposed channel resides in.
|
LightningApi.ChannelAcceptRequest.Builder |
clearChannelFlags()
A bit-field which the initiator uses to specify proposed channel
behavior.
|
LightningApi.ChannelAcceptRequest.Builder |
clearChannelReserve()
The minimum amount of satoshis the initiator requires us to have at all
times.
|
LightningApi.ChannelAcceptRequest.Builder |
clearCommitmentType()
The commitment type the initiator wishes to use for the proposed channel.
|
LightningApi.ChannelAcceptRequest.Builder |
clearCsvDelay()
The number of blocks to use for the relative time lock in the pay-to-self
output of both commitment transactions.
|
LightningApi.ChannelAcceptRequest.Builder |
clearDustLimit()
The dust limit of the initiator's commitment tx.
|
LightningApi.ChannelAcceptRequest.Builder |
clearFeePerKw()
The initial fee rate that the initiator suggests for both commitment
transactions.
|
LightningApi.ChannelAcceptRequest.Builder |
clearFundingAmt()
The funding amount in satoshis that initiator wishes to use in the
channel.
|
LightningApi.ChannelAcceptRequest.Builder |
clearMaxAcceptedHtlcs()
The total number of incoming HTLC's that the initiator will accept.
|
LightningApi.ChannelAcceptRequest.Builder |
clearMaxValueInFlight()
The maximum amount of coins in millisatoshis that can be pending in this
channel.
|
LightningApi.ChannelAcceptRequest.Builder |
clearMinHtlc()
The smallest HTLC in millisatoshis that the initiator will accept.
|
LightningApi.ChannelAcceptRequest.Builder |
clearNodePubkey()
The pubkey of the node that wishes to open an inbound channel.
|
LightningApi.ChannelAcceptRequest.Builder |
clearPendingChanId()
The pending channel id.
|
LightningApi.ChannelAcceptRequest.Builder |
clearPushAmt()
The push amount of the proposed channel in millisatoshis.
|
LightningApi.ChannelAcceptRequest.Builder |
clearWantsScidAlias()
Whether the initiator wants to use the scid-alias channel type.
|
LightningApi.ChannelAcceptRequest.Builder |
clearWantsZeroConf()
Whether the initiator wants to open a zero-conf channel via the channel
type.
|
com.google.protobuf.ByteString |
getChainHash()
The hash of the genesis block that the proposed channel resides in.
|
int |
getChannelFlags()
A bit-field which the initiator uses to specify proposed channel
behavior.
|
long |
getChannelReserve()
The minimum amount of satoshis the initiator requires us to have at all
times.
|
LightningApi.CommitmentType |
getCommitmentType()
The commitment type the initiator wishes to use for the proposed channel.
|
int |
getCommitmentTypeValue()
The commitment type the initiator wishes to use for the proposed channel.
|
int |
getCsvDelay()
The number of blocks to use for the relative time lock in the pay-to-self
output of both commitment transactions.
|
LightningApi.ChannelAcceptRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getDustLimit()
The dust limit of the initiator's commitment tx.
|
long |
getFeePerKw()
The initial fee rate that the initiator suggests for both commitment
transactions.
|
long |
getFundingAmt()
The funding amount in satoshis that initiator wishes to use in the
channel.
|
int |
getMaxAcceptedHtlcs()
The total number of incoming HTLC's that the initiator will accept.
|
long |
getMaxValueInFlight()
The maximum amount of coins in millisatoshis that can be pending in this
channel.
|
long |
getMinHtlc()
The smallest HTLC in millisatoshis that the initiator will accept.
|
com.google.protobuf.ByteString |
getNodePubkey()
The pubkey of the node that wishes to open an inbound channel.
|
com.google.protobuf.ByteString |
getPendingChanId()
The pending channel id.
|
long |
getPushAmt()
The push amount of the proposed channel in millisatoshis.
|
boolean |
getWantsScidAlias()
Whether the initiator wants to use the scid-alias channel type.
|
boolean |
getWantsZeroConf()
Whether the initiator wants to open a zero-conf channel via the channel
type.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.ChannelAcceptRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.ChannelAcceptRequest.Builder |
mergeFrom(LightningApi.ChannelAcceptRequest other) |
LightningApi.ChannelAcceptRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.ChannelAcceptRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.ChannelAcceptRequest.Builder |
setChainHash(com.google.protobuf.ByteString value)
The hash of the genesis block that the proposed channel resides in.
|
LightningApi.ChannelAcceptRequest.Builder |
setChannelFlags(int value)
A bit-field which the initiator uses to specify proposed channel
behavior.
|
LightningApi.ChannelAcceptRequest.Builder |
setChannelReserve(long value)
The minimum amount of satoshis the initiator requires us to have at all
times.
|
LightningApi.ChannelAcceptRequest.Builder |
setCommitmentType(LightningApi.CommitmentType value)
The commitment type the initiator wishes to use for the proposed channel.
|
LightningApi.ChannelAcceptRequest.Builder |
setCommitmentTypeValue(int value)
The commitment type the initiator wishes to use for the proposed channel.
|
LightningApi.ChannelAcceptRequest.Builder |
setCsvDelay(int value)
The number of blocks to use for the relative time lock in the pay-to-self
output of both commitment transactions.
|
LightningApi.ChannelAcceptRequest.Builder |
setDustLimit(long value)
The dust limit of the initiator's commitment tx.
|
LightningApi.ChannelAcceptRequest.Builder |
setFeePerKw(long value)
The initial fee rate that the initiator suggests for both commitment
transactions.
|
LightningApi.ChannelAcceptRequest.Builder |
setFundingAmt(long value)
The funding amount in satoshis that initiator wishes to use in the
channel.
|
LightningApi.ChannelAcceptRequest.Builder |
setMaxAcceptedHtlcs(int value)
The total number of incoming HTLC's that the initiator will accept.
|
LightningApi.ChannelAcceptRequest.Builder |
setMaxValueInFlight(long value)
The maximum amount of coins in millisatoshis that can be pending in this
channel.
|
LightningApi.ChannelAcceptRequest.Builder |
setMinHtlc(long value)
The smallest HTLC in millisatoshis that the initiator will accept.
|
LightningApi.ChannelAcceptRequest.Builder |
setNodePubkey(com.google.protobuf.ByteString value)
The pubkey of the node that wishes to open an inbound channel.
|
LightningApi.ChannelAcceptRequest.Builder |
setPendingChanId(com.google.protobuf.ByteString value)
The pending channel id.
|
LightningApi.ChannelAcceptRequest.Builder |
setPushAmt(long value)
The push amount of the proposed channel in millisatoshis.
|
LightningApi.ChannelAcceptRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.ChannelAcceptRequest.Builder |
setWantsScidAlias(boolean value)
Whether the initiator wants to use the scid-alias channel type.
|
LightningApi.ChannelAcceptRequest.Builder |
setWantsZeroConf(boolean value)
Whether the initiator wants to open a zero-conf channel via the channel
type.
|
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.ChannelAcceptRequest.Builder>
public LightningApi.ChannelAcceptRequest.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.ChannelAcceptRequest.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.ChannelAcceptRequest.Builder>
public LightningApi.ChannelAcceptRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.ChannelAcceptRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.ChannelAcceptRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.ChannelAcceptRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.ChannelAcceptRequest.Builder>
public LightningApi.ChannelAcceptRequest.Builder mergeFrom(LightningApi.ChannelAcceptRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelAcceptRequest.Builder>
public LightningApi.ChannelAcceptRequest.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.ChannelAcceptRequest.Builder>
java.io.IOException
public com.google.protobuf.ByteString getNodePubkey()
The pubkey of the node that wishes to open an inbound channel.
bytes node_pubkey = 1;
getNodePubkey
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setNodePubkey(com.google.protobuf.ByteString value)
The pubkey of the node that wishes to open an inbound channel.
bytes node_pubkey = 1;
value
- The nodePubkey to set.public LightningApi.ChannelAcceptRequest.Builder clearNodePubkey()
The pubkey of the node that wishes to open an inbound channel.
bytes node_pubkey = 1;
public com.google.protobuf.ByteString getChainHash()
The hash of the genesis block that the proposed channel resides in.
bytes chain_hash = 2;
getChainHash
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setChainHash(com.google.protobuf.ByteString value)
The hash of the genesis block that the proposed channel resides in.
bytes chain_hash = 2;
value
- The chainHash to set.public LightningApi.ChannelAcceptRequest.Builder clearChainHash()
The hash of the genesis block that the proposed channel resides in.
bytes chain_hash = 2;
public com.google.protobuf.ByteString getPendingChanId()
The pending channel id.
bytes pending_chan_id = 3;
getPendingChanId
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setPendingChanId(com.google.protobuf.ByteString value)
The pending channel id.
bytes pending_chan_id = 3;
value
- The pendingChanId to set.public LightningApi.ChannelAcceptRequest.Builder clearPendingChanId()
The pending channel id.
bytes pending_chan_id = 3;
public long getFundingAmt()
The funding amount in satoshis that initiator wishes to use in the channel.
uint64 funding_amt = 4;
getFundingAmt
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setFundingAmt(long value)
The funding amount in satoshis that initiator wishes to use in the channel.
uint64 funding_amt = 4;
value
- The fundingAmt to set.public LightningApi.ChannelAcceptRequest.Builder clearFundingAmt()
The funding amount in satoshis that initiator wishes to use in the channel.
uint64 funding_amt = 4;
public long getPushAmt()
The push amount of the proposed channel in millisatoshis.
uint64 push_amt = 5;
getPushAmt
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setPushAmt(long value)
The push amount of the proposed channel in millisatoshis.
uint64 push_amt = 5;
value
- The pushAmt to set.public LightningApi.ChannelAcceptRequest.Builder clearPushAmt()
The push amount of the proposed channel in millisatoshis.
uint64 push_amt = 5;
public long getDustLimit()
The dust limit of the initiator's commitment tx.
uint64 dust_limit = 6;
getDustLimit
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setDustLimit(long value)
The dust limit of the initiator's commitment tx.
uint64 dust_limit = 6;
value
- The dustLimit to set.public LightningApi.ChannelAcceptRequest.Builder clearDustLimit()
The dust limit of the initiator's commitment tx.
uint64 dust_limit = 6;
public long getMaxValueInFlight()
The maximum amount of coins in millisatoshis that can be pending in this channel.
uint64 max_value_in_flight = 7;
getMaxValueInFlight
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setMaxValueInFlight(long value)
The maximum amount of coins in millisatoshis that can be pending in this channel.
uint64 max_value_in_flight = 7;
value
- The maxValueInFlight to set.public LightningApi.ChannelAcceptRequest.Builder clearMaxValueInFlight()
The maximum amount of coins in millisatoshis that can be pending in this channel.
uint64 max_value_in_flight = 7;
public long getChannelReserve()
The minimum amount of satoshis the initiator requires us to have at all times.
uint64 channel_reserve = 8;
getChannelReserve
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setChannelReserve(long value)
The minimum amount of satoshis the initiator requires us to have at all times.
uint64 channel_reserve = 8;
value
- The channelReserve to set.public LightningApi.ChannelAcceptRequest.Builder clearChannelReserve()
The minimum amount of satoshis the initiator requires us to have at all times.
uint64 channel_reserve = 8;
public long getMinHtlc()
The smallest HTLC in millisatoshis that the initiator will accept.
uint64 min_htlc = 9;
getMinHtlc
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setMinHtlc(long value)
The smallest HTLC in millisatoshis that the initiator will accept.
uint64 min_htlc = 9;
value
- The minHtlc to set.public LightningApi.ChannelAcceptRequest.Builder clearMinHtlc()
The smallest HTLC in millisatoshis that the initiator will accept.
uint64 min_htlc = 9;
public long getFeePerKw()
The initial fee rate that the initiator suggests for both commitment transactions.
uint64 fee_per_kw = 10;
getFeePerKw
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setFeePerKw(long value)
The initial fee rate that the initiator suggests for both commitment transactions.
uint64 fee_per_kw = 10;
value
- The feePerKw to set.public LightningApi.ChannelAcceptRequest.Builder clearFeePerKw()
The initial fee rate that the initiator suggests for both commitment transactions.
uint64 fee_per_kw = 10;
public int getCsvDelay()
The number of blocks to use for the relative time lock in the pay-to-self output of both commitment transactions.
uint32 csv_delay = 11;
getCsvDelay
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setCsvDelay(int value)
The number of blocks to use for the relative time lock in the pay-to-self output of both commitment transactions.
uint32 csv_delay = 11;
value
- The csvDelay to set.public LightningApi.ChannelAcceptRequest.Builder clearCsvDelay()
The number of blocks to use for the relative time lock in the pay-to-self output of both commitment transactions.
uint32 csv_delay = 11;
public int getMaxAcceptedHtlcs()
The total number of incoming HTLC's that the initiator will accept.
uint32 max_accepted_htlcs = 12;
getMaxAcceptedHtlcs
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setMaxAcceptedHtlcs(int value)
The total number of incoming HTLC's that the initiator will accept.
uint32 max_accepted_htlcs = 12;
value
- The maxAcceptedHtlcs to set.public LightningApi.ChannelAcceptRequest.Builder clearMaxAcceptedHtlcs()
The total number of incoming HTLC's that the initiator will accept.
uint32 max_accepted_htlcs = 12;
public int getChannelFlags()
A bit-field which the initiator uses to specify proposed channel behavior.
uint32 channel_flags = 13;
getChannelFlags
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setChannelFlags(int value)
A bit-field which the initiator uses to specify proposed channel behavior.
uint32 channel_flags = 13;
value
- The channelFlags to set.public LightningApi.ChannelAcceptRequest.Builder clearChannelFlags()
A bit-field which the initiator uses to specify proposed channel behavior.
uint32 channel_flags = 13;
public int getCommitmentTypeValue()
The commitment type the initiator wishes to use for the proposed channel.
.lnrpc.CommitmentType commitment_type = 14;
getCommitmentTypeValue
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setCommitmentTypeValue(int value)
The commitment type the initiator wishes to use for the proposed channel.
.lnrpc.CommitmentType commitment_type = 14;
value
- The enum numeric value on the wire for commitmentType to set.public LightningApi.CommitmentType getCommitmentType()
The commitment type the initiator wishes to use for the proposed channel.
.lnrpc.CommitmentType commitment_type = 14;
getCommitmentType
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setCommitmentType(LightningApi.CommitmentType value)
The commitment type the initiator wishes to use for the proposed channel.
.lnrpc.CommitmentType commitment_type = 14;
value
- The commitmentType to set.public LightningApi.ChannelAcceptRequest.Builder clearCommitmentType()
The commitment type the initiator wishes to use for the proposed channel.
.lnrpc.CommitmentType commitment_type = 14;
public boolean getWantsZeroConf()
Whether the initiator wants to open a zero-conf channel via the channel type.
bool wants_zero_conf = 15;
getWantsZeroConf
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setWantsZeroConf(boolean value)
Whether the initiator wants to open a zero-conf channel via the channel type.
bool wants_zero_conf = 15;
value
- The wantsZeroConf to set.public LightningApi.ChannelAcceptRequest.Builder clearWantsZeroConf()
Whether the initiator wants to open a zero-conf channel via the channel type.
bool wants_zero_conf = 15;
public boolean getWantsScidAlias()
Whether the initiator wants to use the scid-alias channel type. This is separate from the feature bit.
bool wants_scid_alias = 16;
getWantsScidAlias
in interface LightningApi.ChannelAcceptRequestOrBuilder
public LightningApi.ChannelAcceptRequest.Builder setWantsScidAlias(boolean value)
Whether the initiator wants to use the scid-alias channel type. This is separate from the feature bit.
bool wants_scid_alias = 16;
value
- The wantsScidAlias to set.public LightningApi.ChannelAcceptRequest.Builder clearWantsScidAlias()
Whether the initiator wants to use the scid-alias channel type. This is separate from the feature bit.
bool wants_scid_alias = 16;
public final LightningApi.ChannelAcceptRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelAcceptRequest.Builder>
public final LightningApi.ChannelAcceptRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelAcceptRequest.Builder>