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, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Key.Builder>
public Protos.Key.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Key.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.GeneratedMessage.Builder<Protos.Key.Builder>
public Protos.Key getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.Key build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.Key buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.Key.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.Key.Builder>
IOException
public boolean hasType()
required .wallet.Key.Type type = 1;
hasType
in interface Protos.KeyOrBuilder
public Protos.Key.Type getType()
required .wallet.Key.Type type = 1;
getType
in interface Protos.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public String getLabel()
optional string label = 4;
User-provided label associated with the key.
getLabel
in interface Protos.KeyOrBuilder
public com.google.protobuf.ByteString getLabelBytes()
optional string label = 4;
User-provided label associated with the key.
getLabelBytes
in interface Protos.KeyOrBuilder
public 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. The reason it's optional is that keys derived from a parent don't have this data.
hasCreationTimestamp
in interface Protos.KeyOrBuilder
public long getCreationTimestamp()
optional int64 creation_timestamp = 5;
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. The reason it's optional is that keys derived from a parent don't have this data.
getCreationTimestamp
in interface Protos.KeyOrBuilder
public 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. The reason it's optional is that keys derived from a parent 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. The reason it's optional is that keys derived from a parent don't have this data.
public boolean hasDeterministicKey()
optional .wallet.DeterministicKey deterministic_key = 7;
hasDeterministicKey
in interface Protos.KeyOrBuilder
public Protos.DeterministicKey getDeterministicKey()
optional .wallet.DeterministicKey deterministic_key = 7;
getDeterministicKey
in interface Protos.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public Protos.EncryptedData getEncryptedDeterministicSeed()
optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
Encrypted version of the seed
getEncryptedDeterministicSeed
in interface Protos.KeyOrBuilder
public 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.KeyOrBuilder
Copyright © 2016. All rights reserved.