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, 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<Walletunlocker.WatchOnlyAccount.Builder>
public Walletunlocker.WatchOnlyAccount.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<Walletunlocker.WatchOnlyAccount.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<Walletunlocker.WatchOnlyAccount.Builder>
public Walletunlocker.WatchOnlyAccount getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Walletunlocker.WatchOnlyAccount build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Walletunlocker.WatchOnlyAccount buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Walletunlocker.WatchOnlyAccount.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Walletunlocker.WatchOnlyAccount.Builder>
java.io.IOException
public 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.WatchOnlyAccountOrBuilder
public 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.WatchOnlyAccountOrBuilder
public 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.WatchOnlyAccountOrBuilder
public 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.WatchOnlyAccountOrBuilder
public com.google.protobuf.ByteString getXpubBytes()
The extended public key at depth 3 for the given account.
string xpub = 4;
getXpubBytes
in interface Walletunlocker.WatchOnlyAccountOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Walletunlocker.WatchOnlyAccount.Builder>