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 ParentalApp {
31 pub appid: ::std::option::Option<u32>,
34 pub is_allowed: ::std::option::Option<bool>,
36 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
39}
40
41impl<'a> ::std::default::Default for &'a ParentalApp {
42 fn default() -> &'a ParentalApp {
43 <ParentalApp as ::steam_vent_proto_common::protobuf::Message>::default_instance()
44 }
45}
46
47impl ParentalApp {
48 pub fn new() -> ParentalApp {
49 ::std::default::Default::default()
50 }
51
52 pub fn appid(&self) -> u32 {
55 self.appid.unwrap_or(0)
56 }
57
58 pub fn clear_appid(&mut self) {
59 self.appid = ::std::option::Option::None;
60 }
61
62 pub fn has_appid(&self) -> bool {
63 self.appid.is_some()
64 }
65
66 pub fn set_appid(&mut self, v: u32) {
68 self.appid = ::std::option::Option::Some(v);
69 }
70
71 pub fn is_allowed(&self) -> bool {
74 self.is_allowed.unwrap_or(false)
75 }
76
77 pub fn clear_is_allowed(&mut self) {
78 self.is_allowed = ::std::option::Option::None;
79 }
80
81 pub fn has_is_allowed(&self) -> bool {
82 self.is_allowed.is_some()
83 }
84
85 pub fn set_is_allowed(&mut self, v: bool) {
87 self.is_allowed = ::std::option::Option::Some(v);
88 }
89}
90
91impl ::steam_vent_proto_common::protobuf::Message for ParentalApp {
92 const NAME: &'static str = "ParentalApp";
93
94 fn is_initialized(&self) -> bool {
95 true
96 }
97
98 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
99 while let Some(tag) = is.read_raw_tag_or_eof()? {
100 match tag {
101 8 => {
102 self.appid = ::std::option::Option::Some(is.read_uint32()?);
103 },
104 16 => {
105 self.is_allowed = ::std::option::Option::Some(is.read_bool()?);
106 },
107 tag => {
108 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
109 },
110 };
111 }
112 ::std::result::Result::Ok(())
113 }
114
115 #[allow(unused_variables)]
117 fn compute_size(&self) -> u64 {
118 let mut my_size = 0;
119 if let Some(v) = self.appid {
120 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
121 }
122 if let Some(v) = self.is_allowed {
123 my_size += 1 + 1;
124 }
125 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
126 self.special_fields.cached_size().set(my_size as u32);
127 my_size
128 }
129
130 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
131 if let Some(v) = self.appid {
132 os.write_uint32(1, v)?;
133 }
134 if let Some(v) = self.is_allowed {
135 os.write_bool(2, v)?;
136 }
137 os.write_unknown_fields(self.special_fields.unknown_fields())?;
138 ::std::result::Result::Ok(())
139 }
140
141 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
142 &self.special_fields
143 }
144
145 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
146 &mut self.special_fields
147 }
148
149 fn new() -> ParentalApp {
150 ParentalApp::new()
151 }
152
153 fn clear(&mut self) {
154 self.appid = ::std::option::Option::None;
155 self.is_allowed = ::std::option::Option::None;
156 self.special_fields.clear();
157 }
158
159 fn default_instance() -> &'static ParentalApp {
160 static instance: ParentalApp = ParentalApp {
161 appid: ::std::option::Option::None,
162 is_allowed: ::std::option::Option::None,
163 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
164 };
165 &instance
166 }
167}
168
169#[derive(PartialEq,Clone,Default,Debug)]
171pub struct ParentalPlaytimeDay {
172 pub allowed_time_windows: ::std::option::Option<u64>,
175 pub allowed_daily_minutes: ::std::option::Option<u32>,
177 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
180}
181
182impl<'a> ::std::default::Default for &'a ParentalPlaytimeDay {
183 fn default() -> &'a ParentalPlaytimeDay {
184 <ParentalPlaytimeDay as ::steam_vent_proto_common::protobuf::Message>::default_instance()
185 }
186}
187
188impl ParentalPlaytimeDay {
189 pub fn new() -> ParentalPlaytimeDay {
190 ::std::default::Default::default()
191 }
192
193 pub fn allowed_time_windows(&self) -> u64 {
196 self.allowed_time_windows.unwrap_or(0)
197 }
198
199 pub fn clear_allowed_time_windows(&mut self) {
200 self.allowed_time_windows = ::std::option::Option::None;
201 }
202
203 pub fn has_allowed_time_windows(&self) -> bool {
204 self.allowed_time_windows.is_some()
205 }
206
207 pub fn set_allowed_time_windows(&mut self, v: u64) {
209 self.allowed_time_windows = ::std::option::Option::Some(v);
210 }
211
212 pub fn allowed_daily_minutes(&self) -> u32 {
215 self.allowed_daily_minutes.unwrap_or(0)
216 }
217
218 pub fn clear_allowed_daily_minutes(&mut self) {
219 self.allowed_daily_minutes = ::std::option::Option::None;
220 }
221
222 pub fn has_allowed_daily_minutes(&self) -> bool {
223 self.allowed_daily_minutes.is_some()
224 }
225
226 pub fn set_allowed_daily_minutes(&mut self, v: u32) {
228 self.allowed_daily_minutes = ::std::option::Option::Some(v);
229 }
230}
231
232impl ::steam_vent_proto_common::protobuf::Message for ParentalPlaytimeDay {
233 const NAME: &'static str = "ParentalPlaytimeDay";
234
235 fn is_initialized(&self) -> bool {
236 true
237 }
238
239 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
240 while let Some(tag) = is.read_raw_tag_or_eof()? {
241 match tag {
242 8 => {
243 self.allowed_time_windows = ::std::option::Option::Some(is.read_uint64()?);
244 },
245 16 => {
246 self.allowed_daily_minutes = ::std::option::Option::Some(is.read_uint32()?);
247 },
248 tag => {
249 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
250 },
251 };
252 }
253 ::std::result::Result::Ok(())
254 }
255
256 #[allow(unused_variables)]
258 fn compute_size(&self) -> u64 {
259 let mut my_size = 0;
260 if let Some(v) = self.allowed_time_windows {
261 my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(1, v);
262 }
263 if let Some(v) = self.allowed_daily_minutes {
264 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
265 }
266 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
267 self.special_fields.cached_size().set(my_size as u32);
268 my_size
269 }
270
271 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
272 if let Some(v) = self.allowed_time_windows {
273 os.write_uint64(1, v)?;
274 }
275 if let Some(v) = self.allowed_daily_minutes {
276 os.write_uint32(2, v)?;
277 }
278 os.write_unknown_fields(self.special_fields.unknown_fields())?;
279 ::std::result::Result::Ok(())
280 }
281
282 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
283 &self.special_fields
284 }
285
286 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
287 &mut self.special_fields
288 }
289
290 fn new() -> ParentalPlaytimeDay {
291 ParentalPlaytimeDay::new()
292 }
293
294 fn clear(&mut self) {
295 self.allowed_time_windows = ::std::option::Option::None;
296 self.allowed_daily_minutes = ::std::option::Option::None;
297 self.special_fields.clear();
298 }
299
300 fn default_instance() -> &'static ParentalPlaytimeDay {
301 static instance: ParentalPlaytimeDay = ParentalPlaytimeDay {
302 allowed_time_windows: ::std::option::Option::None,
303 allowed_daily_minutes: ::std::option::Option::None,
304 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
305 };
306 &instance
307 }
308}
309
310#[derive(PartialEq,Clone,Default,Debug)]
312pub struct ParentalPlaytimeRestrictions {
313 pub apply_playtime_restrictions: ::std::option::Option<bool>,
316 pub playtime_days: ::std::vec::Vec<ParentalPlaytimeDay>,
318 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
321}
322
323impl<'a> ::std::default::Default for &'a ParentalPlaytimeRestrictions {
324 fn default() -> &'a ParentalPlaytimeRestrictions {
325 <ParentalPlaytimeRestrictions as ::steam_vent_proto_common::protobuf::Message>::default_instance()
326 }
327}
328
329impl ParentalPlaytimeRestrictions {
330 pub fn new() -> ParentalPlaytimeRestrictions {
331 ::std::default::Default::default()
332 }
333
334 pub fn apply_playtime_restrictions(&self) -> bool {
337 self.apply_playtime_restrictions.unwrap_or(false)
338 }
339
340 pub fn clear_apply_playtime_restrictions(&mut self) {
341 self.apply_playtime_restrictions = ::std::option::Option::None;
342 }
343
344 pub fn has_apply_playtime_restrictions(&self) -> bool {
345 self.apply_playtime_restrictions.is_some()
346 }
347
348 pub fn set_apply_playtime_restrictions(&mut self, v: bool) {
350 self.apply_playtime_restrictions = ::std::option::Option::Some(v);
351 }
352}
353
354impl ::steam_vent_proto_common::protobuf::Message for ParentalPlaytimeRestrictions {
355 const NAME: &'static str = "ParentalPlaytimeRestrictions";
356
357 fn is_initialized(&self) -> bool {
358 true
359 }
360
361 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
362 while let Some(tag) = is.read_raw_tag_or_eof()? {
363 match tag {
364 16 => {
365 self.apply_playtime_restrictions = ::std::option::Option::Some(is.read_bool()?);
366 },
367 122 => {
368 self.playtime_days.push(is.read_message()?);
369 },
370 tag => {
371 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
372 },
373 };
374 }
375 ::std::result::Result::Ok(())
376 }
377
378 #[allow(unused_variables)]
380 fn compute_size(&self) -> u64 {
381 let mut my_size = 0;
382 if let Some(v) = self.apply_playtime_restrictions {
383 my_size += 1 + 1;
384 }
385 for value in &self.playtime_days {
386 let len = value.compute_size();
387 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
388 };
389 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
390 self.special_fields.cached_size().set(my_size as u32);
391 my_size
392 }
393
394 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
395 if let Some(v) = self.apply_playtime_restrictions {
396 os.write_bool(2, v)?;
397 }
398 for v in &self.playtime_days {
399 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(15, v, os)?;
400 };
401 os.write_unknown_fields(self.special_fields.unknown_fields())?;
402 ::std::result::Result::Ok(())
403 }
404
405 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
406 &self.special_fields
407 }
408
409 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
410 &mut self.special_fields
411 }
412
413 fn new() -> ParentalPlaytimeRestrictions {
414 ParentalPlaytimeRestrictions::new()
415 }
416
417 fn clear(&mut self) {
418 self.apply_playtime_restrictions = ::std::option::Option::None;
419 self.playtime_days.clear();
420 self.special_fields.clear();
421 }
422
423 fn default_instance() -> &'static ParentalPlaytimeRestrictions {
424 static instance: ParentalPlaytimeRestrictions = ParentalPlaytimeRestrictions {
425 apply_playtime_restrictions: ::std::option::Option::None,
426 playtime_days: ::std::vec::Vec::new(),
427 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
428 };
429 &instance
430 }
431}
432
433#[derive(PartialEq,Clone,Default,Debug)]
435pub struct ParentalTemporaryPlaytimeRestrictions {
436 pub restrictions: ::steam_vent_proto_common::protobuf::MessageField<ParentalPlaytimeDay>,
439 pub rtime_expires: ::std::option::Option<u32>,
441 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
444}
445
446impl<'a> ::std::default::Default for &'a ParentalTemporaryPlaytimeRestrictions {
447 fn default() -> &'a ParentalTemporaryPlaytimeRestrictions {
448 <ParentalTemporaryPlaytimeRestrictions as ::steam_vent_proto_common::protobuf::Message>::default_instance()
449 }
450}
451
452impl ParentalTemporaryPlaytimeRestrictions {
453 pub fn new() -> ParentalTemporaryPlaytimeRestrictions {
454 ::std::default::Default::default()
455 }
456
457 pub fn rtime_expires(&self) -> u32 {
460 self.rtime_expires.unwrap_or(0)
461 }
462
463 pub fn clear_rtime_expires(&mut self) {
464 self.rtime_expires = ::std::option::Option::None;
465 }
466
467 pub fn has_rtime_expires(&self) -> bool {
468 self.rtime_expires.is_some()
469 }
470
471 pub fn set_rtime_expires(&mut self, v: u32) {
473 self.rtime_expires = ::std::option::Option::Some(v);
474 }
475}
476
477impl ::steam_vent_proto_common::protobuf::Message for ParentalTemporaryPlaytimeRestrictions {
478 const NAME: &'static str = "ParentalTemporaryPlaytimeRestrictions";
479
480 fn is_initialized(&self) -> bool {
481 true
482 }
483
484 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
485 while let Some(tag) = is.read_raw_tag_or_eof()? {
486 match tag {
487 10 => {
488 ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.restrictions)?;
489 },
490 16 => {
491 self.rtime_expires = ::std::option::Option::Some(is.read_uint32()?);
492 },
493 tag => {
494 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
495 },
496 };
497 }
498 ::std::result::Result::Ok(())
499 }
500
501 #[allow(unused_variables)]
503 fn compute_size(&self) -> u64 {
504 let mut my_size = 0;
505 if let Some(v) = self.restrictions.as_ref() {
506 let len = v.compute_size();
507 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
508 }
509 if let Some(v) = self.rtime_expires {
510 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
511 }
512 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
513 self.special_fields.cached_size().set(my_size as u32);
514 my_size
515 }
516
517 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
518 if let Some(v) = self.restrictions.as_ref() {
519 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
520 }
521 if let Some(v) = self.rtime_expires {
522 os.write_uint32(2, v)?;
523 }
524 os.write_unknown_fields(self.special_fields.unknown_fields())?;
525 ::std::result::Result::Ok(())
526 }
527
528 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
529 &self.special_fields
530 }
531
532 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
533 &mut self.special_fields
534 }
535
536 fn new() -> ParentalTemporaryPlaytimeRestrictions {
537 ParentalTemporaryPlaytimeRestrictions::new()
538 }
539
540 fn clear(&mut self) {
541 self.restrictions.clear();
542 self.rtime_expires = ::std::option::Option::None;
543 self.special_fields.clear();
544 }
545
546 fn default_instance() -> &'static ParentalTemporaryPlaytimeRestrictions {
547 static instance: ParentalTemporaryPlaytimeRestrictions = ParentalTemporaryPlaytimeRestrictions {
548 restrictions: ::steam_vent_proto_common::protobuf::MessageField::none(),
549 rtime_expires: ::std::option::Option::None,
550 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
551 };
552 &instance
553 }
554}
555
556#[derive(PartialEq,Clone,Default,Debug)]
558pub struct ParentalSettings {
559 pub steamid: ::std::option::Option<u64>,
562 pub applist_base_id: ::std::option::Option<u32>,
564 pub applist_base_description: ::std::option::Option<::std::string::String>,
566 pub applist_base: ::std::vec::Vec<ParentalApp>,
568 pub applist_custom: ::std::vec::Vec<ParentalApp>,
570 pub passwordhashtype: ::std::option::Option<u32>,
572 pub salt: ::std::option::Option<::std::vec::Vec<u8>>,
574 pub passwordhash: ::std::option::Option<::std::vec::Vec<u8>>,
576 pub is_enabled: ::std::option::Option<bool>,
578 pub enabled_features: ::std::option::Option<u32>,
580 pub recovery_email: ::std::option::Option<::std::string::String>,
582 pub is_site_license_lock: ::std::option::Option<bool>,
584 pub temporary_enabled_features: ::std::option::Option<u32>,
586 pub rtime_temporary_feature_expiration: ::std::option::Option<u32>,
588 pub playtime_restrictions: ::steam_vent_proto_common::protobuf::MessageField<ParentalPlaytimeRestrictions>,
590 pub temporary_playtime_restrictions: ::steam_vent_proto_common::protobuf::MessageField<ParentalTemporaryPlaytimeRestrictions>,
592 pub excluded_store_content_descriptors: ::std::vec::Vec<u32>,
594 pub excluded_community_content_descriptors: ::std::vec::Vec<u32>,
596 pub utility_appids: ::std::vec::Vec<u32>,
598 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
601}
602
603impl<'a> ::std::default::Default for &'a ParentalSettings {
604 fn default() -> &'a ParentalSettings {
605 <ParentalSettings as ::steam_vent_proto_common::protobuf::Message>::default_instance()
606 }
607}
608
609impl ParentalSettings {
610 pub fn new() -> ParentalSettings {
611 ::std::default::Default::default()
612 }
613
614 pub fn steamid(&self) -> u64 {
617 self.steamid.unwrap_or(0)
618 }
619
620 pub fn clear_steamid(&mut self) {
621 self.steamid = ::std::option::Option::None;
622 }
623
624 pub fn has_steamid(&self) -> bool {
625 self.steamid.is_some()
626 }
627
628 pub fn set_steamid(&mut self, v: u64) {
630 self.steamid = ::std::option::Option::Some(v);
631 }
632
633 pub fn applist_base_id(&self) -> u32 {
636 self.applist_base_id.unwrap_or(0)
637 }
638
639 pub fn clear_applist_base_id(&mut self) {
640 self.applist_base_id = ::std::option::Option::None;
641 }
642
643 pub fn has_applist_base_id(&self) -> bool {
644 self.applist_base_id.is_some()
645 }
646
647 pub fn set_applist_base_id(&mut self, v: u32) {
649 self.applist_base_id = ::std::option::Option::Some(v);
650 }
651
652 pub fn applist_base_description(&self) -> &str {
655 match self.applist_base_description.as_ref() {
656 Some(v) => v,
657 None => "",
658 }
659 }
660
661 pub fn clear_applist_base_description(&mut self) {
662 self.applist_base_description = ::std::option::Option::None;
663 }
664
665 pub fn has_applist_base_description(&self) -> bool {
666 self.applist_base_description.is_some()
667 }
668
669 pub fn set_applist_base_description(&mut self, v: ::std::string::String) {
671 self.applist_base_description = ::std::option::Option::Some(v);
672 }
673
674 pub fn mut_applist_base_description(&mut self) -> &mut ::std::string::String {
677 if self.applist_base_description.is_none() {
678 self.applist_base_description = ::std::option::Option::Some(::std::string::String::new());
679 }
680 self.applist_base_description.as_mut().unwrap()
681 }
682
683 pub fn take_applist_base_description(&mut self) -> ::std::string::String {
685 self.applist_base_description.take().unwrap_or_else(|| ::std::string::String::new())
686 }
687
688 pub fn passwordhashtype(&self) -> u32 {
691 self.passwordhashtype.unwrap_or(0)
692 }
693
694 pub fn clear_passwordhashtype(&mut self) {
695 self.passwordhashtype = ::std::option::Option::None;
696 }
697
698 pub fn has_passwordhashtype(&self) -> bool {
699 self.passwordhashtype.is_some()
700 }
701
702 pub fn set_passwordhashtype(&mut self, v: u32) {
704 self.passwordhashtype = ::std::option::Option::Some(v);
705 }
706
707 pub fn salt(&self) -> &[u8] {
710 match self.salt.as_ref() {
711 Some(v) => v,
712 None => &[],
713 }
714 }
715
716 pub fn clear_salt(&mut self) {
717 self.salt = ::std::option::Option::None;
718 }
719
720 pub fn has_salt(&self) -> bool {
721 self.salt.is_some()
722 }
723
724 pub fn set_salt(&mut self, v: ::std::vec::Vec<u8>) {
726 self.salt = ::std::option::Option::Some(v);
727 }
728
729 pub fn mut_salt(&mut self) -> &mut ::std::vec::Vec<u8> {
732 if self.salt.is_none() {
733 self.salt = ::std::option::Option::Some(::std::vec::Vec::new());
734 }
735 self.salt.as_mut().unwrap()
736 }
737
738 pub fn take_salt(&mut self) -> ::std::vec::Vec<u8> {
740 self.salt.take().unwrap_or_else(|| ::std::vec::Vec::new())
741 }
742
743 pub fn passwordhash(&self) -> &[u8] {
746 match self.passwordhash.as_ref() {
747 Some(v) => v,
748 None => &[],
749 }
750 }
751
752 pub fn clear_passwordhash(&mut self) {
753 self.passwordhash = ::std::option::Option::None;
754 }
755
756 pub fn has_passwordhash(&self) -> bool {
757 self.passwordhash.is_some()
758 }
759
760 pub fn set_passwordhash(&mut self, v: ::std::vec::Vec<u8>) {
762 self.passwordhash = ::std::option::Option::Some(v);
763 }
764
765 pub fn mut_passwordhash(&mut self) -> &mut ::std::vec::Vec<u8> {
768 if self.passwordhash.is_none() {
769 self.passwordhash = ::std::option::Option::Some(::std::vec::Vec::new());
770 }
771 self.passwordhash.as_mut().unwrap()
772 }
773
774 pub fn take_passwordhash(&mut self) -> ::std::vec::Vec<u8> {
776 self.passwordhash.take().unwrap_or_else(|| ::std::vec::Vec::new())
777 }
778
779 pub fn is_enabled(&self) -> bool {
782 self.is_enabled.unwrap_or(false)
783 }
784
785 pub fn clear_is_enabled(&mut self) {
786 self.is_enabled = ::std::option::Option::None;
787 }
788
789 pub fn has_is_enabled(&self) -> bool {
790 self.is_enabled.is_some()
791 }
792
793 pub fn set_is_enabled(&mut self, v: bool) {
795 self.is_enabled = ::std::option::Option::Some(v);
796 }
797
798 pub fn enabled_features(&self) -> u32 {
801 self.enabled_features.unwrap_or(0)
802 }
803
804 pub fn clear_enabled_features(&mut self) {
805 self.enabled_features = ::std::option::Option::None;
806 }
807
808 pub fn has_enabled_features(&self) -> bool {
809 self.enabled_features.is_some()
810 }
811
812 pub fn set_enabled_features(&mut self, v: u32) {
814 self.enabled_features = ::std::option::Option::Some(v);
815 }
816
817 pub fn recovery_email(&self) -> &str {
820 match self.recovery_email.as_ref() {
821 Some(v) => v,
822 None => "",
823 }
824 }
825
826 pub fn clear_recovery_email(&mut self) {
827 self.recovery_email = ::std::option::Option::None;
828 }
829
830 pub fn has_recovery_email(&self) -> bool {
831 self.recovery_email.is_some()
832 }
833
834 pub fn set_recovery_email(&mut self, v: ::std::string::String) {
836 self.recovery_email = ::std::option::Option::Some(v);
837 }
838
839 pub fn mut_recovery_email(&mut self) -> &mut ::std::string::String {
842 if self.recovery_email.is_none() {
843 self.recovery_email = ::std::option::Option::Some(::std::string::String::new());
844 }
845 self.recovery_email.as_mut().unwrap()
846 }
847
848 pub fn take_recovery_email(&mut self) -> ::std::string::String {
850 self.recovery_email.take().unwrap_or_else(|| ::std::string::String::new())
851 }
852
853 pub fn is_site_license_lock(&self) -> bool {
856 self.is_site_license_lock.unwrap_or(false)
857 }
858
859 pub fn clear_is_site_license_lock(&mut self) {
860 self.is_site_license_lock = ::std::option::Option::None;
861 }
862
863 pub fn has_is_site_license_lock(&self) -> bool {
864 self.is_site_license_lock.is_some()
865 }
866
867 pub fn set_is_site_license_lock(&mut self, v: bool) {
869 self.is_site_license_lock = ::std::option::Option::Some(v);
870 }
871
872 pub fn temporary_enabled_features(&self) -> u32 {
875 self.temporary_enabled_features.unwrap_or(0)
876 }
877
878 pub fn clear_temporary_enabled_features(&mut self) {
879 self.temporary_enabled_features = ::std::option::Option::None;
880 }
881
882 pub fn has_temporary_enabled_features(&self) -> bool {
883 self.temporary_enabled_features.is_some()
884 }
885
886 pub fn set_temporary_enabled_features(&mut self, v: u32) {
888 self.temporary_enabled_features = ::std::option::Option::Some(v);
889 }
890
891 pub fn rtime_temporary_feature_expiration(&self) -> u32 {
894 self.rtime_temporary_feature_expiration.unwrap_or(0)
895 }
896
897 pub fn clear_rtime_temporary_feature_expiration(&mut self) {
898 self.rtime_temporary_feature_expiration = ::std::option::Option::None;
899 }
900
901 pub fn has_rtime_temporary_feature_expiration(&self) -> bool {
902 self.rtime_temporary_feature_expiration.is_some()
903 }
904
905 pub fn set_rtime_temporary_feature_expiration(&mut self, v: u32) {
907 self.rtime_temporary_feature_expiration = ::std::option::Option::Some(v);
908 }
909}
910
911impl ::steam_vent_proto_common::protobuf::Message for ParentalSettings {
912 const NAME: &'static str = "ParentalSettings";
913
914 fn is_initialized(&self) -> bool {
915 true
916 }
917
918 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
919 while let Some(tag) = is.read_raw_tag_or_eof()? {
920 match tag {
921 9 => {
922 self.steamid = ::std::option::Option::Some(is.read_fixed64()?);
923 },
924 16 => {
925 self.applist_base_id = ::std::option::Option::Some(is.read_uint32()?);
926 },
927 26 => {
928 self.applist_base_description = ::std::option::Option::Some(is.read_string()?);
929 },
930 34 => {
931 self.applist_base.push(is.read_message()?);
932 },
933 42 => {
934 self.applist_custom.push(is.read_message()?);
935 },
936 48 => {
937 self.passwordhashtype = ::std::option::Option::Some(is.read_uint32()?);
938 },
939 58 => {
940 self.salt = ::std::option::Option::Some(is.read_bytes()?);
941 },
942 66 => {
943 self.passwordhash = ::std::option::Option::Some(is.read_bytes()?);
944 },
945 72 => {
946 self.is_enabled = ::std::option::Option::Some(is.read_bool()?);
947 },
948 80 => {
949 self.enabled_features = ::std::option::Option::Some(is.read_uint32()?);
950 },
951 90 => {
952 self.recovery_email = ::std::option::Option::Some(is.read_string()?);
953 },
954 96 => {
955 self.is_site_license_lock = ::std::option::Option::Some(is.read_bool()?);
956 },
957 104 => {
958 self.temporary_enabled_features = ::std::option::Option::Some(is.read_uint32()?);
959 },
960 112 => {
961 self.rtime_temporary_feature_expiration = ::std::option::Option::Some(is.read_uint32()?);
962 },
963 122 => {
964 ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.playtime_restrictions)?;
965 },
966 130 => {
967 ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.temporary_playtime_restrictions)?;
968 },
969 138 => {
970 is.read_repeated_packed_uint32_into(&mut self.excluded_store_content_descriptors)?;
971 },
972 136 => {
973 self.excluded_store_content_descriptors.push(is.read_uint32()?);
974 },
975 146 => {
976 is.read_repeated_packed_uint32_into(&mut self.excluded_community_content_descriptors)?;
977 },
978 144 => {
979 self.excluded_community_content_descriptors.push(is.read_uint32()?);
980 },
981 154 => {
982 is.read_repeated_packed_uint32_into(&mut self.utility_appids)?;
983 },
984 152 => {
985 self.utility_appids.push(is.read_uint32()?);
986 },
987 tag => {
988 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
989 },
990 };
991 }
992 ::std::result::Result::Ok(())
993 }
994
995 #[allow(unused_variables)]
997 fn compute_size(&self) -> u64 {
998 let mut my_size = 0;
999 if let Some(v) = self.steamid {
1000 my_size += 1 + 8;
1001 }
1002 if let Some(v) = self.applist_base_id {
1003 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
1004 }
1005 if let Some(v) = self.applist_base_description.as_ref() {
1006 my_size += ::steam_vent_proto_common::protobuf::rt::string_size(3, &v);
1007 }
1008 for value in &self.applist_base {
1009 let len = value.compute_size();
1010 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
1011 };
1012 for value in &self.applist_custom {
1013 let len = value.compute_size();
1014 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
1015 };
1016 if let Some(v) = self.passwordhashtype {
1017 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(6, v);
1018 }
1019 if let Some(v) = self.salt.as_ref() {
1020 my_size += ::steam_vent_proto_common::protobuf::rt::bytes_size(7, &v);
1021 }
1022 if let Some(v) = self.passwordhash.as_ref() {
1023 my_size += ::steam_vent_proto_common::protobuf::rt::bytes_size(8, &v);
1024 }
1025 if let Some(v) = self.is_enabled {
1026 my_size += 1 + 1;
1027 }
1028 if let Some(v) = self.enabled_features {
1029 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(10, v);
1030 }
1031 if let Some(v) = self.recovery_email.as_ref() {
1032 my_size += ::steam_vent_proto_common::protobuf::rt::string_size(11, &v);
1033 }
1034 if let Some(v) = self.is_site_license_lock {
1035 my_size += 1 + 1;
1036 }
1037 if let Some(v) = self.temporary_enabled_features {
1038 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(13, v);
1039 }
1040 if let Some(v) = self.rtime_temporary_feature_expiration {
1041 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(14, v);
1042 }
1043 if let Some(v) = self.playtime_restrictions.as_ref() {
1044 let len = v.compute_size();
1045 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
1046 }
1047 if let Some(v) = self.temporary_playtime_restrictions.as_ref() {
1048 let len = v.compute_size();
1049 my_size += 2 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
1050 }
1051 for value in &self.excluded_store_content_descriptors {
1052 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(17, *value);
1053 };
1054 for value in &self.excluded_community_content_descriptors {
1055 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(18, *value);
1056 };
1057 for value in &self.utility_appids {
1058 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(19, *value);
1059 };
1060 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1061 self.special_fields.cached_size().set(my_size as u32);
1062 my_size
1063 }
1064
1065 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1066 if let Some(v) = self.steamid {
1067 os.write_fixed64(1, v)?;
1068 }
1069 if let Some(v) = self.applist_base_id {
1070 os.write_uint32(2, v)?;
1071 }
1072 if let Some(v) = self.applist_base_description.as_ref() {
1073 os.write_string(3, v)?;
1074 }
1075 for v in &self.applist_base {
1076 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
1077 };
1078 for v in &self.applist_custom {
1079 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
1080 };
1081 if let Some(v) = self.passwordhashtype {
1082 os.write_uint32(6, v)?;
1083 }
1084 if let Some(v) = self.salt.as_ref() {
1085 os.write_bytes(7, v)?;
1086 }
1087 if let Some(v) = self.passwordhash.as_ref() {
1088 os.write_bytes(8, v)?;
1089 }
1090 if let Some(v) = self.is_enabled {
1091 os.write_bool(9, v)?;
1092 }
1093 if let Some(v) = self.enabled_features {
1094 os.write_uint32(10, v)?;
1095 }
1096 if let Some(v) = self.recovery_email.as_ref() {
1097 os.write_string(11, v)?;
1098 }
1099 if let Some(v) = self.is_site_license_lock {
1100 os.write_bool(12, v)?;
1101 }
1102 if let Some(v) = self.temporary_enabled_features {
1103 os.write_uint32(13, v)?;
1104 }
1105 if let Some(v) = self.rtime_temporary_feature_expiration {
1106 os.write_uint32(14, v)?;
1107 }
1108 if let Some(v) = self.playtime_restrictions.as_ref() {
1109 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(15, v, os)?;
1110 }
1111 if let Some(v) = self.temporary_playtime_restrictions.as_ref() {
1112 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(16, v, os)?;
1113 }
1114 for v in &self.excluded_store_content_descriptors {
1115 os.write_uint32(17, *v)?;
1116 };
1117 for v in &self.excluded_community_content_descriptors {
1118 os.write_uint32(18, *v)?;
1119 };
1120 for v in &self.utility_appids {
1121 os.write_uint32(19, *v)?;
1122 };
1123 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1124 ::std::result::Result::Ok(())
1125 }
1126
1127 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
1128 &self.special_fields
1129 }
1130
1131 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
1132 &mut self.special_fields
1133 }
1134
1135 fn new() -> ParentalSettings {
1136 ParentalSettings::new()
1137 }
1138
1139 fn clear(&mut self) {
1140 self.steamid = ::std::option::Option::None;
1141 self.applist_base_id = ::std::option::Option::None;
1142 self.applist_base_description = ::std::option::Option::None;
1143 self.applist_base.clear();
1144 self.applist_custom.clear();
1145 self.passwordhashtype = ::std::option::Option::None;
1146 self.salt = ::std::option::Option::None;
1147 self.passwordhash = ::std::option::Option::None;
1148 self.is_enabled = ::std::option::Option::None;
1149 self.enabled_features = ::std::option::Option::None;
1150 self.recovery_email = ::std::option::Option::None;
1151 self.is_site_license_lock = ::std::option::Option::None;
1152 self.temporary_enabled_features = ::std::option::Option::None;
1153 self.rtime_temporary_feature_expiration = ::std::option::Option::None;
1154 self.playtime_restrictions.clear();
1155 self.temporary_playtime_restrictions.clear();
1156 self.excluded_store_content_descriptors.clear();
1157 self.excluded_community_content_descriptors.clear();
1158 self.utility_appids.clear();
1159 self.special_fields.clear();
1160 }
1161
1162 fn default_instance() -> &'static ParentalSettings {
1163 static instance: ParentalSettings = ParentalSettings {
1164 steamid: ::std::option::Option::None,
1165 applist_base_id: ::std::option::Option::None,
1166 applist_base_description: ::std::option::Option::None,
1167 applist_base: ::std::vec::Vec::new(),
1168 applist_custom: ::std::vec::Vec::new(),
1169 passwordhashtype: ::std::option::Option::None,
1170 salt: ::std::option::Option::None,
1171 passwordhash: ::std::option::Option::None,
1172 is_enabled: ::std::option::Option::None,
1173 enabled_features: ::std::option::Option::None,
1174 recovery_email: ::std::option::Option::None,
1175 is_site_license_lock: ::std::option::Option::None,
1176 temporary_enabled_features: ::std::option::Option::None,
1177 rtime_temporary_feature_expiration: ::std::option::Option::None,
1178 playtime_restrictions: ::steam_vent_proto_common::protobuf::MessageField::none(),
1179 temporary_playtime_restrictions: ::steam_vent_proto_common::protobuf::MessageField::none(),
1180 excluded_store_content_descriptors: ::std::vec::Vec::new(),
1181 excluded_community_content_descriptors: ::std::vec::Vec::new(),
1182 utility_appids: ::std::vec::Vec::new(),
1183 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
1184 };
1185 &instance
1186 }
1187}
1188
1189#[derive(PartialEq,Clone,Default,Debug)]
1191pub struct ParentalFeatureRequest {
1192 pub requestid: ::std::option::Option<u64>,
1195 pub family_groupid: ::std::option::Option<u64>,
1197 pub steamid: ::std::option::Option<u64>,
1199 pub features: ::std::option::Option<u32>,
1201 pub time_requested: ::std::option::Option<u32>,
1203 pub approved: ::std::option::Option<bool>,
1205 pub steamid_responder: ::std::option::Option<u64>,
1207 pub time_responded: ::std::option::Option<u32>,
1209 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
1212}
1213
1214impl<'a> ::std::default::Default for &'a ParentalFeatureRequest {
1215 fn default() -> &'a ParentalFeatureRequest {
1216 <ParentalFeatureRequest as ::steam_vent_proto_common::protobuf::Message>::default_instance()
1217 }
1218}
1219
1220impl ParentalFeatureRequest {
1221 pub fn new() -> ParentalFeatureRequest {
1222 ::std::default::Default::default()
1223 }
1224
1225 pub fn requestid(&self) -> u64 {
1228 self.requestid.unwrap_or(0)
1229 }
1230
1231 pub fn clear_requestid(&mut self) {
1232 self.requestid = ::std::option::Option::None;
1233 }
1234
1235 pub fn has_requestid(&self) -> bool {
1236 self.requestid.is_some()
1237 }
1238
1239 pub fn set_requestid(&mut self, v: u64) {
1241 self.requestid = ::std::option::Option::Some(v);
1242 }
1243
1244 pub fn family_groupid(&self) -> u64 {
1247 self.family_groupid.unwrap_or(0)
1248 }
1249
1250 pub fn clear_family_groupid(&mut self) {
1251 self.family_groupid = ::std::option::Option::None;
1252 }
1253
1254 pub fn has_family_groupid(&self) -> bool {
1255 self.family_groupid.is_some()
1256 }
1257
1258 pub fn set_family_groupid(&mut self, v: u64) {
1260 self.family_groupid = ::std::option::Option::Some(v);
1261 }
1262
1263 pub fn steamid(&self) -> u64 {
1266 self.steamid.unwrap_or(0)
1267 }
1268
1269 pub fn clear_steamid(&mut self) {
1270 self.steamid = ::std::option::Option::None;
1271 }
1272
1273 pub fn has_steamid(&self) -> bool {
1274 self.steamid.is_some()
1275 }
1276
1277 pub fn set_steamid(&mut self, v: u64) {
1279 self.steamid = ::std::option::Option::Some(v);
1280 }
1281
1282 pub fn features(&self) -> u32 {
1285 self.features.unwrap_or(0)
1286 }
1287
1288 pub fn clear_features(&mut self) {
1289 self.features = ::std::option::Option::None;
1290 }
1291
1292 pub fn has_features(&self) -> bool {
1293 self.features.is_some()
1294 }
1295
1296 pub fn set_features(&mut self, v: u32) {
1298 self.features = ::std::option::Option::Some(v);
1299 }
1300
1301 pub fn time_requested(&self) -> u32 {
1304 self.time_requested.unwrap_or(0)
1305 }
1306
1307 pub fn clear_time_requested(&mut self) {
1308 self.time_requested = ::std::option::Option::None;
1309 }
1310
1311 pub fn has_time_requested(&self) -> bool {
1312 self.time_requested.is_some()
1313 }
1314
1315 pub fn set_time_requested(&mut self, v: u32) {
1317 self.time_requested = ::std::option::Option::Some(v);
1318 }
1319
1320 pub fn approved(&self) -> bool {
1323 self.approved.unwrap_or(false)
1324 }
1325
1326 pub fn clear_approved(&mut self) {
1327 self.approved = ::std::option::Option::None;
1328 }
1329
1330 pub fn has_approved(&self) -> bool {
1331 self.approved.is_some()
1332 }
1333
1334 pub fn set_approved(&mut self, v: bool) {
1336 self.approved = ::std::option::Option::Some(v);
1337 }
1338
1339 pub fn steamid_responder(&self) -> u64 {
1342 self.steamid_responder.unwrap_or(0)
1343 }
1344
1345 pub fn clear_steamid_responder(&mut self) {
1346 self.steamid_responder = ::std::option::Option::None;
1347 }
1348
1349 pub fn has_steamid_responder(&self) -> bool {
1350 self.steamid_responder.is_some()
1351 }
1352
1353 pub fn set_steamid_responder(&mut self, v: u64) {
1355 self.steamid_responder = ::std::option::Option::Some(v);
1356 }
1357
1358 pub fn time_responded(&self) -> u32 {
1361 self.time_responded.unwrap_or(0)
1362 }
1363
1364 pub fn clear_time_responded(&mut self) {
1365 self.time_responded = ::std::option::Option::None;
1366 }
1367
1368 pub fn has_time_responded(&self) -> bool {
1369 self.time_responded.is_some()
1370 }
1371
1372 pub fn set_time_responded(&mut self, v: u32) {
1374 self.time_responded = ::std::option::Option::Some(v);
1375 }
1376}
1377
1378impl ::steam_vent_proto_common::protobuf::Message for ParentalFeatureRequest {
1379 const NAME: &'static str = "ParentalFeatureRequest";
1380
1381 fn is_initialized(&self) -> bool {
1382 true
1383 }
1384
1385 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1386 while let Some(tag) = is.read_raw_tag_or_eof()? {
1387 match tag {
1388 9 => {
1389 self.requestid = ::std::option::Option::Some(is.read_fixed64()?);
1390 },
1391 17 => {
1392 self.family_groupid = ::std::option::Option::Some(is.read_fixed64()?);
1393 },
1394 25 => {
1395 self.steamid = ::std::option::Option::Some(is.read_fixed64()?);
1396 },
1397 32 => {
1398 self.features = ::std::option::Option::Some(is.read_uint32()?);
1399 },
1400 40 => {
1401 self.time_requested = ::std::option::Option::Some(is.read_uint32()?);
1402 },
1403 48 => {
1404 self.approved = ::std::option::Option::Some(is.read_bool()?);
1405 },
1406 57 => {
1407 self.steamid_responder = ::std::option::Option::Some(is.read_fixed64()?);
1408 },
1409 64 => {
1410 self.time_responded = ::std::option::Option::Some(is.read_uint32()?);
1411 },
1412 tag => {
1413 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1414 },
1415 };
1416 }
1417 ::std::result::Result::Ok(())
1418 }
1419
1420 #[allow(unused_variables)]
1422 fn compute_size(&self) -> u64 {
1423 let mut my_size = 0;
1424 if let Some(v) = self.requestid {
1425 my_size += 1 + 8;
1426 }
1427 if let Some(v) = self.family_groupid {
1428 my_size += 1 + 8;
1429 }
1430 if let Some(v) = self.steamid {
1431 my_size += 1 + 8;
1432 }
1433 if let Some(v) = self.features {
1434 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(4, v);
1435 }
1436 if let Some(v) = self.time_requested {
1437 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(5, v);
1438 }
1439 if let Some(v) = self.approved {
1440 my_size += 1 + 1;
1441 }
1442 if let Some(v) = self.steamid_responder {
1443 my_size += 1 + 8;
1444 }
1445 if let Some(v) = self.time_responded {
1446 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(8, v);
1447 }
1448 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1449 self.special_fields.cached_size().set(my_size as u32);
1450 my_size
1451 }
1452
1453 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1454 if let Some(v) = self.requestid {
1455 os.write_fixed64(1, v)?;
1456 }
1457 if let Some(v) = self.family_groupid {
1458 os.write_fixed64(2, v)?;
1459 }
1460 if let Some(v) = self.steamid {
1461 os.write_fixed64(3, v)?;
1462 }
1463 if let Some(v) = self.features {
1464 os.write_uint32(4, v)?;
1465 }
1466 if let Some(v) = self.time_requested {
1467 os.write_uint32(5, v)?;
1468 }
1469 if let Some(v) = self.approved {
1470 os.write_bool(6, v)?;
1471 }
1472 if let Some(v) = self.steamid_responder {
1473 os.write_fixed64(7, v)?;
1474 }
1475 if let Some(v) = self.time_responded {
1476 os.write_uint32(8, v)?;
1477 }
1478 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1479 ::std::result::Result::Ok(())
1480 }
1481
1482 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
1483 &self.special_fields
1484 }
1485
1486 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
1487 &mut self.special_fields
1488 }
1489
1490 fn new() -> ParentalFeatureRequest {
1491 ParentalFeatureRequest::new()
1492 }
1493
1494 fn clear(&mut self) {
1495 self.requestid = ::std::option::Option::None;
1496 self.family_groupid = ::std::option::Option::None;
1497 self.steamid = ::std::option::Option::None;
1498 self.features = ::std::option::Option::None;
1499 self.time_requested = ::std::option::Option::None;
1500 self.approved = ::std::option::Option::None;
1501 self.steamid_responder = ::std::option::Option::None;
1502 self.time_responded = ::std::option::Option::None;
1503 self.special_fields.clear();
1504 }
1505
1506 fn default_instance() -> &'static ParentalFeatureRequest {
1507 static instance: ParentalFeatureRequest = ParentalFeatureRequest {
1508 requestid: ::std::option::Option::None,
1509 family_groupid: ::std::option::Option::None,
1510 steamid: ::std::option::Option::None,
1511 features: ::std::option::Option::None,
1512 time_requested: ::std::option::Option::None,
1513 approved: ::std::option::Option::None,
1514 steamid_responder: ::std::option::Option::None,
1515 time_responded: ::std::option::Option::None,
1516 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
1517 };
1518 &instance
1519 }
1520}
1521
1522#[derive(PartialEq,Clone,Default,Debug)]
1524pub struct ParentalPlaytimeRequest {
1525 pub requestid: ::std::option::Option<u64>,
1528 pub family_groupid: ::std::option::Option<u64>,
1530 pub steamid: ::std::option::Option<u64>,
1532 pub current_playtime_restrictions: ::steam_vent_proto_common::protobuf::MessageField<ParentalPlaytimeDay>,
1534 pub time_expires: ::std::option::Option<u32>,
1536 pub time_requested: ::std::option::Option<u32>,
1538 pub approved: ::std::option::Option<bool>,
1540 pub steamid_responder: ::std::option::Option<u64>,
1542 pub time_responded: ::std::option::Option<u32>,
1544 pub restrictions_approved: ::steam_vent_proto_common::protobuf::MessageField<ParentalTemporaryPlaytimeRestrictions>,
1546 pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
1549}
1550
1551impl<'a> ::std::default::Default for &'a ParentalPlaytimeRequest {
1552 fn default() -> &'a ParentalPlaytimeRequest {
1553 <ParentalPlaytimeRequest as ::steam_vent_proto_common::protobuf::Message>::default_instance()
1554 }
1555}
1556
1557impl ParentalPlaytimeRequest {
1558 pub fn new() -> ParentalPlaytimeRequest {
1559 ::std::default::Default::default()
1560 }
1561
1562 pub fn requestid(&self) -> u64 {
1565 self.requestid.unwrap_or(0)
1566 }
1567
1568 pub fn clear_requestid(&mut self) {
1569 self.requestid = ::std::option::Option::None;
1570 }
1571
1572 pub fn has_requestid(&self) -> bool {
1573 self.requestid.is_some()
1574 }
1575
1576 pub fn set_requestid(&mut self, v: u64) {
1578 self.requestid = ::std::option::Option::Some(v);
1579 }
1580
1581 pub fn family_groupid(&self) -> u64 {
1584 self.family_groupid.unwrap_or(0)
1585 }
1586
1587 pub fn clear_family_groupid(&mut self) {
1588 self.family_groupid = ::std::option::Option::None;
1589 }
1590
1591 pub fn has_family_groupid(&self) -> bool {
1592 self.family_groupid.is_some()
1593 }
1594
1595 pub fn set_family_groupid(&mut self, v: u64) {
1597 self.family_groupid = ::std::option::Option::Some(v);
1598 }
1599
1600 pub fn steamid(&self) -> u64 {
1603 self.steamid.unwrap_or(0)
1604 }
1605
1606 pub fn clear_steamid(&mut self) {
1607 self.steamid = ::std::option::Option::None;
1608 }
1609
1610 pub fn has_steamid(&self) -> bool {
1611 self.steamid.is_some()
1612 }
1613
1614 pub fn set_steamid(&mut self, v: u64) {
1616 self.steamid = ::std::option::Option::Some(v);
1617 }
1618
1619 pub fn time_expires(&self) -> u32 {
1622 self.time_expires.unwrap_or(0)
1623 }
1624
1625 pub fn clear_time_expires(&mut self) {
1626 self.time_expires = ::std::option::Option::None;
1627 }
1628
1629 pub fn has_time_expires(&self) -> bool {
1630 self.time_expires.is_some()
1631 }
1632
1633 pub fn set_time_expires(&mut self, v: u32) {
1635 self.time_expires = ::std::option::Option::Some(v);
1636 }
1637
1638 pub fn time_requested(&self) -> u32 {
1641 self.time_requested.unwrap_or(0)
1642 }
1643
1644 pub fn clear_time_requested(&mut self) {
1645 self.time_requested = ::std::option::Option::None;
1646 }
1647
1648 pub fn has_time_requested(&self) -> bool {
1649 self.time_requested.is_some()
1650 }
1651
1652 pub fn set_time_requested(&mut self, v: u32) {
1654 self.time_requested = ::std::option::Option::Some(v);
1655 }
1656
1657 pub fn approved(&self) -> bool {
1660 self.approved.unwrap_or(false)
1661 }
1662
1663 pub fn clear_approved(&mut self) {
1664 self.approved = ::std::option::Option::None;
1665 }
1666
1667 pub fn has_approved(&self) -> bool {
1668 self.approved.is_some()
1669 }
1670
1671 pub fn set_approved(&mut self, v: bool) {
1673 self.approved = ::std::option::Option::Some(v);
1674 }
1675
1676 pub fn steamid_responder(&self) -> u64 {
1679 self.steamid_responder.unwrap_or(0)
1680 }
1681
1682 pub fn clear_steamid_responder(&mut self) {
1683 self.steamid_responder = ::std::option::Option::None;
1684 }
1685
1686 pub fn has_steamid_responder(&self) -> bool {
1687 self.steamid_responder.is_some()
1688 }
1689
1690 pub fn set_steamid_responder(&mut self, v: u64) {
1692 self.steamid_responder = ::std::option::Option::Some(v);
1693 }
1694
1695 pub fn time_responded(&self) -> u32 {
1698 self.time_responded.unwrap_or(0)
1699 }
1700
1701 pub fn clear_time_responded(&mut self) {
1702 self.time_responded = ::std::option::Option::None;
1703 }
1704
1705 pub fn has_time_responded(&self) -> bool {
1706 self.time_responded.is_some()
1707 }
1708
1709 pub fn set_time_responded(&mut self, v: u32) {
1711 self.time_responded = ::std::option::Option::Some(v);
1712 }
1713}
1714
1715impl ::steam_vent_proto_common::protobuf::Message for ParentalPlaytimeRequest {
1716 const NAME: &'static str = "ParentalPlaytimeRequest";
1717
1718 fn is_initialized(&self) -> bool {
1719 true
1720 }
1721
1722 fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1723 while let Some(tag) = is.read_raw_tag_or_eof()? {
1724 match tag {
1725 9 => {
1726 self.requestid = ::std::option::Option::Some(is.read_fixed64()?);
1727 },
1728 17 => {
1729 self.family_groupid = ::std::option::Option::Some(is.read_fixed64()?);
1730 },
1731 25 => {
1732 self.steamid = ::std::option::Option::Some(is.read_fixed64()?);
1733 },
1734 34 => {
1735 ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.current_playtime_restrictions)?;
1736 },
1737 40 => {
1738 self.time_expires = ::std::option::Option::Some(is.read_uint32()?);
1739 },
1740 48 => {
1741 self.time_requested = ::std::option::Option::Some(is.read_uint32()?);
1742 },
1743 56 => {
1744 self.approved = ::std::option::Option::Some(is.read_bool()?);
1745 },
1746 65 => {
1747 self.steamid_responder = ::std::option::Option::Some(is.read_fixed64()?);
1748 },
1749 72 => {
1750 self.time_responded = ::std::option::Option::Some(is.read_uint32()?);
1751 },
1752 82 => {
1753 ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.restrictions_approved)?;
1754 },
1755 tag => {
1756 ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1757 },
1758 };
1759 }
1760 ::std::result::Result::Ok(())
1761 }
1762
1763 #[allow(unused_variables)]
1765 fn compute_size(&self) -> u64 {
1766 let mut my_size = 0;
1767 if let Some(v) = self.requestid {
1768 my_size += 1 + 8;
1769 }
1770 if let Some(v) = self.family_groupid {
1771 my_size += 1 + 8;
1772 }
1773 if let Some(v) = self.steamid {
1774 my_size += 1 + 8;
1775 }
1776 if let Some(v) = self.current_playtime_restrictions.as_ref() {
1777 let len = v.compute_size();
1778 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
1779 }
1780 if let Some(v) = self.time_expires {
1781 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(5, v);
1782 }
1783 if let Some(v) = self.time_requested {
1784 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(6, v);
1785 }
1786 if let Some(v) = self.approved {
1787 my_size += 1 + 1;
1788 }
1789 if let Some(v) = self.steamid_responder {
1790 my_size += 1 + 8;
1791 }
1792 if let Some(v) = self.time_responded {
1793 my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(9, v);
1794 }
1795 if let Some(v) = self.restrictions_approved.as_ref() {
1796 let len = v.compute_size();
1797 my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
1798 }
1799 my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1800 self.special_fields.cached_size().set(my_size as u32);
1801 my_size
1802 }
1803
1804 fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
1805 if let Some(v) = self.requestid {
1806 os.write_fixed64(1, v)?;
1807 }
1808 if let Some(v) = self.family_groupid {
1809 os.write_fixed64(2, v)?;
1810 }
1811 if let Some(v) = self.steamid {
1812 os.write_fixed64(3, v)?;
1813 }
1814 if let Some(v) = self.current_playtime_restrictions.as_ref() {
1815 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
1816 }
1817 if let Some(v) = self.time_expires {
1818 os.write_uint32(5, v)?;
1819 }
1820 if let Some(v) = self.time_requested {
1821 os.write_uint32(6, v)?;
1822 }
1823 if let Some(v) = self.approved {
1824 os.write_bool(7, v)?;
1825 }
1826 if let Some(v) = self.steamid_responder {
1827 os.write_fixed64(8, v)?;
1828 }
1829 if let Some(v) = self.time_responded {
1830 os.write_uint32(9, v)?;
1831 }
1832 if let Some(v) = self.restrictions_approved.as_ref() {
1833 ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(10, v, os)?;
1834 }
1835 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1836 ::std::result::Result::Ok(())
1837 }
1838
1839 fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
1840 &self.special_fields
1841 }
1842
1843 fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
1844 &mut self.special_fields
1845 }
1846
1847 fn new() -> ParentalPlaytimeRequest {
1848 ParentalPlaytimeRequest::new()
1849 }
1850
1851 fn clear(&mut self) {
1852 self.requestid = ::std::option::Option::None;
1853 self.family_groupid = ::std::option::Option::None;
1854 self.steamid = ::std::option::Option::None;
1855 self.current_playtime_restrictions.clear();
1856 self.time_expires = ::std::option::Option::None;
1857 self.time_requested = ::std::option::Option::None;
1858 self.approved = ::std::option::Option::None;
1859 self.steamid_responder = ::std::option::Option::None;
1860 self.time_responded = ::std::option::Option::None;
1861 self.restrictions_approved.clear();
1862 self.special_fields.clear();
1863 }
1864
1865 fn default_instance() -> &'static ParentalPlaytimeRequest {
1866 static instance: ParentalPlaytimeRequest = ParentalPlaytimeRequest {
1867 requestid: ::std::option::Option::None,
1868 family_groupid: ::std::option::Option::None,
1869 steamid: ::std::option::Option::None,
1870 current_playtime_restrictions: ::steam_vent_proto_common::protobuf::MessageField::none(),
1871 time_expires: ::std::option::Option::None,
1872 time_requested: ::std::option::Option::None,
1873 approved: ::std::option::Option::None,
1874 steamid_responder: ::std::option::Option::None,
1875 time_responded: ::std::option::Option::None,
1876 restrictions_approved: ::steam_vent_proto_common::protobuf::MessageField::none(),
1877 special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
1878 };
1879 &instance
1880 }
1881}
1882
1883
1884const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
1885
1886#[allow(unused_imports)]
1887use crate::steammessages_base::*;
1888#[allow(unused_imports)]
1889use crate::enums::*;
1890impl ::steam_vent_proto_common::RpcMessage for ParentalApp {
1891 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1892 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1893 }
1894 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1895 use ::steam_vent_proto_common::protobuf::Message;
1896 self.write_to_writer(writer)
1897 }
1898 fn encode_size(&self) -> usize {
1899 use ::steam_vent_proto_common::protobuf::Message;
1900 self.compute_size() as usize
1901 }
1902}
1903impl ::steam_vent_proto_common::RpcMessage for ParentalPlaytimeDay {
1904 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1905 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1906 }
1907 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1908 use ::steam_vent_proto_common::protobuf::Message;
1909 self.write_to_writer(writer)
1910 }
1911 fn encode_size(&self) -> usize {
1912 use ::steam_vent_proto_common::protobuf::Message;
1913 self.compute_size() as usize
1914 }
1915}
1916impl ::steam_vent_proto_common::RpcMessage for ParentalPlaytimeRestrictions {
1917 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1918 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1919 }
1920 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1921 use ::steam_vent_proto_common::protobuf::Message;
1922 self.write_to_writer(writer)
1923 }
1924 fn encode_size(&self) -> usize {
1925 use ::steam_vent_proto_common::protobuf::Message;
1926 self.compute_size() as usize
1927 }
1928}
1929impl ::steam_vent_proto_common::RpcMessage for ParentalTemporaryPlaytimeRestrictions {
1930 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1931 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1932 }
1933 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1934 use ::steam_vent_proto_common::protobuf::Message;
1935 self.write_to_writer(writer)
1936 }
1937 fn encode_size(&self) -> usize {
1938 use ::steam_vent_proto_common::protobuf::Message;
1939 self.compute_size() as usize
1940 }
1941}
1942impl ::steam_vent_proto_common::RpcMessage for ParentalSettings {
1943 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1944 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1945 }
1946 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1947 use ::steam_vent_proto_common::protobuf::Message;
1948 self.write_to_writer(writer)
1949 }
1950 fn encode_size(&self) -> usize {
1951 use ::steam_vent_proto_common::protobuf::Message;
1952 self.compute_size() as usize
1953 }
1954}
1955impl ::steam_vent_proto_common::RpcMessage for ParentalFeatureRequest {
1956 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1957 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1958 }
1959 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1960 use ::steam_vent_proto_common::protobuf::Message;
1961 self.write_to_writer(writer)
1962 }
1963 fn encode_size(&self) -> usize {
1964 use ::steam_vent_proto_common::protobuf::Message;
1965 self.compute_size() as usize
1966 }
1967}
1968impl ::steam_vent_proto_common::RpcMessage for ParentalPlaytimeRequest {
1969 fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1970 <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1971 }
1972 fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1973 use ::steam_vent_proto_common::protobuf::Message;
1974 self.write_to_writer(writer)
1975 }
1976 fn encode_size(&self) -> usize {
1977 use ::steam_vent_proto_common::protobuf::Message;
1978 self.compute_size() as usize
1979 }
1980}