public static final class LightningApi.WalletBalanceResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.WalletBalanceResponse.Builder> implements LightningApi.WalletBalanceResponseOrBuilder
lnrpc.WalletBalanceResponse| Modifier and Type | Method and Description |
|---|---|
LightningApi.WalletBalanceResponse |
build() |
LightningApi.WalletBalanceResponse |
buildPartial() |
LightningApi.WalletBalanceResponse.Builder |
clear() |
LightningApi.WalletBalanceResponse.Builder |
clearAccountBalance() |
LightningApi.WalletBalanceResponse.Builder |
clearConfirmedBalance()
The confirmed balance of a wallet(with >= 1 confirmations)
|
LightningApi.WalletBalanceResponse.Builder |
clearLockedBalance()
The total amount of wallet UTXOs held in outputs that are locked for
other usage.
|
LightningApi.WalletBalanceResponse.Builder |
clearReservedBalanceAnchorChan()
The amount of reserve required.
|
LightningApi.WalletBalanceResponse.Builder |
clearTotalBalance()
The balance of the wallet
|
LightningApi.WalletBalanceResponse.Builder |
clearUnconfirmedBalance()
The unconfirmed balance of a wallet(with 0 confirmations)
|
boolean |
containsAccountBalance(java.lang.String key)
A mapping of each wallet account's name to its balance.
|
java.util.Map<java.lang.String,LightningApi.WalletAccountBalance> |
getAccountBalance()
Deprecated.
|
int |
getAccountBalanceCount()
A mapping of each wallet account's name to its balance.
|
java.util.Map<java.lang.String,LightningApi.WalletAccountBalance> |
getAccountBalanceMap()
A mapping of each wallet account's name to its balance.
|
LightningApi.WalletAccountBalance |
getAccountBalanceOrDefault(java.lang.String key,
LightningApi.WalletAccountBalance defaultValue)
A mapping of each wallet account's name to its balance.
|
LightningApi.WalletAccountBalance |
getAccountBalanceOrThrow(java.lang.String key)
A mapping of each wallet account's name to its balance.
|
long |
getConfirmedBalance()
The confirmed balance of a wallet(with >= 1 confirmations)
|
LightningApi.WalletBalanceResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getLockedBalance()
The total amount of wallet UTXOs held in outputs that are locked for
other usage.
|
java.util.Map<java.lang.String,LightningApi.WalletAccountBalance> |
getMutableAccountBalance()
Deprecated.
|
long |
getReservedBalanceAnchorChan()
The amount of reserve required.
|
long |
getTotalBalance()
The balance of the wallet
|
long |
getUnconfirmedBalance()
The unconfirmed balance of a wallet(with 0 confirmations)
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
LightningApi.WalletBalanceResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.WalletBalanceResponse.Builder |
mergeFrom(LightningApi.WalletBalanceResponse other) |
LightningApi.WalletBalanceResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.WalletBalanceResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.WalletBalanceResponse.Builder |
putAccountBalance(java.lang.String key,
LightningApi.WalletAccountBalance value)
A mapping of each wallet account's name to its balance.
|
LightningApi.WalletBalanceResponse.Builder |
putAllAccountBalance(java.util.Map<java.lang.String,LightningApi.WalletAccountBalance> values)
A mapping of each wallet account's name to its balance.
|
LightningApi.WalletBalanceResponse.Builder |
removeAccountBalance(java.lang.String key)
A mapping of each wallet account's name to its balance.
|
LightningApi.WalletBalanceResponse.Builder |
setConfirmedBalance(long value)
The confirmed balance of a wallet(with >= 1 confirmations)
|
LightningApi.WalletBalanceResponse.Builder |
setLockedBalance(long value)
The total amount of wallet UTXOs held in outputs that are locked for
other usage.
|
LightningApi.WalletBalanceResponse.Builder |
setReservedBalanceAnchorChan(long value)
The amount of reserve required.
|
LightningApi.WalletBalanceResponse.Builder |
setTotalBalance(long value)
The balance of the wallet
|
LightningApi.WalletBalanceResponse.Builder |
setUnconfirmedBalance(long value)
The unconfirmed balance of a wallet(with 0 confirmations)
|
LightningApi.WalletBalanceResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, 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.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.WalletBalanceResponse.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.WalletBalanceResponse.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.WalletBalanceResponse.Builder>public LightningApi.WalletBalanceResponse.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.WalletBalanceResponse.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.WalletBalanceResponse.Builder>public LightningApi.WalletBalanceResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LightningApi.WalletBalanceResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.WalletBalanceResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.WalletBalanceResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.WalletBalanceResponse.Builder>public LightningApi.WalletBalanceResponse.Builder mergeFrom(LightningApi.WalletBalanceResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.WalletBalanceResponse.Builder>public LightningApi.WalletBalanceResponse.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.WalletBalanceResponse.Builder>java.io.IOExceptionpublic long getTotalBalance()
The balance of the wallet
int64 total_balance = 1;getTotalBalance in interface LightningApi.WalletBalanceResponseOrBuilderpublic LightningApi.WalletBalanceResponse.Builder setTotalBalance(long value)
The balance of the wallet
int64 total_balance = 1;value - The totalBalance to set.public LightningApi.WalletBalanceResponse.Builder clearTotalBalance()
The balance of the wallet
int64 total_balance = 1;public long getConfirmedBalance()
The confirmed balance of a wallet(with >= 1 confirmations)
int64 confirmed_balance = 2;getConfirmedBalance in interface LightningApi.WalletBalanceResponseOrBuilderpublic LightningApi.WalletBalanceResponse.Builder setConfirmedBalance(long value)
The confirmed balance of a wallet(with >= 1 confirmations)
int64 confirmed_balance = 2;value - The confirmedBalance to set.public LightningApi.WalletBalanceResponse.Builder clearConfirmedBalance()
The confirmed balance of a wallet(with >= 1 confirmations)
int64 confirmed_balance = 2;public long getUnconfirmedBalance()
The unconfirmed balance of a wallet(with 0 confirmations)
int64 unconfirmed_balance = 3;getUnconfirmedBalance in interface LightningApi.WalletBalanceResponseOrBuilderpublic LightningApi.WalletBalanceResponse.Builder setUnconfirmedBalance(long value)
The unconfirmed balance of a wallet(with 0 confirmations)
int64 unconfirmed_balance = 3;value - The unconfirmedBalance to set.public LightningApi.WalletBalanceResponse.Builder clearUnconfirmedBalance()
The unconfirmed balance of a wallet(with 0 confirmations)
int64 unconfirmed_balance = 3;public long getLockedBalance()
The total amount of wallet UTXOs held in outputs that are locked for other usage.
int64 locked_balance = 5;getLockedBalance in interface LightningApi.WalletBalanceResponseOrBuilderpublic LightningApi.WalletBalanceResponse.Builder setLockedBalance(long value)
The total amount of wallet UTXOs held in outputs that are locked for other usage.
int64 locked_balance = 5;value - The lockedBalance to set.public LightningApi.WalletBalanceResponse.Builder clearLockedBalance()
The total amount of wallet UTXOs held in outputs that are locked for other usage.
int64 locked_balance = 5;public long getReservedBalanceAnchorChan()
The amount of reserve required.
int64 reserved_balance_anchor_chan = 6;getReservedBalanceAnchorChan in interface LightningApi.WalletBalanceResponseOrBuilderpublic LightningApi.WalletBalanceResponse.Builder setReservedBalanceAnchorChan(long value)
The amount of reserve required.
int64 reserved_balance_anchor_chan = 6;value - The reservedBalanceAnchorChan to set.public LightningApi.WalletBalanceResponse.Builder clearReservedBalanceAnchorChan()
The amount of reserve required.
int64 reserved_balance_anchor_chan = 6;public int getAccountBalanceCount()
LightningApi.WalletBalanceResponseOrBuilderA mapping of each wallet account's name to its balance.
map<string, .lnrpc.WalletAccountBalance> account_balance = 4;getAccountBalanceCount in interface LightningApi.WalletBalanceResponseOrBuilderpublic boolean containsAccountBalance(java.lang.String key)
A mapping of each wallet account's name to its balance.
map<string, .lnrpc.WalletAccountBalance> account_balance = 4;containsAccountBalance in interface LightningApi.WalletBalanceResponseOrBuilder@Deprecated public java.util.Map<java.lang.String,LightningApi.WalletAccountBalance> getAccountBalance()
getAccountBalanceMap() instead.getAccountBalance in interface LightningApi.WalletBalanceResponseOrBuilderpublic java.util.Map<java.lang.String,LightningApi.WalletAccountBalance> getAccountBalanceMap()
A mapping of each wallet account's name to its balance.
map<string, .lnrpc.WalletAccountBalance> account_balance = 4;getAccountBalanceMap in interface LightningApi.WalletBalanceResponseOrBuilderpublic LightningApi.WalletAccountBalance getAccountBalanceOrDefault(java.lang.String key, LightningApi.WalletAccountBalance defaultValue)
A mapping of each wallet account's name to its balance.
map<string, .lnrpc.WalletAccountBalance> account_balance = 4;getAccountBalanceOrDefault in interface LightningApi.WalletBalanceResponseOrBuilderpublic LightningApi.WalletAccountBalance getAccountBalanceOrThrow(java.lang.String key)
A mapping of each wallet account's name to its balance.
map<string, .lnrpc.WalletAccountBalance> account_balance = 4;getAccountBalanceOrThrow in interface LightningApi.WalletBalanceResponseOrBuilderpublic LightningApi.WalletBalanceResponse.Builder clearAccountBalance()
public LightningApi.WalletBalanceResponse.Builder removeAccountBalance(java.lang.String key)
A mapping of each wallet account's name to its balance.
map<string, .lnrpc.WalletAccountBalance> account_balance = 4;@Deprecated public java.util.Map<java.lang.String,LightningApi.WalletAccountBalance> getMutableAccountBalance()
public LightningApi.WalletBalanceResponse.Builder putAccountBalance(java.lang.String key, LightningApi.WalletAccountBalance value)
A mapping of each wallet account's name to its balance.
map<string, .lnrpc.WalletAccountBalance> account_balance = 4;public LightningApi.WalletBalanceResponse.Builder putAllAccountBalance(java.util.Map<java.lang.String,LightningApi.WalletAccountBalance> values)
A mapping of each wallet account's name to its balance.
map<string, .lnrpc.WalletAccountBalance> account_balance = 4;public final LightningApi.WalletBalanceResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.WalletBalanceResponse.Builder>public final LightningApi.WalletBalanceResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.WalletBalanceResponse.Builder>