public static final class TrezorStorage.Storage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TrezorStorage.Storage.Builder> implements TrezorStorage.StorageOrBuilder
Internal persistent storage of deviceProtobuf type
Storage
Modifier and Type | Method and Description |
---|---|
TrezorStorage.Storage.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrezorStorage.Storage |
build() |
TrezorStorage.Storage |
buildPartial() |
TrezorStorage.Storage.Builder |
clear() |
TrezorStorage.Storage.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TrezorStorage.Storage.Builder |
clearHomescreen()
image used as homescreen (logo + label is used when not set)
|
TrezorStorage.Storage.Builder |
clearImported()
was storage imported from an external source?
|
TrezorStorage.Storage.Builder |
clearLabel()
device label
|
TrezorStorage.Storage.Builder |
clearLanguage()
current language
|
TrezorStorage.Storage.Builder |
clearMnemonic()
BIP-39 mnemonic (node cannot be used if this is present)
|
TrezorStorage.Storage.Builder |
clearNode()
BIP-32 node (mnemonic cannot be used if this is present)
|
TrezorStorage.Storage.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TrezorStorage.Storage.Builder |
clearPassphraseProtection()
whether to require passphrase to decrypt node or stretch mnemonic
|
TrezorStorage.Storage.Builder |
clearPin()
current PIN
|
TrezorStorage.Storage.Builder |
clearPinFailedAttempts()
number of failed PIN attempts
|
TrezorStorage.Storage.Builder |
clearU2FCounter()
sequence number for u2f authentications
|
TrezorStorage.Storage.Builder |
clearVersion()
version of storage
|
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()
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.HDNodeType.Builder |
getNodeBuilder()
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)
|
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 |
getU2FCounter()
sequence number for u2f authentications
|
int |
getVersion()
version of storage
|
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() |
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)
BIP-32 node (mnemonic cannot be used if this is present)
|
TrezorStorage.Storage.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TrezorStorage.Storage.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrezorStorage.Storage.Builder |
setHomescreen(com.google.protobuf.ByteString value)
image used as homescreen (logo + label is used when not set)
|
TrezorStorage.Storage.Builder |
setImported(boolean value)
was storage imported from an external source?
|
TrezorStorage.Storage.Builder |
setLabel(String value)
device label
|
TrezorStorage.Storage.Builder |
setLabelBytes(com.google.protobuf.ByteString value)
device label
|
TrezorStorage.Storage.Builder |
setLanguage(String value)
current language
|
TrezorStorage.Storage.Builder |
setLanguageBytes(com.google.protobuf.ByteString value)
current language
|
TrezorStorage.Storage.Builder |
setMnemonic(String value)
BIP-39 mnemonic (node cannot be used if this is present)
|
TrezorStorage.Storage.Builder |
setMnemonicBytes(com.google.protobuf.ByteString value)
BIP-39 mnemonic (node cannot be used if this is present)
|
TrezorStorage.Storage.Builder |
setNode(TrezorType.HDNodeType.Builder builderForValue)
BIP-32 node (mnemonic cannot be used if this is present)
|
TrezorStorage.Storage.Builder |
setNode(TrezorType.HDNodeType value)
BIP-32 node (mnemonic cannot be used if this is present)
|
TrezorStorage.Storage.Builder |
setPassphraseProtection(boolean value)
whether to require passphrase to decrypt node or stretch mnemonic
|
TrezorStorage.Storage.Builder |
setPin(String value)
current PIN
|
TrezorStorage.Storage.Builder |
setPinBytes(com.google.protobuf.ByteString value)
current PIN
|
TrezorStorage.Storage.Builder |
setPinFailedAttempts(int value)
number of failed PIN attempts
|
TrezorStorage.Storage.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TrezorStorage.Storage.Builder |
setU2FCounter(int value)
sequence number for u2f authentications
|
TrezorStorage.Storage.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TrezorStorage.Storage.Builder |
setVersion(int value)
version of storage
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownField
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorStorage.Storage.Builder>
public TrezorStorage.Storage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorStorage.Storage.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.GeneratedMessageV3.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()
version of storage
required uint32 version = 1;
hasVersion
in interface TrezorStorage.StorageOrBuilder
public int getVersion()
version of storage
required uint32 version = 1;
getVersion
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setVersion(int value)
version of storage
required uint32 version = 1;
public TrezorStorage.Storage.Builder clearVersion()
version of storage
required uint32 version = 1;
public boolean hasNode()
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;
hasNode
in interface TrezorStorage.StorageOrBuilder
public TrezorType.HDNodeType getNode()
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;
getNode
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setNode(TrezorType.HDNodeType value)
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;
public TrezorStorage.Storage.Builder setNode(TrezorType.HDNodeType.Builder builderForValue)
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;
public TrezorStorage.Storage.Builder mergeNode(TrezorType.HDNodeType value)
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;
public TrezorStorage.Storage.Builder clearNode()
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;
public TrezorType.HDNodeType.Builder getNodeBuilder()
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;
public TrezorType.HDNodeTypeOrBuilder getNodeOrBuilder()
BIP-32 node (mnemonic cannot be used if this is present)
optional .HDNodeType node = 2;
getNodeOrBuilder
in interface TrezorStorage.StorageOrBuilder
public boolean hasMnemonic()
BIP-39 mnemonic (node cannot be used if this is present)
optional string mnemonic = 3;
hasMnemonic
in interface TrezorStorage.StorageOrBuilder
public String getMnemonic()
BIP-39 mnemonic (node cannot be used if this is present)
optional string mnemonic = 3;
getMnemonic
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getMnemonicBytes()
BIP-39 mnemonic (node cannot be used if this is present)
optional string mnemonic = 3;
getMnemonicBytes
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setMnemonic(String value)
BIP-39 mnemonic (node cannot be used if this is present)
optional string mnemonic = 3;
public TrezorStorage.Storage.Builder clearMnemonic()
BIP-39 mnemonic (node cannot be used if this is present)
optional string mnemonic = 3;
public TrezorStorage.Storage.Builder setMnemonicBytes(com.google.protobuf.ByteString value)
BIP-39 mnemonic (node cannot be used if this is present)
optional string mnemonic = 3;
public boolean hasPassphraseProtection()
whether to require passphrase to decrypt node or stretch mnemonic
optional bool passphrase_protection = 4;
hasPassphraseProtection
in interface TrezorStorage.StorageOrBuilder
public boolean getPassphraseProtection()
whether to require passphrase to decrypt node or stretch mnemonic
optional bool passphrase_protection = 4;
getPassphraseProtection
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setPassphraseProtection(boolean value)
whether to require passphrase to decrypt node or stretch mnemonic
optional bool passphrase_protection = 4;
public TrezorStorage.Storage.Builder clearPassphraseProtection()
whether to require passphrase to decrypt node or stretch mnemonic
optional bool passphrase_protection = 4;
public boolean hasPinFailedAttempts()
number of failed PIN attempts
optional uint32 pin_failed_attempts = 5;
hasPinFailedAttempts
in interface TrezorStorage.StorageOrBuilder
public int getPinFailedAttempts()
number of failed PIN attempts
optional uint32 pin_failed_attempts = 5;
getPinFailedAttempts
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setPinFailedAttempts(int value)
number of failed PIN attempts
optional uint32 pin_failed_attempts = 5;
public TrezorStorage.Storage.Builder clearPinFailedAttempts()
number of failed PIN attempts
optional uint32 pin_failed_attempts = 5;
public boolean hasPin()
current PIN
optional string pin = 6;
hasPin
in interface TrezorStorage.StorageOrBuilder
public String getPin()
current PIN
optional string pin = 6;
getPin
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getPinBytes()
current PIN
optional string pin = 6;
getPinBytes
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setPin(String value)
current PIN
optional string pin = 6;
public TrezorStorage.Storage.Builder clearPin()
current PIN
optional string pin = 6;
public TrezorStorage.Storage.Builder setPinBytes(com.google.protobuf.ByteString value)
current PIN
optional string pin = 6;
public boolean hasLanguage()
current language
optional string language = 7;
hasLanguage
in interface TrezorStorage.StorageOrBuilder
public String getLanguage()
current language
optional string language = 7;
getLanguage
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getLanguageBytes()
current language
optional string language = 7;
getLanguageBytes
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setLanguage(String value)
current language
optional string language = 7;
public TrezorStorage.Storage.Builder clearLanguage()
current language
optional string language = 7;
public TrezorStorage.Storage.Builder setLanguageBytes(com.google.protobuf.ByteString value)
current language
optional string language = 7;
public boolean hasLabel()
device label
optional string label = 8;
hasLabel
in interface TrezorStorage.StorageOrBuilder
public String getLabel()
device label
optional string label = 8;
getLabel
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getLabelBytes()
device label
optional string label = 8;
getLabelBytes
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setLabel(String value)
device label
optional string label = 8;
public TrezorStorage.Storage.Builder clearLabel()
device label
optional string label = 8;
public TrezorStorage.Storage.Builder setLabelBytes(com.google.protobuf.ByteString value)
device label
optional string label = 8;
public boolean hasImported()
was storage imported from an external source?
optional bool imported = 9;
hasImported
in interface TrezorStorage.StorageOrBuilder
public boolean getImported()
was storage imported from an external source?
optional bool imported = 9;
getImported
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setImported(boolean value)
was storage imported from an external source?
optional bool imported = 9;
public TrezorStorage.Storage.Builder clearImported()
was storage imported from an external source?
optional bool imported = 9;
public boolean hasHomescreen()
image used as homescreen (logo + label is used when not set)
optional bytes homescreen = 10;
hasHomescreen
in interface TrezorStorage.StorageOrBuilder
public com.google.protobuf.ByteString getHomescreen()
image used as homescreen (logo + label is used when not set)
optional bytes homescreen = 10;
getHomescreen
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setHomescreen(com.google.protobuf.ByteString value)
image used as homescreen (logo + label is used when not set)
optional bytes homescreen = 10;
public TrezorStorage.Storage.Builder clearHomescreen()
image used as homescreen (logo + label is used when not set)
optional bytes homescreen = 10;
public boolean hasU2FCounter()
sequence number for u2f authentications
optional uint32 u2f_counter = 11;
hasU2FCounter
in interface TrezorStorage.StorageOrBuilder
public int getU2FCounter()
sequence number for u2f authentications
optional uint32 u2f_counter = 11;
getU2FCounter
in interface TrezorStorage.StorageOrBuilder
public TrezorStorage.Storage.Builder setU2FCounter(int value)
sequence number for u2f authentications
optional uint32 u2f_counter = 11;
public TrezorStorage.Storage.Builder clearU2FCounter()
sequence number for u2f authentications
optional uint32 u2f_counter = 11;
public final TrezorStorage.Storage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorStorage.Storage.Builder>
public final TrezorStorage.Storage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TrezorStorage.Storage.Builder>
Copyright © 2013–2017 Bitcoin Solutions Ltd. All rights reserved.