#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_results)]
#![allow(unused_mut)]
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkDecision {
pub button: ::std::option::Option<::protobuf::EnumOrUnknown<debug_link_decision::DebugButton>>,
pub swipe: ::std::option::Option<::protobuf::EnumOrUnknown<debug_link_decision::DebugSwipeDirection>>,
pub input: ::std::option::Option<::std::string::String>,
pub x: ::std::option::Option<u32>,
pub y: ::std::option::Option<u32>,
pub wait: ::std::option::Option<bool>,
pub hold_ms: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkDecision {
fn default() -> &'a DebugLinkDecision {
<DebugLinkDecision as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkDecision {
pub fn new() -> DebugLinkDecision {
::std::default::Default::default()
}
pub fn button(&self) -> debug_link_decision::DebugButton {
match self.button {
Some(e) => e.enum_value_or(debug_link_decision::DebugButton::NO),
None => debug_link_decision::DebugButton::NO,
}
}
pub fn clear_button(&mut self) {
self.button = ::std::option::Option::None;
}
pub fn has_button(&self) -> bool {
self.button.is_some()
}
pub fn set_button(&mut self, v: debug_link_decision::DebugButton) {
self.button = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn swipe(&self) -> debug_link_decision::DebugSwipeDirection {
match self.swipe {
Some(e) => e.enum_value_or(debug_link_decision::DebugSwipeDirection::UP),
None => debug_link_decision::DebugSwipeDirection::UP,
}
}
pub fn clear_swipe(&mut self) {
self.swipe = ::std::option::Option::None;
}
pub fn has_swipe(&self) -> bool {
self.swipe.is_some()
}
pub fn set_swipe(&mut self, v: debug_link_decision::DebugSwipeDirection) {
self.swipe = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
}
pub fn input(&self) -> &str {
match self.input.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_input(&mut self) {
self.input = ::std::option::Option::None;
}
pub fn has_input(&self) -> bool {
self.input.is_some()
}
pub fn set_input(&mut self, v: ::std::string::String) {
self.input = ::std::option::Option::Some(v);
}
pub fn mut_input(&mut self) -> &mut ::std::string::String {
if self.input.is_none() {
self.input = ::std::option::Option::Some(::std::string::String::new());
}
self.input.as_mut().unwrap()
}
pub fn take_input(&mut self) -> ::std::string::String {
self.input.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn x(&self) -> u32 {
self.x.unwrap_or(0)
}
pub fn clear_x(&mut self) {
self.x = ::std::option::Option::None;
}
pub fn has_x(&self) -> bool {
self.x.is_some()
}
pub fn set_x(&mut self, v: u32) {
self.x = ::std::option::Option::Some(v);
}
pub fn y(&self) -> u32 {
self.y.unwrap_or(0)
}
pub fn clear_y(&mut self) {
self.y = ::std::option::Option::None;
}
pub fn has_y(&self) -> bool {
self.y.is_some()
}
pub fn set_y(&mut self, v: u32) {
self.y = ::std::option::Option::Some(v);
}
pub fn wait(&self) -> bool {
self.wait.unwrap_or(false)
}
pub fn clear_wait(&mut self) {
self.wait = ::std::option::Option::None;
}
pub fn has_wait(&self) -> bool {
self.wait.is_some()
}
pub fn set_wait(&mut self, v: bool) {
self.wait = ::std::option::Option::Some(v);
}
pub fn hold_ms(&self) -> u32 {
self.hold_ms.unwrap_or(0)
}
pub fn clear_hold_ms(&mut self) {
self.hold_ms = ::std::option::Option::None;
}
pub fn has_hold_ms(&self) -> bool {
self.hold_ms.is_some()
}
pub fn set_hold_ms(&mut self, v: u32) {
self.hold_ms = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(7);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"button",
|m: &DebugLinkDecision| { &m.button },
|m: &mut DebugLinkDecision| { &mut m.button },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"swipe",
|m: &DebugLinkDecision| { &m.swipe },
|m: &mut DebugLinkDecision| { &mut m.swipe },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"input",
|m: &DebugLinkDecision| { &m.input },
|m: &mut DebugLinkDecision| { &mut m.input },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"x",
|m: &DebugLinkDecision| { &m.x },
|m: &mut DebugLinkDecision| { &mut m.x },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"y",
|m: &DebugLinkDecision| { &m.y },
|m: &mut DebugLinkDecision| { &mut m.y },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"wait",
|m: &DebugLinkDecision| { &m.wait },
|m: &mut DebugLinkDecision| { &mut m.wait },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"hold_ms",
|m: &DebugLinkDecision| { &m.hold_ms },
|m: &mut DebugLinkDecision| { &mut m.hold_ms },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkDecision>(
"DebugLinkDecision",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkDecision {
const NAME: &'static str = "DebugLinkDecision";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.button = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
16 => {
self.swipe = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
26 => {
self.input = ::std::option::Option::Some(is.read_string()?);
},
32 => {
self.x = ::std::option::Option::Some(is.read_uint32()?);
},
40 => {
self.y = ::std::option::Option::Some(is.read_uint32()?);
},
48 => {
self.wait = ::std::option::Option::Some(is.read_bool()?);
},
56 => {
self.hold_ms = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.button {
my_size += ::protobuf::rt::int32_size(1, v.value());
}
if let Some(v) = self.swipe {
my_size += ::protobuf::rt::int32_size(2, v.value());
}
if let Some(v) = self.input.as_ref() {
my_size += ::protobuf::rt::string_size(3, &v);
}
if let Some(v) = self.x {
my_size += ::protobuf::rt::uint32_size(4, v);
}
if let Some(v) = self.y {
my_size += ::protobuf::rt::uint32_size(5, v);
}
if let Some(v) = self.wait {
my_size += 1 + 1;
}
if let Some(v) = self.hold_ms {
my_size += ::protobuf::rt::uint32_size(7, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.button {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.swipe {
os.write_enum(2, ::protobuf::EnumOrUnknown::value(&v))?;
}
if let Some(v) = self.input.as_ref() {
os.write_string(3, v)?;
}
if let Some(v) = self.x {
os.write_uint32(4, v)?;
}
if let Some(v) = self.y {
os.write_uint32(5, v)?;
}
if let Some(v) = self.wait {
os.write_bool(6, v)?;
}
if let Some(v) = self.hold_ms {
os.write_uint32(7, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkDecision {
DebugLinkDecision::new()
}
fn clear(&mut self) {
self.button = ::std::option::Option::None;
self.swipe = ::std::option::Option::None;
self.input = ::std::option::Option::None;
self.x = ::std::option::Option::None;
self.y = ::std::option::Option::None;
self.wait = ::std::option::Option::None;
self.hold_ms = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkDecision {
static instance: DebugLinkDecision = DebugLinkDecision {
button: ::std::option::Option::None,
swipe: ::std::option::Option::None,
input: ::std::option::Option::None,
x: ::std::option::Option::None,
y: ::std::option::Option::None,
wait: ::std::option::Option::None,
hold_ms: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkDecision {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkDecision").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkDecision {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkDecision {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
pub mod debug_link_decision {
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum DebugSwipeDirection {
UP = 0,
DOWN = 1,
LEFT = 2,
RIGHT = 3,
}
impl ::protobuf::Enum for DebugSwipeDirection {
const NAME: &'static str = "DebugSwipeDirection";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<DebugSwipeDirection> {
match value {
0 => ::std::option::Option::Some(DebugSwipeDirection::UP),
1 => ::std::option::Option::Some(DebugSwipeDirection::DOWN),
2 => ::std::option::Option::Some(DebugSwipeDirection::LEFT),
3 => ::std::option::Option::Some(DebugSwipeDirection::RIGHT),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [DebugSwipeDirection] = &[
DebugSwipeDirection::UP,
DebugSwipeDirection::DOWN,
DebugSwipeDirection::LEFT,
DebugSwipeDirection::RIGHT,
];
}
impl ::protobuf::EnumFull for DebugSwipeDirection {
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("DebugLinkDecision.DebugSwipeDirection").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 DebugSwipeDirection {
fn default() -> Self {
DebugSwipeDirection::UP
}
}
impl DebugSwipeDirection {
pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<DebugSwipeDirection>("DebugLinkDecision.DebugSwipeDirection")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum DebugButton {
NO = 0,
YES = 1,
INFO = 2,
}
impl ::protobuf::Enum for DebugButton {
const NAME: &'static str = "DebugButton";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<DebugButton> {
match value {
0 => ::std::option::Option::Some(DebugButton::NO),
1 => ::std::option::Option::Some(DebugButton::YES),
2 => ::std::option::Option::Some(DebugButton::INFO),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [DebugButton] = &[
DebugButton::NO,
DebugButton::YES,
DebugButton::INFO,
];
}
impl ::protobuf::EnumFull for DebugButton {
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("DebugLinkDecision.DebugButton").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 DebugButton {
fn default() -> Self {
DebugButton::NO
}
}
impl DebugButton {
pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<DebugButton>("DebugLinkDecision.DebugButton")
}
}
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkLayout {
pub tokens: ::std::vec::Vec<::std::string::String>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkLayout {
fn default() -> &'a DebugLinkLayout {
<DebugLinkLayout as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkLayout {
pub fn new() -> DebugLinkLayout {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"tokens",
|m: &DebugLinkLayout| { &m.tokens },
|m: &mut DebugLinkLayout| { &mut m.tokens },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkLayout>(
"DebugLinkLayout",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkLayout {
const NAME: &'static str = "DebugLinkLayout";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.tokens.push(is.read_string()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
for value in &self.tokens {
my_size += ::protobuf::rt::string_size(1, &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
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
for v in &self.tokens {
os.write_string(1, &v)?;
};
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkLayout {
DebugLinkLayout::new()
}
fn clear(&mut self) {
self.tokens.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkLayout {
static instance: DebugLinkLayout = DebugLinkLayout {
tokens: ::std::vec::Vec::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkLayout {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkLayout").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkLayout {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkLayout {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkReseedRandom {
pub value: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkReseedRandom {
fn default() -> &'a DebugLinkReseedRandom {
<DebugLinkReseedRandom as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkReseedRandom {
pub fn new() -> DebugLinkReseedRandom {
::std::default::Default::default()
}
pub fn value(&self) -> u32 {
self.value.unwrap_or(0)
}
pub fn clear_value(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_value(&self) -> bool {
self.value.is_some()
}
pub fn set_value(&mut self, v: u32) {
self.value = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"value",
|m: &DebugLinkReseedRandom| { &m.value },
|m: &mut DebugLinkReseedRandom| { &mut m.value },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkReseedRandom>(
"DebugLinkReseedRandom",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkReseedRandom {
const NAME: &'static str = "DebugLinkReseedRandom";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.value = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.value {
my_size += ::protobuf::rt::uint32_size(1, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.value {
os.write_uint32(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkReseedRandom {
DebugLinkReseedRandom::new()
}
fn clear(&mut self) {
self.value = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkReseedRandom {
static instance: DebugLinkReseedRandom = DebugLinkReseedRandom {
value: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkReseedRandom {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkReseedRandom").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkReseedRandom {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkReseedRandom {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkRecordScreen {
pub target_directory: ::std::option::Option<::std::string::String>,
pub refresh_index: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkRecordScreen {
fn default() -> &'a DebugLinkRecordScreen {
<DebugLinkRecordScreen as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkRecordScreen {
pub fn new() -> DebugLinkRecordScreen {
::std::default::Default::default()
}
pub fn target_directory(&self) -> &str {
match self.target_directory.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_target_directory(&mut self) {
self.target_directory = ::std::option::Option::None;
}
pub fn has_target_directory(&self) -> bool {
self.target_directory.is_some()
}
pub fn set_target_directory(&mut self, v: ::std::string::String) {
self.target_directory = ::std::option::Option::Some(v);
}
pub fn mut_target_directory(&mut self) -> &mut ::std::string::String {
if self.target_directory.is_none() {
self.target_directory = ::std::option::Option::Some(::std::string::String::new());
}
self.target_directory.as_mut().unwrap()
}
pub fn take_target_directory(&mut self) -> ::std::string::String {
self.target_directory.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn refresh_index(&self) -> u32 {
self.refresh_index.unwrap_or(0u32)
}
pub fn clear_refresh_index(&mut self) {
self.refresh_index = ::std::option::Option::None;
}
pub fn has_refresh_index(&self) -> bool {
self.refresh_index.is_some()
}
pub fn set_refresh_index(&mut self, v: u32) {
self.refresh_index = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"target_directory",
|m: &DebugLinkRecordScreen| { &m.target_directory },
|m: &mut DebugLinkRecordScreen| { &mut m.target_directory },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"refresh_index",
|m: &DebugLinkRecordScreen| { &m.refresh_index },
|m: &mut DebugLinkRecordScreen| { &mut m.refresh_index },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkRecordScreen>(
"DebugLinkRecordScreen",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkRecordScreen {
const NAME: &'static str = "DebugLinkRecordScreen";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.target_directory = ::std::option::Option::Some(is.read_string()?);
},
16 => {
self.refresh_index = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.target_directory.as_ref() {
my_size += ::protobuf::rt::string_size(1, &v);
}
if let Some(v) = self.refresh_index {
my_size += ::protobuf::rt::uint32_size(2, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.target_directory.as_ref() {
os.write_string(1, v)?;
}
if let Some(v) = self.refresh_index {
os.write_uint32(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkRecordScreen {
DebugLinkRecordScreen::new()
}
fn clear(&mut self) {
self.target_directory = ::std::option::Option::None;
self.refresh_index = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkRecordScreen {
static instance: DebugLinkRecordScreen = DebugLinkRecordScreen {
target_directory: ::std::option::Option::None,
refresh_index: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkRecordScreen {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkRecordScreen").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkRecordScreen {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkRecordScreen {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkGetState {
pub wait_word_list: ::std::option::Option<bool>,
pub wait_word_pos: ::std::option::Option<bool>,
pub wait_layout: ::std::option::Option<bool>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkGetState {
fn default() -> &'a DebugLinkGetState {
<DebugLinkGetState as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkGetState {
pub fn new() -> DebugLinkGetState {
::std::default::Default::default()
}
pub fn wait_word_list(&self) -> bool {
self.wait_word_list.unwrap_or(false)
}
pub fn clear_wait_word_list(&mut self) {
self.wait_word_list = ::std::option::Option::None;
}
pub fn has_wait_word_list(&self) -> bool {
self.wait_word_list.is_some()
}
pub fn set_wait_word_list(&mut self, v: bool) {
self.wait_word_list = ::std::option::Option::Some(v);
}
pub fn wait_word_pos(&self) -> bool {
self.wait_word_pos.unwrap_or(false)
}
pub fn clear_wait_word_pos(&mut self) {
self.wait_word_pos = ::std::option::Option::None;
}
pub fn has_wait_word_pos(&self) -> bool {
self.wait_word_pos.is_some()
}
pub fn set_wait_word_pos(&mut self, v: bool) {
self.wait_word_pos = ::std::option::Option::Some(v);
}
pub fn wait_layout(&self) -> bool {
self.wait_layout.unwrap_or(false)
}
pub fn clear_wait_layout(&mut self) {
self.wait_layout = ::std::option::Option::None;
}
pub fn has_wait_layout(&self) -> bool {
self.wait_layout.is_some()
}
pub fn set_wait_layout(&mut self, v: bool) {
self.wait_layout = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"wait_word_list",
|m: &DebugLinkGetState| { &m.wait_word_list },
|m: &mut DebugLinkGetState| { &mut m.wait_word_list },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"wait_word_pos",
|m: &DebugLinkGetState| { &m.wait_word_pos },
|m: &mut DebugLinkGetState| { &mut m.wait_word_pos },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"wait_layout",
|m: &DebugLinkGetState| { &m.wait_layout },
|m: &mut DebugLinkGetState| { &mut m.wait_layout },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkGetState>(
"DebugLinkGetState",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkGetState {
const NAME: &'static str = "DebugLinkGetState";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.wait_word_list = ::std::option::Option::Some(is.read_bool()?);
},
16 => {
self.wait_word_pos = ::std::option::Option::Some(is.read_bool()?);
},
24 => {
self.wait_layout = ::std::option::Option::Some(is.read_bool()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.wait_word_list {
my_size += 1 + 1;
}
if let Some(v) = self.wait_word_pos {
my_size += 1 + 1;
}
if let Some(v) = self.wait_layout {
my_size += 1 + 1;
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.wait_word_list {
os.write_bool(1, v)?;
}
if let Some(v) = self.wait_word_pos {
os.write_bool(2, v)?;
}
if let Some(v) = self.wait_layout {
os.write_bool(3, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkGetState {
DebugLinkGetState::new()
}
fn clear(&mut self) {
self.wait_word_list = ::std::option::Option::None;
self.wait_word_pos = ::std::option::Option::None;
self.wait_layout = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkGetState {
static instance: DebugLinkGetState = DebugLinkGetState {
wait_word_list: ::std::option::Option::None,
wait_word_pos: ::std::option::Option::None,
wait_layout: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkGetState {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkGetState").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkGetState {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkGetState {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkState {
pub layout: ::std::option::Option<::std::vec::Vec<u8>>,
pub pin: ::std::option::Option<::std::string::String>,
pub matrix: ::std::option::Option<::std::string::String>,
pub mnemonic_secret: ::std::option::Option<::std::vec::Vec<u8>>,
pub node: ::protobuf::MessageField<super::messages_common::HDNodeType>,
pub passphrase_protection: ::std::option::Option<bool>,
pub reset_word: ::std::option::Option<::std::string::String>,
pub reset_entropy: ::std::option::Option<::std::vec::Vec<u8>>,
pub recovery_fake_word: ::std::option::Option<::std::string::String>,
pub recovery_word_pos: ::std::option::Option<u32>,
pub reset_word_pos: ::std::option::Option<u32>,
pub mnemonic_type: ::std::option::Option<::protobuf::EnumOrUnknown<super::messages_management::BackupType>>,
pub tokens: ::std::vec::Vec<::std::string::String>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkState {
fn default() -> &'a DebugLinkState {
<DebugLinkState as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkState {
pub fn new() -> DebugLinkState {
::std::default::Default::default()
}
pub fn layout(&self) -> &[u8] {
match self.layout.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_layout(&mut self) {
self.layout = ::std::option::Option::None;
}
pub fn has_layout(&self) -> bool {
self.layout.is_some()
}
pub fn set_layout(&mut self, v: ::std::vec::Vec<u8>) {
self.layout = ::std::option::Option::Some(v);
}
pub fn mut_layout(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.layout.is_none() {
self.layout = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.layout.as_mut().unwrap()
}
pub fn take_layout(&mut self) -> ::std::vec::Vec<u8> {
self.layout.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn pin(&self) -> &str {
match self.pin.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_pin(&mut self) {
self.pin = ::std::option::Option::None;
}
pub fn has_pin(&self) -> bool {
self.pin.is_some()
}
pub fn set_pin(&mut self, v: ::std::string::String) {
self.pin = ::std::option::Option::Some(v);
}
pub fn mut_pin(&mut self) -> &mut ::std::string::String {
if self.pin.is_none() {
self.pin = ::std::option::Option::Some(::std::string::String::new());
}
self.pin.as_mut().unwrap()
}
pub fn take_pin(&mut self) -> ::std::string::String {
self.pin.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn matrix(&self) -> &str {
match self.matrix.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_matrix(&mut self) {
self.matrix = ::std::option::Option::None;
}
pub fn has_matrix(&self) -> bool {
self.matrix.is_some()
}
pub fn set_matrix(&mut self, v: ::std::string::String) {
self.matrix = ::std::option::Option::Some(v);
}
pub fn mut_matrix(&mut self) -> &mut ::std::string::String {
if self.matrix.is_none() {
self.matrix = ::std::option::Option::Some(::std::string::String::new());
}
self.matrix.as_mut().unwrap()
}
pub fn take_matrix(&mut self) -> ::std::string::String {
self.matrix.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn mnemonic_secret(&self) -> &[u8] {
match self.mnemonic_secret.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_mnemonic_secret(&mut self) {
self.mnemonic_secret = ::std::option::Option::None;
}
pub fn has_mnemonic_secret(&self) -> bool {
self.mnemonic_secret.is_some()
}
pub fn set_mnemonic_secret(&mut self, v: ::std::vec::Vec<u8>) {
self.mnemonic_secret = ::std::option::Option::Some(v);
}
pub fn mut_mnemonic_secret(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.mnemonic_secret.is_none() {
self.mnemonic_secret = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.mnemonic_secret.as_mut().unwrap()
}
pub fn take_mnemonic_secret(&mut self) -> ::std::vec::Vec<u8> {
self.mnemonic_secret.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn passphrase_protection(&self) -> bool {
self.passphrase_protection.unwrap_or(false)
}
pub fn clear_passphrase_protection(&mut self) {
self.passphrase_protection = ::std::option::Option::None;
}
pub fn has_passphrase_protection(&self) -> bool {
self.passphrase_protection.is_some()
}
pub fn set_passphrase_protection(&mut self, v: bool) {
self.passphrase_protection = ::std::option::Option::Some(v);
}
pub fn reset_word(&self) -> &str {
match self.reset_word.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_reset_word(&mut self) {
self.reset_word = ::std::option::Option::None;
}
pub fn has_reset_word(&self) -> bool {
self.reset_word.is_some()
}
pub fn set_reset_word(&mut self, v: ::std::string::String) {
self.reset_word = ::std::option::Option::Some(v);
}
pub fn mut_reset_word(&mut self) -> &mut ::std::string::String {
if self.reset_word.is_none() {
self.reset_word = ::std::option::Option::Some(::std::string::String::new());
}
self.reset_word.as_mut().unwrap()
}
pub fn take_reset_word(&mut self) -> ::std::string::String {
self.reset_word.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn reset_entropy(&self) -> &[u8] {
match self.reset_entropy.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_reset_entropy(&mut self) {
self.reset_entropy = ::std::option::Option::None;
}
pub fn has_reset_entropy(&self) -> bool {
self.reset_entropy.is_some()
}
pub fn set_reset_entropy(&mut self, v: ::std::vec::Vec<u8>) {
self.reset_entropy = ::std::option::Option::Some(v);
}
pub fn mut_reset_entropy(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.reset_entropy.is_none() {
self.reset_entropy = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.reset_entropy.as_mut().unwrap()
}
pub fn take_reset_entropy(&mut self) -> ::std::vec::Vec<u8> {
self.reset_entropy.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn recovery_fake_word(&self) -> &str {
match self.recovery_fake_word.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_recovery_fake_word(&mut self) {
self.recovery_fake_word = ::std::option::Option::None;
}
pub fn has_recovery_fake_word(&self) -> bool {
self.recovery_fake_word.is_some()
}
pub fn set_recovery_fake_word(&mut self, v: ::std::string::String) {
self.recovery_fake_word = ::std::option::Option::Some(v);
}
pub fn mut_recovery_fake_word(&mut self) -> &mut ::std::string::String {
if self.recovery_fake_word.is_none() {
self.recovery_fake_word = ::std::option::Option::Some(::std::string::String::new());
}
self.recovery_fake_word.as_mut().unwrap()
}
pub fn take_recovery_fake_word(&mut self) -> ::std::string::String {
self.recovery_fake_word.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn recovery_word_pos(&self) -> u32 {
self.recovery_word_pos.unwrap_or(0)
}
pub fn clear_recovery_word_pos(&mut self) {
self.recovery_word_pos = ::std::option::Option::None;
}
pub fn has_recovery_word_pos(&self) -> bool {
self.recovery_word_pos.is_some()
}
pub fn set_recovery_word_pos(&mut self, v: u32) {
self.recovery_word_pos = ::std::option::Option::Some(v);
}
pub fn reset_word_pos(&self) -> u32 {
self.reset_word_pos.unwrap_or(0)
}
pub fn clear_reset_word_pos(&mut self) {
self.reset_word_pos = ::std::option::Option::None;
}
pub fn has_reset_word_pos(&self) -> bool {
self.reset_word_pos.is_some()
}
pub fn set_reset_word_pos(&mut self, v: u32) {
self.reset_word_pos = ::std::option::Option::Some(v);
}
pub fn mnemonic_type(&self) -> super::messages_management::BackupType {
match self.mnemonic_type {
Some(e) => e.enum_value_or(super::messages_management::BackupType::Bip39),
None => super::messages_management::BackupType::Bip39,
}
}
pub fn clear_mnemonic_type(&mut self) {
self.mnemonic_type = ::std::option::Option::None;
}
pub fn has_mnemonic_type(&self) -> bool {
self.mnemonic_type.is_some()
}
pub fn set_mnemonic_type(&mut self, v: super::messages_management::BackupType) {
self.mnemonic_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(13);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"layout",
|m: &DebugLinkState| { &m.layout },
|m: &mut DebugLinkState| { &mut m.layout },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"pin",
|m: &DebugLinkState| { &m.pin },
|m: &mut DebugLinkState| { &mut m.pin },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"matrix",
|m: &DebugLinkState| { &m.matrix },
|m: &mut DebugLinkState| { &mut m.matrix },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"mnemonic_secret",
|m: &DebugLinkState| { &m.mnemonic_secret },
|m: &mut DebugLinkState| { &mut m.mnemonic_secret },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::messages_common::HDNodeType>(
"node",
|m: &DebugLinkState| { &m.node },
|m: &mut DebugLinkState| { &mut m.node },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"passphrase_protection",
|m: &DebugLinkState| { &m.passphrase_protection },
|m: &mut DebugLinkState| { &mut m.passphrase_protection },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"reset_word",
|m: &DebugLinkState| { &m.reset_word },
|m: &mut DebugLinkState| { &mut m.reset_word },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"reset_entropy",
|m: &DebugLinkState| { &m.reset_entropy },
|m: &mut DebugLinkState| { &mut m.reset_entropy },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"recovery_fake_word",
|m: &DebugLinkState| { &m.recovery_fake_word },
|m: &mut DebugLinkState| { &mut m.recovery_fake_word },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"recovery_word_pos",
|m: &DebugLinkState| { &m.recovery_word_pos },
|m: &mut DebugLinkState| { &mut m.recovery_word_pos },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"reset_word_pos",
|m: &DebugLinkState| { &m.reset_word_pos },
|m: &mut DebugLinkState| { &mut m.reset_word_pos },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"mnemonic_type",
|m: &DebugLinkState| { &m.mnemonic_type },
|m: &mut DebugLinkState| { &mut m.mnemonic_type },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"tokens",
|m: &DebugLinkState| { &m.tokens },
|m: &mut DebugLinkState| { &mut m.tokens },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkState>(
"DebugLinkState",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkState {
const NAME: &'static str = "DebugLinkState";
fn is_initialized(&self) -> bool {
for v in &self.node {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.layout = ::std::option::Option::Some(is.read_bytes()?);
},
18 => {
self.pin = ::std::option::Option::Some(is.read_string()?);
},
26 => {
self.matrix = ::std::option::Option::Some(is.read_string()?);
},
34 => {
self.mnemonic_secret = ::std::option::Option::Some(is.read_bytes()?);
},
42 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.node)?;
},
48 => {
self.passphrase_protection = ::std::option::Option::Some(is.read_bool()?);
},
58 => {
self.reset_word = ::std::option::Option::Some(is.read_string()?);
},
66 => {
self.reset_entropy = ::std::option::Option::Some(is.read_bytes()?);
},
74 => {
self.recovery_fake_word = ::std::option::Option::Some(is.read_string()?);
},
80 => {
self.recovery_word_pos = ::std::option::Option::Some(is.read_uint32()?);
},
88 => {
self.reset_word_pos = ::std::option::Option::Some(is.read_uint32()?);
},
96 => {
self.mnemonic_type = ::std::option::Option::Some(is.read_enum_or_unknown()?);
},
106 => {
self.tokens.push(is.read_string()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.layout.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(v) = self.pin.as_ref() {
my_size += ::protobuf::rt::string_size(2, &v);
}
if let Some(v) = self.matrix.as_ref() {
my_size += ::protobuf::rt::string_size(3, &v);
}
if let Some(v) = self.mnemonic_secret.as_ref() {
my_size += ::protobuf::rt::bytes_size(4, &v);
}
if let Some(v) = self.node.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.passphrase_protection {
my_size += 1 + 1;
}
if let Some(v) = self.reset_word.as_ref() {
my_size += ::protobuf::rt::string_size(7, &v);
}
if let Some(v) = self.reset_entropy.as_ref() {
my_size += ::protobuf::rt::bytes_size(8, &v);
}
if let Some(v) = self.recovery_fake_word.as_ref() {
my_size += ::protobuf::rt::string_size(9, &v);
}
if let Some(v) = self.recovery_word_pos {
my_size += ::protobuf::rt::uint32_size(10, v);
}
if let Some(v) = self.reset_word_pos {
my_size += ::protobuf::rt::uint32_size(11, v);
}
if let Some(v) = self.mnemonic_type {
my_size += ::protobuf::rt::int32_size(12, v.value());
}
for value in &self.tokens {
my_size += ::protobuf::rt::string_size(13, &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
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.layout.as_ref() {
os.write_bytes(1, v)?;
}
if let Some(v) = self.pin.as_ref() {
os.write_string(2, v)?;
}
if let Some(v) = self.matrix.as_ref() {
os.write_string(3, v)?;
}
if let Some(v) = self.mnemonic_secret.as_ref() {
os.write_bytes(4, v)?;
}
if let Some(v) = self.node.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
}
if let Some(v) = self.passphrase_protection {
os.write_bool(6, v)?;
}
if let Some(v) = self.reset_word.as_ref() {
os.write_string(7, v)?;
}
if let Some(v) = self.reset_entropy.as_ref() {
os.write_bytes(8, v)?;
}
if let Some(v) = self.recovery_fake_word.as_ref() {
os.write_string(9, v)?;
}
if let Some(v) = self.recovery_word_pos {
os.write_uint32(10, v)?;
}
if let Some(v) = self.reset_word_pos {
os.write_uint32(11, v)?;
}
if let Some(v) = self.mnemonic_type {
os.write_enum(12, ::protobuf::EnumOrUnknown::value(&v))?;
}
for v in &self.tokens {
os.write_string(13, &v)?;
};
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkState {
DebugLinkState::new()
}
fn clear(&mut self) {
self.layout = ::std::option::Option::None;
self.pin = ::std::option::Option::None;
self.matrix = ::std::option::Option::None;
self.mnemonic_secret = ::std::option::Option::None;
self.node.clear();
self.passphrase_protection = ::std::option::Option::None;
self.reset_word = ::std::option::Option::None;
self.reset_entropy = ::std::option::Option::None;
self.recovery_fake_word = ::std::option::Option::None;
self.recovery_word_pos = ::std::option::Option::None;
self.reset_word_pos = ::std::option::Option::None;
self.mnemonic_type = ::std::option::Option::None;
self.tokens.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkState {
static instance: DebugLinkState = DebugLinkState {
layout: ::std::option::Option::None,
pin: ::std::option::Option::None,
matrix: ::std::option::Option::None,
mnemonic_secret: ::std::option::Option::None,
node: ::protobuf::MessageField::none(),
passphrase_protection: ::std::option::Option::None,
reset_word: ::std::option::Option::None,
reset_entropy: ::std::option::Option::None,
recovery_fake_word: ::std::option::Option::None,
recovery_word_pos: ::std::option::Option::None,
reset_word_pos: ::std::option::Option::None,
mnemonic_type: ::std::option::Option::None,
tokens: ::std::vec::Vec::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkState {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkState").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkState {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkState {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkStop {
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkStop {
fn default() -> &'a DebugLinkStop {
<DebugLinkStop as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkStop {
pub fn new() -> DebugLinkStop {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(0);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkStop>(
"DebugLinkStop",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkStop {
const NAME: &'static str = "DebugLinkStop";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkStop {
DebugLinkStop::new()
}
fn clear(&mut self) {
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkStop {
static instance: DebugLinkStop = DebugLinkStop {
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkStop {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkStop").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkStop {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkStop {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkLog {
pub level: ::std::option::Option<u32>,
pub bucket: ::std::option::Option<::std::string::String>,
pub text: ::std::option::Option<::std::string::String>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkLog {
fn default() -> &'a DebugLinkLog {
<DebugLinkLog as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkLog {
pub fn new() -> DebugLinkLog {
::std::default::Default::default()
}
pub fn level(&self) -> u32 {
self.level.unwrap_or(0)
}
pub fn clear_level(&mut self) {
self.level = ::std::option::Option::None;
}
pub fn has_level(&self) -> bool {
self.level.is_some()
}
pub fn set_level(&mut self, v: u32) {
self.level = ::std::option::Option::Some(v);
}
pub fn bucket(&self) -> &str {
match self.bucket.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_bucket(&mut self) {
self.bucket = ::std::option::Option::None;
}
pub fn has_bucket(&self) -> bool {
self.bucket.is_some()
}
pub fn set_bucket(&mut self, v: ::std::string::String) {
self.bucket = ::std::option::Option::Some(v);
}
pub fn mut_bucket(&mut self) -> &mut ::std::string::String {
if self.bucket.is_none() {
self.bucket = ::std::option::Option::Some(::std::string::String::new());
}
self.bucket.as_mut().unwrap()
}
pub fn take_bucket(&mut self) -> ::std::string::String {
self.bucket.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn text(&self) -> &str {
match self.text.as_ref() {
Some(v) => v,
None => "",
}
}
pub fn clear_text(&mut self) {
self.text = ::std::option::Option::None;
}
pub fn has_text(&self) -> bool {
self.text.is_some()
}
pub fn set_text(&mut self, v: ::std::string::String) {
self.text = ::std::option::Option::Some(v);
}
pub fn mut_text(&mut self) -> &mut ::std::string::String {
if self.text.is_none() {
self.text = ::std::option::Option::Some(::std::string::String::new());
}
self.text.as_mut().unwrap()
}
pub fn take_text(&mut self) -> ::std::string::String {
self.text.take().unwrap_or_else(|| ::std::string::String::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"level",
|m: &DebugLinkLog| { &m.level },
|m: &mut DebugLinkLog| { &mut m.level },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"bucket",
|m: &DebugLinkLog| { &m.bucket },
|m: &mut DebugLinkLog| { &mut m.bucket },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"text",
|m: &DebugLinkLog| { &m.text },
|m: &mut DebugLinkLog| { &mut m.text },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkLog>(
"DebugLinkLog",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkLog {
const NAME: &'static str = "DebugLinkLog";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.level = ::std::option::Option::Some(is.read_uint32()?);
},
18 => {
self.bucket = ::std::option::Option::Some(is.read_string()?);
},
26 => {
self.text = ::std::option::Option::Some(is.read_string()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.level {
my_size += ::protobuf::rt::uint32_size(1, v);
}
if let Some(v) = self.bucket.as_ref() {
my_size += ::protobuf::rt::string_size(2, &v);
}
if let Some(v) = self.text.as_ref() {
my_size += ::protobuf::rt::string_size(3, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.level {
os.write_uint32(1, v)?;
}
if let Some(v) = self.bucket.as_ref() {
os.write_string(2, v)?;
}
if let Some(v) = self.text.as_ref() {
os.write_string(3, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkLog {
DebugLinkLog::new()
}
fn clear(&mut self) {
self.level = ::std::option::Option::None;
self.bucket = ::std::option::Option::None;
self.text = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkLog {
static instance: DebugLinkLog = DebugLinkLog {
level: ::std::option::Option::None,
bucket: ::std::option::Option::None,
text: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkLog {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkLog").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkLog {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkLog {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkMemoryRead {
pub address: ::std::option::Option<u32>,
pub length: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkMemoryRead {
fn default() -> &'a DebugLinkMemoryRead {
<DebugLinkMemoryRead as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkMemoryRead {
pub fn new() -> DebugLinkMemoryRead {
::std::default::Default::default()
}
pub fn address(&self) -> u32 {
self.address.unwrap_or(0)
}
pub fn clear_address(&mut self) {
self.address = ::std::option::Option::None;
}
pub fn has_address(&self) -> bool {
self.address.is_some()
}
pub fn set_address(&mut self, v: u32) {
self.address = ::std::option::Option::Some(v);
}
pub fn length(&self) -> u32 {
self.length.unwrap_or(0)
}
pub fn clear_length(&mut self) {
self.length = ::std::option::Option::None;
}
pub fn has_length(&self) -> bool {
self.length.is_some()
}
pub fn set_length(&mut self, v: u32) {
self.length = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"address",
|m: &DebugLinkMemoryRead| { &m.address },
|m: &mut DebugLinkMemoryRead| { &mut m.address },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"length",
|m: &DebugLinkMemoryRead| { &m.length },
|m: &mut DebugLinkMemoryRead| { &mut m.length },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkMemoryRead>(
"DebugLinkMemoryRead",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkMemoryRead {
const NAME: &'static str = "DebugLinkMemoryRead";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.address = ::std::option::Option::Some(is.read_uint32()?);
},
16 => {
self.length = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.address {
my_size += ::protobuf::rt::uint32_size(1, v);
}
if let Some(v) = self.length {
my_size += ::protobuf::rt::uint32_size(2, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.address {
os.write_uint32(1, v)?;
}
if let Some(v) = self.length {
os.write_uint32(2, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkMemoryRead {
DebugLinkMemoryRead::new()
}
fn clear(&mut self) {
self.address = ::std::option::Option::None;
self.length = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkMemoryRead {
static instance: DebugLinkMemoryRead = DebugLinkMemoryRead {
address: ::std::option::Option::None,
length: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkMemoryRead {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkMemoryRead").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkMemoryRead {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkMemoryRead {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkMemory {
pub memory: ::std::option::Option<::std::vec::Vec<u8>>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkMemory {
fn default() -> &'a DebugLinkMemory {
<DebugLinkMemory as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkMemory {
pub fn new() -> DebugLinkMemory {
::std::default::Default::default()
}
pub fn memory(&self) -> &[u8] {
match self.memory.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_memory(&mut self) {
self.memory = ::std::option::Option::None;
}
pub fn has_memory(&self) -> bool {
self.memory.is_some()
}
pub fn set_memory(&mut self, v: ::std::vec::Vec<u8>) {
self.memory = ::std::option::Option::Some(v);
}
pub fn mut_memory(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.memory.is_none() {
self.memory = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.memory.as_mut().unwrap()
}
pub fn take_memory(&mut self) -> ::std::vec::Vec<u8> {
self.memory.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"memory",
|m: &DebugLinkMemory| { &m.memory },
|m: &mut DebugLinkMemory| { &mut m.memory },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkMemory>(
"DebugLinkMemory",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkMemory {
const NAME: &'static str = "DebugLinkMemory";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.memory = ::std::option::Option::Some(is.read_bytes()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.memory.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.memory.as_ref() {
os.write_bytes(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkMemory {
DebugLinkMemory::new()
}
fn clear(&mut self) {
self.memory = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkMemory {
static instance: DebugLinkMemory = DebugLinkMemory {
memory: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkMemory {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkMemory").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkMemory {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkMemory {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkMemoryWrite {
pub address: ::std::option::Option<u32>,
pub memory: ::std::option::Option<::std::vec::Vec<u8>>,
pub flash: ::std::option::Option<bool>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkMemoryWrite {
fn default() -> &'a DebugLinkMemoryWrite {
<DebugLinkMemoryWrite as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkMemoryWrite {
pub fn new() -> DebugLinkMemoryWrite {
::std::default::Default::default()
}
pub fn address(&self) -> u32 {
self.address.unwrap_or(0)
}
pub fn clear_address(&mut self) {
self.address = ::std::option::Option::None;
}
pub fn has_address(&self) -> bool {
self.address.is_some()
}
pub fn set_address(&mut self, v: u32) {
self.address = ::std::option::Option::Some(v);
}
pub fn memory(&self) -> &[u8] {
match self.memory.as_ref() {
Some(v) => v,
None => &[],
}
}
pub fn clear_memory(&mut self) {
self.memory = ::std::option::Option::None;
}
pub fn has_memory(&self) -> bool {
self.memory.is_some()
}
pub fn set_memory(&mut self, v: ::std::vec::Vec<u8>) {
self.memory = ::std::option::Option::Some(v);
}
pub fn mut_memory(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.memory.is_none() {
self.memory = ::std::option::Option::Some(::std::vec::Vec::new());
}
self.memory.as_mut().unwrap()
}
pub fn take_memory(&mut self) -> ::std::vec::Vec<u8> {
self.memory.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn flash(&self) -> bool {
self.flash.unwrap_or(false)
}
pub fn clear_flash(&mut self) {
self.flash = ::std::option::Option::None;
}
pub fn has_flash(&self) -> bool {
self.flash.is_some()
}
pub fn set_flash(&mut self, v: bool) {
self.flash = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"address",
|m: &DebugLinkMemoryWrite| { &m.address },
|m: &mut DebugLinkMemoryWrite| { &mut m.address },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"memory",
|m: &DebugLinkMemoryWrite| { &m.memory },
|m: &mut DebugLinkMemoryWrite| { &mut m.memory },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"flash",
|m: &DebugLinkMemoryWrite| { &m.flash },
|m: &mut DebugLinkMemoryWrite| { &mut m.flash },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkMemoryWrite>(
"DebugLinkMemoryWrite",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkMemoryWrite {
const NAME: &'static str = "DebugLinkMemoryWrite";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.address = ::std::option::Option::Some(is.read_uint32()?);
},
18 => {
self.memory = ::std::option::Option::Some(is.read_bytes()?);
},
24 => {
self.flash = ::std::option::Option::Some(is.read_bool()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.address {
my_size += ::protobuf::rt::uint32_size(1, v);
}
if let Some(v) = self.memory.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
if let Some(v) = self.flash {
my_size += 1 + 1;
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.address {
os.write_uint32(1, v)?;
}
if let Some(v) = self.memory.as_ref() {
os.write_bytes(2, v)?;
}
if let Some(v) = self.flash {
os.write_bool(3, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkMemoryWrite {
DebugLinkMemoryWrite::new()
}
fn clear(&mut self) {
self.address = ::std::option::Option::None;
self.memory = ::std::option::Option::None;
self.flash = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkMemoryWrite {
static instance: DebugLinkMemoryWrite = DebugLinkMemoryWrite {
address: ::std::option::Option::None,
memory: ::std::option::Option::None,
flash: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkMemoryWrite {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkMemoryWrite").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkMemoryWrite {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkMemoryWrite {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkFlashErase {
pub sector: ::std::option::Option<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkFlashErase {
fn default() -> &'a DebugLinkFlashErase {
<DebugLinkFlashErase as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkFlashErase {
pub fn new() -> DebugLinkFlashErase {
::std::default::Default::default()
}
pub fn sector(&self) -> u32 {
self.sector.unwrap_or(0)
}
pub fn clear_sector(&mut self) {
self.sector = ::std::option::Option::None;
}
pub fn has_sector(&self) -> bool {
self.sector.is_some()
}
pub fn set_sector(&mut self, v: u32) {
self.sector = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"sector",
|m: &DebugLinkFlashErase| { &m.sector },
|m: &mut DebugLinkFlashErase| { &mut m.sector },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkFlashErase>(
"DebugLinkFlashErase",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkFlashErase {
const NAME: &'static str = "DebugLinkFlashErase";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.sector = ::std::option::Option::Some(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.sector {
my_size += ::protobuf::rt::uint32_size(1, v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.sector {
os.write_uint32(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkFlashErase {
DebugLinkFlashErase::new()
}
fn clear(&mut self) {
self.sector = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkFlashErase {
static instance: DebugLinkFlashErase = DebugLinkFlashErase {
sector: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkFlashErase {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkFlashErase").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkFlashErase {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkFlashErase {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkEraseSdCard {
pub format: ::std::option::Option<bool>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkEraseSdCard {
fn default() -> &'a DebugLinkEraseSdCard {
<DebugLinkEraseSdCard as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkEraseSdCard {
pub fn new() -> DebugLinkEraseSdCard {
::std::default::Default::default()
}
pub fn format(&self) -> bool {
self.format.unwrap_or(false)
}
pub fn clear_format(&mut self) {
self.format = ::std::option::Option::None;
}
pub fn has_format(&self) -> bool {
self.format.is_some()
}
pub fn set_format(&mut self, v: bool) {
self.format = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"format",
|m: &DebugLinkEraseSdCard| { &m.format },
|m: &mut DebugLinkEraseSdCard| { &mut m.format },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkEraseSdCard>(
"DebugLinkEraseSdCard",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkEraseSdCard {
const NAME: &'static str = "DebugLinkEraseSdCard";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.format = ::std::option::Option::Some(is.read_bool()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.format {
my_size += 1 + 1;
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.format {
os.write_bool(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkEraseSdCard {
DebugLinkEraseSdCard::new()
}
fn clear(&mut self) {
self.format = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkEraseSdCard {
static instance: DebugLinkEraseSdCard = DebugLinkEraseSdCard {
format: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkEraseSdCard {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkEraseSdCard").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkEraseSdCard {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkEraseSdCard {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkWatchLayout {
pub watch: ::std::option::Option<bool>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkWatchLayout {
fn default() -> &'a DebugLinkWatchLayout {
<DebugLinkWatchLayout as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkWatchLayout {
pub fn new() -> DebugLinkWatchLayout {
::std::default::Default::default()
}
pub fn watch(&self) -> bool {
self.watch.unwrap_or(false)
}
pub fn clear_watch(&mut self) {
self.watch = ::std::option::Option::None;
}
pub fn has_watch(&self) -> bool {
self.watch.is_some()
}
pub fn set_watch(&mut self, v: bool) {
self.watch = ::std::option::Option::Some(v);
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"watch",
|m: &DebugLinkWatchLayout| { &m.watch },
|m: &mut DebugLinkWatchLayout| { &mut m.watch },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkWatchLayout>(
"DebugLinkWatchLayout",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkWatchLayout {
const NAME: &'static str = "DebugLinkWatchLayout";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.watch = ::std::option::Option::Some(is.read_bool()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.watch {
my_size += 1 + 1;
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.watch {
os.write_bool(1, v)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkWatchLayout {
DebugLinkWatchLayout::new()
}
fn clear(&mut self) {
self.watch = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkWatchLayout {
static instance: DebugLinkWatchLayout = DebugLinkWatchLayout {
watch: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkWatchLayout {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkWatchLayout").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkWatchLayout {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkWatchLayout {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DebugLinkResetDebugEvents {
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DebugLinkResetDebugEvents {
fn default() -> &'a DebugLinkResetDebugEvents {
<DebugLinkResetDebugEvents as ::protobuf::Message>::default_instance()
}
}
impl DebugLinkResetDebugEvents {
pub fn new() -> DebugLinkResetDebugEvents {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(0);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkResetDebugEvents>(
"DebugLinkResetDebugEvents",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DebugLinkResetDebugEvents {
const NAME: &'static str = "DebugLinkResetDebugEvents";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DebugLinkResetDebugEvents {
DebugLinkResetDebugEvents::new()
}
fn clear(&mut self) {
self.special_fields.clear();
}
fn default_instance() -> &'static DebugLinkResetDebugEvents {
static instance: DebugLinkResetDebugEvents = DebugLinkResetDebugEvents {
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DebugLinkResetDebugEvents {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkResetDebugEvents").unwrap()).clone()
}
}
impl ::std::fmt::Display for DebugLinkResetDebugEvents {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebugLinkResetDebugEvents {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x14messages-debug.proto\x12\x18hw.trezor.messages.debug\x1a\x0emessag\
es.proto\x1a\x15messages-common.proto\x1a\x19messages-management.proto\"\
\x82\x03\n\x11DebugLinkDecision\x12O\n\x06button\x18\x01\x20\x01(\x0e27.\
hw.trezor.messages.debug.DebugLinkDecision.DebugButtonR\x06button\x12U\n\
\x05swipe\x18\x02\x20\x01(\x0e2?.hw.trezor.messages.debug.DebugLinkDecis\
ion.DebugSwipeDirectionR\x05swipe\x12\x14\n\x05input\x18\x03\x20\x01(\tR\
\x05input\x12\x0c\n\x01x\x18\x04\x20\x01(\rR\x01x\x12\x0c\n\x01y\x18\x05\
\x20\x01(\rR\x01y\x12\x12\n\x04wait\x18\x06\x20\x01(\x08R\x04wait\x12\
\x17\n\x07hold_ms\x18\x07\x20\x01(\rR\x06holdMs\"<\n\x13DebugSwipeDirect\
ion\x12\x06\n\x02UP\x10\0\x12\x08\n\x04DOWN\x10\x01\x12\x08\n\x04LEFT\
\x10\x02\x12\t\n\x05RIGHT\x10\x03\"(\n\x0bDebugButton\x12\x06\n\x02NO\
\x10\0\x12\x07\n\x03YES\x10\x01\x12\x08\n\x04INFO\x10\x02\")\n\x0fDebugL\
inkLayout\x12\x16\n\x06tokens\x18\x01\x20\x03(\tR\x06tokens\"-\n\x15Debu\
gLinkReseedRandom\x12\x14\n\x05value\x18\x01\x20\x01(\rR\x05value\"j\n\
\x15DebugLinkRecordScreen\x12)\n\x10target_directory\x18\x01\x20\x01(\tR\
\x0ftargetDirectory\x12&\n\rrefresh_index\x18\x02\x20\x01(\r:\x010R\x0cr\
efreshIndex\"~\n\x11DebugLinkGetState\x12$\n\x0ewait_word_list\x18\x01\
\x20\x01(\x08R\x0cwaitWordList\x12\"\n\rwait_word_pos\x18\x02\x20\x01(\
\x08R\x0bwaitWordPos\x12\x1f\n\x0bwait_layout\x18\x03\x20\x01(\x08R\nwai\
tLayout\"\x97\x04\n\x0eDebugLinkState\x12\x16\n\x06layout\x18\x01\x20\
\x01(\x0cR\x06layout\x12\x10\n\x03pin\x18\x02\x20\x01(\tR\x03pin\x12\x16\
\n\x06matrix\x18\x03\x20\x01(\tR\x06matrix\x12'\n\x0fmnemonic_secret\x18\
\x04\x20\x01(\x0cR\x0emnemonicSecret\x129\n\x04node\x18\x05\x20\x01(\x0b\
2%.hw.trezor.messages.common.HDNodeTypeR\x04node\x123\n\x15passphrase_pr\
otection\x18\x06\x20\x01(\x08R\x14passphraseProtection\x12\x1d\n\nreset_\
word\x18\x07\x20\x01(\tR\tresetWord\x12#\n\rreset_entropy\x18\x08\x20\
\x01(\x0cR\x0cresetEntropy\x12,\n\x12recovery_fake_word\x18\t\x20\x01(\t\
R\x10recoveryFakeWord\x12*\n\x11recovery_word_pos\x18\n\x20\x01(\rR\x0fr\
ecoveryWordPos\x12$\n\x0ereset_word_pos\x18\x0b\x20\x01(\rR\x0cresetWord\
Pos\x12N\n\rmnemonic_type\x18\x0c\x20\x01(\x0e2).hw.trezor.messages.mana\
gement.BackupTypeR\x0cmnemonicType\x12\x16\n\x06tokens\x18\r\x20\x03(\tR\
\x06tokens\"\x0f\n\rDebugLinkStop\"P\n\x0cDebugLinkLog\x12\x14\n\x05leve\
l\x18\x01\x20\x01(\rR\x05level\x12\x16\n\x06bucket\x18\x02\x20\x01(\tR\
\x06bucket\x12\x12\n\x04text\x18\x03\x20\x01(\tR\x04text\"G\n\x13DebugLi\
nkMemoryRead\x12\x18\n\x07address\x18\x01\x20\x01(\rR\x07address\x12\x16\
\n\x06length\x18\x02\x20\x01(\rR\x06length\")\n\x0fDebugLinkMemory\x12\
\x16\n\x06memory\x18\x01\x20\x01(\x0cR\x06memory\"^\n\x14DebugLinkMemory\
Write\x12\x18\n\x07address\x18\x01\x20\x01(\rR\x07address\x12\x16\n\x06m\
emory\x18\x02\x20\x01(\x0cR\x06memory\x12\x14\n\x05flash\x18\x03\x20\x01\
(\x08R\x05flash\"-\n\x13DebugLinkFlashErase\x12\x16\n\x06sector\x18\x01\
\x20\x01(\rR\x06sector\".\n\x14DebugLinkEraseSdCard\x12\x16\n\x06format\
\x18\x01\x20\x01(\x08R\x06format\",\n\x14DebugLinkWatchLayout\x12\x14\n\
\x05watch\x18\x01\x20\x01(\x08R\x05watch\"\x1b\n\x19DebugLinkResetDebugE\
ventsB=\n#com.satoshilabs.trezor.lib.protobufB\x12TrezorMessageDebug\x80\
\xa6\x1d\x01J\xb6/\n\x07\x12\x05\0\0\xc2\x01\x01\n\x08\n\x01\x0c\x12\x03\
\0\0\x12\n\x08\n\x01\x02\x12\x03\x01\0!\n\x08\n\x01\x08\x12\x03\x04\0<\n\
.\n\x02\x08\x01\x12\x03\x04\0<\x1a#\x20Sugar\x20for\x20easier\x20handlin\
g\x20in\x20Java\n\n\x08\n\x01\x08\x12\x03\x05\03\n\t\n\x02\x08\x08\x12\
\x03\x05\03\n\x08\n\x01\x08\x12\x03\x07\0(\n\x0b\n\x04\x08\xe0\xd4\x03\
\x12\x03\x07\0(\n\t\n\x02\x03\0\x12\x03\t\0\x18\n\t\n\x02\x03\x01\x12\
\x03\n\0\x1f\n\t\n\x02\x03\x02\x12\x03\x0b\0#\nX\n\x02\x04\0\x12\x04\x12\
\0-\x01\x1aL*\n\x20Request:\x20\"Press\"\x20the\x20button\x20on\x20the\
\x20device\n\x20@start\n\x20@next\x20DebugLinkLayout\n\n\n\n\x03\x04\0\
\x01\x12\x03\x12\x08\x19\n\x1b\n\x04\x04\0\x02\0\x12\x03\x13\x04$\"\x0e\
\x20button\x20press\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x13\x04\x0c\n\
\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x13\r\x18\n\x0c\n\x05\x04\0\x02\0\x01\
\x12\x03\x13\x19\x1f\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x13\"#\n\x1e\n\
\x04\x04\0\x02\x01\x12\x03\x14\x04+\"\x11\x20swipe\x20direction\n\n\x0c\
\n\x05\x04\0\x02\x01\x04\x12\x03\x14\x04\x0c\n\x0c\n\x05\x04\0\x02\x01\
\x06\x12\x03\x14\r\x20\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x14!&\n\x0c\
\n\x05\x04\0\x02\x01\x03\x12\x03\x14)*\n\x1d\n\x04\x04\0\x02\x02\x12\x03\
\x15\x04\x1e\"\x10\x20keyboard\x20input\n\n\x0c\n\x05\x04\0\x02\x02\x04\
\x12\x03\x15\x04\x0c\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\x15\r\x13\n\
\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x15\x14\x19\n\x0c\n\x05\x04\0\x02\
\x02\x03\x12\x03\x15\x1c\x1d\n8\n\x04\x04\0\x04\0\x12\x04\x19\x04\x1e\
\x05\x1a**\n\x20Structure\x20representing\x20swipe\x20direction\n\n\x0c\
\n\x05\x04\0\x04\0\x01\x12\x03\x19\t\x1c\n\r\n\x06\x04\0\x04\0\x02\0\x12\
\x03\x1a\x08\x0f\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\x1a\x08\n\n\
\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03\x1a\r\x0e\n\r\n\x06\x04\0\x04\0\
\x02\x01\x12\x03\x1b\x08\x11\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03\
\x1b\x08\x0c\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03\x1b\x0f\x10\n\r\
\n\x06\x04\0\x04\0\x02\x02\x12\x03\x1c\x08\x11\n\x0e\n\x07\x04\0\x04\0\
\x02\x02\x01\x12\x03\x1c\x08\x0c\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\
\x03\x1c\x0f\x10\n\r\n\x06\x04\0\x04\0\x02\x03\x12\x03\x1d\x08\x12\n\x0e\
\n\x07\x04\0\x04\0\x02\x03\x01\x12\x03\x1d\x08\r\n\x0e\n\x07\x04\0\x04\0\
\x02\x03\x02\x12\x03\x1d\x10\x11\n7\n\x04\x04\0\x04\x01\x12\x04#\x04'\
\x05\x1a)*\n\x20Structure\x20representing\x20button\x20presses\n\n\x0c\n\
\x05\x04\0\x04\x01\x01\x12\x03#\t\x14\n\r\n\x06\x04\0\x04\x01\x02\0\x12\
\x03$\x08\x0f\n\x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x03$\x08\n\n\x0e\n\
\x07\x04\0\x04\x01\x02\0\x02\x12\x03$\r\x0e\n\r\n\x06\x04\0\x04\x01\x02\
\x01\x12\x03%\x08\x10\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x01\x12\x03%\x08\
\x0b\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x03%\x0e\x0f\n\r\n\x06\
\x04\0\x04\x01\x02\x02\x12\x03&\x08\x11\n\x0e\n\x07\x04\0\x04\x01\x02\
\x02\x01\x12\x03&\x08\x0c\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03&\
\x0f\x10\n!\n\x04\x04\0\x02\x03\x12\x03)\x04\x1a\"\x14\x20touch\x20X\x20\
coordinate\n\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x03)\x04\x0c\n\x0c\n\x05\
\x04\0\x02\x03\x05\x12\x03)\r\x13\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03)\
\x14\x15\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03)\x18\x19\n!\n\x04\x04\0\
\x02\x04\x12\x03*\x04\x1a\"\x14\x20touch\x20Y\x20coordinate\n\n\x0c\n\
\x05\x04\0\x02\x04\x04\x12\x03*\x04\x0c\n\x0c\n\x05\x04\0\x02\x04\x05\
\x12\x03*\r\x13\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03*\x14\x15\n\x0c\n\
\x05\x04\0\x02\x04\x03\x12\x03*\x18\x19\n%\n\x04\x04\0\x02\x05\x12\x03+\
\x04\x1b\"\x18\x20wait\x20for\x20layout\x20change\n\n\x0c\n\x05\x04\0\
\x02\x05\x04\x12\x03+\x04\x0c\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03+\r\
\x11\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03+\x12\x16\n\x0c\n\x05\x04\0\
\x02\x05\x03\x12\x03+\x19\x1a\n\"\n\x04\x04\0\x02\x06\x12\x03,\x04\x20\"\
\x15\x20touch\x20hold\x20duration\n\n\x0c\n\x05\x04\0\x02\x06\x04\x12\
\x03,\x04\x0c\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03,\r\x13\n\x0c\n\x05\
\x04\0\x02\x06\x01\x12\x03,\x14\x1b\n\x0c\n\x05\x04\0\x02\x06\x03\x12\
\x03,\x1e\x1f\nZ\n\x02\x04\x01\x12\x043\05\x01\x1aN*\n\x20Response:\x20D\
evice\x20text\x20layout\x20as\x20a\x20list\x20of\x20tokens\x20as\x20retu\
rned\x20by\x20Rust\n\x20@end\n\n\n\n\x03\x04\x01\x01\x12\x033\x08\x17\n\
\x0b\n\x04\x04\x01\x02\0\x12\x034\x04\x1f\n\x0c\n\x05\x04\x01\x02\0\x04\
\x12\x034\x04\x0c\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x034\r\x13\n\x0c\n\
\x05\x04\x01\x02\0\x01\x12\x034\x14\x1a\n\x0c\n\x05\x04\x01\x02\0\x03\
\x12\x034\x1d\x1e\nL\n\x02\x04\x02\x12\x04<\0>\x01\x1a@*\n\x20Request:\
\x20Re-seed\x20RNG\x20with\x20given\x20value\n\x20@start\n\x20@next\x20S\
uccess\n\n\n\n\x03\x04\x02\x01\x12\x03<\x08\x1d\n\x0b\n\x04\x04\x02\x02\
\0\x12\x03=\x04\x1e\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03=\x04\x0c\n\x0c\
\n\x05\x04\x02\x02\0\x05\x12\x03=\r\x13\n\x0c\n\x05\x04\x02\x02\0\x01\
\x12\x03=\x14\x19\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03=\x1c\x1d\nr\n\
\x02\x04\x03\x12\x04E\0H\x01\x1af*\n\x20Request:\x20Start\x20or\x20stop\
\x20recording\x20screen\x20changes\x20into\x20given\x20target\x20directo\
ry\n\x20@start\n\x20@next\x20Success\n\n\n\n\x03\x04\x03\x01\x12\x03E\
\x08\x1d\n1\n\x04\x04\x03\x02\0\x12\x03F\x04)\"$\x20empty\x20or\x20missi\
ng\x20to\x20stop\x20recording\n\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03F\
\x04\x0c\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03F\r\x13\n\x0c\n\x05\x04\
\x03\x02\0\x01\x12\x03F\x14$\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03F'(\nL\
\n\x04\x04\x03\x02\x01\x12\x03G\x042\"?\x20which\x20index\x20to\x20give\
\x20the\x20screenshots\x20(after\x20emulator\x20restarts)\n\n\x0c\n\x05\
\x04\x03\x02\x01\x04\x12\x03G\x04\x0c\n\x0c\n\x05\x04\x03\x02\x01\x05\
\x12\x03G\r\x13\n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x03G\x14!\n\x0c\n\
\x05\x04\x03\x02\x01\x03\x12\x03G$%\n\x0c\n\x05\x04\x03\x02\x01\x08\x12\
\x03G&1\n\x0c\n\x05\x04\x03\x02\x01\x07\x12\x03G/0\nU\n\x02\x04\x04\x12\
\x04O\0S\x01\x1aI*\n\x20Request:\x20Computer\x20asks\x20for\x20device\
\x20state\n\x20@start\n\x20@next\x20DebugLinkState\n\n\n\n\x03\x04\x04\
\x01\x12\x03O\x08\x19\nB\n\x04\x04\x04\x02\0\x12\x03P\x04%\"5\x20Trezor\
\x20T\x20only\x20-\x20wait\x20until\x20mnemonic\x20words\x20are\x20shown\
\n\n\x0c\n\x05\x04\x04\x02\0\x04\x12\x03P\x04\x0c\n\x0c\n\x05\x04\x04\
\x02\0\x05\x12\x03P\r\x11\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03P\x12\x20\
\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03P#$\nJ\n\x04\x04\x04\x02\x01\x12\
\x03Q\x04$\"=\x20Trezor\x20T\x20only\x20-\x20wait\x20until\x20reset\x20w\
ord\x20position\x20is\x20requested\n\n\x0c\n\x05\x04\x04\x02\x01\x04\x12\
\x03Q\x04\x0c\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03Q\r\x11\n\x0c\n\x05\
\x04\x04\x02\x01\x01\x12\x03Q\x12\x1f\n\x0c\n\x05\x04\x04\x02\x01\x03\
\x12\x03Q\"#\n0\n\x04\x04\x04\x02\x02\x12\x03R\x04\"\"#\x20wait\x20until\
\x20current\x20layout\x20changes\n\n\x0c\n\x05\x04\x04\x02\x02\x04\x12\
\x03R\x04\x0c\n\x0c\n\x05\x04\x04\x02\x02\x05\x12\x03R\r\x11\n\x0c\n\x05\
\x04\x04\x02\x02\x01\x12\x03R\x12\x1d\n\x0c\n\x05\x04\x04\x02\x02\x03\
\x12\x03R\x20!\n4\n\x02\x04\x05\x12\x04Y\0g\x01\x1a(*\n\x20Response:\x20\
Device\x20current\x20state\n\x20@end\n\n\n\n\x03\x04\x05\x01\x12\x03Y\
\x08\x16\n$\n\x04\x04\x05\x02\0\x12\x03Z\x04\x1e\"\x17\x20raw\x20buffer\
\x20of\x20display\n\n\x0c\n\x05\x04\x05\x02\0\x04\x12\x03Z\x04\x0c\n\x0c\
\n\x05\x04\x05\x02\0\x05\x12\x03Z\r\x12\n\x0c\n\x05\x04\x05\x02\0\x01\
\x12\x03Z\x13\x19\n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03Z\x1c\x1d\n;\n\
\x04\x04\x05\x02\x01\x12\x03[\x04\x1c\".\x20current\x20PIN,\x20blank\x20\
if\x20PIN\x20is\x20not\x20set/enabled\n\n\x0c\n\x05\x04\x05\x02\x01\x04\
\x12\x03[\x04\x0c\n\x0c\n\x05\x04\x05\x02\x01\x05\x12\x03[\r\x13\n\x0c\n\
\x05\x04\x05\x02\x01\x01\x12\x03[\x14\x17\n\x0c\n\x05\x04\x05\x02\x01\
\x03\x12\x03[\x1a\x1b\n!\n\x04\x04\x05\x02\x02\x12\x03\\\x04\x1f\"\x14\
\x20current\x20PIN\x20matrix\n\n\x0c\n\x05\x04\x05\x02\x02\x04\x12\x03\\\
\x04\x0c\n\x0c\n\x05\x04\x05\x02\x02\x05\x12\x03\\\r\x13\n\x0c\n\x05\x04\
\x05\x02\x02\x01\x12\x03\\\x14\x1a\n\x0c\n\x05\x04\x05\x02\x02\x03\x12\
\x03\\\x1d\x1e\n&\n\x04\x04\x05\x02\x03\x12\x03]\x04'\"\x19\x20current\
\x20mnemonic\x20secret\n\n\x0c\n\x05\x04\x05\x02\x03\x04\x12\x03]\x04\
\x0c\n\x0c\n\x05\x04\x05\x02\x03\x05\x12\x03]\r\x12\n\x0c\n\x05\x04\x05\
\x02\x03\x01\x12\x03]\x13\"\n\x0c\n\x05\x04\x05\x02\x03\x03\x12\x03]%&\n\
\"\n\x04\x04\x05\x02\x04\x12\x03^\x04(\"\x15\x20current\x20BIP-32\x20nod\
e\n\n\x0c\n\x05\x04\x05\x02\x04\x04\x12\x03^\x04\x0c\n\x0c\n\x05\x04\x05\
\x02\x04\x06\x12\x03^\r\x1e\n\x0c\n\x05\x04\x05\x02\x04\x01\x12\x03^\x1f\
#\n\x0c\n\x05\x04\x05\x02\x04\x03\x12\x03^&'\n;\n\x04\x04\x05\x02\x05\
\x12\x03_\x04,\".\x20is\x20node/mnemonic\x20encrypted\x20using\x20passph\
rase?\n\n\x0c\n\x05\x04\x05\x02\x05\x04\x12\x03_\x04\x0c\n\x0c\n\x05\x04\
\x05\x02\x05\x05\x12\x03_\r\x11\n\x0c\n\x05\x04\x05\x02\x05\x01\x12\x03_\
\x12'\n\x0c\n\x05\x04\x05\x02\x05\x03\x12\x03_*+\nA\n\x04\x04\x05\x02\
\x06\x12\x03`\x04#\"4\x20word\x20on\x20device\x20display\x20during\x20Re\
setDevice\x20workflow\n\n\x0c\n\x05\x04\x05\x02\x06\x04\x12\x03`\x04\x0c\
\n\x0c\n\x05\x04\x05\x02\x06\x05\x12\x03`\r\x13\n\x0c\n\x05\x04\x05\x02\
\x06\x01\x12\x03`\x14\x1e\n\x0c\n\x05\x04\x05\x02\x06\x03\x12\x03`!\"\n:\
\n\x04\x04\x05\x02\x07\x12\x03a\x04%\"-\x20current\x20entropy\x20during\
\x20ResetDevice\x20workflow\n\n\x0c\n\x05\x04\x05\x02\x07\x04\x12\x03a\
\x04\x0c\n\x0c\n\x05\x04\x05\x02\x07\x05\x12\x03a\r\x12\n\x0c\n\x05\x04\
\x05\x02\x07\x01\x12\x03a\x13\x20\n\x0c\n\x05\x04\x05\x02\x07\x03\x12\
\x03a#$\nD\n\x04\x04\x05\x02\x08\x12\x03b\x04+\"7\x20(fake)\x20word\x20o\
n\x20display\x20during\x20RecoveryDevice\x20workflow\n\n\x0c\n\x05\x04\
\x05\x02\x08\x04\x12\x03b\x04\x0c\n\x0c\n\x05\x04\x05\x02\x08\x05\x12\
\x03b\r\x13\n\x0c\n\x05\x04\x05\x02\x08\x01\x12\x03b\x14&\n\x0c\n\x05\
\x04\x05\x02\x08\x03\x12\x03b)*\n\\\n\x04\x04\x05\x02\t\x12\x03c\x04+\"O\
\x20index\x20of\x20mnemonic\x20word\x20the\x20device\x20is\x20expecting\
\x20during\x20RecoveryDevice\x20workflow\n\n\x0c\n\x05\x04\x05\x02\t\x04\
\x12\x03c\x04\x0c\n\x0c\n\x05\x04\x05\x02\t\x05\x12\x03c\r\x13\n\x0c\n\
\x05\x04\x05\x02\t\x01\x12\x03c\x14%\n\x0c\n\x05\x04\x05\x02\t\x03\x12\
\x03c(*\nY\n\x04\x04\x05\x02\n\x12\x03d\x04(\"L\x20index\x20of\x20mnemon\
ic\x20word\x20the\x20device\x20is\x20expecting\x20during\x20ResetDevice\
\x20workflow\n\n\x0c\n\x05\x04\x05\x02\n\x04\x12\x03d\x04\x0c\n\x0c\n\
\x05\x04\x05\x02\n\x05\x12\x03d\r\x13\n\x0c\n\x05\x04\x05\x02\n\x01\x12\
\x03d\x14\"\n\x0c\n\x05\x04\x05\x02\n\x03\x12\x03d%'\n5\n\x04\x04\x05\
\x02\x0b\x12\x03e\x046\"(\x20current\x20mnemonic\x20type\x20(BIP-39/SLIP\
-39)\n\n\x0c\n\x05\x04\x05\x02\x0b\x04\x12\x03e\x04\x0c\n\x0c\n\x05\x04\
\x05\x02\x0b\x06\x12\x03e\r\"\n\x0c\n\x05\x04\x05\x02\x0b\x01\x12\x03e#0\
\n\x0c\n\x05\x04\x05\x02\x0b\x03\x12\x03e35\nD\n\x04\x04\x05\x02\x0c\x12\
\x03f\x04\x20\"7\x20current\x20layout\x20represented\x20as\x20a\x20list\
\x20of\x20string\x20tokens\n\n\x0c\n\x05\x04\x05\x02\x0c\x04\x12\x03f\
\x04\x0c\n\x0c\n\x05\x04\x05\x02\x0c\x05\x12\x03f\r\x13\n\x0c\n\x05\x04\
\x05\x02\x0c\x01\x12\x03f\x14\x1a\n\x0c\n\x05\x04\x05\x02\x0c\x03\x12\
\x03f\x1d\x1f\n6\n\x02\x04\x06\x12\x04m\0n\x01\x1a**\n\x20Request:\x20As\
k\x20device\x20to\x20restart\n\x20@start\n\n\n\n\x03\x04\x06\x01\x12\x03\
m\x08\x15\nA\n\x02\x04\x07\x12\x04t\0x\x01\x1a5*\n\x20Response:\x20Devic\
e\x20wants\x20host\x20to\x20log\x20event\n\x20@ignore\n\n\n\n\x03\x04\
\x07\x01\x12\x03t\x08\x14\n\x0b\n\x04\x04\x07\x02\0\x12\x03u\x04\x1e\n\
\x0c\n\x05\x04\x07\x02\0\x04\x12\x03u\x04\x0c\n\x0c\n\x05\x04\x07\x02\0\
\x05\x12\x03u\r\x13\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03u\x14\x19\n\x0c\
\n\x05\x04\x07\x02\0\x03\x12\x03u\x1c\x1d\n\x0b\n\x04\x04\x07\x02\x01\
\x12\x03v\x04\x1f\n\x0c\n\x05\x04\x07\x02\x01\x04\x12\x03v\x04\x0c\n\x0c\
\n\x05\x04\x07\x02\x01\x05\x12\x03v\r\x13\n\x0c\n\x05\x04\x07\x02\x01\
\x01\x12\x03v\x14\x1a\n\x0c\n\x05\x04\x07\x02\x01\x03\x12\x03v\x1d\x1e\n\
\x0b\n\x04\x04\x07\x02\x02\x12\x03w\x04\x1d\n\x0c\n\x05\x04\x07\x02\x02\
\x04\x12\x03w\x04\x0c\n\x0c\n\x05\x04\x07\x02\x02\x05\x12\x03w\r\x13\n\
\x0c\n\x05\x04\x07\x02\x02\x01\x12\x03w\x14\x18\n\x0c\n\x05\x04\x07\x02\
\x02\x03\x12\x03w\x1b\x1c\nP\n\x02\x04\x08\x12\x05\x7f\0\x82\x01\x01\x1a\
C*\n\x20Request:\x20Read\x20memory\x20from\x20device\n\x20@start\n\x20@n\
ext\x20DebugLinkMemory\n\n\n\n\x03\x04\x08\x01\x12\x03\x7f\x08\x1b\n\x0c\
\n\x04\x04\x08\x02\0\x12\x04\x80\x01\x04\x20\n\r\n\x05\x04\x08\x02\0\x04\
\x12\x04\x80\x01\x04\x0c\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\x80\x01\r\
\x13\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\x80\x01\x14\x1b\n\r\n\x05\x04\
\x08\x02\0\x03\x12\x04\x80\x01\x1e\x1f\n\x0c\n\x04\x04\x08\x02\x01\x12\
\x04\x81\x01\x04\x1f\n\r\n\x05\x04\x08\x02\x01\x04\x12\x04\x81\x01\x04\
\x0c\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\x81\x01\r\x13\n\r\n\x05\x04\
\x08\x02\x01\x01\x12\x04\x81\x01\x14\x1a\n\r\n\x05\x04\x08\x02\x01\x03\
\x12\x04\x81\x01\x1d\x1e\n:\n\x02\x04\t\x12\x06\x88\x01\0\x8a\x01\x01\
\x1a,*\n\x20Response:\x20Device\x20sends\x20memory\x20back\n\x20@end\n\n\
\x0b\n\x03\x04\t\x01\x12\x04\x88\x01\x08\x17\n\x0c\n\x04\x04\t\x02\0\x12\
\x04\x89\x01\x04\x1e\n\r\n\x05\x04\t\x02\0\x04\x12\x04\x89\x01\x04\x0c\n\
\r\n\x05\x04\t\x02\0\x05\x12\x04\x89\x01\r\x12\n\r\n\x05\x04\t\x02\0\x01\
\x12\x04\x89\x01\x13\x19\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x89\x01\x1c\
\x1d\n\xa3\x01\n\x02\x04\n\x12\x06\x93\x01\0\x97\x01\x01\x1a\x94\x01*\n\
\x20Request:\x20Write\x20memory\x20to\x20device.\n\x20WARNING:\x20Writin\
g\x20to\x20the\x20wrong\x20location\x20can\x20irreparably\x20break\x20th\
e\x20device.\n\x20@start\n\x20@next\x20Success\n\x20@next\x20Failure\n\n\
\x0b\n\x03\x04\n\x01\x12\x04\x93\x01\x08\x1c\n\x0c\n\x04\x04\n\x02\0\x12\
\x04\x94\x01\x04\x20\n\r\n\x05\x04\n\x02\0\x04\x12\x04\x94\x01\x04\x0c\n\
\r\n\x05\x04\n\x02\0\x05\x12\x04\x94\x01\r\x13\n\r\n\x05\x04\n\x02\0\x01\
\x12\x04\x94\x01\x14\x1b\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x94\x01\x1e\
\x1f\n\x0c\n\x04\x04\n\x02\x01\x12\x04\x95\x01\x04\x1e\n\r\n\x05\x04\n\
\x02\x01\x04\x12\x04\x95\x01\x04\x0c\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\
\x95\x01\r\x12\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x95\x01\x13\x19\n\r\n\
\x05\x04\n\x02\x01\x03\x12\x04\x95\x01\x1c\x1d\n\x0c\n\x04\x04\n\x02\x02\
\x12\x04\x96\x01\x04\x1c\n\r\n\x05\x04\n\x02\x02\x04\x12\x04\x96\x01\x04\
\x0c\n\r\n\x05\x04\n\x02\x02\x05\x12\x04\x96\x01\r\x11\n\r\n\x05\x04\n\
\x02\x02\x01\x12\x04\x96\x01\x12\x17\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\
\x96\x01\x1a\x1b\n\xaa\x01\n\x02\x04\x0b\x12\x06\xa0\x01\0\xa2\x01\x01\
\x1a\x9b\x01*\n\x20Request:\x20Erase\x20block\x20of\x20flash\x20on\x20de\
vice\n\x20WARNING:\x20Writing\x20to\x20the\x20wrong\x20location\x20can\
\x20irreparably\x20break\x20the\x20device.\n\x20@start\n\x20@next\x20Suc\
cess\n\x20@next\x20Failure\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xa0\x01\x08\
\x1b\n\x0c\n\x04\x04\x0b\x02\0\x12\x04\xa1\x01\x04\x1f\n\r\n\x05\x04\x0b\
\x02\0\x04\x12\x04\xa1\x01\x04\x0c\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\
\xa1\x01\r\x13\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xa1\x01\x14\x1a\n\r\n\
\x05\x04\x0b\x02\0\x03\x12\x04\xa1\x01\x1d\x1e\nR\n\x02\x04\x0c\x12\x06\
\xab\x01\0\xae\x01\x01\x1aD*\n\x20Request:\x20Erase\x20the\x20SD\x20card\
\n\x20@start\n\x20@next\x20Success\n\x20@next\x20Failure\n\n\x0b\n\x03\
\x04\x0c\x01\x12\x04\xab\x01\x08\x1c\n=\n\x04\x04\x0c\x02\0\x12\x04\xac\
\x01\x04\x1d\"/\x20if\x20true,\x20the\x20card\x20will\x20be\x20formatted\
\x20to\x20FAT32.\n\n\r\n\x05\x04\x0c\x02\0\x04\x12\x04\xac\x01\x04\x0c\n\
\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xac\x01\r\x11\n\r\n\x05\x04\x0c\x02\0\
\x01\x12\x04\xac\x01\x12\x18\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xac\x01\
\x1b\x1c\nW\n\x02\x04\r\x12\x06\xb6\x01\0\xb9\x01\x01\x1aI*\n\x20Request\
:\x20Start\x20or\x20stop\x20tracking\x20layout\x20changes\n\x20@start\n\
\x20@next\x20Success\n\n\x0b\n\x03\x04\r\x01\x12\x04\xb6\x01\x08\x1c\n/\
\n\x04\x04\r\x02\0\x12\x04\xb7\x01\x04\x1c\"!\x20if\x20true,\x20start\
\x20watching\x20layout.\n\n\r\n\x05\x04\r\x02\0\x04\x12\x04\xb7\x01\x04\
\x0c\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xb7\x01\r\x11\n\r\n\x05\x04\r\x02\
\0\x01\x12\x04\xb7\x01\x12\x17\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xb7\x01\
\x1a\x1b\n[\n\x02\x04\x0e\x12\x06\xc1\x01\0\xc2\x01\x01\x1aM*\n\x20Reque\
st:\x20Remove\x20all\x20the\x20previous\x20debug\x20event\x20state\n\x20\
@start\n\x20@next\x20Success\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\xc1\x01\
\x08!\
";
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
file_descriptor_proto_lazy.get(|| {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
})
}
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
file_descriptor.get(|| {
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
let mut deps = ::std::vec::Vec::with_capacity(3);
deps.push(super::messages::file_descriptor().clone());
deps.push(super::messages_common::file_descriptor().clone());
deps.push(super::messages_management::file_descriptor().clone());
let mut messages = ::std::vec::Vec::with_capacity(15);
messages.push(DebugLinkDecision::generated_message_descriptor_data());
messages.push(DebugLinkLayout::generated_message_descriptor_data());
messages.push(DebugLinkReseedRandom::generated_message_descriptor_data());
messages.push(DebugLinkRecordScreen::generated_message_descriptor_data());
messages.push(DebugLinkGetState::generated_message_descriptor_data());
messages.push(DebugLinkState::generated_message_descriptor_data());
messages.push(DebugLinkStop::generated_message_descriptor_data());
messages.push(DebugLinkLog::generated_message_descriptor_data());
messages.push(DebugLinkMemoryRead::generated_message_descriptor_data());
messages.push(DebugLinkMemory::generated_message_descriptor_data());
messages.push(DebugLinkMemoryWrite::generated_message_descriptor_data());
messages.push(DebugLinkFlashErase::generated_message_descriptor_data());
messages.push(DebugLinkEraseSdCard::generated_message_descriptor_data());
messages.push(DebugLinkWatchLayout::generated_message_descriptor_data());
messages.push(DebugLinkResetDebugEvents::generated_message_descriptor_data());
let mut enums = ::std::vec::Vec::with_capacity(2);
enums.push(debug_link_decision::DebugSwipeDirection::generated_enum_descriptor_data());
enums.push(debug_link_decision::DebugButton::generated_enum_descriptor_data());
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
file_descriptor_proto(),
deps,
messages,
enums,
)
});
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
})
}