steam_vent_proto_steam/generated/
steammessages_unified_test_steamclient.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 `steammessages_unified_test.steamclient.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:CMsgTest_MessageToClient_Request)
29#[derive(PartialEq,Clone,Default,Debug)]
30pub struct CMsgTest_MessageToClient_Request {
31    // message fields
32    // @@protoc_insertion_point(field:CMsgTest_MessageToClient_Request.some_text)
33    pub some_text: ::std::option::Option<::std::string::String>,
34    // special fields
35    // @@protoc_insertion_point(special_field:CMsgTest_MessageToClient_Request.special_fields)
36    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
37}
38
39impl<'a> ::std::default::Default for &'a CMsgTest_MessageToClient_Request {
40    fn default() -> &'a CMsgTest_MessageToClient_Request {
41        <CMsgTest_MessageToClient_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
42    }
43}
44
45impl CMsgTest_MessageToClient_Request {
46    pub fn new() -> CMsgTest_MessageToClient_Request {
47        ::std::default::Default::default()
48    }
49
50    // optional string some_text = 1;
51
52    pub fn some_text(&self) -> &str {
53        match self.some_text.as_ref() {
54            Some(v) => v,
55            None => "",
56        }
57    }
58
59    pub fn clear_some_text(&mut self) {
60        self.some_text = ::std::option::Option::None;
61    }
62
63    pub fn has_some_text(&self) -> bool {
64        self.some_text.is_some()
65    }
66
67    // Param is passed by value, moved
68    pub fn set_some_text(&mut self, v: ::std::string::String) {
69        self.some_text = ::std::option::Option::Some(v);
70    }
71
72    // Mutable pointer to the field.
73    // If field is not initialized, it is initialized with default value first.
74    pub fn mut_some_text(&mut self) -> &mut ::std::string::String {
75        if self.some_text.is_none() {
76            self.some_text = ::std::option::Option::Some(::std::string::String::new());
77        }
78        self.some_text.as_mut().unwrap()
79    }
80
81    // Take field
82    pub fn take_some_text(&mut self) -> ::std::string::String {
83        self.some_text.take().unwrap_or_else(|| ::std::string::String::new())
84    }
85}
86
87impl ::steam_vent_proto_common::protobuf::Message for CMsgTest_MessageToClient_Request {
88    const NAME: &'static str = "CMsgTest_MessageToClient_Request";
89
90    fn is_initialized(&self) -> bool {
91        true
92    }
93
94    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
95        while let Some(tag) = is.read_raw_tag_or_eof()? {
96            match tag {
97                10 => {
98                    self.some_text = ::std::option::Option::Some(is.read_string()?);
99                },
100                tag => {
101                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
102                },
103            };
104        }
105        ::std::result::Result::Ok(())
106    }
107
108    // Compute sizes of nested messages
109    #[allow(unused_variables)]
110    fn compute_size(&self) -> u64 {
111        let mut my_size = 0;
112        if let Some(v) = self.some_text.as_ref() {
113            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
114        }
115        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
116        self.special_fields.cached_size().set(my_size as u32);
117        my_size
118    }
119
120    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
121        if let Some(v) = self.some_text.as_ref() {
122            os.write_string(1, v)?;
123        }
124        os.write_unknown_fields(self.special_fields.unknown_fields())?;
125        ::std::result::Result::Ok(())
126    }
127
128    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
129        &self.special_fields
130    }
131
132    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
133        &mut self.special_fields
134    }
135
136    fn new() -> CMsgTest_MessageToClient_Request {
137        CMsgTest_MessageToClient_Request::new()
138    }
139
140    fn clear(&mut self) {
141        self.some_text = ::std::option::Option::None;
142        self.special_fields.clear();
143    }
144
145    fn default_instance() -> &'static CMsgTest_MessageToClient_Request {
146        static instance: CMsgTest_MessageToClient_Request = CMsgTest_MessageToClient_Request {
147            some_text: ::std::option::Option::None,
148            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
149        };
150        &instance
151    }
152}
153
154// @@protoc_insertion_point(message:CMsgTest_MessageToClient_Response)
155#[derive(PartialEq,Clone,Default,Debug)]
156pub struct CMsgTest_MessageToClient_Response {
157    // message fields
158    // @@protoc_insertion_point(field:CMsgTest_MessageToClient_Response.some_text)
159    pub some_text: ::std::option::Option<::std::string::String>,
160    // special fields
161    // @@protoc_insertion_point(special_field:CMsgTest_MessageToClient_Response.special_fields)
162    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
163}
164
165impl<'a> ::std::default::Default for &'a CMsgTest_MessageToClient_Response {
166    fn default() -> &'a CMsgTest_MessageToClient_Response {
167        <CMsgTest_MessageToClient_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
168    }
169}
170
171impl CMsgTest_MessageToClient_Response {
172    pub fn new() -> CMsgTest_MessageToClient_Response {
173        ::std::default::Default::default()
174    }
175
176    // optional string some_text = 1;
177
178    pub fn some_text(&self) -> &str {
179        match self.some_text.as_ref() {
180            Some(v) => v,
181            None => "",
182        }
183    }
184
185    pub fn clear_some_text(&mut self) {
186        self.some_text = ::std::option::Option::None;
187    }
188
189    pub fn has_some_text(&self) -> bool {
190        self.some_text.is_some()
191    }
192
193    // Param is passed by value, moved
194    pub fn set_some_text(&mut self, v: ::std::string::String) {
195        self.some_text = ::std::option::Option::Some(v);
196    }
197
198    // Mutable pointer to the field.
199    // If field is not initialized, it is initialized with default value first.
200    pub fn mut_some_text(&mut self) -> &mut ::std::string::String {
201        if self.some_text.is_none() {
202            self.some_text = ::std::option::Option::Some(::std::string::String::new());
203        }
204        self.some_text.as_mut().unwrap()
205    }
206
207    // Take field
208    pub fn take_some_text(&mut self) -> ::std::string::String {
209        self.some_text.take().unwrap_or_else(|| ::std::string::String::new())
210    }
211}
212
213impl ::steam_vent_proto_common::protobuf::Message for CMsgTest_MessageToClient_Response {
214    const NAME: &'static str = "CMsgTest_MessageToClient_Response";
215
216    fn is_initialized(&self) -> bool {
217        true
218    }
219
220    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
221        while let Some(tag) = is.read_raw_tag_or_eof()? {
222            match tag {
223                10 => {
224                    self.some_text = ::std::option::Option::Some(is.read_string()?);
225                },
226                tag => {
227                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
228                },
229            };
230        }
231        ::std::result::Result::Ok(())
232    }
233
234    // Compute sizes of nested messages
235    #[allow(unused_variables)]
236    fn compute_size(&self) -> u64 {
237        let mut my_size = 0;
238        if let Some(v) = self.some_text.as_ref() {
239            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
240        }
241        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
242        self.special_fields.cached_size().set(my_size as u32);
243        my_size
244    }
245
246    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
247        if let Some(v) = self.some_text.as_ref() {
248            os.write_string(1, v)?;
249        }
250        os.write_unknown_fields(self.special_fields.unknown_fields())?;
251        ::std::result::Result::Ok(())
252    }
253
254    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
255        &self.special_fields
256    }
257
258    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
259        &mut self.special_fields
260    }
261
262    fn new() -> CMsgTest_MessageToClient_Response {
263        CMsgTest_MessageToClient_Response::new()
264    }
265
266    fn clear(&mut self) {
267        self.some_text = ::std::option::Option::None;
268        self.special_fields.clear();
269    }
270
271    fn default_instance() -> &'static CMsgTest_MessageToClient_Response {
272        static instance: CMsgTest_MessageToClient_Response = CMsgTest_MessageToClient_Response {
273            some_text: ::std::option::Option::None,
274            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
275        };
276        &instance
277    }
278}
279
280// @@protoc_insertion_point(message:CMsgTest_NotifyClient_Notification)
281#[derive(PartialEq,Clone,Default,Debug)]
282pub struct CMsgTest_NotifyClient_Notification {
283    // message fields
284    // @@protoc_insertion_point(field:CMsgTest_NotifyClient_Notification.some_text)
285    pub some_text: ::std::option::Option<::std::string::String>,
286    // special fields
287    // @@protoc_insertion_point(special_field:CMsgTest_NotifyClient_Notification.special_fields)
288    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
289}
290
291impl<'a> ::std::default::Default for &'a CMsgTest_NotifyClient_Notification {
292    fn default() -> &'a CMsgTest_NotifyClient_Notification {
293        <CMsgTest_NotifyClient_Notification as ::steam_vent_proto_common::protobuf::Message>::default_instance()
294    }
295}
296
297impl CMsgTest_NotifyClient_Notification {
298    pub fn new() -> CMsgTest_NotifyClient_Notification {
299        ::std::default::Default::default()
300    }
301
302    // optional string some_text = 1;
303
304    pub fn some_text(&self) -> &str {
305        match self.some_text.as_ref() {
306            Some(v) => v,
307            None => "",
308        }
309    }
310
311    pub fn clear_some_text(&mut self) {
312        self.some_text = ::std::option::Option::None;
313    }
314
315    pub fn has_some_text(&self) -> bool {
316        self.some_text.is_some()
317    }
318
319    // Param is passed by value, moved
320    pub fn set_some_text(&mut self, v: ::std::string::String) {
321        self.some_text = ::std::option::Option::Some(v);
322    }
323
324    // Mutable pointer to the field.
325    // If field is not initialized, it is initialized with default value first.
326    pub fn mut_some_text(&mut self) -> &mut ::std::string::String {
327        if self.some_text.is_none() {
328            self.some_text = ::std::option::Option::Some(::std::string::String::new());
329        }
330        self.some_text.as_mut().unwrap()
331    }
332
333    // Take field
334    pub fn take_some_text(&mut self) -> ::std::string::String {
335        self.some_text.take().unwrap_or_else(|| ::std::string::String::new())
336    }
337}
338
339impl ::steam_vent_proto_common::protobuf::Message for CMsgTest_NotifyClient_Notification {
340    const NAME: &'static str = "CMsgTest_NotifyClient_Notification";
341
342    fn is_initialized(&self) -> bool {
343        true
344    }
345
346    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
347        while let Some(tag) = is.read_raw_tag_or_eof()? {
348            match tag {
349                10 => {
350                    self.some_text = ::std::option::Option::Some(is.read_string()?);
351                },
352                tag => {
353                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
354                },
355            };
356        }
357        ::std::result::Result::Ok(())
358    }
359
360    // Compute sizes of nested messages
361    #[allow(unused_variables)]
362    fn compute_size(&self) -> u64 {
363        let mut my_size = 0;
364        if let Some(v) = self.some_text.as_ref() {
365            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
366        }
367        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
368        self.special_fields.cached_size().set(my_size as u32);
369        my_size
370    }
371
372    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
373        if let Some(v) = self.some_text.as_ref() {
374            os.write_string(1, v)?;
375        }
376        os.write_unknown_fields(self.special_fields.unknown_fields())?;
377        ::std::result::Result::Ok(())
378    }
379
380    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
381        &self.special_fields
382    }
383
384    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
385        &mut self.special_fields
386    }
387
388    fn new() -> CMsgTest_NotifyClient_Notification {
389        CMsgTest_NotifyClient_Notification::new()
390    }
391
392    fn clear(&mut self) {
393        self.some_text = ::std::option::Option::None;
394        self.special_fields.clear();
395    }
396
397    fn default_instance() -> &'static CMsgTest_NotifyClient_Notification {
398        static instance: CMsgTest_NotifyClient_Notification = CMsgTest_NotifyClient_Notification {
399            some_text: ::std::option::Option::None,
400            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
401        };
402        &instance
403    }
404}
405
406// @@protoc_insertion_point(message:CMsgTest_MessageToServer_Request)
407#[derive(PartialEq,Clone,Default,Debug)]
408pub struct CMsgTest_MessageToServer_Request {
409    // message fields
410    // @@protoc_insertion_point(field:CMsgTest_MessageToServer_Request.some_text)
411    pub some_text: ::std::option::Option<::std::string::String>,
412    // special fields
413    // @@protoc_insertion_point(special_field:CMsgTest_MessageToServer_Request.special_fields)
414    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
415}
416
417impl<'a> ::std::default::Default for &'a CMsgTest_MessageToServer_Request {
418    fn default() -> &'a CMsgTest_MessageToServer_Request {
419        <CMsgTest_MessageToServer_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
420    }
421}
422
423impl CMsgTest_MessageToServer_Request {
424    pub fn new() -> CMsgTest_MessageToServer_Request {
425        ::std::default::Default::default()
426    }
427
428    // optional string some_text = 1;
429
430    pub fn some_text(&self) -> &str {
431        match self.some_text.as_ref() {
432            Some(v) => v,
433            None => "",
434        }
435    }
436
437    pub fn clear_some_text(&mut self) {
438        self.some_text = ::std::option::Option::None;
439    }
440
441    pub fn has_some_text(&self) -> bool {
442        self.some_text.is_some()
443    }
444
445    // Param is passed by value, moved
446    pub fn set_some_text(&mut self, v: ::std::string::String) {
447        self.some_text = ::std::option::Option::Some(v);
448    }
449
450    // Mutable pointer to the field.
451    // If field is not initialized, it is initialized with default value first.
452    pub fn mut_some_text(&mut self) -> &mut ::std::string::String {
453        if self.some_text.is_none() {
454            self.some_text = ::std::option::Option::Some(::std::string::String::new());
455        }
456        self.some_text.as_mut().unwrap()
457    }
458
459    // Take field
460    pub fn take_some_text(&mut self) -> ::std::string::String {
461        self.some_text.take().unwrap_or_else(|| ::std::string::String::new())
462    }
463}
464
465impl ::steam_vent_proto_common::protobuf::Message for CMsgTest_MessageToServer_Request {
466    const NAME: &'static str = "CMsgTest_MessageToServer_Request";
467
468    fn is_initialized(&self) -> bool {
469        true
470    }
471
472    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
473        while let Some(tag) = is.read_raw_tag_or_eof()? {
474            match tag {
475                10 => {
476                    self.some_text = ::std::option::Option::Some(is.read_string()?);
477                },
478                tag => {
479                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
480                },
481            };
482        }
483        ::std::result::Result::Ok(())
484    }
485
486    // Compute sizes of nested messages
487    #[allow(unused_variables)]
488    fn compute_size(&self) -> u64 {
489        let mut my_size = 0;
490        if let Some(v) = self.some_text.as_ref() {
491            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
492        }
493        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
494        self.special_fields.cached_size().set(my_size as u32);
495        my_size
496    }
497
498    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
499        if let Some(v) = self.some_text.as_ref() {
500            os.write_string(1, v)?;
501        }
502        os.write_unknown_fields(self.special_fields.unknown_fields())?;
503        ::std::result::Result::Ok(())
504    }
505
506    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
507        &self.special_fields
508    }
509
510    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
511        &mut self.special_fields
512    }
513
514    fn new() -> CMsgTest_MessageToServer_Request {
515        CMsgTest_MessageToServer_Request::new()
516    }
517
518    fn clear(&mut self) {
519        self.some_text = ::std::option::Option::None;
520        self.special_fields.clear();
521    }
522
523    fn default_instance() -> &'static CMsgTest_MessageToServer_Request {
524        static instance: CMsgTest_MessageToServer_Request = CMsgTest_MessageToServer_Request {
525            some_text: ::std::option::Option::None,
526            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
527        };
528        &instance
529    }
530}
531
532// @@protoc_insertion_point(message:CMsgTest_MessageToServer_Response)
533#[derive(PartialEq,Clone,Default,Debug)]
534pub struct CMsgTest_MessageToServer_Response {
535    // message fields
536    // @@protoc_insertion_point(field:CMsgTest_MessageToServer_Response.some_text)
537    pub some_text: ::std::option::Option<::std::string::String>,
538    // special fields
539    // @@protoc_insertion_point(special_field:CMsgTest_MessageToServer_Response.special_fields)
540    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
541}
542
543impl<'a> ::std::default::Default for &'a CMsgTest_MessageToServer_Response {
544    fn default() -> &'a CMsgTest_MessageToServer_Response {
545        <CMsgTest_MessageToServer_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
546    }
547}
548
549impl CMsgTest_MessageToServer_Response {
550    pub fn new() -> CMsgTest_MessageToServer_Response {
551        ::std::default::Default::default()
552    }
553
554    // optional string some_text = 1;
555
556    pub fn some_text(&self) -> &str {
557        match self.some_text.as_ref() {
558            Some(v) => v,
559            None => "",
560        }
561    }
562
563    pub fn clear_some_text(&mut self) {
564        self.some_text = ::std::option::Option::None;
565    }
566
567    pub fn has_some_text(&self) -> bool {
568        self.some_text.is_some()
569    }
570
571    // Param is passed by value, moved
572    pub fn set_some_text(&mut self, v: ::std::string::String) {
573        self.some_text = ::std::option::Option::Some(v);
574    }
575
576    // Mutable pointer to the field.
577    // If field is not initialized, it is initialized with default value first.
578    pub fn mut_some_text(&mut self) -> &mut ::std::string::String {
579        if self.some_text.is_none() {
580            self.some_text = ::std::option::Option::Some(::std::string::String::new());
581        }
582        self.some_text.as_mut().unwrap()
583    }
584
585    // Take field
586    pub fn take_some_text(&mut self) -> ::std::string::String {
587        self.some_text.take().unwrap_or_else(|| ::std::string::String::new())
588    }
589}
590
591impl ::steam_vent_proto_common::protobuf::Message for CMsgTest_MessageToServer_Response {
592    const NAME: &'static str = "CMsgTest_MessageToServer_Response";
593
594    fn is_initialized(&self) -> bool {
595        true
596    }
597
598    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
599        while let Some(tag) = is.read_raw_tag_or_eof()? {
600            match tag {
601                10 => {
602                    self.some_text = ::std::option::Option::Some(is.read_string()?);
603                },
604                tag => {
605                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
606                },
607            };
608        }
609        ::std::result::Result::Ok(())
610    }
611
612    // Compute sizes of nested messages
613    #[allow(unused_variables)]
614    fn compute_size(&self) -> u64 {
615        let mut my_size = 0;
616        if let Some(v) = self.some_text.as_ref() {
617            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
618        }
619        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
620        self.special_fields.cached_size().set(my_size as u32);
621        my_size
622    }
623
624    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
625        if let Some(v) = self.some_text.as_ref() {
626            os.write_string(1, v)?;
627        }
628        os.write_unknown_fields(self.special_fields.unknown_fields())?;
629        ::std::result::Result::Ok(())
630    }
631
632    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
633        &self.special_fields
634    }
635
636    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
637        &mut self.special_fields
638    }
639
640    fn new() -> CMsgTest_MessageToServer_Response {
641        CMsgTest_MessageToServer_Response::new()
642    }
643
644    fn clear(&mut self) {
645        self.some_text = ::std::option::Option::None;
646        self.special_fields.clear();
647    }
648
649    fn default_instance() -> &'static CMsgTest_MessageToServer_Response {
650        static instance: CMsgTest_MessageToServer_Response = CMsgTest_MessageToServer_Response {
651            some_text: ::std::option::Option::None,
652            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
653        };
654        &instance
655    }
656}
657
658// @@protoc_insertion_point(message:CMsgTest_NotifyServer_Notification)
659#[derive(PartialEq,Clone,Default,Debug)]
660pub struct CMsgTest_NotifyServer_Notification {
661    // message fields
662    // @@protoc_insertion_point(field:CMsgTest_NotifyServer_Notification.some_text)
663    pub some_text: ::std::option::Option<::std::string::String>,
664    // special fields
665    // @@protoc_insertion_point(special_field:CMsgTest_NotifyServer_Notification.special_fields)
666    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
667}
668
669impl<'a> ::std::default::Default for &'a CMsgTest_NotifyServer_Notification {
670    fn default() -> &'a CMsgTest_NotifyServer_Notification {
671        <CMsgTest_NotifyServer_Notification as ::steam_vent_proto_common::protobuf::Message>::default_instance()
672    }
673}
674
675impl CMsgTest_NotifyServer_Notification {
676    pub fn new() -> CMsgTest_NotifyServer_Notification {
677        ::std::default::Default::default()
678    }
679
680    // optional string some_text = 1;
681
682    pub fn some_text(&self) -> &str {
683        match self.some_text.as_ref() {
684            Some(v) => v,
685            None => "",
686        }
687    }
688
689    pub fn clear_some_text(&mut self) {
690        self.some_text = ::std::option::Option::None;
691    }
692
693    pub fn has_some_text(&self) -> bool {
694        self.some_text.is_some()
695    }
696
697    // Param is passed by value, moved
698    pub fn set_some_text(&mut self, v: ::std::string::String) {
699        self.some_text = ::std::option::Option::Some(v);
700    }
701
702    // Mutable pointer to the field.
703    // If field is not initialized, it is initialized with default value first.
704    pub fn mut_some_text(&mut self) -> &mut ::std::string::String {
705        if self.some_text.is_none() {
706            self.some_text = ::std::option::Option::Some(::std::string::String::new());
707        }
708        self.some_text.as_mut().unwrap()
709    }
710
711    // Take field
712    pub fn take_some_text(&mut self) -> ::std::string::String {
713        self.some_text.take().unwrap_or_else(|| ::std::string::String::new())
714    }
715}
716
717impl ::steam_vent_proto_common::protobuf::Message for CMsgTest_NotifyServer_Notification {
718    const NAME: &'static str = "CMsgTest_NotifyServer_Notification";
719
720    fn is_initialized(&self) -> bool {
721        true
722    }
723
724    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
725        while let Some(tag) = is.read_raw_tag_or_eof()? {
726            match tag {
727                10 => {
728                    self.some_text = ::std::option::Option::Some(is.read_string()?);
729                },
730                tag => {
731                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
732                },
733            };
734        }
735        ::std::result::Result::Ok(())
736    }
737
738    // Compute sizes of nested messages
739    #[allow(unused_variables)]
740    fn compute_size(&self) -> u64 {
741        let mut my_size = 0;
742        if let Some(v) = self.some_text.as_ref() {
743            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
744        }
745        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
746        self.special_fields.cached_size().set(my_size as u32);
747        my_size
748    }
749
750    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
751        if let Some(v) = self.some_text.as_ref() {
752            os.write_string(1, v)?;
753        }
754        os.write_unknown_fields(self.special_fields.unknown_fields())?;
755        ::std::result::Result::Ok(())
756    }
757
758    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
759        &self.special_fields
760    }
761
762    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
763        &mut self.special_fields
764    }
765
766    fn new() -> CMsgTest_NotifyServer_Notification {
767        CMsgTest_NotifyServer_Notification::new()
768    }
769
770    fn clear(&mut self) {
771        self.some_text = ::std::option::Option::None;
772        self.special_fields.clear();
773    }
774
775    fn default_instance() -> &'static CMsgTest_NotifyServer_Notification {
776        static instance: CMsgTest_NotifyServer_Notification = CMsgTest_NotifyServer_Notification {
777            some_text: ::std::option::Option::None,
778            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
779        };
780        &instance
781    }
782}
783
784// @@protoc_insertion_point(message:CMsgTest_NoBody_Request)
785#[derive(PartialEq,Clone,Default,Debug)]
786pub struct CMsgTest_NoBody_Request {
787    // special fields
788    // @@protoc_insertion_point(special_field:CMsgTest_NoBody_Request.special_fields)
789    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
790}
791
792impl<'a> ::std::default::Default for &'a CMsgTest_NoBody_Request {
793    fn default() -> &'a CMsgTest_NoBody_Request {
794        <CMsgTest_NoBody_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
795    }
796}
797
798impl CMsgTest_NoBody_Request {
799    pub fn new() -> CMsgTest_NoBody_Request {
800        ::std::default::Default::default()
801    }
802}
803
804impl ::steam_vent_proto_common::protobuf::Message for CMsgTest_NoBody_Request {
805    const NAME: &'static str = "CMsgTest_NoBody_Request";
806
807    fn is_initialized(&self) -> bool {
808        true
809    }
810
811    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
812        while let Some(tag) = is.read_raw_tag_or_eof()? {
813            match tag {
814                tag => {
815                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
816                },
817            };
818        }
819        ::std::result::Result::Ok(())
820    }
821
822    // Compute sizes of nested messages
823    #[allow(unused_variables)]
824    fn compute_size(&self) -> u64 {
825        let mut my_size = 0;
826        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
827        self.special_fields.cached_size().set(my_size as u32);
828        my_size
829    }
830
831    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
832        os.write_unknown_fields(self.special_fields.unknown_fields())?;
833        ::std::result::Result::Ok(())
834    }
835
836    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
837        &self.special_fields
838    }
839
840    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
841        &mut self.special_fields
842    }
843
844    fn new() -> CMsgTest_NoBody_Request {
845        CMsgTest_NoBody_Request::new()
846    }
847
848    fn clear(&mut self) {
849        self.special_fields.clear();
850    }
851
852    fn default_instance() -> &'static CMsgTest_NoBody_Request {
853        static instance: CMsgTest_NoBody_Request = CMsgTest_NoBody_Request {
854            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
855        };
856        &instance
857    }
858}
859
860// @@protoc_insertion_point(message:CMsgTest_CallClient_Response)
861#[derive(PartialEq,Clone,Default,Debug)]
862pub struct CMsgTest_CallClient_Response {
863    // message fields
864    // @@protoc_insertion_point(field:CMsgTest_CallClient_Response.testvalue)
865    pub testvalue: ::std::option::Option<i32>,
866    // special fields
867    // @@protoc_insertion_point(special_field:CMsgTest_CallClient_Response.special_fields)
868    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
869}
870
871impl<'a> ::std::default::Default for &'a CMsgTest_CallClient_Response {
872    fn default() -> &'a CMsgTest_CallClient_Response {
873        <CMsgTest_CallClient_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
874    }
875}
876
877impl CMsgTest_CallClient_Response {
878    pub fn new() -> CMsgTest_CallClient_Response {
879        ::std::default::Default::default()
880    }
881
882    // optional int32 testvalue = 1;
883
884    pub fn testvalue(&self) -> i32 {
885        self.testvalue.unwrap_or(0)
886    }
887
888    pub fn clear_testvalue(&mut self) {
889        self.testvalue = ::std::option::Option::None;
890    }
891
892    pub fn has_testvalue(&self) -> bool {
893        self.testvalue.is_some()
894    }
895
896    // Param is passed by value, moved
897    pub fn set_testvalue(&mut self, v: i32) {
898        self.testvalue = ::std::option::Option::Some(v);
899    }
900}
901
902impl ::steam_vent_proto_common::protobuf::Message for CMsgTest_CallClient_Response {
903    const NAME: &'static str = "CMsgTest_CallClient_Response";
904
905    fn is_initialized(&self) -> bool {
906        true
907    }
908
909    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
910        while let Some(tag) = is.read_raw_tag_or_eof()? {
911            match tag {
912                8 => {
913                    self.testvalue = ::std::option::Option::Some(is.read_int32()?);
914                },
915                tag => {
916                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
917                },
918            };
919        }
920        ::std::result::Result::Ok(())
921    }
922
923    // Compute sizes of nested messages
924    #[allow(unused_variables)]
925    fn compute_size(&self) -> u64 {
926        let mut my_size = 0;
927        if let Some(v) = self.testvalue {
928            my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(1, v);
929        }
930        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
931        self.special_fields.cached_size().set(my_size as u32);
932        my_size
933    }
934
935    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
936        if let Some(v) = self.testvalue {
937            os.write_int32(1, v)?;
938        }
939        os.write_unknown_fields(self.special_fields.unknown_fields())?;
940        ::std::result::Result::Ok(())
941    }
942
943    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
944        &self.special_fields
945    }
946
947    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
948        &mut self.special_fields
949    }
950
951    fn new() -> CMsgTest_CallClient_Response {
952        CMsgTest_CallClient_Response::new()
953    }
954
955    fn clear(&mut self) {
956        self.testvalue = ::std::option::Option::None;
957        self.special_fields.clear();
958    }
959
960    fn default_instance() -> &'static CMsgTest_CallClient_Response {
961        static instance: CMsgTest_CallClient_Response = CMsgTest_CallClient_Response {
962            testvalue: ::std::option::Option::None,
963            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
964        };
965        &instance
966    }
967}
968
969
970const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
971
972#[allow(unused_imports)]
973use crate::steammessages_base::*;
974#[allow(unused_imports)]
975use crate::steammessages_unified_base_steamclient::*;
976impl ::steam_vent_proto_common::RpcMessage for CMsgTest_MessageToClient_Request {
977    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
978        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
979    }
980    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
981        use ::steam_vent_proto_common::protobuf::Message;
982        self.write_to_writer(writer)
983    }
984    fn encode_size(&self) -> usize {
985        use ::steam_vent_proto_common::protobuf::Message;
986        self.compute_size() as usize
987    }
988}
989impl ::steam_vent_proto_common::RpcMessage for CMsgTest_MessageToClient_Response {
990    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
991        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
992    }
993    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
994        use ::steam_vent_proto_common::protobuf::Message;
995        self.write_to_writer(writer)
996    }
997    fn encode_size(&self) -> usize {
998        use ::steam_vent_proto_common::protobuf::Message;
999        self.compute_size() as usize
1000    }
1001}
1002impl ::steam_vent_proto_common::RpcMessage for CMsgTest_NotifyClient_Notification {
1003    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1004        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1005    }
1006    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1007        use ::steam_vent_proto_common::protobuf::Message;
1008        self.write_to_writer(writer)
1009    }
1010    fn encode_size(&self) -> usize {
1011        use ::steam_vent_proto_common::protobuf::Message;
1012        self.compute_size() as usize
1013    }
1014}
1015impl ::steam_vent_proto_common::RpcMessage for CMsgTest_MessageToServer_Request {
1016    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1017        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1018    }
1019    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1020        use ::steam_vent_proto_common::protobuf::Message;
1021        self.write_to_writer(writer)
1022    }
1023    fn encode_size(&self) -> usize {
1024        use ::steam_vent_proto_common::protobuf::Message;
1025        self.compute_size() as usize
1026    }
1027}
1028impl ::steam_vent_proto_common::RpcMessage for CMsgTest_MessageToServer_Response {
1029    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1030        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1031    }
1032    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1033        use ::steam_vent_proto_common::protobuf::Message;
1034        self.write_to_writer(writer)
1035    }
1036    fn encode_size(&self) -> usize {
1037        use ::steam_vent_proto_common::protobuf::Message;
1038        self.compute_size() as usize
1039    }
1040}
1041impl ::steam_vent_proto_common::RpcMessage for CMsgTest_NotifyServer_Notification {
1042    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1043        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1044    }
1045    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1046        use ::steam_vent_proto_common::protobuf::Message;
1047        self.write_to_writer(writer)
1048    }
1049    fn encode_size(&self) -> usize {
1050        use ::steam_vent_proto_common::protobuf::Message;
1051        self.compute_size() as usize
1052    }
1053}
1054impl ::steam_vent_proto_common::RpcMessage for CMsgTest_NoBody_Request {
1055    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1056        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1057    }
1058    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1059        use ::steam_vent_proto_common::protobuf::Message;
1060        self.write_to_writer(writer)
1061    }
1062    fn encode_size(&self) -> usize {
1063        use ::steam_vent_proto_common::protobuf::Message;
1064        self.compute_size() as usize
1065    }
1066}
1067impl ::steam_vent_proto_common::RpcMessage for CMsgTest_CallClient_Response {
1068    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
1069        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
1070    }
1071    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
1072        use ::steam_vent_proto_common::protobuf::Message;
1073        self.write_to_writer(writer)
1074    }
1075    fn encode_size(&self) -> usize {
1076        use ::steam_vent_proto_common::protobuf::Message;
1077        self.compute_size() as usize
1078    }
1079}
1080///
1081struct TestSteamClient {}
1082impl ::steam_vent_proto_common::RpcService for TestSteamClient {
1083    const SERVICE_NAME: &'static str = "TestSteamClient";
1084}
1085///
1086struct TestServerFromClient {}
1087impl ::steam_vent_proto_common::RpcService for TestServerFromClient {
1088    const SERVICE_NAME: &'static str = "TestServerFromClient";
1089}
1090///
1091struct TestExternalPrivilege {}
1092impl ::steam_vent_proto_common::RpcService for TestExternalPrivilege {
1093    const SERVICE_NAME: &'static str = "TestExternalPrivilege";
1094}
1095impl ::steam_vent_proto_common::RpcMethod for CMsgTest_MessageToClient_Request {
1096    const METHOD_NAME: &'static str = "TestSteamClient.MessageToClient#1";
1097    type Response = CMsgTest_MessageToClient_Response;
1098}
1099impl ::steam_vent_proto_common::RpcMethod for CMsgTest_MessageToServer_Request {
1100    const METHOD_NAME: &'static str = "TestServerFromClient.MessageToServer#1";
1101    type Response = CMsgTest_MessageToServer_Response;
1102}
1103impl ::steam_vent_proto_common::RpcMethod for CMsgTest_NoBody_Request {
1104    const METHOD_NAME: &'static str = "TestExternalPrivilege.CallClient#1";
1105    type Response = CMsgTest_CallClient_Response;
1106}
1107impl ::steam_vent_proto_common::RpcMethod for CMsgTest_NotifyClient_Notification {
1108    const METHOD_NAME: &'static str = "TestSteamClient.NotifyClient#1";
1109    type Response = ();
1110}
1111impl ::steam_vent_proto_common::RpcMethod for CMsgTest_NotifyServer_Notification {
1112    const METHOD_NAME: &'static str = "TestServerFromClient.NotifyServer#1";
1113    type Response = ();
1114}