steam_vent_proto_steam/generated/
steammessages_gamenetworking_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_gamenetworking.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:CGameNetworking_AllocateFakeIP_Request)
29#[derive(PartialEq,Clone,Default,Debug)]
30pub struct CGameNetworking_AllocateFakeIP_Request {
31    // message fields
32    // @@protoc_insertion_point(field:CGameNetworking_AllocateFakeIP_Request.app_id)
33    pub app_id: ::std::option::Option<u32>,
34    // @@protoc_insertion_point(field:CGameNetworking_AllocateFakeIP_Request.num_fake_ports)
35    pub num_fake_ports: ::std::option::Option<u32>,
36    // special fields
37    // @@protoc_insertion_point(special_field:CGameNetworking_AllocateFakeIP_Request.special_fields)
38    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
39}
40
41impl<'a> ::std::default::Default for &'a CGameNetworking_AllocateFakeIP_Request {
42    fn default() -> &'a CGameNetworking_AllocateFakeIP_Request {
43        <CGameNetworking_AllocateFakeIP_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
44    }
45}
46
47impl CGameNetworking_AllocateFakeIP_Request {
48    pub fn new() -> CGameNetworking_AllocateFakeIP_Request {
49        ::std::default::Default::default()
50    }
51
52    // optional uint32 app_id = 1;
53
54    pub fn app_id(&self) -> u32 {
55        self.app_id.unwrap_or(0)
56    }
57
58    pub fn clear_app_id(&mut self) {
59        self.app_id = ::std::option::Option::None;
60    }
61
62    pub fn has_app_id(&self) -> bool {
63        self.app_id.is_some()
64    }
65
66    // Param is passed by value, moved
67    pub fn set_app_id(&mut self, v: u32) {
68        self.app_id = ::std::option::Option::Some(v);
69    }
70
71    // optional uint32 num_fake_ports = 2;
72
73    pub fn num_fake_ports(&self) -> u32 {
74        self.num_fake_ports.unwrap_or(0)
75    }
76
77    pub fn clear_num_fake_ports(&mut self) {
78        self.num_fake_ports = ::std::option::Option::None;
79    }
80
81    pub fn has_num_fake_ports(&self) -> bool {
82        self.num_fake_ports.is_some()
83    }
84
85    // Param is passed by value, moved
86    pub fn set_num_fake_ports(&mut self, v: u32) {
87        self.num_fake_ports = ::std::option::Option::Some(v);
88    }
89}
90
91impl ::steam_vent_proto_common::protobuf::Message for CGameNetworking_AllocateFakeIP_Request {
92    const NAME: &'static str = "CGameNetworking_AllocateFakeIP_Request";
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.app_id = ::std::option::Option::Some(is.read_uint32()?);
103                },
104                16 => {
105                    self.num_fake_ports = ::std::option::Option::Some(is.read_uint32()?);
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    // Compute sizes of nested messages
116    #[allow(unused_variables)]
117    fn compute_size(&self) -> u64 {
118        let mut my_size = 0;
119        if let Some(v) = self.app_id {
120            my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
121        }
122        if let Some(v) = self.num_fake_ports {
123            my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
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.app_id {
132            os.write_uint32(1, v)?;
133        }
134        if let Some(v) = self.num_fake_ports {
135            os.write_uint32(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() -> CGameNetworking_AllocateFakeIP_Request {
150        CGameNetworking_AllocateFakeIP_Request::new()
151    }
152
153    fn clear(&mut self) {
154        self.app_id = ::std::option::Option::None;
155        self.num_fake_ports = ::std::option::Option::None;
156        self.special_fields.clear();
157    }
158
159    fn default_instance() -> &'static CGameNetworking_AllocateFakeIP_Request {
160        static instance: CGameNetworking_AllocateFakeIP_Request = CGameNetworking_AllocateFakeIP_Request {
161            app_id: ::std::option::Option::None,
162            num_fake_ports: ::std::option::Option::None,
163            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
164        };
165        &instance
166    }
167}
168
169// @@protoc_insertion_point(message:CGameNetworking_AllocateFakeIP_Response)
170#[derive(PartialEq,Clone,Default,Debug)]
171pub struct CGameNetworking_AllocateFakeIP_Response {
172    // message fields
173    // @@protoc_insertion_point(field:CGameNetworking_AllocateFakeIP_Response.fake_ip)
174    pub fake_ip: ::std::option::Option<u32>,
175    // @@protoc_insertion_point(field:CGameNetworking_AllocateFakeIP_Response.fake_ports)
176    pub fake_ports: ::std::vec::Vec<u32>,
177    // special fields
178    // @@protoc_insertion_point(special_field:CGameNetworking_AllocateFakeIP_Response.special_fields)
179    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
180}
181
182impl<'a> ::std::default::Default for &'a CGameNetworking_AllocateFakeIP_Response {
183    fn default() -> &'a CGameNetworking_AllocateFakeIP_Response {
184        <CGameNetworking_AllocateFakeIP_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
185    }
186}
187
188impl CGameNetworking_AllocateFakeIP_Response {
189    pub fn new() -> CGameNetworking_AllocateFakeIP_Response {
190        ::std::default::Default::default()
191    }
192
193    // optional fixed32 fake_ip = 1;
194
195    pub fn fake_ip(&self) -> u32 {
196        self.fake_ip.unwrap_or(0)
197    }
198
199    pub fn clear_fake_ip(&mut self) {
200        self.fake_ip = ::std::option::Option::None;
201    }
202
203    pub fn has_fake_ip(&self) -> bool {
204        self.fake_ip.is_some()
205    }
206
207    // Param is passed by value, moved
208    pub fn set_fake_ip(&mut self, v: u32) {
209        self.fake_ip = ::std::option::Option::Some(v);
210    }
211}
212
213impl ::steam_vent_proto_common::protobuf::Message for CGameNetworking_AllocateFakeIP_Response {
214    const NAME: &'static str = "CGameNetworking_AllocateFakeIP_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                13 => {
224                    self.fake_ip = ::std::option::Option::Some(is.read_fixed32()?);
225                },
226                18 => {
227                    is.read_repeated_packed_uint32_into(&mut self.fake_ports)?;
228                },
229                16 => {
230                    self.fake_ports.push(is.read_uint32()?);
231                },
232                tag => {
233                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
234                },
235            };
236        }
237        ::std::result::Result::Ok(())
238    }
239
240    // Compute sizes of nested messages
241    #[allow(unused_variables)]
242    fn compute_size(&self) -> u64 {
243        let mut my_size = 0;
244        if let Some(v) = self.fake_ip {
245            my_size += 1 + 4;
246        }
247        for value in &self.fake_ports {
248            my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, *value);
249        };
250        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
251        self.special_fields.cached_size().set(my_size as u32);
252        my_size
253    }
254
255    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
256        if let Some(v) = self.fake_ip {
257            os.write_fixed32(1, v)?;
258        }
259        for v in &self.fake_ports {
260            os.write_uint32(2, *v)?;
261        };
262        os.write_unknown_fields(self.special_fields.unknown_fields())?;
263        ::std::result::Result::Ok(())
264    }
265
266    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
267        &self.special_fields
268    }
269
270    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
271        &mut self.special_fields
272    }
273
274    fn new() -> CGameNetworking_AllocateFakeIP_Response {
275        CGameNetworking_AllocateFakeIP_Response::new()
276    }
277
278    fn clear(&mut self) {
279        self.fake_ip = ::std::option::Option::None;
280        self.fake_ports.clear();
281        self.special_fields.clear();
282    }
283
284    fn default_instance() -> &'static CGameNetworking_AllocateFakeIP_Response {
285        static instance: CGameNetworking_AllocateFakeIP_Response = CGameNetworking_AllocateFakeIP_Response {
286            fake_ip: ::std::option::Option::None,
287            fake_ports: ::std::vec::Vec::new(),
288            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
289        };
290        &instance
291    }
292}
293
294// @@protoc_insertion_point(message:CGameNetworking_ReleaseFakeIP_Notification)
295#[derive(PartialEq,Clone,Default,Debug)]
296pub struct CGameNetworking_ReleaseFakeIP_Notification {
297    // message fields
298    // @@protoc_insertion_point(field:CGameNetworking_ReleaseFakeIP_Notification.app_id)
299    pub app_id: ::std::option::Option<u32>,
300    // @@protoc_insertion_point(field:CGameNetworking_ReleaseFakeIP_Notification.fake_ip)
301    pub fake_ip: ::std::option::Option<u32>,
302    // @@protoc_insertion_point(field:CGameNetworking_ReleaseFakeIP_Notification.fake_ports)
303    pub fake_ports: ::std::vec::Vec<u32>,
304    // special fields
305    // @@protoc_insertion_point(special_field:CGameNetworking_ReleaseFakeIP_Notification.special_fields)
306    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
307}
308
309impl<'a> ::std::default::Default for &'a CGameNetworking_ReleaseFakeIP_Notification {
310    fn default() -> &'a CGameNetworking_ReleaseFakeIP_Notification {
311        <CGameNetworking_ReleaseFakeIP_Notification as ::steam_vent_proto_common::protobuf::Message>::default_instance()
312    }
313}
314
315impl CGameNetworking_ReleaseFakeIP_Notification {
316    pub fn new() -> CGameNetworking_ReleaseFakeIP_Notification {
317        ::std::default::Default::default()
318    }
319
320    // optional uint32 app_id = 1;
321
322    pub fn app_id(&self) -> u32 {
323        self.app_id.unwrap_or(0)
324    }
325
326    pub fn clear_app_id(&mut self) {
327        self.app_id = ::std::option::Option::None;
328    }
329
330    pub fn has_app_id(&self) -> bool {
331        self.app_id.is_some()
332    }
333
334    // Param is passed by value, moved
335    pub fn set_app_id(&mut self, v: u32) {
336        self.app_id = ::std::option::Option::Some(v);
337    }
338
339    // optional fixed32 fake_ip = 2;
340
341    pub fn fake_ip(&self) -> u32 {
342        self.fake_ip.unwrap_or(0)
343    }
344
345    pub fn clear_fake_ip(&mut self) {
346        self.fake_ip = ::std::option::Option::None;
347    }
348
349    pub fn has_fake_ip(&self) -> bool {
350        self.fake_ip.is_some()
351    }
352
353    // Param is passed by value, moved
354    pub fn set_fake_ip(&mut self, v: u32) {
355        self.fake_ip = ::std::option::Option::Some(v);
356    }
357}
358
359impl ::steam_vent_proto_common::protobuf::Message for CGameNetworking_ReleaseFakeIP_Notification {
360    const NAME: &'static str = "CGameNetworking_ReleaseFakeIP_Notification";
361
362    fn is_initialized(&self) -> bool {
363        true
364    }
365
366    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
367        while let Some(tag) = is.read_raw_tag_or_eof()? {
368            match tag {
369                8 => {
370                    self.app_id = ::std::option::Option::Some(is.read_uint32()?);
371                },
372                21 => {
373                    self.fake_ip = ::std::option::Option::Some(is.read_fixed32()?);
374                },
375                26 => {
376                    is.read_repeated_packed_uint32_into(&mut self.fake_ports)?;
377                },
378                24 => {
379                    self.fake_ports.push(is.read_uint32()?);
380                },
381                tag => {
382                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
383                },
384            };
385        }
386        ::std::result::Result::Ok(())
387    }
388
389    // Compute sizes of nested messages
390    #[allow(unused_variables)]
391    fn compute_size(&self) -> u64 {
392        let mut my_size = 0;
393        if let Some(v) = self.app_id {
394            my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
395        }
396        if let Some(v) = self.fake_ip {
397            my_size += 1 + 4;
398        }
399        for value in &self.fake_ports {
400            my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, *value);
401        };
402        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
403        self.special_fields.cached_size().set(my_size as u32);
404        my_size
405    }
406
407    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
408        if let Some(v) = self.app_id {
409            os.write_uint32(1, v)?;
410        }
411        if let Some(v) = self.fake_ip {
412            os.write_fixed32(2, v)?;
413        }
414        for v in &self.fake_ports {
415            os.write_uint32(3, *v)?;
416        };
417        os.write_unknown_fields(self.special_fields.unknown_fields())?;
418        ::std::result::Result::Ok(())
419    }
420
421    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
422        &self.special_fields
423    }
424
425    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
426        &mut self.special_fields
427    }
428
429    fn new() -> CGameNetworking_ReleaseFakeIP_Notification {
430        CGameNetworking_ReleaseFakeIP_Notification::new()
431    }
432
433    fn clear(&mut self) {
434        self.app_id = ::std::option::Option::None;
435        self.fake_ip = ::std::option::Option::None;
436        self.fake_ports.clear();
437        self.special_fields.clear();
438    }
439
440    fn default_instance() -> &'static CGameNetworking_ReleaseFakeIP_Notification {
441        static instance: CGameNetworking_ReleaseFakeIP_Notification = CGameNetworking_ReleaseFakeIP_Notification {
442            app_id: ::std::option::Option::None,
443            fake_ip: ::std::option::Option::None,
444            fake_ports: ::std::vec::Vec::new(),
445            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
446        };
447        &instance
448    }
449}
450
451
452const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
453
454#[allow(unused_imports)]
455use crate::steammessages_base::*;
456#[allow(unused_imports)]
457use crate::steammessages_unified_base_steamclient::*;
458impl ::steam_vent_proto_common::RpcMessage for CGameNetworking_AllocateFakeIP_Request {
459    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
460        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
461    }
462    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
463        use ::steam_vent_proto_common::protobuf::Message;
464        self.write_to_writer(writer)
465    }
466    fn encode_size(&self) -> usize {
467        use ::steam_vent_proto_common::protobuf::Message;
468        self.compute_size() as usize
469    }
470}
471impl ::steam_vent_proto_common::RpcMessage for CGameNetworking_AllocateFakeIP_Response {
472    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
473        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
474    }
475    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
476        use ::steam_vent_proto_common::protobuf::Message;
477        self.write_to_writer(writer)
478    }
479    fn encode_size(&self) -> usize {
480        use ::steam_vent_proto_common::protobuf::Message;
481        self.compute_size() as usize
482    }
483}
484impl ::steam_vent_proto_common::RpcMessage
485for CGameNetworking_ReleaseFakeIP_Notification {
486    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
487        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
488    }
489    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
490        use ::steam_vent_proto_common::protobuf::Message;
491        self.write_to_writer(writer)
492    }
493    fn encode_size(&self) -> usize {
494        use ::steam_vent_proto_common::protobuf::Message;
495        self.compute_size() as usize
496    }
497}
498///
499struct GameNetworking {}
500impl ::steam_vent_proto_common::RpcService for GameNetworking {
501    const SERVICE_NAME: &'static str = "GameNetworking";
502}
503impl ::steam_vent_proto_common::RpcMethod for CGameNetworking_AllocateFakeIP_Request {
504    const METHOD_NAME: &'static str = "GameNetworking.AllocateFakeIP#1";
505    type Response = CGameNetworking_AllocateFakeIP_Response;
506}
507impl ::steam_vent_proto_common::RpcMethod
508for CGameNetworking_ReleaseFakeIP_Notification {
509    const METHOD_NAME: &'static str = "GameNetworking.NotifyReleaseFakeIP#1";
510    type Response = ();
511}