public static final class Protos.Key.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.Key.Builder> implements Protos.KeyOrBuilder
wallet.Key
A key used to control Bitcoin spending. Either the private key, the public key or both may be present. It is recommended that if the private key is provided that the public key is provided too because deriving it is slow. If only the public key is provided, the key can only be used to watch the blockchain and verify transactions, and not for spending.
| Modifier and Type | Method and Description |
|---|---|
Protos.Key |
build() |
Protos.Key |
buildPartial() |
Protos.Key.Builder |
clear() |
Protos.Key.Builder |
clearCreationTimestamp()
optional int64 creation_timestamp = 5; |
Protos.Key.Builder |
clearDeterministicKey()
optional .wallet.DeterministicKey deterministic_key = 7; |
Protos.Key.Builder |
clearDeterministicSeed()
optional bytes deterministic_seed = 8; |
Protos.Key.Builder |
clearEncryptedData()
optional .wallet.EncryptedData encrypted_data = 6; |
Protos.Key.Builder |
clearEncryptedDeterministicSeed()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9; |
Protos.Key.Builder |
clearLabel()
optional string label = 4; |
Protos.Key.Builder |
clearPublicKey()
optional bytes public_key = 3; |
Protos.Key.Builder |
clearSecretBytes()
optional bytes secret_bytes = 2; |
Protos.Key.Builder |
clearType()
required .wallet.Key.Type type = 1; |
Protos.Key.Builder |
clone() |
long |
getCreationTimestamp()
optional int64 creation_timestamp = 5; |
Protos.Key |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.DeterministicKey |
getDeterministicKey()
optional .wallet.DeterministicKey deterministic_key = 7; |
Protos.DeterministicKey.Builder |
getDeterministicKeyBuilder()
optional .wallet.DeterministicKey deterministic_key = 7; |
Protos.DeterministicKeyOrBuilder |
getDeterministicKeyOrBuilder()
optional .wallet.DeterministicKey deterministic_key = 7; |
com.google.protobuf.ByteString |
getDeterministicSeed()
optional bytes deterministic_seed = 8; |
Protos.EncryptedData |
getEncryptedData()
optional .wallet.EncryptedData encrypted_data = 6; |
Protos.EncryptedData.Builder |
getEncryptedDataBuilder()
optional .wallet.EncryptedData encrypted_data = 6; |
Protos.EncryptedDataOrBuilder |
getEncryptedDataOrBuilder()
optional .wallet.EncryptedData encrypted_data = 6; |
Protos.EncryptedData |
getEncryptedDeterministicSeed()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9; |
Protos.EncryptedData.Builder |
getEncryptedDeterministicSeedBuilder()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9; |
Protos.EncryptedDataOrBuilder |
getEncryptedDeterministicSeedOrBuilder()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9; |
String |
getLabel()
optional string label = 4; |
com.google.protobuf.ByteString |
getLabelBytes()
optional string label = 4; |
com.google.protobuf.ByteString |
getPublicKey()
optional bytes public_key = 3; |
com.google.protobuf.ByteString |
getSecretBytes()
optional bytes secret_bytes = 2; |
Protos.Key.Type |
getType()
required .wallet.Key.Type type = 1; |
boolean |
hasCreationTimestamp()
optional int64 creation_timestamp = 5; |
boolean |
hasDeterministicKey()
optional .wallet.DeterministicKey deterministic_key = 7; |
boolean |
hasDeterministicSeed()
optional bytes deterministic_seed = 8; |
boolean |
hasEncryptedData()
optional .wallet.EncryptedData encrypted_data = 6; |
boolean |
hasEncryptedDeterministicSeed()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9; |
boolean |
hasLabel()
optional string label = 4; |
boolean |
hasPublicKey()
optional bytes public_key = 3; |
boolean |
hasSecretBytes()
optional bytes secret_bytes = 2; |
boolean |
hasType()
required .wallet.Key.Type type = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Key.Builder |
mergeDeterministicKey(Protos.DeterministicKey value)
optional .wallet.DeterministicKey deterministic_key = 7; |
Protos.Key.Builder |
mergeEncryptedData(Protos.EncryptedData value)
optional .wallet.EncryptedData encrypted_data = 6; |
Protos.Key.Builder |
mergeEncryptedDeterministicSeed(Protos.EncryptedData value)
optional .wallet.EncryptedData encrypted_deterministic_seed = 9; |
Protos.Key.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Key.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Key.Builder |
mergeFrom(Protos.Key other) |
Protos.Key.Builder |
setCreationTimestamp(long value)
optional int64 creation_timestamp = 5; |
Protos.Key.Builder |
setDeterministicKey(Protos.DeterministicKey.Builder builderForValue)
optional .wallet.DeterministicKey deterministic_key = 7; |
Protos.Key.Builder |
setDeterministicKey(Protos.DeterministicKey value)
optional .wallet.DeterministicKey deterministic_key = 7; |
Protos.Key.Builder |
setDeterministicSeed(com.google.protobuf.ByteString value)
optional bytes deterministic_seed = 8; |
Protos.Key.Builder |
setEncryptedData(Protos.EncryptedData.Builder builderForValue)
optional .wallet.EncryptedData encrypted_data = 6; |
Protos.Key.Builder |
setEncryptedData(Protos.EncryptedData value)
optional .wallet.EncryptedData encrypted_data = 6; |
Protos.Key.Builder |
setEncryptedDeterministicSeed(Protos.EncryptedData.Builder builderForValue)
optional .wallet.EncryptedData encrypted_deterministic_seed = 9; |
Protos.Key.Builder |
setEncryptedDeterministicSeed(Protos.EncryptedData value)
optional .wallet.EncryptedData encrypted_deterministic_seed = 9; |
Protos.Key.Builder |
setLabel(String value)
optional string label = 4; |
Protos.Key.Builder |
setLabelBytes(com.google.protobuf.ByteString value)
optional string label = 4; |
Protos.Key.Builder |
setPublicKey(com.google.protobuf.ByteString value)
optional bytes public_key = 3; |
Protos.Key.Builder |
setSecretBytes(com.google.protobuf.ByteString value)
optional bytes secret_bytes = 2; |
Protos.Key.Builder |
setType(Protos.Key.Type value)
required .wallet.Key.Type type = 1; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Protos.Key.Builder>public Protos.Key.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Protos.Key.Builder>public Protos.Key.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<Protos.Key.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.GeneratedMessage.Builder<Protos.Key.Builder>public Protos.Key getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Protos.Key build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Protos.Key buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Protos.Key.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.Key.Builder>public Protos.Key.Builder mergeFrom(Protos.Key other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.Key.Builder>public Protos.Key.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.Key.Builder>IOExceptionpublic boolean hasType()
required .wallet.Key.Type type = 1;hasType in interface Protos.KeyOrBuilderpublic Protos.Key.Type getType()
required .wallet.Key.Type type = 1;getType in interface Protos.KeyOrBuilderpublic Protos.Key.Builder setType(Protos.Key.Type value)
required .wallet.Key.Type type = 1;public Protos.Key.Builder clearType()
required .wallet.Key.Type type = 1;public boolean hasSecretBytes()
optional bytes secret_bytes = 2;
Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. If the secret is encrypted, or this is a "watching entry" then this is missing.
hasSecretBytes in interface Protos.KeyOrBuilderpublic com.google.protobuf.ByteString getSecretBytes()
optional bytes secret_bytes = 2;
Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. If the secret is encrypted, or this is a "watching entry" then this is missing.
getSecretBytes in interface Protos.KeyOrBuilderpublic Protos.Key.Builder setSecretBytes(com.google.protobuf.ByteString value)
optional bytes secret_bytes = 2;
Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. If the secret is encrypted, or this is a "watching entry" then this is missing.
public Protos.Key.Builder clearSecretBytes()
optional bytes secret_bytes = 2;
Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. If the secret is encrypted, or this is a "watching entry" then this is missing.
public boolean hasEncryptedData()
optional .wallet.EncryptedData encrypted_data = 6;
If the secret data is encrypted, then secret_bytes is missing and this field is set.
hasEncryptedData in interface Protos.KeyOrBuilderpublic Protos.EncryptedData getEncryptedData()
optional .wallet.EncryptedData encrypted_data = 6;
If the secret data is encrypted, then secret_bytes is missing and this field is set.
getEncryptedData in interface Protos.KeyOrBuilderpublic Protos.Key.Builder setEncryptedData(Protos.EncryptedData value)
optional .wallet.EncryptedData encrypted_data = 6;
If the secret data is encrypted, then secret_bytes is missing and this field is set.
public Protos.Key.Builder setEncryptedData(Protos.EncryptedData.Builder builderForValue)
optional .wallet.EncryptedData encrypted_data = 6;
If the secret data is encrypted, then secret_bytes is missing and this field is set.
public Protos.Key.Builder mergeEncryptedData(Protos.EncryptedData value)
optional .wallet.EncryptedData encrypted_data = 6;
If the secret data is encrypted, then secret_bytes is missing and this field is set.
public Protos.Key.Builder clearEncryptedData()
optional .wallet.EncryptedData encrypted_data = 6;
If the secret data is encrypted, then secret_bytes is missing and this field is set.
public Protos.EncryptedData.Builder getEncryptedDataBuilder()
optional .wallet.EncryptedData encrypted_data = 6;
If the secret data is encrypted, then secret_bytes is missing and this field is set.
public Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder()
optional .wallet.EncryptedData encrypted_data = 6;
If the secret data is encrypted, then secret_bytes is missing and this field is set.
getEncryptedDataOrBuilder in interface Protos.KeyOrBuilderpublic boolean hasPublicKey()
optional bytes public_key = 3;
The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
hasPublicKey in interface Protos.KeyOrBuilderpublic com.google.protobuf.ByteString getPublicKey()
optional bytes public_key = 3;
The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
getPublicKey in interface Protos.KeyOrBuilderpublic Protos.Key.Builder setPublicKey(com.google.protobuf.ByteString value)
optional bytes public_key = 3;
The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
public Protos.Key.Builder clearPublicKey()
optional bytes public_key = 3;
The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
public boolean hasLabel()
optional string label = 4;
User-provided label associated with the key.
hasLabel in interface Protos.KeyOrBuilderpublic String getLabel()
optional string label = 4;
User-provided label associated with the key.
getLabel in interface Protos.KeyOrBuilderpublic com.google.protobuf.ByteString getLabelBytes()
optional string label = 4;
User-provided label associated with the key.
getLabelBytes in interface Protos.KeyOrBuilderpublic Protos.Key.Builder setLabel(String value)
optional string label = 4;
User-provided label associated with the key.
public Protos.Key.Builder clearLabel()
optional string label = 4;
User-provided label associated with the key.
public Protos.Key.Builder setLabelBytes(com.google.protobuf.ByteString value)
optional string label = 4;
User-provided label associated with the key.
public boolean hasCreationTimestamp()
optional int64 creation_timestamp = 5;
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. Only reason it's optional is that some very old wallets don't have this data.
hasCreationTimestamp in interface Protos.KeyOrBuilderpublic long getCreationTimestamp()
optional int64 creation_timestamp = 5;
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. Only reason it's optional is that some very old wallets don't have this data.
getCreationTimestamp in interface Protos.KeyOrBuilderpublic Protos.Key.Builder setCreationTimestamp(long value)
optional int64 creation_timestamp = 5;
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. Only reason it's optional is that some very old wallets don't have this data.
public Protos.Key.Builder clearCreationTimestamp()
optional int64 creation_timestamp = 5;
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. Only reason it's optional is that some very old wallets don't have this data.
public boolean hasDeterministicKey()
optional .wallet.DeterministicKey deterministic_key = 7;hasDeterministicKey in interface Protos.KeyOrBuilderpublic Protos.DeterministicKey getDeterministicKey()
optional .wallet.DeterministicKey deterministic_key = 7;getDeterministicKey in interface Protos.KeyOrBuilderpublic Protos.Key.Builder setDeterministicKey(Protos.DeterministicKey value)
optional .wallet.DeterministicKey deterministic_key = 7;public Protos.Key.Builder setDeterministicKey(Protos.DeterministicKey.Builder builderForValue)
optional .wallet.DeterministicKey deterministic_key = 7;public Protos.Key.Builder mergeDeterministicKey(Protos.DeterministicKey value)
optional .wallet.DeterministicKey deterministic_key = 7;public Protos.Key.Builder clearDeterministicKey()
optional .wallet.DeterministicKey deterministic_key = 7;public Protos.DeterministicKey.Builder getDeterministicKeyBuilder()
optional .wallet.DeterministicKey deterministic_key = 7;public Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder()
optional .wallet.DeterministicKey deterministic_key = 7;getDeterministicKeyOrBuilder in interface Protos.KeyOrBuilderpublic boolean hasDeterministicSeed()
optional bytes deterministic_seed = 8;
The seed for a deterministic key hierarchy. Derived from the mnemonic, but cached here for quick startup. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
hasDeterministicSeed in interface Protos.KeyOrBuilderpublic com.google.protobuf.ByteString getDeterministicSeed()
optional bytes deterministic_seed = 8;
The seed for a deterministic key hierarchy. Derived from the mnemonic, but cached here for quick startup. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
getDeterministicSeed in interface Protos.KeyOrBuilderpublic Protos.Key.Builder setDeterministicSeed(com.google.protobuf.ByteString value)
optional bytes deterministic_seed = 8;
The seed for a deterministic key hierarchy. Derived from the mnemonic, but cached here for quick startup. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
public Protos.Key.Builder clearDeterministicSeed()
optional bytes deterministic_seed = 8;
The seed for a deterministic key hierarchy. Derived from the mnemonic, but cached here for quick startup. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
public boolean hasEncryptedDeterministicSeed()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
Encrypted version of the seed
hasEncryptedDeterministicSeed in interface Protos.KeyOrBuilderpublic Protos.EncryptedData getEncryptedDeterministicSeed()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
Encrypted version of the seed
getEncryptedDeterministicSeed in interface Protos.KeyOrBuilderpublic Protos.Key.Builder setEncryptedDeterministicSeed(Protos.EncryptedData value)
optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
Encrypted version of the seed
public Protos.Key.Builder setEncryptedDeterministicSeed(Protos.EncryptedData.Builder builderForValue)
optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
Encrypted version of the seed
public Protos.Key.Builder mergeEncryptedDeterministicSeed(Protos.EncryptedData value)
optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
Encrypted version of the seed
public Protos.Key.Builder clearEncryptedDeterministicSeed()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
Encrypted version of the seed
public Protos.EncryptedData.Builder getEncryptedDeterministicSeedBuilder()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
Encrypted version of the seed
public Protos.EncryptedDataOrBuilder getEncryptedDeterministicSeedOrBuilder()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
Encrypted version of the seed
getEncryptedDeterministicSeedOrBuilder in interface Protos.KeyOrBuilderCopyright © 2015. All rights reserved.