public static final class TrezorStorage.Storage.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrezorStorage.Storage.Builder> implements TrezorStorage.StorageOrBuilder
Storage
Internal persistent storage of device
Modifier and Type | Method and Description |
---|---|
TrezorStorage.Storage |
build() |
TrezorStorage.Storage |
buildPartial() |
TrezorStorage.Storage.Builder |
clear() |
TrezorStorage.Storage.Builder |
clearHomescreen()
optional bytes homescreen = 10; |
TrezorStorage.Storage.Builder |
clearImported()
optional bool imported = 9; |
TrezorStorage.Storage.Builder |
clearLabel()
optional string label = 8; |
TrezorStorage.Storage.Builder |
clearLanguage()
optional string language = 7; |
TrezorStorage.Storage.Builder |
clearMnemonic()
optional string mnemonic = 3; |
TrezorStorage.Storage.Builder |
clearNode()
optional .HDNodeType node = 2; |
TrezorStorage.Storage.Builder |
clearPassphraseProtection()
optional bool passphrase_protection = 4; |
TrezorStorage.Storage.Builder |
clearPin()
optional string pin = 6; |
TrezorStorage.Storage.Builder |
clearPinFailedAttempts()
optional uint32 pin_failed_attempts = 5; |
TrezorStorage.Storage.Builder |
clearU2FCounter()
optional uint32 u2f_counter = 11; |
TrezorStorage.Storage.Builder |
clearVersion()
required uint32 version = 1; |
TrezorStorage.Storage.Builder |
clone() |
TrezorStorage.Storage |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getHomescreen()
optional bytes homescreen = 10; |
boolean |
getImported()
optional bool imported = 9; |
String |
getLabel()
optional string label = 8; |
com.google.protobuf.ByteString |
getLabelBytes()
optional string label = 8; |
String |
getLanguage()
optional string language = 7; |
com.google.protobuf.ByteString |
getLanguageBytes()
optional string language = 7; |
String |
getMnemonic()
optional string mnemonic = 3; |
com.google.protobuf.ByteString |
getMnemonicBytes()
optional string mnemonic = 3; |
TrezorType.HDNodeType |
getNode()
optional .HDNodeType node = 2; |
TrezorType.HDNodeType.Builder |
getNodeBuilder()
optional .HDNodeType node = 2; |
TrezorType.HDNodeTypeOrBuilder |
getNodeOrBuilder()
optional .HDNodeType node = 2; |
boolean |
getPassphraseProtection()
optional bool passphrase_protection = 4; |
String |
getPin()
optional string pin = 6; |
com.google.protobuf.ByteString |
getPinBytes()
optional string pin = 6; |
int |
getPinFailedAttempts()
optional uint32 pin_failed_attempts = 5; |
int |
getU2FCounter()
optional uint32 u2f_counter = 11; |
int |
getVersion()
required uint32 version = 1; |
boolean |
hasHomescreen()
optional bytes homescreen = 10; |
boolean |
hasImported()
optional bool imported = 9; |
boolean |
hasLabel()
optional string label = 8; |
boolean |
hasLanguage()
optional string language = 7; |
boolean |
hasMnemonic()
optional string mnemonic = 3; |
boolean |
hasNode()
optional .HDNodeType node = 2; |
boolean |
hasPassphraseProtection()
optional bool passphrase_protection = 4; |
boolean |
hasPin()
optional string pin = 6; |
boolean |
hasPinFailedAttempts()
optional uint32 pin_failed_attempts = 5; |
boolean |
hasU2FCounter()
optional uint32 u2f_counter = 11; |
boolean |
hasVersion()
required uint32 version = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TrezorStorage.Storage.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrezorStorage.Storage.Builder |
mergeFrom(com.google.protobuf.Message other) |
TrezorStorage.Storage.Builder |
mergeFrom(TrezorStorage.Storage other) |
TrezorStorage.Storage.Builder |
mergeNode(TrezorType.HDNodeType value)
optional .HDNodeType node = 2; |
TrezorStorage.Storage.Builder |
setHomescreen(com.google.protobuf.ByteString value)
optional bytes homescreen = 10; |
TrezorStorage.Storage.Builder |
setImported(boolean value)
optional bool imported = 9; |
TrezorStorage.Storage.Builder |
setLabel(String value)
optional string label = 8; |
TrezorStorage.Storage.Builder |
setLabelBytes(com.google.protobuf.ByteString value)
optional string label = 8; |
TrezorStorage.Storage.Builder |
setLanguage(String value)
optional string language = 7; |
TrezorStorage.Storage.Builder |
setLanguageBytes(com.google.protobuf.ByteString value)
optional string language = 7; |
TrezorStorage.Storage.Builder |
setMnemonic(String value)
optional string mnemonic = 3; |
TrezorStorage.Storage.Builder |
setMnemonicBytes(com.google.protobuf.ByteString value)
optional string mnemonic = 3; |
TrezorStorage.Storage.Builder |
setNode(TrezorType.HDNodeType.Builder builderForValue)
optional .HDNodeType node = 2; |
TrezorStorage.Storage.Builder |
setNode(TrezorType.HDNodeType value)
optional .HDNodeType node = 2; |
TrezorStorage.Storage.Builder |
setPassphraseProtection(boolean value)
optional bool passphrase_protection = 4; |
TrezorStorage.Storage.Builder |
setPin(String value)
optional string pin = 6; |
TrezorStorage.Storage.Builder |
setPinBytes(com.google.protobuf.ByteString value)
optional string pin = 6; |
TrezorStorage.Storage.Builder |
setPinFailedAttempts(int value)
optional uint32 pin_failed_attempts = 5; |
TrezorStorage.Storage.Builder |
setU2FCounter(int value)
optional uint32 u2f_counter = 11; |
TrezorStorage.Storage.Builder |
setVersion(int value)
required uint32 version = 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<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage.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<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage.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<TrezorStorage.Storage.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<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TrezorStorage.Storage build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TrezorStorage.Storage buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TrezorStorage.Storage.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage.Builder mergeFrom(TrezorStorage.Storage other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage.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<TrezorStorage.Storage.Builder>
IOException
public boolean hasVersion()
required uint32 version = 1;
version of storage
hasVersion
in interface TrezorStorage.StorageOrBuilder
public int getVersion()
required uint32 version = 1;
version of storage
getVersion
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setVersion(int value)
required uint32 version = 1;
version of storage
public TrezorStorage.Storage.Builder clearVersion()
required uint32 version = 1;
version of storage
public boolean hasNode()
optional .HDNodeType node = 2;
BIP-32 node (mnemonic cannot be used if this is present)
hasNode
in interface TrezorStorage.StorageOrBuilder
public TrezorType.HDNodeType getNode()
optional .HDNodeType node = 2;
BIP-32 node (mnemonic cannot be used if this is present)
getNode
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setNode(TrezorType.HDNodeType value)
optional .HDNodeType node = 2;
BIP-32 node (mnemonic cannot be used if this is present)
public TrezorStorage.Storage.Builder setNode(TrezorType.HDNodeType.Builder builderForValue)
optional .HDNodeType node = 2;
BIP-32 node (mnemonic cannot be used if this is present)
public TrezorStorage.Storage.Builder mergeNode(TrezorType.HDNodeType value)
optional .HDNodeType node = 2;
BIP-32 node (mnemonic cannot be used if this is present)
public TrezorStorage.Storage.Builder clearNode()
optional .HDNodeType node = 2;
BIP-32 node (mnemonic cannot be used if this is present)
public TrezorType.HDNodeType.Builder getNodeBuilder()
optional .HDNodeType node = 2;
BIP-32 node (mnemonic cannot be used if this is present)
public TrezorType.HDNodeTypeOrBuilder getNodeOrBuilder()
optional .HDNodeType node = 2;
BIP-32 node (mnemonic cannot be used if this is present)
getNodeOrBuilder
in interface TrezorStorage.StorageOrBuilder
public boolean hasMnemonic()
optional string mnemonic = 3;
BIP-39 mnemonic (node cannot be used if this is present)
hasMnemonic
in interface TrezorStorage.StorageOrBuilder
public String getMnemonic()
optional string mnemonic = 3;
BIP-39 mnemonic (node cannot be used if this is present)
getMnemonic
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getMnemonicBytes()
optional string mnemonic = 3;
BIP-39 mnemonic (node cannot be used if this is present)
getMnemonicBytes
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setMnemonic(String value)
optional string mnemonic = 3;
BIP-39 mnemonic (node cannot be used if this is present)
public TrezorStorage.Storage.Builder clearMnemonic()
optional string mnemonic = 3;
BIP-39 mnemonic (node cannot be used if this is present)
public TrezorStorage.Storage.Builder setMnemonicBytes(com.google.protobuf.ByteString value)
optional string mnemonic = 3;
BIP-39 mnemonic (node cannot be used if this is present)
public boolean hasPassphraseProtection()
optional bool passphrase_protection = 4;
whether to require passphrase to decrypt node or stretch mnemonic
hasPassphraseProtection
in interface TrezorStorage.StorageOrBuilder
public boolean getPassphraseProtection()
optional bool passphrase_protection = 4;
whether to require passphrase to decrypt node or stretch mnemonic
getPassphraseProtection
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setPassphraseProtection(boolean value)
optional bool passphrase_protection = 4;
whether to require passphrase to decrypt node or stretch mnemonic
public TrezorStorage.Storage.Builder clearPassphraseProtection()
optional bool passphrase_protection = 4;
whether to require passphrase to decrypt node or stretch mnemonic
public boolean hasPinFailedAttempts()
optional uint32 pin_failed_attempts = 5;
number of failed PIN attempts
hasPinFailedAttempts
in interface TrezorStorage.StorageOrBuilder
public int getPinFailedAttempts()
optional uint32 pin_failed_attempts = 5;
number of failed PIN attempts
getPinFailedAttempts
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setPinFailedAttempts(int value)
optional uint32 pin_failed_attempts = 5;
number of failed PIN attempts
public TrezorStorage.Storage.Builder clearPinFailedAttempts()
optional uint32 pin_failed_attempts = 5;
number of failed PIN attempts
public boolean hasPin()
optional string pin = 6;
current PIN
hasPin
in interface TrezorStorage.StorageOrBuilder
public String getPin()
optional string pin = 6;
current PIN
getPin
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getPinBytes()
optional string pin = 6;
current PIN
getPinBytes
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setPin(String value)
optional string pin = 6;
current PIN
public TrezorStorage.Storage.Builder clearPin()
optional string pin = 6;
current PIN
public TrezorStorage.Storage.Builder setPinBytes(com.google.protobuf.ByteString value)
optional string pin = 6;
current PIN
public boolean hasLanguage()
optional string language = 7;
current language
hasLanguage
in interface TrezorStorage.StorageOrBuilder
public String getLanguage()
optional string language = 7;
current language
getLanguage
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getLanguageBytes()
optional string language = 7;
current language
getLanguageBytes
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setLanguage(String value)
optional string language = 7;
current language
public TrezorStorage.Storage.Builder clearLanguage()
optional string language = 7;
current language
public TrezorStorage.Storage.Builder setLanguageBytes(com.google.protobuf.ByteString value)
optional string language = 7;
current language
public boolean hasLabel()
optional string label = 8;
device label
hasLabel
in interface TrezorStorage.StorageOrBuilder
public String getLabel()
optional string label = 8;
device label
getLabel
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getLabelBytes()
optional string label = 8;
device label
getLabelBytes
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setLabel(String value)
optional string label = 8;
device label
public TrezorStorage.Storage.Builder clearLabel()
optional string label = 8;
device label
public TrezorStorage.Storage.Builder setLabelBytes(com.google.protobuf.ByteString value)
optional string label = 8;
device label
public boolean hasImported()
optional bool imported = 9;
was storage imported from an external source?
hasImported
in interface TrezorStorage.StorageOrBuilder
public boolean getImported()
optional bool imported = 9;
was storage imported from an external source?
getImported
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setImported(boolean value)
optional bool imported = 9;
was storage imported from an external source?
public TrezorStorage.Storage.Builder clearImported()
optional bool imported = 9;
was storage imported from an external source?
public boolean hasHomescreen()
optional bytes homescreen = 10;
image used as homescreen (logo + label is used when not set)
hasHomescreen
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getHomescreen()
optional bytes homescreen = 10;
image used as homescreen (logo + label is used when not set)
getHomescreen
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setHomescreen(com.google.protobuf.ByteString value)
optional bytes homescreen = 10;
image used as homescreen (logo + label is used when not set)
public TrezorStorage.Storage.Builder clearHomescreen()
optional bytes homescreen = 10;
image used as homescreen (logo + label is used when not set)
public boolean hasU2FCounter()
optional uint32 u2f_counter = 11;
sequence number for u2f authentications
hasU2FCounter
in interface TrezorStorage.StorageOrBuilder
public int getU2FCounter()
optional uint32 u2f_counter = 11;
sequence number for u2f authentications
getU2FCounter
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setU2FCounter(int value)
optional uint32 u2f_counter = 11;
sequence number for u2f authentications
public TrezorStorage.Storage.Builder clearU2FCounter()
optional uint32 u2f_counter = 11;
sequence number for u2f authentications
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.