steam_vent_proto_steam/generated/
webuimessages_base.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 `webuimessages_base.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:WebUINoResponse)
29#[derive(PartialEq,Clone,Default,Debug)]
30pub struct WebUINoResponse {
31    // special fields
32    // @@protoc_insertion_point(special_field:WebUINoResponse.special_fields)
33    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
34}
35
36impl<'a> ::std::default::Default for &'a WebUINoResponse {
37    fn default() -> &'a WebUINoResponse {
38        <WebUINoResponse as ::steam_vent_proto_common::protobuf::Message>::default_instance()
39    }
40}
41
42impl WebUINoResponse {
43    pub fn new() -> WebUINoResponse {
44        ::std::default::Default::default()
45    }
46}
47
48impl ::steam_vent_proto_common::protobuf::Message for WebUINoResponse {
49    const NAME: &'static str = "WebUINoResponse";
50
51    fn is_initialized(&self) -> bool {
52        true
53    }
54
55    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
56        while let Some(tag) = is.read_raw_tag_or_eof()? {
57            match tag {
58                tag => {
59                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
60                },
61            };
62        }
63        ::std::result::Result::Ok(())
64    }
65
66    // Compute sizes of nested messages
67    #[allow(unused_variables)]
68    fn compute_size(&self) -> u64 {
69        let mut my_size = 0;
70        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
71        self.special_fields.cached_size().set(my_size as u32);
72        my_size
73    }
74
75    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
76        os.write_unknown_fields(self.special_fields.unknown_fields())?;
77        ::std::result::Result::Ok(())
78    }
79
80    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
81        &self.special_fields
82    }
83
84    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
85        &mut self.special_fields
86    }
87
88    fn new() -> WebUINoResponse {
89        WebUINoResponse::new()
90    }
91
92    fn clear(&mut self) {
93        self.special_fields.clear();
94    }
95
96    fn default_instance() -> &'static WebUINoResponse {
97        static instance: WebUINoResponse = WebUINoResponse {
98            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
99        };
100        &instance
101    }
102}
103
104#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
105// @@protoc_insertion_point(enum:EClientExecutionSite)
106pub enum EClientExecutionSite {
107    // @@protoc_insertion_point(enum_value:EClientExecutionSite.k_EClientExecutionSiteInvalid)
108    k_EClientExecutionSiteInvalid = 0,
109    // @@protoc_insertion_point(enum_value:EClientExecutionSite.k_EClientExecutionSiteSteamUI)
110    k_EClientExecutionSiteSteamUI = 1,
111    // @@protoc_insertion_point(enum_value:EClientExecutionSite.k_EClientExecutionSiteClientdll)
112    k_EClientExecutionSiteClientdll = 2,
113    // @@protoc_insertion_point(enum_value:EClientExecutionSite.k_EClientExecutionSiteAny)
114    k_EClientExecutionSiteAny = 3,
115}
116
117impl ::steam_vent_proto_common::protobuf::Enum for EClientExecutionSite {
118    const NAME: &'static str = "EClientExecutionSite";
119
120    fn value(&self) -> i32 {
121        *self as i32
122    }
123
124    fn from_i32(value: i32) -> ::std::option::Option<EClientExecutionSite> {
125        match value {
126            0 => ::std::option::Option::Some(EClientExecutionSite::k_EClientExecutionSiteInvalid),
127            1 => ::std::option::Option::Some(EClientExecutionSite::k_EClientExecutionSiteSteamUI),
128            2 => ::std::option::Option::Some(EClientExecutionSite::k_EClientExecutionSiteClientdll),
129            3 => ::std::option::Option::Some(EClientExecutionSite::k_EClientExecutionSiteAny),
130            _ => ::std::option::Option::None
131        }
132    }
133
134    fn from_str(str: &str) -> ::std::option::Option<EClientExecutionSite> {
135        match str {
136            "k_EClientExecutionSiteInvalid" => ::std::option::Option::Some(EClientExecutionSite::k_EClientExecutionSiteInvalid),
137            "k_EClientExecutionSiteSteamUI" => ::std::option::Option::Some(EClientExecutionSite::k_EClientExecutionSiteSteamUI),
138            "k_EClientExecutionSiteClientdll" => ::std::option::Option::Some(EClientExecutionSite::k_EClientExecutionSiteClientdll),
139            "k_EClientExecutionSiteAny" => ::std::option::Option::Some(EClientExecutionSite::k_EClientExecutionSiteAny),
140            _ => ::std::option::Option::None
141        }
142    }
143
144    const VALUES: &'static [EClientExecutionSite] = &[
145        EClientExecutionSite::k_EClientExecutionSiteInvalid,
146        EClientExecutionSite::k_EClientExecutionSiteSteamUI,
147        EClientExecutionSite::k_EClientExecutionSiteClientdll,
148        EClientExecutionSite::k_EClientExecutionSiteAny,
149    ];
150}
151
152impl ::std::default::Default for EClientExecutionSite {
153    fn default() -> Self {
154        EClientExecutionSite::k_EClientExecutionSiteInvalid
155    }
156}
157
158
159// Extension generation with lite runtime is not supported
160
161
162const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
163
164#[allow(unused_imports)]
165use crate::enums::*;
166#[allow(unused_imports)]
167use crate::steammessages_base::*;
168impl ::steam_vent_proto_common::RpcMessage for WebUINoResponse {
169    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
170        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
171    }
172    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
173        use ::steam_vent_proto_common::protobuf::Message;
174        self.write_to_writer(writer)
175    }
176    fn encode_size(&self) -> usize {
177        use ::steam_vent_proto_common::protobuf::Message;
178        self.compute_size() as usize
179    }
180}