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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean getAccept()
Whether or not the client accepts the channel.
bool accept = 1;
getAccept
in interface LightningApi.ChannelAcceptResponseOrBuilder
public com.google.protobuf.ByteString getPendingChanId()
The pending channel id to which this response applies.
bytes pending_chan_id = 2;
getPendingChanId
in interface LightningApi.ChannelAcceptResponseOrBuilder
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.ChannelAcceptResponseOrBuilder
public 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.ChannelAcceptResponseOrBuilder
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.ChannelAcceptResponseOrBuilder
public 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.ChannelAcceptResponseOrBuilder
public int getCsvDelay()
The csv delay (in blocks) that we require for the remote party.
uint32 csv_delay = 5;
getCsvDelay
in interface LightningApi.ChannelAcceptResponseOrBuilder
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.ChannelAcceptResponseOrBuilder
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.ChannelAcceptResponseOrBuilder
public int getMaxHtlcCount()
The maximum number of htlcs that the remote peer can offer us.
uint32 max_htlc_count = 8;
getMaxHtlcCount
in interface LightningApi.ChannelAcceptResponseOrBuilder
public long getMinHtlcIn()
The minimum value in millisatoshis for incoming htlcs on the channel.
uint64 min_htlc_in = 9;
getMinHtlcIn
in interface LightningApi.ChannelAcceptResponseOrBuilder
public int getMinAcceptDepth()
The number of confirmations we require before we consider the channel open.
uint32 min_accept_depth = 10;
getMinAcceptDepth
in interface LightningApi.ChannelAcceptResponseOrBuilder
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.ChannelAcceptResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static LightningApi.ChannelAcceptResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelAcceptResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelAcceptResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelAcceptResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelAcceptResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelAcceptResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelAcceptResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelAcceptResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelAcceptResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelAcceptResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelAcceptResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelAcceptResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public LightningApi.ChannelAcceptResponse.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected LightningApi.ChannelAcceptResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public LightningApi.ChannelAcceptResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder