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 |
clearEncryptedPrivateKey()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6; |
Protos.Key.Builder |
clearLabel()
optional string label = 4; |
Protos.Key.Builder |
clearPrivateKey()
optional bytes private_key = 2; |
Protos.Key.Builder |
clearPublicKey()
optional bytes public_key = 3; |
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.EncryptedPrivateKey |
getEncryptedPrivateKey()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6; |
Protos.EncryptedPrivateKey.Builder |
getEncryptedPrivateKeyBuilder()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6; |
Protos.EncryptedPrivateKeyOrBuilder |
getEncryptedPrivateKeyOrBuilder()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6; |
String |
getLabel()
optional string label = 4; |
com.google.protobuf.ByteString |
getLabelBytes()
optional string label = 4; |
com.google.protobuf.ByteString |
getPrivateKey()
optional bytes private_key = 2; |
com.google.protobuf.ByteString |
getPublicKey()
optional bytes public_key = 3; |
Protos.Key.Type |
getType()
required .wallet.Key.Type type = 1; |
boolean |
hasCreationTimestamp()
optional int64 creation_timestamp = 5; |
boolean |
hasEncryptedPrivateKey()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6; |
boolean |
hasLabel()
optional string label = 4; |
boolean |
hasPrivateKey()
optional bytes private_key = 2; |
boolean |
hasPublicKey()
optional bytes public_key = 3; |
boolean |
hasType()
required .wallet.Key.Type type = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Key.Builder |
mergeEncryptedPrivateKey(Protos.EncryptedPrivateKey value)
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6; |
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 |
setEncryptedPrivateKey(Protos.EncryptedPrivateKey.Builder builderForValue)
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6; |
Protos.Key.Builder |
setEncryptedPrivateKey(Protos.EncryptedPrivateKey value)
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6; |
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 |
setPrivateKey(com.google.protobuf.ByteString value)
optional bytes private_key = 2; |
Protos.Key.Builder |
setPublicKey(com.google.protobuf.ByteString value)
optional bytes public_key = 3; |
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, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
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 hasPrivateKey()
optional bytes private_key = 2;
The private EC key bytes without any ASN.1 wrapping.
hasPrivateKey
in interface Protos.KeyOrBuilder
public com.google.protobuf.ByteString getPrivateKey()
optional bytes private_key = 2;
The private EC key bytes without any ASN.1 wrapping.
getPrivateKey
in interface Protos.KeyOrBuilder
public Protos.Key.Builder setPrivateKey(com.google.protobuf.ByteString value)
optional bytes private_key = 2;
The private EC key bytes without any ASN.1 wrapping.
public Protos.Key.Builder clearPrivateKey()
optional bytes private_key = 2;
The private EC key bytes without any ASN.1 wrapping.
public boolean hasEncryptedPrivateKey()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information. When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes. This is for security of the private key information.
hasEncryptedPrivateKey
in interface Protos.KeyOrBuilder
public Protos.EncryptedPrivateKey getEncryptedPrivateKey()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information. When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes. This is for security of the private key information.
getEncryptedPrivateKey
in interface Protos.KeyOrBuilder
public Protos.Key.Builder setEncryptedPrivateKey(Protos.EncryptedPrivateKey value)
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information. When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes. This is for security of the private key information.
public Protos.Key.Builder setEncryptedPrivateKey(Protos.EncryptedPrivateKey.Builder builderForValue)
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information. When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes. This is for security of the private key information.
public Protos.Key.Builder mergeEncryptedPrivateKey(Protos.EncryptedPrivateKey value)
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information. When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes. This is for security of the private key information.
public Protos.Key.Builder clearEncryptedPrivateKey()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information. When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes. This is for security of the private key information.
public Protos.EncryptedPrivateKey.Builder getEncryptedPrivateKeyBuilder()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information. When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes. This is for security of the private key information.
public Protos.EncryptedPrivateKeyOrBuilder getEncryptedPrivateKeyOrBuilder()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information. When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes. This is for security of the private key information.
getEncryptedPrivateKeyOrBuilder
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.
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.
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.
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.
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.
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.
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.
public Protos.Key.Builder clearCreationTimestamp()
optional int64 creation_timestamp = 5;
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point.
Copyright © 2014. All rights reserved.