|
|
|
@ -398,8 +398,8 @@ pub struct Features {
|
|
|
|
|
pub _passphrase_cached: ::std::option::Option<bool>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.firmware_present)
|
|
|
|
|
pub firmware_present: ::std::option::Option<bool>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.needs_backup)
|
|
|
|
|
pub needs_backup: ::std::option::Option<bool>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.backup_availability)
|
|
|
|
|
pub backup_availability: ::std::option::Option<::protobuf::EnumOrUnknown<features::BackupAvailability>>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.flags)
|
|
|
|
|
pub flags: ::std::option::Option<u32>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.model)
|
|
|
|
@ -464,6 +464,8 @@ pub struct Features {
|
|
|
|
|
pub unit_packaging: ::std::option::Option<u32>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.haptic_feedback)
|
|
|
|
|
pub haptic_feedback: ::std::option::Option<bool>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.recovery_type)
|
|
|
|
|
pub recovery_type: ::std::option::Option<::protobuf::EnumOrUnknown<RecoveryType>>,
|
|
|
|
|
// special fields
|
|
|
|
|
// @@protoc_insertion_point(special_field:hw.trezor.messages.management.Features.special_fields)
|
|
|
|
|
pub special_fields: ::protobuf::SpecialFields,
|
|
|
|
@ -905,23 +907,26 @@ impl Features {
|
|
|
|
|
self.firmware_present = ::std::option::Option::Some(v);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// optional bool needs_backup = 19;
|
|
|
|
|
// optional .hw.trezor.messages.management.Features.BackupAvailability backup_availability = 19;
|
|
|
|
|
|
|
|
|
|
pub fn needs_backup(&self) -> bool {
|
|
|
|
|
self.needs_backup.unwrap_or(false)
|
|
|
|
|
pub fn backup_availability(&self) -> features::BackupAvailability {
|
|
|
|
|
match self.backup_availability {
|
|
|
|
|
Some(e) => e.enum_value_or(features::BackupAvailability::NotAvailable),
|
|
|
|
|
None => features::BackupAvailability::NotAvailable,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn clear_needs_backup(&mut self) {
|
|
|
|
|
self.needs_backup = ::std::option::Option::None;
|
|
|
|
|
pub fn clear_backup_availability(&mut self) {
|
|
|
|
|
self.backup_availability = ::std::option::Option::None;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn has_needs_backup(&self) -> bool {
|
|
|
|
|
self.needs_backup.is_some()
|
|
|
|
|
pub fn has_backup_availability(&self) -> bool {
|
|
|
|
|
self.backup_availability.is_some()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
|
|
pub fn set_needs_backup(&mut self, v: bool) {
|
|
|
|
|
self.needs_backup = ::std::option::Option::Some(v);
|
|
|
|
|
pub fn set_backup_availability(&mut self, v: features::BackupAvailability) {
|
|
|
|
|
self.backup_availability = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// optional uint32 flags = 20;
|
|
|
|
@ -1114,8 +1119,8 @@ impl Features {
|
|
|
|
|
|
|
|
|
|
pub fn recovery_status(&self) -> features::RecoveryStatus {
|
|
|
|
|
match self.recovery_status {
|
|
|
|
|
Some(e) => e.enum_value_or(features::RecoveryStatus::NoRecovery),
|
|
|
|
|
None => features::RecoveryStatus::NoRecovery,
|
|
|
|
|
Some(e) => e.enum_value_or(features::RecoveryStatus::Nothing),
|
|
|
|
|
None => features::RecoveryStatus::Nothing,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1593,8 +1598,30 @@ impl Features {
|
|
|
|
|
self.haptic_feedback = ::std::option::Option::Some(v);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// optional .hw.trezor.messages.management.RecoveryType recovery_type = 53;
|
|
|
|
|
|
|
|
|
|
pub fn recovery_type(&self) -> RecoveryType {
|
|
|
|
|
match self.recovery_type {
|
|
|
|
|
Some(e) => e.enum_value_or(RecoveryType::NormalRecovery),
|
|
|
|
|
None => RecoveryType::NormalRecovery,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn clear_recovery_type(&mut self) {
|
|
|
|
|
self.recovery_type = ::std::option::Option::None;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn has_recovery_type(&self) -> bool {
|
|
|
|
|
self.recovery_type.is_some()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
|
|
pub fn set_recovery_type(&mut self, v: RecoveryType) {
|
|
|
|
|
self.recovery_type = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
|
|
|
let mut fields = ::std::vec::Vec::with_capacity(50);
|
|
|
|
|
let mut fields = ::std::vec::Vec::with_capacity(51);
|
|
|
|
|
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
|
|
|
|
|
"vendor",
|
|
|
|
@ -1682,9 +1709,9 @@ impl Features {
|
|
|
|
|
|m: &mut Features| { &mut m.firmware_present },
|
|
|
|
|
));
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
|
|
|
|
|
"needs_backup",
|
|
|
|
|
|m: &Features| { &m.needs_backup },
|
|
|
|
|
|m: &mut Features| { &mut m.needs_backup },
|
|
|
|
|
"backup_availability",
|
|
|
|
|
|m: &Features| { &m.backup_availability },
|
|
|
|
|
|m: &mut Features| { &mut m.backup_availability },
|
|
|
|
|
));
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
|
|
|
|
|
"flags",
|
|
|
|
@ -1846,6 +1873,11 @@ impl Features {
|
|
|
|
|
|m: &Features| { &m.haptic_feedback },
|
|
|
|
|
|m: &mut Features| { &mut m.haptic_feedback },
|
|
|
|
|
));
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
|
|
|
|
|
"recovery_type",
|
|
|
|
|
|m: &Features| { &m.recovery_type },
|
|
|
|
|
|m: &mut Features| { &mut m.recovery_type },
|
|
|
|
|
));
|
|
|
|
|
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Features>(
|
|
|
|
|
"Features",
|
|
|
|
|
fields,
|
|
|
|
@ -1925,7 +1957,7 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
self.firmware_present = ::std::option::Option::Some(is.read_bool()?);
|
|
|
|
|
},
|
|
|
|
|
152 => {
|
|
|
|
|
self.needs_backup = ::std::option::Option::Some(is.read_bool()?);
|
|
|
|
|
self.backup_availability = ::std::option::Option::Some(is.read_enum_or_unknown()?);
|
|
|
|
|
},
|
|
|
|
|
160 => {
|
|
|
|
|
self.flags = ::std::option::Option::Some(is.read_uint32()?);
|
|
|
|
@ -2026,6 +2058,9 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
416 => {
|
|
|
|
|
self.haptic_feedback = ::std::option::Option::Some(is.read_bool()?);
|
|
|
|
|
},
|
|
|
|
|
424 => {
|
|
|
|
|
self.recovery_type = ::std::option::Option::Some(is.read_enum_or_unknown()?);
|
|
|
|
|
},
|
|
|
|
|
tag => {
|
|
|
|
|
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
|
|
|
},
|
|
|
|
@ -2089,8 +2124,8 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
if let Some(v) = self.firmware_present {
|
|
|
|
|
my_size += 2 + 1;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.needs_backup {
|
|
|
|
|
my_size += 2 + 1;
|
|
|
|
|
if let Some(v) = self.backup_availability {
|
|
|
|
|
my_size += ::protobuf::rt::int32_size(19, v.value());
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.flags {
|
|
|
|
|
my_size += ::protobuf::rt::uint32_size(20, v);
|
|
|
|
@ -2188,6 +2223,9 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
if let Some(v) = self.haptic_feedback {
|
|
|
|
|
my_size += 2 + 1;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.recovery_type {
|
|
|
|
|
my_size += ::protobuf::rt::int32_size(53, v.value());
|
|
|
|
|
}
|
|
|
|
|
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
|
|
|
self.special_fields.cached_size().set(my_size as u32);
|
|
|
|
|
my_size
|
|
|
|
@ -2245,8 +2283,8 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
if let Some(v) = self.firmware_present {
|
|
|
|
|
os.write_bool(18, v)?;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.needs_backup {
|
|
|
|
|
os.write_bool(19, v)?;
|
|
|
|
|
if let Some(v) = self.backup_availability {
|
|
|
|
|
os.write_enum(19, ::protobuf::EnumOrUnknown::value(&v))?;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.flags {
|
|
|
|
|
os.write_uint32(20, v)?;
|
|
|
|
@ -2344,6 +2382,9 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
if let Some(v) = self.haptic_feedback {
|
|
|
|
|
os.write_bool(52, v)?;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.recovery_type {
|
|
|
|
|
os.write_enum(53, ::protobuf::EnumOrUnknown::value(&v))?;
|
|
|
|
|
}
|
|
|
|
|
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
|
|
|
::std::result::Result::Ok(())
|
|
|
|
|
}
|
|
|
|
@ -2378,7 +2419,7 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
self.unlocked = ::std::option::Option::None;
|
|
|
|
|
self._passphrase_cached = ::std::option::Option::None;
|
|
|
|
|
self.firmware_present = ::std::option::Option::None;
|
|
|
|
|
self.needs_backup = ::std::option::Option::None;
|
|
|
|
|
self.backup_availability = ::std::option::Option::None;
|
|
|
|
|
self.flags = ::std::option::Option::None;
|
|
|
|
|
self.model = ::std::option::Option::None;
|
|
|
|
|
self.fw_major = ::std::option::Option::None;
|
|
|
|
@ -2411,6 +2452,7 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
self.language_version_matches = ::std::option::Option::None;
|
|
|
|
|
self.unit_packaging = ::std::option::Option::None;
|
|
|
|
|
self.haptic_feedback = ::std::option::Option::None;
|
|
|
|
|
self.recovery_type = ::std::option::Option::None;
|
|
|
|
|
self.special_fields.clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -2433,7 +2475,7 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
unlocked: ::std::option::Option::None,
|
|
|
|
|
_passphrase_cached: ::std::option::Option::None,
|
|
|
|
|
firmware_present: ::std::option::Option::None,
|
|
|
|
|
needs_backup: ::std::option::Option::None,
|
|
|
|
|
backup_availability: ::std::option::Option::None,
|
|
|
|
|
flags: ::std::option::Option::None,
|
|
|
|
|
model: ::std::option::Option::None,
|
|
|
|
|
fw_major: ::std::option::Option::None,
|
|
|
|
@ -2466,6 +2508,7 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
language_version_matches: ::std::option::Option::None,
|
|
|
|
|
unit_packaging: ::std::option::Option::None,
|
|
|
|
|
haptic_feedback: ::std::option::Option::None,
|
|
|
|
|
recovery_type: ::std::option::Option::None,
|
|
|
|
|
special_fields: ::protobuf::SpecialFields::new(),
|
|
|
|
|
};
|
|
|
|
|
&instance
|
|
|
|
@ -2491,17 +2534,82 @@ impl ::protobuf::reflect::ProtobufValue for Features {
|
|
|
|
|
|
|
|
|
|
/// Nested message and enums of message `Features`
|
|
|
|
|
pub mod features {
|
|
|
|
|
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
|
|
|
// @@protoc_insertion_point(enum:hw.trezor.messages.management.Features.BackupAvailability)
|
|
|
|
|
pub enum BackupAvailability {
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.BackupAvailability.NotAvailable)
|
|
|
|
|
NotAvailable = 0,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.BackupAvailability.Required)
|
|
|
|
|
Required = 1,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.BackupAvailability.Available)
|
|
|
|
|
Available = 2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::Enum for BackupAvailability {
|
|
|
|
|
const NAME: &'static str = "BackupAvailability";
|
|
|
|
|
|
|
|
|
|
fn value(&self) -> i32 {
|
|
|
|
|
*self as i32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_i32(value: i32) -> ::std::option::Option<BackupAvailability> {
|
|
|
|
|
match value {
|
|
|
|
|
0 => ::std::option::Option::Some(BackupAvailability::NotAvailable),
|
|
|
|
|
1 => ::std::option::Option::Some(BackupAvailability::Required),
|
|
|
|
|
2 => ::std::option::Option::Some(BackupAvailability::Available),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_str(str: &str) -> ::std::option::Option<BackupAvailability> {
|
|
|
|
|
match str {
|
|
|
|
|
"NotAvailable" => ::std::option::Option::Some(BackupAvailability::NotAvailable),
|
|
|
|
|
"Required" => ::std::option::Option::Some(BackupAvailability::Required),
|
|
|
|
|
"Available" => ::std::option::Option::Some(BackupAvailability::Available),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const VALUES: &'static [BackupAvailability] = &[
|
|
|
|
|
BackupAvailability::NotAvailable,
|
|
|
|
|
BackupAvailability::Required,
|
|
|
|
|
BackupAvailability::Available,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::EnumFull for BackupAvailability {
|
|
|
|
|
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
|
|
|
|
|
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
|
|
|
|
|
descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Features.BackupAvailability").unwrap()).clone()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
|
|
|
|
|
let index = *self as usize;
|
|
|
|
|
Self::enum_descriptor().value_by_index(index)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::std::default::Default for BackupAvailability {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
BackupAvailability::NotAvailable
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl BackupAvailability {
|
|
|
|
|
pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
|
|
|
|
|
::protobuf::reflect::GeneratedEnumDescriptorData::new::<BackupAvailability>("Features.BackupAvailability")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
|
|
|
// @@protoc_insertion_point(enum:hw.trezor.messages.management.Features.RecoveryStatus)
|
|
|
|
|
pub enum RecoveryStatus {
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.NoRecovery)
|
|
|
|
|
NoRecovery = 0,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.InNormalRecovery)
|
|
|
|
|
InNormalRecovery = 1,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.InDryRunRecovery)
|
|
|
|
|
InDryRunRecovery = 2,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.InUnlockRepeatedBackupRecovery)
|
|
|
|
|
InUnlockRepeatedBackupRecovery = 3,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.Nothing)
|
|
|
|
|
Nothing = 0,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.Recovery)
|
|
|
|
|
Recovery = 1,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.Backup)
|
|
|
|
|
Backup = 2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::Enum for RecoveryStatus {
|
|
|
|
@ -2513,29 +2621,26 @@ pub mod features {
|
|
|
|
|
|
|
|
|
|
fn from_i32(value: i32) -> ::std::option::Option<RecoveryStatus> {
|
|
|
|
|
match value {
|
|
|
|
|
0 => ::std::option::Option::Some(RecoveryStatus::NoRecovery),
|
|
|
|
|
1 => ::std::option::Option::Some(RecoveryStatus::InNormalRecovery),
|
|
|
|
|
2 => ::std::option::Option::Some(RecoveryStatus::InDryRunRecovery),
|
|
|
|
|
3 => ::std::option::Option::Some(RecoveryStatus::InUnlockRepeatedBackupRecovery),
|
|
|
|
|
0 => ::std::option::Option::Some(RecoveryStatus::Nothing),
|
|
|
|
|
1 => ::std::option::Option::Some(RecoveryStatus::Recovery),
|
|
|
|
|
2 => ::std::option::Option::Some(RecoveryStatus::Backup),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_str(str: &str) -> ::std::option::Option<RecoveryStatus> {
|
|
|
|
|
match str {
|
|
|
|
|
"NoRecovery" => ::std::option::Option::Some(RecoveryStatus::NoRecovery),
|
|
|
|
|
"InNormalRecovery" => ::std::option::Option::Some(RecoveryStatus::InNormalRecovery),
|
|
|
|
|
"InDryRunRecovery" => ::std::option::Option::Some(RecoveryStatus::InDryRunRecovery),
|
|
|
|
|
"InUnlockRepeatedBackupRecovery" => ::std::option::Option::Some(RecoveryStatus::InUnlockRepeatedBackupRecovery),
|
|
|
|
|
"Nothing" => ::std::option::Option::Some(RecoveryStatus::Nothing),
|
|
|
|
|
"Recovery" => ::std::option::Option::Some(RecoveryStatus::Recovery),
|
|
|
|
|
"Backup" => ::std::option::Option::Some(RecoveryStatus::Backup),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const VALUES: &'static [RecoveryStatus] = &[
|
|
|
|
|
RecoveryStatus::NoRecovery,
|
|
|
|
|
RecoveryStatus::InNormalRecovery,
|
|
|
|
|
RecoveryStatus::InDryRunRecovery,
|
|
|
|
|
RecoveryStatus::InUnlockRepeatedBackupRecovery,
|
|
|
|
|
RecoveryStatus::Nothing,
|
|
|
|
|
RecoveryStatus::Recovery,
|
|
|
|
|
RecoveryStatus::Backup,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -2553,7 +2658,7 @@ pub mod features {
|
|
|
|
|
|
|
|
|
|
impl ::std::default::Default for RecoveryStatus {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
RecoveryStatus::NoRecovery
|
|
|
|
|
RecoveryStatus::Nothing
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -7839,12 +7944,12 @@ pub struct RecoveryDevice {
|
|
|
|
|
pub label: ::std::option::Option<::std::string::String>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.RecoveryDevice.enforce_wordlist)
|
|
|
|
|
pub enforce_wordlist: ::std::option::Option<bool>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.RecoveryDevice.type)
|
|
|
|
|
pub type_: ::std::option::Option<::protobuf::EnumOrUnknown<recovery_device::RecoveryDeviceType>>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.RecoveryDevice.input_method)
|
|
|
|
|
pub input_method: ::std::option::Option<::protobuf::EnumOrUnknown<recovery_device::RecoveryDeviceInputMethod>>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.RecoveryDevice.u2f_counter)
|
|
|
|
|
pub u2f_counter: ::std::option::Option<u32>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.RecoveryDevice.kind)
|
|
|
|
|
pub kind: ::std::option::Option<::protobuf::EnumOrUnknown<recovery_device::RecoveryKind>>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.RecoveryDevice.type)
|
|
|
|
|
pub type_: ::std::option::Option<::protobuf::EnumOrUnknown<RecoveryType>>,
|
|
|
|
|
// special fields
|
|
|
|
|
// @@protoc_insertion_point(special_field:hw.trezor.messages.management.RecoveryDevice.special_fields)
|
|
|
|
|
pub special_fields: ::protobuf::SpecialFields,
|
|
|
|
@ -8009,26 +8114,26 @@ impl RecoveryDevice {
|
|
|
|
|
self.enforce_wordlist = ::std::option::Option::Some(v);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// optional .hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType type = 8;
|
|
|
|
|
// optional .hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceInputMethod input_method = 8;
|
|
|
|
|
|
|
|
|
|
pub fn type_(&self) -> recovery_device::RecoveryDeviceType {
|
|
|
|
|
match self.type_ {
|
|
|
|
|
Some(e) => e.enum_value_or(recovery_device::RecoveryDeviceType::RecoveryDeviceType_ScrambledWords),
|
|
|
|
|
None => recovery_device::RecoveryDeviceType::RecoveryDeviceType_ScrambledWords,
|
|
|
|
|
pub fn input_method(&self) -> recovery_device::RecoveryDeviceInputMethod {
|
|
|
|
|
match self.input_method {
|
|
|
|
|
Some(e) => e.enum_value_or(recovery_device::RecoveryDeviceInputMethod::ScrambledWords),
|
|
|
|
|
None => recovery_device::RecoveryDeviceInputMethod::ScrambledWords,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn clear_type_(&mut self) {
|
|
|
|
|
self.type_ = ::std::option::Option::None;
|
|
|
|
|
pub fn clear_input_method(&mut self) {
|
|
|
|
|
self.input_method = ::std::option::Option::None;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn has_type(&self) -> bool {
|
|
|
|
|
self.type_.is_some()
|
|
|
|
|
pub fn has_input_method(&self) -> bool {
|
|
|
|
|
self.input_method.is_some()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
|
|
pub fn set_type(&mut self, v: recovery_device::RecoveryDeviceType) {
|
|
|
|
|
self.type_ = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
|
|
|
|
|
pub fn set_input_method(&mut self, v: recovery_device::RecoveryDeviceInputMethod) {
|
|
|
|
|
self.input_method = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// optional uint32 u2f_counter = 9;
|
|
|
|
@ -8050,26 +8155,26 @@ impl RecoveryDevice {
|
|
|
|
|
self.u2f_counter = ::std::option::Option::Some(v);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// optional .hw.trezor.messages.management.RecoveryDevice.RecoveryKind kind = 10;
|
|
|
|
|
// optional .hw.trezor.messages.management.RecoveryType type = 10;
|
|
|
|
|
|
|
|
|
|
pub fn kind(&self) -> recovery_device::RecoveryKind {
|
|
|
|
|
match self.kind {
|
|
|
|
|
Some(e) => e.enum_value_or(recovery_device::RecoveryKind::NormalRecovery),
|
|
|
|
|
None => recovery_device::RecoveryKind::NormalRecovery,
|
|
|
|
|
pub fn type_(&self) -> RecoveryType {
|
|
|
|
|
match self.type_ {
|
|
|
|
|
Some(e) => e.enum_value_or(RecoveryType::NormalRecovery),
|
|
|
|
|
None => RecoveryType::NormalRecovery,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn clear_kind(&mut self) {
|
|
|
|
|
self.kind = ::std::option::Option::None;
|
|
|
|
|
pub fn clear_type_(&mut self) {
|
|
|
|
|
self.type_ = ::std::option::Option::None;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn has_kind(&self) -> bool {
|
|
|
|
|
self.kind.is_some()
|
|
|
|
|
pub fn has_type(&self) -> bool {
|
|
|
|
|
self.type_.is_some()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
|
|
pub fn set_kind(&mut self, v: recovery_device::RecoveryKind) {
|
|
|
|
|
self.kind = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
|
|
|
|
|
pub fn set_type(&mut self, v: RecoveryType) {
|
|
|
|
|
self.type_ = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
|
|
@ -8106,9 +8211,9 @@ impl RecoveryDevice {
|
|
|
|
|
|m: &mut RecoveryDevice| { &mut m.enforce_wordlist },
|
|
|
|
|
));
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
|
|
|
|
|
"type",
|
|
|
|
|
|m: &RecoveryDevice| { &m.type_ },
|
|
|
|
|
|m: &mut RecoveryDevice| { &mut m.type_ },
|
|
|
|
|
"input_method",
|
|
|
|
|
|m: &RecoveryDevice| { &m.input_method },
|
|
|
|
|
|m: &mut RecoveryDevice| { &mut m.input_method },
|
|
|
|
|
));
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
|
|
|
|
|
"u2f_counter",
|
|
|
|
@ -8116,9 +8221,9 @@ impl RecoveryDevice {
|
|
|
|
|
|m: &mut RecoveryDevice| { &mut m.u2f_counter },
|
|
|
|
|
));
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
|
|
|
|
|
"kind",
|
|
|
|
|
|m: &RecoveryDevice| { &m.kind },
|
|
|
|
|
|m: &mut RecoveryDevice| { &mut m.kind },
|
|
|
|
|
"type",
|
|
|
|
|
|m: &RecoveryDevice| { &m.type_ },
|
|
|
|
|
|m: &mut RecoveryDevice| { &mut m.type_ },
|
|
|
|
|
));
|
|
|
|
|
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<RecoveryDevice>(
|
|
|
|
|
"RecoveryDevice",
|
|
|
|
@ -8157,13 +8262,13 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
self.enforce_wordlist = ::std::option::Option::Some(is.read_bool()?);
|
|
|
|
|
},
|
|
|
|
|
64 => {
|
|
|
|
|
self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?);
|
|
|
|
|
self.input_method = ::std::option::Option::Some(is.read_enum_or_unknown()?);
|
|
|
|
|
},
|
|
|
|
|
72 => {
|
|
|
|
|
self.u2f_counter = ::std::option::Option::Some(is.read_uint32()?);
|
|
|
|
|
},
|
|
|
|
|
80 => {
|
|
|
|
|
self.kind = ::std::option::Option::Some(is.read_enum_or_unknown()?);
|
|
|
|
|
self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?);
|
|
|
|
|
},
|
|
|
|
|
tag => {
|
|
|
|
|
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
|
|
@ -8195,13 +8300,13 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
if let Some(v) = self.enforce_wordlist {
|
|
|
|
|
my_size += 1 + 1;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.type_ {
|
|
|
|
|
if let Some(v) = self.input_method {
|
|
|
|
|
my_size += ::protobuf::rt::int32_size(8, v.value());
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.u2f_counter {
|
|
|
|
|
my_size += ::protobuf::rt::uint32_size(9, v);
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.kind {
|
|
|
|
|
if let Some(v) = self.type_ {
|
|
|
|
|
my_size += ::protobuf::rt::int32_size(10, v.value());
|
|
|
|
|
}
|
|
|
|
|
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
|
|
@ -8228,13 +8333,13 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
if let Some(v) = self.enforce_wordlist {
|
|
|
|
|
os.write_bool(6, v)?;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.type_ {
|
|
|
|
|
if let Some(v) = self.input_method {
|
|
|
|
|
os.write_enum(8, ::protobuf::EnumOrUnknown::value(&v))?;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.u2f_counter {
|
|
|
|
|
os.write_uint32(9, v)?;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.kind {
|
|
|
|
|
if let Some(v) = self.type_ {
|
|
|
|
|
os.write_enum(10, ::protobuf::EnumOrUnknown::value(&v))?;
|
|
|
|
|
}
|
|
|
|
|
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
|
|
@ -8260,9 +8365,9 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
self.language = ::std::option::Option::None;
|
|
|
|
|
self.label = ::std::option::Option::None;
|
|
|
|
|
self.enforce_wordlist = ::std::option::Option::None;
|
|
|
|
|
self.type_ = ::std::option::Option::None;
|
|
|
|
|
self.input_method = ::std::option::Option::None;
|
|
|
|
|
self.u2f_counter = ::std::option::Option::None;
|
|
|
|
|
self.kind = ::std::option::Option::None;
|
|
|
|
|
self.type_ = ::std::option::Option::None;
|
|
|
|
|
self.special_fields.clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -8274,9 +8379,9 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
language: ::std::option::Option::None,
|
|
|
|
|
label: ::std::option::Option::None,
|
|
|
|
|
enforce_wordlist: ::std::option::Option::None,
|
|
|
|
|
type_: ::std::option::Option::None,
|
|
|
|
|
input_method: ::std::option::Option::None,
|
|
|
|
|
u2f_counter: ::std::option::Option::None,
|
|
|
|
|
kind: ::std::option::Option::None,
|
|
|
|
|
type_: ::std::option::Option::None,
|
|
|
|
|
special_fields: ::protobuf::SpecialFields::new(),
|
|
|
|
|
};
|
|
|
|
|
&instance
|
|
|
|
@ -8303,114 +8408,47 @@ impl ::protobuf::reflect::ProtobufValue for RecoveryDevice {
|
|
|
|
|
/// Nested message and enums of message `RecoveryDevice`
|
|
|
|
|
pub mod recovery_device {
|
|
|
|
|
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
|
|
|
// @@protoc_insertion_point(enum:hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType)
|
|
|
|
|
pub enum RecoveryDeviceType {
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType.RecoveryDeviceType_ScrambledWords)
|
|
|
|
|
RecoveryDeviceType_ScrambledWords = 0,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceType.RecoveryDeviceType_Matrix)
|
|
|
|
|
RecoveryDeviceType_Matrix = 1,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::Enum for RecoveryDeviceType {
|
|
|
|
|
const NAME: &'static str = "RecoveryDeviceType";
|
|
|
|
|
|
|
|
|
|
fn value(&self) -> i32 {
|
|
|
|
|
*self as i32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_i32(value: i32) -> ::std::option::Option<RecoveryDeviceType> {
|
|
|
|
|
match value {
|
|
|
|
|
0 => ::std::option::Option::Some(RecoveryDeviceType::RecoveryDeviceType_ScrambledWords),
|
|
|
|
|
1 => ::std::option::Option::Some(RecoveryDeviceType::RecoveryDeviceType_Matrix),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_str(str: &str) -> ::std::option::Option<RecoveryDeviceType> {
|
|
|
|
|
match str {
|
|
|
|
|
"RecoveryDeviceType_ScrambledWords" => ::std::option::Option::Some(RecoveryDeviceType::RecoveryDeviceType_ScrambledWords),
|
|
|
|
|
"RecoveryDeviceType_Matrix" => ::std::option::Option::Some(RecoveryDeviceType::RecoveryDeviceType_Matrix),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const VALUES: &'static [RecoveryDeviceType] = &[
|
|
|
|
|
RecoveryDeviceType::RecoveryDeviceType_ScrambledWords,
|
|
|
|
|
RecoveryDeviceType::RecoveryDeviceType_Matrix,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::EnumFull for RecoveryDeviceType {
|
|
|
|
|
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
|
|
|
|
|
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
|
|
|
|
|
descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("RecoveryDevice.RecoveryDeviceType").unwrap()).clone()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
|
|
|
|
|
let index = *self as usize;
|
|
|
|
|
Self::enum_descriptor().value_by_index(index)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::std::default::Default for RecoveryDeviceType {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
RecoveryDeviceType::RecoveryDeviceType_ScrambledWords
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl RecoveryDeviceType {
|
|
|
|
|
pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
|
|
|
|
|
::protobuf::reflect::GeneratedEnumDescriptorData::new::<RecoveryDeviceType>("RecoveryDevice.RecoveryDeviceType")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
|
|
|
// @@protoc_insertion_point(enum:hw.trezor.messages.management.RecoveryDevice.RecoveryKind)
|
|
|
|
|
pub enum RecoveryKind {
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryKind.NormalRecovery)
|
|
|
|
|
NormalRecovery = 0,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryKind.DryRun)
|
|
|
|
|
DryRun = 1,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryKind.UnlockRepeatedBackup)
|
|
|
|
|
UnlockRepeatedBackup = 2,
|
|
|
|
|
// @@protoc_insertion_point(enum:hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceInputMethod)
|
|
|
|
|
pub enum RecoveryDeviceInputMethod {
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceInputMethod.ScrambledWords)
|
|
|
|
|
ScrambledWords = 0,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceInputMethod.Matrix)
|
|
|
|
|
Matrix = 1,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::Enum for RecoveryKind {
|
|
|
|
|
const NAME: &'static str = "RecoveryKind";
|
|
|
|
|
impl ::protobuf::Enum for RecoveryDeviceInputMethod {
|
|
|
|
|
const NAME: &'static str = "RecoveryDeviceInputMethod";
|
|
|
|
|
|
|
|
|
|
fn value(&self) -> i32 {
|
|
|
|
|
*self as i32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_i32(value: i32) -> ::std::option::Option<RecoveryKind> {
|
|
|
|
|
fn from_i32(value: i32) -> ::std::option::Option<RecoveryDeviceInputMethod> {
|
|
|
|
|
match value {
|
|
|
|
|
0 => ::std::option::Option::Some(RecoveryKind::NormalRecovery),
|
|
|
|
|
1 => ::std::option::Option::Some(RecoveryKind::DryRun),
|
|
|
|
|
2 => ::std::option::Option::Some(RecoveryKind::UnlockRepeatedBackup),
|
|
|
|
|
0 => ::std::option::Option::Some(RecoveryDeviceInputMethod::ScrambledWords),
|
|
|
|
|
1 => ::std::option::Option::Some(RecoveryDeviceInputMethod::Matrix),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_str(str: &str) -> ::std::option::Option<RecoveryKind> {
|
|
|
|
|
fn from_str(str: &str) -> ::std::option::Option<RecoveryDeviceInputMethod> {
|
|
|
|
|
match str {
|
|
|
|
|
"NormalRecovery" => ::std::option::Option::Some(RecoveryKind::NormalRecovery),
|
|
|
|
|
"DryRun" => ::std::option::Option::Some(RecoveryKind::DryRun),
|
|
|
|
|
"UnlockRepeatedBackup" => ::std::option::Option::Some(RecoveryKind::UnlockRepeatedBackup),
|
|
|
|
|
"ScrambledWords" => ::std::option::Option::Some(RecoveryDeviceInputMethod::ScrambledWords),
|
|
|
|
|
"Matrix" => ::std::option::Option::Some(RecoveryDeviceInputMethod::Matrix),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const VALUES: &'static [RecoveryKind] = &[
|
|
|
|
|
RecoveryKind::NormalRecovery,
|
|
|
|
|
RecoveryKind::DryRun,
|
|
|
|
|
RecoveryKind::UnlockRepeatedBackup,
|
|
|
|
|
const VALUES: &'static [RecoveryDeviceInputMethod] = &[
|
|
|
|
|
RecoveryDeviceInputMethod::ScrambledWords,
|
|
|
|
|
RecoveryDeviceInputMethod::Matrix,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::EnumFull for RecoveryKind {
|
|
|
|
|
impl ::protobuf::EnumFull for RecoveryDeviceInputMethod {
|
|
|
|
|
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
|
|
|
|
|
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
|
|
|
|
|
descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("RecoveryDevice.RecoveryKind").unwrap()).clone()
|
|
|
|
|
descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("RecoveryDevice.RecoveryDeviceInputMethod").unwrap()).clone()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
|
|
|
|
@ -8419,15 +8457,15 @@ pub mod recovery_device {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::std::default::Default for RecoveryKind {
|
|
|
|
|
impl ::std::default::Default for RecoveryDeviceInputMethod {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
RecoveryKind::NormalRecovery
|
|
|
|
|
RecoveryDeviceInputMethod::ScrambledWords
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl RecoveryKind {
|
|
|
|
|
impl RecoveryDeviceInputMethod {
|
|
|
|
|
pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
|
|
|
|
|
::protobuf::reflect::GeneratedEnumDescriptorData::new::<RecoveryKind>("RecoveryDevice.RecoveryKind")
|
|
|
|
|
::protobuf::reflect::GeneratedEnumDescriptorData::new::<RecoveryDeviceInputMethod>("RecoveryDevice.RecoveryDeviceInputMethod")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -10979,12 +11017,79 @@ impl HomescreenFormat {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
|
|
|
// @@protoc_insertion_point(enum:hw.trezor.messages.management.RecoveryType)
|
|
|
|
|
pub enum RecoveryType {
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryType.NormalRecovery)
|
|
|
|
|
NormalRecovery = 0,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryType.DryRun)
|
|
|
|
|
DryRun = 1,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryType.UnlockRepeatedBackup)
|
|
|
|
|
UnlockRepeatedBackup = 2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::Enum for RecoveryType {
|
|
|
|
|
const NAME: &'static str = "RecoveryType";
|
|
|
|
|
|
|
|
|
|
fn value(&self) -> i32 {
|
|
|
|
|
*self as i32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_i32(value: i32) -> ::std::option::Option<RecoveryType> {
|
|
|
|
|
match value {
|
|
|
|
|
0 => ::std::option::Option::Some(RecoveryType::NormalRecovery),
|
|
|
|
|
1 => ::std::option::Option::Some(RecoveryType::DryRun),
|
|
|
|
|
2 => ::std::option::Option::Some(RecoveryType::UnlockRepeatedBackup),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_str(str: &str) -> ::std::option::Option<RecoveryType> {
|
|
|
|
|
match str {
|
|
|
|
|
"NormalRecovery" => ::std::option::Option::Some(RecoveryType::NormalRecovery),
|
|
|
|
|
"DryRun" => ::std::option::Option::Some(RecoveryType::DryRun),
|
|
|
|
|
"UnlockRepeatedBackup" => ::std::option::Option::Some(RecoveryType::UnlockRepeatedBackup),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const VALUES: &'static [RecoveryType] = &[
|
|
|
|
|
RecoveryType::NormalRecovery,
|
|
|
|
|
RecoveryType::DryRun,
|
|
|
|
|
RecoveryType::UnlockRepeatedBackup,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::EnumFull for RecoveryType {
|
|
|
|
|
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
|
|
|
|
|
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
|
|
|
|
|
descriptor.get(|| file_descriptor().enum_by_package_relative_name("RecoveryType").unwrap()).clone()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
|
|
|
|
|
let index = *self as usize;
|
|
|
|
|
Self::enum_descriptor().value_by_index(index)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::std::default::Default for RecoveryType {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
RecoveryType::NormalRecovery
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl RecoveryType {
|
|
|
|
|
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
|
|
|
|
|
::protobuf::reflect::GeneratedEnumDescriptorData::new::<RecoveryType>("RecoveryType")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
|
|
\n\x19messages-management.proto\x12\x1dhw.trezor.messages.management\x1a\
|
|
|
|
|
\x0emessages.proto\"\x80\x01\n\nInitialize\x12\x1d\n\nsession_id\x18\x01\
|
|
|
|
|
\x20\x01(\x0cR\tsessionId\x12,\n\x10_skip_passphrase\x18\x02\x20\x01(\
|
|
|
|
|
\x08R\x0eSkipPassphraseB\x02\x18\x01\x12%\n\x0ederive_cardano\x18\x03\
|
|
|
|
|
\x20\x01(\x08R\rderiveCardano\"\r\n\x0bGetFeatures\"\x8f\x16\n\x08Featur\
|
|
|
|
|
\x20\x01(\x08R\rderiveCardano\"\r\n\x0bGetFeatures\"\xb7\x17\n\x08Featur\
|
|
|
|
|
es\x12\x16\n\x06vendor\x18\x01\x20\x01(\tR\x06vendor\x12#\n\rmajor_versi\
|
|
|
|
|
on\x18\x02\x20\x02(\rR\x0cmajorVersion\x12#\n\rminor_version\x18\x03\x20\
|
|
|
|
|
\x02(\rR\x0cminorVersion\x12#\n\rpatch_version\x18\x04\x20\x02(\rR\x0cpa\
|
|
|
|
@ -10999,17 +11104,18 @@ static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
|
|
\x18\x0f\x20\x01(\x08R\x08imported\x12\x1a\n\x08unlocked\x18\x10\x20\x01\
|
|
|
|
|
(\x08R\x08unlocked\x120\n\x12_passphrase_cached\x18\x11\x20\x01(\x08R\
|
|
|
|
|
\x10PassphraseCachedB\x02\x18\x01\x12)\n\x10firmware_present\x18\x12\x20\
|
|
|
|
|
\x01(\x08R\x0ffirmwarePresent\x12!\n\x0cneeds_backup\x18\x13\x20\x01(\
|
|
|
|
|
\x08R\x0bneedsBackup\x12\x14\n\x05flags\x18\x14\x20\x01(\rR\x05flags\x12\
|
|
|
|
|
\x14\n\x05model\x18\x15\x20\x01(\tR\x05model\x12\x19\n\x08fw_major\x18\
|
|
|
|
|
\x16\x20\x01(\rR\x07fwMajor\x12\x19\n\x08fw_minor\x18\x17\x20\x01(\rR\
|
|
|
|
|
\x07fwMinor\x12\x19\n\x08fw_patch\x18\x18\x20\x01(\rR\x07fwPatch\x12\x1b\
|
|
|
|
|
\n\tfw_vendor\x18\x19\x20\x01(\tR\x08fwVendor\x12+\n\x11unfinished_backu\
|
|
|
|
|
p\x18\x1b\x20\x01(\x08R\x10unfinishedBackup\x12\x1b\n\tno_backup\x18\x1c\
|
|
|
|
|
\x20\x01(\x08R\x08noBackup\x12_\n\x0frecovery_status\x18\x1d\x20\x01(\
|
|
|
|
|
\x0e26.hw.trezor.messages.management.Features.RecoveryStatusR\x0erecover\
|
|
|
|
|
yStatus\x12V\n\x0ccapabilities\x18\x1e\x20\x03(\x0e22.hw.trezor.messages\
|
|
|
|
|
.management.Features.CapabilityR\x0ccapabilities\x12J\n\x0bbackup_type\
|
|
|
|
|
\x01(\x08R\x0ffirmwarePresent\x12k\n\x13backup_availability\x18\x13\x20\
|
|
|
|
|
\x01(\x0e2:.hw.trezor.messages.management.Features.BackupAvailabilityR\
|
|
|
|
|
\x12backupAvailability\x12\x14\n\x05flags\x18\x14\x20\x01(\rR\x05flags\
|
|
|
|
|
\x12\x14\n\x05model\x18\x15\x20\x01(\tR\x05model\x12\x19\n\x08fw_major\
|
|
|
|
|
\x18\x16\x20\x01(\rR\x07fwMajor\x12\x19\n\x08fw_minor\x18\x17\x20\x01(\r\
|
|
|
|
|
R\x07fwMinor\x12\x19\n\x08fw_patch\x18\x18\x20\x01(\rR\x07fwPatch\x12\
|
|
|
|
|
\x1b\n\tfw_vendor\x18\x19\x20\x01(\tR\x08fwVendor\x12+\n\x11unfinished_b\
|
|
|
|
|
ackup\x18\x1b\x20\x01(\x08R\x10unfinishedBackup\x12\x1b\n\tno_backup\x18\
|
|
|
|
|
\x1c\x20\x01(\x08R\x08noBackup\x12_\n\x0frecovery_status\x18\x1d\x20\x01\
|
|
|
|
|
(\x0e26.hw.trezor.messages.management.Features.RecoveryStatusR\x0erecove\
|
|
|
|
|
ryStatus\x12V\n\x0ccapabilities\x18\x1e\x20\x03(\x0e22.hw.trezor.message\
|
|
|
|
|
s.management.Features.CapabilityR\x0ccapabilities\x12J\n\x0bbackup_type\
|
|
|
|
|
\x18\x1f\x20\x01(\x0e2).hw.trezor.messages.management.BackupTypeR\nbacku\
|
|
|
|
|
pType\x12&\n\x0fsd_card_present\x18\x20\x20\x01(\x08R\rsdCardPresent\x12\
|
|
|
|
|
#\n\rsd_protection\x18!\x20\x01(\x08R\x0csdProtection\x120\n\x14wipe_cod\
|
|
|
|
@ -11031,35 +11137,37 @@ static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
|
|
\x20\x01(\x08R\x10bootloaderLocked\x12>\n\x18language_version_matches\
|
|
|
|
|
\x182\x20\x01(\x08:\x04trueR\x16languageVersionMatches\x12%\n\x0eunit_pa\
|
|
|
|
|
ckaging\x183\x20\x01(\rR\runitPackaging\x12'\n\x0fhaptic_feedback\x184\
|
|
|
|
|
\x20\x01(\x08R\x0ehapticFeedback\"p\n\x0eRecoveryStatus\x12\x0e\n\nNoRec\
|
|
|
|
|
overy\x10\0\x12\x14\n\x10InNormalRecovery\x10\x01\x12\x14\n\x10InDryRunR\
|
|
|
|
|
ecovery\x10\x02\x12\"\n\x1eInUnlockRepeatedBackupRecovery\x10\x03\"\xc2\
|
|
|
|
|
\x04\n\nCapability\x12\x1c\n\x12Capability_Bitcoin\x10\x01\x1a\x04\x80\
|
|
|
|
|
\xa6\x1d\x01\x12\x1b\n\x17Capability_Bitcoin_like\x10\x02\x12\x16\n\x12C\
|
|
|
|
|
apability_Binance\x10\x03\x12\x16\n\x12Capability_Cardano\x10\x04\x12\
|
|
|
|
|
\x1b\n\x11Capability_Crypto\x10\x05\x1a\x04\x80\xa6\x1d\x01\x12\x12\n\
|
|
|
|
|
\x0eCapability_EOS\x10\x06\x12\x17\n\x13Capability_Ethereum\x10\x07\x12\
|
|
|
|
|
\x17\n\x0fCapability_Lisk\x10\x08\x1a\x02\x08\x01\x12\x15\n\x11Capabilit\
|
|
|
|
|
y_Monero\x10\t\x12\x12\n\x0eCapability_NEM\x10\n\x12\x15\n\x11Capability\
|
|
|
|
|
_Ripple\x10\x0b\x12\x16\n\x12Capability_Stellar\x10\x0c\x12\x14\n\x10Cap\
|
|
|
|
|
ability_Tezos\x10\r\x12\x12\n\x0eCapability_U2F\x10\x0e\x12\x1b\n\x11Cap\
|
|
|
|
|
ability_Shamir\x10\x0f\x1a\x04\x80\xa6\x1d\x01\x12!\n\x17Capability_Sham\
|
|
|
|
|
irGroups\x10\x10\x1a\x04\x80\xa6\x1d\x01\x12$\n\x1aCapability_Passphrase\
|
|
|
|
|
Entry\x10\x11\x1a\x04\x80\xa6\x1d\x01\x12\x15\n\x11Capability_Solana\x10\
|
|
|
|
|
\x12\x12!\n\x17Capability_Translations\x10\x13\x1a\x04\x80\xa6\x1d\x01\
|
|
|
|
|
\x12\x1f\n\x15Capability_Brightness\x10\x14\x1a\x04\x80\xa6\x1d\x01\x12\
|
|
|
|
|
\x1b\n\x11Capability_Haptic\x10\x15\x1a\x04\x80\xa6\x1d\x01\x1a\x04\xc8\
|
|
|
|
|
\xf3\x18\x01\"\x0c\n\nLockDevice\"&\n\x07SetBusy\x12\x1b\n\texpiry_ms\
|
|
|
|
|
\x18\x01\x20\x01(\rR\x08expiryMs\"\x0c\n\nEndSession\"\xc4\x04\n\rApplyS\
|
|
|
|
|
ettings\x12\x1e\n\x08language\x18\x01\x20\x01(\tR\x08languageB\x02\x18\
|
|
|
|
|
\x01\x12\x14\n\x05label\x18\x02\x20\x01(\tR\x05label\x12%\n\x0euse_passp\
|
|
|
|
|
hrase\x18\x03\x20\x01(\x08R\rusePassphrase\x12\x1e\n\nhomescreen\x18\x04\
|
|
|
|
|
\x20\x01(\x0cR\nhomescreen\x120\n\x12_passphrase_source\x18\x05\x20\x01(\
|
|
|
|
|
\rR\x10PassphraseSourceB\x02\x18\x01\x12+\n\x12auto_lock_delay_ms\x18\
|
|
|
|
|
\x06\x20\x01(\rR\x0fautoLockDelayMs\x12)\n\x10display_rotation\x18\x07\
|
|
|
|
|
\x20\x01(\rR\x0fdisplayRotation\x12=\n\x1bpassphrase_always_on_device\
|
|
|
|
|
\x18\x08\x20\x01(\x08R\x18passphraseAlwaysOnDevice\x12T\n\rsafety_checks\
|
|
|
|
|
\x18\t\x20\x01(\x0e2/.hw.trezor.messages.management.SafetyCheckLevelR\
|
|
|
|
|
\x20\x01(\x08R\x0ehapticFeedback\x12P\n\rrecovery_type\x185\x20\x01(\x0e\
|
|
|
|
|
2+.hw.trezor.messages.management.RecoveryTypeR\x0crecoveryType\"C\n\x12B\
|
|
|
|
|
ackupAvailability\x12\x10\n\x0cNotAvailable\x10\0\x12\x0c\n\x08Required\
|
|
|
|
|
\x10\x01\x12\r\n\tAvailable\x10\x02\"7\n\x0eRecoveryStatus\x12\x0b\n\x07\
|
|
|
|
|
Nothing\x10\0\x12\x0c\n\x08Recovery\x10\x01\x12\n\n\x06Backup\x10\x02\"\
|
|
|
|
|
\xc2\x04\n\nCapability\x12\x1c\n\x12Capability_Bitcoin\x10\x01\x1a\x04\
|
|
|
|
|
\x80\xa6\x1d\x01\x12\x1b\n\x17Capability_Bitcoin_like\x10\x02\x12\x16\n\
|
|
|
|
|
\x12Capability_Binance\x10\x03\x12\x16\n\x12Capability_Cardano\x10\x04\
|
|
|
|
|
\x12\x1b\n\x11Capability_Crypto\x10\x05\x1a\x04\x80\xa6\x1d\x01\x12\x12\
|
|
|
|
|
\n\x0eCapability_EOS\x10\x06\x12\x17\n\x13Capability_Ethereum\x10\x07\
|
|
|
|
|
\x12\x17\n\x0fCapability_Lisk\x10\x08\x1a\x02\x08\x01\x12\x15\n\x11Capab\
|
|
|
|
|
ility_Monero\x10\t\x12\x12\n\x0eCapability_NEM\x10\n\x12\x15\n\x11Capabi\
|
|
|
|
|
lity_Ripple\x10\x0b\x12\x16\n\x12Capability_Stellar\x10\x0c\x12\x14\n\
|
|
|
|
|
\x10Capability_Tezos\x10\r\x12\x12\n\x0eCapability_U2F\x10\x0e\x12\x1b\n\
|
|
|
|
|
\x11Capability_Shamir\x10\x0f\x1a\x04\x80\xa6\x1d\x01\x12!\n\x17Capabili\
|
|
|
|
|
ty_ShamirGroups\x10\x10\x1a\x04\x80\xa6\x1d\x01\x12$\n\x1aCapability_Pas\
|
|
|
|
|
sphraseEntry\x10\x11\x1a\x04\x80\xa6\x1d\x01\x12\x15\n\x11Capability_Sol\
|
|
|
|
|
ana\x10\x12\x12!\n\x17Capability_Translations\x10\x13\x1a\x04\x80\xa6\
|
|
|
|
|
\x1d\x01\x12\x1f\n\x15Capability_Brightness\x10\x14\x1a\x04\x80\xa6\x1d\
|
|
|
|
|
\x01\x12\x1b\n\x11Capability_Haptic\x10\x15\x1a\x04\x80\xa6\x1d\x01\x1a\
|
|
|
|
|
\x04\xc8\xf3\x18\x01\"\x0c\n\nLockDevice\"&\n\x07SetBusy\x12\x1b\n\texpi\
|
|
|
|
|
ry_ms\x18\x01\x20\x01(\rR\x08expiryMs\"\x0c\n\nEndSession\"\xc4\x04\n\rA\
|
|
|
|
|
pplySettings\x12\x1e\n\x08language\x18\x01\x20\x01(\tR\x08languageB\x02\
|
|
|
|
|
\x18\x01\x12\x14\n\x05label\x18\x02\x20\x01(\tR\x05label\x12%\n\x0euse_p\
|
|
|
|
|
assphrase\x18\x03\x20\x01(\x08R\rusePassphrase\x12\x1e\n\nhomescreen\x18\
|
|
|
|
|
\x04\x20\x01(\x0cR\nhomescreen\x120\n\x12_passphrase_source\x18\x05\x20\
|
|
|
|
|
\x01(\rR\x10PassphraseSourceB\x02\x18\x01\x12+\n\x12auto_lock_delay_ms\
|
|
|
|
|
\x18\x06\x20\x01(\rR\x0fautoLockDelayMs\x12)\n\x10display_rotation\x18\
|
|
|
|
|
\x07\x20\x01(\rR\x0fdisplayRotation\x12=\n\x1bpassphrase_always_on_devic\
|
|
|
|
|
e\x18\x08\x20\x01(\x08R\x18passphraseAlwaysOnDevice\x12T\n\rsafety_check\
|
|
|
|
|
s\x18\t\x20\x01(\x0e2/.hw.trezor.messages.management.SafetyCheckLevelR\
|
|
|
|
|
\x0csafetyChecks\x123\n\x15experimental_features\x18\n\x20\x01(\x08R\x14\
|
|
|
|
|
experimentalFeatures\x129\n\x19hide_passphrase_from_host\x18\x0b\x20\x01\
|
|
|
|
|
(\x08R\x16hidePassphraseFromHost\x12'\n\x0fhaptic_feedback\x18\r\x20\x01\
|
|
|
|
@ -11107,25 +11215,23 @@ static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
|
|
ackupDevice.Slip39GroupR\x06groups\x1a[\n\x0bSlip39Group\x12)\n\x10membe\
|
|
|
|
|
r_threshold\x18\x01\x20\x02(\rR\x0fmemberThreshold\x12!\n\x0cmember_coun\
|
|
|
|
|
t\x18\x02\x20\x02(\rR\x0bmemberCount\"\x10\n\x0eEntropyRequest\"&\n\nEnt\
|
|
|
|
|
ropyAck\x12\x18\n\x07entropy\x18\x01\x20\x02(\x0cR\x07entropy\"\xef\x04\
|
|
|
|
|
ropyAck\x12\x18\n\x07entropy\x18\x01\x20\x02(\x0cR\x07entropy\"\x8d\x04\
|
|
|
|
|
\n\x0eRecoveryDevice\x12\x1d\n\nword_count\x18\x01\x20\x01(\rR\twordCoun\
|
|
|
|
|
t\x123\n\x15passphrase_protection\x18\x02\x20\x01(\x08R\x14passphrasePro\
|
|
|
|
|
tection\x12%\n\x0epin_protection\x18\x03\x20\x01(\x08R\rpinProtection\
|
|
|
|
|
\x12\x1e\n\x08language\x18\x04\x20\x01(\tR\x08languageB\x02\x18\x01\x12\
|
|
|
|
|
\x14\n\x05label\x18\x05\x20\x01(\tR\x05label\x12)\n\x10enforce_wordlist\
|
|
|
|
|
\x18\x06\x20\x01(\x08R\x0fenforceWordlist\x12T\n\x04type\x18\x08\x20\x01\
|
|
|
|
|
(\x0e2@.hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceTypeR\
|
|
|
|
|
\x04type\x12\x1f\n\x0bu2f_counter\x18\t\x20\x01(\rR\nu2fCounter\x12^\n\
|
|
|
|
|
\x04kind\x18\n\x20\x01(\x0e2:.hw.trezor.messages.management.RecoveryDevi\
|
|
|
|
|
ce.RecoveryKind:\x0eNormalRecoveryR\x04kind\"Z\n\x12RecoveryDeviceType\
|
|
|
|
|
\x12%\n!RecoveryDeviceType_ScrambledWords\x10\0\x12\x1d\n\x19RecoveryDev\
|
|
|
|
|
iceType_Matrix\x10\x01\"H\n\x0cRecoveryKind\x12\x12\n\x0eNormalRecovery\
|
|
|
|
|
\x10\0\x12\n\n\x06DryRun\x10\x01\x12\x18\n\x14UnlockRepeatedBackup\x10\
|
|
|
|
|
\x02J\x04\x08\x07\x10\x08\"\xc5\x01\n\x0bWordRequest\x12N\n\x04type\x18\
|
|
|
|
|
\x01\x20\x02(\x0e2:.hw.trezor.messages.management.WordRequest.WordReques\
|
|
|
|
|
tTypeR\x04type\"f\n\x0fWordRequestType\x12\x19\n\x15WordRequestType_Plai\
|
|
|
|
|
n\x10\0\x12\x1b\n\x17WordRequestType_Matrix9\x10\x01\x12\x1b\n\x17WordRe\
|
|
|
|
|
questType_Matrix6\x10\x02\"\x1d\n\x07WordAck\x12\x12\n\x04word\x18\x01\
|
|
|
|
|
\x18\x06\x20\x01(\x08R\x0fenforceWordlist\x12j\n\x0cinput_method\x18\x08\
|
|
|
|
|
\x20\x01(\x0e2G.hw.trezor.messages.management.RecoveryDevice.RecoveryDev\
|
|
|
|
|
iceInputMethodR\x0binputMethod\x12\x1f\n\x0bu2f_counter\x18\t\x20\x01(\r\
|
|
|
|
|
R\nu2fCounter\x12O\n\x04type\x18\n\x20\x01(\x0e2+.hw.trezor.messages.man\
|
|
|
|
|
agement.RecoveryType:\x0eNormalRecoveryR\x04type\";\n\x19RecoveryDeviceI\
|
|
|
|
|
nputMethod\x12\x12\n\x0eScrambledWords\x10\0\x12\n\n\x06Matrix\x10\x01J\
|
|
|
|
|
\x04\x08\x07\x10\x08\"\xc5\x01\n\x0bWordRequest\x12N\n\x04type\x18\x01\
|
|
|
|
|
\x20\x02(\x0e2:.hw.trezor.messages.management.WordRequest.WordRequestTyp\
|
|
|
|
|
eR\x04type\"f\n\x0fWordRequestType\x12\x19\n\x15WordRequestType_Plain\
|
|
|
|
|
\x10\0\x12\x1b\n\x17WordRequestType_Matrix9\x10\x01\x12\x1b\n\x17WordReq\
|
|
|
|
|
uestType_Matrix6\x10\x02\"\x1d\n\x07WordAck\x12\x12\n\x04word\x18\x01\
|
|
|
|
|
\x20\x02(\tR\x04word\"0\n\rSetU2FCounter\x12\x1f\n\x0bu2f_counter\x18\
|
|
|
|
|
\x01\x20\x02(\rR\nu2fCounter\"\x13\n\x11GetNextU2FCounter\"1\n\x0eNextU2\
|
|
|
|
|
FCounter\x12\x1f\n\x0bu2f_counter\x18\x01\x20\x02(\rR\nu2fCounter\"\x11\
|
|
|
|
@ -11148,8 +11254,10 @@ static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
|
|
\x04\x12\x1e\n\x1aSlip39_Advanced_Extendable\x10\x05*G\n\x10SafetyCheckL\
|
|
|
|
|
evel\x12\n\n\x06Strict\x10\0\x12\x10\n\x0cPromptAlways\x10\x01\x12\x15\n\
|
|
|
|
|
\x11PromptTemporarily\x10\x02*0\n\x10HomescreenFormat\x12\x08\n\x04Toif\
|
|
|
|
|
\x10\x01\x12\x08\n\x04Jpeg\x10\x02\x12\x08\n\x04ToiG\x10\x03BB\n#com.sat\
|
|
|
|
|
oshilabs.trezor.lib.protobufB\x17TrezorMessageManagement\x80\xa6\x1d\x01\
|
|
|
|
|
\x10\x01\x12\x08\n\x04Jpeg\x10\x02\x12\x08\n\x04ToiG\x10\x03*H\n\x0cReco\
|
|
|
|
|
veryType\x12\x12\n\x0eNormalRecovery\x10\0\x12\n\n\x06DryRun\x10\x01\x12\
|
|
|
|
|
\x18\n\x14UnlockRepeatedBackup\x10\x02BB\n#com.satoshilabs.trezor.lib.pr\
|
|
|
|
|
otobufB\x17TrezorMessageManagement\x80\xa6\x1d\x01\
|
|
|
|
|
";
|
|
|
|
|
|
|
|
|
|
/// `FileDescriptorProto` object which was a source for this generated file
|
|
|
|
@ -11215,15 +11323,16 @@ pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
|
|
|
messages.push(UnlockBootloader::generated_message_descriptor_data());
|
|
|
|
|
messages.push(SetBrightness::generated_message_descriptor_data());
|
|
|
|
|
messages.push(backup_device::Slip39Group::generated_message_descriptor_data());
|
|
|
|
|
let mut enums = ::std::vec::Vec::with_capacity(10);
|
|
|
|
|
let mut enums = ::std::vec::Vec::with_capacity(11);
|
|
|
|
|
enums.push(BackupType::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(SafetyCheckLevel::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(HomescreenFormat::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(RecoveryType::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(features::BackupAvailability::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(features::RecoveryStatus::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(features::Capability::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(sd_protect::SdProtectOperationType::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(recovery_device::RecoveryDeviceType::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(recovery_device::RecoveryKind::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(recovery_device::RecoveryDeviceInputMethod::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(word_request::WordRequestType::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(reboot_to_bootloader::BootCommand::generated_enum_descriptor_data());
|
|
|
|
|
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
|
|
|