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, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<TrezorStorage.Storage> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
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 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 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static TrezorStorage.Storage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorStorage.Storage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorStorage.Storage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorStorage.Storage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorStorage.Storage parseFrom(InputStream input) throws IOException
IOException
public static TrezorStorage.Storage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorStorage.Storage parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TrezorStorage.Storage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorStorage.Storage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TrezorStorage.Storage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorStorage.Storage.Builder newBuilder()
public TrezorStorage.Storage.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TrezorStorage.Storage.Builder newBuilder(TrezorStorage.Storage prototype)
public TrezorStorage.Storage.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TrezorStorage.Storage.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.