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 SteamNotificationData {
31 pub notification_id: ::std::option::Option<u64>,
34 pub notification_targets: ::std::option::Option<u32>,
36 pub notification_type: ::std::option::Option<::steam_vent_proto_common::protobuf::EnumOrUnknown<ESteamNotificationType>>,
38 pub body_data: ::std::option::Option<::std::string::String>,
40 pub read: ::std::option::Option<bool>,
42 pub timestamp: ::std::option::Option<u32>,
44 pub hidden: ::std::option::Option<bool>,
46 pub expiry: ::std::option::Option<u32>,
48 pub viewed: ::std::option::Option<u32>,
50 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
53}
54
55impl<'a> ::std::default::Default for &'a SteamNotificationData {
56 fn default() -> &'a SteamNotificationData {
57 <SteamNotificationData as ::steam_vent_proto_common::protobuf::Message>::default_instance()
58 }
59}
60
61impl SteamNotificationData {
62 pub fn new() -> SteamNotificationData {
63 ::std::default::Default::default()
64 }
65
66 pub fn notification_id(&self) -> u64 {
69 self.notification_id.unwrap_or(0)
70 }
71
72 pub fn clear_notification_id(&mut self) {
73 self.notification_id = ::std::option::Option::None;
74 }
75
76 pub fn has_notification_id(&self) -> bool {
77 self.notification_id.is_some()
78 }
79
80 pub fn set_notification_id(&mut self, v: u64) {
82 self.notification_id = ::std::option::Option::Some(v);
83 }
84
85 pub fn notification_targets(&self) -> u32 {
88 self.notification_targets.unwrap_or(0)
89 }
90
91 pub fn clear_notification_targets(&mut self) {
92 self.notification_targets = ::std::option::Option::None;
93 }
94
95 pub fn has_notification_targets(&self) -> bool {
96 self.notification_targets.is_some()
97 }
98
99 pub fn set_notification_targets(&mut self, v: u32) {
101 self.notification_targets = ::std::option::Option::Some(v);
102 }
103
104 pub fn notification_type(&self) -> ESteamNotificationType {
107 match self.notification_type {
108 Some(e) => e.enum_value_or(ESteamNotificationType::k_ESteamNotificationType_Invalid),
109 None => ESteamNotificationType::k_ESteamNotificationType_Invalid,
110 }
111 }
112
113 pub fn clear_notification_type(&mut self) {
114 self.notification_type = ::std::option::Option::None;
115 }
116
117 pub fn has_notification_type(&self) -> bool {
118 self.notification_type.is_some()
119 }
120
121 pub fn set_notification_type(&mut self, v: ESteamNotificationType) {
123 self.notification_type = ::std::option::Option::Some(::steam_vent_proto_common::protobuf::EnumOrUnknown::new(v));
124 }
125
126 pub fn body_data(&self) -> &str {
129 match self.body_data.as_ref() {
130 Some(v) => v,
131 None => "",
132 }
133 }
134
135 pub fn clear_body_data(&mut self) {
136 self.body_data = ::std::option::Option::None;
137 }
138
139 pub fn has_body_data(&self) -> bool {
140 self.body_data.is_some()
141 }
142
143 pub fn set_body_data(&mut self, v: ::std::string::String) {
145 self.body_data = ::std::option::Option::Some(v);
146 }
147
148 pub fn mut_body_data(&mut self) -> &mut ::std::string::String {
151 if self.body_data.is_none() {
152 self.body_data = ::std::option::Option::Some(::std::string::String::new());
153 }
154 self.body_data.as_mut().unwrap()
155 }
156
157 pub fn take_body_data(&mut self) -> ::std::string::String {
159 self.body_data.take().unwrap_or_else(|| ::std::string::String::new())
160 }
161
162 pub fn read(&self) -> bool {
165 self.read.unwrap_or(false)
166 }
167
168 pub fn clear_read(&mut self) {
169 self.read = ::std::option::Option::None;
170 }
171
172 pub fn has_read(&self) -> bool {
173 self.read.is_some()
174 }
175
176 pub fn set_read(&mut self, v: bool) {
178 self.read = ::std::option::Option::Some(v);
179 }
180
181 pub fn timestamp(&self) -> u32 {
184 self.timestamp.unwrap_or(0)
185 }
186
187 pub fn clear_timestamp(&mut self) {
188 self.timestamp = ::std::option::Option::None;
189 }
190
191 pub fn has_timestamp(&self) -> bool {
192 self.timestamp.is_some()
193 }
194
195 pub fn set_timestamp(&mut self, v: u32) {
197 self.timestamp = ::std::option::Option::Some(v);
198 }
199
200 pub fn hidden(&self) -> bool {
203 self.hidden.unwrap_or(false)
204 }
205
206 pub fn clear_hidden(&mut self) {
207 self.hidden = ::std::option::Option::None;
208 }
209
210 pub fn has_hidden(&self) -> bool {
211 self.hidden.is_some()
212 }
213
214 pub fn set_hidden(&mut self, v: bool) {
216 self.hidden = ::std::option::Option::Some(v);
217 }
218
219 pub fn expiry(&self) -> u32 {
222 self.expiry.unwrap_or(0)
223 }
224
225 pub fn clear_expiry(&mut self) {
226 self.expiry = ::std::option::Option::None;
227 }
228
229 pub fn has_expiry(&self) -> bool {
230 self.expiry.is_some()
231 }
232
233 pub fn set_expiry(&mut self, v: u32) {
235 self.expiry = ::std::option::Option::Some(v);
236 }
237
238 pub fn viewed(&self) -> u32 {
241 self.viewed.unwrap_or(0)
242 }
243
244 pub fn clear_viewed(&mut self) {
245 self.viewed = ::std::option::Option::None;
246 }
247
248 pub fn has_viewed(&self) -> bool {
249 self.viewed.is_some()
250 }
251
252 pub fn set_viewed(&mut self, v: u32) {
254 self.viewed = ::std::option::Option::Some(v);
255 }
256}
257
258impl ::steam_vent_proto_common::protobuf::Message for SteamNotificationData {
259 const NAME: &'static str = "SteamNotificationData";
260
261 fn is_initialized(&self) -> bool {
262 true
263 }
264
265 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
266 while let Some(tag) = is.read_raw_tag_or_eof()? {
267 match tag {
268 8 => {
269 self.notification_id = ::std::option::Option::Some(is.read_uint64()?);
270 },
271 16 => {
272 self.notification_targets = ::std::option::Option::Some(is.read_uint32()?);
273 },
274 24 => {
275 self.notification_type = ::std::option::Option::Some(is.read_enum_or_unknown()?);
276 },
277 34 => {
278 self.body_data = ::std::option::Option::Some(is.read_string()?);
279 },
280 56 => {
281 self.read = ::std::option::Option::Some(is.read_bool()?);
282 },
283 64 => {
284 self.timestamp = ::std::option::Option::Some(is.read_uint32()?);
285 },
286 72 => {
287 self.hidden = ::std::option::Option::Some(is.read_bool()?);
288 },
289 80 => {
290 self.expiry = ::std::option::Option::Some(is.read_uint32()?);
291 },
292 88 => {
293 self.viewed = ::std::option::Option::Some(is.read_uint32()?);
294 },
295 tag => {
296 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
297 },
298 };
299 }
300 ::std::result::Result::Ok(())
301 }
302
303 #[allow(unused_variables)]
305 fn compute_size(&self) -> u64 {
306 let mut my_size = 0;
307 if let Some(v) = self.notification_id {
308 my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(1, v);
309 }
310 if let Some(v) = self.notification_targets {
311 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
312 }
313 if let Some(v) = self.notification_type {
314 my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(3, v.value());
315 }
316 if let Some(v) = self.body_data.as_ref() {
317 my_size += ::steam_vent_proto_common::protobuf::rt::string_size(4, &v);
318 }
319 if let Some(v) = self.read {
320 my_size += 1 + 1;
321 }
322 if let Some(v) = self.timestamp {
323 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(8, v);
324 }
325 if let Some(v) = self.hidden {
326 my_size += 1 + 1;
327 }
328 if let Some(v) = self.expiry {
329 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(10, v);
330 }
331 if let Some(v) = self.viewed {
332 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(11, v);
333 }
334 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
335 self.special_fields.cached_size().set(my_size as u32);
336 my_size
337 }
338
339 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
340 if let Some(v) = self.notification_id {
341 os.write_uint64(1, v)?;
342 }
343 if let Some(v) = self.notification_targets {
344 os.write_uint32(2, v)?;
345 }
346 if let Some(v) = self.notification_type {
347 os.write_enum(3, ::steam_vent_proto_common::protobuf::EnumOrUnknown::value(&v))?;
348 }
349 if let Some(v) = self.body_data.as_ref() {
350 os.write_string(4, v)?;
351 }
352 if let Some(v) = self.read {
353 os.write_bool(7, v)?;
354 }
355 if let Some(v) = self.timestamp {
356 os.write_uint32(8, v)?;
357 }
358 if let Some(v) = self.hidden {
359 os.write_bool(9, v)?;
360 }
361 if let Some(v) = self.expiry {
362 os.write_uint32(10, v)?;
363 }
364 if let Some(v) = self.viewed {
365 os.write_uint32(11, v)?;
366 }
367 os.write_unknown_fields(self.special_fields.unknown_fields())?;
368 ::std::result::Result::Ok(())
369 }
370
371 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
372 &self.special_fields
373 }
374
375 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
376 &mut self.special_fields
377 }
378
379 fn new() -> SteamNotificationData {
380 SteamNotificationData::new()
381 }
382
383 fn clear(&mut self) {
384 self.notification_id = ::std::option::Option::None;
385 self.notification_targets = ::std::option::Option::None;
386 self.notification_type = ::std::option::Option::None;
387 self.body_data = ::std::option::Option::None;
388 self.read = ::std::option::Option::None;
389 self.timestamp = ::std::option::Option::None;
390 self.hidden = ::std::option::Option::None;
391 self.expiry = ::std::option::Option::None;
392 self.viewed = ::std::option::Option::None;
393 self.special_fields.clear();
394 }
395
396 fn default_instance() -> &'static SteamNotificationData {
397 static instance: SteamNotificationData = SteamNotificationData {
398 notification_id: ::std::option::Option::None,
399 notification_targets: ::std::option::Option::None,
400 notification_type: ::std::option::Option::None,
401 body_data: ::std::option::Option::None,
402 read: ::std::option::Option::None,
403 timestamp: ::std::option::Option::None,
404 hidden: ::std::option::Option::None,
405 expiry: ::std::option::Option::None,
406 viewed: ::std::option::Option::None,
407 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
408 };
409 &instance
410 }
411}
412
413#[derive(PartialEq,Clone,Default,Debug)]
415pub struct CSteamNotification_NotificationsReceived_Notification {
416 pub notifications: ::std::vec::Vec<SteamNotificationData>,
419 pub pending_gift_count: ::std::option::Option<u32>,
421 pub pending_friend_count: ::std::option::Option<u32>,
423 pub pending_family_invite_count: ::std::option::Option<u32>,
425 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
428}
429
430impl<'a> ::std::default::Default for &'a CSteamNotification_NotificationsReceived_Notification {
431 fn default() -> &'a CSteamNotification_NotificationsReceived_Notification {
432 <CSteamNotification_NotificationsReceived_Notification as ::steam_vent_proto_common::protobuf::Message>::default_instance()
433 }
434}
435
436impl CSteamNotification_NotificationsReceived_Notification {
437 pub fn new() -> CSteamNotification_NotificationsReceived_Notification {
438 ::std::default::Default::default()
439 }
440
441 pub fn pending_gift_count(&self) -> u32 {
444 self.pending_gift_count.unwrap_or(0)
445 }
446
447 pub fn clear_pending_gift_count(&mut self) {
448 self.pending_gift_count = ::std::option::Option::None;
449 }
450
451 pub fn has_pending_gift_count(&self) -> bool {
452 self.pending_gift_count.is_some()
453 }
454
455 pub fn set_pending_gift_count(&mut self, v: u32) {
457 self.pending_gift_count = ::std::option::Option::Some(v);
458 }
459
460 pub fn pending_friend_count(&self) -> u32 {
463 self.pending_friend_count.unwrap_or(0)
464 }
465
466 pub fn clear_pending_friend_count(&mut self) {
467 self.pending_friend_count = ::std::option::Option::None;
468 }
469
470 pub fn has_pending_friend_count(&self) -> bool {
471 self.pending_friend_count.is_some()
472 }
473
474 pub fn set_pending_friend_count(&mut self, v: u32) {
476 self.pending_friend_count = ::std::option::Option::Some(v);
477 }
478
479 pub fn pending_family_invite_count(&self) -> u32 {
482 self.pending_family_invite_count.unwrap_or(0)
483 }
484
485 pub fn clear_pending_family_invite_count(&mut self) {
486 self.pending_family_invite_count = ::std::option::Option::None;
487 }
488
489 pub fn has_pending_family_invite_count(&self) -> bool {
490 self.pending_family_invite_count.is_some()
491 }
492
493 pub fn set_pending_family_invite_count(&mut self, v: u32) {
495 self.pending_family_invite_count = ::std::option::Option::Some(v);
496 }
497}
498
499impl ::steam_vent_proto_common::protobuf::Message for CSteamNotification_NotificationsReceived_Notification {
500 const NAME: &'static str = "CSteamNotification_NotificationsReceived_Notification";
501
502 fn is_initialized(&self) -> bool {
503 true
504 }
505
506 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
507 while let Some(tag) = is.read_raw_tag_or_eof()? {
508 match tag {
509 10 => {
510 self.notifications.push(is.read_message()?);
511 },
512 16 => {
513 self.pending_gift_count = ::std::option::Option::Some(is.read_uint32()?);
514 },
515 24 => {
516 self.pending_friend_count = ::std::option::Option::Some(is.read_uint32()?);
517 },
518 32 => {
519 self.pending_family_invite_count = ::std::option::Option::Some(is.read_uint32()?);
520 },
521 tag => {
522 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
523 },
524 };
525 }
526 ::std::result::Result::Ok(())
527 }
528
529 #[allow(unused_variables)]
531 fn compute_size(&self) -> u64 {
532 let mut my_size = 0;
533 for value in &self.notifications {
534 let len = value.compute_size();
535 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
536 };
537 if let Some(v) = self.pending_gift_count {
538 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
539 }
540 if let Some(v) = self.pending_friend_count {
541 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
542 }
543 if let Some(v) = self.pending_family_invite_count {
544 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(4, v);
545 }
546 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
547 self.special_fields.cached_size().set(my_size as u32);
548 my_size
549 }
550
551 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
552 for v in &self.notifications {
553 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
554 };
555 if let Some(v) = self.pending_gift_count {
556 os.write_uint32(2, v)?;
557 }
558 if let Some(v) = self.pending_friend_count {
559 os.write_uint32(3, v)?;
560 }
561 if let Some(v) = self.pending_family_invite_count {
562 os.write_uint32(4, v)?;
563 }
564 os.write_unknown_fields(self.special_fields.unknown_fields())?;
565 ::std::result::Result::Ok(())
566 }
567
568 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
569 &self.special_fields
570 }
571
572 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
573 &mut self.special_fields
574 }
575
576 fn new() -> CSteamNotification_NotificationsReceived_Notification {
577 CSteamNotification_NotificationsReceived_Notification::new()
578 }
579
580 fn clear(&mut self) {
581 self.notifications.clear();
582 self.pending_gift_count = ::std::option::Option::None;
583 self.pending_friend_count = ::std::option::Option::None;
584 self.pending_family_invite_count = ::std::option::Option::None;
585 self.special_fields.clear();
586 }
587
588 fn default_instance() -> &'static CSteamNotification_NotificationsReceived_Notification {
589 static instance: CSteamNotification_NotificationsReceived_Notification = CSteamNotification_NotificationsReceived_Notification {
590 notifications: ::std::vec::Vec::new(),
591 pending_gift_count: ::std::option::Option::None,
592 pending_friend_count: ::std::option::Option::None,
593 pending_family_invite_count: ::std::option::Option::None,
594 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
595 };
596 &instance
597 }
598}
599
600#[derive(PartialEq,Clone,Default,Debug)]
602pub struct SteamNotificationPreference {
603 pub notification_type: ::std::option::Option<::steam_vent_proto_common::protobuf::EnumOrUnknown<ESteamNotificationType>>,
606 pub notification_targets: ::std::option::Option<u32>,
608 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
611}
612
613impl<'a> ::std::default::Default for &'a SteamNotificationPreference {
614 fn default() -> &'a SteamNotificationPreference {
615 <SteamNotificationPreference as ::steam_vent_proto_common::protobuf::Message>::default_instance()
616 }
617}
618
619impl SteamNotificationPreference {
620 pub fn new() -> SteamNotificationPreference {
621 ::std::default::Default::default()
622 }
623
624 pub fn notification_type(&self) -> ESteamNotificationType {
627 match self.notification_type {
628 Some(e) => e.enum_value_or(ESteamNotificationType::k_ESteamNotificationType_Invalid),
629 None => ESteamNotificationType::k_ESteamNotificationType_Invalid,
630 }
631 }
632
633 pub fn clear_notification_type(&mut self) {
634 self.notification_type = ::std::option::Option::None;
635 }
636
637 pub fn has_notification_type(&self) -> bool {
638 self.notification_type.is_some()
639 }
640
641 pub fn set_notification_type(&mut self, v: ESteamNotificationType) {
643 self.notification_type = ::std::option::Option::Some(::steam_vent_proto_common::protobuf::EnumOrUnknown::new(v));
644 }
645
646 pub fn notification_targets(&self) -> u32 {
649 self.notification_targets.unwrap_or(0)
650 }
651
652 pub fn clear_notification_targets(&mut self) {
653 self.notification_targets = ::std::option::Option::None;
654 }
655
656 pub fn has_notification_targets(&self) -> bool {
657 self.notification_targets.is_some()
658 }
659
660 pub fn set_notification_targets(&mut self, v: u32) {
662 self.notification_targets = ::std::option::Option::Some(v);
663 }
664}
665
666impl ::steam_vent_proto_common::protobuf::Message for SteamNotificationPreference {
667 const NAME: &'static str = "SteamNotificationPreference";
668
669 fn is_initialized(&self) -> bool {
670 true
671 }
672
673 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
674 while let Some(tag) = is.read_raw_tag_or_eof()? {
675 match tag {
676 8 => {
677 self.notification_type = ::std::option::Option::Some(is.read_enum_or_unknown()?);
678 },
679 16 => {
680 self.notification_targets = ::std::option::Option::Some(is.read_uint32()?);
681 },
682 tag => {
683 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
684 },
685 };
686 }
687 ::std::result::Result::Ok(())
688 }
689
690 #[allow(unused_variables)]
692 fn compute_size(&self) -> u64 {
693 let mut my_size = 0;
694 if let Some(v) = self.notification_type {
695 my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(1, v.value());
696 }
697 if let Some(v) = self.notification_targets {
698 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
699 }
700 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
701 self.special_fields.cached_size().set(my_size as u32);
702 my_size
703 }
704
705 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
706 if let Some(v) = self.notification_type {
707 os.write_enum(1, ::steam_vent_proto_common::protobuf::EnumOrUnknown::value(&v))?;
708 }
709 if let Some(v) = self.notification_targets {
710 os.write_uint32(2, v)?;
711 }
712 os.write_unknown_fields(self.special_fields.unknown_fields())?;
713 ::std::result::Result::Ok(())
714 }
715
716 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
717 &self.special_fields
718 }
719
720 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
721 &mut self.special_fields
722 }
723
724 fn new() -> SteamNotificationPreference {
725 SteamNotificationPreference::new()
726 }
727
728 fn clear(&mut self) {
729 self.notification_type = ::std::option::Option::None;
730 self.notification_targets = ::std::option::Option::None;
731 self.special_fields.clear();
732 }
733
734 fn default_instance() -> &'static SteamNotificationPreference {
735 static instance: SteamNotificationPreference = SteamNotificationPreference {
736 notification_type: ::std::option::Option::None,
737 notification_targets: ::std::option::Option::None,
738 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
739 };
740 &instance
741 }
742}
743
744#[derive(PartialEq,Clone,Default,Debug)]
746pub struct CSteamNotification_PreferencesUpdated_Notification {
747 pub preferences: ::std::vec::Vec<SteamNotificationPreference>,
750 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
753}
754
755impl<'a> ::std::default::Default for &'a CSteamNotification_PreferencesUpdated_Notification {
756 fn default() -> &'a CSteamNotification_PreferencesUpdated_Notification {
757 <CSteamNotification_PreferencesUpdated_Notification as ::steam_vent_proto_common::protobuf::Message>::default_instance()
758 }
759}
760
761impl CSteamNotification_PreferencesUpdated_Notification {
762 pub fn new() -> CSteamNotification_PreferencesUpdated_Notification {
763 ::std::default::Default::default()
764 }
765}
766
767impl ::steam_vent_proto_common::protobuf::Message for CSteamNotification_PreferencesUpdated_Notification {
768 const NAME: &'static str = "CSteamNotification_PreferencesUpdated_Notification";
769
770 fn is_initialized(&self) -> bool {
771 true
772 }
773
774 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
775 while let Some(tag) = is.read_raw_tag_or_eof()? {
776 match tag {
777 10 => {
778 self.preferences.push(is.read_message()?);
779 },
780 tag => {
781 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
782 },
783 };
784 }
785 ::std::result::Result::Ok(())
786 }
787
788 #[allow(unused_variables)]
790 fn compute_size(&self) -> u64 {
791 let mut my_size = 0;
792 for value in &self.preferences {
793 let len = value.compute_size();
794 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
795 };
796 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
797 self.special_fields.cached_size().set(my_size as u32);
798 my_size
799 }
800
801 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
802 for v in &self.preferences {
803 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
804 };
805 os.write_unknown_fields(self.special_fields.unknown_fields())?;
806 ::std::result::Result::Ok(())
807 }
808
809 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
810 &self.special_fields
811 }
812
813 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
814 &mut self.special_fields
815 }
816
817 fn new() -> CSteamNotification_PreferencesUpdated_Notification {
818 CSteamNotification_PreferencesUpdated_Notification::new()
819 }
820
821 fn clear(&mut self) {
822 self.preferences.clear();
823 self.special_fields.clear();
824 }
825
826 fn default_instance() -> &'static CSteamNotification_PreferencesUpdated_Notification {
827 static instance: CSteamNotification_PreferencesUpdated_Notification = CSteamNotification_PreferencesUpdated_Notification {
828 preferences: ::std::vec::Vec::new(),
829 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
830 };
831 &instance
832 }
833}
834
835#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
836pub enum ESteamNotificationType {
838 k_ESteamNotificationType_Invalid = 0,
840 k_ESteamNotificationType_Test = 1,
842 k_ESteamNotificationType_Gift = 2,
844 k_ESteamNotificationType_Comment = 3,
846 k_ESteamNotificationType_Item = 4,
848 k_ESteamNotificationType_FriendInvite = 5,
850 k_ESteamNotificationType_MajorSale = 6,
852 k_ESteamNotificationType_PreloadAvailable = 7,
854 k_ESteamNotificationType_Wishlist = 8,
856 k_ESteamNotificationType_TradeOffer = 9,
858 k_ESteamNotificationType_General = 10,
860 k_ESteamNotificationType_HelpRequest = 11,
862 k_ESteamNotificationType_AsyncGame = 12,
864 k_ESteamNotificationType_ChatMsg = 13,
866 k_ESteamNotificationType_ModeratorMsg = 14,
868 k_ESteamNotificationType_ParentalFeatureAccessRequest = 15,
870 k_ESteamNotificationType_FamilyInvite = 16,
872 k_ESteamNotificationType_FamilyPurchaseRequest = 17,
874 k_ESteamNotificationType_ParentalPlaytimeRequest = 18,
876 k_ESteamNotificationType_FamilyPurchaseRequestResponse = 19,
878 k_ESteamNotificationType_ParentalFeatureAccessResponse = 20,
880 k_ESteamNotificationType_ParentalPlaytimeResponse = 21,
882 k_ESteamNotificationType_RequestedGameAdded = 22,
884 k_ESteamNotificationType_SendToPhone = 23,
886 k_ESteamNotificationType_ClipDownloaded = 24,
888 k_ESteamNotificationType_2FAPrompt = 25,
890 k_ESteamNotificationType_MobileConfirmation = 26,
892 k_ESteamNotificationType_PartnerEvent = 27,
894}
895
896impl ::steam_vent_proto_common::protobuf::Enum for ESteamNotificationType {
897 const NAME: &'static str = "ESteamNotificationType";
898
899 fn value(&self) -> i32 {
900 *self as i32
901 }
902
903 fn from_i32(value: i32) -> ::std::option::Option<ESteamNotificationType> {
904 match value {
905 0 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Invalid),
906 1 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Test),
907 2 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Gift),
908 3 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Comment),
909 4 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Item),
910 5 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_FriendInvite),
911 6 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_MajorSale),
912 7 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_PreloadAvailable),
913 8 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Wishlist),
914 9 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_TradeOffer),
915 10 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_General),
916 11 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_HelpRequest),
917 12 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_AsyncGame),
918 13 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ChatMsg),
919 14 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ModeratorMsg),
920 15 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ParentalFeatureAccessRequest),
921 16 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_FamilyInvite),
922 17 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_FamilyPurchaseRequest),
923 18 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ParentalPlaytimeRequest),
924 19 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_FamilyPurchaseRequestResponse),
925 20 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ParentalFeatureAccessResponse),
926 21 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ParentalPlaytimeResponse),
927 22 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_RequestedGameAdded),
928 23 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_SendToPhone),
929 24 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ClipDownloaded),
930 25 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_2FAPrompt),
931 26 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_MobileConfirmation),
932 27 => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_PartnerEvent),
933 _ => ::std::option::Option::None
934 }
935 }
936
937 fn from_str(str: &str) -> ::std::option::Option<ESteamNotificationType> {
938 match str {
939 "k_ESteamNotificationType_Invalid" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Invalid),
940 "k_ESteamNotificationType_Test" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Test),
941 "k_ESteamNotificationType_Gift" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Gift),
942 "k_ESteamNotificationType_Comment" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Comment),
943 "k_ESteamNotificationType_Item" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Item),
944 "k_ESteamNotificationType_FriendInvite" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_FriendInvite),
945 "k_ESteamNotificationType_MajorSale" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_MajorSale),
946 "k_ESteamNotificationType_PreloadAvailable" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_PreloadAvailable),
947 "k_ESteamNotificationType_Wishlist" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_Wishlist),
948 "k_ESteamNotificationType_TradeOffer" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_TradeOffer),
949 "k_ESteamNotificationType_General" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_General),
950 "k_ESteamNotificationType_HelpRequest" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_HelpRequest),
951 "k_ESteamNotificationType_AsyncGame" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_AsyncGame),
952 "k_ESteamNotificationType_ChatMsg" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ChatMsg),
953 "k_ESteamNotificationType_ModeratorMsg" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ModeratorMsg),
954 "k_ESteamNotificationType_ParentalFeatureAccessRequest" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ParentalFeatureAccessRequest),
955 "k_ESteamNotificationType_FamilyInvite" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_FamilyInvite),
956 "k_ESteamNotificationType_FamilyPurchaseRequest" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_FamilyPurchaseRequest),
957 "k_ESteamNotificationType_ParentalPlaytimeRequest" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ParentalPlaytimeRequest),
958 "k_ESteamNotificationType_FamilyPurchaseRequestResponse" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_FamilyPurchaseRequestResponse),
959 "k_ESteamNotificationType_ParentalFeatureAccessResponse" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ParentalFeatureAccessResponse),
960 "k_ESteamNotificationType_ParentalPlaytimeResponse" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ParentalPlaytimeResponse),
961 "k_ESteamNotificationType_RequestedGameAdded" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_RequestedGameAdded),
962 "k_ESteamNotificationType_SendToPhone" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_SendToPhone),
963 "k_ESteamNotificationType_ClipDownloaded" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_ClipDownloaded),
964 "k_ESteamNotificationType_2FAPrompt" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_2FAPrompt),
965 "k_ESteamNotificationType_MobileConfirmation" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_MobileConfirmation),
966 "k_ESteamNotificationType_PartnerEvent" => ::std::option::Option::Some(ESteamNotificationType::k_ESteamNotificationType_PartnerEvent),
967 _ => ::std::option::Option::None
968 }
969 }
970
971 const VALUES: &'static [ESteamNotificationType] = &[
972 ESteamNotificationType::k_ESteamNotificationType_Invalid,
973 ESteamNotificationType::k_ESteamNotificationType_Test,
974 ESteamNotificationType::k_ESteamNotificationType_Gift,
975 ESteamNotificationType::k_ESteamNotificationType_Comment,
976 ESteamNotificationType::k_ESteamNotificationType_Item,
977 ESteamNotificationType::k_ESteamNotificationType_FriendInvite,
978 ESteamNotificationType::k_ESteamNotificationType_MajorSale,
979 ESteamNotificationType::k_ESteamNotificationType_PreloadAvailable,
980 ESteamNotificationType::k_ESteamNotificationType_Wishlist,
981 ESteamNotificationType::k_ESteamNotificationType_TradeOffer,
982 ESteamNotificationType::k_ESteamNotificationType_General,
983 ESteamNotificationType::k_ESteamNotificationType_HelpRequest,
984 ESteamNotificationType::k_ESteamNotificationType_AsyncGame,
985 ESteamNotificationType::k_ESteamNotificationType_ChatMsg,
986 ESteamNotificationType::k_ESteamNotificationType_ModeratorMsg,
987 ESteamNotificationType::k_ESteamNotificationType_ParentalFeatureAccessRequest,
988 ESteamNotificationType::k_ESteamNotificationType_FamilyInvite,
989 ESteamNotificationType::k_ESteamNotificationType_FamilyPurchaseRequest,
990 ESteamNotificationType::k_ESteamNotificationType_ParentalPlaytimeRequest,
991 ESteamNotificationType::k_ESteamNotificationType_FamilyPurchaseRequestResponse,
992 ESteamNotificationType::k_ESteamNotificationType_ParentalFeatureAccessResponse,
993 ESteamNotificationType::k_ESteamNotificationType_ParentalPlaytimeResponse,
994 ESteamNotificationType::k_ESteamNotificationType_RequestedGameAdded,
995 ESteamNotificationType::k_ESteamNotificationType_SendToPhone,
996 ESteamNotificationType::k_ESteamNotificationType_ClipDownloaded,
997 ESteamNotificationType::k_ESteamNotificationType_2FAPrompt,
998 ESteamNotificationType::k_ESteamNotificationType_MobileConfirmation,
999 ESteamNotificationType::k_ESteamNotificationType_PartnerEvent,
1000 ];
1001}
1002
1003impl ::std::default::Default for ESteamNotificationType {
1004 fn default() -> Self {
1005 ESteamNotificationType::k_ESteamNotificationType_Invalid
1006 }
1007}
1008
1009
1010
1011const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
1012
1013#[allow(unused_imports)]
1014use crate::steammessages_base::*;
1015#[allow(unused_imports)]
1016use crate::steammessages_unified_base_steamclient::*;
1017impl ::steam_vent_proto_common::RpcMessage for SteamNotificationData {
1018 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1019 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1020 }
1021 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1022 use ::steam_vent_proto_common::protobuf::Message;
1023 self.write_to_writer(writer)
1024 }
1025 fn encode_size(&self) -> usize {
1026 use ::steam_vent_proto_common::protobuf::Message;
1027 self.compute_size() as usize
1028 }
1029}
1030impl ::steam_vent_proto_common::RpcMessage
1031for CSteamNotification_NotificationsReceived_Notification {
1032 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1033 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1034 }
1035 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1036 use ::steam_vent_proto_common::protobuf::Message;
1037 self.write_to_writer(writer)
1038 }
1039 fn encode_size(&self) -> usize {
1040 use ::steam_vent_proto_common::protobuf::Message;
1041 self.compute_size() as usize
1042 }
1043}
1044impl ::steam_vent_proto_common::RpcMessage for SteamNotificationPreference {
1045 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1046 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1047 }
1048 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1049 use ::steam_vent_proto_common::protobuf::Message;
1050 self.write_to_writer(writer)
1051 }
1052 fn encode_size(&self) -> usize {
1053 use ::steam_vent_proto_common::protobuf::Message;
1054 self.compute_size() as usize
1055 }
1056}
1057impl ::steam_vent_proto_common::RpcMessage
1058for CSteamNotification_PreferencesUpdated_Notification {
1059 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1060 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1061 }
1062 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1063 use ::steam_vent_proto_common::protobuf::Message;
1064 self.write_to_writer(writer)
1065 }
1066 fn encode_size(&self) -> usize {
1067 use ::steam_vent_proto_common::protobuf::Message;
1068 self.compute_size() as usize
1069 }
1070}
1071struct SteamNotificationClient {}
1073impl ::steam_vent_proto_common::RpcService for SteamNotificationClient {
1074 const SERVICE_NAME: &'static str = "SteamNotificationClient";
1075}
1076impl ::steam_vent_proto_common::RpcMethod
1077for CSteamNotification_NotificationsReceived_Notification {
1078 const METHOD_NAME: &'static str = "SteamNotificationClient.NotificationsReceived#1";
1079 type Response = ();
1080}
1081impl ::steam_vent_proto_common::RpcMethod
1082for CSteamNotification_PreferencesUpdated_Notification {
1083 const METHOD_NAME: &'static str = "SteamNotificationClient.PreferencesUpdated#1";
1084 type Response = ();
1085}