public static final class LightningApi.ConnectPeerRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ConnectPeerRequest.Builder> implements LightningApi.ConnectPeerRequestOrBuilder
lnrpc.ConnectPeerRequest
Modifier and Type | Method and Description |
---|---|
LightningApi.ConnectPeerRequest |
build() |
LightningApi.ConnectPeerRequest |
buildPartial() |
LightningApi.ConnectPeerRequest.Builder |
clear() |
LightningApi.ConnectPeerRequest.Builder |
clearAddr()
Lightning address of the peer to connect to.
|
LightningApi.ConnectPeerRequest.Builder |
clearPerm()
If set, the daemon will attempt to persistently connect to the target
peer.
|
LightningApi.ConnectPeerRequest.Builder |
clearTimeout()
The connection timeout value (in seconds) for this request.
|
LightningApi.LightningAddress |
getAddr()
Lightning address of the peer to connect to.
|
LightningApi.LightningAddress.Builder |
getAddrBuilder()
Lightning address of the peer to connect to.
|
LightningApi.LightningAddressOrBuilder |
getAddrOrBuilder()
Lightning address of the peer to connect to.
|
LightningApi.ConnectPeerRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getPerm()
If set, the daemon will attempt to persistently connect to the target
peer.
|
long |
getTimeout()
The connection timeout value (in seconds) for this request.
|
boolean |
hasAddr()
Lightning address of the peer to connect to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.ConnectPeerRequest.Builder |
mergeAddr(LightningApi.LightningAddress value)
Lightning address of the peer to connect to.
|
LightningApi.ConnectPeerRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.ConnectPeerRequest.Builder |
mergeFrom(LightningApi.ConnectPeerRequest other) |
LightningApi.ConnectPeerRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.ConnectPeerRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.ConnectPeerRequest.Builder |
setAddr(LightningApi.LightningAddress.Builder builderForValue)
Lightning address of the peer to connect to.
|
LightningApi.ConnectPeerRequest.Builder |
setAddr(LightningApi.LightningAddress value)
Lightning address of the peer to connect to.
|
LightningApi.ConnectPeerRequest.Builder |
setPerm(boolean value)
If set, the daemon will attempt to persistently connect to the target
peer.
|
LightningApi.ConnectPeerRequest.Builder |
setTimeout(long value)
The connection timeout value (in seconds) for this request.
|
LightningApi.ConnectPeerRequest.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.ConnectPeerRequest.Builder>
public LightningApi.ConnectPeerRequest.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.ConnectPeerRequest.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.ConnectPeerRequest.Builder>
public LightningApi.ConnectPeerRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.ConnectPeerRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.ConnectPeerRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.ConnectPeerRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.ConnectPeerRequest.Builder>
public LightningApi.ConnectPeerRequest.Builder mergeFrom(LightningApi.ConnectPeerRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ConnectPeerRequest.Builder>
public LightningApi.ConnectPeerRequest.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.ConnectPeerRequest.Builder>
java.io.IOException
public boolean hasAddr()
Lightning address of the peer to connect to.
.lnrpc.LightningAddress addr = 1;
hasAddr
in interface LightningApi.ConnectPeerRequestOrBuilder
public LightningApi.LightningAddress getAddr()
Lightning address of the peer to connect to.
.lnrpc.LightningAddress addr = 1;
getAddr
in interface LightningApi.ConnectPeerRequestOrBuilder
public LightningApi.ConnectPeerRequest.Builder setAddr(LightningApi.LightningAddress value)
Lightning address of the peer to connect to.
.lnrpc.LightningAddress addr = 1;
public LightningApi.ConnectPeerRequest.Builder setAddr(LightningApi.LightningAddress.Builder builderForValue)
Lightning address of the peer to connect to.
.lnrpc.LightningAddress addr = 1;
public LightningApi.ConnectPeerRequest.Builder mergeAddr(LightningApi.LightningAddress value)
Lightning address of the peer to connect to.
.lnrpc.LightningAddress addr = 1;
public LightningApi.ConnectPeerRequest.Builder clearAddr()
Lightning address of the peer to connect to.
.lnrpc.LightningAddress addr = 1;
public LightningApi.LightningAddress.Builder getAddrBuilder()
Lightning address of the peer to connect to.
.lnrpc.LightningAddress addr = 1;
public LightningApi.LightningAddressOrBuilder getAddrOrBuilder()
Lightning address of the peer to connect to.
.lnrpc.LightningAddress addr = 1;
getAddrOrBuilder
in interface LightningApi.ConnectPeerRequestOrBuilder
public boolean getPerm()
If set, the daemon will attempt to persistently connect to the target peer. Otherwise, the call will be synchronous.
bool perm = 2;
getPerm
in interface LightningApi.ConnectPeerRequestOrBuilder
public LightningApi.ConnectPeerRequest.Builder setPerm(boolean value)
If set, the daemon will attempt to persistently connect to the target peer. Otherwise, the call will be synchronous.
bool perm = 2;
value
- The perm to set.public LightningApi.ConnectPeerRequest.Builder clearPerm()
If set, the daemon will attempt to persistently connect to the target peer. Otherwise, the call will be synchronous.
bool perm = 2;
public long getTimeout()
The connection timeout value (in seconds) for this request. It won't affect other requests.
uint64 timeout = 3;
getTimeout
in interface LightningApi.ConnectPeerRequestOrBuilder
public LightningApi.ConnectPeerRequest.Builder setTimeout(long value)
The connection timeout value (in seconds) for this request. It won't affect other requests.
uint64 timeout = 3;
value
- The timeout to set.public LightningApi.ConnectPeerRequest.Builder clearTimeout()
The connection timeout value (in seconds) for this request. It won't affect other requests.
uint64 timeout = 3;
public final LightningApi.ConnectPeerRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ConnectPeerRequest.Builder>
public final LightningApi.ConnectPeerRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ConnectPeerRequest.Builder>