public static final class TrezorStorage.Storage extends com.google.protobuf.GeneratedMessageV3 implements TrezorStorage.StorageOrBuilder
Internal persistent storage of deviceProtobuf type
Storage| Modifier and Type | Class and Description |
|---|---|
static class |
TrezorStorage.Storage.Builder
Internal persistent storage of device
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 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
Deprecated.
|
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 |
|---|---|
boolean |
equals(Object obj) |
static TrezorStorage.Storage |
getDefaultInstance() |
TrezorStorage.Storage |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getHomescreen()
image used as homescreen (logo + label is used when not set)
|
boolean |
getImported()
was storage imported from an external source?
|
String |
getLabel()
device label
|
com.google.protobuf.ByteString |
getLabelBytes()
device label
|
String |
getLanguage()
current language
|
com.google.protobuf.ByteString |
getLanguageBytes()
current language
|
String |
getMnemonic()
BIP-39 mnemonic (node cannot be used if this is present)
|
com.google.protobuf.ByteString |
getMnemonicBytes()
BIP-39 mnemonic (node cannot be used if this is present)
|
TrezorType.HDNodeType |
getNode()
BIP-32 node (mnemonic cannot be used if this is present)
|
TrezorType.HDNodeTypeOrBuilder |
getNodeOrBuilder()
BIP-32 node (mnemonic cannot be used if this is present)
|
com.google.protobuf.Parser<TrezorStorage.Storage> |
getParserForType() |
boolean |
getPassphraseProtection()
whether to require passphrase to decrypt node or stretch mnemonic
|
String |
getPin()
current PIN
|
com.google.protobuf.ByteString |
getPinBytes()
current PIN
|
int |
getPinFailedAttempts()
number of failed PIN attempts
|
int |
getSerializedSize() |
int |
getU2FCounter()
sequence number for u2f authentications
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getVersion()
version of storage
|
int |
hashCode() |
boolean |
hasHomescreen()
image used as homescreen (logo + label is used when not set)
|
boolean |
hasImported()
was storage imported from an external source?
|
boolean |
hasLabel()
device label
|
boolean |
hasLanguage()
current language
|
boolean |
hasMnemonic()
BIP-39 mnemonic (node cannot be used if this is present)
|
boolean |
hasNode()
BIP-32 node (mnemonic cannot be used if this is present)
|
boolean |
hasPassphraseProtection()
whether to require passphrase to decrypt node or stretch mnemonic
|
boolean |
hasPin()
current PIN
|
boolean |
hasPinFailedAttempts()
number of failed PIN attempts
|
boolean |
hasU2FCounter()
sequence number for u2f authentications
|
boolean |
hasVersion()
version of storage
|
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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(ByteBuffer data) |
static TrezorStorage.Storage |
parseFrom(ByteBuffer 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) |
static com.google.protobuf.Parser<TrezorStorage.Storage> |
parser() |
TrezorStorage.Storage.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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
@Deprecated public static final com.google.protobuf.Parser<TrezorStorage.Storage> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasVersion()
version of storage
required uint32 version = 1;hasVersion in interface TrezorStorage.StorageOrBuilderpublic int getVersion()
version of storage
required uint32 version = 1;getVersion in interface TrezorStorage.StorageOrBuilderpublic boolean hasNode()
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;hasNode in interface TrezorStorage.StorageOrBuilderpublic TrezorType.HDNodeType getNode()
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;getNode in interface TrezorStorage.StorageOrBuilderpublic TrezorType.HDNodeTypeOrBuilder getNodeOrBuilder()
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;getNodeOrBuilder in interface TrezorStorage.StorageOrBuilderpublic boolean hasMnemonic()
BIP-39 mnemonic (node cannot be used if this is present)
optional string mnemonic = 3;hasMnemonic in interface TrezorStorage.StorageOrBuilderpublic String getMnemonic()
BIP-39 mnemonic (node cannot be used if this is present)
optional string mnemonic = 3;getMnemonic in interface TrezorStorage.StorageOrBuilderpublic com.google.protobuf.ByteString getMnemonicBytes()
BIP-39 mnemonic (node cannot be used if this is present)
optional string mnemonic = 3;getMnemonicBytes in interface TrezorStorage.StorageOrBuilderpublic boolean hasPassphraseProtection()
whether to require passphrase to decrypt node or stretch mnemonic
optional bool passphrase_protection = 4;hasPassphraseProtection in interface TrezorStorage.StorageOrBuilderpublic boolean getPassphraseProtection()
whether to require passphrase to decrypt node or stretch mnemonic
optional bool passphrase_protection = 4;getPassphraseProtection in interface TrezorStorage.StorageOrBuilderpublic boolean hasPinFailedAttempts()
number of failed PIN attempts
optional uint32 pin_failed_attempts = 5;hasPinFailedAttempts in interface TrezorStorage.StorageOrBuilderpublic int getPinFailedAttempts()
number of failed PIN attempts
optional uint32 pin_failed_attempts = 5;getPinFailedAttempts in interface TrezorStorage.StorageOrBuilderpublic boolean hasPin()
current PIN
optional string pin = 6;hasPin in interface TrezorStorage.StorageOrBuilderpublic String getPin()
current PIN
optional string pin = 6;getPin in interface TrezorStorage.StorageOrBuilderpublic com.google.protobuf.ByteString getPinBytes()
current PIN
optional string pin = 6;getPinBytes in interface TrezorStorage.StorageOrBuilderpublic boolean hasLanguage()
current language
optional string language = 7;hasLanguage in interface TrezorStorage.StorageOrBuilderpublic String getLanguage()
current language
optional string language = 7;getLanguage in interface TrezorStorage.StorageOrBuilderpublic com.google.protobuf.ByteString getLanguageBytes()
current language
optional string language = 7;getLanguageBytes in interface TrezorStorage.StorageOrBuilderpublic boolean hasLabel()
device label
optional string label = 8;hasLabel in interface TrezorStorage.StorageOrBuilderpublic String getLabel()
device label
optional string label = 8;getLabel in interface TrezorStorage.StorageOrBuilderpublic com.google.protobuf.ByteString getLabelBytes()
device label
optional string label = 8;getLabelBytes in interface TrezorStorage.StorageOrBuilderpublic boolean hasImported()
was storage imported from an external source?
optional bool imported = 9;hasImported in interface TrezorStorage.StorageOrBuilderpublic boolean getImported()
was storage imported from an external source?
optional bool imported = 9;getImported in interface TrezorStorage.StorageOrBuilderpublic boolean hasHomescreen()
image used as homescreen (logo + label is used when not set)
optional bytes homescreen = 10;hasHomescreen in interface TrezorStorage.StorageOrBuilderpublic com.google.protobuf.ByteString getHomescreen()
image used as homescreen (logo + label is used when not set)
optional bytes homescreen = 10;getHomescreen in interface TrezorStorage.StorageOrBuilderpublic boolean hasU2FCounter()
sequence number for u2f authentications
optional uint32 u2f_counter = 11;hasU2FCounter in interface TrezorStorage.StorageOrBuilderpublic int getU2FCounter()
sequence number for u2f authentications
optional uint32 u2f_counter = 11;getU2FCounter in interface TrezorStorage.StorageOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TrezorStorage.Storage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorStorage.Storage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic 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 TrezorStorage.Storage.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TrezorStorage.Storage.Builder newBuilder()
public 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.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TrezorStorage.Storage getDefaultInstance()
public static com.google.protobuf.Parser<TrezorStorage.Storage> parser()
public 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.GeneratedMessageV3public TrezorStorage.Storage getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2013–2017 Bitcoin Solutions Ltd. All rights reserved.