public static final class LightningApi.ChannelAcceptResponse extends com.google.protobuf.GeneratedMessageV3 implements LightningApi.ChannelAcceptResponseOrBuilder
lnrpc.ChannelAcceptResponse| Modifier and Type | Class and Description |
|---|---|
static class |
LightningApi.ChannelAcceptResponse.Builder
Protobuf type
lnrpc.ChannelAcceptResponse |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ACCEPT_FIELD_NUMBER |
static int |
CSV_DELAY_FIELD_NUMBER |
static int |
ERROR_FIELD_NUMBER |
static int |
IN_FLIGHT_MAX_MSAT_FIELD_NUMBER |
static int |
MAX_HTLC_COUNT_FIELD_NUMBER |
static int |
MIN_ACCEPT_DEPTH_FIELD_NUMBER |
static int |
MIN_HTLC_IN_FIELD_NUMBER |
static int |
PENDING_CHAN_ID_FIELD_NUMBER |
static int |
RESERVE_SAT_FIELD_NUMBER |
static int |
UPFRONT_SHUTDOWN_FIELD_NUMBER |
static int |
ZERO_CONF_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getAccept()
Whether or not the client accepts the channel.
|
int |
getCsvDelay()
The csv delay (in blocks) that we require for the remote party.
|
static LightningApi.ChannelAcceptResponse |
getDefaultInstance() |
LightningApi.ChannelAcceptResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.Parser<LightningApi.ChannelAcceptResponse> |
getParserForType() |
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.
|
int |
getSerializedSize() |
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.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LightningApi.ChannelAcceptResponse.Builder |
newBuilder() |
static LightningApi.ChannelAcceptResponse.Builder |
newBuilder(LightningApi.ChannelAcceptResponse prototype) |
LightningApi.ChannelAcceptResponse.Builder |
newBuilderForType() |
protected LightningApi.ChannelAcceptResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LightningApi.ChannelAcceptResponse |
parseDelimitedFrom(java.io.InputStream input) |
static LightningApi.ChannelAcceptResponse |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelAcceptResponse |
parseFrom(byte[] data) |
static LightningApi.ChannelAcceptResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelAcceptResponse |
parseFrom(java.nio.ByteBuffer data) |
static LightningApi.ChannelAcceptResponse |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelAcceptResponse |
parseFrom(com.google.protobuf.ByteString data) |
static LightningApi.ChannelAcceptResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelAcceptResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LightningApi.ChannelAcceptResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelAcceptResponse |
parseFrom(java.io.InputStream input) |
static LightningApi.ChannelAcceptResponse |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LightningApi.ChannelAcceptResponse> |
parser() |
LightningApi.ChannelAcceptResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ACCEPT_FIELD_NUMBER
public static final int PENDING_CHAN_ID_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
public static final int UPFRONT_SHUTDOWN_FIELD_NUMBER
public static final int CSV_DELAY_FIELD_NUMBER
public static final int RESERVE_SAT_FIELD_NUMBER
public static final int IN_FLIGHT_MAX_MSAT_FIELD_NUMBER
public static final int MAX_HTLC_COUNT_FIELD_NUMBER
public static final int MIN_HTLC_IN_FIELD_NUMBER
public static final int MIN_ACCEPT_DEPTH_FIELD_NUMBER
public static final int ZERO_CONF_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean getAccept()
Whether or not the client accepts the channel.
bool accept = 1;getAccept in interface LightningApi.ChannelAcceptResponseOrBuilderpublic com.google.protobuf.ByteString getPendingChanId()
The pending channel id to which this response applies.
bytes pending_chan_id = 2;getPendingChanId in interface LightningApi.ChannelAcceptResponseOrBuilderpublic 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 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 int getCsvDelay()
The csv delay (in blocks) that we require for the remote party.
uint32 csv_delay = 5;getCsvDelay in interface LightningApi.ChannelAcceptResponseOrBuilderpublic 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 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 int getMaxHtlcCount()
The maximum number of htlcs that the remote peer can offer us.
uint32 max_htlc_count = 8;getMaxHtlcCount in interface LightningApi.ChannelAcceptResponseOrBuilderpublic long getMinHtlcIn()
The minimum value in millisatoshis for incoming htlcs on the channel.
uint64 min_htlc_in = 9;getMinHtlcIn in interface LightningApi.ChannelAcceptResponseOrBuilderpublic int getMinAcceptDepth()
The number of confirmations we require before we consider the channel open.
uint32 min_accept_depth = 10;getMinAcceptDepth in interface LightningApi.ChannelAcceptResponseOrBuilderpublic 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LightningApi.ChannelAcceptResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelAcceptResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelAcceptResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelAcceptResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelAcceptResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelAcceptResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelAcceptResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelAcceptResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelAcceptResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelAcceptResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelAcceptResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelAcceptResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic LightningApi.ChannelAcceptResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LightningApi.ChannelAcceptResponse.Builder newBuilder()
public static LightningApi.ChannelAcceptResponse.Builder newBuilder(LightningApi.ChannelAcceptResponse prototype)
public LightningApi.ChannelAcceptResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LightningApi.ChannelAcceptResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LightningApi.ChannelAcceptResponse getDefaultInstance()
public static com.google.protobuf.Parser<LightningApi.ChannelAcceptResponse> parser()
public com.google.protobuf.Parser<LightningApi.ChannelAcceptResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LightningApi.ChannelAcceptResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder