1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
// This file is generated by rust-protobuf 3.4.0. Do not edit
// .proto file is parsed by pure
// @generated

// https://github.com/rust-lang/rust-clippy/issues/702
#![allow(unknown_lints)]
#![allow(clippy::all)]

#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]

#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_results)]
#![allow(unused_mut)]

//! Generated file from `steammessages_workshop.steamclient.proto`
// Generated for lite runtime

/// Generated files are compatible only with the same version
/// of protobuf runtime.
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0;

#[doc = "Retrieve the status of the user's EULA acceptance."]
// @@protoc_insertion_point(message:CWorkshop_GetEULAStatus_Request)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CWorkshop_GetEULAStatus_Request {
    // message fields
    // @@protoc_insertion_point(field:CWorkshop_GetEULAStatus_Request.appid)
    pub appid: ::std::option::Option<u32>,
    // special fields
    // @@protoc_insertion_point(special_field:CWorkshop_GetEULAStatus_Request.special_fields)
    pub special_fields: ::protobuf::SpecialFields,
}

impl<'a> ::std::default::Default for &'a CWorkshop_GetEULAStatus_Request {
    fn default() -> &'a CWorkshop_GetEULAStatus_Request {
        <CWorkshop_GetEULAStatus_Request as ::protobuf::Message>::default_instance()
    }
}

impl CWorkshop_GetEULAStatus_Request {
    pub fn new() -> CWorkshop_GetEULAStatus_Request {
        ::std::default::Default::default()
    }

    // optional uint32 appid = 1;

    pub fn appid(&self) -> u32 {
        self.appid.unwrap_or(0)
    }

    pub fn clear_appid(&mut self) {
        self.appid = ::std::option::Option::None;
    }

    pub fn has_appid(&self) -> bool {
        self.appid.is_some()
    }

    // Param is passed by value, moved
    pub fn set_appid(&mut self, v: u32) {
        self.appid = ::std::option::Option::Some(v);
    }
}

impl ::protobuf::Message for CWorkshop_GetEULAStatus_Request {
    const NAME: &'static str = "CWorkshop_GetEULAStatus_Request";

    fn is_initialized(&self) -> bool {
        true
    }

    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
        while let Some(tag) = is.read_raw_tag_or_eof()? {
            match tag {
                8 => {
                    self.appid = ::std::option::Option::Some(is.read_uint32()?);
                },
                tag => {
                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u64 {
        let mut my_size = 0;
        if let Some(v) = self.appid {
            my_size += ::protobuf::rt::uint32_size(1, v);
        }
        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
        self.special_fields.cached_size().set(my_size as u32);
        my_size
    }

    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
        if let Some(v) = self.appid {
            os.write_uint32(1, v)?;
        }
        os.write_unknown_fields(self.special_fields.unknown_fields())?;
        ::std::result::Result::Ok(())
    }

    fn special_fields(&self) -> &::protobuf::SpecialFields {
        &self.special_fields
    }

    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
        &mut self.special_fields
    }

    fn new() -> CWorkshop_GetEULAStatus_Request {
        CWorkshop_GetEULAStatus_Request::new()
    }

    fn clear(&mut self) {
        self.appid = ::std::option::Option::None;
        self.special_fields.clear();
    }

    fn default_instance() -> &'static CWorkshop_GetEULAStatus_Request {
        static instance: CWorkshop_GetEULAStatus_Request = CWorkshop_GetEULAStatus_Request {
            appid: ::std::option::Option::None,
            special_fields: ::protobuf::SpecialFields::new(),
        };
        &instance
    }
}

// @@protoc_insertion_point(message:CWorkshop_GetEULAStatus_Response)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CWorkshop_GetEULAStatus_Response {
    // message fields
    // @@protoc_insertion_point(field:CWorkshop_GetEULAStatus_Response.version)
    pub version: ::std::option::Option<u32>,
    // @@protoc_insertion_point(field:CWorkshop_GetEULAStatus_Response.timestamp_action)
    pub timestamp_action: ::std::option::Option<u32>,
    // @@protoc_insertion_point(field:CWorkshop_GetEULAStatus_Response.accepted)
    pub accepted: ::std::option::Option<bool>,
    // @@protoc_insertion_point(field:CWorkshop_GetEULAStatus_Response.needs_action)
    pub needs_action: ::std::option::Option<bool>,
    // special fields
    // @@protoc_insertion_point(special_field:CWorkshop_GetEULAStatus_Response.special_fields)
    pub special_fields: ::protobuf::SpecialFields,
}

impl<'a> ::std::default::Default for &'a CWorkshop_GetEULAStatus_Response {
    fn default() -> &'a CWorkshop_GetEULAStatus_Response {
        <CWorkshop_GetEULAStatus_Response as ::protobuf::Message>::default_instance()
    }
}

impl CWorkshop_GetEULAStatus_Response {
    pub fn new() -> CWorkshop_GetEULAStatus_Response {
        ::std::default::Default::default()
    }

    // optional uint32 version = 1;

    pub fn version(&self) -> u32 {
        self.version.unwrap_or(0)
    }

    pub fn clear_version(&mut self) {
        self.version = ::std::option::Option::None;
    }

    pub fn has_version(&self) -> bool {
        self.version.is_some()
    }

    // Param is passed by value, moved
    pub fn set_version(&mut self, v: u32) {
        self.version = ::std::option::Option::Some(v);
    }

    // optional uint32 timestamp_action = 2;

    pub fn timestamp_action(&self) -> u32 {
        self.timestamp_action.unwrap_or(0)
    }

    pub fn clear_timestamp_action(&mut self) {
        self.timestamp_action = ::std::option::Option::None;
    }

