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, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, newUninitializedMessageExceptionpublic 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.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<TrezorStorage.Storage.Builder>public TrezorStorage.Storage.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<TrezorStorage.Storage.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<TrezorStorage.Storage.Builder>public TrezorStorage.Storage getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TrezorStorage.Storage build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TrezorStorage.Storage buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TrezorStorage.Storage.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrezorStorage.Storage.Builder>IOExceptionpublic boolean hasVersion()
required uint32 version = 1;
version of storage
hasVersion in interface TrezorStorage.StorageOrBuilderpublic int getVersion()
required uint32 version = 1;
version of storage
getVersion in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic TrezorType.HDNodeType getNode()
optional .HDNodeType node = 2;
BIP-32 node (mnemonic cannot be used if this is present)
getNode in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic boolean hasMnemonic()
optional string mnemonic = 3;
BIP-39 mnemonic (node cannot be used if this is present)
hasMnemonic in interface TrezorStorage.StorageOrBuilderpublic String getMnemonic()
optional string mnemonic = 3;
BIP-39 mnemonic (node cannot be used if this is present)
getMnemonic in interface TrezorStorage.StorageOrBuilderpublic com.google.protobuf.ByteString getMnemonicBytes()
optional string mnemonic = 3;
BIP-39 mnemonic (node cannot be used if this is present)
getMnemonicBytes in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic boolean getPassphraseProtection()
optional bool passphrase_protection = 4;
whether to require passphrase to decrypt node or stretch mnemonic
getPassphraseProtection in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic int getPinFailedAttempts()
optional uint32 pin_failed_attempts = 5;
number of failed PIN attempts
getPinFailedAttempts in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic String getPin()
optional string pin = 6;
current PIN
getPin in interface TrezorStorage.StorageOrBuilderpublic com.google.protobuf.ByteString getPinBytes()
optional string pin = 6;
current PIN
getPinBytes in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic String getLanguage()
optional string language = 7;
current language
getLanguage in interface TrezorStorage.StorageOrBuilderpublic com.google.protobuf.ByteString getLanguageBytes()
optional string language = 7;
current language
getLanguageBytes in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic String getLabel()
optional string label = 8;
device label
getLabel in interface TrezorStorage.StorageOrBuilderpublic com.google.protobuf.ByteString getLabelBytes()
optional string label = 8;
device label
getLabelBytes in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic boolean getImported()
optional bool imported = 9;
was storage imported from an external source?
getImported in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic com.google.protobuf.ByteString getHomescreen()
optional bytes homescreen = 10;
image used as homescreen (logo + label is used when not set)
getHomescreen in interface TrezorStorage.StorageOrBuilderpublic 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.StorageOrBuilderpublic int getU2FCounter()
optional uint32 u2f_counter = 11;
sequence number for u2f authentications
getU2FCounter in interface TrezorStorage.StorageOrBuilderpublic 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.