1#![allow(unknown_lints)]
7#![allow(clippy::all)]
8
9#![allow(unused_attributes)]
10#![cfg_attr(rustfmt, rustfmt::skip)]
11
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_results)]
19#![allow(unused_mut)]
20
21const _PROTOBUF_VERSION_CHECK: () = ::steam_vent_proto_common::protobuf::VERSION_3_5_1;
27
28#[derive(PartialEq,Clone,Default,Debug)]
30pub struct CBluetoothManager_GetState_Request {
31 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
34}
35
36impl<'a> ::std::default::Default for &'a CBluetoothManager_GetState_Request {
37 fn default() -> &'a CBluetoothManager_GetState_Request {
38 <CBluetoothManager_GetState_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
39 }
40}
41
42impl CBluetoothManager_GetState_Request {
43 pub fn new() -> CBluetoothManager_GetState_Request {
44 ::std::default::Default::default()
45 }
46}
47
48impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_GetState_Request {
49 const NAME: &'static str = "CBluetoothManager_GetState_Request";
50
51 fn is_initialized(&self) -> bool {
52 true
53 }
54
55 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
56 while let Some(tag) = is.read_raw_tag_or_eof()? {
57 match tag {
58 tag => {
59 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
60 },
61 };
62 }
63 ::std::result::Result::Ok(())
64 }
65
66 #[allow(unused_variables)]
68 fn compute_size(&self) -> u64 {
69 let mut my_size = 0;
70 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
71 self.special_fields.cached_size().set(my_size as u32);
72 my_size
73 }
74
75 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
76 os.write_unknown_fields(self.special_fields.unknown_fields())?;
77 ::std::result::Result::Ok(())
78 }
79
80 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
81 &self.special_fields
82 }
83
84 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
85 &mut self.special_fields
86 }
87
88 fn new() -> CBluetoothManager_GetState_Request {
89 CBluetoothManager_GetState_Request::new()
90 }
91
92 fn clear(&mut self) {
93 self.special_fields.clear();
94 }
95
96 fn default_instance() -> &'static CBluetoothManager_GetState_Request {
97 static instance: CBluetoothManager_GetState_Request = CBluetoothManager_GetState_Request {
98 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
99 };
100 &instance
101 }
102}
103
104#[derive(PartialEq,Clone,Default,Debug)]
106pub struct CMsgBluetoothManagerAdapterInfo {
107 pub id: ::std::option::Option<u32>,
110 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
113}
114
115impl<'a> ::std::default::Default for &'a CMsgBluetoothManagerAdapterInfo {
116 fn default() -> &'a CMsgBluetoothManagerAdapterInfo {
117 <CMsgBluetoothManagerAdapterInfo as ::steam_vent_proto_common::protobuf::Message>::default_instance()
118 }
119}
120
121impl CMsgBluetoothManagerAdapterInfo {
122 pub fn new() -> CMsgBluetoothManagerAdapterInfo {
123 ::std::default::Default::default()
124 }
125
126 pub fn id(&self) -> u32 {
129 self.id.unwrap_or(0)
130 }
131
132 pub fn clear_id(&mut self) {
133 self.id = ::std::option::Option::None;
134 }
135
136 pub fn has_id(&self) -> bool {
137 self.id.is_some()
138 }
139
140 pub fn set_id(&mut self, v: u32) {
142 self.id = ::std::option::Option::Some(v);
143 }
144}
145
146impl ::steam_vent_proto_common::protobuf::Message for CMsgBluetoothManagerAdapterInfo {
147 const NAME: &'static str = "CMsgBluetoothManagerAdapterInfo";
148
149 fn is_initialized(&self) -> bool {
150 true
151 }
152
153 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
154 while let Some(tag) = is.read_raw_tag_or_eof()? {
155 match tag {
156 8 => {
157 self.id = ::std::option::Option::Some(is.read_uint32()?);
158 },
159 tag => {
160 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
161 },
162 };
163 }
164 ::std::result::Result::Ok(())
165 }
166
167 #[allow(unused_variables)]
169 fn compute_size(&self) -> u64 {
170 let mut my_size = 0;
171 if let Some(v) = self.id {
172 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
173 }
174 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
175 self.special_fields.cached_size().set(my_size as u32);
176 my_size
177 }
178
179 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
180 if let Some(v) = self.id {
181 os.write_uint32(1, v)?;
182 }
183 os.write_unknown_fields(self.special_fields.unknown_fields())?;
184 ::std::result::Result::Ok(())
185 }
186
187 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
188 &self.special_fields
189 }
190
191 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
192 &mut self.special_fields
193 }
194
195 fn new() -> CMsgBluetoothManagerAdapterInfo {
196 CMsgBluetoothManagerAdapterInfo::new()
197 }
198
199 fn clear(&mut self) {
200 self.id = ::std::option::Option::None;
201 self.special_fields.clear();
202 }
203
204 fn default_instance() -> &'static CMsgBluetoothManagerAdapterInfo {
205 static instance: CMsgBluetoothManagerAdapterInfo = CMsgBluetoothManagerAdapterInfo {
206 id: ::std::option::Option::None,
207 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
208 };
209 &instance
210 }
211}
212
213#[derive(PartialEq,Clone,Default,Debug)]
215pub struct CMsgBluetoothManagerDeviceInfo {
216 pub id: ::std::option::Option<u32>,
219 pub should_hide_hint: ::std::option::Option<bool>,
221 pub etype: ::std::option::Option<::steam_vent_proto_common::protobuf::EnumOrUnknown<super::enums::EBluetoothDeviceType>>,
223 pub is_connected: ::std::option::Option<bool>,
225 pub is_paired: ::std::option::Option<bool>,
227 pub strength_raw: ::std::option::Option<i32>,
229 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
232}
233
234impl<'a> ::std::default::Default for &'a CMsgBluetoothManagerDeviceInfo {
235 fn default() -> &'a CMsgBluetoothManagerDeviceInfo {
236 <CMsgBluetoothManagerDeviceInfo as ::steam_vent_proto_common::protobuf::Message>::default_instance()
237 }
238}
239
240impl CMsgBluetoothManagerDeviceInfo {
241 pub fn new() -> CMsgBluetoothManagerDeviceInfo {
242 ::std::default::Default::default()
243 }
244
245 pub fn id(&self) -> u32 {
248 self.id.unwrap_or(0)
249 }
250
251 pub fn clear_id(&mut self) {
252 self.id = ::std::option::Option::None;
253 }
254
255 pub fn has_id(&self) -> bool {
256 self.id.is_some()
257 }
258
259 pub fn set_id(&mut self, v: u32) {
261 self.id = ::std::option::Option::Some(v);
262 }
263
264 pub fn should_hide_hint(&self) -> bool {
267 self.should_hide_hint.unwrap_or(false)
268 }
269
270 pub fn clear_should_hide_hint(&mut self) {
271 self.should_hide_hint = ::std::option::Option::None;
272 }
273
274 pub fn has_should_hide_hint(&self) -> bool {
275 self.should_hide_hint.is_some()
276 }
277
278 pub fn set_should_hide_hint(&mut self, v: bool) {
280 self.should_hide_hint = ::std::option::Option::Some(v);
281 }
282
283 pub fn etype(&self) -> super::enums::EBluetoothDeviceType {
286 match self.etype {
287 Some(e) => e.enum_value_or(super::enums::EBluetoothDeviceType::k_BluetoothDeviceType_Invalid),
288 None => super::enums::EBluetoothDeviceType::k_BluetoothDeviceType_Invalid,
289 }
290 }
291
292 pub fn clear_etype(&mut self) {
293 self.etype = ::std::option::Option::None;
294 }
295
296 pub fn has_etype(&self) -> bool {
297 self.etype.is_some()
298 }
299
300 pub fn set_etype(&mut self, v: super::enums::EBluetoothDeviceType) {
302 self.etype = ::std::option::Option::Some(::steam_vent_proto_common::protobuf::EnumOrUnknown::new(v));
303 }
304
305 pub fn is_connected(&self) -> bool {
308 self.is_connected.unwrap_or(false)
309 }
310
311 pub fn clear_is_connected(&mut self) {
312 self.is_connected = ::std::option::Option::None;
313 }
314
315 pub fn has_is_connected(&self) -> bool {
316 self.is_connected.is_some()
317 }
318
319 pub fn set_is_connected(&mut self, v: bool) {
321 self.is_connected = ::std::option::Option::Some(v);
322 }
323
324 pub fn is_paired(&self) -> bool {
327 self.is_paired.unwrap_or(false)
328 }
329
330 pub fn clear_is_paired(&mut self) {
331 self.is_paired = ::std::option::Option::None;
332 }
333
334 pub fn has_is_paired(&self) -> bool {
335 self.is_paired.is_some()
336 }
337
338 pub fn set_is_paired(&mut self, v: bool) {
340 self.is_paired = ::std::option::Option::Some(v);
341 }
342
343 pub fn strength_raw(&self) -> i32 {
346 self.strength_raw.unwrap_or(0)
347 }
348
349 pub fn clear_strength_raw(&mut self) {
350 self.strength_raw = ::std::option::Option::None;
351 }
352
353 pub fn has_strength_raw(&self) -> bool {
354 self.strength_raw.is_some()
355 }
356
357 pub fn set_strength_raw(&mut self, v: i32) {
359 self.strength_raw = ::std::option::Option::Some(v);
360 }
361}
362
363impl ::steam_vent_proto_common::protobuf::Message for CMsgBluetoothManagerDeviceInfo {
364 const NAME: &'static str = "CMsgBluetoothManagerDeviceInfo";
365
366 fn is_initialized(&self) -> bool {
367 true
368 }
369
370 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
371 while let Some(tag) = is.read_raw_tag_or_eof()? {
372 match tag {
373 8 => {
374 self.id = ::std::option::Option::Some(is.read_uint32()?);
375 },
376 16 => {
377 self.should_hide_hint = ::std::option::Option::Some(is.read_bool()?);
378 },
379 24 => {
380 self.etype = ::std::option::Option::Some(is.read_enum_or_unknown()?);
381 },
382 32 => {
383 self.is_connected = ::std::option::Option::Some(is.read_bool()?);
384 },
385 40 => {
386 self.is_paired = ::std::option::Option::Some(is.read_bool()?);
387 },
388 48 => {
389 self.strength_raw = ::std::option::Option::Some(is.read_int32()?);
390 },
391 tag => {
392 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
393 },
394 };
395 }
396 ::std::result::Result::Ok(())
397 }
398
399 #[allow(unused_variables)]
401 fn compute_size(&self) -> u64 {
402 let mut my_size = 0;
403 if let Some(v) = self.id {
404 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
405 }
406 if let Some(v) = self.should_hide_hint {
407 my_size += 1 + 1;
408 }
409 if let Some(v) = self.etype {
410 my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(3, v.value());
411 }
412 if let Some(v) = self.is_connected {
413 my_size += 1 + 1;
414 }
415 if let Some(v) = self.is_paired {
416 my_size += 1 + 1;
417 }
418 if let Some(v) = self.strength_raw {
419 my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(6, v);
420 }
421 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
422 self.special_fields.cached_size().set(my_size as u32);
423 my_size
424 }
425
426 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
427 if let Some(v) = self.id {
428 os.write_uint32(1, v)?;
429 }
430 if let Some(v) = self.should_hide_hint {
431 os.write_bool(2, v)?;
432 }
433 if let Some(v) = self.etype {
434 os.write_enum(3, ::steam_vent_proto_common::protobuf::EnumOrUnknown::value(&v))?;
435 }
436 if let Some(v) = self.is_connected {
437 os.write_bool(4, v)?;
438 }
439 if let Some(v) = self.is_paired {
440 os.write_bool(5, v)?;
441 }
442 if let Some(v) = self.strength_raw {
443 os.write_int32(6, v)?;
444 }
445 os.write_unknown_fields(self.special_fields.unknown_fields())?;
446 ::std::result::Result::Ok(())
447 }
448
449 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
450 &self.special_fields
451 }
452
453 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
454 &mut self.special_fields
455 }
456
457 fn new() -> CMsgBluetoothManagerDeviceInfo {
458 CMsgBluetoothManagerDeviceInfo::new()
459 }
460
461 fn clear(&mut self) {
462 self.id = ::std::option::Option::None;
463 self.should_hide_hint = ::std::option::Option::None;
464 self.etype = ::std::option::Option::None;
465 self.is_connected = ::std::option::Option::None;
466 self.is_paired = ::std::option::Option::None;
467 self.strength_raw = ::std::option::Option::None;
468 self.special_fields.clear();
469 }
470
471 fn default_instance() -> &'static CMsgBluetoothManagerDeviceInfo {
472 static instance: CMsgBluetoothManagerDeviceInfo = CMsgBluetoothManagerDeviceInfo {
473 id: ::std::option::Option::None,
474 should_hide_hint: ::std::option::Option::None,
475 etype: ::std::option::Option::None,
476 is_connected: ::std::option::Option::None,
477 is_paired: ::std::option::Option::None,
478 strength_raw: ::std::option::Option::None,
479 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
480 };
481 &instance
482 }
483}
484
485#[derive(PartialEq,Clone,Default,Debug)]
487pub struct CBluetoothManager_GetState_Response {
488 pub is_service_available: ::std::option::Option<bool>,
491 pub is_enabled: ::std::option::Option<bool>,
493 pub is_discovering: ::std::option::Option<bool>,
495 pub adapters: ::std::vec::Vec<CMsgBluetoothManagerAdapterInfo>,
497 pub devices: ::std::vec::Vec<CMsgBluetoothManagerDeviceInfo>,
499 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
502}
503
504impl<'a> ::std::default::Default for &'a CBluetoothManager_GetState_Response {
505 fn default() -> &'a CBluetoothManager_GetState_Response {
506 <CBluetoothManager_GetState_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
507 }
508}
509
510impl CBluetoothManager_GetState_Response {
511 pub fn new() -> CBluetoothManager_GetState_Response {
512 ::std::default::Default::default()
513 }
514
515 pub fn is_service_available(&self) -> bool {
518 self.is_service_available.unwrap_or(false)
519 }
520
521 pub fn clear_is_service_available(&mut self) {
522 self.is_service_available = ::std::option::Option::None;
523 }
524
525 pub fn has_is_service_available(&self) -> bool {
526 self.is_service_available.is_some()
527 }
528
529 pub fn set_is_service_available(&mut self, v: bool) {
531 self.is_service_available = ::std::option::Option::Some(v);
532 }
533
534 pub fn is_enabled(&self) -> bool {
537 self.is_enabled.unwrap_or(false)
538 }
539
540 pub fn clear_is_enabled(&mut self) {
541 self.is_enabled = ::std::option::Option::None;
542 }
543
544 pub fn has_is_enabled(&self) -> bool {
545 self.is_enabled.is_some()
546 }
547
548 pub fn set_is_enabled(&mut self, v: bool) {
550 self.is_enabled = ::std::option::Option::Some(v);
551 }
552
553 pub fn is_discovering(&self) -> bool {
556 self.is_discovering.unwrap_or(false)
557 }
558
559 pub fn clear_is_discovering(&mut self) {
560 self.is_discovering = ::std::option::Option::None;
561 }
562
563 pub fn has_is_discovering(&self) -> bool {
564 self.is_discovering.is_some()
565 }
566
567 pub fn set_is_discovering(&mut self, v: bool) {
569 self.is_discovering = ::std::option::Option::Some(v);
570 }
571}
572
573impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_GetState_Response {
574 const NAME: &'static str = "CBluetoothManager_GetState_Response";
575
576 fn is_initialized(&self) -> bool {
577 true
578 }
579
580 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
581 while let Some(tag) = is.read_raw_tag_or_eof()? {
582 match tag {
583 8 => {
584 self.is_service_available = ::std::option::Option::Some(is.read_bool()?);
585 },
586 16 => {
587 self.is_enabled = ::std::option::Option::Some(is.read_bool()?);
588 },
589 24 => {
590 self.is_discovering = ::std::option::Option::Some(is.read_bool()?);
591 },
592 34 => {
593 self.adapters.push(is.read_message()?);
594 },
595 42 => {
596 self.devices.push(is.read_message()?);
597 },
598 tag => {
599 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
600 },
601 };
602 }
603 ::std::result::Result::Ok(())
604 }
605
606 #[allow(unused_variables)]
608 fn compute_size(&self) -> u64 {
609 let mut my_size = 0;
610 if let Some(v) = self.is_service_available {
611 my_size += 1 + 1;
612 }
613 if let Some(v) = self.is_enabled {
614 my_size += 1 + 1;
615 }
616 if let Some(v) = self.is_discovering {
617 my_size += 1 + 1;
618 }
619 for value in &self.adapters {
620 let len = value.compute_size();
621 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
622 };
623 for value in &self.devices {
624 let len = value.compute_size();
625 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
626 };
627 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
628 self.special_fields.cached_size().set(my_size as u32);
629 my_size
630 }
631
632 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
633 if let Some(v) = self.is_service_available {
634 os.write_bool(1, v)?;
635 }
636 if let Some(v) = self.is_enabled {
637 os.write_bool(2, v)?;
638 }
639 if let Some(v) = self.is_discovering {
640 os.write_bool(3, v)?;
641 }
642 for v in &self.adapters {
643 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
644 };
645 for v in &self.devices {
646 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
647 };
648 os.write_unknown_fields(self.special_fields.unknown_fields())?;
649 ::std::result::Result::Ok(())
650 }
651
652 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
653 &self.special_fields
654 }
655
656 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
657 &mut self.special_fields
658 }
659
660 fn new() -> CBluetoothManager_GetState_Response {
661 CBluetoothManager_GetState_Response::new()
662 }
663
664 fn clear(&mut self) {
665 self.is_service_available = ::std::option::Option::None;
666 self.is_enabled = ::std::option::Option::None;
667 self.is_discovering = ::std::option::Option::None;
668 self.adapters.clear();
669 self.devices.clear();
670 self.special_fields.clear();
671 }
672
673 fn default_instance() -> &'static CBluetoothManager_GetState_Response {
674 static instance: CBluetoothManager_GetState_Response = CBluetoothManager_GetState_Response {
675 is_service_available: ::std::option::Option::None,
676 is_enabled: ::std::option::Option::None,
677 is_discovering: ::std::option::Option::None,
678 adapters: ::std::vec::Vec::new(),
679 devices: ::std::vec::Vec::new(),
680 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
681 };
682 &instance
683 }
684}
685
686#[derive(PartialEq,Clone,Default,Debug)]
688pub struct CBluetoothManager_GetAdapterDetails_Request {
689 pub id: ::std::option::Option<u32>,
692 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
695}
696
697impl<'a> ::std::default::Default for &'a CBluetoothManager_GetAdapterDetails_Request {
698 fn default() -> &'a CBluetoothManager_GetAdapterDetails_Request {
699 <CBluetoothManager_GetAdapterDetails_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
700 }
701}
702
703impl CBluetoothManager_GetAdapterDetails_Request {
704 pub fn new() -> CBluetoothManager_GetAdapterDetails_Request {
705 ::std::default::Default::default()
706 }
707
708 pub fn id(&self) -> u32 {
711 self.id.unwrap_or(0)
712 }
713
714 pub fn clear_id(&mut self) {
715 self.id = ::std::option::Option::None;
716 }
717
718 pub fn has_id(&self) -> bool {
719 self.id.is_some()
720 }
721
722 pub fn set_id(&mut self, v: u32) {
724 self.id = ::std::option::Option::Some(v);
725 }
726}
727
728impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_GetAdapterDetails_Request {
729 const NAME: &'static str = "CBluetoothManager_GetAdapterDetails_Request";
730
731 fn is_initialized(&self) -> bool {
732 true
733 }
734
735 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
736 while let Some(tag) = is.read_raw_tag_or_eof()? {
737 match tag {
738 8 => {
739 self.id = ::std::option::Option::Some(is.read_uint32()?);
740 },
741 tag => {
742 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
743 },
744 };
745 }
746 ::std::result::Result::Ok(())
747 }
748
749 #[allow(unused_variables)]
751 fn compute_size(&self) -> u64 {
752 let mut my_size = 0;
753 if let Some(v) = self.id {
754 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
755 }
756 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
757 self.special_fields.cached_size().set(my_size as u32);
758 my_size
759 }
760
761 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
762 if let Some(v) = self.id {
763 os.write_uint32(1, v)?;
764 }
765 os.write_unknown_fields(self.special_fields.unknown_fields())?;
766 ::std::result::Result::Ok(())
767 }
768
769 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
770 &self.special_fields
771 }
772
773 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
774 &mut self.special_fields
775 }
776
777 fn new() -> CBluetoothManager_GetAdapterDetails_Request {
778 CBluetoothManager_GetAdapterDetails_Request::new()
779 }
780
781 fn clear(&mut self) {
782 self.id = ::std::option::Option::None;
783 self.special_fields.clear();
784 }
785
786 fn default_instance() -> &'static CBluetoothManager_GetAdapterDetails_Request {
787 static instance: CBluetoothManager_GetAdapterDetails_Request = CBluetoothManager_GetAdapterDetails_Request {
788 id: ::std::option::Option::None,
789 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
790 };
791 &instance
792 }
793}
794
795#[derive(PartialEq,Clone,Default,Debug)]
797pub struct CMsgBluetoothManagerAdapterDetails {
798 pub id: ::std::option::Option<u32>,
801 pub mac: ::std::option::Option<::std::string::String>,
803 pub name: ::std::option::Option<::std::string::String>,
805 pub is_enabled: ::std::option::Option<bool>,
807 pub is_discovering: ::std::option::Option<bool>,
809 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
812}
813
814impl<'a> ::std::default::Default for &'a CMsgBluetoothManagerAdapterDetails {
815 fn default() -> &'a CMsgBluetoothManagerAdapterDetails {
816 <CMsgBluetoothManagerAdapterDetails as ::steam_vent_proto_common::protobuf::Message>::default_instance()
817 }
818}
819
820impl CMsgBluetoothManagerAdapterDetails {
821 pub fn new() -> CMsgBluetoothManagerAdapterDetails {
822 ::std::default::Default::default()
823 }
824
825 pub fn id(&self) -> u32 {
828 self.id.unwrap_or(0u32)
829 }
830
831 pub fn clear_id(&mut self) {
832 self.id = ::std::option::Option::None;
833 }
834
835 pub fn has_id(&self) -> bool {
836 self.id.is_some()
837 }
838
839 pub fn set_id(&mut self, v: u32) {
841 self.id = ::std::option::Option::Some(v);
842 }
843
844 pub fn mac(&self) -> &str {
847 match self.mac.as_ref() {
848 Some(v) => v,
849 None => "",
850 }
851 }
852
853 pub fn clear_mac(&mut self) {
854 self.mac = ::std::option::Option::None;
855 }
856
857 pub fn has_mac(&self) -> bool {
858 self.mac.is_some()
859 }
860
861 pub fn set_mac(&mut self, v: ::std::string::String) {
863 self.mac = ::std::option::Option::Some(v);
864 }
865
866 pub fn mut_mac(&mut self) -> &mut ::std::string::String {
869 if self.mac.is_none() {
870 self.mac = ::std::option::Option::Some(::std::string::String::new());
871 }
872 self.mac.as_mut().unwrap()
873 }
874
875 pub fn take_mac(&mut self) -> ::std::string::String {
877 self.mac.take().unwrap_or_else(|| ::std::string::String::new())
878 }
879
880 pub fn name(&self) -> &str {
883 match self.name.as_ref() {
884 Some(v) => v,
885 None => "",
886 }
887 }
888
889 pub fn clear_name(&mut self) {
890 self.name = ::std::option::Option::None;
891 }
892
893 pub fn has_name(&self) -> bool {
894 self.name.is_some()
895 }
896
897 pub fn set_name(&mut self, v: ::std::string::String) {
899 self.name = ::std::option::Option::Some(v);
900 }
901
902 pub fn mut_name(&mut self) -> &mut ::std::string::String {
905 if self.name.is_none() {
906 self.name = ::std::option::Option::Some(::std::string::String::new());
907 }
908 self.name.as_mut().unwrap()
909 }
910
911 pub fn take_name(&mut self) -> ::std::string::String {
913 self.name.take().unwrap_or_else(|| ::std::string::String::new())
914 }
915
916 pub fn is_enabled(&self) -> bool {
919 self.is_enabled.unwrap_or(false)
920 }
921
922 pub fn clear_is_enabled(&mut self) {
923 self.is_enabled = ::std::option::Option::None;
924 }
925
926 pub fn has_is_enabled(&self) -> bool {
927 self.is_enabled.is_some()
928 }
929
930 pub fn set_is_enabled(&mut self, v: bool) {
932 self.is_enabled = ::std::option::Option::Some(v);
933 }
934
935 pub fn is_discovering(&self) -> bool {
938 self.is_discovering.unwrap_or(false)
939 }
940
941 pub fn clear_is_discovering(&mut self) {
942 self.is_discovering = ::std::option::Option::None;
943 }
944
945 pub fn has_is_discovering(&self) -> bool {
946 self.is_discovering.is_some()
947 }
948
949 pub fn set_is_discovering(&mut self, v: bool) {
951 self.is_discovering = ::std::option::Option::Some(v);
952 }
953}
954
955impl ::steam_vent_proto_common::protobuf::Message for CMsgBluetoothManagerAdapterDetails {
956 const NAME: &'static str = "CMsgBluetoothManagerAdapterDetails";
957
958 fn is_initialized(&self) -> bool {
959 true
960 }
961
962 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
963 while let Some(tag) = is.read_raw_tag_or_eof()? {
964 match tag {
965 8 => {
966 self.id = ::std::option::Option::Some(is.read_uint32()?);
967 },
968 18 => {
969 self.mac = ::std::option::Option::Some(is.read_string()?);
970 },
971 26 => {
972 self.name = ::std::option::Option::Some(is.read_string()?);
973 },
974 32 => {
975 self.is_enabled = ::std::option::Option::Some(is.read_bool()?);
976 },
977 40 => {
978 self.is_discovering = ::std::option::Option::Some(is.read_bool()?);
979 },
980 tag => {
981 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
982 },
983 };
984 }
985 ::std::result::Result::Ok(())
986 }
987
988 #[allow(unused_variables)]
990 fn compute_size(&self) -> u64 {
991 let mut my_size = 0;
992 if let Some(v) = self.id {
993 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
994 }
995 if let Some(v) = self.mac.as_ref() {
996 my_size += ::steam_vent_proto_common::protobuf::rt::string_size(2, &v);
997 }
998 if let Some(v) = self.name.as_ref() {
999 my_size += ::steam_vent_proto_common::protobuf::rt::string_size(3, &v);
1000 }
1001 if let Some(v) = self.is_enabled {
1002 my_size += 1 + 1;
1003 }
1004 if let Some(v) = self.is_discovering {
1005 my_size += 1 + 1;
1006 }
1007 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1008 self.special_fields.cached_size().set(my_size as u32);
1009 my_size
1010 }
1011
1012 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1013 if let Some(v) = self.id {
1014 os.write_uint32(1, v)?;
1015 }
1016 if let Some(v) = self.mac.as_ref() {
1017 os.write_string(2, v)?;
1018 }
1019 if let Some(v) = self.name.as_ref() {
1020 os.write_string(3, v)?;
1021 }
1022 if let Some(v) = self.is_enabled {
1023 os.write_bool(4, v)?;
1024 }
1025 if let Some(v) = self.is_discovering {
1026 os.write_bool(5, v)?;
1027 }
1028 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1029 ::std::result::Result::Ok(())
1030 }
1031
1032 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
1033 &self.special_fields
1034 }
1035
1036 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
1037 &mut self.special_fields
1038 }
1039
1040 fn new() -> CMsgBluetoothManagerAdapterDetails {
1041 CMsgBluetoothManagerAdapterDetails::new()
1042 }
1043
1044 fn clear(&mut self) {
1045 self.id = ::std::option::Option::None;
1046 self.mac = ::std::option::Option::None;
1047 self.name = ::std::option::Option::None;
1048 self.is_enabled = ::std::option::Option::None;
1049 self.is_discovering = ::std::option::Option::None;
1050 self.special_fields.clear();
1051 }
1052
1053 fn default_instance() -> &'static CMsgBluetoothManagerAdapterDetails {
1054 static instance: CMsgBluetoothManagerAdapterDetails = CMsgBluetoothManagerAdapterDetails {
1055 id: ::std::option::Option::None,
1056 mac: ::std::option::Option::None,
1057 name: ::std::option::Option::None,
1058 is_enabled: ::std::option::Option::None,
1059 is_discovering: ::std::option::Option::None,
1060 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
1061 };
1062 &instance
1063 }
1064}
1065
1066#[derive(PartialEq,Clone,Default,Debug)]
1068pub struct CBluetoothManager_GetAdapterDetails_Response {
1069 pub adapter: ::steam_vent_proto_common::protobuf::MessageField<CMsgBluetoothManagerAdapterDetails>,
1072 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
1075}
1076
1077impl<'a> ::std::default::Default for &'a CBluetoothManager_GetAdapterDetails_Response {
1078 fn default() -> &'a CBluetoothManager_GetAdapterDetails_Response {
1079 <CBluetoothManager_GetAdapterDetails_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
1080 }
1081}
1082
1083impl CBluetoothManager_GetAdapterDetails_Response {
1084 pub fn new() -> CBluetoothManager_GetAdapterDetails_Response {
1085 ::std::default::Default::default()
1086 }
1087}
1088
1089impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_GetAdapterDetails_Response {
1090 const NAME: &'static str = "CBluetoothManager_GetAdapterDetails_Response";
1091
1092 fn is_initialized(&self) -> bool {
1093 true
1094 }
1095
1096 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1097 while let Some(tag) = is.read_raw_tag_or_eof()? {
1098 match tag {
1099 10 => {
1100 ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.adapter)?;
1101 },
1102 tag => {
1103 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1104 },
1105 };
1106 }
1107 ::std::result::Result::Ok(())
1108 }
1109
1110 #[allow(unused_variables)]
1112 fn compute_size(&self) -> u64 {
1113 let mut my_size = 0;
1114 if let Some(v) = self.adapter.as_ref() {
1115 let len = v.compute_size();
1116 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
1117 }
1118 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1119 self.special_fields.cached_size().set(my_size as u32);
1120 my_size
1121 }
1122
1123 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1124 if let Some(v) = self.adapter.as_ref() {
1125 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
1126 }
1127 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1128 ::std::result::Result::Ok(())
1129 }
1130
1131 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
1132 &self.special_fields
1133 }
1134
1135 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
1136 &mut self.special_fields
1137 }
1138
1139 fn new() -> CBluetoothManager_GetAdapterDetails_Response {
1140 CBluetoothManager_GetAdapterDetails_Response::new()
1141 }
1142
1143 fn clear(&mut self) {
1144 self.adapter.clear();
1145 self.special_fields.clear();
1146 }
1147
1148 fn default_instance() -> &'static CBluetoothManager_GetAdapterDetails_Response {
1149 static instance: CBluetoothManager_GetAdapterDetails_Response = CBluetoothManager_GetAdapterDetails_Response {
1150 adapter: ::steam_vent_proto_common::protobuf::MessageField::none(),
1151 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
1152 };
1153 &instance
1154 }
1155}
1156
1157#[derive(PartialEq,Clone,Default,Debug)]
1159pub struct CBluetoothManager_GetDeviceDetails_Request {
1160 pub id: ::std::option::Option<u32>,
1163 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
1166}
1167
1168impl<'a> ::std::default::Default for &'a CBluetoothManager_GetDeviceDetails_Request {
1169 fn default() -> &'a CBluetoothManager_GetDeviceDetails_Request {
1170 <CBluetoothManager_GetDeviceDetails_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
1171 }
1172}
1173
1174impl CBluetoothManager_GetDeviceDetails_Request {
1175 pub fn new() -> CBluetoothManager_GetDeviceDetails_Request {
1176 ::std::default::Default::default()
1177 }
1178
1179 pub fn id(&self) -> u32 {
1182 self.id.unwrap_or(0)
1183 }
1184
1185 pub fn clear_id(&mut self) {
1186 self.id = ::std::option::Option::None;
1187 }
1188
1189 pub fn has_id(&self) -> bool {
1190 self.id.is_some()
1191 }
1192
1193 pub fn set_id(&mut self, v: u32) {
1195 self.id = ::std::option::Option::Some(v);
1196 }
1197}
1198
1199impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_GetDeviceDetails_Request {
1200 const NAME: &'static str = "CBluetoothManager_GetDeviceDetails_Request";
1201
1202 fn is_initialized(&self) -> bool {
1203 true
1204 }
1205
1206 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1207 while let Some(tag) = is.read_raw_tag_or_eof()? {
1208 match tag {
1209 8 => {
1210 self.id = ::std::option::Option::Some(is.read_uint32()?);
1211 },
1212 tag => {
1213 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1214 },
1215 };
1216 }
1217 ::std::result::Result::Ok(())
1218 }
1219
1220 #[allow(unused_variables)]
1222 fn compute_size(&self) -> u64 {
1223 let mut my_size = 0;
1224 if let Some(v) = self.id {
1225 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
1226 }
1227 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1228 self.special_fields.cached_size().set(my_size as u32);
1229 my_size
1230 }
1231
1232 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1233 if let Some(v) = self.id {
1234 os.write_uint32(1, v)?;
1235 }
1236 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1237 ::std::result::Result::Ok(())
1238 }
1239
1240 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
1241 &self.special_fields
1242 }
1243
1244 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
1245 &mut self.special_fields
1246 }
1247
1248 fn new() -> CBluetoothManager_GetDeviceDetails_Request {
1249 CBluetoothManager_GetDeviceDetails_Request::new()
1250 }
1251
1252 fn clear(&mut self) {
1253 self.id = ::std::option::Option::None;
1254 self.special_fields.clear();
1255 }
1256
1257 fn default_instance() -> &'static CBluetoothManager_GetDeviceDetails_Request {
1258 static instance: CBluetoothManager_GetDeviceDetails_Request = CBluetoothManager_GetDeviceDetails_Request {
1259 id: ::std::option::Option::None,
1260 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
1261 };
1262 &instance
1263 }
1264}
1265
1266#[derive(PartialEq,Clone,Default,Debug)]
1268pub struct CMsgBluetoothManagerDeviceDetails {
1269 pub id: ::std::option::Option<u32>,
1272 pub adapter_id: ::std::option::Option<u32>,
1274 pub etype: ::std::option::Option<::steam_vent_proto_common::protobuf::EnumOrUnknown<super::enums::EBluetoothDeviceType>>,
1276 pub mac: ::std::option::Option<::std::string::String>,
1278 pub name: ::std::option::Option<::std::string::String>,
1280 pub is_connected: ::std::option::Option<bool>,
1282 pub is_paired: ::std::option::Option<bool>,
1284 pub is_pairing: ::std::option::Option<bool>,
1286 pub wake_allowed: ::std::option::Option<bool>,
1288 pub wake_allowed_supported: ::std::option::Option<bool>,
1290 pub battery_percent: ::std::option::Option<i32>,
1292 pub operation_in_progress: ::std::option::Option<bool>,
1294 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
1297}
1298
1299impl<'a> ::std::default::Default for &'a CMsgBluetoothManagerDeviceDetails {
1300 fn default() -> &'a CMsgBluetoothManagerDeviceDetails {
1301 <CMsgBluetoothManagerDeviceDetails as ::steam_vent_proto_common::protobuf::Message>::default_instance()
1302 }
1303}
1304
1305impl CMsgBluetoothManagerDeviceDetails {
1306 pub fn new() -> CMsgBluetoothManagerDeviceDetails {
1307 ::std::default::Default::default()
1308 }
1309
1310 pub fn id(&self) -> u32 {
1313 self.id.unwrap_or(0u32)
1314 }
1315
1316 pub fn clear_id(&mut self) {
1317 self.id = ::std::option::Option::None;
1318 }
1319
1320 pub fn has_id(&self) -> bool {
1321 self.id.is_some()
1322 }
1323
1324 pub fn set_id(&mut self, v: u32) {
1326 self.id = ::std::option::Option::Some(v);
1327 }
1328
1329 pub fn adapter_id(&self) -> u32 {
1332 self.adapter_id.unwrap_or(0u32)
1333 }
1334
1335 pub fn clear_adapter_id(&mut self) {
1336 self.adapter_id = ::std::option::Option::None;
1337 }
1338
1339 pub fn has_adapter_id(&self) -> bool {
1340 self.adapter_id.is_some()
1341 }
1342
1343 pub fn set_adapter_id(&mut self, v: u32) {
1345 self.adapter_id = ::std::option::Option::Some(v);
1346 }
1347
1348 pub fn etype(&self) -> super::enums::EBluetoothDeviceType {
1351 match self.etype {
1352 Some(e) => e.enum_value_or(super::enums::EBluetoothDeviceType::k_BluetoothDeviceType_Invalid),
1353 None => super::enums::EBluetoothDeviceType::k_BluetoothDeviceType_Invalid,
1354 }
1355 }
1356
1357 pub fn clear_etype(&mut self) {
1358 self.etype = ::std::option::Option::None;
1359 }
1360
1361 pub fn has_etype(&self) -> bool {
1362 self.etype.is_some()
1363 }
1364
1365 pub fn set_etype(&mut self, v: super::enums::EBluetoothDeviceType) {
1367 self.etype = ::std::option::Option::Some(::steam_vent_proto_common::protobuf::EnumOrUnknown::new(v));
1368 }
1369
1370 pub fn mac(&self) -> &str {
1373 match self.mac.as_ref() {
1374 Some(v) => v,
1375 None => "",
1376 }
1377 }
1378
1379 pub fn clear_mac(&mut self) {
1380 self.mac = ::std::option::Option::None;
1381 }
1382
1383 pub fn has_mac(&self) -> bool {
1384 self.mac.is_some()
1385 }
1386
1387 pub fn set_mac(&mut self, v: ::std::string::String) {
1389 self.mac = ::std::option::Option::Some(v);
1390 }
1391
1392 pub fn mut_mac(&mut self) -> &mut ::std::string::String {
1395 if self.mac.is_none() {
1396 self.mac = ::std::option::Option::Some(::std::string::String::new());
1397 }
1398 self.mac.as_mut().unwrap()
1399 }
1400
1401 pub fn take_mac(&mut self) -> ::std::string::String {
1403 self.mac.take().unwrap_or_else(|| ::std::string::String::new())
1404 }
1405
1406 pub fn name(&self) -> &str {
1409 match self.name.as_ref() {
1410 Some(v) => v,
1411 None => "",
1412 }
1413 }
1414
1415 pub fn clear_name(&mut self) {
1416 self.name = ::std::option::Option::None;
1417 }
1418
1419 pub fn has_name(&self) -> bool {
1420 self.name.is_some()
1421 }
1422
1423 pub fn set_name(&mut self, v: ::std::string::String) {
1425 self.name = ::std::option::Option::Some(v);
1426 }
1427
1428 pub fn mut_name(&mut self) -> &mut ::std::string::String {
1431 if self.name.is_none() {
1432 self.name = ::std::option::Option::Some(::std::string::String::new());
1433 }
1434 self.name.as_mut().unwrap()
1435 }
1436
1437 pub fn take_name(&mut self) -> ::std::string::String {
1439 self.name.take().unwrap_or_else(|| ::std::string::String::new())
1440 }
1441
1442 pub fn is_connected(&self) -> bool {
1445 self.is_connected.unwrap_or(false)
1446 }
1447
1448 pub fn clear_is_connected(&mut self) {
1449 self.is_connected = ::std::option::Option::None;
1450 }
1451
1452 pub fn has_is_connected(&self) -> bool {
1453 self.is_connected.is_some()
1454 }
1455
1456 pub fn set_is_connected(&mut self, v: bool) {
1458 self.is_connected = ::std::option::Option::Some(v);
1459 }
1460
1461 pub fn is_paired(&self) -> bool {
1464 self.is_paired.unwrap_or(false)
1465 }
1466
1467 pub fn clear_is_paired(&mut self) {
1468 self.is_paired = ::std::option::Option::None;
1469 }
1470
1471 pub fn has_is_paired(&self) -> bool {
1472 self.is_paired.is_some()
1473 }
1474
1475 pub fn set_is_paired(&mut self, v: bool) {
1477 self.is_paired = ::std::option::Option::Some(v);
1478 }
1479
1480 pub fn is_pairing(&self) -> bool {
1483 self.is_pairing.unwrap_or(false)
1484 }
1485
1486 pub fn clear_is_pairing(&mut self) {
1487 self.is_pairing = ::std::option::Option::None;
1488 }
1489
1490 pub fn has_is_pairing(&self) -> bool {
1491 self.is_pairing.is_some()
1492 }
1493
1494 pub fn set_is_pairing(&mut self, v: bool) {
1496 self.is_pairing = ::std::option::Option::Some(v);
1497 }
1498
1499 pub fn wake_allowed(&self) -> bool {
1502 self.wake_allowed.unwrap_or(false)
1503 }
1504
1505 pub fn clear_wake_allowed(&mut self) {
1506 self.wake_allowed = ::std::option::Option::None;
1507 }
1508
1509 pub fn has_wake_allowed(&self) -> bool {
1510 self.wake_allowed.is_some()
1511 }
1512
1513 pub fn set_wake_allowed(&mut self, v: bool) {
1515 self.wake_allowed = ::std::option::Option::Some(v);
1516 }
1517
1518 pub fn wake_allowed_supported(&self) -> bool {
1521 self.wake_allowed_supported.unwrap_or(false)
1522 }
1523
1524 pub fn clear_wake_allowed_supported(&mut self) {
1525 self.wake_allowed_supported = ::std::option::Option::None;
1526 }
1527
1528 pub fn has_wake_allowed_supported(&self) -> bool {
1529 self.wake_allowed_supported.is_some()
1530 }
1531
1532 pub fn set_wake_allowed_supported(&mut self, v: bool) {
1534 self.wake_allowed_supported = ::std::option::Option::Some(v);
1535 }
1536
1537 pub fn battery_percent(&self) -> i32 {
1540 self.battery_percent.unwrap_or(0)
1541 }
1542
1543 pub fn clear_battery_percent(&mut self) {
1544 self.battery_percent = ::std::option::Option::None;
1545 }
1546
1547 pub fn has_battery_percent(&self) -> bool {
1548 self.battery_percent.is_some()
1549 }
1550
1551 pub fn set_battery_percent(&mut self, v: i32) {
1553 self.battery_percent = ::std::option::Option::Some(v);
1554 }
1555
1556 pub fn operation_in_progress(&self) -> bool {
1559 self.operation_in_progress.unwrap_or(false)
1560 }
1561
1562 pub fn clear_operation_in_progress(&mut self) {
1563 self.operation_in_progress = ::std::option::Option::None;
1564 }
1565
1566 pub fn has_operation_in_progress(&self) -> bool {
1567 self.operation_in_progress.is_some()
1568 }
1569
1570 pub fn set_operation_in_progress(&mut self, v: bool) {
1572 self.operation_in_progress = ::std::option::Option::Some(v);
1573 }
1574}
1575
1576impl ::steam_vent_proto_common::protobuf::Message for CMsgBluetoothManagerDeviceDetails {
1577 const NAME: &'static str = "CMsgBluetoothManagerDeviceDetails";
1578
1579 fn is_initialized(&self) -> bool {
1580 true
1581 }
1582
1583 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1584 while let Some(tag) = is.read_raw_tag_or_eof()? {
1585 match tag {
1586 8 => {
1587 self.id = ::std::option::Option::Some(is.read_uint32()?);
1588 },
1589 16 => {
1590 self.adapter_id = ::std::option::Option::Some(is.read_uint32()?);
1591 },
1592 24 => {
1593 self.etype = ::std::option::Option::Some(is.read_enum_or_unknown()?);
1594 },
1595 34 => {
1596 self.mac = ::std::option::Option::Some(is.read_string()?);
1597 },
1598 42 => {
1599 self.name = ::std::option::Option::Some(is.read_string()?);
1600 },
1601 48 => {
1602 self.is_connected = ::std::option::Option::Some(is.read_bool()?);
1603 },
1604 56 => {
1605 self.is_paired = ::std::option::Option::Some(is.read_bool()?);
1606 },
1607 64 => {
1608 self.is_pairing = ::std::option::Option::Some(is.read_bool()?);
1609 },
1610 72 => {
1611 self.wake_allowed = ::std::option::Option::Some(is.read_bool()?);
1612 },
1613 80 => {
1614 self.wake_allowed_supported = ::std::option::Option::Some(is.read_bool()?);
1615 },
1616 88 => {
1617 self.battery_percent = ::std::option::Option::Some(is.read_int32()?);
1618 },
1619 96 => {
1620 self.operation_in_progress = ::std::option::Option::Some(is.read_bool()?);
1621 },
1622 tag => {
1623 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1624 },
1625 };
1626 }
1627 ::std::result::Result::Ok(())
1628 }
1629
1630 #[allow(unused_variables)]
1632 fn compute_size(&self) -> u64 {
1633 let mut my_size = 0;
1634 if let Some(v) = self.id {
1635 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
1636 }
1637 if let Some(v) = self.adapter_id {
1638 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
1639 }
1640 if let Some(v) = self.etype {
1641 my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(3, v.value());
1642 }
1643 if let Some(v) = self.mac.as_ref() {
1644 my_size += ::steam_vent_proto_common::protobuf::rt::string_size(4, &v);
1645 }
1646 if let Some(v) = self.name.as_ref() {
1647 my_size += ::steam_vent_proto_common::protobuf::rt::string_size(5, &v);
1648 }
1649 if let Some(v) = self.is_connected {
1650 my_size += 1 + 1;
1651 }
1652 if let Some(v) = self.is_paired {
1653 my_size += 1 + 1;
1654 }
1655 if let Some(v) = self.is_pairing {
1656 my_size += 1 + 1;
1657 }
1658 if let Some(v) = self.wake_allowed {
1659 my_size += 1 + 1;
1660 }
1661 if let Some(v) = self.wake_allowed_supported {
1662 my_size += 1 + 1;
1663 }
1664 if let Some(v) = self.battery_percent {
1665 my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(11, v);
1666 }
1667 if let Some(v) = self.operation_in_progress {
1668 my_size += 1 + 1;
1669 }
1670 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1671 self.special_fields.cached_size().set(my_size as u32);
1672 my_size
1673 }
1674
1675 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1676 if let Some(v) = self.id {
1677 os.write_uint32(1, v)?;
1678 }
1679 if let Some(v) = self.adapter_id {
1680 os.write_uint32(2, v)?;
1681 }
1682 if let Some(v) = self.etype {
1683 os.write_enum(3, ::steam_vent_proto_common::protobuf::EnumOrUnknown::value(&v))?;
1684 }
1685 if let Some(v) = self.mac.as_ref() {
1686 os.write_string(4, v)?;
1687 }
1688 if let Some(v) = self.name.as_ref() {
1689 os.write_string(5, v)?;
1690 }
1691 if let Some(v) = self.is_connected {
1692 os.write_bool(6, v)?;
1693 }
1694 if let Some(v) = self.is_paired {
1695 os.write_bool(7, v)?;
1696 }
1697 if let Some(v) = self.is_pairing {
1698 os.write_bool(8, v)?;
1699 }
1700 if let Some(v) = self.wake_allowed {
1701 os.write_bool(9, v)?;
1702 }
1703 if let Some(v) = self.wake_allowed_supported {
1704 os.write_bool(10, v)?;
1705 }
1706 if let Some(v) = self.battery_percent {
1707 os.write_int32(11, v)?;
1708 }
1709 if let Some(v) = self.operation_in_progress {
1710 os.write_bool(12, v)?;
1711 }
1712 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1713 ::std::result::Result::Ok(())
1714 }
1715
1716 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
1717 &self.special_fields
1718 }
1719
1720 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
1721 &mut self.special_fields
1722 }
1723
1724 fn new() -> CMsgBluetoothManagerDeviceDetails {
1725 CMsgBluetoothManagerDeviceDetails::new()
1726 }
1727
1728 fn clear(&mut self) {
1729 self.id = ::std::option::Option::None;
1730 self.adapter_id = ::std::option::Option::None;
1731 self.etype = ::std::option::Option::None;
1732 self.mac = ::std::option::Option::None;
1733 self.name = ::std::option::Option::None;
1734 self.is_connected = ::std::option::Option::None;
1735 self.is_paired = ::std::option::Option::None;
1736 self.is_pairing = ::std::option::Option::None;
1737 self.wake_allowed = ::std::option::Option::None;
1738 self.wake_allowed_supported = ::std::option::Option::None;
1739 self.battery_percent = ::std::option::Option::None;
1740 self.operation_in_progress = ::std::option::Option::None;
1741 self.special_fields.clear();
1742 }
1743
1744 fn default_instance() -> &'static CMsgBluetoothManagerDeviceDetails {
1745 static instance: CMsgBluetoothManagerDeviceDetails = CMsgBluetoothManagerDeviceDetails {
1746 id: ::std::option::Option::None,
1747 adapter_id: ::std::option::Option::None,
1748 etype: ::std::option::Option::None,
1749 mac: ::std::option::Option::None,
1750 name: ::std::option::Option::None,
1751 is_connected: ::std::option::Option::None,
1752 is_paired: ::std::option::Option::None,
1753 is_pairing: ::std::option::Option::None,
1754 wake_allowed: ::std::option::Option::None,
1755 wake_allowed_supported: ::std::option::Option::None,
1756 battery_percent: ::std::option::Option::None,
1757 operation_in_progress: ::std::option::Option::None,
1758 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
1759 };
1760 &instance
1761 }
1762}
1763
1764#[derive(PartialEq,Clone,Default,Debug)]
1766pub struct CBluetoothManager_GetDeviceDetails_Response {
1767 pub device: ::steam_vent_proto_common::protobuf::MessageField<CMsgBluetoothManagerDeviceDetails>,
1770 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
1773}
1774
1775impl<'a> ::std::default::Default for &'a CBluetoothManager_GetDeviceDetails_Response {
1776 fn default() -> &'a CBluetoothManager_GetDeviceDetails_Response {
1777 <CBluetoothManager_GetDeviceDetails_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
1778 }
1779}
1780
1781impl CBluetoothManager_GetDeviceDetails_Response {
1782 pub fn new() -> CBluetoothManager_GetDeviceDetails_Response {
1783 ::std::default::Default::default()
1784 }
1785}
1786
1787impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_GetDeviceDetails_Response {
1788 const NAME: &'static str = "CBluetoothManager_GetDeviceDetails_Response";
1789
1790 fn is_initialized(&self) -> bool {
1791 true
1792 }
1793
1794 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1795 while let Some(tag) = is.read_raw_tag_or_eof()? {
1796 match tag {
1797 10 => {
1798 ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.device)?;
1799 },
1800 tag => {
1801 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1802 },
1803 };
1804 }
1805 ::std::result::Result::Ok(())
1806 }
1807
1808 #[allow(unused_variables)]
1810 fn compute_size(&self) -> u64 {
1811 let mut my_size = 0;
1812 if let Some(v) = self.device.as_ref() {
1813 let len = v.compute_size();
1814 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
1815 }
1816 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1817 self.special_fields.cached_size().set(my_size as u32);
1818 my_size
1819 }
1820
1821 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1822 if let Some(v) = self.device.as_ref() {
1823 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
1824 }
1825 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1826 ::std::result::Result::Ok(())
1827 }
1828
1829 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
1830 &self.special_fields
1831 }
1832
1833 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
1834 &mut self.special_fields
1835 }
1836
1837 fn new() -> CBluetoothManager_GetDeviceDetails_Response {
1838 CBluetoothManager_GetDeviceDetails_Response::new()
1839 }
1840
1841 fn clear(&mut self) {
1842 self.device.clear();
1843 self.special_fields.clear();
1844 }
1845
1846 fn default_instance() -> &'static CBluetoothManager_GetDeviceDetails_Response {
1847 static instance: CBluetoothManager_GetDeviceDetails_Response = CBluetoothManager_GetDeviceDetails_Response {
1848 device: ::steam_vent_proto_common::protobuf::MessageField::none(),
1849 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
1850 };
1851 &instance
1852 }
1853}
1854
1855#[derive(PartialEq,Clone,Default,Debug)]
1857pub struct CBluetoothManager_StateChanged_Notification {
1858 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
1861}
1862
1863impl<'a> ::std::default::Default for &'a CBluetoothManager_StateChanged_Notification {
1864 fn default() -> &'a CBluetoothManager_StateChanged_Notification {
1865 <CBluetoothManager_StateChanged_Notification as ::steam_vent_proto_common::protobuf::Message>::default_instance()
1866 }
1867}
1868
1869impl CBluetoothManager_StateChanged_Notification {
1870 pub fn new() -> CBluetoothManager_StateChanged_Notification {
1871 ::std::default::Default::default()
1872 }
1873}
1874
1875impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_StateChanged_Notification {
1876 const NAME: &'static str = "CBluetoothManager_StateChanged_Notification";
1877
1878 fn is_initialized(&self) -> bool {
1879 true
1880 }
1881
1882 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1883 while let Some(tag) = is.read_raw_tag_or_eof()? {
1884 match tag {
1885 tag => {
1886 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1887 },
1888 };
1889 }
1890 ::std::result::Result::Ok(())
1891 }
1892
1893 #[allow(unused_variables)]
1895 fn compute_size(&self) -> u64 {
1896 let mut my_size = 0;
1897 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1898 self.special_fields.cached_size().set(my_size as u32);
1899 my_size
1900 }
1901
1902 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1903 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1904 ::std::result::Result::Ok(())
1905 }
1906
1907 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
1908 &self.special_fields
1909 }
1910
1911 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
1912 &mut self.special_fields
1913 }
1914
1915 fn new() -> CBluetoothManager_StateChanged_Notification {
1916 CBluetoothManager_StateChanged_Notification::new()
1917 }
1918
1919 fn clear(&mut self) {
1920 self.special_fields.clear();
1921 }
1922
1923 fn default_instance() -> &'static CBluetoothManager_StateChanged_Notification {
1924 static instance: CBluetoothManager_StateChanged_Notification = CBluetoothManager_StateChanged_Notification {
1925 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
1926 };
1927 &instance
1928 }
1929}
1930
1931#[derive(PartialEq,Clone,Default,Debug)]
1933pub struct CBluetoothManager_SetDiscovering_Request {
1934 pub enabled: ::std::option::Option<bool>,
1937 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
1940}
1941
1942impl<'a> ::std::default::Default for &'a CBluetoothManager_SetDiscovering_Request {
1943 fn default() -> &'a CBluetoothManager_SetDiscovering_Request {
1944 <CBluetoothManager_SetDiscovering_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
1945 }
1946}
1947
1948impl CBluetoothManager_SetDiscovering_Request {
1949 pub fn new() -> CBluetoothManager_SetDiscovering_Request {
1950 ::std::default::Default::default()
1951 }
1952
1953 pub fn enabled(&self) -> bool {
1956 self.enabled.unwrap_or(false)
1957 }
1958
1959 pub fn clear_enabled(&mut self) {
1960 self.enabled = ::std::option::Option::None;
1961 }
1962
1963 pub fn has_enabled(&self) -> bool {
1964 self.enabled.is_some()
1965 }
1966
1967 pub fn set_enabled(&mut self, v: bool) {
1969 self.enabled = ::std::option::Option::Some(v);
1970 }
1971}
1972
1973impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_SetDiscovering_Request {
1974 const NAME: &'static str = "CBluetoothManager_SetDiscovering_Request";
1975
1976 fn is_initialized(&self) -> bool {
1977 true
1978 }
1979
1980 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1981 while let Some(tag) = is.read_raw_tag_or_eof()? {
1982 match tag {
1983 8 => {
1984 self.enabled = ::std::option::Option::Some(is.read_bool()?);
1985 },
1986 tag => {
1987 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1988 },
1989 };
1990 }
1991 ::std::result::Result::Ok(())
1992 }
1993
1994 #[allow(unused_variables)]
1996 fn compute_size(&self) -> u64 {
1997 let mut my_size = 0;
1998 if let Some(v) = self.enabled {
1999 my_size += 1 + 1;
2000 }
2001 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2002 self.special_fields.cached_size().set(my_size as u32);
2003 my_size
2004 }
2005
2006 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2007 if let Some(v) = self.enabled {
2008 os.write_bool(1, v)?;
2009 }
2010 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2011 ::std::result::Result::Ok(())
2012 }
2013
2014 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2015 &self.special_fields
2016 }
2017
2018 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2019 &mut self.special_fields
2020 }
2021
2022 fn new() -> CBluetoothManager_SetDiscovering_Request {
2023 CBluetoothManager_SetDiscovering_Request::new()
2024 }
2025
2026 fn clear(&mut self) {
2027 self.enabled = ::std::option::Option::None;
2028 self.special_fields.clear();
2029 }
2030
2031 fn default_instance() -> &'static CBluetoothManager_SetDiscovering_Request {
2032 static instance: CBluetoothManager_SetDiscovering_Request = CBluetoothManager_SetDiscovering_Request {
2033 enabled: ::std::option::Option::None,
2034 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2035 };
2036 &instance
2037 }
2038}
2039
2040#[derive(PartialEq,Clone,Default,Debug)]
2042pub struct CBluetoothManager_SetDiscovering_Response {
2043 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2046}
2047
2048impl<'a> ::std::default::Default for &'a CBluetoothManager_SetDiscovering_Response {
2049 fn default() -> &'a CBluetoothManager_SetDiscovering_Response {
2050 <CBluetoothManager_SetDiscovering_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2051 }
2052}
2053
2054impl CBluetoothManager_SetDiscovering_Response {
2055 pub fn new() -> CBluetoothManager_SetDiscovering_Response {
2056 ::std::default::Default::default()
2057 }
2058}
2059
2060impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_SetDiscovering_Response {
2061 const NAME: &'static str = "CBluetoothManager_SetDiscovering_Response";
2062
2063 fn is_initialized(&self) -> bool {
2064 true
2065 }
2066
2067 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2068 while let Some(tag) = is.read_raw_tag_or_eof()? {
2069 match tag {
2070 tag => {
2071 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2072 },
2073 };
2074 }
2075 ::std::result::Result::Ok(())
2076 }
2077
2078 #[allow(unused_variables)]
2080 fn compute_size(&self) -> u64 {
2081 let mut my_size = 0;
2082 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2083 self.special_fields.cached_size().set(my_size as u32);
2084 my_size
2085 }
2086
2087 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2088 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2089 ::std::result::Result::Ok(())
2090 }
2091
2092 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2093 &self.special_fields
2094 }
2095
2096 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2097 &mut self.special_fields
2098 }
2099
2100 fn new() -> CBluetoothManager_SetDiscovering_Response {
2101 CBluetoothManager_SetDiscovering_Response::new()
2102 }
2103
2104 fn clear(&mut self) {
2105 self.special_fields.clear();
2106 }
2107
2108 fn default_instance() -> &'static CBluetoothManager_SetDiscovering_Response {
2109 static instance: CBluetoothManager_SetDiscovering_Response = CBluetoothManager_SetDiscovering_Response {
2110 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2111 };
2112 &instance
2113 }
2114}
2115
2116#[derive(PartialEq,Clone,Default,Debug)]
2118pub struct CBluetoothManager_Pair_Request {
2119 pub device: ::std::option::Option<u32>,
2122 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2125}
2126
2127impl<'a> ::std::default::Default for &'a CBluetoothManager_Pair_Request {
2128 fn default() -> &'a CBluetoothManager_Pair_Request {
2129 <CBluetoothManager_Pair_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2130 }
2131}
2132
2133impl CBluetoothManager_Pair_Request {
2134 pub fn new() -> CBluetoothManager_Pair_Request {
2135 ::std::default::Default::default()
2136 }
2137
2138 pub fn device(&self) -> u32 {
2141 self.device.unwrap_or(0)
2142 }
2143
2144 pub fn clear_device(&mut self) {
2145 self.device = ::std::option::Option::None;
2146 }
2147
2148 pub fn has_device(&self) -> bool {
2149 self.device.is_some()
2150 }
2151
2152 pub fn set_device(&mut self, v: u32) {
2154 self.device = ::std::option::Option::Some(v);
2155 }
2156}
2157
2158impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_Pair_Request {
2159 const NAME: &'static str = "CBluetoothManager_Pair_Request";
2160
2161 fn is_initialized(&self) -> bool {
2162 true
2163 }
2164
2165 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2166 while let Some(tag) = is.read_raw_tag_or_eof()? {
2167 match tag {
2168 8 => {
2169 self.device = ::std::option::Option::Some(is.read_uint32()?);
2170 },
2171 tag => {
2172 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2173 },
2174 };
2175 }
2176 ::std::result::Result::Ok(())
2177 }
2178
2179 #[allow(unused_variables)]
2181 fn compute_size(&self) -> u64 {
2182 let mut my_size = 0;
2183 if let Some(v) = self.device {
2184 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
2185 }
2186 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2187 self.special_fields.cached_size().set(my_size as u32);
2188 my_size
2189 }
2190
2191 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2192 if let Some(v) = self.device {
2193 os.write_uint32(1, v)?;
2194 }
2195 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2196 ::std::result::Result::Ok(())
2197 }
2198
2199 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2200 &self.special_fields
2201 }
2202
2203 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2204 &mut self.special_fields
2205 }
2206
2207 fn new() -> CBluetoothManager_Pair_Request {
2208 CBluetoothManager_Pair_Request::new()
2209 }
2210
2211 fn clear(&mut self) {
2212 self.device = ::std::option::Option::None;
2213 self.special_fields.clear();
2214 }
2215
2216 fn default_instance() -> &'static CBluetoothManager_Pair_Request {
2217 static instance: CBluetoothManager_Pair_Request = CBluetoothManager_Pair_Request {
2218 device: ::std::option::Option::None,
2219 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2220 };
2221 &instance
2222 }
2223}
2224
2225#[derive(PartialEq,Clone,Default,Debug)]
2227pub struct CBluetoothManager_Pair_Response {
2228 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2231}
2232
2233impl<'a> ::std::default::Default for &'a CBluetoothManager_Pair_Response {
2234 fn default() -> &'a CBluetoothManager_Pair_Response {
2235 <CBluetoothManager_Pair_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2236 }
2237}
2238
2239impl CBluetoothManager_Pair_Response {
2240 pub fn new() -> CBluetoothManager_Pair_Response {
2241 ::std::default::Default::default()
2242 }
2243}
2244
2245impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_Pair_Response {
2246 const NAME: &'static str = "CBluetoothManager_Pair_Response";
2247
2248 fn is_initialized(&self) -> bool {
2249 true
2250 }
2251
2252 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2253 while let Some(tag) = is.read_raw_tag_or_eof()? {
2254 match tag {
2255 tag => {
2256 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2257 },
2258 };
2259 }
2260 ::std::result::Result::Ok(())
2261 }
2262
2263 #[allow(unused_variables)]
2265 fn compute_size(&self) -> u64 {
2266 let mut my_size = 0;
2267 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2268 self.special_fields.cached_size().set(my_size as u32);
2269 my_size
2270 }
2271
2272 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2273 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2274 ::std::result::Result::Ok(())
2275 }
2276
2277 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2278 &self.special_fields
2279 }
2280
2281 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2282 &mut self.special_fields
2283 }
2284
2285 fn new() -> CBluetoothManager_Pair_Response {
2286 CBluetoothManager_Pair_Response::new()
2287 }
2288
2289 fn clear(&mut self) {
2290 self.special_fields.clear();
2291 }
2292
2293 fn default_instance() -> &'static CBluetoothManager_Pair_Response {
2294 static instance: CBluetoothManager_Pair_Response = CBluetoothManager_Pair_Response {
2295 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2296 };
2297 &instance
2298 }
2299}
2300
2301#[derive(PartialEq,Clone,Default,Debug)]
2303pub struct CBluetoothManager_CancelPair_Request {
2304 pub device: ::std::option::Option<u32>,
2307 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2310}
2311
2312impl<'a> ::std::default::Default for &'a CBluetoothManager_CancelPair_Request {
2313 fn default() -> &'a CBluetoothManager_CancelPair_Request {
2314 <CBluetoothManager_CancelPair_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2315 }
2316}
2317
2318impl CBluetoothManager_CancelPair_Request {
2319 pub fn new() -> CBluetoothManager_CancelPair_Request {
2320 ::std::default::Default::default()
2321 }
2322
2323 pub fn device(&self) -> u32 {
2326 self.device.unwrap_or(0)
2327 }
2328
2329 pub fn clear_device(&mut self) {
2330 self.device = ::std::option::Option::None;
2331 }
2332
2333 pub fn has_device(&self) -> bool {
2334 self.device.is_some()
2335 }
2336
2337 pub fn set_device(&mut self, v: u32) {
2339 self.device = ::std::option::Option::Some(v);
2340 }
2341}
2342
2343impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_CancelPair_Request {
2344 const NAME: &'static str = "CBluetoothManager_CancelPair_Request";
2345
2346 fn is_initialized(&self) -> bool {
2347 true
2348 }
2349
2350 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2351 while let Some(tag) = is.read_raw_tag_or_eof()? {
2352 match tag {
2353 8 => {
2354 self.device = ::std::option::Option::Some(is.read_uint32()?);
2355 },
2356 tag => {
2357 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2358 },
2359 };
2360 }
2361 ::std::result::Result::Ok(())
2362 }
2363
2364 #[allow(unused_variables)]
2366 fn compute_size(&self) -> u64 {
2367 let mut my_size = 0;
2368 if let Some(v) = self.device {
2369 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
2370 }
2371 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2372 self.special_fields.cached_size().set(my_size as u32);
2373 my_size
2374 }
2375
2376 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2377 if let Some(v) = self.device {
2378 os.write_uint32(1, v)?;
2379 }
2380 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2381 ::std::result::Result::Ok(())
2382 }
2383
2384 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2385 &self.special_fields
2386 }
2387
2388 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2389 &mut self.special_fields
2390 }
2391
2392 fn new() -> CBluetoothManager_CancelPair_Request {
2393 CBluetoothManager_CancelPair_Request::new()
2394 }
2395
2396 fn clear(&mut self) {
2397 self.device = ::std::option::Option::None;
2398 self.special_fields.clear();
2399 }
2400
2401 fn default_instance() -> &'static CBluetoothManager_CancelPair_Request {
2402 static instance: CBluetoothManager_CancelPair_Request = CBluetoothManager_CancelPair_Request {
2403 device: ::std::option::Option::None,
2404 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2405 };
2406 &instance
2407 }
2408}
2409
2410#[derive(PartialEq,Clone,Default,Debug)]
2412pub struct CBluetoothManager_CancelPair_Response {
2413 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2416}
2417
2418impl<'a> ::std::default::Default for &'a CBluetoothManager_CancelPair_Response {
2419 fn default() -> &'a CBluetoothManager_CancelPair_Response {
2420 <CBluetoothManager_CancelPair_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2421 }
2422}
2423
2424impl CBluetoothManager_CancelPair_Response {
2425 pub fn new() -> CBluetoothManager_CancelPair_Response {
2426 ::std::default::Default::default()
2427 }
2428}
2429
2430impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_CancelPair_Response {
2431 const NAME: &'static str = "CBluetoothManager_CancelPair_Response";
2432
2433 fn is_initialized(&self) -> bool {
2434 true
2435 }
2436
2437 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2438 while let Some(tag) = is.read_raw_tag_or_eof()? {
2439 match tag {
2440 tag => {
2441 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2442 },
2443 };
2444 }
2445 ::std::result::Result::Ok(())
2446 }
2447
2448 #[allow(unused_variables)]
2450 fn compute_size(&self) -> u64 {
2451 let mut my_size = 0;
2452 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2453 self.special_fields.cached_size().set(my_size as u32);
2454 my_size
2455 }
2456
2457 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2458 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2459 ::std::result::Result::Ok(())
2460 }
2461
2462 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2463 &self.special_fields
2464 }
2465
2466 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2467 &mut self.special_fields
2468 }
2469
2470 fn new() -> CBluetoothManager_CancelPair_Response {
2471 CBluetoothManager_CancelPair_Response::new()
2472 }
2473
2474 fn clear(&mut self) {
2475 self.special_fields.clear();
2476 }
2477
2478 fn default_instance() -> &'static CBluetoothManager_CancelPair_Response {
2479 static instance: CBluetoothManager_CancelPair_Response = CBluetoothManager_CancelPair_Response {
2480 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2481 };
2482 &instance
2483 }
2484}
2485
2486#[derive(PartialEq,Clone,Default,Debug)]
2488pub struct CBluetoothManager_Forget_Request {
2489 pub device: ::std::option::Option<u32>,
2492 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2495}
2496
2497impl<'a> ::std::default::Default for &'a CBluetoothManager_Forget_Request {
2498 fn default() -> &'a CBluetoothManager_Forget_Request {
2499 <CBluetoothManager_Forget_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2500 }
2501}
2502
2503impl CBluetoothManager_Forget_Request {
2504 pub fn new() -> CBluetoothManager_Forget_Request {
2505 ::std::default::Default::default()
2506 }
2507
2508 pub fn device(&self) -> u32 {
2511 self.device.unwrap_or(0)
2512 }
2513
2514 pub fn clear_device(&mut self) {
2515 self.device = ::std::option::Option::None;
2516 }
2517
2518 pub fn has_device(&self) -> bool {
2519 self.device.is_some()
2520 }
2521
2522 pub fn set_device(&mut self, v: u32) {
2524 self.device = ::std::option::Option::Some(v);
2525 }
2526}
2527
2528impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_Forget_Request {
2529 const NAME: &'static str = "CBluetoothManager_Forget_Request";
2530
2531 fn is_initialized(&self) -> bool {
2532 true
2533 }
2534
2535 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2536 while let Some(tag) = is.read_raw_tag_or_eof()? {
2537 match tag {
2538 8 => {
2539 self.device = ::std::option::Option::Some(is.read_uint32()?);
2540 },
2541 tag => {
2542 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2543 },
2544 };
2545 }
2546 ::std::result::Result::Ok(())
2547 }
2548
2549 #[allow(unused_variables)]
2551 fn compute_size(&self) -> u64 {
2552 let mut my_size = 0;
2553 if let Some(v) = self.device {
2554 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
2555 }
2556 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2557 self.special_fields.cached_size().set(my_size as u32);
2558 my_size
2559 }
2560
2561 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2562 if let Some(v) = self.device {
2563 os.write_uint32(1, v)?;
2564 }
2565 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2566 ::std::result::Result::Ok(())
2567 }
2568
2569 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2570 &self.special_fields
2571 }
2572
2573 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2574 &mut self.special_fields
2575 }
2576
2577 fn new() -> CBluetoothManager_Forget_Request {
2578 CBluetoothManager_Forget_Request::new()
2579 }
2580
2581 fn clear(&mut self) {
2582 self.device = ::std::option::Option::None;
2583 self.special_fields.clear();
2584 }
2585
2586 fn default_instance() -> &'static CBluetoothManager_Forget_Request {
2587 static instance: CBluetoothManager_Forget_Request = CBluetoothManager_Forget_Request {
2588 device: ::std::option::Option::None,
2589 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2590 };
2591 &instance
2592 }
2593}
2594
2595#[derive(PartialEq,Clone,Default,Debug)]
2597pub struct CBluetoothManager_Forget_Response {
2598 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2601}
2602
2603impl<'a> ::std::default::Default for &'a CBluetoothManager_Forget_Response {
2604 fn default() -> &'a CBluetoothManager_Forget_Response {
2605 <CBluetoothManager_Forget_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2606 }
2607}
2608
2609impl CBluetoothManager_Forget_Response {
2610 pub fn new() -> CBluetoothManager_Forget_Response {
2611 ::std::default::Default::default()
2612 }
2613}
2614
2615impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_Forget_Response {
2616 const NAME: &'static str = "CBluetoothManager_Forget_Response";
2617
2618 fn is_initialized(&self) -> bool {
2619 true
2620 }
2621
2622 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2623 while let Some(tag) = is.read_raw_tag_or_eof()? {
2624 match tag {
2625 tag => {
2626 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2627 },
2628 };
2629 }
2630 ::std::result::Result::Ok(())
2631 }
2632
2633 #[allow(unused_variables)]
2635 fn compute_size(&self) -> u64 {
2636 let mut my_size = 0;
2637 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2638 self.special_fields.cached_size().set(my_size as u32);
2639 my_size
2640 }
2641
2642 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2643 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2644 ::std::result::Result::Ok(())
2645 }
2646
2647 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2648 &self.special_fields
2649 }
2650
2651 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2652 &mut self.special_fields
2653 }
2654
2655 fn new() -> CBluetoothManager_Forget_Response {
2656 CBluetoothManager_Forget_Response::new()
2657 }
2658
2659 fn clear(&mut self) {
2660 self.special_fields.clear();
2661 }
2662
2663 fn default_instance() -> &'static CBluetoothManager_Forget_Response {
2664 static instance: CBluetoothManager_Forget_Response = CBluetoothManager_Forget_Response {
2665 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2666 };
2667 &instance
2668 }
2669}
2670
2671#[derive(PartialEq,Clone,Default,Debug)]
2673pub struct CBluetoothManager_Connect_Request {
2674 pub device: ::std::option::Option<u32>,
2677 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2680}
2681
2682impl<'a> ::std::default::Default for &'a CBluetoothManager_Connect_Request {
2683 fn default() -> &'a CBluetoothManager_Connect_Request {
2684 <CBluetoothManager_Connect_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2685 }
2686}
2687
2688impl CBluetoothManager_Connect_Request {
2689 pub fn new() -> CBluetoothManager_Connect_Request {
2690 ::std::default::Default::default()
2691 }
2692
2693 pub fn device(&self) -> u32 {
2696 self.device.unwrap_or(0)
2697 }
2698
2699 pub fn clear_device(&mut self) {
2700 self.device = ::std::option::Option::None;
2701 }
2702
2703 pub fn has_device(&self) -> bool {
2704 self.device.is_some()
2705 }
2706
2707 pub fn set_device(&mut self, v: u32) {
2709 self.device = ::std::option::Option::Some(v);
2710 }
2711}
2712
2713impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_Connect_Request {
2714 const NAME: &'static str = "CBluetoothManager_Connect_Request";
2715
2716 fn is_initialized(&self) -> bool {
2717 true
2718 }
2719
2720 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2721 while let Some(tag) = is.read_raw_tag_or_eof()? {
2722 match tag {
2723 8 => {
2724 self.device = ::std::option::Option::Some(is.read_uint32()?);
2725 },
2726 tag => {
2727 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2728 },
2729 };
2730 }
2731 ::std::result::Result::Ok(())
2732 }
2733
2734 #[allow(unused_variables)]
2736 fn compute_size(&self) -> u64 {
2737 let mut my_size = 0;
2738 if let Some(v) = self.device {
2739 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
2740 }
2741 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2742 self.special_fields.cached_size().set(my_size as u32);
2743 my_size
2744 }
2745
2746 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2747 if let Some(v) = self.device {
2748 os.write_uint32(1, v)?;
2749 }
2750 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2751 ::std::result::Result::Ok(())
2752 }
2753
2754 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2755 &self.special_fields
2756 }
2757
2758 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2759 &mut self.special_fields
2760 }
2761
2762 fn new() -> CBluetoothManager_Connect_Request {
2763 CBluetoothManager_Connect_Request::new()
2764 }
2765
2766 fn clear(&mut self) {
2767 self.device = ::std::option::Option::None;
2768 self.special_fields.clear();
2769 }
2770
2771 fn default_instance() -> &'static CBluetoothManager_Connect_Request {
2772 static instance: CBluetoothManager_Connect_Request = CBluetoothManager_Connect_Request {
2773 device: ::std::option::Option::None,
2774 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2775 };
2776 &instance
2777 }
2778}
2779
2780#[derive(PartialEq,Clone,Default,Debug)]
2782pub struct CBluetoothManager_Connect_Response {
2783 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2786}
2787
2788impl<'a> ::std::default::Default for &'a CBluetoothManager_Connect_Response {
2789 fn default() -> &'a CBluetoothManager_Connect_Response {
2790 <CBluetoothManager_Connect_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2791 }
2792}
2793
2794impl CBluetoothManager_Connect_Response {
2795 pub fn new() -> CBluetoothManager_Connect_Response {
2796 ::std::default::Default::default()
2797 }
2798}
2799
2800impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_Connect_Response {
2801 const NAME: &'static str = "CBluetoothManager_Connect_Response";
2802
2803 fn is_initialized(&self) -> bool {
2804 true
2805 }
2806
2807 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2808 while let Some(tag) = is.read_raw_tag_or_eof()? {
2809 match tag {
2810 tag => {
2811 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2812 },
2813 };
2814 }
2815 ::std::result::Result::Ok(())
2816 }
2817
2818 #[allow(unused_variables)]
2820 fn compute_size(&self) -> u64 {
2821 let mut my_size = 0;
2822 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2823 self.special_fields.cached_size().set(my_size as u32);
2824 my_size
2825 }
2826
2827 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2828 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2829 ::std::result::Result::Ok(())
2830 }
2831
2832 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2833 &self.special_fields
2834 }
2835
2836 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2837 &mut self.special_fields
2838 }
2839
2840 fn new() -> CBluetoothManager_Connect_Response {
2841 CBluetoothManager_Connect_Response::new()
2842 }
2843
2844 fn clear(&mut self) {
2845 self.special_fields.clear();
2846 }
2847
2848 fn default_instance() -> &'static CBluetoothManager_Connect_Response {
2849 static instance: CBluetoothManager_Connect_Response = CBluetoothManager_Connect_Response {
2850 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2851 };
2852 &instance
2853 }
2854}
2855
2856#[derive(PartialEq,Clone,Default,Debug)]
2858pub struct CBluetoothManager_Disconnect_Request {
2859 pub device: ::std::option::Option<u32>,
2862 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2865}
2866
2867impl<'a> ::std::default::Default for &'a CBluetoothManager_Disconnect_Request {
2868 fn default() -> &'a CBluetoothManager_Disconnect_Request {
2869 <CBluetoothManager_Disconnect_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2870 }
2871}
2872
2873impl CBluetoothManager_Disconnect_Request {
2874 pub fn new() -> CBluetoothManager_Disconnect_Request {
2875 ::std::default::Default::default()
2876 }
2877
2878 pub fn device(&self) -> u32 {
2881 self.device.unwrap_or(0)
2882 }
2883
2884 pub fn clear_device(&mut self) {
2885 self.device = ::std::option::Option::None;
2886 }
2887
2888 pub fn has_device(&self) -> bool {
2889 self.device.is_some()
2890 }
2891
2892 pub fn set_device(&mut self, v: u32) {
2894 self.device = ::std::option::Option::Some(v);
2895 }
2896}
2897
2898impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_Disconnect_Request {
2899 const NAME: &'static str = "CBluetoothManager_Disconnect_Request";
2900
2901 fn is_initialized(&self) -> bool {
2902 true
2903 }
2904
2905 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2906 while let Some(tag) = is.read_raw_tag_or_eof()? {
2907 match tag {
2908 8 => {
2909 self.device = ::std::option::Option::Some(is.read_uint32()?);
2910 },
2911 tag => {
2912 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2913 },
2914 };
2915 }
2916 ::std::result::Result::Ok(())
2917 }
2918
2919 #[allow(unused_variables)]
2921 fn compute_size(&self) -> u64 {
2922 let mut my_size = 0;
2923 if let Some(v) = self.device {
2924 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
2925 }
2926 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2927 self.special_fields.cached_size().set(my_size as u32);
2928 my_size
2929 }
2930
2931 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2932 if let Some(v) = self.device {
2933 os.write_uint32(1, v)?;
2934 }
2935 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2936 ::std::result::Result::Ok(())
2937 }
2938
2939 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
2940 &self.special_fields
2941 }
2942
2943 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
2944 &mut self.special_fields
2945 }
2946
2947 fn new() -> CBluetoothManager_Disconnect_Request {
2948 CBluetoothManager_Disconnect_Request::new()
2949 }
2950
2951 fn clear(&mut self) {
2952 self.device = ::std::option::Option::None;
2953 self.special_fields.clear();
2954 }
2955
2956 fn default_instance() -> &'static CBluetoothManager_Disconnect_Request {
2957 static instance: CBluetoothManager_Disconnect_Request = CBluetoothManager_Disconnect_Request {
2958 device: ::std::option::Option::None,
2959 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
2960 };
2961 &instance
2962 }
2963}
2964
2965#[derive(PartialEq,Clone,Default,Debug)]
2967pub struct CBluetoothManager_Disconnect_Response {
2968 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
2971}
2972
2973impl<'a> ::std::default::Default for &'a CBluetoothManager_Disconnect_Response {
2974 fn default() -> &'a CBluetoothManager_Disconnect_Response {
2975 <CBluetoothManager_Disconnect_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
2976 }
2977}
2978
2979impl CBluetoothManager_Disconnect_Response {
2980 pub fn new() -> CBluetoothManager_Disconnect_Response {
2981 ::std::default::Default::default()
2982 }
2983}
2984
2985impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_Disconnect_Response {
2986 const NAME: &'static str = "CBluetoothManager_Disconnect_Response";
2987
2988 fn is_initialized(&self) -> bool {
2989 true
2990 }
2991
2992 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
2993 while let Some(tag) = is.read_raw_tag_or_eof()? {
2994 match tag {
2995 tag => {
2996 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2997 },
2998 };
2999 }
3000 ::std::result::Result::Ok(())
3001 }
3002
3003 #[allow(unused_variables)]
3005 fn compute_size(&self) -> u64 {
3006 let mut my_size = 0;
3007 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
3008 self.special_fields.cached_size().set(my_size as u32);
3009 my_size
3010 }
3011
3012 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
3013 os.write_unknown_fields(self.special_fields.unknown_fields())?;
3014 ::std::result::Result::Ok(())
3015 }
3016
3017 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
3018 &self.special_fields
3019 }
3020
3021 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
3022 &mut self.special_fields
3023 }
3024
3025 fn new() -> CBluetoothManager_Disconnect_Response {
3026 CBluetoothManager_Disconnect_Response::new()
3027 }
3028
3029 fn clear(&mut self) {
3030 self.special_fields.clear();
3031 }
3032
3033 fn default_instance() -> &'static CBluetoothManager_Disconnect_Response {
3034 static instance: CBluetoothManager_Disconnect_Response = CBluetoothManager_Disconnect_Response {
3035 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
3036 };
3037 &instance
3038 }
3039}
3040
3041#[derive(PartialEq,Clone,Default,Debug)]
3043pub struct CBluetoothManager_SetWakeAllowed_Request {
3044 pub device: ::std::option::Option<u32>,
3047 pub allowed: ::std::option::Option<bool>,
3049 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
3052}
3053
3054impl<'a> ::std::default::Default for &'a CBluetoothManager_SetWakeAllowed_Request {
3055 fn default() -> &'a CBluetoothManager_SetWakeAllowed_Request {
3056 <CBluetoothManager_SetWakeAllowed_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
3057 }
3058}
3059
3060impl CBluetoothManager_SetWakeAllowed_Request {
3061 pub fn new() -> CBluetoothManager_SetWakeAllowed_Request {
3062 ::std::default::Default::default()
3063 }
3064
3065 pub fn device(&self) -> u32 {
3068 self.device.unwrap_or(0)
3069 }
3070
3071 pub fn clear_device(&mut self) {
3072 self.device = ::std::option::Option::None;
3073 }
3074
3075 pub fn has_device(&self) -> bool {
3076 self.device.is_some()
3077 }
3078
3079 pub fn set_device(&mut self, v: u32) {
3081 self.device = ::std::option::Option::Some(v);
3082 }
3083
3084 pub fn allowed(&self) -> bool {
3087 self.allowed.unwrap_or(false)
3088 }
3089
3090 pub fn clear_allowed(&mut self) {
3091 self.allowed = ::std::option::Option::None;
3092 }
3093
3094 pub fn has_allowed(&self) -> bool {
3095 self.allowed.is_some()
3096 }
3097
3098 pub fn set_allowed(&mut self, v: bool) {
3100 self.allowed = ::std::option::Option::Some(v);
3101 }
3102}
3103
3104impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_SetWakeAllowed_Request {
3105 const NAME: &'static str = "CBluetoothManager_SetWakeAllowed_Request";
3106
3107 fn is_initialized(&self) -> bool {
3108 true
3109 }
3110
3111 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
3112 while let Some(tag) = is.read_raw_tag_or_eof()? {
3113 match tag {
3114 8 => {
3115 self.device = ::std::option::Option::Some(is.read_uint32()?);
3116 },
3117 16 => {
3118 self.allowed = ::std::option::Option::Some(is.read_bool()?);
3119 },
3120 tag => {
3121 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
3122 },
3123 };
3124 }
3125 ::std::result::Result::Ok(())
3126 }
3127
3128 #[allow(unused_variables)]
3130 fn compute_size(&self) -> u64 {
3131 let mut my_size = 0;
3132 if let Some(v) = self.device {
3133 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
3134 }
3135 if let Some(v) = self.allowed {
3136 my_size += 1 + 1;
3137 }
3138 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
3139 self.special_fields.cached_size().set(my_size as u32);
3140 my_size
3141 }
3142
3143 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
3144 if let Some(v) = self.device {
3145 os.write_uint32(1, v)?;
3146 }
3147 if let Some(v) = self.allowed {
3148 os.write_bool(2, v)?;
3149 }
3150 os.write_unknown_fields(self.special_fields.unknown_fields())?;
3151 ::std::result::Result::Ok(())
3152 }
3153
3154 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
3155 &self.special_fields
3156 }
3157
3158 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
3159 &mut self.special_fields
3160 }
3161
3162 fn new() -> CBluetoothManager_SetWakeAllowed_Request {
3163 CBluetoothManager_SetWakeAllowed_Request::new()
3164 }
3165
3166 fn clear(&mut self) {
3167 self.device = ::std::option::Option::None;
3168 self.allowed = ::std::option::Option::None;
3169 self.special_fields.clear();
3170 }
3171
3172 fn default_instance() -> &'static CBluetoothManager_SetWakeAllowed_Request {
3173 static instance: CBluetoothManager_SetWakeAllowed_Request = CBluetoothManager_SetWakeAllowed_Request {
3174 device: ::std::option::Option::None,
3175 allowed: ::std::option::Option::None,
3176 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
3177 };
3178 &instance
3179 }
3180}
3181
3182#[derive(PartialEq,Clone,Default,Debug)]
3184pub struct CBluetoothManager_SetWakeAllowed_Response {
3185 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
3188}
3189
3190impl<'a> ::std::default::Default for &'a CBluetoothManager_SetWakeAllowed_Response {
3191 fn default() -> &'a CBluetoothManager_SetWakeAllowed_Response {
3192 <CBluetoothManager_SetWakeAllowed_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
3193 }
3194}
3195
3196impl CBluetoothManager_SetWakeAllowed_Response {
3197 pub fn new() -> CBluetoothManager_SetWakeAllowed_Response {
3198 ::std::default::Default::default()
3199 }
3200}
3201
3202impl ::steam_vent_proto_common::protobuf::Message for CBluetoothManager_SetWakeAllowed_Response {
3203 const NAME: &'static str = "CBluetoothManager_SetWakeAllowed_Response";
3204
3205 fn is_initialized(&self) -> bool {
3206 true
3207 }
3208
3209 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
3210 while let Some(tag) = is.read_raw_tag_or_eof()? {
3211 match tag {
3212 tag => {
3213 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
3214 },
3215 };
3216 }
3217 ::std::result::Result::Ok(())
3218 }
3219
3220 #[allow(unused_variables)]
3222 fn compute_size(&self) -> u64 {
3223 let mut my_size = 0;
3224 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
3225 self.special_fields.cached_size().set(my_size as u32);
3226 my_size
3227 }
3228
3229 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
3230 os.write_unknown_fields(self.special_fields.unknown_fields())?;
3231 ::std::result::Result::Ok(())
3232 }
3233
3234 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
3235 &self.special_fields
3236 }
3237
3238 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
3239 &mut self.special_fields
3240 }
3241
3242 fn new() -> CBluetoothManager_SetWakeAllowed_Response {
3243 CBluetoothManager_SetWakeAllowed_Response::new()
3244 }
3245
3246 fn clear(&mut self) {
3247 self.special_fields.clear();
3248 }
3249
3250 fn default_instance() -> &'static CBluetoothManager_SetWakeAllowed_Response {
3251 static instance: CBluetoothManager_SetWakeAllowed_Response = CBluetoothManager_SetWakeAllowed_Response {
3252 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
3253 };
3254 &instance
3255 }
3256}
3257
3258
3259const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
3260
3261#[allow(unused_imports)]
3262use crate::enums::*;
3263#[allow(unused_imports)]
3264use crate::steammessages_base::*;
3265#[allow(unused_imports)]
3266use crate::webuimessages_base::*;
3267impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_GetState_Request {
3268 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3269 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3270 }
3271 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3272 use ::steam_vent_proto_common::protobuf::Message;
3273 self.write_to_writer(writer)
3274 }
3275 fn encode_size(&self) -> usize {
3276 use ::steam_vent_proto_common::protobuf::Message;
3277 self.compute_size() as usize
3278 }
3279}
3280impl ::steam_vent_proto_common::RpcMessage for CMsgBluetoothManagerAdapterInfo {
3281 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3282 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3283 }
3284 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3285 use ::steam_vent_proto_common::protobuf::Message;
3286 self.write_to_writer(writer)
3287 }
3288 fn encode_size(&self) -> usize {
3289 use ::steam_vent_proto_common::protobuf::Message;
3290 self.compute_size() as usize
3291 }
3292}
3293impl ::steam_vent_proto_common::RpcMessage for CMsgBluetoothManagerDeviceInfo {
3294 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3295 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3296 }
3297 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3298 use ::steam_vent_proto_common::protobuf::Message;
3299 self.write_to_writer(writer)
3300 }
3301 fn encode_size(&self) -> usize {
3302 use ::steam_vent_proto_common::protobuf::Message;
3303 self.compute_size() as usize
3304 }
3305}
3306impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_GetState_Response {
3307 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3308 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3309 }
3310 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3311 use ::steam_vent_proto_common::protobuf::Message;
3312 self.write_to_writer(writer)
3313 }
3314 fn encode_size(&self) -> usize {
3315 use ::steam_vent_proto_common::protobuf::Message;
3316 self.compute_size() as usize
3317 }
3318}
3319impl ::steam_vent_proto_common::RpcMessage
3320for CBluetoothManager_GetAdapterDetails_Request {
3321 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3322 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3323 }
3324 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3325 use ::steam_vent_proto_common::protobuf::Message;
3326 self.write_to_writer(writer)
3327 }
3328 fn encode_size(&self) -> usize {
3329 use ::steam_vent_proto_common::protobuf::Message;
3330 self.compute_size() as usize
3331 }
3332}
3333impl ::steam_vent_proto_common::RpcMessage for CMsgBluetoothManagerAdapterDetails {
3334 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3335 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3336 }
3337 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3338 use ::steam_vent_proto_common::protobuf::Message;
3339 self.write_to_writer(writer)
3340 }
3341 fn encode_size(&self) -> usize {
3342 use ::steam_vent_proto_common::protobuf::Message;
3343 self.compute_size() as usize
3344 }
3345}
3346impl ::steam_vent_proto_common::RpcMessage
3347for CBluetoothManager_GetAdapterDetails_Response {
3348 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3349 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3350 }
3351 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3352 use ::steam_vent_proto_common::protobuf::Message;
3353 self.write_to_writer(writer)
3354 }
3355 fn encode_size(&self) -> usize {
3356 use ::steam_vent_proto_common::protobuf::Message;
3357 self.compute_size() as usize
3358 }
3359}
3360impl ::steam_vent_proto_common::RpcMessage
3361for CBluetoothManager_GetDeviceDetails_Request {
3362 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3363 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3364 }
3365 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3366 use ::steam_vent_proto_common::protobuf::Message;
3367 self.write_to_writer(writer)
3368 }
3369 fn encode_size(&self) -> usize {
3370 use ::steam_vent_proto_common::protobuf::Message;
3371 self.compute_size() as usize
3372 }
3373}
3374impl ::steam_vent_proto_common::RpcMessage for CMsgBluetoothManagerDeviceDetails {
3375 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3376 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3377 }
3378 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3379 use ::steam_vent_proto_common::protobuf::Message;
3380 self.write_to_writer(writer)
3381 }
3382 fn encode_size(&self) -> usize {
3383 use ::steam_vent_proto_common::protobuf::Message;
3384 self.compute_size() as usize
3385 }
3386}
3387impl ::steam_vent_proto_common::RpcMessage
3388for CBluetoothManager_GetDeviceDetails_Response {
3389 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3390 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3391 }
3392 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3393 use ::steam_vent_proto_common::protobuf::Message;
3394 self.write_to_writer(writer)
3395 }
3396 fn encode_size(&self) -> usize {
3397 use ::steam_vent_proto_common::protobuf::Message;
3398 self.compute_size() as usize
3399 }
3400}
3401impl ::steam_vent_proto_common::RpcMessage
3402for CBluetoothManager_StateChanged_Notification {
3403 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3404 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3405 }
3406 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3407 use ::steam_vent_proto_common::protobuf::Message;
3408 self.write_to_writer(writer)
3409 }
3410 fn encode_size(&self) -> usize {
3411 use ::steam_vent_proto_common::protobuf::Message;
3412 self.compute_size() as usize
3413 }
3414}
3415impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_SetDiscovering_Request {
3416 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3417 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3418 }
3419 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3420 use ::steam_vent_proto_common::protobuf::Message;
3421 self.write_to_writer(writer)
3422 }
3423 fn encode_size(&self) -> usize {
3424 use ::steam_vent_proto_common::protobuf::Message;
3425 self.compute_size() as usize
3426 }
3427}
3428impl ::steam_vent_proto_common::RpcMessage
3429for CBluetoothManager_SetDiscovering_Response {
3430 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3431 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3432 }
3433 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3434 use ::steam_vent_proto_common::protobuf::Message;
3435 self.write_to_writer(writer)
3436 }
3437 fn encode_size(&self) -> usize {
3438 use ::steam_vent_proto_common::protobuf::Message;
3439 self.compute_size() as usize
3440 }
3441}
3442impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_Pair_Request {
3443 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3444 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3445 }
3446 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3447 use ::steam_vent_proto_common::protobuf::Message;
3448 self.write_to_writer(writer)
3449 }
3450 fn encode_size(&self) -> usize {
3451 use ::steam_vent_proto_common::protobuf::Message;
3452 self.compute_size() as usize
3453 }
3454}
3455impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_Pair_Response {
3456 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3457 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3458 }
3459 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3460 use ::steam_vent_proto_common::protobuf::Message;
3461 self.write_to_writer(writer)
3462 }
3463 fn encode_size(&self) -> usize {
3464 use ::steam_vent_proto_common::protobuf::Message;
3465 self.compute_size() as usize
3466 }
3467}
3468impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_CancelPair_Request {
3469 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3470 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3471 }
3472 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3473 use ::steam_vent_proto_common::protobuf::Message;
3474 self.write_to_writer(writer)
3475 }
3476 fn encode_size(&self) -> usize {
3477 use ::steam_vent_proto_common::protobuf::Message;
3478 self.compute_size() as usize
3479 }
3480}
3481impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_CancelPair_Response {
3482 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3483 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3484 }
3485 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3486 use ::steam_vent_proto_common::protobuf::Message;
3487 self.write_to_writer(writer)
3488 }
3489 fn encode_size(&self) -> usize {
3490 use ::steam_vent_proto_common::protobuf::Message;
3491 self.compute_size() as usize
3492 }
3493}
3494impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_Forget_Request {
3495 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3496 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3497 }
3498 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3499 use ::steam_vent_proto_common::protobuf::Message;
3500 self.write_to_writer(writer)
3501 }
3502 fn encode_size(&self) -> usize {
3503 use ::steam_vent_proto_common::protobuf::Message;
3504 self.compute_size() as usize
3505 }
3506}
3507impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_Forget_Response {
3508 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3509 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3510 }
3511 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3512 use ::steam_vent_proto_common::protobuf::Message;
3513 self.write_to_writer(writer)
3514 }
3515 fn encode_size(&self) -> usize {
3516 use ::steam_vent_proto_common::protobuf::Message;
3517 self.compute_size() as usize
3518 }
3519}
3520impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_Connect_Request {
3521 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3522 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3523 }
3524 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3525 use ::steam_vent_proto_common::protobuf::Message;
3526 self.write_to_writer(writer)
3527 }
3528 fn encode_size(&self) -> usize {
3529 use ::steam_vent_proto_common::protobuf::Message;
3530 self.compute_size() as usize
3531 }
3532}
3533impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_Connect_Response {
3534 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3535 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3536 }
3537 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3538 use ::steam_vent_proto_common::protobuf::Message;
3539 self.write_to_writer(writer)
3540 }
3541 fn encode_size(&self) -> usize {
3542 use ::steam_vent_proto_common::protobuf::Message;
3543 self.compute_size() as usize
3544 }
3545}
3546impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_Disconnect_Request {
3547 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3548 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3549 }
3550 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3551 use ::steam_vent_proto_common::protobuf::Message;
3552 self.write_to_writer(writer)
3553 }
3554 fn encode_size(&self) -> usize {
3555 use ::steam_vent_proto_common::protobuf::Message;
3556 self.compute_size() as usize
3557 }
3558}
3559impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_Disconnect_Response {
3560 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3561 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3562 }
3563 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3564 use ::steam_vent_proto_common::protobuf::Message;
3565 self.write_to_writer(writer)
3566 }
3567 fn encode_size(&self) -> usize {
3568 use ::steam_vent_proto_common::protobuf::Message;
3569 self.compute_size() as usize
3570 }
3571}
3572impl ::steam_vent_proto_common::RpcMessage for CBluetoothManager_SetWakeAllowed_Request {
3573 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3574 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3575 }
3576 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3577 use ::steam_vent_proto_common::protobuf::Message;
3578 self.write_to_writer(writer)
3579 }
3580 fn encode_size(&self) -> usize {
3581 use ::steam_vent_proto_common::protobuf::Message;
3582 self.compute_size() as usize
3583 }
3584}
3585impl ::steam_vent_proto_common::RpcMessage
3586for CBluetoothManager_SetWakeAllowed_Response {
3587 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
3588 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
3589 }
3590 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
3591 use ::steam_vent_proto_common::protobuf::Message;
3592 self.write_to_writer(writer)
3593 }
3594 fn encode_size(&self) -> usize {
3595 use ::steam_vent_proto_common::protobuf::Message;
3596 self.compute_size() as usize
3597 }
3598}
3599struct BluetoothManager {}
3601impl ::steam_vent_proto_common::RpcService for BluetoothManager {
3602 const SERVICE_NAME: &'static str = "BluetoothManager";
3603}
3604impl ::steam_vent_proto_common::RpcMethod for CBluetoothManager_CancelPair_Request {
3605 const METHOD_NAME: &'static str = "BluetoothManager.CancelPair#1";
3606 type Response = CBluetoothManager_CancelPair_Response;
3607}
3608impl ::steam_vent_proto_common::RpcMethod for CBluetoothManager_Connect_Request {
3609 const METHOD_NAME: &'static str = "BluetoothManager.Connect#1";
3610 type Response = CBluetoothManager_Connect_Response;
3611}
3612impl ::steam_vent_proto_common::RpcMethod for CBluetoothManager_Disconnect_Request {
3613 const METHOD_NAME: &'static str = "BluetoothManager.Disconnect#1";
3614 type Response = CBluetoothManager_Disconnect_Response;
3615}
3616impl ::steam_vent_proto_common::RpcMethod for CBluetoothManager_Forget_Request {
3617 const METHOD_NAME: &'static str = "BluetoothManager.Forget#1";
3618 type Response = CBluetoothManager_Forget_Response;
3619}
3620impl ::steam_vent_proto_common::RpcMethod
3621for CBluetoothManager_GetAdapterDetails_Request {
3622 const METHOD_NAME: &'static str = "BluetoothManager.GetAdapterDetails#1";
3623 type Response = CBluetoothManager_GetAdapterDetails_Response;
3624}
3625impl ::steam_vent_proto_common::RpcMethod
3626for CBluetoothManager_GetDeviceDetails_Request {
3627 const METHOD_NAME: &'static str = "BluetoothManager.GetDeviceDetails#1";
3628 type Response = CBluetoothManager_GetDeviceDetails_Response;
3629}
3630impl ::steam_vent_proto_common::RpcMethod for CBluetoothManager_GetState_Request {
3631 const METHOD_NAME: &'static str = "BluetoothManager.GetState#1";
3632 type Response = CBluetoothManager_GetState_Response;
3633}
3634impl ::steam_vent_proto_common::RpcMethod for CBluetoothManager_Pair_Request {
3635 const METHOD_NAME: &'static str = "BluetoothManager.Pair#1";
3636 type Response = CBluetoothManager_Pair_Response;
3637}
3638impl ::steam_vent_proto_common::RpcMethod for CBluetoothManager_SetDiscovering_Request {
3639 const METHOD_NAME: &'static str = "BluetoothManager.SetDiscovering#1";
3640 type Response = CBluetoothManager_SetDiscovering_Response;
3641}
3642impl ::steam_vent_proto_common::RpcMethod for CBluetoothManager_SetWakeAllowed_Request {
3643 const METHOD_NAME: &'static str = "BluetoothManager.SetWakeAllowed#1";
3644 type Response = CBluetoothManager_SetWakeAllowed_Response;
3645}
3646impl ::steam_vent_proto_common::RpcMethod
3647for CBluetoothManager_StateChanged_Notification {
3648 const METHOD_NAME: &'static str = "BluetoothManager.NotifyStateChanged#1";
3649 type Response = WebUINoResponse;
3650}