    pub fn has_timestamp_action(&self) -> bool {
        self.timestamp_action.is_some()
    }

    // Param is passed by value, moved
    pub fn set_timestamp_action(&mut self, v: u32) {
        self.timestamp_action = ::std::option::Option::Some(v);
    }

    // optional bool accepted = 3;

    pub fn accepted(&self) -> bool {
        self.accepted.unwrap_or(false)
    }

    pub fn clear_accepted(&mut self) {
        self.accepted = ::std::option::Option::None;
    }

    pub fn has_accepted(&self) -> bool {
        self.accepted.is_some()
    }

    // Param is passed by value, moved
    pub fn set_accepted(&mut self, v: bool) {
        self.accepted = ::std::option::Option::Some(v);
    }

    // optional bool needs_action = 4;

    pub fn needs_action(&self) -> bool {
        self.needs_action.unwrap_or(false)
    }

    pub fn clear_needs_action(&mut self) {
        self.needs_action = ::std::option::Option::None;
    }

    pub fn has_needs_action(&self) -> bool {
        self.needs_action.is_some()
    }

    // Param is passed by value, moved
    pub fn set_needs_action(&mut self, v: bool) {
        self.needs_action = ::std::option::Option::Some(v);
    }
}

impl ::protobuf::Message for CWorkshop_GetEULAStatus_Response {
    const NAME: &'static str = "CWorkshop_GetEULAStatus_Response";

    fn is_initialized(&self) -> bool {
        true
    }

    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
        while let Some(tag) = is.read_raw_tag_or_eof()? {
            match tag {
                8 => {
                    self.version = ::std::option::Option::Some(is.read_uint32()?);
                },
                16 => {
                    self.timestamp_action = ::std::option::Option::Some(is.read_uint32()?);
                },
                24 => {
                    self.accepted = ::std::option::Option::Some(is.read_bool()?);
                },
                32 => {
                    self.needs_action = ::std::option::Option::Some(is.read_bool()?);
                },
                tag => {
                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u64 {
        let mut my_size = 0;
        if let Some(v) = self.version {
            my_size += ::protobuf::rt::uint32_size(1, v);
        }
        if let Some(v) = self.timestamp_action {
            my_size += ::protobuf::rt::uint32_size(2, v);
        }
        if let Some(v) = self.accepted {
            my_size += 1 + 1;
        }
        if let Some(v) = self.needs_action {
            my_size += 1 + 1;
        }
        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
        self.special_fields.cached_size().set(my_size as u32);
        my_size
    }

    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
        if let Some(v) = self.version {
            os.write_uint32(1, v)?;
        }
        if let Some(v) = self.timestamp_action {
            os.write_uint32(2, v)?;
        }
        if let Some(v) = self.accepted {
            os.write_bool(3, v)?;
        }
        if let Some(v) = self.needs_action {
            os.write_bool(4, v)?;
        }
        os.write_unknown_fields(self.special_fields.unknown_fields())?;
        ::std::result::Result::Ok(())
    }

    fn special_fields(&self) -> &::protobuf::SpecialFields {
        &self.special_fields
    }

    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
        &mut self.special_fields
    }

    fn new() -> CWorkshop_GetEULAStatus_Response {
        CWorkshop_GetEULAStatus_Response::new()
    }

    fn clear(&mut self) {
        self.version = ::std::option::Option::None;
        self.timestamp_action = ::std::option::Option::None;
        self.accepted = ::std::option::Option::None;
        self.needs_action = ::std::option::Option::None;
        self.special_fields.clear();
    }

    fn default_instance() -> &'static CWorkshop_GetEULAStatus_Response {
        static instance: CWorkshop_GetEULAStatus_Response = CWorkshop_GetEULAStatus_Response {
            version: ::std::option::Option::None,
            timestamp_action: ::std::option::Option::None,
            accepted: ::std::option::Option::None,
            needs_action: ::std::option::Option::None,
            special_fields: ::protobuf::SpecialFields::new(),
        };
        &instance
    }
}
#[allow(unused_imports)]
use crate::steammessages_base::*;
#[allow(unused_imports)]
use crate::steammessages_unified_base_steamclient::*;
impl crate::RpcMessage for CWorkshop_GetEULAStatus_Request {
    fn parse(reader: &mut dyn std::io::Read) -> protobuf::Result<Self> {
        <Self as protobuf::Message>::parse_from_reader(reader)
    }
    fn write(&self, writer: &mut dyn std::io::Write) -> protobuf::Result<()> {
        use protobuf::Message;
        self.write_to_writer(writer)
    }
    fn encode_size(&self) -> usize {
        use protobuf::Message;
        self.compute_size() as usize
    }
}
impl crate::RpcMessage for CWorkshop_GetEULAStatus_Response {
    fn parse(reader: &mut dyn std::io::Read) -> protobuf::Result<Self> {
        <Self as protobuf::Message>::parse_from_reader(reader)
    }
    fn write(&self, writer: &mut dyn std::io::Write) -> protobuf::Result<()> {
        use protobuf::Message;
        self.write_to_writer(writer)
    }
    fn encode_size(&self) -> usize {
        use protobuf::Message;
        self.compute_size() as usize
    }
}
///A service to access published file data
struct Workshop {}
impl crate::RpcService for Workshop {
    const SERVICE_NAME: &'static str = "Workshop";
}
impl crate::RpcMethod for CWorkshop_GetEULAStatus_Request {
    const METHOD_NAME: &'static str = "Workshop.GetEULAStatus#1";
    type Response = CWorkshop_GetEULAStatus_Response;
}