steam_vent_proto_steam/generated/
contenthubs.rs

1// This file is generated by rust-protobuf 3.5.1. Do not edit
2// .proto file is parsed by pure
3// @generated
4
5// https://github.com/rust-lang/rust-clippy/issues/702
6#![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
21//! Generated file from `contenthubs.proto`
22// Generated for lite runtime
23
24/// Generated files are compatible only with the same version
25/// of protobuf runtime.
26const _PROTOBUF_VERSION_CHECK: () = ::steam_vent_proto_common::protobuf::VERSION_3_5_1;
27
28// @@protoc_insertion_point(message:CStorePageFilter)
29#[derive(PartialEq,Clone,Default,Debug)]
30pub struct CStorePageFilter {
31    // message fields
32    // @@protoc_insertion_point(field:CStorePageFilter.sale_filter)
33    pub sale_filter: ::steam_vent_proto_common::protobuf::MessageField<cstore_page_filter::SalePageFilter>,
34    // @@protoc_insertion_point(field:CStorePageFilter.content_hub_filter)
35    pub content_hub_filter: ::steam_vent_proto_common::protobuf::MessageField<cstore_page_filter::ContentHubFilter>,
36    // @@protoc_insertion_point(field:CStorePageFilter.store_filters)
37    pub store_filters: ::std::vec::Vec<cstore_page_filter::StoreFilter>,
38    // special fields
39    // @@protoc_insertion_point(special_field:CStorePageFilter.special_fields)
40    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
41}
42
43impl<'a> ::std::default::Default for &'a CStorePageFilter {
44    fn default() -> &'a CStorePageFilter {
45        <CStorePageFilter as ::steam_vent_proto_common::protobuf::Message>::default_instance()
46    }
47}
48
49impl CStorePageFilter {
50    pub fn new() -> CStorePageFilter {
51        ::std::default::Default::default()
52    }
53}
54
55impl ::steam_vent_proto_common::protobuf::Message for CStorePageFilter {
56    const NAME: &'static str = "CStorePageFilter";
57
58    fn is_initialized(&self) -> bool {
59        true
60    }
61
62    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
63        while let Some(tag) = is.read_raw_tag_or_eof()? {
64            match tag {
65                10 => {
66                    ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.sale_filter)?;
67                },
68                18 => {
69                    ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.content_hub_filter)?;
70                },
71                26 => {
72                    self.store_filters.push(is.read_message()?);
73                },
74                tag => {
75                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
76                },
77            };
78        }
79        ::std::result::Result::Ok(())
80    }
81
82    // Compute sizes of nested messages
83    #[allow(unused_variables)]
84    fn compute_size(&self) -> u64 {
85        let mut my_size = 0;
86        if let Some(v) = self.sale_filter.as_ref() {
87            let len = v.compute_size();
88            my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
89        }
90        if let Some(v) = self.content_hub_filter.as_ref() {
91            let len = v.compute_size();
92            my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
93        }
94        for value in &self.store_filters {
95            let len = value.compute_size();
96            my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
97        };
98        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
99        self.special_fields.cached_size().set(my_size as u32);
100        my_size
101    }
102
103    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
104        if let Some(v) = self.sale_filter.as_ref() {
105            ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
106        }
107        if let Some(v) = self.content_hub_filter.as_ref() {
108            ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
109        }
110        for v in &self.store_filters {
111            ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
112        };
113        os.write_unknown_fields(self.special_fields.unknown_fields())?;
114        ::std::result::Result::Ok(())
115    }
116
117    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
118        &self.special_fields
119    }
120
121    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
122        &mut self.special_fields
123    }
124
125    fn new() -> CStorePageFilter {
126        CStorePageFilter::new()
127    }
128
129    fn clear(&mut self) {
130        self.sale_filter.clear();
131        self.content_hub_filter.clear();
132        self.store_filters.clear();
133        self.special_fields.clear();
134    }
135
136    fn default_instance() -> &'static CStorePageFilter {
137        static instance: CStorePageFilter = CStorePageFilter {
138            sale_filter: ::steam_vent_proto_common::protobuf::MessageField::none(),
139            content_hub_filter: ::steam_vent_proto_common::protobuf::MessageField::none(),
140            store_filters: ::std::vec::Vec::new(),
141            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
142        };
143        &instance
144    }
145}
146
147/// Nested message and enums of message `CStorePageFilter`
148pub mod cstore_page_filter {
149    // @@protoc_insertion_point(message:CStorePageFilter.SalePageFilter)
150    #[derive(PartialEq,Clone,Default,Debug)]
151    pub struct SalePageFilter {
152        // message fields
153        // @@protoc_insertion_point(field:CStorePageFilter.SalePageFilter.sale_tagid)
154        pub sale_tagid: ::std::option::Option<u32>,
155        // special fields
156        // @@protoc_insertion_point(special_field:CStorePageFilter.SalePageFilter.special_fields)
157        pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
158    }
159
160    impl<'a> ::std::default::Default for &'a SalePageFilter {
161        fn default() -> &'a SalePageFilter {
162            <SalePageFilter as ::steam_vent_proto_common::protobuf::Message>::default_instance()
163        }
164    }
165
166    impl SalePageFilter {
167        pub fn new() -> SalePageFilter {
168            ::std::default::Default::default()
169        }
170
171        // optional uint32 sale_tagid = 1;
172
173        pub fn sale_tagid(&self) -> u32 {
174            self.sale_tagid.unwrap_or(0)
175        }
176
177        pub fn clear_sale_tagid(&mut self) {
178            self.sale_tagid = ::std::option::Option::None;
179        }
180
181        pub fn has_sale_tagid(&self) -> bool {
182            self.sale_tagid.is_some()
183        }
184
185        // Param is passed by value, moved
186        pub fn set_sale_tagid(&mut self, v: u32) {
187            self.sale_tagid = ::std::option::Option::Some(v);
188        }
189    }
190
191    impl ::steam_vent_proto_common::protobuf::Message for SalePageFilter {
192        const NAME: &'static str = "SalePageFilter";
193
194        fn is_initialized(&self) -> bool {
195            true
196        }
197
198        fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
199            while let Some(tag) = is.read_raw_tag_or_eof()? {
200                match tag {
201                    8 => {
202                        self.sale_tagid = ::std::option::Option::Some(is.read_uint32()?);
203                    },
204                    tag => {
205                        ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
206                    },
207                };
208            }
209            ::std::result::Result::Ok(())
210        }
211
212        // Compute sizes of nested messages
213        #[allow(unused_variables)]
214        fn compute_size(&self) -> u64 {
215            let mut my_size = 0;
216            if let Some(v) = self.sale_tagid {
217                my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
218            }
219            my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
220            self.special_fields.cached_size().set(my_size as u32);
221            my_size
222        }
223
224        fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
225            if let Some(v) = self.sale_tagid {
226                os.write_uint32(1, v)?;
227            }
228            os.write_unknown_fields(self.special_fields.unknown_fields())?;
229            ::std::result::Result::Ok(())
230        }
231
232        fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
233            &self.special_fields
234        }
235
236        fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
237            &mut self.special_fields
238        }
239
240        fn new() -> SalePageFilter {
241            SalePageFilter::new()
242        }
243
244        fn clear(&mut self) {
245            self.sale_tagid = ::std::option::Option::None;
246            self.special_fields.clear();
247        }
248
249        fn default_instance() -> &'static SalePageFilter {
250            static instance: SalePageFilter = SalePageFilter {
251                sale_tagid: ::std::option::Option::None,
252                special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
253            };
254            &instance
255        }
256    }
257
258    // @@protoc_insertion_point(message:CStorePageFilter.ContentHubFilter)
259    #[derive(PartialEq,Clone,Default,Debug)]
260    pub struct ContentHubFilter {
261        // message fields
262        // @@protoc_insertion_point(field:CStorePageFilter.ContentHubFilter.hub_type)
263        pub hub_type: ::std::option::Option<::std::string::String>,
264        // @@protoc_insertion_point(field:CStorePageFilter.ContentHubFilter.hub_category)
265        pub hub_category: ::std::option::Option<::std::string::String>,
266        // @@protoc_insertion_point(field:CStorePageFilter.ContentHubFilter.hub_tagid)
267        pub hub_tagid: ::std::option::Option<u32>,
268        // @@protoc_insertion_point(field:CStorePageFilter.ContentHubFilter.discount_filter)
269        pub discount_filter: ::std::option::Option<::steam_vent_proto_common::protobuf::EnumOrUnknown<super::EContentHubDiscountFilterType>>,
270        // @@protoc_insertion_point(field:CStorePageFilter.ContentHubFilter.optin)
271        pub optin: ::steam_vent_proto_common::protobuf::MessageField<content_hub_filter::OptInInfo>,
272        // special fields
273        // @@protoc_insertion_point(special_field:CStorePageFilter.ContentHubFilter.special_fields)
274        pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
275    }
276
277    impl<'a> ::std::default::Default for &'a ContentHubFilter {
278        fn default() -> &'a ContentHubFilter {
279            <ContentHubFilter as ::steam_vent_proto_common::protobuf::Message>::default_instance()
280        }
281    }
282
283    impl ContentHubFilter {
284        pub fn new() -> ContentHubFilter {
285            ::std::default::Default::default()
286        }
287
288        // optional string hub_type = 1;
289
290        pub fn hub_type(&self) -> &str {
291            match self.hub_type.as_ref() {
292                Some(v) => v,
293                None => "",
294            }
295        }
296
297        pub fn clear_hub_type(&mut self) {
298            self.hub_type = ::std::option::Option::None;
299        }
300
301        pub fn has_hub_type(&self) -> bool {
302            self.hub_type.is_some()
303        }
304
305        // Param is passed by value, moved
306        pub fn set_hub_type(&mut self, v: ::std::string::String) {
307            self.hub_type = ::std::option::Option::Some(v);
308        }
309
310        // Mutable pointer to the field.
311        // If field is not initialized, it is initialized with default value first.
312        pub fn mut_hub_type(&mut self) -> &mut ::std::string::String {
313            if self.hub_type.is_none() {
314                self.hub_type = ::std::option::Option::Some(::std::string::String::new());
315            }
316            self.hub_type.as_mut().unwrap()
317        }
318
319        // Take field
320        pub fn take_hub_type(&mut self) -> ::std::string::String {
321            self.hub_type.take().unwrap_or_else(|| ::std::string::String::new())
322        }
323
324        // optional string hub_category = 2;
325
326        pub fn hub_category(&self) -> &str {
327            match self.hub_category.as_ref() {
328                Some(v) => v,
329                None => "",
330            }
331        }
332
333        pub fn clear_hub_category(&mut self) {
334            self.hub_category = ::std::option::Option::None;
335        }
336
337        pub fn has_hub_category(&self) -> bool {
338            self.hub_category.is_some()
339        }
340
341        // Param is passed by value, moved
342        pub fn set_hub_category(&mut self, v: ::std::string::String) {
343            self.hub_category = ::std::option::Option::Some(v);
344        }
345
346        // Mutable pointer to the field.
347        // If field is not initialized, it is initialized with default value first.
348        pub fn mut_hub_category(&mut self) -> &mut ::std::string::String {
349            if self.hub_category.is_none() {
350                self.hub_category = ::std::option::Option::Some(::std::string::String::new());
351            }
352            self.hub_category.as_mut().unwrap()
353        }
354
355        // Take field
356        pub fn take_hub_category(&mut self) -> ::std::string::String {
357            self.hub_category.take().unwrap_or_else(|| ::std::string::String::new())
358        }
359
360        // optional uint32 hub_tagid = 3;
361
362        pub fn hub_tagid(&self) -> u32 {
363            self.hub_tagid.unwrap_or(0)
364        }
365
366        pub fn clear_hub_tagid(&mut self) {
367            self.hub_tagid = ::std::option::Option::None;
368        }
369
370        pub fn has_hub_tagid(&self) -> bool {
371            self.hub_tagid.is_some()
372        }
373
374        // Param is passed by value, moved
375        pub fn set_hub_tagid(&mut self, v: u32) {
376            self.hub_tagid = ::std::option::Option::Some(v);
377        }
378
379        // optional .EContentHubDiscountFilterType discount_filter = 4;
380
381        pub fn discount_filter(&self) -> super::EContentHubDiscountFilterType {
382            match self.discount_filter {
383                Some(e) => e.enum_value_or(super::EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_None),
384                None => super::EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_None,
385            }
386        }
387
388        pub fn clear_discount_filter(&mut self) {
389            self.discount_filter = ::std::option::Option::None;
390        }
391
392        pub fn has_discount_filter(&self) -> bool {
393            self.discount_filter.is_some()
394        }
395
396        // Param is passed by value, moved
397        pub fn set_discount_filter(&mut self, v: super::EContentHubDiscountFilterType) {
398            self.discount_filter = ::std::option::Option::Some(::steam_vent_proto_common::protobuf::EnumOrUnknown::new(v));
399        }
400    }
401
402    impl ::steam_vent_proto_common::protobuf::Message for ContentHubFilter {
403        const NAME: &'static str = "ContentHubFilter";
404
405        fn is_initialized(&self) -> bool {
406            true
407        }
408
409        fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
410            while let Some(tag) = is.read_raw_tag_or_eof()? {
411                match tag {
412                    10 => {
413                        self.hub_type = ::std::option::Option::Some(is.read_string()?);
414                    },
415                    18 => {
416                        self.hub_category = ::std::option::Option::Some(is.read_string()?);
417                    },
418                    24 => {
419                        self.hub_tagid = ::std::option::Option::Some(is.read_uint32()?);
420                    },
421                    32 => {
422                        self.discount_filter = ::std::option::Option::Some(is.read_enum_or_unknown()?);
423                    },
424                    42 => {
425                        ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.optin)?;
426                    },
427                    tag => {
428                        ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
429                    },
430                };
431            }
432            ::std::result::Result::Ok(())
433        }
434
435        // Compute sizes of nested messages
436        #[allow(unused_variables)]
437        fn compute_size(&self) -> u64 {
438            let mut my_size = 0;
439            if let Some(v) = self.hub_type.as_ref() {
440                my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
441            }
442            if let Some(v) = self.hub_category.as_ref() {
443                my_size += ::steam_vent_proto_common::protobuf::rt::string_size(2, &v);
444            }
445            if let Some(v) = self.hub_tagid {
446                my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
447            }
448            if let Some(v) = self.discount_filter {
449                my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(4, v.value());
450            }
451            if let Some(v) = self.optin.as_ref() {
452                let len = v.compute_size();
453                my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
454            }
455            my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
456            self.special_fields.cached_size().set(my_size as u32);
457            my_size
458        }
459
460        fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
461            if let Some(v) = self.hub_type.as_ref() {
462                os.write_string(1, v)?;
463            }
464            if let Some(v) = self.hub_category.as_ref() {
465                os.write_string(2, v)?;
466            }
467            if let Some(v) = self.hub_tagid {
468                os.write_uint32(3, v)?;
469            }
470            if let Some(v) = self.discount_filter {
471                os.write_enum(4, ::steam_vent_proto_common::protobuf::EnumOrUnknown::value(&v))?;
472            }
473            if let Some(v) = self.optin.as_ref() {
474                ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
475            }
476            os.write_unknown_fields(self.special_fields.unknown_fields())?;
477            ::std::result::Result::Ok(())
478        }
479
480        fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
481            &self.special_fields
482        }
483
484        fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
485            &mut self.special_fields
486        }
487
488        fn new() -> ContentHubFilter {
489            ContentHubFilter::new()
490        }
491
492        fn clear(&mut self) {
493            self.hub_type = ::std::option::Option::None;
494            self.hub_category = ::std::option::Option::None;
495            self.hub_tagid = ::std::option::Option::None;
496            self.discount_filter = ::std::option::Option::None;
497            self.optin.clear();
498            self.special_fields.clear();
499        }
500
501        fn default_instance() -> &'static ContentHubFilter {
502            static instance: ContentHubFilter = ContentHubFilter {
503                hub_type: ::std::option::Option::None,
504                hub_category: ::std::option::Option::None,
505                hub_tagid: ::std::option::Option::None,
506                discount_filter: ::std::option::Option::None,
507                optin: ::steam_vent_proto_common::protobuf::MessageField::none(),
508                special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
509            };
510            &instance
511        }
512    }
513
514    /// Nested message and enums of message `ContentHubFilter`
515    pub mod content_hub_filter {
516        // @@protoc_insertion_point(message:CStorePageFilter.ContentHubFilter.OptInInfo)
517        #[derive(PartialEq,Clone,Default,Debug)]
518        pub struct OptInInfo {
519            // message fields
520            // @@protoc_insertion_point(field:CStorePageFilter.ContentHubFilter.OptInInfo.name)
521            pub name: ::std::option::Option<::std::string::String>,
522            // @@protoc_insertion_point(field:CStorePageFilter.ContentHubFilter.OptInInfo.optin_tagid)
523            pub optin_tagid: ::std::option::Option<u32>,
524            // @@protoc_insertion_point(field:CStorePageFilter.ContentHubFilter.OptInInfo.prune_tagid)
525            pub prune_tagid: ::std::option::Option<u32>,
526            // @@protoc_insertion_point(field:CStorePageFilter.ContentHubFilter.OptInInfo.optin_only)
527            pub optin_only: ::std::option::Option<bool>,
528            // special fields
529            // @@protoc_insertion_point(special_field:CStorePageFilter.ContentHubFilter.OptInInfo.special_fields)
530            pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
531        }
532
533        impl<'a> ::std::default::Default for &'a OptInInfo {
534            fn default() -> &'a OptInInfo {
535                <OptInInfo as ::steam_vent_proto_common::protobuf::Message>::default_instance()
536            }
537        }
538
539        impl OptInInfo {
540            pub fn new() -> OptInInfo {
541                ::std::default::Default::default()
542            }
543
544            // optional string name = 1;
545
546            pub fn name(&self) -> &str {
547                match self.name.as_ref() {
548                    Some(v) => v,
549                    None => "",
550                }
551            }
552
553            pub fn clear_name(&mut self) {
554                self.name = ::std::option::Option::None;
555            }
556
557            pub fn has_name(&self) -> bool {
558                self.name.is_some()
559            }
560
561            // Param is passed by value, moved
562            pub fn set_name(&mut self, v: ::std::string::String) {
563                self.name = ::std::option::Option::Some(v);
564            }
565
566            // Mutable pointer to the field.
567            // If field is not initialized, it is initialized with default value first.
568            pub fn mut_name(&mut self) -> &mut ::std::string::String {
569                if self.name.is_none() {
570                    self.name = ::std::option::Option::Some(::std::string::String::new());
571                }
572                self.name.as_mut().unwrap()
573            }
574
575            // Take field
576            pub fn take_name(&mut self) -> ::std::string::String {
577                self.name.take().unwrap_or_else(|| ::std::string::String::new())
578            }
579
580            // optional uint32 optin_tagid = 2;
581
582            pub fn optin_tagid(&self) -> u32 {
583                self.optin_tagid.unwrap_or(0)
584            }
585
586            pub fn clear_optin_tagid(&mut self) {
587                self.optin_tagid = ::std::option::Option::None;
588            }
589
590            pub fn has_optin_tagid(&self) -> bool {
591                self.optin_tagid.is_some()
592            }
593
594            // Param is passed by value, moved
595            pub fn set_optin_tagid(&mut self, v: u32) {
596                self.optin_tagid = ::std::option::Option::Some(v);
597            }
598
599            // optional uint32 prune_tagid = 3;
600
601            pub fn prune_tagid(&self) -> u32 {
602                self.prune_tagid.unwrap_or(0)
603            }
604
605            pub fn clear_prune_tagid(&mut self) {
606                self.prune_tagid = ::std::option::Option::None;
607            }
608
609            pub fn has_prune_tagid(&self) -> bool {
610                self.prune_tagid.is_some()
611            }
612
613            // Param is passed by value, moved
614            pub fn set_prune_tagid(&mut self, v: u32) {
615                self.prune_tagid = ::std::option::Option::Some(v);
616            }
617
618            // optional bool optin_only = 4;
619
620            pub fn optin_only(&self) -> bool {
621                self.optin_only.unwrap_or(false)
622            }
623
624            pub fn clear_optin_only(&mut self) {
625                self.optin_only = ::std::option::Option::None;
626            }
627
628            pub fn has_optin_only(&self) -> bool {
629                self.optin_only.is_some()
630            }
631
632            // Param is passed by value, moved
633            pub fn set_optin_only(&mut self, v: bool) {
634                self.optin_only = ::std::option::Option::Some(v);
635            }
636        }
637
638        impl ::steam_vent_proto_common::protobuf::Message for OptInInfo {
639            const NAME: &'static str = "OptInInfo";
640
641            fn is_initialized(&self) -> bool {
642                true
643            }
644
645            fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
646                while let Some(tag) = is.read_raw_tag_or_eof()? {
647                    match tag {
648                        10 => {
649                            self.name = ::std::option::Option::Some(is.read_string()?);
650                        },
651                        16 => {
652                            self.optin_tagid = ::std::option::Option::Some(is.read_uint32()?);
653                        },
654                        24 => {
655                            self.prune_tagid = ::std::option::Option::Some(is.read_uint32()?);
656                        },
657                        32 => {
658                            self.optin_only = ::std::option::Option::Some(is.read_bool()?);
659                        },
660                        tag => {
661                            ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
662                        },
663                    };
664                }
665                ::std::result::Result::Ok(())
666            }
667
668            // Compute sizes of nested messages
669            #[allow(unused_variables)]
670            fn compute_size(&self) -> u64 {
671                let mut my_size = 0;
672                if let Some(v) = self.name.as_ref() {
673                    my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
674                }
675                if let Some(v) = self.optin_tagid {
676                    my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
677                }
678                if let Some(v) = self.prune_tagid {
679                    my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
680                }
681                if let Some(v) = self.optin_only {
682                    my_size += 1 + 1;
683                }
684                my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
685                self.special_fields.cached_size().set(my_size as u32);
686                my_size
687            }
688
689            fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
690                if let Some(v) = self.name.as_ref() {
691                    os.write_string(1, v)?;
692                }
693                if let Some(v) = self.optin_tagid {
694                    os.write_uint32(2, v)?;
695                }
696                if let Some(v) = self.prune_tagid {
697                    os.write_uint32(3, v)?;
698                }
699                if let Some(v) = self.optin_only {
700                    os.write_bool(4, v)?;
701                }
702                os.write_unknown_fields(self.special_fields.unknown_fields())?;
703                ::std::result::Result::Ok(())
704            }
705
706            fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
707                &self.special_fields
708            }
709
710            fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
711                &mut self.special_fields
712            }
713
714            fn new() -> OptInInfo {
715                OptInInfo::new()
716            }
717
718            fn clear(&mut self) {
719                self.name = ::std::option::Option::None;
720                self.optin_tagid = ::std::option::Option::None;
721                self.prune_tagid = ::std::option::Option::None;
722                self.optin_only = ::std::option::Option::None;
723                self.special_fields.clear();
724            }
725
726            fn default_instance() -> &'static OptInInfo {
727                static instance: OptInInfo = OptInInfo {
728                    name: ::std::option::Option::None,
729                    optin_tagid: ::std::option::Option::None,
730                    prune_tagid: ::std::option::Option::None,
731                    optin_only: ::std::option::Option::None,
732                    special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
733                };
734                &instance
735            }
736        }
737    }
738
739    // @@protoc_insertion_point(message:CStorePageFilter.StoreFilter)
740    #[derive(PartialEq,Clone,Default,Debug)]
741    pub struct StoreFilter {
742        // message fields
743        // @@protoc_insertion_point(field:CStorePageFilter.StoreFilter.filter_json)
744        pub filter_json: ::std::option::Option<::std::string::String>,
745        // @@protoc_insertion_point(field:CStorePageFilter.StoreFilter.cache_key)
746        pub cache_key: ::std::option::Option<::std::string::String>,
747        // special fields
748        // @@protoc_insertion_point(special_field:CStorePageFilter.StoreFilter.special_fields)
749        pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
750    }
751
752    impl<'a> ::std::default::Default for &'a StoreFilter {
753        fn default() -> &'a StoreFilter {
754            <StoreFilter as ::steam_vent_proto_common::protobuf::Message>::default_instance()
755        }
756    }
757
758    impl StoreFilter {
759        pub fn new() -> StoreFilter {
760            ::std::default::Default::default()
761        }
762
763        // optional string filter_json = 1;
764
765        pub fn filter_json(&self) -> &str {
766            match self.filter_json.as_ref() {
767                Some(v) => v,
768                None => "",
769            }
770        }
771
772        pub fn clear_filter_json(&mut self) {
773            self.filter_json = ::std::option::Option::None;
774        }
775
776        pub fn has_filter_json(&self) -> bool {
777            self.filter_json.is_some()
778        }
779
780        // Param is passed by value, moved
781        pub fn set_filter_json(&mut self, v: ::std::string::String) {
782            self.filter_json = ::std::option::Option::Some(v);
783        }
784
785        // Mutable pointer to the field.
786        // If field is not initialized, it is initialized with default value first.
787        pub fn mut_filter_json(&mut self) -> &mut ::std::string::String {
788            if self.filter_json.is_none() {
789                self.filter_json = ::std::option::Option::Some(::std::string::String::new());
790            }
791            self.filter_json.as_mut().unwrap()
792        }
793
794        // Take field
795        pub fn take_filter_json(&mut self) -> ::std::string::String {
796            self.filter_json.take().unwrap_or_else(|| ::std::string::String::new())
797        }
798
799        // optional string cache_key = 2;
800
801        pub fn cache_key(&self) -> &str {
802            match self.cache_key.as_ref() {
803                Some(v) => v,
804                None => "",
805            }
806        }
807
808        pub fn clear_cache_key(&mut self) {
809            self.cache_key = ::std::option::Option::None;
810        }
811
812        pub fn has_cache_key(&self) -> bool {
813            self.cache_key.is_some()
814        }
815
816        // Param is passed by value, moved
817        pub fn set_cache_key(&mut self, v: ::std::string::String) {
818            self.cache_key = ::std::option::Option::Some(v);
819        }
820
821        // Mutable pointer to the field.
822        // If field is not initialized, it is initialized with default value first.
823        pub fn mut_cache_key(&mut self) -> &mut ::std::string::String {
824            if self.cache_key.is_none() {
825                self.cache_key = ::std::option::Option::Some(::std::string::String::new());
826            }
827            self.cache_key.as_mut().unwrap()
828        }
829
830        // Take field
831        pub fn take_cache_key(&mut self) -> ::std::string::String {
832            self.cache_key.take().unwrap_or_else(|| ::std::string::String::new())
833        }
834    }
835
836    impl ::steam_vent_proto_common::protobuf::Message for StoreFilter {
837        const NAME: &'static str = "StoreFilter";
838
839        fn is_initialized(&self) -> bool {
840            true
841        }
842
843        fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
844            while let Some(tag) = is.read_raw_tag_or_eof()? {
845                match tag {
846                    10 => {
847                        self.filter_json = ::std::option::Option::Some(is.read_string()?);
848                    },
849                    18 => {
850                        self.cache_key = ::std::option::Option::Some(is.read_string()?);
851                    },
852                    tag => {
853                        ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
854                    },
855                };
856            }
857            ::std::result::Result::Ok(())
858        }
859
860        // Compute sizes of nested messages
861        #[allow(unused_variables)]
862        fn compute_size(&self) -> u64 {
863            let mut my_size = 0;
864            if let Some(v) = self.filter_json.as_ref() {
865                my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
866            }
867            if let Some(v) = self.cache_key.as_ref() {
868                my_size += ::steam_vent_proto_common::protobuf::rt::string_size(2, &v);
869            }
870            my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
871            self.special_fields.cached_size().set(my_size as u32);
872            my_size
873        }
874
875        fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
876            if let Some(v) = self.filter_json.as_ref() {
877                os.write_string(1, v)?;
878            }
879            if let Some(v) = self.cache_key.as_ref() {
880                os.write_string(2, v)?;
881            }
882            os.write_unknown_fields(self.special_fields.unknown_fields())?;
883            ::std::result::Result::Ok(())
884        }
885
886        fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
887            &self.special_fields
888        }
889
890        fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
891            &mut self.special_fields
892        }
893
894        fn new() -> StoreFilter {
895            StoreFilter::new()
896        }
897
898        fn clear(&mut self) {
899            self.filter_json = ::std::option::Option::None;
900            self.cache_key = ::std::option::Option::None;
901            self.special_fields.clear();
902        }
903
904        fn default_instance() -> &'static StoreFilter {
905            static instance: StoreFilter = StoreFilter {
906                filter_json: ::std::option::Option::None,
907                cache_key: ::std::option::Option::None,
908                special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
909            };
910            &instance
911        }
912    }
913}
914
915#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
916// @@protoc_insertion_point(enum:EContentHubDiscountFilterType)
917pub enum EContentHubDiscountFilterType {
918    // @@protoc_insertion_point(enum_value:EContentHubDiscountFilterType.k_EContentHubDiscountFilterType_None)
919    k_EContentHubDiscountFilterType_None = 0,
920    // @@protoc_insertion_point(enum_value:EContentHubDiscountFilterType.k_EContentHubDiscountFilterType_DiscountsOnly)
921    k_EContentHubDiscountFilterType_DiscountsOnly = 1,
922    // @@protoc_insertion_point(enum_value:EContentHubDiscountFilterType.k_EContentHubDiscountFilterType_PrioritizeDiscounts)
923    k_EContentHubDiscountFilterType_PrioritizeDiscounts = 2,
924}
925
926impl ::steam_vent_proto_common::protobuf::Enum for EContentHubDiscountFilterType {
927    const NAME: &'static str = "EContentHubDiscountFilterType";
928
929    fn value(&self) -> i32 {
930        *self as i32
931    }
932
933    fn from_i32(value: i32) -> ::std::option::Option<EContentHubDiscountFilterType> {
934        match value {
935            0 => ::std::option::Option::Some(EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_None),
936            1 => ::std::option::Option::Some(EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_DiscountsOnly),
937            2 => ::std::option::Option::Some(EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_PrioritizeDiscounts),
938            _ => ::std::option::Option::None
939        }
940    }
941
942    fn from_str(str: &str) -> ::std::option::Option<EContentHubDiscountFilterType> {
943        match str {
944            "k_EContentHubDiscountFilterType_None" => ::std::option::Option::Some(EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_None),
945            "k_EContentHubDiscountFilterType_DiscountsOnly" => ::std::option::Option::Some(EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_DiscountsOnly),
946            "k_EContentHubDiscountFilterType_PrioritizeDiscounts" => ::std::option::Option::Some(EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_PrioritizeDiscounts),
947            _ => ::std::option::Option::None
948        }
949    }
950
951    const VALUES: &'static [EContentHubDiscountFilterType] = &[
952        EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_None,
953        EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_DiscountsOnly,
954        EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_PrioritizeDiscounts,
955    ];
956}
957
958impl ::std::default::Default for EContentHubDiscountFilterType {
959    fn default() -> Self {
960        EContentHubDiscountFilterType::k_EContentHubDiscountFilterType_None
961    }
962}
963
964
965
966const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
967
968#[allow(unused_imports)]
969use crate::steammessages_base::*;
970impl ::steam_vent_proto_common::RpcMessage for CStorePageFilter {
971    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
972        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
973    }
974    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
975        use ::steam_vent_proto_common::protobuf::Message;
976        self.write_to_writer(writer)
977    }
978    fn encode_size(&self) -> usize {
979        use ::steam_vent_proto_common::protobuf::Message;
980        self.compute_size() as usize
981    }
982}