1 // This file is generated by rust-protobuf 2.27.1. Do not edit
2 // @generated
3
4 // https://github.com/rust-lang/rust-clippy/issues/702
5 #![allow(unknown_lints)]
6 #![allow(clippy::all)]
7
8 #![allow(unused_attributes)]
9 #![cfg_attr(rustfmt, rustfmt::skip)]
10
11 #![allow(box_pointers)]
12 #![allow(dead_code)]
13 #![allow(missing_docs)]
14 #![allow(non_camel_case_types)]
15 #![allow(non_snake_case)]
16 #![allow(non_upper_case_globals)]
17 #![allow(trivial_casts)]
18 #![allow(unused_imports)]
19 #![allow(unused_results)]
20 //! Generated file from `event_details.proto`
21
22 /// Generated files are compatible only with the same version
23 /// of protobuf runtime.
24 // const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1;
25
26 #[derive(PartialEq,Clone,Default)]
27 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
28 pub struct RecordDetails {
29 // message fields
30 pub emulator_child_process_exit_details: ::protobuf::SingularPtrField<EmulatorChildProcessExitDetails>,
31 pub wave_format_details: ::protobuf::SingularPtrField<WaveFormatDetails>,
32 pub emulator_dll_details: ::protobuf::SingularPtrField<EmulatorDllDetails>,
33 // special fields
34 #[cfg_attr(feature = "with-serde", serde(skip))]
35 pub unknown_fields: ::protobuf::UnknownFields,
36 #[cfg_attr(feature = "with-serde", serde(skip))]
37 pub cached_size: ::protobuf::CachedSize,
38 }
39
40 impl<'a> ::std::default::Default for &'a RecordDetails {
default() -> &'a RecordDetails41 fn default() -> &'a RecordDetails {
42 <RecordDetails as ::protobuf::Message>::default_instance()
43 }
44 }
45
46 impl RecordDetails {
new() -> RecordDetails47 pub fn new() -> RecordDetails {
48 ::std::default::Default::default()
49 }
50
51 // optional .EmulatorChildProcessExitDetails emulator_child_process_exit_details = 12;
52
53
get_emulator_child_process_exit_details(&self) -> &EmulatorChildProcessExitDetails54 pub fn get_emulator_child_process_exit_details(&self) -> &EmulatorChildProcessExitDetails {
55 self.emulator_child_process_exit_details.as_ref().unwrap_or_else(|| <EmulatorChildProcessExitDetails as ::protobuf::Message>::default_instance())
56 }
clear_emulator_child_process_exit_details(&mut self)57 pub fn clear_emulator_child_process_exit_details(&mut self) {
58 self.emulator_child_process_exit_details.clear();
59 }
60
has_emulator_child_process_exit_details(&self) -> bool61 pub fn has_emulator_child_process_exit_details(&self) -> bool {
62 self.emulator_child_process_exit_details.is_some()
63 }
64
65 // Param is passed by value, moved
set_emulator_child_process_exit_details(&mut self, v: EmulatorChildProcessExitDetails)66 pub fn set_emulator_child_process_exit_details(&mut self, v: EmulatorChildProcessExitDetails) {
67 self.emulator_child_process_exit_details = ::protobuf::SingularPtrField::some(v);
68 }
69
70 // Mutable pointer to the field.
71 // If field is not initialized, it is initialized with default value first.
mut_emulator_child_process_exit_details(&mut self) -> &mut EmulatorChildProcessExitDetails72 pub fn mut_emulator_child_process_exit_details(&mut self) -> &mut EmulatorChildProcessExitDetails {
73 if self.emulator_child_process_exit_details.is_none() {
74 self.emulator_child_process_exit_details.set_default();
75 }
76 self.emulator_child_process_exit_details.as_mut().unwrap()
77 }
78
79 // Take field
take_emulator_child_process_exit_details(&mut self) -> EmulatorChildProcessExitDetails80 pub fn take_emulator_child_process_exit_details(&mut self) -> EmulatorChildProcessExitDetails {
81 self.emulator_child_process_exit_details.take().unwrap_or_else(|| EmulatorChildProcessExitDetails::new())
82 }
83
84 // optional .WaveFormatDetails wave_format_details = 13;
85
86
get_wave_format_details(&self) -> &WaveFormatDetails87 pub fn get_wave_format_details(&self) -> &WaveFormatDetails {
88 self.wave_format_details.as_ref().unwrap_or_else(|| <WaveFormatDetails as ::protobuf::Message>::default_instance())
89 }
clear_wave_format_details(&mut self)90 pub fn clear_wave_format_details(&mut self) {
91 self.wave_format_details.clear();
92 }
93
has_wave_format_details(&self) -> bool94 pub fn has_wave_format_details(&self) -> bool {
95 self.wave_format_details.is_some()
96 }
97
98 // Param is passed by value, moved
set_wave_format_details(&mut self, v: WaveFormatDetails)99 pub fn set_wave_format_details(&mut self, v: WaveFormatDetails) {
100 self.wave_format_details = ::protobuf::SingularPtrField::some(v);
101 }
102
103 // Mutable pointer to the field.
104 // If field is not initialized, it is initialized with default value first.
mut_wave_format_details(&mut self) -> &mut WaveFormatDetails105 pub fn mut_wave_format_details(&mut self) -> &mut WaveFormatDetails {
106 if self.wave_format_details.is_none() {
107 self.wave_format_details.set_default();
108 }
109 self.wave_format_details.as_mut().unwrap()
110 }
111
112 // Take field
take_wave_format_details(&mut self) -> WaveFormatDetails113 pub fn take_wave_format_details(&mut self) -> WaveFormatDetails {
114 self.wave_format_details.take().unwrap_or_else(|| WaveFormatDetails::new())
115 }
116
117 // optional .EmulatorDllDetails emulator_dll_details = 19;
118
119
get_emulator_dll_details(&self) -> &EmulatorDllDetails120 pub fn get_emulator_dll_details(&self) -> &EmulatorDllDetails {
121 self.emulator_dll_details.as_ref().unwrap_or_else(|| <EmulatorDllDetails as ::protobuf::Message>::default_instance())
122 }
clear_emulator_dll_details(&mut self)123 pub fn clear_emulator_dll_details(&mut self) {
124 self.emulator_dll_details.clear();
125 }
126
has_emulator_dll_details(&self) -> bool127 pub fn has_emulator_dll_details(&self) -> bool {
128 self.emulator_dll_details.is_some()
129 }
130
131 // Param is passed by value, moved
set_emulator_dll_details(&mut self, v: EmulatorDllDetails)132 pub fn set_emulator_dll_details(&mut self, v: EmulatorDllDetails) {
133 self.emulator_dll_details = ::protobuf::SingularPtrField::some(v);
134 }
135
136 // Mutable pointer to the field.
137 // If field is not initialized, it is initialized with default value first.
mut_emulator_dll_details(&mut self) -> &mut EmulatorDllDetails138 pub fn mut_emulator_dll_details(&mut self) -> &mut EmulatorDllDetails {
139 if self.emulator_dll_details.is_none() {
140 self.emulator_dll_details.set_default();
141 }
142 self.emulator_dll_details.as_mut().unwrap()
143 }
144
145 // Take field
take_emulator_dll_details(&mut self) -> EmulatorDllDetails146 pub fn take_emulator_dll_details(&mut self) -> EmulatorDllDetails {
147 self.emulator_dll_details.take().unwrap_or_else(|| EmulatorDllDetails::new())
148 }
149 }
150
151 impl ::protobuf::Message for RecordDetails {
is_initialized(&self) -> bool152 fn is_initialized(&self) -> bool {
153 for v in &self.emulator_child_process_exit_details {
154 if !v.is_initialized() {
155 return false;
156 }
157 };
158 for v in &self.wave_format_details {
159 if !v.is_initialized() {
160 return false;
161 }
162 };
163 for v in &self.emulator_dll_details {
164 if !v.is_initialized() {
165 return false;
166 }
167 };
168 true
169 }
170
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>171 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
172 while !is.eof()? {
173 let (field_number, wire_type) = is.read_tag_unpack()?;
174 match field_number {
175 12 => {
176 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.emulator_child_process_exit_details)?;
177 },
178 13 => {
179 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.wave_format_details)?;
180 },
181 19 => {
182 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.emulator_dll_details)?;
183 },
184 _ => {
185 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
186 },
187 };
188 }
189 ::std::result::Result::Ok(())
190 }
191
192 // Compute sizes of nested messages
193 #[allow(unused_variables)]
compute_size(&self) -> u32194 fn compute_size(&self) -> u32 {
195 let mut my_size = 0;
196 if let Some(ref v) = self.emulator_child_process_exit_details.as_ref() {
197 let len = v.compute_size();
198 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
199 }
200 if let Some(ref v) = self.wave_format_details.as_ref() {
201 let len = v.compute_size();
202 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
203 }
204 if let Some(ref v) = self.emulator_dll_details.as_ref() {
205 let len = v.compute_size();
206 my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
207 }
208 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
209 self.cached_size.set(my_size);
210 my_size
211 }
212
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>213 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
214 if let Some(ref v) = self.emulator_child_process_exit_details.as_ref() {
215 os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?;
216 os.write_raw_varint32(v.get_cached_size())?;
217 v.write_to_with_cached_sizes(os)?;
218 }
219 if let Some(ref v) = self.wave_format_details.as_ref() {
220 os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited)?;
221 os.write_raw_varint32(v.get_cached_size())?;
222 v.write_to_with_cached_sizes(os)?;
223 }
224 if let Some(ref v) = self.emulator_dll_details.as_ref() {
225 os.write_tag(19, ::protobuf::wire_format::WireTypeLengthDelimited)?;
226 os.write_raw_varint32(v.get_cached_size())?;
227 v.write_to_with_cached_sizes(os)?;
228 }
229 os.write_unknown_fields(self.get_unknown_fields())?;
230 ::std::result::Result::Ok(())
231 }
232
get_cached_size(&self) -> u32233 fn get_cached_size(&self) -> u32 {
234 self.cached_size.get()
235 }
236
get_unknown_fields(&self) -> &::protobuf::UnknownFields237 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
238 &self.unknown_fields
239 }
240
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields241 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
242 &mut self.unknown_fields
243 }
244
as_any(&self) -> &dyn (::std::any::Any)245 fn as_any(&self) -> &dyn (::std::any::Any) {
246 self as &dyn (::std::any::Any)
247 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)248 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
249 self as &mut dyn (::std::any::Any)
250 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>251 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
252 self
253 }
254
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor255 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
256 Self::descriptor_static()
257 }
258
new() -> RecordDetails259 fn new() -> RecordDetails {
260 RecordDetails::new()
261 }
262
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor263 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
264 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
265 descriptor.get(|| {
266 let mut fields = ::std::vec::Vec::new();
267 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EmulatorChildProcessExitDetails>>(
268 "emulator_child_process_exit_details",
269 |m: &RecordDetails| { &m.emulator_child_process_exit_details },
270 |m: &mut RecordDetails| { &mut m.emulator_child_process_exit_details },
271 ));
272 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<WaveFormatDetails>>(
273 "wave_format_details",
274 |m: &RecordDetails| { &m.wave_format_details },
275 |m: &mut RecordDetails| { &mut m.wave_format_details },
276 ));
277 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EmulatorDllDetails>>(
278 "emulator_dll_details",
279 |m: &RecordDetails| { &m.emulator_dll_details },
280 |m: &mut RecordDetails| { &mut m.emulator_dll_details },
281 ));
282 ::protobuf::reflect::MessageDescriptor::new_pb_name::<RecordDetails>(
283 "RecordDetails",
284 fields,
285 file_descriptor_proto()
286 )
287 })
288 }
289
default_instance() -> &'static RecordDetails290 fn default_instance() -> &'static RecordDetails {
291 static instance: ::protobuf::rt::LazyV2<RecordDetails> = ::protobuf::rt::LazyV2::INIT;
292 instance.get(RecordDetails::new)
293 }
294 }
295
296 impl ::protobuf::Clear for RecordDetails {
clear(&mut self)297 fn clear(&mut self) {
298 self.emulator_child_process_exit_details.clear();
299 self.wave_format_details.clear();
300 self.emulator_dll_details.clear();
301 self.unknown_fields.clear();
302 }
303 }
304
305 impl ::std::fmt::Debug for RecordDetails {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result306 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
307 ::protobuf::text_format::fmt(self, f)
308 }
309 }
310
311 impl ::protobuf::reflect::ProtobufValue for RecordDetails {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef312 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
313 ::protobuf::reflect::ReflectValueRef::Message(self)
314 }
315 }
316
317 #[derive(PartialEq,Clone,Default)]
318 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
319 pub struct WaveFormatDetails {
320 // message fields
321 pub requested: ::protobuf::SingularPtrField<WaveFormat>,
322 pub modified: ::protobuf::SingularPtrField<WaveFormat>,
323 pub closest_matched: ::protobuf::SingularPtrField<WaveFormat>,
324 // special fields
325 #[cfg_attr(feature = "with-serde", serde(skip))]
326 pub unknown_fields: ::protobuf::UnknownFields,
327 #[cfg_attr(feature = "with-serde", serde(skip))]
328 pub cached_size: ::protobuf::CachedSize,
329 }
330
331 impl<'a> ::std::default::Default for &'a WaveFormatDetails {
default() -> &'a WaveFormatDetails332 fn default() -> &'a WaveFormatDetails {
333 <WaveFormatDetails as ::protobuf::Message>::default_instance()
334 }
335 }
336
337 impl WaveFormatDetails {
new() -> WaveFormatDetails338 pub fn new() -> WaveFormatDetails {
339 ::std::default::Default::default()
340 }
341
342 // optional .WaveFormat requested = 1;
343
344
get_requested(&self) -> &WaveFormat345 pub fn get_requested(&self) -> &WaveFormat {
346 self.requested.as_ref().unwrap_or_else(|| <WaveFormat as ::protobuf::Message>::default_instance())
347 }
clear_requested(&mut self)348 pub fn clear_requested(&mut self) {
349 self.requested.clear();
350 }
351
has_requested(&self) -> bool352 pub fn has_requested(&self) -> bool {
353 self.requested.is_some()
354 }
355
356 // Param is passed by value, moved
set_requested(&mut self, v: WaveFormat)357 pub fn set_requested(&mut self, v: WaveFormat) {
358 self.requested = ::protobuf::SingularPtrField::some(v);
359 }
360
361 // Mutable pointer to the field.
362 // If field is not initialized, it is initialized with default value first.
mut_requested(&mut self) -> &mut WaveFormat363 pub fn mut_requested(&mut self) -> &mut WaveFormat {
364 if self.requested.is_none() {
365 self.requested.set_default();
366 }
367 self.requested.as_mut().unwrap()
368 }
369
370 // Take field
take_requested(&mut self) -> WaveFormat371 pub fn take_requested(&mut self) -> WaveFormat {
372 self.requested.take().unwrap_or_else(|| WaveFormat::new())
373 }
374
375 // optional .WaveFormat modified = 2;
376
377
get_modified(&self) -> &WaveFormat378 pub fn get_modified(&self) -> &WaveFormat {
379 self.modified.as_ref().unwrap_or_else(|| <WaveFormat as ::protobuf::Message>::default_instance())
380 }
clear_modified(&mut self)381 pub fn clear_modified(&mut self) {
382 self.modified.clear();
383 }
384
has_modified(&self) -> bool385 pub fn has_modified(&self) -> bool {
386 self.modified.is_some()
387 }
388
389 // Param is passed by value, moved
set_modified(&mut self, v: WaveFormat)390 pub fn set_modified(&mut self, v: WaveFormat) {
391 self.modified = ::protobuf::SingularPtrField::some(v);
392 }
393
394 // Mutable pointer to the field.
395 // If field is not initialized, it is initialized with default value first.
mut_modified(&mut self) -> &mut WaveFormat396 pub fn mut_modified(&mut self) -> &mut WaveFormat {
397 if self.modified.is_none() {
398 self.modified.set_default();
399 }
400 self.modified.as_mut().unwrap()
401 }
402
403 // Take field
take_modified(&mut self) -> WaveFormat404 pub fn take_modified(&mut self) -> WaveFormat {
405 self.modified.take().unwrap_or_else(|| WaveFormat::new())
406 }
407
408 // optional .WaveFormat closest_matched = 3;
409
410
get_closest_matched(&self) -> &WaveFormat411 pub fn get_closest_matched(&self) -> &WaveFormat {
412 self.closest_matched.as_ref().unwrap_or_else(|| <WaveFormat as ::protobuf::Message>::default_instance())
413 }
clear_closest_matched(&mut self)414 pub fn clear_closest_matched(&mut self) {
415 self.closest_matched.clear();
416 }
417
has_closest_matched(&self) -> bool418 pub fn has_closest_matched(&self) -> bool {
419 self.closest_matched.is_some()
420 }
421
422 // Param is passed by value, moved
set_closest_matched(&mut self, v: WaveFormat)423 pub fn set_closest_matched(&mut self, v: WaveFormat) {
424 self.closest_matched = ::protobuf::SingularPtrField::some(v);
425 }
426
427 // Mutable pointer to the field.
428 // If field is not initialized, it is initialized with default value first.
mut_closest_matched(&mut self) -> &mut WaveFormat429 pub fn mut_closest_matched(&mut self) -> &mut WaveFormat {
430 if self.closest_matched.is_none() {
431 self.closest_matched.set_default();
432 }
433 self.closest_matched.as_mut().unwrap()
434 }
435
436 // Take field
take_closest_matched(&mut self) -> WaveFormat437 pub fn take_closest_matched(&mut self) -> WaveFormat {
438 self.closest_matched.take().unwrap_or_else(|| WaveFormat::new())
439 }
440 }
441
442 impl ::protobuf::Message for WaveFormatDetails {
is_initialized(&self) -> bool443 fn is_initialized(&self) -> bool {
444 for v in &self.requested {
445 if !v.is_initialized() {
446 return false;
447 }
448 };
449 for v in &self.modified {
450 if !v.is_initialized() {
451 return false;
452 }
453 };
454 for v in &self.closest_matched {
455 if !v.is_initialized() {
456 return false;
457 }
458 };
459 true
460 }
461
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>462 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
463 while !is.eof()? {
464 let (field_number, wire_type) = is.read_tag_unpack()?;
465 match field_number {
466 1 => {
467 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.requested)?;
468 },
469 2 => {
470 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.modified)?;
471 },
472 3 => {
473 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.closest_matched)?;
474 },
475 _ => {
476 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
477 },
478 };
479 }
480 ::std::result::Result::Ok(())
481 }
482
483 // Compute sizes of nested messages
484 #[allow(unused_variables)]
compute_size(&self) -> u32485 fn compute_size(&self) -> u32 {
486 let mut my_size = 0;
487 if let Some(ref v) = self.requested.as_ref() {
488 let len = v.compute_size();
489 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
490 }
491 if let Some(ref v) = self.modified.as_ref() {
492 let len = v.compute_size();
493 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
494 }
495 if let Some(ref v) = self.closest_matched.as_ref() {
496 let len = v.compute_size();
497 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
498 }
499 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
500 self.cached_size.set(my_size);
501 my_size
502 }
503
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>504 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
505 if let Some(ref v) = self.requested.as_ref() {
506 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
507 os.write_raw_varint32(v.get_cached_size())?;
508 v.write_to_with_cached_sizes(os)?;
509 }
510 if let Some(ref v) = self.modified.as_ref() {
511 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
512 os.write_raw_varint32(v.get_cached_size())?;
513 v.write_to_with_cached_sizes(os)?;
514 }
515 if let Some(ref v) = self.closest_matched.as_ref() {
516 os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
517 os.write_raw_varint32(v.get_cached_size())?;
518 v.write_to_with_cached_sizes(os)?;
519 }
520 os.write_unknown_fields(self.get_unknown_fields())?;
521 ::std::result::Result::Ok(())
522 }
523
get_cached_size(&self) -> u32524 fn get_cached_size(&self) -> u32 {
525 self.cached_size.get()
526 }
527
get_unknown_fields(&self) -> &::protobuf::UnknownFields528 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
529 &self.unknown_fields
530 }
531
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields532 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
533 &mut self.unknown_fields
534 }
535
as_any(&self) -> &dyn (::std::any::Any)536 fn as_any(&self) -> &dyn (::std::any::Any) {
537 self as &dyn (::std::any::Any)
538 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)539 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
540 self as &mut dyn (::std::any::Any)
541 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>542 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
543 self
544 }
545
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor546 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
547 Self::descriptor_static()
548 }
549
new() -> WaveFormatDetails550 fn new() -> WaveFormatDetails {
551 WaveFormatDetails::new()
552 }
553
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor554 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
555 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
556 descriptor.get(|| {
557 let mut fields = ::std::vec::Vec::new();
558 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<WaveFormat>>(
559 "requested",
560 |m: &WaveFormatDetails| { &m.requested },
561 |m: &mut WaveFormatDetails| { &mut m.requested },
562 ));
563 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<WaveFormat>>(
564 "modified",
565 |m: &WaveFormatDetails| { &m.modified },
566 |m: &mut WaveFormatDetails| { &mut m.modified },
567 ));
568 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<WaveFormat>>(
569 "closest_matched",
570 |m: &WaveFormatDetails| { &m.closest_matched },
571 |m: &mut WaveFormatDetails| { &mut m.closest_matched },
572 ));
573 ::protobuf::reflect::MessageDescriptor::new_pb_name::<WaveFormatDetails>(
574 "WaveFormatDetails",
575 fields,
576 file_descriptor_proto()
577 )
578 })
579 }
580
default_instance() -> &'static WaveFormatDetails581 fn default_instance() -> &'static WaveFormatDetails {
582 static instance: ::protobuf::rt::LazyV2<WaveFormatDetails> = ::protobuf::rt::LazyV2::INIT;
583 instance.get(WaveFormatDetails::new)
584 }
585 }
586
587 impl ::protobuf::Clear for WaveFormatDetails {
clear(&mut self)588 fn clear(&mut self) {
589 self.requested.clear();
590 self.modified.clear();
591 self.closest_matched.clear();
592 self.unknown_fields.clear();
593 }
594 }
595
596 impl ::std::fmt::Debug for WaveFormatDetails {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result597 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
598 ::protobuf::text_format::fmt(self, f)
599 }
600 }
601
602 impl ::protobuf::reflect::ProtobufValue for WaveFormatDetails {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef603 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
604 ::protobuf::reflect::ReflectValueRef::Message(self)
605 }
606 }
607
608 #[derive(PartialEq,Clone,Default)]
609 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
610 pub struct WaveFormat {
611 // message fields
612 format_tag: ::std::option::Option<i32>,
613 channels: ::std::option::Option<i32>,
614 samples_per_sec: ::std::option::Option<i32>,
615 avg_bytes_per_sec: ::std::option::Option<i32>,
616 block_align: ::std::option::Option<i32>,
617 bits_per_sample: ::std::option::Option<i32>,
618 size_bytes: ::std::option::Option<i32>,
619 samples: ::std::option::Option<i32>,
620 channel_mask: ::std::option::Option<i64>,
621 sub_format: ::std::option::Option<WaveFormat_WaveFormatSubFormat>,
622 // special fields
623 #[cfg_attr(feature = "with-serde", serde(skip))]
624 pub unknown_fields: ::protobuf::UnknownFields,
625 #[cfg_attr(feature = "with-serde", serde(skip))]
626 pub cached_size: ::protobuf::CachedSize,
627 }
628
629 impl<'a> ::std::default::Default for &'a WaveFormat {
default() -> &'a WaveFormat630 fn default() -> &'a WaveFormat {
631 <WaveFormat as ::protobuf::Message>::default_instance()
632 }
633 }
634
635 impl WaveFormat {
new() -> WaveFormat636 pub fn new() -> WaveFormat {
637 ::std::default::Default::default()
638 }
639
640 // optional int32 format_tag = 1;
641
642
get_format_tag(&self) -> i32643 pub fn get_format_tag(&self) -> i32 {
644 self.format_tag.unwrap_or(0)
645 }
clear_format_tag(&mut self)646 pub fn clear_format_tag(&mut self) {
647 self.format_tag = ::std::option::Option::None;
648 }
649
has_format_tag(&self) -> bool650 pub fn has_format_tag(&self) -> bool {
651 self.format_tag.is_some()
652 }
653
654 // Param is passed by value, moved
set_format_tag(&mut self, v: i32)655 pub fn set_format_tag(&mut self, v: i32) {
656 self.format_tag = ::std::option::Option::Some(v);
657 }
658
659 // optional int32 channels = 2;
660
661
get_channels(&self) -> i32662 pub fn get_channels(&self) -> i32 {
663 self.channels.unwrap_or(0)
664 }
clear_channels(&mut self)665 pub fn clear_channels(&mut self) {
666 self.channels = ::std::option::Option::None;
667 }
668
has_channels(&self) -> bool669 pub fn has_channels(&self) -> bool {
670 self.channels.is_some()
671 }
672
673 // Param is passed by value, moved
set_channels(&mut self, v: i32)674 pub fn set_channels(&mut self, v: i32) {
675 self.channels = ::std::option::Option::Some(v);
676 }
677
678 // optional int32 samples_per_sec = 3;
679
680
get_samples_per_sec(&self) -> i32681 pub fn get_samples_per_sec(&self) -> i32 {
682 self.samples_per_sec.unwrap_or(0)
683 }
clear_samples_per_sec(&mut self)684 pub fn clear_samples_per_sec(&mut self) {
685 self.samples_per_sec = ::std::option::Option::None;
686 }
687
has_samples_per_sec(&self) -> bool688 pub fn has_samples_per_sec(&self) -> bool {
689 self.samples_per_sec.is_some()
690 }
691
692 // Param is passed by value, moved
set_samples_per_sec(&mut self, v: i32)693 pub fn set_samples_per_sec(&mut self, v: i32) {
694 self.samples_per_sec = ::std::option::Option::Some(v);
695 }
696
697 // optional int32 avg_bytes_per_sec = 4;
698
699
get_avg_bytes_per_sec(&self) -> i32700 pub fn get_avg_bytes_per_sec(&self) -> i32 {
701 self.avg_bytes_per_sec.unwrap_or(0)
702 }
clear_avg_bytes_per_sec(&mut self)703 pub fn clear_avg_bytes_per_sec(&mut self) {
704 self.avg_bytes_per_sec = ::std::option::Option::None;
705 }
706
has_avg_bytes_per_sec(&self) -> bool707 pub fn has_avg_bytes_per_sec(&self) -> bool {
708 self.avg_bytes_per_sec.is_some()
709 }
710
711 // Param is passed by value, moved
set_avg_bytes_per_sec(&mut self, v: i32)712 pub fn set_avg_bytes_per_sec(&mut self, v: i32) {
713 self.avg_bytes_per_sec = ::std::option::Option::Some(v);
714 }
715
716 // optional int32 block_align = 5;
717
718
get_block_align(&self) -> i32719 pub fn get_block_align(&self) -> i32 {
720 self.block_align.unwrap_or(0)
721 }
clear_block_align(&mut self)722 pub fn clear_block_align(&mut self) {
723 self.block_align = ::std::option::Option::None;
724 }
725
has_block_align(&self) -> bool726 pub fn has_block_align(&self) -> bool {
727 self.block_align.is_some()
728 }
729
730 // Param is passed by value, moved
set_block_align(&mut self, v: i32)731 pub fn set_block_align(&mut self, v: i32) {
732 self.block_align = ::std::option::Option::Some(v);
733 }
734
735 // optional int32 bits_per_sample = 6;
736
737
get_bits_per_sample(&self) -> i32738 pub fn get_bits_per_sample(&self) -> i32 {
739 self.bits_per_sample.unwrap_or(0)
740 }
clear_bits_per_sample(&mut self)741 pub fn clear_bits_per_sample(&mut self) {
742 self.bits_per_sample = ::std::option::Option::None;
743 }
744
has_bits_per_sample(&self) -> bool745 pub fn has_bits_per_sample(&self) -> bool {
746 self.bits_per_sample.is_some()
747 }
748
749 // Param is passed by value, moved
set_bits_per_sample(&mut self, v: i32)750 pub fn set_bits_per_sample(&mut self, v: i32) {
751 self.bits_per_sample = ::std::option::Option::Some(v);
752 }
753
754 // optional int32 size_bytes = 7;
755
756
get_size_bytes(&self) -> i32757 pub fn get_size_bytes(&self) -> i32 {
758 self.size_bytes.unwrap_or(0)
759 }
clear_size_bytes(&mut self)760 pub fn clear_size_bytes(&mut self) {
761 self.size_bytes = ::std::option::Option::None;
762 }
763
has_size_bytes(&self) -> bool764 pub fn has_size_bytes(&self) -> bool {
765 self.size_bytes.is_some()
766 }
767
768 // Param is passed by value, moved
set_size_bytes(&mut self, v: i32)769 pub fn set_size_bytes(&mut self, v: i32) {
770 self.size_bytes = ::std::option::Option::Some(v);
771 }
772
773 // optional int32 samples = 8;
774
775
get_samples(&self) -> i32776 pub fn get_samples(&self) -> i32 {
777 self.samples.unwrap_or(0)
778 }
clear_samples(&mut self)779 pub fn clear_samples(&mut self) {
780 self.samples = ::std::option::Option::None;
781 }
782
has_samples(&self) -> bool783 pub fn has_samples(&self) -> bool {
784 self.samples.is_some()
785 }
786
787 // Param is passed by value, moved
set_samples(&mut self, v: i32)788 pub fn set_samples(&mut self, v: i32) {
789 self.samples = ::std::option::Option::Some(v);
790 }
791
792 // optional int64 channel_mask = 9;
793
794
get_channel_mask(&self) -> i64795 pub fn get_channel_mask(&self) -> i64 {
796 self.channel_mask.unwrap_or(0)
797 }
clear_channel_mask(&mut self)798 pub fn clear_channel_mask(&mut self) {
799 self.channel_mask = ::std::option::Option::None;
800 }
801
has_channel_mask(&self) -> bool802 pub fn has_channel_mask(&self) -> bool {
803 self.channel_mask.is_some()
804 }
805
806 // Param is passed by value, moved
set_channel_mask(&mut self, v: i64)807 pub fn set_channel_mask(&mut self, v: i64) {
808 self.channel_mask = ::std::option::Option::Some(v);
809 }
810
811 // optional .WaveFormat.WaveFormatSubFormat sub_format = 10;
812
813
get_sub_format(&self) -> WaveFormat_WaveFormatSubFormat814 pub fn get_sub_format(&self) -> WaveFormat_WaveFormatSubFormat {
815 self.sub_format.unwrap_or(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_INVALID)
816 }
clear_sub_format(&mut self)817 pub fn clear_sub_format(&mut self) {
818 self.sub_format = ::std::option::Option::None;
819 }
820
has_sub_format(&self) -> bool821 pub fn has_sub_format(&self) -> bool {
822 self.sub_format.is_some()
823 }
824
825 // Param is passed by value, moved
set_sub_format(&mut self, v: WaveFormat_WaveFormatSubFormat)826 pub fn set_sub_format(&mut self, v: WaveFormat_WaveFormatSubFormat) {
827 self.sub_format = ::std::option::Option::Some(v);
828 }
829 }
830
831 impl ::protobuf::Message for WaveFormat {
is_initialized(&self) -> bool832 fn is_initialized(&self) -> bool {
833 true
834 }
835
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>836 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
837 while !is.eof()? {
838 let (field_number, wire_type) = is.read_tag_unpack()?;
839 match field_number {
840 1 => {
841 if wire_type != ::protobuf::wire_format::WireTypeVarint {
842 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
843 }
844 let tmp = is.read_int32()?;
845 self.format_tag = ::std::option::Option::Some(tmp);
846 },
847 2 => {
848 if wire_type != ::protobuf::wire_format::WireTypeVarint {
849 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
850 }
851 let tmp = is.read_int32()?;
852 self.channels = ::std::option::Option::Some(tmp);
853 },
854 3 => {
855 if wire_type != ::protobuf::wire_format::WireTypeVarint {
856 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
857 }
858 let tmp = is.read_int32()?;
859 self.samples_per_sec = ::std::option::Option::Some(tmp);
860 },
861 4 => {
862 if wire_type != ::protobuf::wire_format::WireTypeVarint {
863 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
864 }
865 let tmp = is.read_int32()?;
866 self.avg_bytes_per_sec = ::std::option::Option::Some(tmp);
867 },
868 5 => {
869 if wire_type != ::protobuf::wire_format::WireTypeVarint {
870 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
871 }
872 let tmp = is.read_int32()?;
873 self.block_align = ::std::option::Option::Some(tmp);
874 },
875 6 => {
876 if wire_type != ::protobuf::wire_format::WireTypeVarint {
877 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
878 }
879 let tmp = is.read_int32()?;
880 self.bits_per_sample = ::std::option::Option::Some(tmp);
881 },
882 7 => {
883 if wire_type != ::protobuf::wire_format::WireTypeVarint {
884 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
885 }
886 let tmp = is.read_int32()?;
887 self.size_bytes = ::std::option::Option::Some(tmp);
888 },
889 8 => {
890 if wire_type != ::protobuf::wire_format::WireTypeVarint {
891 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
892 }
893 let tmp = is.read_int32()?;
894 self.samples = ::std::option::Option::Some(tmp);
895 },
896 9 => {
897 if wire_type != ::protobuf::wire_format::WireTypeVarint {
898 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
899 }
900 let tmp = is.read_int64()?;
901 self.channel_mask = ::std::option::Option::Some(tmp);
902 },
903 10 => {
904 ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.sub_format, 10, &mut self.unknown_fields)?
905 },
906 _ => {
907 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
908 },
909 };
910 }
911 ::std::result::Result::Ok(())
912 }
913
914 // Compute sizes of nested messages
915 #[allow(unused_variables)]
compute_size(&self) -> u32916 fn compute_size(&self) -> u32 {
917 let mut my_size = 0;
918 if let Some(v) = self.format_tag {
919 my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
920 }
921 if let Some(v) = self.channels {
922 my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint);
923 }
924 if let Some(v) = self.samples_per_sec {
925 my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint);
926 }
927 if let Some(v) = self.avg_bytes_per_sec {
928 my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint);
929 }
930 if let Some(v) = self.block_align {
931 my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint);
932 }
933 if let Some(v) = self.bits_per_sample {
934 my_size += ::protobuf::rt::value_size(6, v, ::protobuf::wire_format::WireTypeVarint);
935 }
936 if let Some(v) = self.size_bytes {
937 my_size += ::protobuf::rt::value_size(7, v, ::protobuf::wire_format::WireTypeVarint);
938 }
939 if let Some(v) = self.samples {
940 my_size += ::protobuf::rt::value_size(8, v, ::protobuf::wire_format::WireTypeVarint);
941 }
942 if let Some(v) = self.channel_mask {
943 my_size += ::protobuf::rt::value_size(9, v, ::protobuf::wire_format::WireTypeVarint);
944 }
945 if let Some(v) = self.sub_format {
946 my_size += ::protobuf::rt::enum_size(10, v);
947 }
948 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
949 self.cached_size.set(my_size);
950 my_size
951 }
952
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>953 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
954 if let Some(v) = self.format_tag {
955 os.write_int32(1, v)?;
956 }
957 if let Some(v) = self.channels {
958 os.write_int32(2, v)?;
959 }
960 if let Some(v) = self.samples_per_sec {
961 os.write_int32(3, v)?;
962 }
963 if let Some(v) = self.avg_bytes_per_sec {
964 os.write_int32(4, v)?;
965 }
966 if let Some(v) = self.block_align {
967 os.write_int32(5, v)?;
968 }
969 if let Some(v) = self.bits_per_sample {
970 os.write_int32(6, v)?;
971 }
972 if let Some(v) = self.size_bytes {
973 os.write_int32(7, v)?;
974 }
975 if let Some(v) = self.samples {
976 os.write_int32(8, v)?;
977 }
978 if let Some(v) = self.channel_mask {
979 os.write_int64(9, v)?;
980 }
981 if let Some(v) = self.sub_format {
982 os.write_enum(10, ::protobuf::ProtobufEnum::value(&v))?;
983 }
984 os.write_unknown_fields(self.get_unknown_fields())?;
985 ::std::result::Result::Ok(())
986 }
987
get_cached_size(&self) -> u32988 fn get_cached_size(&self) -> u32 {
989 self.cached_size.get()
990 }
991
get_unknown_fields(&self) -> &::protobuf::UnknownFields992 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
993 &self.unknown_fields
994 }
995
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields996 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
997 &mut self.unknown_fields
998 }
999
as_any(&self) -> &dyn (::std::any::Any)1000 fn as_any(&self) -> &dyn (::std::any::Any) {
1001 self as &dyn (::std::any::Any)
1002 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1003 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1004 self as &mut dyn (::std::any::Any)
1005 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1006 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1007 self
1008 }
1009
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1010 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1011 Self::descriptor_static()
1012 }
1013
new() -> WaveFormat1014 fn new() -> WaveFormat {
1015 WaveFormat::new()
1016 }
1017
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor1018 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1019 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1020 descriptor.get(|| {
1021 let mut fields = ::std::vec::Vec::new();
1022 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
1023 "format_tag",
1024 |m: &WaveFormat| { &m.format_tag },
1025 |m: &mut WaveFormat| { &mut m.format_tag },
1026 ));
1027 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
1028 "channels",
1029 |m: &WaveFormat| { &m.channels },
1030 |m: &mut WaveFormat| { &mut m.channels },
1031 ));
1032 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
1033 "samples_per_sec",
1034 |m: &WaveFormat| { &m.samples_per_sec },
1035 |m: &mut WaveFormat| { &mut m.samples_per_sec },
1036 ));
1037 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
1038 "avg_bytes_per_sec",
1039 |m: &WaveFormat| { &m.avg_bytes_per_sec },
1040 |m: &mut WaveFormat| { &mut m.avg_bytes_per_sec },
1041 ));
1042 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
1043 "block_align",
1044 |m: &WaveFormat| { &m.block_align },
1045 |m: &mut WaveFormat| { &mut m.block_align },
1046 ));
1047 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
1048 "bits_per_sample",
1049 |m: &WaveFormat| { &m.bits_per_sample },
1050 |m: &mut WaveFormat| { &mut m.bits_per_sample },
1051 ));
1052 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
1053 "size_bytes",
1054 |m: &WaveFormat| { &m.size_bytes },
1055 |m: &mut WaveFormat| { &mut m.size_bytes },
1056 ));
1057 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
1058 "samples",
1059 |m: &WaveFormat| { &m.samples },
1060 |m: &mut WaveFormat| { &mut m.samples },
1061 ));
1062 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
1063 "channel_mask",
1064 |m: &WaveFormat| { &m.channel_mask },
1065 |m: &mut WaveFormat| { &mut m.channel_mask },
1066 ));
1067 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<WaveFormat_WaveFormatSubFormat>>(
1068 "sub_format",
1069 |m: &WaveFormat| { &m.sub_format },
1070 |m: &mut WaveFormat| { &mut m.sub_format },
1071 ));
1072 ::protobuf::reflect::MessageDescriptor::new_pb_name::<WaveFormat>(
1073 "WaveFormat",
1074 fields,
1075 file_descriptor_proto()
1076 )
1077 })
1078 }
1079
default_instance() -> &'static WaveFormat1080 fn default_instance() -> &'static WaveFormat {
1081 static instance: ::protobuf::rt::LazyV2<WaveFormat> = ::protobuf::rt::LazyV2::INIT;
1082 instance.get(WaveFormat::new)
1083 }
1084 }
1085
1086 impl ::protobuf::Clear for WaveFormat {
clear(&mut self)1087 fn clear(&mut self) {
1088 self.format_tag = ::std::option::Option::None;
1089 self.channels = ::std::option::Option::None;
1090 self.samples_per_sec = ::std::option::Option::None;
1091 self.avg_bytes_per_sec = ::std::option::Option::None;
1092 self.block_align = ::std::option::Option::None;
1093 self.bits_per_sample = ::std::option::Option::None;
1094 self.size_bytes = ::std::option::Option::None;
1095 self.samples = ::std::option::Option::None;
1096 self.channel_mask = ::std::option::Option::None;
1097 self.sub_format = ::std::option::Option::None;
1098 self.unknown_fields.clear();
1099 }
1100 }
1101
1102 impl ::std::fmt::Debug for WaveFormat {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1103 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1104 ::protobuf::text_format::fmt(self, f)
1105 }
1106 }
1107
1108 impl ::protobuf::reflect::ProtobufValue for WaveFormat {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1109 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1110 ::protobuf::reflect::ReflectValueRef::Message(self)
1111 }
1112 }
1113
1114 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
1115 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
1116 pub enum WaveFormat_WaveFormatSubFormat {
1117 KSDATAFORMAT_SUBTYPE_INVALID = 0,
1118 KSDATAFORMAT_SUBTYPE_ANALOG = 1,
1119 KSDATAFORMAT_SUBTYPE_PCM = 2,
1120 KSDATAFORMAT_SUBTYPE_IEEE_FLOAT = 3,
1121 KSDATAFORMAT_SUBTYPE_DRM = 4,
1122 KSDATAFORMAT_SUBTYPE_ALAW = 5,
1123 KSDATAFORMAT_SUBTYPE_MULAW = 6,
1124 KSDATAFORMAT_SUBTYPE_ADPCM = 7,
1125 KSDATAFORMAT_SUBTYPE_MPEG = 8,
1126 }
1127
1128 impl ::protobuf::ProtobufEnum for WaveFormat_WaveFormatSubFormat {
value(&self) -> i321129 fn value(&self) -> i32 {
1130 *self as i32
1131 }
1132
from_i32(value: i32) -> ::std::option::Option<WaveFormat_WaveFormatSubFormat>1133 fn from_i32(value: i32) -> ::std::option::Option<WaveFormat_WaveFormatSubFormat> {
1134 match value {
1135 0 => ::std::option::Option::Some(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_INVALID),
1136 1 => ::std::option::Option::Some(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_ANALOG),
1137 2 => ::std::option::Option::Some(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_PCM),
1138 3 => ::std::option::Option::Some(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_IEEE_FLOAT),
1139 4 => ::std::option::Option::Some(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_DRM),
1140 5 => ::std::option::Option::Some(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_ALAW),
1141 6 => ::std::option::Option::Some(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_MULAW),
1142 7 => ::std::option::Option::Some(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_ADPCM),
1143 8 => ::std::option::Option::Some(WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_MPEG),
1144 _ => ::std::option::Option::None
1145 }
1146 }
1147
values() -> &'static [Self]1148 fn values() -> &'static [Self] {
1149 static values: &'static [WaveFormat_WaveFormatSubFormat] = &[
1150 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_INVALID,
1151 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_ANALOG,
1152 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_PCM,
1153 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_IEEE_FLOAT,
1154 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_DRM,
1155 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_ALAW,
1156 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_MULAW,
1157 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_ADPCM,
1158 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_MPEG,
1159 ];
1160 values
1161 }
1162
enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor1163 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
1164 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
1165 descriptor.get(|| {
1166 ::protobuf::reflect::EnumDescriptor::new_pb_name::<WaveFormat_WaveFormatSubFormat>("WaveFormat.WaveFormatSubFormat", file_descriptor_proto())
1167 })
1168 }
1169 }
1170
1171 impl ::std::marker::Copy for WaveFormat_WaveFormatSubFormat {
1172 }
1173
1174 impl ::std::default::Default for WaveFormat_WaveFormatSubFormat {
default() -> Self1175 fn default() -> Self {
1176 WaveFormat_WaveFormatSubFormat::KSDATAFORMAT_SUBTYPE_INVALID
1177 }
1178 }
1179
1180 impl ::protobuf::reflect::ProtobufValue for WaveFormat_WaveFormatSubFormat {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1181 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1182 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
1183 }
1184 }
1185
1186 #[derive(PartialEq,Clone,Default)]
1187 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
1188 pub struct EmulatorChildProcessExitDetails {
1189 // message fields
1190 exit_code: ::std::option::Option<u32>,
1191 process_type: ::std::option::Option<EmulatorProcessType>,
1192 // special fields
1193 #[cfg_attr(feature = "with-serde", serde(skip))]
1194 pub unknown_fields: ::protobuf::UnknownFields,
1195 #[cfg_attr(feature = "with-serde", serde(skip))]
1196 pub cached_size: ::protobuf::CachedSize,
1197 }
1198
1199 impl<'a> ::std::default::Default for &'a EmulatorChildProcessExitDetails {
default() -> &'a EmulatorChildProcessExitDetails1200 fn default() -> &'a EmulatorChildProcessExitDetails {
1201 <EmulatorChildProcessExitDetails as ::protobuf::Message>::default_instance()
1202 }
1203 }
1204
1205 impl EmulatorChildProcessExitDetails {
new() -> EmulatorChildProcessExitDetails1206 pub fn new() -> EmulatorChildProcessExitDetails {
1207 ::std::default::Default::default()
1208 }
1209
1210 // optional uint32 exit_code = 1;
1211
1212
get_exit_code(&self) -> u321213 pub fn get_exit_code(&self) -> u32 {
1214 self.exit_code.unwrap_or(0)
1215 }
clear_exit_code(&mut self)1216 pub fn clear_exit_code(&mut self) {
1217 self.exit_code = ::std::option::Option::None;
1218 }
1219
has_exit_code(&self) -> bool1220 pub fn has_exit_code(&self) -> bool {
1221 self.exit_code.is_some()
1222 }
1223
1224 // Param is passed by value, moved
set_exit_code(&mut self, v: u32)1225 pub fn set_exit_code(&mut self, v: u32) {
1226 self.exit_code = ::std::option::Option::Some(v);
1227 }
1228
1229 // optional .EmulatorProcessType process_type = 2;
1230
1231
get_process_type(&self) -> EmulatorProcessType1232 pub fn get_process_type(&self) -> EmulatorProcessType {
1233 self.process_type.unwrap_or(EmulatorProcessType::PROCESS_TYPE_UNKNOWN)
1234 }
clear_process_type(&mut self)1235 pub fn clear_process_type(&mut self) {
1236 self.process_type = ::std::option::Option::None;
1237 }
1238
has_process_type(&self) -> bool1239 pub fn has_process_type(&self) -> bool {
1240 self.process_type.is_some()
1241 }
1242
1243 // Param is passed by value, moved
set_process_type(&mut self, v: EmulatorProcessType)1244 pub fn set_process_type(&mut self, v: EmulatorProcessType) {
1245 self.process_type = ::std::option::Option::Some(v);
1246 }
1247 }
1248
1249 impl ::protobuf::Message for EmulatorChildProcessExitDetails {
is_initialized(&self) -> bool1250 fn is_initialized(&self) -> bool {
1251 true
1252 }
1253
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1254 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1255 while !is.eof()? {
1256 let (field_number, wire_type) = is.read_tag_unpack()?;
1257 match field_number {
1258 1 => {
1259 if wire_type != ::protobuf::wire_format::WireTypeVarint {
1260 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1261 }
1262 let tmp = is.read_uint32()?;
1263 self.exit_code = ::std::option::Option::Some(tmp);
1264 },
1265 2 => {
1266 ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.process_type, 2, &mut self.unknown_fields)?
1267 },
1268 _ => {
1269 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1270 },
1271 };
1272 }
1273 ::std::result::Result::Ok(())
1274 }
1275
1276 // Compute sizes of nested messages
1277 #[allow(unused_variables)]
compute_size(&self) -> u321278 fn compute_size(&self) -> u32 {
1279 let mut my_size = 0;
1280 if let Some(v) = self.exit_code {
1281 my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
1282 }
1283 if let Some(v) = self.process_type {
1284 my_size += ::protobuf::rt::enum_size(2, v);
1285 }
1286 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1287 self.cached_size.set(my_size);
1288 my_size
1289 }
1290
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1291 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1292 if let Some(v) = self.exit_code {
1293 os.write_uint32(1, v)?;
1294 }
1295 if let Some(v) = self.process_type {
1296 os.write_enum(2, ::protobuf::ProtobufEnum::value(&v))?;
1297 }
1298 os.write_unknown_fields(self.get_unknown_fields())?;
1299 ::std::result::Result::Ok(())
1300 }
1301
get_cached_size(&self) -> u321302 fn get_cached_size(&self) -> u32 {
1303 self.cached_size.get()
1304 }
1305
get_unknown_fields(&self) -> &::protobuf::UnknownFields1306 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1307 &self.unknown_fields
1308 }
1309
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1310 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1311 &mut self.unknown_fields
1312 }
1313
as_any(&self) -> &dyn (::std::any::Any)1314 fn as_any(&self) -> &dyn (::std::any::Any) {
1315 self as &dyn (::std::any::Any)
1316 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1317 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1318 self as &mut dyn (::std::any::Any)
1319 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1320 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1321 self
1322 }
1323
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1324 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1325 Self::descriptor_static()
1326 }
1327
new() -> EmulatorChildProcessExitDetails1328 fn new() -> EmulatorChildProcessExitDetails {
1329 EmulatorChildProcessExitDetails::new()
1330 }
1331
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor1332 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1333 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1334 descriptor.get(|| {
1335 let mut fields = ::std::vec::Vec::new();
1336 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
1337 "exit_code",
1338 |m: &EmulatorChildProcessExitDetails| { &m.exit_code },
1339 |m: &mut EmulatorChildProcessExitDetails| { &mut m.exit_code },
1340 ));
1341 fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<EmulatorProcessType>>(
1342 "process_type",
1343 |m: &EmulatorChildProcessExitDetails| { &m.process_type },
1344 |m: &mut EmulatorChildProcessExitDetails| { &mut m.process_type },
1345 ));
1346 ::protobuf::reflect::MessageDescriptor::new_pb_name::<EmulatorChildProcessExitDetails>(
1347 "EmulatorChildProcessExitDetails",
1348 fields,
1349 file_descriptor_proto()
1350 )
1351 })
1352 }
1353
default_instance() -> &'static EmulatorChildProcessExitDetails1354 fn default_instance() -> &'static EmulatorChildProcessExitDetails {
1355 static instance: ::protobuf::rt::LazyV2<EmulatorChildProcessExitDetails> = ::protobuf::rt::LazyV2::INIT;
1356 instance.get(EmulatorChildProcessExitDetails::new)
1357 }
1358 }
1359
1360 impl ::protobuf::Clear for EmulatorChildProcessExitDetails {
clear(&mut self)1361 fn clear(&mut self) {
1362 self.exit_code = ::std::option::Option::None;
1363 self.process_type = ::std::option::Option::None;
1364 self.unknown_fields.clear();
1365 }
1366 }
1367
1368 impl ::std::fmt::Debug for EmulatorChildProcessExitDetails {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1369 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1370 ::protobuf::text_format::fmt(self, f)
1371 }
1372 }
1373
1374 impl ::protobuf::reflect::ProtobufValue for EmulatorChildProcessExitDetails {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1375 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1376 ::protobuf::reflect::ReflectValueRef::Message(self)
1377 }
1378 }
1379
1380 #[derive(PartialEq,Clone,Default)]
1381 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
1382 pub struct EmulatorDllDetails {
1383 // message fields
1384 dll_base_name: ::protobuf::SingularField<::std::string::String>,
1385 // special fields
1386 #[cfg_attr(feature = "with-serde", serde(skip))]
1387 pub unknown_fields: ::protobuf::UnknownFields,
1388 #[cfg_attr(feature = "with-serde", serde(skip))]
1389 pub cached_size: ::protobuf::CachedSize,
1390 }
1391
1392 impl<'a> ::std::default::Default for &'a EmulatorDllDetails {
default() -> &'a EmulatorDllDetails1393 fn default() -> &'a EmulatorDllDetails {
1394 <EmulatorDllDetails as ::protobuf::Message>::default_instance()
1395 }
1396 }
1397
1398 impl EmulatorDllDetails {
new() -> EmulatorDllDetails1399 pub fn new() -> EmulatorDllDetails {
1400 ::std::default::Default::default()
1401 }
1402
1403 // optional string dll_base_name = 1;
1404
1405
get_dll_base_name(&self) -> &str1406 pub fn get_dll_base_name(&self) -> &str {
1407 match self.dll_base_name.as_ref() {
1408 Some(v) => &v,
1409 None => "",
1410 }
1411 }
clear_dll_base_name(&mut self)1412 pub fn clear_dll_base_name(&mut self) {
1413 self.dll_base_name.clear();
1414 }
1415
has_dll_base_name(&self) -> bool1416 pub fn has_dll_base_name(&self) -> bool {
1417 self.dll_base_name.is_some()
1418 }
1419
1420 // Param is passed by value, moved
set_dll_base_name(&mut self, v: ::std::string::String)1421 pub fn set_dll_base_name(&mut self, v: ::std::string::String) {
1422 self.dll_base_name = ::protobuf::SingularField::some(v);
1423 }
1424
1425 // Mutable pointer to the field.
1426 // If field is not initialized, it is initialized with default value first.
mut_dll_base_name(&mut self) -> &mut ::std::string::String1427 pub fn mut_dll_base_name(&mut self) -> &mut ::std::string::String {
1428 if self.dll_base_name.is_none() {
1429 self.dll_base_name.set_default();
1430 }
1431 self.dll_base_name.as_mut().unwrap()
1432 }
1433
1434 // Take field
take_dll_base_name(&mut self) -> ::std::string::String1435 pub fn take_dll_base_name(&mut self) -> ::std::string::String {
1436 self.dll_base_name.take().unwrap_or_else(|| ::std::string::String::new())
1437 }
1438 }
1439
1440 impl ::protobuf::Message for EmulatorDllDetails {
is_initialized(&self) -> bool1441 fn is_initialized(&self) -> bool {
1442 true
1443 }
1444
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1445 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1446 while !is.eof()? {
1447 let (field_number, wire_type) = is.read_tag_unpack()?;
1448 match field_number {
1449 1 => {
1450 ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.dll_base_name)?;
1451 },
1452 _ => {
1453 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1454 },
1455 };
1456 }
1457 ::std::result::Result::Ok(())
1458 }
1459
1460 // Compute sizes of nested messages
1461 #[allow(unused_variables)]
compute_size(&self) -> u321462 fn compute_size(&self) -> u32 {
1463 let mut my_size = 0;
1464 if let Some(ref v) = self.dll_base_name.as_ref() {
1465 my_size += ::protobuf::rt::string_size(1, &v);
1466 }
1467 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1468 self.cached_size.set(my_size);
1469 my_size
1470 }
1471
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1472 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1473 if let Some(ref v) = self.dll_base_name.as_ref() {
1474 os.write_string(1, &v)?;
1475 }
1476 os.write_unknown_fields(self.get_unknown_fields())?;
1477 ::std::result::Result::Ok(())
1478 }
1479
get_cached_size(&self) -> u321480 fn get_cached_size(&self) -> u32 {
1481 self.cached_size.get()
1482 }
1483
get_unknown_fields(&self) -> &::protobuf::UnknownFields1484 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1485 &self.unknown_fields
1486 }
1487
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1488 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1489 &mut self.unknown_fields
1490 }
1491
as_any(&self) -> &dyn (::std::any::Any)1492 fn as_any(&self) -> &dyn (::std::any::Any) {
1493 self as &dyn (::std::any::Any)
1494 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1495 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1496 self as &mut dyn (::std::any::Any)
1497 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1498 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1499 self
1500 }
1501
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1502 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1503 Self::descriptor_static()
1504 }
1505
new() -> EmulatorDllDetails1506 fn new() -> EmulatorDllDetails {
1507 EmulatorDllDetails::new()
1508 }
1509
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor1510 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1511 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1512 descriptor.get(|| {
1513 let mut fields = ::std::vec::Vec::new();
1514 fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1515 "dll_base_name",
1516 |m: &EmulatorDllDetails| { &m.dll_base_name },
1517 |m: &mut EmulatorDllDetails| { &mut m.dll_base_name },
1518 ));
1519 ::protobuf::reflect::MessageDescriptor::new_pb_name::<EmulatorDllDetails>(
1520 "EmulatorDllDetails",
1521 fields,
1522 file_descriptor_proto()
1523 )
1524 })
1525 }
1526
default_instance() -> &'static EmulatorDllDetails1527 fn default_instance() -> &'static EmulatorDllDetails {
1528 static instance: ::protobuf::rt::LazyV2<EmulatorDllDetails> = ::protobuf::rt::LazyV2::INIT;
1529 instance.get(EmulatorDllDetails::new)
1530 }
1531 }
1532
1533 impl ::protobuf::Clear for EmulatorDllDetails {
clear(&mut self)1534 fn clear(&mut self) {
1535 self.dll_base_name.clear();
1536 self.unknown_fields.clear();
1537 }
1538 }
1539
1540 impl ::std::fmt::Debug for EmulatorDllDetails {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1541 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1542 ::protobuf::text_format::fmt(self, f)
1543 }
1544 }
1545
1546 impl ::protobuf::reflect::ProtobufValue for EmulatorDllDetails {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1547 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1548 ::protobuf::reflect::ReflectValueRef::Message(self)
1549 }
1550 }
1551
1552 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
1553 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
1554 pub enum EmulatorProcessType {
1555 PROCESS_TYPE_UNKNOWN = 0,
1556 PROCESS_TYPE_MAIN = 1,
1557 PROCESS_TYPE_BLOCK = 2,
1558 PROCESS_TYPE_METRICS = 3,
1559 PROCESS_TYPE_NET = 4,
1560 PROCESS_TYPE_SLIRP = 5,
1561 PROCESS_TYPE_GPU = 6,
1562 PROCESS_TYPE_SOUND = 7,
1563 PROCESS_TYPE_BROKER = 8,
1564 PROCESS_TYPE_SPU = 9,
1565 }
1566
1567 impl ::protobuf::ProtobufEnum for EmulatorProcessType {
value(&self) -> i321568 fn value(&self) -> i32 {
1569 *self as i32
1570 }
1571
from_i32(value: i32) -> ::std::option::Option<EmulatorProcessType>1572 fn from_i32(value: i32) -> ::std::option::Option<EmulatorProcessType> {
1573 match value {
1574 0 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_UNKNOWN),
1575 1 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_MAIN),
1576 2 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_BLOCK),
1577 3 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_METRICS),
1578 4 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_NET),
1579 5 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_SLIRP),
1580 6 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_GPU),
1581 7 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_SOUND),
1582 8 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_BROKER),
1583 9 => ::std::option::Option::Some(EmulatorProcessType::PROCESS_TYPE_SPU),
1584 _ => ::std::option::Option::None
1585 }
1586 }
1587
values() -> &'static [Self]1588 fn values() -> &'static [Self] {
1589 static values: &'static [EmulatorProcessType] = &[
1590 EmulatorProcessType::PROCESS_TYPE_UNKNOWN,
1591 EmulatorProcessType::PROCESS_TYPE_MAIN,
1592 EmulatorProcessType::PROCESS_TYPE_BLOCK,
1593 EmulatorProcessType::PROCESS_TYPE_METRICS,
1594 EmulatorProcessType::PROCESS_TYPE_NET,
1595 EmulatorProcessType::PROCESS_TYPE_SLIRP,
1596 EmulatorProcessType::PROCESS_TYPE_GPU,
1597 EmulatorProcessType::PROCESS_TYPE_SOUND,
1598 EmulatorProcessType::PROCESS_TYPE_BROKER,
1599 EmulatorProcessType::PROCESS_TYPE_SPU,
1600 ];
1601 values
1602 }
1603
enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor1604 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
1605 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
1606 descriptor.get(|| {
1607 ::protobuf::reflect::EnumDescriptor::new_pb_name::<EmulatorProcessType>("EmulatorProcessType", file_descriptor_proto())
1608 })
1609 }
1610 }
1611
1612 impl ::std::marker::Copy for EmulatorProcessType {
1613 }
1614
1615 impl ::std::default::Default for EmulatorProcessType {
default() -> Self1616 fn default() -> Self {
1617 EmulatorProcessType::PROCESS_TYPE_UNKNOWN
1618 }
1619 }
1620
1621 impl ::protobuf::reflect::ProtobufValue for EmulatorProcessType {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1622 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1623 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
1624 }
1625 }
1626
1627 static file_descriptor_proto_data: &'static [u8] = b"\
1628 \n\x13event_details.proto\"\x96\x02\n\rRecordDetails\x12n\n#emulator_chi\
1629 ld_process_exit_details\x18\x0c\x20\x01(\x0b2\x20.EmulatorChildProcessEx\
1630 itDetailsR\x1femulatorChildProcessExitDetails\x12B\n\x13wave_format_deta\
1631 ils\x18\r\x20\x01(\x0b2\x12.WaveFormatDetailsR\x11waveFormatDetails\x12E\
1632 \n\x14emulator_dll_details\x18\x13\x20\x01(\x0b2\x13.EmulatorDllDetailsR\
1633 \x12emulatorDllDetailsJ\x04\x08\x01\x10\x0cJ\x04\x08\x0e\x10\x13\"\x9d\
1634 \x01\n\x11WaveFormatDetails\x12)\n\trequested\x18\x01\x20\x01(\x0b2\x0b.\
1635 WaveFormatR\trequested\x12'\n\x08modified\x18\x02\x20\x01(\x0b2\x0b.Wave\
1636 FormatR\x08modified\x124\n\x0fclosest_matched\x18\x03\x20\x01(\x0b2\x0b.\
1637 WaveFormatR\x0eclosestMatched\"\xb9\x05\n\nWaveFormat\x12\x1d\n\nformat_\
1638 tag\x18\x01\x20\x01(\x05R\tformatTag\x12\x1a\n\x08channels\x18\x02\x20\
1639 \x01(\x05R\x08channels\x12&\n\x0fsamples_per_sec\x18\x03\x20\x01(\x05R\r\
1640 samplesPerSec\x12)\n\x11avg_bytes_per_sec\x18\x04\x20\x01(\x05R\x0eavgBy\
1641 tesPerSec\x12\x1f\n\x0bblock_align\x18\x05\x20\x01(\x05R\nblockAlign\x12\
1642 &\n\x0fbits_per_sample\x18\x06\x20\x01(\x05R\rbitsPerSample\x12\x1d\n\ns\
1643 ize_bytes\x18\x07\x20\x01(\x05R\tsizeBytes\x12\x18\n\x07samples\x18\x08\
1644 \x20\x01(\x05R\x07samples\x12!\n\x0cchannel_mask\x18\t\x20\x01(\x03R\x0b\
1645 channelMask\x12>\n\nsub_format\x18\n\x20\x01(\x0e2\x1f.WaveFormat.WaveFo\
1646 rmatSubFormatR\tsubFormat\"\xb7\x02\n\x13WaveFormatSubFormat\x12\x20\n\
1647 \x1cKSDATAFORMAT_SUBTYPE_INVALID\x10\0\x12\x1f\n\x1bKSDATAFORMAT_SUBTYPE\
1648 _ANALOG\x10\x01\x12\x1c\n\x18KSDATAFORMAT_SUBTYPE_PCM\x10\x02\x12#\n\x1f\
1649 KSDATAFORMAT_SUBTYPE_IEEE_FLOAT\x10\x03\x12\x1c\n\x18KSDATAFORMAT_SUBTYP\
1650 E_DRM\x10\x04\x12\x1d\n\x19KSDATAFORMAT_SUBTYPE_ALAW\x10\x05\x12\x1e\n\
1651 \x1aKSDATAFORMAT_SUBTYPE_MULAW\x10\x06\x12\x1e\n\x1aKSDATAFORMAT_SUBTYPE\
1652 _ADPCM\x10\x07\x12\x1d\n\x19KSDATAFORMAT_SUBTYPE_MPEG\x10\x08\"w\n\x1fEm\
1653 ulatorChildProcessExitDetails\x12\x1b\n\texit_code\x18\x01\x20\x01(\rR\
1654 \x08exitCode\x127\n\x0cprocess_type\x18\x02\x20\x01(\x0e2\x14.EmulatorPr\
1655 ocessTypeR\x0bprocessType\"8\n\x12EmulatorDllDetails\x12\"\n\rdll_base_n\
1656 ame\x18\x01\x20\x01(\tR\x0bdllBaseName*\x83\x02\n\x13EmulatorProcessType\
1657 \x12\x18\n\x14PROCESS_TYPE_UNKNOWN\x10\0\x12\x15\n\x11PROCESS_TYPE_MAIN\
1658 \x10\x01\x12\x16\n\x12PROCESS_TYPE_BLOCK\x10\x02\x12\x18\n\x14PROCESS_TY\
1659 PE_METRICS\x10\x03\x12\x14\n\x10PROCESS_TYPE_NET\x10\x04\x12\x16\n\x12PR\
1660 OCESS_TYPE_SLIRP\x10\x05\x12\x14\n\x10PROCESS_TYPE_GPU\x10\x06\x12\x16\n\
1661 \x12PROCESS_TYPE_SOUND\x10\x07\x12\x17\n\x13PROCESS_TYPE_BROKER\x10\x08\
1662 \x12\x14\n\x10PROCESS_TYPE_SPU\x10\t\
1663 ";
1664
1665 static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
1666
parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto1667 fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1668 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1669 }
1670
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto1671 pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1672 file_descriptor_proto_lazy.get(|| {
1673 parse_descriptor_proto()
1674 })
1675 }
1676