public static final class Walletunlocker.WatchOnlyAccount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Walletunlocker.WatchOnlyAccount.Builder> implements Walletunlocker.WatchOnlyAccountOrBuilder
lnrpc.WatchOnlyAccount| Modifier and Type | Method and Description |
|---|---|
Walletunlocker.WatchOnlyAccount |
build() |
Walletunlocker.WatchOnlyAccount |
buildPartial() |
Walletunlocker.WatchOnlyAccount.Builder |
clear() |
Walletunlocker.WatchOnlyAccount.Builder |
clearAccount()
Account is the third number in the derivation path.
|
Walletunlocker.WatchOnlyAccount.Builder |
clearCoinType()
Coin type is the second number in the derivation path, this is _always_ 0
for purposes 49 and 84.
|
Walletunlocker.WatchOnlyAccount.Builder |
clearPurpose()
Purpose is the first number in the derivation path, must be either 49, 84
or 1017.
|
Walletunlocker.WatchOnlyAccount.Builder |
clearXpub()
The extended public key at depth 3 for the given account.
|
int |
getAccount()
Account is the third number in the derivation path.
|
int |
getCoinType()
Coin type is the second number in the derivation path, this is _always_ 0
for purposes 49 and 84.
|
Walletunlocker.WatchOnlyAccount |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getPurpose()
Purpose is the first number in the derivation path, must be either 49, 84
or 1017.
|
java.lang.String |
getXpub()
The extended public key at depth 3 for the given account.
|
com.google.protobuf.ByteString |
getXpubBytes()
The extended public key at depth 3 for the given account.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Walletunlocker.WatchOnlyAccount.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Walletunlocker.WatchOnlyAccount.Builder |
mergeFrom(com.google.protobuf.Message other) |
Walletunlocker.WatchOnlyAccount.Builder |
mergeFrom(Walletunlocker.WatchOnlyAccount other) |
Walletunlocker.WatchOnlyAccount.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Walletunlocker.WatchOnlyAccount.Builder |
setAccount(int value)
Account is the third number in the derivation path.
|
Walletunlocker.WatchOnlyAccount.Builder |
setCoinType(int value)
Coin type is the second number in the derivation path, this is _always_ 0
for purposes 49 and 84.
|
Walletunlocker.WatchOnlyAccount.Builder |
setPurpose(int value)
Purpose is the first number in the derivation path, must be either 49, 84
or 1017.
|
Walletunlocker.WatchOnlyAccount.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Walletunlocker.WatchOnlyAccount.Builder |
setXpub(java.lang.String value)
The extended public key at depth 3 for the given account.
|
Walletunlocker.WatchOnlyAccount.Builder |
setXpubBytes(com.google.protobuf.ByteString value)
The extended public key at depth 3 for the given account.
|
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, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Walletunlocker.WatchOnlyAccount.Builder>public Walletunlocker.WatchOnlyAccount.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Walletunlocker.WatchOnlyAccount.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<Walletunlocker.WatchOnlyAccount.Builder>public Walletunlocker.WatchOnlyAccount getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Walletunlocker.WatchOnlyAccount build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Walletunlocker.WatchOnlyAccount buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Walletunlocker.WatchOnlyAccount.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Walletunlocker.WatchOnlyAccount.Builder>public Walletunlocker.WatchOnlyAccount.Builder mergeFrom(Walletunlocker.WatchOnlyAccount other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Walletunlocker.WatchOnlyAccount.Builder>public Walletunlocker.WatchOnlyAccount.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<Walletunlocker.WatchOnlyAccount.Builder>java.io.IOExceptionpublic int getPurpose()
Purpose is the first number in the derivation path, must be either 49, 84 or 1017.
uint32 purpose = 1;getPurpose in interface Walletunlocker.WatchOnlyAccountOrBuilderpublic Walletunlocker.WatchOnlyAccount.Builder setPurpose(int value)
Purpose is the first number in the derivation path, must be either 49, 84 or 1017.
uint32 purpose = 1;value - The purpose to set.public Walletunlocker.WatchOnlyAccount.Builder clearPurpose()
Purpose is the first number in the derivation path, must be either 49, 84 or 1017.
uint32 purpose = 1;public int getCoinType()
Coin type is the second number in the derivation path, this is _always_ 0 for purposes 49 and 84. It only needs to be set to 1 for purpose 1017 on testnet or regtest.
uint32 coin_type = 2;getCoinType in interface Walletunlocker.WatchOnlyAccountOrBuilderpublic Walletunlocker.WatchOnlyAccount.Builder setCoinType(int value)
Coin type is the second number in the derivation path, this is _always_ 0 for purposes 49 and 84. It only needs to be set to 1 for purpose 1017 on testnet or regtest.
uint32 coin_type = 2;value - The coinType to set.public Walletunlocker.WatchOnlyAccount.Builder clearCoinType()
Coin type is the second number in the derivation path, this is _always_ 0 for purposes 49 and 84. It only needs to be set to 1 for purpose 1017 on testnet or regtest.
uint32 coin_type = 2;public int getAccount()
Account is the third number in the derivation path. For purposes 49 and 84 at least the default account (index 0) needs to be created but optional additional accounts are allowed. For purpose 1017 there needs to be exactly one account for each of the key families defined in `keychain/derivation.go` (currently indices 0 to 9)
uint32 account = 3;getAccount in interface Walletunlocker.WatchOnlyAccountOrBuilderpublic Walletunlocker.WatchOnlyAccount.Builder setAccount(int value)
Account is the third number in the derivation path. For purposes 49 and 84 at least the default account (index 0) needs to be created but optional additional accounts are allowed. For purpose 1017 there needs to be exactly one account for each of the key families defined in `keychain/derivation.go` (currently indices 0 to 9)
uint32 account = 3;value - The account to set.public Walletunlocker.WatchOnlyAccount.Builder clearAccount()
Account is the third number in the derivation path. For purposes 49 and 84 at least the default account (index 0) needs to be created but optional additional accounts are allowed. For purpose 1017 there needs to be exactly one account for each of the key families defined in `keychain/derivation.go` (currently indices 0 to 9)
uint32 account = 3;public java.lang.String getXpub()
The extended public key at depth 3 for the given account.
string xpub = 4;getXpub in interface Walletunlocker.WatchOnlyAccountOrBuilderpublic com.google.protobuf.ByteString getXpubBytes()
The extended public key at depth 3 for the given account.
string xpub = 4;getXpubBytes in interface Walletunlocker.WatchOnlyAccountOrBuilderpublic Walletunlocker.WatchOnlyAccount.Builder setXpub(java.lang.String value)
The extended public key at depth 3 for the given account.
string xpub = 4;value - The xpub to set.public Walletunlocker.WatchOnlyAccount.Builder clearXpub()
The extended public key at depth 3 for the given account.
string xpub = 4;public Walletunlocker.WatchOnlyAccount.Builder setXpubBytes(com.google.protobuf.ByteString value)
The extended public key at depth 3 for the given account.
string xpub = 4;value - The bytes for xpub to set.public final Walletunlocker.WatchOnlyAccount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Walletunlocker.WatchOnlyAccount.Builder>public final Walletunlocker.WatchOnlyAccount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Walletunlocker.WatchOnlyAccount.Builder>