public static final class TrezorStorage.Storage extends com.google.protobuf.GeneratedMessage implements TrezorStorage.StorageOrBuilder
Storage
Internal persistent storage of device
| Modifier and Type | Class and Description |
|---|---|
static class |
TrezorStorage.Storage.Builder
Protobuf type
Storage |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
HOMESCREEN_FIELD_NUMBER |
static int |
IMPORTED_FIELD_NUMBER |
static int |
LABEL_FIELD_NUMBER |
static int |
LANGUAGE_FIELD_NUMBER |
static int |
MNEMONIC_FIELD_NUMBER |
static int |
NODE_FIELD_NUMBER |
static com.google.protobuf.Parser<TrezorStorage.Storage> |
PARSER |
static int |
PASSPHRASE_PROTECTION_FIELD_NUMBER |
static int |
PIN_FAILED_ATTEMPTS_FIELD_NUMBER |
static int |
PIN_FIELD_NUMBER |
static int |
U2F_COUNTER_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static TrezorStorage.Storage |
getDefaultInstance() |
TrezorStorage.Storage |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.HDNodeTypeOrBuilder |
getNodeOrBuilder()
optional .HDNodeType node = 2; |
com.google.protobuf.Parser<TrezorStorage.Storage> |
getParserForType() |
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 |
getSerializedSize() |
int |
getU2FCounter()
optional uint32 u2f_counter = 11; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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() |
static TrezorStorage.Storage.Builder |
newBuilder() |
static TrezorStorage.Storage.Builder |
newBuilder(TrezorStorage.Storage prototype) |
TrezorStorage.Storage.Builder |
newBuilderForType() |
protected TrezorStorage.Storage.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static TrezorStorage.Storage |
parseDelimitedFrom(InputStream input) |
static TrezorStorage.Storage |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorStorage.Storage |
parseFrom(byte[] data) |
static TrezorStorage.Storage |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorStorage.Storage |
parseFrom(com.google.protobuf.ByteString data) |
static TrezorStorage.Storage |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorStorage.Storage |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TrezorStorage.Storage |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorStorage.Storage |
parseFrom(InputStream input) |
static TrezorStorage.Storage |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrezorStorage.Storage.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static com.google.protobuf.Parser<TrezorStorage.Storage> PARSER
public static final int VERSION_FIELD_NUMBER
public static final int NODE_FIELD_NUMBER
public static final int MNEMONIC_FIELD_NUMBER
public static final int PASSPHRASE_PROTECTION_FIELD_NUMBER
public static final int PIN_FAILED_ATTEMPTS_FIELD_NUMBER
public static final int PIN_FIELD_NUMBER
public static final int LANGUAGE_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER
public static final int IMPORTED_FIELD_NUMBER
public static final int HOMESCREEN_FIELD_NUMBER
public static final int U2F_COUNTER_FIELD_NUMBER
public static TrezorStorage.Storage getDefaultInstance()
public TrezorStorage.Storage getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<TrezorStorage.Storage> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic 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 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 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static TrezorStorage.Storage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorStorage.Storage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorStorage.Storage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorStorage.Storage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorStorage.Storage parseFrom(InputStream input) throws IOException
IOExceptionpublic static TrezorStorage.Storage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrezorStorage.Storage parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TrezorStorage.Storage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrezorStorage.Storage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TrezorStorage.Storage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrezorStorage.Storage.Builder newBuilder()
public TrezorStorage.Storage.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TrezorStorage.Storage.Builder newBuilder(TrezorStorage.Storage prototype)
public TrezorStorage.Storage.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TrezorStorage.Storage.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.