kplayer_rust_wrap/kplayer/proto/
msg_resource.rs

1// This file is generated by rust-protobuf 2.27.1. Do not edit
2// @generated
3
4// https://github.com/rust-lang/rust-clippy/issues/702
5#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
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_imports)]
19#![allow(unused_results)]
20//! Generated file from `proto/msg/msg_resource.proto`
21
22/// Generated files are compatible only with the same version
23/// of protobuf runtime.
24// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1;
25
26#[derive(PartialEq,Clone,Default)]
27pub struct EventMessageResourceStart {
28    // message fields
29    pub resource: ::protobuf::SingularPtrField<super::keys::MessageResource>,
30    pub error: ::std::string::String,
31    // special fields
32    pub unknown_fields: ::protobuf::UnknownFields,
33    pub cached_size: ::protobuf::CachedSize,
34}
35
36impl<'a> ::std::default::Default for &'a EventMessageResourceStart {
37    fn default() -> &'a EventMessageResourceStart {
38        <EventMessageResourceStart as ::protobuf::Message>::default_instance()
39    }
40}
41
42impl EventMessageResourceStart {
43    pub fn new() -> EventMessageResourceStart {
44        ::std::default::Default::default()
45    }
46
47    // .KPProto.MessageResource resource = 1;
48
49
50    pub fn get_resource(&self) -> &super::keys::MessageResource {
51        self.resource.as_ref().unwrap_or_else(|| <super::keys::MessageResource as ::protobuf::Message>::default_instance())
52    }
53    pub fn clear_resource(&mut self) {
54        self.resource.clear();
55    }
56
57    pub fn has_resource(&self) -> bool {
58        self.resource.is_some()
59    }
60
61    // Param is passed by value, moved
62    pub fn set_resource(&mut self, v: super::keys::MessageResource) {
63        self.resource = ::protobuf::SingularPtrField::some(v);
64    }
65
66    // Mutable pointer to the field.
67    // If field is not initialized, it is initialized with default value first.
68    pub fn mut_resource(&mut self) -> &mut super::keys::MessageResource {
69        if self.resource.is_none() {
70            self.resource.set_default();
71        }
72        self.resource.as_mut().unwrap()
73    }
74
75    // Take field
76    pub fn take_resource(&mut self) -> super::keys::MessageResource {
77        self.resource.take().unwrap_or_else(|| super::keys::MessageResource::new())
78    }
79
80    // string error = 2;
81
82
83    pub fn get_error(&self) -> &str {
84        &self.error
85    }
86    pub fn clear_error(&mut self) {
87        self.error.clear();
88    }
89
90    // Param is passed by value, moved
91    pub fn set_error(&mut self, v: ::std::string::String) {
92        self.error = v;
93    }
94
95    // Mutable pointer to the field.
96    // If field is not initialized, it is initialized with default value first.
97    pub fn mut_error(&mut self) -> &mut ::std::string::String {
98        &mut self.error
99    }
100
101    // Take field
102    pub fn take_error(&mut self) -> ::std::string::String {
103        ::std::mem::replace(&mut self.error, ::std::string::String::new())
104    }
105}
106
107impl ::protobuf::Message for EventMessageResourceStart {
108    fn is_initialized(&self) -> bool {
109        for v in &self.resource {
110            if !v.is_initialized() {
111                return false;
112            }
113        };
114        true
115    }
116
117    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
118        while !is.eof()? {
119            let (field_number, wire_type) = is.read_tag_unpack()?;
120            match field_number {
121                1 => {
122                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource)?;
123                },
124                2 => {
125                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
126                },
127                _ => {
128                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
129                },
130            };
131        }
132        ::std::result::Result::Ok(())
133    }
134
135    // Compute sizes of nested messages
136    #[allow(unused_variables)]
137    fn compute_size(&self) -> u32 {
138        let mut my_size = 0;
139        if let Some(ref v) = self.resource.as_ref() {
140            let len = v.compute_size();
141            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
142        }
143        if !self.error.is_empty() {
144            my_size += ::protobuf::rt::string_size(2, &self.error);
145        }
146        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
147        self.cached_size.set(my_size);
148        my_size
149    }
150
151    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
152        if let Some(ref v) = self.resource.as_ref() {
153            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
154            os.write_raw_varint32(v.get_cached_size())?;
155            v.write_to_with_cached_sizes(os)?;
156        }
157        if !self.error.is_empty() {
158            os.write_string(2, &self.error)?;
159        }
160        os.write_unknown_fields(self.get_unknown_fields())?;
161        ::std::result::Result::Ok(())
162    }
163
164    fn get_cached_size(&self) -> u32 {
165        self.cached_size.get()
166    }
167
168    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
169        &self.unknown_fields
170    }
171
172    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
173        &mut self.unknown_fields
174    }
175
176    fn as_any(&self) -> &dyn (::std::any::Any) {
177        self as &dyn (::std::any::Any)
178    }
179    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
180        self as &mut dyn (::std::any::Any)
181    }
182    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
183        self
184    }
185
186    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
187        Self::descriptor_static()
188    }
189
190    fn new() -> EventMessageResourceStart {
191        EventMessageResourceStart::new()
192    }
193
194    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
195        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
196        descriptor.get(|| {
197            let mut fields = ::std::vec::Vec::new();
198            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::keys::MessageResource>>(
199                "resource",
200                |m: &EventMessageResourceStart| { &m.resource },
201                |m: &mut EventMessageResourceStart| { &mut m.resource },
202            ));
203            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
204                "error",
205                |m: &EventMessageResourceStart| { &m.error },
206                |m: &mut EventMessageResourceStart| { &mut m.error },
207            ));
208            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceStart>(
209                "EventMessageResourceStart",
210                fields,
211                file_descriptor_proto()
212            )
213        })
214    }
215
216    fn default_instance() -> &'static EventMessageResourceStart {
217        static instance: ::protobuf::rt::LazyV2<EventMessageResourceStart> = ::protobuf::rt::LazyV2::INIT;
218        instance.get(EventMessageResourceStart::new)
219    }
220}
221
222impl ::protobuf::Clear for EventMessageResourceStart {
223    fn clear(&mut self) {
224        self.resource.clear();
225        self.error.clear();
226        self.unknown_fields.clear();
227    }
228}
229
230impl ::std::fmt::Debug for EventMessageResourceStart {
231    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
232        ::protobuf::text_format::fmt(self, f)
233    }
234}
235
236impl ::protobuf::reflect::ProtobufValue for EventMessageResourceStart {
237    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
238        ::protobuf::reflect::ReflectValueRef::Message(self)
239    }
240}
241
242#[derive(PartialEq,Clone,Default)]
243pub struct EventMessageResourceChecked {
244    // message fields
245    pub resource: ::protobuf::SingularPtrField<super::keys::MessageResource>,
246    pub input_attribute: ::protobuf::SingularPtrField<EventMessageResourceInputAttribute>,
247    pub output_option: ::protobuf::SingularPtrField<EventMessageResourceCheckedOutputOption>,
248    pub error: ::std::string::String,
249    pub hit_cache: bool,
250    // special fields
251    pub unknown_fields: ::protobuf::UnknownFields,
252    pub cached_size: ::protobuf::CachedSize,
253}
254
255impl<'a> ::std::default::Default for &'a EventMessageResourceChecked {
256    fn default() -> &'a EventMessageResourceChecked {
257        <EventMessageResourceChecked as ::protobuf::Message>::default_instance()
258    }
259}
260
261impl EventMessageResourceChecked {
262    pub fn new() -> EventMessageResourceChecked {
263        ::std::default::Default::default()
264    }
265
266    // .KPProto.MessageResource resource = 1;
267
268
269    pub fn get_resource(&self) -> &super::keys::MessageResource {
270        self.resource.as_ref().unwrap_or_else(|| <super::keys::MessageResource as ::protobuf::Message>::default_instance())
271    }
272    pub fn clear_resource(&mut self) {
273        self.resource.clear();
274    }
275
276    pub fn has_resource(&self) -> bool {
277        self.resource.is_some()
278    }
279
280    // Param is passed by value, moved
281    pub fn set_resource(&mut self, v: super::keys::MessageResource) {
282        self.resource = ::protobuf::SingularPtrField::some(v);
283    }
284
285    // Mutable pointer to the field.
286    // If field is not initialized, it is initialized with default value first.
287    pub fn mut_resource(&mut self) -> &mut super::keys::MessageResource {
288        if self.resource.is_none() {
289            self.resource.set_default();
290        }
291        self.resource.as_mut().unwrap()
292    }
293
294    // Take field
295    pub fn take_resource(&mut self) -> super::keys::MessageResource {
296        self.resource.take().unwrap_or_else(|| super::keys::MessageResource::new())
297    }
298
299    // .KPProto.Msg.EventMessageResourceInputAttribute input_attribute = 2;
300
301
302    pub fn get_input_attribute(&self) -> &EventMessageResourceInputAttribute {
303        self.input_attribute.as_ref().unwrap_or_else(|| <EventMessageResourceInputAttribute as ::protobuf::Message>::default_instance())
304    }
305    pub fn clear_input_attribute(&mut self) {
306        self.input_attribute.clear();
307    }
308
309    pub fn has_input_attribute(&self) -> bool {
310        self.input_attribute.is_some()
311    }
312
313    // Param is passed by value, moved
314    pub fn set_input_attribute(&mut self, v: EventMessageResourceInputAttribute) {
315        self.input_attribute = ::protobuf::SingularPtrField::some(v);
316    }
317
318    // Mutable pointer to the field.
319    // If field is not initialized, it is initialized with default value first.
320    pub fn mut_input_attribute(&mut self) -> &mut EventMessageResourceInputAttribute {
321        if self.input_attribute.is_none() {
322            self.input_attribute.set_default();
323        }
324        self.input_attribute.as_mut().unwrap()
325    }
326
327    // Take field
328    pub fn take_input_attribute(&mut self) -> EventMessageResourceInputAttribute {
329        self.input_attribute.take().unwrap_or_else(|| EventMessageResourceInputAttribute::new())
330    }
331
332    // .KPProto.Msg.EventMessageResourceCheckedOutputOption output_option = 3;
333
334
335    pub fn get_output_option(&self) -> &EventMessageResourceCheckedOutputOption {
336        self.output_option.as_ref().unwrap_or_else(|| <EventMessageResourceCheckedOutputOption as ::protobuf::Message>::default_instance())
337    }
338    pub fn clear_output_option(&mut self) {
339        self.output_option.clear();
340    }
341
342    pub fn has_output_option(&self) -> bool {
343        self.output_option.is_some()
344    }
345
346    // Param is passed by value, moved
347    pub fn set_output_option(&mut self, v: EventMessageResourceCheckedOutputOption) {
348        self.output_option = ::protobuf::SingularPtrField::some(v);
349    }
350
351    // Mutable pointer to the field.
352    // If field is not initialized, it is initialized with default value first.
353    pub fn mut_output_option(&mut self) -> &mut EventMessageResourceCheckedOutputOption {
354        if self.output_option.is_none() {
355            self.output_option.set_default();
356        }
357        self.output_option.as_mut().unwrap()
358    }
359
360    // Take field
361    pub fn take_output_option(&mut self) -> EventMessageResourceCheckedOutputOption {
362        self.output_option.take().unwrap_or_else(|| EventMessageResourceCheckedOutputOption::new())
363    }
364
365    // string error = 4;
366
367
368    pub fn get_error(&self) -> &str {
369        &self.error
370    }
371    pub fn clear_error(&mut self) {
372        self.error.clear();
373    }
374
375    // Param is passed by value, moved
376    pub fn set_error(&mut self, v: ::std::string::String) {
377        self.error = v;
378    }
379
380    // Mutable pointer to the field.
381    // If field is not initialized, it is initialized with default value first.
382    pub fn mut_error(&mut self) -> &mut ::std::string::String {
383        &mut self.error
384    }
385
386    // Take field
387    pub fn take_error(&mut self) -> ::std::string::String {
388        ::std::mem::replace(&mut self.error, ::std::string::String::new())
389    }
390
391    // bool hit_cache = 5;
392
393
394    pub fn get_hit_cache(&self) -> bool {
395        self.hit_cache
396    }
397    pub fn clear_hit_cache(&mut self) {
398        self.hit_cache = false;
399    }
400
401    // Param is passed by value, moved
402    pub fn set_hit_cache(&mut self, v: bool) {
403        self.hit_cache = v;
404    }
405}
406
407impl ::protobuf::Message for EventMessageResourceChecked {
408    fn is_initialized(&self) -> bool {
409        for v in &self.resource {
410            if !v.is_initialized() {
411                return false;
412            }
413        };
414        for v in &self.input_attribute {
415            if !v.is_initialized() {
416                return false;
417            }
418        };
419        for v in &self.output_option {
420            if !v.is_initialized() {
421                return false;
422            }
423        };
424        true
425    }
426
427    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
428        while !is.eof()? {
429            let (field_number, wire_type) = is.read_tag_unpack()?;
430            match field_number {
431                1 => {
432                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource)?;
433                },
434                2 => {
435                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.input_attribute)?;
436                },
437                3 => {
438                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.output_option)?;
439                },
440                4 => {
441                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
442                },
443                5 => {
444                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
445                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
446                    }
447                    let tmp = is.read_bool()?;
448                    self.hit_cache = tmp;
449                },
450                _ => {
451                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
452                },
453            };
454        }
455        ::std::result::Result::Ok(())
456    }
457
458    // Compute sizes of nested messages
459    #[allow(unused_variables)]
460    fn compute_size(&self) -> u32 {
461        let mut my_size = 0;
462        if let Some(ref v) = self.resource.as_ref() {
463            let len = v.compute_size();
464            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
465        }
466        if let Some(ref v) = self.input_attribute.as_ref() {
467            let len = v.compute_size();
468            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
469        }
470        if let Some(ref v) = self.output_option.as_ref() {
471            let len = v.compute_size();
472            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
473        }
474        if !self.error.is_empty() {
475            my_size += ::protobuf::rt::string_size(4, &self.error);
476        }
477        if self.hit_cache != false {
478            my_size += 2;
479        }
480        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
481        self.cached_size.set(my_size);
482        my_size
483    }
484
485    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
486        if let Some(ref v) = self.resource.as_ref() {
487            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
488            os.write_raw_varint32(v.get_cached_size())?;
489            v.write_to_with_cached_sizes(os)?;
490        }
491        if let Some(ref v) = self.input_attribute.as_ref() {
492            os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
493            os.write_raw_varint32(v.get_cached_size())?;
494            v.write_to_with_cached_sizes(os)?;
495        }
496        if let Some(ref v) = self.output_option.as_ref() {
497            os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
498            os.write_raw_varint32(v.get_cached_size())?;
499            v.write_to_with_cached_sizes(os)?;
500        }
501        if !self.error.is_empty() {
502            os.write_string(4, &self.error)?;
503        }
504        if self.hit_cache != false {
505            os.write_bool(5, self.hit_cache)?;
506        }
507        os.write_unknown_fields(self.get_unknown_fields())?;
508        ::std::result::Result::Ok(())
509    }
510
511    fn get_cached_size(&self) -> u32 {
512        self.cached_size.get()
513    }
514
515    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
516        &self.unknown_fields
517    }
518
519    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
520        &mut self.unknown_fields
521    }
522
523    fn as_any(&self) -> &dyn (::std::any::Any) {
524        self as &dyn (::std::any::Any)
525    }
526    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
527        self as &mut dyn (::std::any::Any)
528    }
529    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
530        self
531    }
532
533    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
534        Self::descriptor_static()
535    }
536
537    fn new() -> EventMessageResourceChecked {
538        EventMessageResourceChecked::new()
539    }
540
541    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
542        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
543        descriptor.get(|| {
544            let mut fields = ::std::vec::Vec::new();
545            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::keys::MessageResource>>(
546                "resource",
547                |m: &EventMessageResourceChecked| { &m.resource },
548                |m: &mut EventMessageResourceChecked| { &mut m.resource },
549            ));
550            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EventMessageResourceInputAttribute>>(
551                "input_attribute",
552                |m: &EventMessageResourceChecked| { &m.input_attribute },
553                |m: &mut EventMessageResourceChecked| { &mut m.input_attribute },
554            ));
555            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EventMessageResourceCheckedOutputOption>>(
556                "output_option",
557                |m: &EventMessageResourceChecked| { &m.output_option },
558                |m: &mut EventMessageResourceChecked| { &mut m.output_option },
559            ));
560            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
561                "error",
562                |m: &EventMessageResourceChecked| { &m.error },
563                |m: &mut EventMessageResourceChecked| { &mut m.error },
564            ));
565            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
566                "hit_cache",
567                |m: &EventMessageResourceChecked| { &m.hit_cache },
568                |m: &mut EventMessageResourceChecked| { &mut m.hit_cache },
569            ));
570            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceChecked>(
571                "EventMessageResourceChecked",
572                fields,
573                file_descriptor_proto()
574            )
575        })
576    }
577
578    fn default_instance() -> &'static EventMessageResourceChecked {
579        static instance: ::protobuf::rt::LazyV2<EventMessageResourceChecked> = ::protobuf::rt::LazyV2::INIT;
580        instance.get(EventMessageResourceChecked::new)
581    }
582}
583
584impl ::protobuf::Clear for EventMessageResourceChecked {
585    fn clear(&mut self) {
586        self.resource.clear();
587        self.input_attribute.clear();
588        self.output_option.clear();
589        self.error.clear();
590        self.hit_cache = false;
591        self.unknown_fields.clear();
592    }
593}
594
595impl ::std::fmt::Debug for EventMessageResourceChecked {
596    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
597        ::protobuf::text_format::fmt(self, f)
598    }
599}
600
601impl ::protobuf::reflect::ProtobufValue for EventMessageResourceChecked {
602    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
603        ::protobuf::reflect::ReflectValueRef::Message(self)
604    }
605}
606
607#[derive(PartialEq,Clone,Default)]
608pub struct EventMessageResourceCheckedOutputOption {
609    // message fields
610    pub video_width: u64,
611    pub video_height: u64,
612    pub video_fps: u64,
613    pub audio_sample_rate: u64,
614    pub audio_channel_layout: u64,
615    pub audio_channels: u64,
616    // special fields
617    pub unknown_fields: ::protobuf::UnknownFields,
618    pub cached_size: ::protobuf::CachedSize,
619}
620
621impl<'a> ::std::default::Default for &'a EventMessageResourceCheckedOutputOption {
622    fn default() -> &'a EventMessageResourceCheckedOutputOption {
623        <EventMessageResourceCheckedOutputOption as ::protobuf::Message>::default_instance()
624    }
625}
626
627impl EventMessageResourceCheckedOutputOption {
628    pub fn new() -> EventMessageResourceCheckedOutputOption {
629        ::std::default::Default::default()
630    }
631
632    // uint64 video_width = 1;
633
634
635    pub fn get_video_width(&self) -> u64 {
636        self.video_width
637    }
638    pub fn clear_video_width(&mut self) {
639        self.video_width = 0;
640    }
641
642    // Param is passed by value, moved
643    pub fn set_video_width(&mut self, v: u64) {
644        self.video_width = v;
645    }
646
647    // uint64 video_height = 2;
648
649
650    pub fn get_video_height(&self) -> u64 {
651        self.video_height
652    }
653    pub fn clear_video_height(&mut self) {
654        self.video_height = 0;
655    }
656
657    // Param is passed by value, moved
658    pub fn set_video_height(&mut self, v: u64) {
659        self.video_height = v;
660    }
661
662    // uint64 video_fps = 3;
663
664
665    pub fn get_video_fps(&self) -> u64 {
666        self.video_fps
667    }
668    pub fn clear_video_fps(&mut self) {
669        self.video_fps = 0;
670    }
671
672    // Param is passed by value, moved
673    pub fn set_video_fps(&mut self, v: u64) {
674        self.video_fps = v;
675    }
676
677    // uint64 audio_sample_rate = 4;
678
679
680    pub fn get_audio_sample_rate(&self) -> u64 {
681        self.audio_sample_rate
682    }
683    pub fn clear_audio_sample_rate(&mut self) {
684        self.audio_sample_rate = 0;
685    }
686
687    // Param is passed by value, moved
688    pub fn set_audio_sample_rate(&mut self, v: u64) {
689        self.audio_sample_rate = v;
690    }
691
692    // uint64 audio_channel_layout = 5;
693
694
695    pub fn get_audio_channel_layout(&self) -> u64 {
696        self.audio_channel_layout
697    }
698    pub fn clear_audio_channel_layout(&mut self) {
699        self.audio_channel_layout = 0;
700    }
701
702    // Param is passed by value, moved
703    pub fn set_audio_channel_layout(&mut self, v: u64) {
704        self.audio_channel_layout = v;
705    }
706
707    // uint64 audio_channels = 6;
708
709
710    pub fn get_audio_channels(&self) -> u64 {
711        self.audio_channels
712    }
713    pub fn clear_audio_channels(&mut self) {
714        self.audio_channels = 0;
715    }
716
717    // Param is passed by value, moved
718    pub fn set_audio_channels(&mut self, v: u64) {
719        self.audio_channels = v;
720    }
721}
722
723impl ::protobuf::Message for EventMessageResourceCheckedOutputOption {
724    fn is_initialized(&self) -> bool {
725        true
726    }
727
728    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
729        while !is.eof()? {
730            let (field_number, wire_type) = is.read_tag_unpack()?;
731            match field_number {
732                1 => {
733                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
734                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
735                    }
736                    let tmp = is.read_uint64()?;
737                    self.video_width = tmp;
738                },
739                2 => {
740                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
741                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
742                    }
743                    let tmp = is.read_uint64()?;
744                    self.video_height = tmp;
745                },
746                3 => {
747                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
748                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
749                    }
750                    let tmp = is.read_uint64()?;
751                    self.video_fps = tmp;
752                },
753                4 => {
754                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
755                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
756                    }
757                    let tmp = is.read_uint64()?;
758                    self.audio_sample_rate = tmp;
759                },
760                5 => {
761                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
762                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
763                    }
764                    let tmp = is.read_uint64()?;
765                    self.audio_channel_layout = tmp;
766                },
767                6 => {
768                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
769                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
770                    }
771                    let tmp = is.read_uint64()?;
772                    self.audio_channels = tmp;
773                },
774                _ => {
775                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
776                },
777            };
778        }
779        ::std::result::Result::Ok(())
780    }
781
782    // Compute sizes of nested messages
783    #[allow(unused_variables)]
784    fn compute_size(&self) -> u32 {
785        let mut my_size = 0;
786        if self.video_width != 0 {
787            my_size += ::protobuf::rt::value_size(1, self.video_width, ::protobuf::wire_format::WireTypeVarint);
788        }
789        if self.video_height != 0 {
790            my_size += ::protobuf::rt::value_size(2, self.video_height, ::protobuf::wire_format::WireTypeVarint);
791        }
792        if self.video_fps != 0 {
793            my_size += ::protobuf::rt::value_size(3, self.video_fps, ::protobuf::wire_format::WireTypeVarint);
794        }
795        if self.audio_sample_rate != 0 {
796            my_size += ::protobuf::rt::value_size(4, self.audio_sample_rate, ::protobuf::wire_format::WireTypeVarint);
797        }
798        if self.audio_channel_layout != 0 {
799            my_size += ::protobuf::rt::value_size(5, self.audio_channel_layout, ::protobuf::wire_format::WireTypeVarint);
800        }
801        if self.audio_channels != 0 {
802            my_size += ::protobuf::rt::value_size(6, self.audio_channels, ::protobuf::wire_format::WireTypeVarint);
803        }
804        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
805        self.cached_size.set(my_size);
806        my_size
807    }
808
809    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
810        if self.video_width != 0 {
811            os.write_uint64(1, self.video_width)?;
812        }
813        if self.video_height != 0 {
814            os.write_uint64(2, self.video_height)?;
815        }
816        if self.video_fps != 0 {
817            os.write_uint64(3, self.video_fps)?;
818        }
819        if self.audio_sample_rate != 0 {
820            os.write_uint64(4, self.audio_sample_rate)?;
821        }
822        if self.audio_channel_layout != 0 {
823            os.write_uint64(5, self.audio_channel_layout)?;
824        }
825        if self.audio_channels != 0 {
826            os.write_uint64(6, self.audio_channels)?;
827        }
828        os.write_unknown_fields(self.get_unknown_fields())?;
829        ::std::result::Result::Ok(())
830    }
831
832    fn get_cached_size(&self) -> u32 {
833        self.cached_size.get()
834    }
835
836    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
837        &self.unknown_fields
838    }
839
840    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
841        &mut self.unknown_fields
842    }
843
844    fn as_any(&self) -> &dyn (::std::any::Any) {
845        self as &dyn (::std::any::Any)
846    }
847    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
848        self as &mut dyn (::std::any::Any)
849    }
850    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
851        self
852    }
853
854    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
855        Self::descriptor_static()
856    }
857
858    fn new() -> EventMessageResourceCheckedOutputOption {
859        EventMessageResourceCheckedOutputOption::new()
860    }
861
862    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
863        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
864        descriptor.get(|| {
865            let mut fields = ::std::vec::Vec::new();
866            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
867                "video_width",
868                |m: &EventMessageResourceCheckedOutputOption| { &m.video_width },
869                |m: &mut EventMessageResourceCheckedOutputOption| { &mut m.video_width },
870            ));
871            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
872                "video_height",
873                |m: &EventMessageResourceCheckedOutputOption| { &m.video_height },
874                |m: &mut EventMessageResourceCheckedOutputOption| { &mut m.video_height },
875            ));
876            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
877                "video_fps",
878                |m: &EventMessageResourceCheckedOutputOption| { &m.video_fps },
879                |m: &mut EventMessageResourceCheckedOutputOption| { &mut m.video_fps },
880            ));
881            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
882                "audio_sample_rate",
883                |m: &EventMessageResourceCheckedOutputOption| { &m.audio_sample_rate },
884                |m: &mut EventMessageResourceCheckedOutputOption| { &mut m.audio_sample_rate },
885            ));
886            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
887                "audio_channel_layout",
888                |m: &EventMessageResourceCheckedOutputOption| { &m.audio_channel_layout },
889                |m: &mut EventMessageResourceCheckedOutputOption| { &mut m.audio_channel_layout },
890            ));
891            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
892                "audio_channels",
893                |m: &EventMessageResourceCheckedOutputOption| { &m.audio_channels },
894                |m: &mut EventMessageResourceCheckedOutputOption| { &mut m.audio_channels },
895            ));
896            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceCheckedOutputOption>(
897                "EventMessageResourceCheckedOutputOption",
898                fields,
899                file_descriptor_proto()
900            )
901        })
902    }
903
904    fn default_instance() -> &'static EventMessageResourceCheckedOutputOption {
905        static instance: ::protobuf::rt::LazyV2<EventMessageResourceCheckedOutputOption> = ::protobuf::rt::LazyV2::INIT;
906        instance.get(EventMessageResourceCheckedOutputOption::new)
907    }
908}
909
910impl ::protobuf::Clear for EventMessageResourceCheckedOutputOption {
911    fn clear(&mut self) {
912        self.video_width = 0;
913        self.video_height = 0;
914        self.video_fps = 0;
915        self.audio_sample_rate = 0;
916        self.audio_channel_layout = 0;
917        self.audio_channels = 0;
918        self.unknown_fields.clear();
919    }
920}
921
922impl ::std::fmt::Debug for EventMessageResourceCheckedOutputOption {
923    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
924        ::protobuf::text_format::fmt(self, f)
925    }
926}
927
928impl ::protobuf::reflect::ProtobufValue for EventMessageResourceCheckedOutputOption {
929    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
930        ::protobuf::reflect::ReflectValueRef::Message(self)
931    }
932}
933
934#[derive(PartialEq,Clone,Default)]
935pub struct EventMessageResourceInputAttribute {
936    // message fields
937    pub duration: u64,
938    // special fields
939    pub unknown_fields: ::protobuf::UnknownFields,
940    pub cached_size: ::protobuf::CachedSize,
941}
942
943impl<'a> ::std::default::Default for &'a EventMessageResourceInputAttribute {
944    fn default() -> &'a EventMessageResourceInputAttribute {
945        <EventMessageResourceInputAttribute as ::protobuf::Message>::default_instance()
946    }
947}
948
949impl EventMessageResourceInputAttribute {
950    pub fn new() -> EventMessageResourceInputAttribute {
951        ::std::default::Default::default()
952    }
953
954    // uint64 duration = 1;
955
956
957    pub fn get_duration(&self) -> u64 {
958        self.duration
959    }
960    pub fn clear_duration(&mut self) {
961        self.duration = 0;
962    }
963
964    // Param is passed by value, moved
965    pub fn set_duration(&mut self, v: u64) {
966        self.duration = v;
967    }
968}
969
970impl ::protobuf::Message for EventMessageResourceInputAttribute {
971    fn is_initialized(&self) -> bool {
972        true
973    }
974
975    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
976        while !is.eof()? {
977            let (field_number, wire_type) = is.read_tag_unpack()?;
978            match field_number {
979                1 => {
980                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
981                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
982                    }
983                    let tmp = is.read_uint64()?;
984                    self.duration = tmp;
985                },
986                _ => {
987                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
988                },
989            };
990        }
991        ::std::result::Result::Ok(())
992    }
993
994    // Compute sizes of nested messages
995    #[allow(unused_variables)]
996    fn compute_size(&self) -> u32 {
997        let mut my_size = 0;
998        if self.duration != 0 {
999            my_size += ::protobuf::rt::value_size(1, self.duration, ::protobuf::wire_format::WireTypeVarint);
1000        }
1001        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1002        self.cached_size.set(my_size);
1003        my_size
1004    }
1005
1006    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1007        if self.duration != 0 {
1008            os.write_uint64(1, self.duration)?;
1009        }
1010        os.write_unknown_fields(self.get_unknown_fields())?;
1011        ::std::result::Result::Ok(())
1012    }
1013
1014    fn get_cached_size(&self) -> u32 {
1015        self.cached_size.get()
1016    }
1017
1018    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1019        &self.unknown_fields
1020    }
1021
1022    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1023        &mut self.unknown_fields
1024    }
1025
1026    fn as_any(&self) -> &dyn (::std::any::Any) {
1027        self as &dyn (::std::any::Any)
1028    }
1029    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1030        self as &mut dyn (::std::any::Any)
1031    }
1032    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1033        self
1034    }
1035
1036    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1037        Self::descriptor_static()
1038    }
1039
1040    fn new() -> EventMessageResourceInputAttribute {
1041        EventMessageResourceInputAttribute::new()
1042    }
1043
1044    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1045        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1046        descriptor.get(|| {
1047            let mut fields = ::std::vec::Vec::new();
1048            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
1049                "duration",
1050                |m: &EventMessageResourceInputAttribute| { &m.duration },
1051                |m: &mut EventMessageResourceInputAttribute| { &mut m.duration },
1052            ));
1053            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceInputAttribute>(
1054                "EventMessageResourceInputAttribute",
1055                fields,
1056                file_descriptor_proto()
1057            )
1058        })
1059    }
1060
1061    fn default_instance() -> &'static EventMessageResourceInputAttribute {
1062        static instance: ::protobuf::rt::LazyV2<EventMessageResourceInputAttribute> = ::protobuf::rt::LazyV2::INIT;
1063        instance.get(EventMessageResourceInputAttribute::new)
1064    }
1065}
1066
1067impl ::protobuf::Clear for EventMessageResourceInputAttribute {
1068    fn clear(&mut self) {
1069        self.duration = 0;
1070        self.unknown_fields.clear();
1071    }
1072}
1073
1074impl ::std::fmt::Debug for EventMessageResourceInputAttribute {
1075    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1076        ::protobuf::text_format::fmt(self, f)
1077    }
1078}
1079
1080impl ::protobuf::reflect::ProtobufValue for EventMessageResourceInputAttribute {
1081    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1082        ::protobuf::reflect::ReflectValueRef::Message(self)
1083    }
1084}
1085
1086#[derive(PartialEq,Clone,Default)]
1087pub struct EventMessageResourceFinish {
1088    // message fields
1089    pub resource: ::protobuf::SingularPtrField<super::keys::MessageResource>,
1090    pub error: ::std::string::String,
1091    // special fields
1092    pub unknown_fields: ::protobuf::UnknownFields,
1093    pub cached_size: ::protobuf::CachedSize,
1094}
1095
1096impl<'a> ::std::default::Default for &'a EventMessageResourceFinish {
1097    fn default() -> &'a EventMessageResourceFinish {
1098        <EventMessageResourceFinish as ::protobuf::Message>::default_instance()
1099    }
1100}
1101
1102impl EventMessageResourceFinish {
1103    pub fn new() -> EventMessageResourceFinish {
1104        ::std::default::Default::default()
1105    }
1106
1107    // .KPProto.MessageResource resource = 1;
1108
1109
1110    pub fn get_resource(&self) -> &super::keys::MessageResource {
1111        self.resource.as_ref().unwrap_or_else(|| <super::keys::MessageResource as ::protobuf::Message>::default_instance())
1112    }
1113    pub fn clear_resource(&mut self) {
1114        self.resource.clear();
1115    }
1116
1117    pub fn has_resource(&self) -> bool {
1118        self.resource.is_some()
1119    }
1120
1121    // Param is passed by value, moved
1122    pub fn set_resource(&mut self, v: super::keys::MessageResource) {
1123        self.resource = ::protobuf::SingularPtrField::some(v);
1124    }
1125
1126    // Mutable pointer to the field.
1127    // If field is not initialized, it is initialized with default value first.
1128    pub fn mut_resource(&mut self) -> &mut super::keys::MessageResource {
1129        if self.resource.is_none() {
1130            self.resource.set_default();
1131        }
1132        self.resource.as_mut().unwrap()
1133    }
1134
1135    // Take field
1136    pub fn take_resource(&mut self) -> super::keys::MessageResource {
1137        self.resource.take().unwrap_or_else(|| super::keys::MessageResource::new())
1138    }
1139
1140    // string error = 2;
1141
1142
1143    pub fn get_error(&self) -> &str {
1144        &self.error
1145    }
1146    pub fn clear_error(&mut self) {
1147        self.error.clear();
1148    }
1149
1150    // Param is passed by value, moved
1151    pub fn set_error(&mut self, v: ::std::string::String) {
1152        self.error = v;
1153    }
1154
1155    // Mutable pointer to the field.
1156    // If field is not initialized, it is initialized with default value first.
1157    pub fn mut_error(&mut self) -> &mut ::std::string::String {
1158        &mut self.error
1159    }
1160
1161    // Take field
1162    pub fn take_error(&mut self) -> ::std::string::String {
1163        ::std::mem::replace(&mut self.error, ::std::string::String::new())
1164    }
1165}
1166
1167impl ::protobuf::Message for EventMessageResourceFinish {
1168    fn is_initialized(&self) -> bool {
1169        for v in &self.resource {
1170            if !v.is_initialized() {
1171                return false;
1172            }
1173        };
1174        true
1175    }
1176
1177    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1178        while !is.eof()? {
1179            let (field_number, wire_type) = is.read_tag_unpack()?;
1180            match field_number {
1181                1 => {
1182                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource)?;
1183                },
1184                2 => {
1185                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
1186                },
1187                _ => {
1188                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1189                },
1190            };
1191        }
1192        ::std::result::Result::Ok(())
1193    }
1194
1195    // Compute sizes of nested messages
1196    #[allow(unused_variables)]
1197    fn compute_size(&self) -> u32 {
1198        let mut my_size = 0;
1199        if let Some(ref v) = self.resource.as_ref() {
1200            let len = v.compute_size();
1201            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1202        }
1203        if !self.error.is_empty() {
1204            my_size += ::protobuf::rt::string_size(2, &self.error);
1205        }
1206        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1207        self.cached_size.set(my_size);
1208        my_size
1209    }
1210
1211    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1212        if let Some(ref v) = self.resource.as_ref() {
1213            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1214            os.write_raw_varint32(v.get_cached_size())?;
1215            v.write_to_with_cached_sizes(os)?;
1216        }
1217        if !self.error.is_empty() {
1218            os.write_string(2, &self.error)?;
1219        }
1220        os.write_unknown_fields(self.get_unknown_fields())?;
1221        ::std::result::Result::Ok(())
1222    }
1223
1224    fn get_cached_size(&self) -> u32 {
1225        self.cached_size.get()
1226    }
1227
1228    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1229        &self.unknown_fields
1230    }
1231
1232    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1233        &mut self.unknown_fields
1234    }
1235
1236    fn as_any(&self) -> &dyn (::std::any::Any) {
1237        self as &dyn (::std::any::Any)
1238    }
1239    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1240        self as &mut dyn (::std::any::Any)
1241    }
1242    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1243        self
1244    }
1245
1246    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1247        Self::descriptor_static()
1248    }
1249
1250    fn new() -> EventMessageResourceFinish {
1251        EventMessageResourceFinish::new()
1252    }
1253
1254    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1255        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1256        descriptor.get(|| {
1257            let mut fields = ::std::vec::Vec::new();
1258            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::keys::MessageResource>>(
1259                "resource",
1260                |m: &EventMessageResourceFinish| { &m.resource },
1261                |m: &mut EventMessageResourceFinish| { &mut m.resource },
1262            ));
1263            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1264                "error",
1265                |m: &EventMessageResourceFinish| { &m.error },
1266                |m: &mut EventMessageResourceFinish| { &mut m.error },
1267            ));
1268            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceFinish>(
1269                "EventMessageResourceFinish",
1270                fields,
1271                file_descriptor_proto()
1272            )
1273        })
1274    }
1275
1276    fn default_instance() -> &'static EventMessageResourceFinish {
1277        static instance: ::protobuf::rt::LazyV2<EventMessageResourceFinish> = ::protobuf::rt::LazyV2::INIT;
1278        instance.get(EventMessageResourceFinish::new)
1279    }
1280}
1281
1282impl ::protobuf::Clear for EventMessageResourceFinish {
1283    fn clear(&mut self) {
1284        self.resource.clear();
1285        self.error.clear();
1286        self.unknown_fields.clear();
1287    }
1288}
1289
1290impl ::std::fmt::Debug for EventMessageResourceFinish {
1291    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1292        ::protobuf::text_format::fmt(self, f)
1293    }
1294}
1295
1296impl ::protobuf::reflect::ProtobufValue for EventMessageResourceFinish {
1297    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1298        ::protobuf::reflect::ReflectValueRef::Message(self)
1299    }
1300}
1301
1302#[derive(PartialEq,Clone,Default)]
1303pub struct EventMessageResourceEmpty {
1304    // message fields
1305    pub error: ::std::string::String,
1306    // special fields
1307    pub unknown_fields: ::protobuf::UnknownFields,
1308    pub cached_size: ::protobuf::CachedSize,
1309}
1310
1311impl<'a> ::std::default::Default for &'a EventMessageResourceEmpty {
1312    fn default() -> &'a EventMessageResourceEmpty {
1313        <EventMessageResourceEmpty as ::protobuf::Message>::default_instance()
1314    }
1315}
1316
1317impl EventMessageResourceEmpty {
1318    pub fn new() -> EventMessageResourceEmpty {
1319        ::std::default::Default::default()
1320    }
1321
1322    // string error = 3;
1323
1324
1325    pub fn get_error(&self) -> &str {
1326        &self.error
1327    }
1328    pub fn clear_error(&mut self) {
1329        self.error.clear();
1330    }
1331
1332    // Param is passed by value, moved
1333    pub fn set_error(&mut self, v: ::std::string::String) {
1334        self.error = v;
1335    }
1336
1337    // Mutable pointer to the field.
1338    // If field is not initialized, it is initialized with default value first.
1339    pub fn mut_error(&mut self) -> &mut ::std::string::String {
1340        &mut self.error
1341    }
1342
1343    // Take field
1344    pub fn take_error(&mut self) -> ::std::string::String {
1345        ::std::mem::replace(&mut self.error, ::std::string::String::new())
1346    }
1347}
1348
1349impl ::protobuf::Message for EventMessageResourceEmpty {
1350    fn is_initialized(&self) -> bool {
1351        true
1352    }
1353
1354    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1355        while !is.eof()? {
1356            let (field_number, wire_type) = is.read_tag_unpack()?;
1357            match field_number {
1358                3 => {
1359                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
1360                },
1361                _ => {
1362                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1363                },
1364            };
1365        }
1366        ::std::result::Result::Ok(())
1367    }
1368
1369    // Compute sizes of nested messages
1370    #[allow(unused_variables)]
1371    fn compute_size(&self) -> u32 {
1372        let mut my_size = 0;
1373        if !self.error.is_empty() {
1374            my_size += ::protobuf::rt::string_size(3, &self.error);
1375        }
1376        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1377        self.cached_size.set(my_size);
1378        my_size
1379    }
1380
1381    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1382        if !self.error.is_empty() {
1383            os.write_string(3, &self.error)?;
1384        }
1385        os.write_unknown_fields(self.get_unknown_fields())?;
1386        ::std::result::Result::Ok(())
1387    }
1388
1389    fn get_cached_size(&self) -> u32 {
1390        self.cached_size.get()
1391    }
1392
1393    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1394        &self.unknown_fields
1395    }
1396
1397    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1398        &mut self.unknown_fields
1399    }
1400
1401    fn as_any(&self) -> &dyn (::std::any::Any) {
1402        self as &dyn (::std::any::Any)
1403    }
1404    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1405        self as &mut dyn (::std::any::Any)
1406    }
1407    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1408        self
1409    }
1410
1411    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1412        Self::descriptor_static()
1413    }
1414
1415    fn new() -> EventMessageResourceEmpty {
1416        EventMessageResourceEmpty::new()
1417    }
1418
1419    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1420        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1421        descriptor.get(|| {
1422            let mut fields = ::std::vec::Vec::new();
1423            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1424                "error",
1425                |m: &EventMessageResourceEmpty| { &m.error },
1426                |m: &mut EventMessageResourceEmpty| { &mut m.error },
1427            ));
1428            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceEmpty>(
1429                "EventMessageResourceEmpty",
1430                fields,
1431                file_descriptor_proto()
1432            )
1433        })
1434    }
1435
1436    fn default_instance() -> &'static EventMessageResourceEmpty {
1437        static instance: ::protobuf::rt::LazyV2<EventMessageResourceEmpty> = ::protobuf::rt::LazyV2::INIT;
1438        instance.get(EventMessageResourceEmpty::new)
1439    }
1440}
1441
1442impl ::protobuf::Clear for EventMessageResourceEmpty {
1443    fn clear(&mut self) {
1444        self.error.clear();
1445        self.unknown_fields.clear();
1446    }
1447}
1448
1449impl ::std::fmt::Debug for EventMessageResourceEmpty {
1450    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1451        ::protobuf::text_format::fmt(self, f)
1452    }
1453}
1454
1455impl ::protobuf::reflect::ProtobufValue for EventMessageResourceEmpty {
1456    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1457        ::protobuf::reflect::ReflectValueRef::Message(self)
1458    }
1459}
1460
1461#[derive(PartialEq,Clone,Default)]
1462pub struct EventMessageResourceAdd {
1463    // message fields
1464    pub resource: ::protobuf::SingularPtrField<super::keys::MessageResource>,
1465    pub error: ::std::string::String,
1466    // special fields
1467    pub unknown_fields: ::protobuf::UnknownFields,
1468    pub cached_size: ::protobuf::CachedSize,
1469}
1470
1471impl<'a> ::std::default::Default for &'a EventMessageResourceAdd {
1472    fn default() -> &'a EventMessageResourceAdd {
1473        <EventMessageResourceAdd as ::protobuf::Message>::default_instance()
1474    }
1475}
1476
1477impl EventMessageResourceAdd {
1478    pub fn new() -> EventMessageResourceAdd {
1479        ::std::default::Default::default()
1480    }
1481
1482    // .KPProto.MessageResource resource = 1;
1483
1484
1485    pub fn get_resource(&self) -> &super::keys::MessageResource {
1486        self.resource.as_ref().unwrap_or_else(|| <super::keys::MessageResource as ::protobuf::Message>::default_instance())
1487    }
1488    pub fn clear_resource(&mut self) {
1489        self.resource.clear();
1490    }
1491
1492    pub fn has_resource(&self) -> bool {
1493        self.resource.is_some()
1494    }
1495
1496    // Param is passed by value, moved
1497    pub fn set_resource(&mut self, v: super::keys::MessageResource) {
1498        self.resource = ::protobuf::SingularPtrField::some(v);
1499    }
1500
1501    // Mutable pointer to the field.
1502    // If field is not initialized, it is initialized with default value first.
1503    pub fn mut_resource(&mut self) -> &mut super::keys::MessageResource {
1504        if self.resource.is_none() {
1505            self.resource.set_default();
1506        }
1507        self.resource.as_mut().unwrap()
1508    }
1509
1510    // Take field
1511    pub fn take_resource(&mut self) -> super::keys::MessageResource {
1512        self.resource.take().unwrap_or_else(|| super::keys::MessageResource::new())
1513    }
1514
1515    // string error = 2;
1516
1517
1518    pub fn get_error(&self) -> &str {
1519        &self.error
1520    }
1521    pub fn clear_error(&mut self) {
1522        self.error.clear();
1523    }
1524
1525    // Param is passed by value, moved
1526    pub fn set_error(&mut self, v: ::std::string::String) {
1527        self.error = v;
1528    }
1529
1530    // Mutable pointer to the field.
1531    // If field is not initialized, it is initialized with default value first.
1532    pub fn mut_error(&mut self) -> &mut ::std::string::String {
1533        &mut self.error
1534    }
1535
1536    // Take field
1537    pub fn take_error(&mut self) -> ::std::string::String {
1538        ::std::mem::replace(&mut self.error, ::std::string::String::new())
1539    }
1540}
1541
1542impl ::protobuf::Message for EventMessageResourceAdd {
1543    fn is_initialized(&self) -> bool {
1544        for v in &self.resource {
1545            if !v.is_initialized() {
1546                return false;
1547            }
1548        };
1549        true
1550    }
1551
1552    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1553        while !is.eof()? {
1554            let (field_number, wire_type) = is.read_tag_unpack()?;
1555            match field_number {
1556                1 => {
1557                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource)?;
1558                },
1559                2 => {
1560                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
1561                },
1562                _ => {
1563                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1564                },
1565            };
1566        }
1567        ::std::result::Result::Ok(())
1568    }
1569
1570    // Compute sizes of nested messages
1571    #[allow(unused_variables)]
1572    fn compute_size(&self) -> u32 {
1573        let mut my_size = 0;
1574        if let Some(ref v) = self.resource.as_ref() {
1575            let len = v.compute_size();
1576            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1577        }
1578        if !self.error.is_empty() {
1579            my_size += ::protobuf::rt::string_size(2, &self.error);
1580        }
1581        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1582        self.cached_size.set(my_size);
1583        my_size
1584    }
1585
1586    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1587        if let Some(ref v) = self.resource.as_ref() {
1588            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1589            os.write_raw_varint32(v.get_cached_size())?;
1590            v.write_to_with_cached_sizes(os)?;
1591        }
1592        if !self.error.is_empty() {
1593            os.write_string(2, &self.error)?;
1594        }
1595        os.write_unknown_fields(self.get_unknown_fields())?;
1596        ::std::result::Result::Ok(())
1597    }
1598
1599    fn get_cached_size(&self) -> u32 {
1600        self.cached_size.get()
1601    }
1602
1603    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1604        &self.unknown_fields
1605    }
1606
1607    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1608        &mut self.unknown_fields
1609    }
1610
1611    fn as_any(&self) -> &dyn (::std::any::Any) {
1612        self as &dyn (::std::any::Any)
1613    }
1614    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1615        self as &mut dyn (::std::any::Any)
1616    }
1617    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1618        self
1619    }
1620
1621    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1622        Self::descriptor_static()
1623    }
1624
1625    fn new() -> EventMessageResourceAdd {
1626        EventMessageResourceAdd::new()
1627    }
1628
1629    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1630        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1631        descriptor.get(|| {
1632            let mut fields = ::std::vec::Vec::new();
1633            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::keys::MessageResource>>(
1634                "resource",
1635                |m: &EventMessageResourceAdd| { &m.resource },
1636                |m: &mut EventMessageResourceAdd| { &mut m.resource },
1637            ));
1638            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1639                "error",
1640                |m: &EventMessageResourceAdd| { &m.error },
1641                |m: &mut EventMessageResourceAdd| { &mut m.error },
1642            ));
1643            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceAdd>(
1644                "EventMessageResourceAdd",
1645                fields,
1646                file_descriptor_proto()
1647            )
1648        })
1649    }
1650
1651    fn default_instance() -> &'static EventMessageResourceAdd {
1652        static instance: ::protobuf::rt::LazyV2<EventMessageResourceAdd> = ::protobuf::rt::LazyV2::INIT;
1653        instance.get(EventMessageResourceAdd::new)
1654    }
1655}
1656
1657impl ::protobuf::Clear for EventMessageResourceAdd {
1658    fn clear(&mut self) {
1659        self.resource.clear();
1660        self.error.clear();
1661        self.unknown_fields.clear();
1662    }
1663}
1664
1665impl ::std::fmt::Debug for EventMessageResourceAdd {
1666    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1667        ::protobuf::text_format::fmt(self, f)
1668    }
1669}
1670
1671impl ::protobuf::reflect::ProtobufValue for EventMessageResourceAdd {
1672    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1673        ::protobuf::reflect::ReflectValueRef::Message(self)
1674    }
1675}
1676
1677#[derive(PartialEq,Clone,Default)]
1678pub struct EventMessageResourceRemove {
1679    // message fields
1680    pub resource: ::protobuf::SingularPtrField<super::keys::MessageResource>,
1681    pub error: ::std::string::String,
1682    // special fields
1683    pub unknown_fields: ::protobuf::UnknownFields,
1684    pub cached_size: ::protobuf::CachedSize,
1685}
1686
1687impl<'a> ::std::default::Default for &'a EventMessageResourceRemove {
1688    fn default() -> &'a EventMessageResourceRemove {
1689        <EventMessageResourceRemove as ::protobuf::Message>::default_instance()
1690    }
1691}
1692
1693impl EventMessageResourceRemove {
1694    pub fn new() -> EventMessageResourceRemove {
1695        ::std::default::Default::default()
1696    }
1697
1698    // .KPProto.MessageResource resource = 1;
1699
1700
1701    pub fn get_resource(&self) -> &super::keys::MessageResource {
1702        self.resource.as_ref().unwrap_or_else(|| <super::keys::MessageResource as ::protobuf::Message>::default_instance())
1703    }
1704    pub fn clear_resource(&mut self) {
1705        self.resource.clear();
1706    }
1707
1708    pub fn has_resource(&self) -> bool {
1709        self.resource.is_some()
1710    }
1711
1712    // Param is passed by value, moved
1713    pub fn set_resource(&mut self, v: super::keys::MessageResource) {
1714        self.resource = ::protobuf::SingularPtrField::some(v);
1715    }
1716
1717    // Mutable pointer to the field.
1718    // If field is not initialized, it is initialized with default value first.
1719    pub fn mut_resource(&mut self) -> &mut super::keys::MessageResource {
1720        if self.resource.is_none() {
1721            self.resource.set_default();
1722        }
1723        self.resource.as_mut().unwrap()
1724    }
1725
1726    // Take field
1727    pub fn take_resource(&mut self) -> super::keys::MessageResource {
1728        self.resource.take().unwrap_or_else(|| super::keys::MessageResource::new())
1729    }
1730
1731    // string error = 2;
1732
1733
1734    pub fn get_error(&self) -> &str {
1735        &self.error
1736    }
1737    pub fn clear_error(&mut self) {
1738        self.error.clear();
1739    }
1740
1741    // Param is passed by value, moved
1742    pub fn set_error(&mut self, v: ::std::string::String) {
1743        self.error = v;
1744    }
1745
1746    // Mutable pointer to the field.
1747    // If field is not initialized, it is initialized with default value first.
1748    pub fn mut_error(&mut self) -> &mut ::std::string::String {
1749        &mut self.error
1750    }
1751
1752    // Take field
1753    pub fn take_error(&mut self) -> ::std::string::String {
1754        ::std::mem::replace(&mut self.error, ::std::string::String::new())
1755    }
1756}
1757
1758impl ::protobuf::Message for EventMessageResourceRemove {
1759    fn is_initialized(&self) -> bool {
1760        for v in &self.resource {
1761            if !v.is_initialized() {
1762                return false;
1763            }
1764        };
1765        true
1766    }
1767
1768    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1769        while !is.eof()? {
1770            let (field_number, wire_type) = is.read_tag_unpack()?;
1771            match field_number {
1772                1 => {
1773                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource)?;
1774                },
1775                2 => {
1776                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
1777                },
1778                _ => {
1779                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1780                },
1781            };
1782        }
1783        ::std::result::Result::Ok(())
1784    }
1785
1786    // Compute sizes of nested messages
1787    #[allow(unused_variables)]
1788    fn compute_size(&self) -> u32 {
1789        let mut my_size = 0;
1790        if let Some(ref v) = self.resource.as_ref() {
1791            let len = v.compute_size();
1792            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1793        }
1794        if !self.error.is_empty() {
1795            my_size += ::protobuf::rt::string_size(2, &self.error);
1796        }
1797        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1798        self.cached_size.set(my_size);
1799        my_size
1800    }
1801
1802    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1803        if let Some(ref v) = self.resource.as_ref() {
1804            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1805            os.write_raw_varint32(v.get_cached_size())?;
1806            v.write_to_with_cached_sizes(os)?;
1807        }
1808        if !self.error.is_empty() {
1809            os.write_string(2, &self.error)?;
1810        }
1811        os.write_unknown_fields(self.get_unknown_fields())?;
1812        ::std::result::Result::Ok(())
1813    }
1814
1815    fn get_cached_size(&self) -> u32 {
1816        self.cached_size.get()
1817    }
1818
1819    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1820        &self.unknown_fields
1821    }
1822
1823    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1824        &mut self.unknown_fields
1825    }
1826
1827    fn as_any(&self) -> &dyn (::std::any::Any) {
1828        self as &dyn (::std::any::Any)
1829    }
1830    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1831        self as &mut dyn (::std::any::Any)
1832    }
1833    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1834        self
1835    }
1836
1837    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1838        Self::descriptor_static()
1839    }
1840
1841    fn new() -> EventMessageResourceRemove {
1842        EventMessageResourceRemove::new()
1843    }
1844
1845    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1846        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1847        descriptor.get(|| {
1848            let mut fields = ::std::vec::Vec::new();
1849            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::keys::MessageResource>>(
1850                "resource",
1851                |m: &EventMessageResourceRemove| { &m.resource },
1852                |m: &mut EventMessageResourceRemove| { &mut m.resource },
1853            ));
1854            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1855                "error",
1856                |m: &EventMessageResourceRemove| { &m.error },
1857                |m: &mut EventMessageResourceRemove| { &mut m.error },
1858            ));
1859            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceRemove>(
1860                "EventMessageResourceRemove",
1861                fields,
1862                file_descriptor_proto()
1863            )
1864        })
1865    }
1866
1867    fn default_instance() -> &'static EventMessageResourceRemove {
1868        static instance: ::protobuf::rt::LazyV2<EventMessageResourceRemove> = ::protobuf::rt::LazyV2::INIT;
1869        instance.get(EventMessageResourceRemove::new)
1870    }
1871}
1872
1873impl ::protobuf::Clear for EventMessageResourceRemove {
1874    fn clear(&mut self) {
1875        self.resource.clear();
1876        self.error.clear();
1877        self.unknown_fields.clear();
1878    }
1879}
1880
1881impl ::std::fmt::Debug for EventMessageResourceRemove {
1882    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1883        ::protobuf::text_format::fmt(self, f)
1884    }
1885}
1886
1887impl ::protobuf::reflect::ProtobufValue for EventMessageResourceRemove {
1888    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1889        ::protobuf::reflect::ReflectValueRef::Message(self)
1890    }
1891}
1892
1893#[derive(PartialEq,Clone,Default)]
1894pub struct EventMessageResourceList {
1895    // message fields
1896    pub resources: ::protobuf::RepeatedField<super::keys::MessageResource>,
1897    pub error: ::std::string::String,
1898    // special fields
1899    pub unknown_fields: ::protobuf::UnknownFields,
1900    pub cached_size: ::protobuf::CachedSize,
1901}
1902
1903impl<'a> ::std::default::Default for &'a EventMessageResourceList {
1904    fn default() -> &'a EventMessageResourceList {
1905        <EventMessageResourceList as ::protobuf::Message>::default_instance()
1906    }
1907}
1908
1909impl EventMessageResourceList {
1910    pub fn new() -> EventMessageResourceList {
1911        ::std::default::Default::default()
1912    }
1913
1914    // repeated .KPProto.MessageResource resources = 1;
1915
1916
1917    pub fn get_resources(&self) -> &[super::keys::MessageResource] {
1918        &self.resources
1919    }
1920    pub fn clear_resources(&mut self) {
1921        self.resources.clear();
1922    }
1923
1924    // Param is passed by value, moved
1925    pub fn set_resources(&mut self, v: ::protobuf::RepeatedField<super::keys::MessageResource>) {
1926        self.resources = v;
1927    }
1928
1929    // Mutable pointer to the field.
1930    pub fn mut_resources(&mut self) -> &mut ::protobuf::RepeatedField<super::keys::MessageResource> {
1931        &mut self.resources
1932    }
1933
1934    // Take field
1935    pub fn take_resources(&mut self) -> ::protobuf::RepeatedField<super::keys::MessageResource> {
1936        ::std::mem::replace(&mut self.resources, ::protobuf::RepeatedField::new())
1937    }
1938
1939    // string error = 2;
1940
1941
1942    pub fn get_error(&self) -> &str {
1943        &self.error
1944    }
1945    pub fn clear_error(&mut self) {
1946        self.error.clear();
1947    }
1948
1949    // Param is passed by value, moved
1950    pub fn set_error(&mut self, v: ::std::string::String) {
1951        self.error = v;
1952    }
1953
1954    // Mutable pointer to the field.
1955    // If field is not initialized, it is initialized with default value first.
1956    pub fn mut_error(&mut self) -> &mut ::std::string::String {
1957        &mut self.error
1958    }
1959
1960    // Take field
1961    pub fn take_error(&mut self) -> ::std::string::String {
1962        ::std::mem::replace(&mut self.error, ::std::string::String::new())
1963    }
1964}
1965
1966impl ::protobuf::Message for EventMessageResourceList {
1967    fn is_initialized(&self) -> bool {
1968        for v in &self.resources {
1969            if !v.is_initialized() {
1970                return false;
1971            }
1972        };
1973        true
1974    }
1975
1976    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1977        while !is.eof()? {
1978            let (field_number, wire_type) = is.read_tag_unpack()?;
1979            match field_number {
1980                1 => {
1981                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resources)?;
1982                },
1983                2 => {
1984                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
1985                },
1986                _ => {
1987                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1988                },
1989            };
1990        }
1991        ::std::result::Result::Ok(())
1992    }
1993
1994    // Compute sizes of nested messages
1995    #[allow(unused_variables)]
1996    fn compute_size(&self) -> u32 {
1997        let mut my_size = 0;
1998        for value in &self.resources {
1999            let len = value.compute_size();
2000            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2001        };
2002        if !self.error.is_empty() {
2003            my_size += ::protobuf::rt::string_size(2, &self.error);
2004        }
2005        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2006        self.cached_size.set(my_size);
2007        my_size
2008    }
2009
2010    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2011        for v in &self.resources {
2012            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2013            os.write_raw_varint32(v.get_cached_size())?;
2014            v.write_to_with_cached_sizes(os)?;
2015        };
2016        if !self.error.is_empty() {
2017            os.write_string(2, &self.error)?;
2018        }
2019        os.write_unknown_fields(self.get_unknown_fields())?;
2020        ::std::result::Result::Ok(())
2021    }
2022
2023    fn get_cached_size(&self) -> u32 {
2024        self.cached_size.get()
2025    }
2026
2027    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2028        &self.unknown_fields
2029    }
2030
2031    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2032        &mut self.unknown_fields
2033    }
2034
2035    fn as_any(&self) -> &dyn (::std::any::Any) {
2036        self as &dyn (::std::any::Any)
2037    }
2038    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2039        self as &mut dyn (::std::any::Any)
2040    }
2041    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2042        self
2043    }
2044
2045    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2046        Self::descriptor_static()
2047    }
2048
2049    fn new() -> EventMessageResourceList {
2050        EventMessageResourceList::new()
2051    }
2052
2053    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
2054        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
2055        descriptor.get(|| {
2056            let mut fields = ::std::vec::Vec::new();
2057            fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::keys::MessageResource>>(
2058                "resources",
2059                |m: &EventMessageResourceList| { &m.resources },
2060                |m: &mut EventMessageResourceList| { &mut m.resources },
2061            ));
2062            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
2063                "error",
2064                |m: &EventMessageResourceList| { &m.error },
2065                |m: &mut EventMessageResourceList| { &mut m.error },
2066            ));
2067            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceList>(
2068                "EventMessageResourceList",
2069                fields,
2070                file_descriptor_proto()
2071            )
2072        })
2073    }
2074
2075    fn default_instance() -> &'static EventMessageResourceList {
2076        static instance: ::protobuf::rt::LazyV2<EventMessageResourceList> = ::protobuf::rt::LazyV2::INIT;
2077        instance.get(EventMessageResourceList::new)
2078    }
2079}
2080
2081impl ::protobuf::Clear for EventMessageResourceList {
2082    fn clear(&mut self) {
2083        self.resources.clear();
2084        self.error.clear();
2085        self.unknown_fields.clear();
2086    }
2087}
2088
2089impl ::std::fmt::Debug for EventMessageResourceList {
2090    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2091        ::protobuf::text_format::fmt(self, f)
2092    }
2093}
2094
2095impl ::protobuf::reflect::ProtobufValue for EventMessageResourceList {
2096    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2097        ::protobuf::reflect::ReflectValueRef::Message(self)
2098    }
2099}
2100
2101#[derive(PartialEq,Clone,Default)]
2102pub struct EventMessageResourceHistory {
2103    // message fields
2104    pub resources: ::protobuf::RepeatedField<super::keys::MessageResource>,
2105    pub error: ::std::string::String,
2106    // special fields
2107    pub unknown_fields: ::protobuf::UnknownFields,
2108    pub cached_size: ::protobuf::CachedSize,
2109}
2110
2111impl<'a> ::std::default::Default for &'a EventMessageResourceHistory {
2112    fn default() -> &'a EventMessageResourceHistory {
2113        <EventMessageResourceHistory as ::protobuf::Message>::default_instance()
2114    }
2115}
2116
2117impl EventMessageResourceHistory {
2118    pub fn new() -> EventMessageResourceHistory {
2119        ::std::default::Default::default()
2120    }
2121
2122    // repeated .KPProto.MessageResource resources = 1;
2123
2124
2125    pub fn get_resources(&self) -> &[super::keys::MessageResource] {
2126        &self.resources
2127    }
2128    pub fn clear_resources(&mut self) {
2129        self.resources.clear();
2130    }
2131
2132    // Param is passed by value, moved
2133    pub fn set_resources(&mut self, v: ::protobuf::RepeatedField<super::keys::MessageResource>) {
2134        self.resources = v;
2135    }
2136
2137    // Mutable pointer to the field.
2138    pub fn mut_resources(&mut self) -> &mut ::protobuf::RepeatedField<super::keys::MessageResource> {
2139        &mut self.resources
2140    }
2141
2142    // Take field
2143    pub fn take_resources(&mut self) -> ::protobuf::RepeatedField<super::keys::MessageResource> {
2144        ::std::mem::replace(&mut self.resources, ::protobuf::RepeatedField::new())
2145    }
2146
2147    // string error = 2;
2148
2149
2150    pub fn get_error(&self) -> &str {
2151        &self.error
2152    }
2153    pub fn clear_error(&mut self) {
2154        self.error.clear();
2155    }
2156
2157    // Param is passed by value, moved
2158    pub fn set_error(&mut self, v: ::std::string::String) {
2159        self.error = v;
2160    }
2161
2162    // Mutable pointer to the field.
2163    // If field is not initialized, it is initialized with default value first.
2164    pub fn mut_error(&mut self) -> &mut ::std::string::String {
2165        &mut self.error
2166    }
2167
2168    // Take field
2169    pub fn take_error(&mut self) -> ::std::string::String {
2170        ::std::mem::replace(&mut self.error, ::std::string::String::new())
2171    }
2172}
2173
2174impl ::protobuf::Message for EventMessageResourceHistory {
2175    fn is_initialized(&self) -> bool {
2176        for v in &self.resources {
2177            if !v.is_initialized() {
2178                return false;
2179            }
2180        };
2181        true
2182    }
2183
2184    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2185        while !is.eof()? {
2186            let (field_number, wire_type) = is.read_tag_unpack()?;
2187            match field_number {
2188                1 => {
2189                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resources)?;
2190                },
2191                2 => {
2192                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
2193                },
2194                _ => {
2195                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2196                },
2197            };
2198        }
2199        ::std::result::Result::Ok(())
2200    }
2201
2202    // Compute sizes of nested messages
2203    #[allow(unused_variables)]
2204    fn compute_size(&self) -> u32 {
2205        let mut my_size = 0;
2206        for value in &self.resources {
2207            let len = value.compute_size();
2208            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2209        };
2210        if !self.error.is_empty() {
2211            my_size += ::protobuf::rt::string_size(2, &self.error);
2212        }
2213        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2214        self.cached_size.set(my_size);
2215        my_size
2216    }
2217
2218    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2219        for v in &self.resources {
2220            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2221            os.write_raw_varint32(v.get_cached_size())?;
2222            v.write_to_with_cached_sizes(os)?;
2223        };
2224        if !self.error.is_empty() {
2225            os.write_string(2, &self.error)?;
2226        }
2227        os.write_unknown_fields(self.get_unknown_fields())?;
2228        ::std::result::Result::Ok(())
2229    }
2230
2231    fn get_cached_size(&self) -> u32 {
2232        self.cached_size.get()
2233    }
2234
2235    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2236        &self.unknown_fields
2237    }
2238
2239    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2240        &mut self.unknown_fields
2241    }
2242
2243    fn as_any(&self) -> &dyn (::std::any::Any) {
2244        self as &dyn (::std::any::Any)
2245    }
2246    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2247        self as &mut dyn (::std::any::Any)
2248    }
2249    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2250        self
2251    }
2252
2253    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2254        Self::descriptor_static()
2255    }
2256
2257    fn new() -> EventMessageResourceHistory {
2258        EventMessageResourceHistory::new()
2259    }
2260
2261    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
2262        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
2263        descriptor.get(|| {
2264            let mut fields = ::std::vec::Vec::new();
2265            fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::keys::MessageResource>>(
2266                "resources",
2267                |m: &EventMessageResourceHistory| { &m.resources },
2268                |m: &mut EventMessageResourceHistory| { &mut m.resources },
2269            ));
2270            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
2271                "error",
2272                |m: &EventMessageResourceHistory| { &m.error },
2273                |m: &mut EventMessageResourceHistory| { &mut m.error },
2274            ));
2275            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceHistory>(
2276                "EventMessageResourceHistory",
2277                fields,
2278                file_descriptor_proto()
2279            )
2280        })
2281    }
2282
2283    fn default_instance() -> &'static EventMessageResourceHistory {
2284        static instance: ::protobuf::rt::LazyV2<EventMessageResourceHistory> = ::protobuf::rt::LazyV2::INIT;
2285        instance.get(EventMessageResourceHistory::new)
2286    }
2287}
2288
2289impl ::protobuf::Clear for EventMessageResourceHistory {
2290    fn clear(&mut self) {
2291        self.resources.clear();
2292        self.error.clear();
2293        self.unknown_fields.clear();
2294    }
2295}
2296
2297impl ::std::fmt::Debug for EventMessageResourceHistory {
2298    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2299        ::protobuf::text_format::fmt(self, f)
2300    }
2301}
2302
2303impl ::protobuf::reflect::ProtobufValue for EventMessageResourceHistory {
2304    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2305        ::protobuf::reflect::ReflectValueRef::Message(self)
2306    }
2307}
2308
2309#[derive(PartialEq,Clone,Default)]
2310pub struct EventMessageResourceCurrent {
2311    // message fields
2312    pub resource: ::protobuf::SingularPtrField<super::keys::MessageResource>,
2313    pub duration: u64,
2314    pub seek: i64,
2315    pub hit_cache: bool,
2316    pub error: ::std::string::String,
2317    // special fields
2318    pub unknown_fields: ::protobuf::UnknownFields,
2319    pub cached_size: ::protobuf::CachedSize,
2320}
2321
2322impl<'a> ::std::default::Default for &'a EventMessageResourceCurrent {
2323    fn default() -> &'a EventMessageResourceCurrent {
2324        <EventMessageResourceCurrent as ::protobuf::Message>::default_instance()
2325    }
2326}
2327
2328impl EventMessageResourceCurrent {
2329    pub fn new() -> EventMessageResourceCurrent {
2330        ::std::default::Default::default()
2331    }
2332
2333    // .KPProto.MessageResource resource = 1;
2334
2335
2336    pub fn get_resource(&self) -> &super::keys::MessageResource {
2337        self.resource.as_ref().unwrap_or_else(|| <super::keys::MessageResource as ::protobuf::Message>::default_instance())
2338    }
2339    pub fn clear_resource(&mut self) {
2340        self.resource.clear();
2341    }
2342
2343    pub fn has_resource(&self) -> bool {
2344        self.resource.is_some()
2345    }
2346
2347    // Param is passed by value, moved
2348    pub fn set_resource(&mut self, v: super::keys::MessageResource) {
2349        self.resource = ::protobuf::SingularPtrField::some(v);
2350    }
2351
2352    // Mutable pointer to the field.
2353    // If field is not initialized, it is initialized with default value first.
2354    pub fn mut_resource(&mut self) -> &mut super::keys::MessageResource {
2355        if self.resource.is_none() {
2356            self.resource.set_default();
2357        }
2358        self.resource.as_mut().unwrap()
2359    }
2360
2361    // Take field
2362    pub fn take_resource(&mut self) -> super::keys::MessageResource {
2363        self.resource.take().unwrap_or_else(|| super::keys::MessageResource::new())
2364    }
2365
2366    // uint64 duration = 2;
2367
2368
2369    pub fn get_duration(&self) -> u64 {
2370        self.duration
2371    }
2372    pub fn clear_duration(&mut self) {
2373        self.duration = 0;
2374    }
2375
2376    // Param is passed by value, moved
2377    pub fn set_duration(&mut self, v: u64) {
2378        self.duration = v;
2379    }
2380
2381    // int64 seek = 3;
2382
2383
2384    pub fn get_seek(&self) -> i64 {
2385        self.seek
2386    }
2387    pub fn clear_seek(&mut self) {
2388        self.seek = 0;
2389    }
2390
2391    // Param is passed by value, moved
2392    pub fn set_seek(&mut self, v: i64) {
2393        self.seek = v;
2394    }
2395
2396    // bool hit_cache = 4;
2397
2398
2399    pub fn get_hit_cache(&self) -> bool {
2400        self.hit_cache
2401    }
2402    pub fn clear_hit_cache(&mut self) {
2403        self.hit_cache = false;
2404    }
2405
2406    // Param is passed by value, moved
2407    pub fn set_hit_cache(&mut self, v: bool) {
2408        self.hit_cache = v;
2409    }
2410
2411    // string error = 5;
2412
2413
2414    pub fn get_error(&self) -> &str {
2415        &self.error
2416    }
2417    pub fn clear_error(&mut self) {
2418        self.error.clear();
2419    }
2420
2421    // Param is passed by value, moved
2422    pub fn set_error(&mut self, v: ::std::string::String) {
2423        self.error = v;
2424    }
2425
2426    // Mutable pointer to the field.
2427    // If field is not initialized, it is initialized with default value first.
2428    pub fn mut_error(&mut self) -> &mut ::std::string::String {
2429        &mut self.error
2430    }
2431
2432    // Take field
2433    pub fn take_error(&mut self) -> ::std::string::String {
2434        ::std::mem::replace(&mut self.error, ::std::string::String::new())
2435    }
2436}
2437
2438impl ::protobuf::Message for EventMessageResourceCurrent {
2439    fn is_initialized(&self) -> bool {
2440        for v in &self.resource {
2441            if !v.is_initialized() {
2442                return false;
2443            }
2444        };
2445        true
2446    }
2447
2448    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2449        while !is.eof()? {
2450            let (field_number, wire_type) = is.read_tag_unpack()?;
2451            match field_number {
2452                1 => {
2453                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource)?;
2454                },
2455                2 => {
2456                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2457                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2458                    }
2459                    let tmp = is.read_uint64()?;
2460                    self.duration = tmp;
2461                },
2462                3 => {
2463                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2464                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2465                    }
2466                    let tmp = is.read_int64()?;
2467                    self.seek = tmp;
2468                },
2469                4 => {
2470                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2471                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2472                    }
2473                    let tmp = is.read_bool()?;
2474                    self.hit_cache = tmp;
2475                },
2476                5 => {
2477                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
2478                },
2479                _ => {
2480                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2481                },
2482            };
2483        }
2484        ::std::result::Result::Ok(())
2485    }
2486
2487    // Compute sizes of nested messages
2488    #[allow(unused_variables)]
2489    fn compute_size(&self) -> u32 {
2490        let mut my_size = 0;
2491        if let Some(ref v) = self.resource.as_ref() {
2492            let len = v.compute_size();
2493            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2494        }
2495        if self.duration != 0 {
2496            my_size += ::protobuf::rt::value_size(2, self.duration, ::protobuf::wire_format::WireTypeVarint);
2497        }
2498        if self.seek != 0 {
2499            my_size += ::protobuf::rt::value_size(3, self.seek, ::protobuf::wire_format::WireTypeVarint);
2500        }
2501        if self.hit_cache != false {
2502            my_size += 2;
2503        }
2504        if !self.error.is_empty() {
2505            my_size += ::protobuf::rt::string_size(5, &self.error);
2506        }
2507        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2508        self.cached_size.set(my_size);
2509        my_size
2510    }
2511
2512    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2513        if let Some(ref v) = self.resource.as_ref() {
2514            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2515            os.write_raw_varint32(v.get_cached_size())?;
2516            v.write_to_with_cached_sizes(os)?;
2517        }
2518        if self.duration != 0 {
2519            os.write_uint64(2, self.duration)?;
2520        }
2521        if self.seek != 0 {
2522            os.write_int64(3, self.seek)?;
2523        }
2524        if self.hit_cache != false {
2525            os.write_bool(4, self.hit_cache)?;
2526        }
2527        if !self.error.is_empty() {
2528            os.write_string(5, &self.error)?;
2529        }
2530        os.write_unknown_fields(self.get_unknown_fields())?;
2531        ::std::result::Result::Ok(())
2532    }
2533
2534    fn get_cached_size(&self) -> u32 {
2535        self.cached_size.get()
2536    }
2537
2538    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2539        &self.unknown_fields
2540    }
2541
2542    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2543        &mut self.unknown_fields
2544    }
2545
2546    fn as_any(&self) -> &dyn (::std::any::Any) {
2547        self as &dyn (::std::any::Any)
2548    }
2549    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2550        self as &mut dyn (::std::any::Any)
2551    }
2552    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2553        self
2554    }
2555
2556    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2557        Self::descriptor_static()
2558    }
2559
2560    fn new() -> EventMessageResourceCurrent {
2561        EventMessageResourceCurrent::new()
2562    }
2563
2564    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
2565        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
2566        descriptor.get(|| {
2567            let mut fields = ::std::vec::Vec::new();
2568            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::keys::MessageResource>>(
2569                "resource",
2570                |m: &EventMessageResourceCurrent| { &m.resource },
2571                |m: &mut EventMessageResourceCurrent| { &mut m.resource },
2572            ));
2573            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
2574                "duration",
2575                |m: &EventMessageResourceCurrent| { &m.duration },
2576                |m: &mut EventMessageResourceCurrent| { &mut m.duration },
2577            ));
2578            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
2579                "seek",
2580                |m: &EventMessageResourceCurrent| { &m.seek },
2581                |m: &mut EventMessageResourceCurrent| { &mut m.seek },
2582            ));
2583            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
2584                "hit_cache",
2585                |m: &EventMessageResourceCurrent| { &m.hit_cache },
2586                |m: &mut EventMessageResourceCurrent| { &mut m.hit_cache },
2587            ));
2588            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
2589                "error",
2590                |m: &EventMessageResourceCurrent| { &m.error },
2591                |m: &mut EventMessageResourceCurrent| { &mut m.error },
2592            ));
2593            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceCurrent>(
2594                "EventMessageResourceCurrent",
2595                fields,
2596                file_descriptor_proto()
2597            )
2598        })
2599    }
2600
2601    fn default_instance() -> &'static EventMessageResourceCurrent {
2602        static instance: ::protobuf::rt::LazyV2<EventMessageResourceCurrent> = ::protobuf::rt::LazyV2::INIT;
2603        instance.get(EventMessageResourceCurrent::new)
2604    }
2605}
2606
2607impl ::protobuf::Clear for EventMessageResourceCurrent {
2608    fn clear(&mut self) {
2609        self.resource.clear();
2610        self.duration = 0;
2611        self.seek = 0;
2612        self.hit_cache = false;
2613        self.error.clear();
2614        self.unknown_fields.clear();
2615    }
2616}
2617
2618impl ::std::fmt::Debug for EventMessageResourceCurrent {
2619    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2620        ::protobuf::text_format::fmt(self, f)
2621    }
2622}
2623
2624impl ::protobuf::reflect::ProtobufValue for EventMessageResourceCurrent {
2625    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2626        ::protobuf::reflect::ReflectValueRef::Message(self)
2627    }
2628}
2629
2630#[derive(PartialEq,Clone,Default)]
2631pub struct EventMessageResourceSeek {
2632    // message fields
2633    pub resource: ::protobuf::SingularPtrField<super::keys::MessageResource>,
2634    pub error: ::std::string::String,
2635    // special fields
2636    pub unknown_fields: ::protobuf::UnknownFields,
2637    pub cached_size: ::protobuf::CachedSize,
2638}
2639
2640impl<'a> ::std::default::Default for &'a EventMessageResourceSeek {
2641    fn default() -> &'a EventMessageResourceSeek {
2642        <EventMessageResourceSeek as ::protobuf::Message>::default_instance()
2643    }
2644}
2645
2646impl EventMessageResourceSeek {
2647    pub fn new() -> EventMessageResourceSeek {
2648        ::std::default::Default::default()
2649    }
2650
2651    // .KPProto.MessageResource resource = 1;
2652
2653
2654    pub fn get_resource(&self) -> &super::keys::MessageResource {
2655        self.resource.as_ref().unwrap_or_else(|| <super::keys::MessageResource as ::protobuf::Message>::default_instance())
2656    }
2657    pub fn clear_resource(&mut self) {
2658        self.resource.clear();
2659    }
2660
2661    pub fn has_resource(&self) -> bool {
2662        self.resource.is_some()
2663    }
2664
2665    // Param is passed by value, moved
2666    pub fn set_resource(&mut self, v: super::keys::MessageResource) {
2667        self.resource = ::protobuf::SingularPtrField::some(v);
2668    }
2669
2670    // Mutable pointer to the field.
2671    // If field is not initialized, it is initialized with default value first.
2672    pub fn mut_resource(&mut self) -> &mut super::keys::MessageResource {
2673        if self.resource.is_none() {
2674            self.resource.set_default();
2675        }
2676        self.resource.as_mut().unwrap()
2677    }
2678
2679    // Take field
2680    pub fn take_resource(&mut self) -> super::keys::MessageResource {
2681        self.resource.take().unwrap_or_else(|| super::keys::MessageResource::new())
2682    }
2683
2684    // string error = 2;
2685
2686
2687    pub fn get_error(&self) -> &str {
2688        &self.error
2689    }
2690    pub fn clear_error(&mut self) {
2691        self.error.clear();
2692    }
2693
2694    // Param is passed by value, moved
2695    pub fn set_error(&mut self, v: ::std::string::String) {
2696        self.error = v;
2697    }
2698
2699    // Mutable pointer to the field.
2700    // If field is not initialized, it is initialized with default value first.
2701    pub fn mut_error(&mut self) -> &mut ::std::string::String {
2702        &mut self.error
2703    }
2704
2705    // Take field
2706    pub fn take_error(&mut self) -> ::std::string::String {
2707        ::std::mem::replace(&mut self.error, ::std::string::String::new())
2708    }
2709}
2710
2711impl ::protobuf::Message for EventMessageResourceSeek {
2712    fn is_initialized(&self) -> bool {
2713        for v in &self.resource {
2714            if !v.is_initialized() {
2715                return false;
2716            }
2717        };
2718        true
2719    }
2720
2721    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2722        while !is.eof()? {
2723            let (field_number, wire_type) = is.read_tag_unpack()?;
2724            match field_number {
2725                1 => {
2726                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource)?;
2727                },
2728                2 => {
2729                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
2730                },
2731                _ => {
2732                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2733                },
2734            };
2735        }
2736        ::std::result::Result::Ok(())
2737    }
2738
2739    // Compute sizes of nested messages
2740    #[allow(unused_variables)]
2741    fn compute_size(&self) -> u32 {
2742        let mut my_size = 0;
2743        if let Some(ref v) = self.resource.as_ref() {
2744            let len = v.compute_size();
2745            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2746        }
2747        if !self.error.is_empty() {
2748            my_size += ::protobuf::rt::string_size(2, &self.error);
2749        }
2750        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2751        self.cached_size.set(my_size);
2752        my_size
2753    }
2754
2755    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2756        if let Some(ref v) = self.resource.as_ref() {
2757            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2758            os.write_raw_varint32(v.get_cached_size())?;
2759            v.write_to_with_cached_sizes(os)?;
2760        }
2761        if !self.error.is_empty() {
2762            os.write_string(2, &self.error)?;
2763        }
2764        os.write_unknown_fields(self.get_unknown_fields())?;
2765        ::std::result::Result::Ok(())
2766    }
2767
2768    fn get_cached_size(&self) -> u32 {
2769        self.cached_size.get()
2770    }
2771
2772    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2773        &self.unknown_fields
2774    }
2775
2776    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2777        &mut self.unknown_fields
2778    }
2779
2780    fn as_any(&self) -> &dyn (::std::any::Any) {
2781        self as &dyn (::std::any::Any)
2782    }
2783    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2784        self as &mut dyn (::std::any::Any)
2785    }
2786    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2787        self
2788    }
2789
2790    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2791        Self::descriptor_static()
2792    }
2793
2794    fn new() -> EventMessageResourceSeek {
2795        EventMessageResourceSeek::new()
2796    }
2797
2798    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
2799        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
2800        descriptor.get(|| {
2801            let mut fields = ::std::vec::Vec::new();
2802            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::keys::MessageResource>>(
2803                "resource",
2804                |m: &EventMessageResourceSeek| { &m.resource },
2805                |m: &mut EventMessageResourceSeek| { &mut m.resource },
2806            ));
2807            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
2808                "error",
2809                |m: &EventMessageResourceSeek| { &m.error },
2810                |m: &mut EventMessageResourceSeek| { &mut m.error },
2811            ));
2812            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessageResourceSeek>(
2813                "EventMessageResourceSeek",
2814                fields,
2815                file_descriptor_proto()
2816            )
2817        })
2818    }
2819
2820    fn default_instance() -> &'static EventMessageResourceSeek {
2821        static instance: ::protobuf::rt::LazyV2<EventMessageResourceSeek> = ::protobuf::rt::LazyV2::INIT;
2822        instance.get(EventMessageResourceSeek::new)
2823    }
2824}
2825
2826impl ::protobuf::Clear for EventMessageResourceSeek {
2827    fn clear(&mut self) {
2828        self.resource.clear();
2829        self.error.clear();
2830        self.unknown_fields.clear();
2831    }
2832}
2833
2834impl ::std::fmt::Debug for EventMessageResourceSeek {
2835    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2836        ::protobuf::text_format::fmt(self, f)
2837    }
2838}
2839
2840impl ::protobuf::reflect::ProtobufValue for EventMessageResourceSeek {
2841    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2842        ::protobuf::reflect::ReflectValueRef::Message(self)
2843    }
2844}
2845
2846static file_descriptor_proto_data: &'static [u8] = b"\
2847    \n\x1cproto/msg/msg_resource.proto\x12\x0bKPProto.Msg\x1a\x10proto/keys.\
2848    proto\"g\n\x19EventMessageResourceStart\x124\n\x08resource\x18\x01\x20\
2849    \x01(\x0b2\x18.KPProto.MessageResourceR\x08resource\x12\x14\n\x05error\
2850    \x18\x02\x20\x01(\tR\x05error\"\xbb\x02\n\x1bEventMessageResourceChecked\
2851    \x124\n\x08resource\x18\x01\x20\x01(\x0b2\x18.KPProto.MessageResourceR\
2852    \x08resource\x12X\n\x0finput_attribute\x18\x02\x20\x01(\x0b2/.KPProto.Ms\
2853    g.EventMessageResourceInputAttributeR\x0einputAttribute\x12Y\n\routput_o\
2854    ption\x18\x03\x20\x01(\x0b24.KPProto.Msg.EventMessageResourceCheckedOutp\
2855    utOptionR\x0coutputOption\x12\x14\n\x05error\x18\x04\x20\x01(\tR\x05erro\
2856    r\x12\x1b\n\thit_cache\x18\x05\x20\x01(\x08R\x08hitCache\"\x8f\x02\n'Eve\
2857    ntMessageResourceCheckedOutputOption\x12\x1f\n\x0bvideo_width\x18\x01\
2858    \x20\x01(\x04R\nvideoWidth\x12!\n\x0cvideo_height\x18\x02\x20\x01(\x04R\
2859    \x0bvideoHeight\x12\x1b\n\tvideo_fps\x18\x03\x20\x01(\x04R\x08videoFps\
2860    \x12*\n\x11audio_sample_rate\x18\x04\x20\x01(\x04R\x0faudioSampleRate\
2861    \x120\n\x14audio_channel_layout\x18\x05\x20\x01(\x04R\x12audioChannelLay\
2862    out\x12%\n\x0eaudio_channels\x18\x06\x20\x01(\x04R\raudioChannels\"@\n\"\
2863    EventMessageResourceInputAttribute\x12\x1a\n\x08duration\x18\x01\x20\x01\
2864    (\x04R\x08duration\"h\n\x1aEventMessageResourceFinish\x124\n\x08resource\
2865    \x18\x01\x20\x01(\x0b2\x18.KPProto.MessageResourceR\x08resource\x12\x14\
2866    \n\x05error\x18\x02\x20\x01(\tR\x05error\"1\n\x19EventMessageResourceEmp\
2867    ty\x12\x14\n\x05error\x18\x03\x20\x01(\tR\x05error\"e\n\x17EventMessageR\
2868    esourceAdd\x124\n\x08resource\x18\x01\x20\x01(\x0b2\x18.KPProto.MessageR\
2869    esourceR\x08resource\x12\x14\n\x05error\x18\x02\x20\x01(\tR\x05error\"h\
2870    \n\x1aEventMessageResourceRemove\x124\n\x08resource\x18\x01\x20\x01(\x0b\
2871    2\x18.KPProto.MessageResourceR\x08resource\x12\x14\n\x05error\x18\x02\
2872    \x20\x01(\tR\x05error\"h\n\x18EventMessageResourceList\x126\n\tresources\
2873    \x18\x01\x20\x03(\x0b2\x18.KPProto.MessageResourceR\tresources\x12\x14\n\
2874    \x05error\x18\x02\x20\x01(\tR\x05error\"k\n\x1bEventMessageResourceHisto\
2875    ry\x126\n\tresources\x18\x01\x20\x03(\x0b2\x18.KPProto.MessageResourceR\
2876    \tresources\x12\x14\n\x05error\x18\x02\x20\x01(\tR\x05error\"\xb6\x01\n\
2877    \x1bEventMessageResourceCurrent\x124\n\x08resource\x18\x01\x20\x01(\x0b2\
2878    \x18.KPProto.MessageResourceR\x08resource\x12\x1a\n\x08duration\x18\x02\
2879    \x20\x01(\x04R\x08duration\x12\x12\n\x04seek\x18\x03\x20\x01(\x03R\x04se\
2880    ek\x12\x1b\n\thit_cache\x18\x04\x20\x01(\x08R\x08hitCache\x12\x14\n\x05e\
2881    rror\x18\x05\x20\x01(\tR\x05error\"f\n\x18EventMessageResourceSeek\x124\
2882    \n\x08resource\x18\x01\x20\x01(\x0b2\x18.KPProto.MessageResourceR\x08res\
2883    ource\x12\x14\n\x05error\x18\x02\x20\x01(\tR\x05errorB2Z0github.com/byte\
2884    lang/kplayer/types/core/proto/msgJ\xb0\x13\n\x06\x12\x04\0\0R\x01\n\x08\
2885    \n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\x02\0\x14\n\x08\n\x01\
2886    \x08\x12\x03\x04\0G\n\t\n\x02\x08\x0b\x12\x03\x04\0G\n\t\n\x02\x03\0\x12\
2887    \x03\x06\0\x1a\n,\n\x02\x04\0\x12\x04\t\0\x0c\x01\x1a\x20\x20message\x20\
2888    resource\x20start\x20playing\n\n\n\n\x03\x04\0\x01\x12\x03\t\x08!\n\x0b\
2889    \n\x04\x04\0\x02\0\x12\x03\n\x02\x1f\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\
2890    \n\x02\x11\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\n\x12\x1a\n\x0c\n\x05\x04\
2891    \0\x02\0\x03\x12\x03\n\x1d\x1e\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x0b\x02\
2892    \x13\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x0b\x02\x08\n\x0c\n\x05\x04\0\
2893    \x02\x01\x01\x12\x03\x0b\t\x0e\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x0b\
2894    \x11\x12\n&\n\x02\x04\x01\x12\x04\x0f\0\x15\x01\x1a\x1a\x20message\x20re\
2895    source\x20checked\n\n\n\n\x03\x04\x01\x01\x12\x03\x0f\x08#\n\x0b\n\x04\
2896    \x04\x01\x02\0\x12\x03\x10\x02\x1f\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03\
2897    \x10\x02\x11\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x10\x12\x1a\n\x0c\n\
2898    \x05\x04\x01\x02\0\x03\x12\x03\x10\x1d\x1e\n\x0b\n\x04\x04\x01\x02\x01\
2899    \x12\x03\x11\x029\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03\x11\x02$\n\x0c\
2900    \n\x05\x04\x01\x02\x01\x01\x12\x03\x11%4\n\x0c\n\x05\x04\x01\x02\x01\x03\
2901    \x12\x03\x1178\n\x0b\n\x04\x04\x01\x02\x02\x12\x03\x12\x02<\n\x0c\n\x05\
2902    \x04\x01\x02\x02\x06\x12\x03\x12\x02)\n\x0c\n\x05\x04\x01\x02\x02\x01\
2903    \x12\x03\x12*7\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03\x12:;\n\x0b\n\x04\
2904    \x04\x01\x02\x03\x12\x03\x13\x02\x13\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\
2905    \x03\x13\x02\x08\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03\x13\t\x0e\n\x0c\
2906    \n\x05\x04\x01\x02\x03\x03\x12\x03\x13\x11\x12\n\x0b\n\x04\x04\x01\x02\
2907    \x04\x12\x03\x14\x02\x15\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x03\x14\x02\
2908    \x06\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03\x14\x07\x10\n\x0c\n\x05\x04\
2909    \x01\x02\x04\x03\x12\x03\x14\x13\x14\n\n\n\x02\x04\x02\x12\x04\x16\0\x1d\
2910    \x01\n\n\n\x03\x04\x02\x01\x12\x03\x16\x08/\n\x0b\n\x04\x04\x02\x02\0\
2911    \x12\x03\x17\x02\x19\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03\x17\x02\x08\n\
2912    \x0c\n\x05\x04\x02\x02\0\x01\x12\x03\x17\t\x14\n\x0c\n\x05\x04\x02\x02\0\
2913    \x03\x12\x03\x17\x17\x18\n\x0b\n\x04\x04\x02\x02\x01\x12\x03\x18\x02\x1a\
2914    \n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03\x18\x02\x08\n\x0c\n\x05\x04\x02\
2915    \x02\x01\x01\x12\x03\x18\t\x15\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03\
2916    \x18\x18\x19\n\x0b\n\x04\x04\x02\x02\x02\x12\x03\x19\x02\x17\n\x0c\n\x05\
2917    \x04\x02\x02\x02\x05\x12\x03\x19\x02\x08\n\x0c\n\x05\x04\x02\x02\x02\x01\
2918    \x12\x03\x19\t\x12\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03\x19\x15\x16\n\
2919    \x0b\n\x04\x04\x02\x02\x03\x12\x03\x1a\x02\x1f\n\x0c\n\x05\x04\x02\x02\
2920    \x03\x05\x12\x03\x1a\x02\x08\n\x0c\n\x05\x04\x02\x02\x03\x01\x12\x03\x1a\
2921    \t\x1a\n\x0c\n\x05\x04\x02\x02\x03\x03\x12\x03\x1a\x1d\x1e\n\x0b\n\x04\
2922    \x04\x02\x02\x04\x12\x03\x1b\x02\"\n\x0c\n\x05\x04\x02\x02\x04\x05\x12\
2923    \x03\x1b\x02\x08\n\x0c\n\x05\x04\x02\x02\x04\x01\x12\x03\x1b\t\x1d\n\x0c\
2924    \n\x05\x04\x02\x02\x04\x03\x12\x03\x1b\x20!\n\x0b\n\x04\x04\x02\x02\x05\
2925    \x12\x03\x1c\x02\x1c\n\x0c\n\x05\x04\x02\x02\x05\x05\x12\x03\x1c\x02\x08\
2926    \n\x0c\n\x05\x04\x02\x02\x05\x01\x12\x03\x1c\t\x17\n\x0c\n\x05\x04\x02\
2927    \x02\x05\x03\x12\x03\x1c\x1a\x1b\n\n\n\x02\x04\x03\x12\x04\x1e\0\x20\x01\
2928    \n\n\n\x03\x04\x03\x01\x12\x03\x1e\x08*\n\x0b\n\x04\x04\x03\x02\0\x12\
2929    \x03\x1f\x02\x16\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03\x1f\x02\x08\n\x0c\
2930    \n\x05\x04\x03\x02\0\x01\x12\x03\x1f\t\x11\n\x0c\n\x05\x04\x03\x02\0\x03\
2931    \x12\x03\x1f\x14\x15\n,\n\x02\x04\x04\x12\x04#\0&\x01\x1a\x20\x20message\
2932    \x20resource\x20play\x20finished\n\n\n\n\x03\x04\x04\x01\x12\x03#\x08\"\
2933    \n\x0b\n\x04\x04\x04\x02\0\x12\x03$\x02\x1f\n\x0c\n\x05\x04\x04\x02\0\
2934    \x06\x12\x03$\x02\x11\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03$\x12\x1a\n\
2935    \x0c\n\x05\x04\x04\x02\0\x03\x12\x03$\x1d\x1e\n\x0b\n\x04\x04\x04\x02\
2936    \x01\x12\x03%\x02\x13\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03%\x02\x08\n\
2937    \x0c\n\x05\x04\x04\x02\x01\x01\x12\x03%\t\x0e\n\x0c\n\x05\x04\x04\x02\
2938    \x01\x03\x12\x03%\x11\x12\n:\n\x02\x04\x05\x12\x04)\0+\x01\x1a.\x20messa\
2939    ge\x20resource\x20empty\x20wait\x20for\x20new\x20resource\n\n\n\n\x03\
2940    \x04\x05\x01\x12\x03)\x08!\n\x0b\n\x04\x04\x05\x02\0\x12\x03*\x02\x13\n\
2941    \x0c\n\x05\x04\x05\x02\0\x05\x12\x03*\x02\x08\n\x0c\n\x05\x04\x05\x02\0\
2942    \x01\x12\x03*\t\x0e\n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03*\x11\x12\n.\n\
2943    \x02\x04\x06\x12\x04.\01\x01\x1a\"\x20message\x20resource\x20had\x20succ\
2944    ess\x20add\n\n\n\n\x03\x04\x06\x01\x12\x03.\x08\x1f\n\x0b\n\x04\x04\x06\
2945    \x02\0\x12\x03/\x02\x1f\n\x0c\n\x05\x04\x06\x02\0\x06\x12\x03/\x02\x11\n\
2946    \x0c\n\x05\x04\x06\x02\0\x01\x12\x03/\x12\x1a\n\x0c\n\x05\x04\x06\x02\0\
2947    \x03\x12\x03/\x1d\x1e\n\x0b\n\x04\x04\x06\x02\x01\x12\x030\x02\x13\n\x0c\
2948    \n\x05\x04\x06\x02\x01\x05\x12\x030\x02\x08\n\x0c\n\x05\x04\x06\x02\x01\
2949    \x01\x12\x030\t\x0e\n\x0c\n\x05\x04\x06\x02\x01\x03\x12\x030\x11\x12\n1\
2950    \n\x02\x04\x07\x12\x044\07\x01\x1a%\x20message\x20resource\x20had\x20suc\
2951    cess\x20remove\n\n\n\n\x03\x04\x07\x01\x12\x034\x08\"\n\x0b\n\x04\x04\
2952    \x07\x02\0\x12\x035\x02\x1f\n\x0c\n\x05\x04\x07\x02\0\x06\x12\x035\x02\
2953    \x11\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x035\x12\x1a\n\x0c\n\x05\x04\x07\
2954    \x02\0\x03\x12\x035\x1d\x1e\n\x0b\n\x04\x04\x07\x02\x01\x12\x036\x02\x13\
2955    \n\x0c\n\x05\x04\x07\x02\x01\x05\x12\x036\x02\x08\n\x0c\n\x05\x04\x07\
2956    \x02\x01\x01\x12\x036\t\x0e\n\x0c\n\x05\x04\x07\x02\x01\x03\x12\x036\x11\
2957    \x12\n)\n\x02\x04\x08\x12\x04:\0=\x01\x1a\x1d\x20message\x20current\x20n\
2958    o\x20playlist\n\n\n\n\x03\x04\x08\x01\x12\x03:\x08\x20\n\x0b\n\x04\x04\
2959    \x08\x02\0\x12\x03;\x02)\n\x0c\n\x05\x04\x08\x02\0\x04\x12\x03;\x02\n\n\
2960    \x0c\n\x05\x04\x08\x02\0\x06\x12\x03;\x0b\x1a\n\x0c\n\x05\x04\x08\x02\0\
2961    \x01\x12\x03;\x1b$\n\x0c\n\x05\x04\x08\x02\0\x03\x12\x03;'(\n\x0b\n\x04\
2962    \x04\x08\x02\x01\x12\x03<\x02\x13\n\x0c\n\x05\x04\x08\x02\x01\x05\x12\
2963    \x03<\x02\x08\n\x0c\n\x05\x04\x08\x02\x01\x01\x12\x03<\t\x0e\n\x0c\n\x05\
2964    \x04\x08\x02\x01\x03\x12\x03<\x11\x12\n+\n\x02\x04\t\x12\x04@\0C\x01\x1a\
2965    \x1f\x20message\x20play\x20history\x20playlist\n\n\n\n\x03\x04\t\x01\x12\
2966    \x03@\x08#\n\x0b\n\x04\x04\t\x02\0\x12\x03A\x02)\n\x0c\n\x05\x04\t\x02\0\
2967    \x04\x12\x03A\x02\n\n\x0c\n\x05\x04\t\x02\0\x06\x12\x03A\x0b\x1a\n\x0c\n\
2968    \x05\x04\t\x02\0\x01\x12\x03A\x1b$\n\x0c\n\x05\x04\t\x02\0\x03\x12\x03A'\
2969    (\n\x0b\n\x04\x04\t\x02\x01\x12\x03B\x02\x13\n\x0c\n\x05\x04\t\x02\x01\
2970    \x05\x12\x03B\x02\x08\n\x0c\n\x05\x04\t\x02\x01\x01\x12\x03B\t\x0e\n\x0c\
2971    \n\x05\x04\t\x02\x01\x03\x12\x03B\x11\x12\n.\n\x02\x04\n\x12\x04F\0L\x01\
2972    \x1a\"\x20message\x20current\x20playing\x20resource\n\n\n\n\x03\x04\n\
2973    \x01\x12\x03F\x08#\n\x0b\n\x04\x04\n\x02\0\x12\x03G\x02\x1f\n\x0c\n\x05\
2974    \x04\n\x02\0\x06\x12\x03G\x02\x11\n\x0c\n\x05\x04\n\x02\0\x01\x12\x03G\
2975    \x12\x1a\n\x0c\n\x05\x04\n\x02\0\x03\x12\x03G\x1d\x1e\n\x0b\n\x04\x04\n\
2976    \x02\x01\x12\x03H\x02\x16\n\x0c\n\x05\x04\n\x02\x01\x05\x12\x03H\x02\x08\
2977    \n\x0c\n\x05\x04\n\x02\x01\x01\x12\x03H\t\x11\n\x0c\n\x05\x04\n\x02\x01\
2978    \x03\x12\x03H\x14\x15\n\x0b\n\x04\x04\n\x02\x02\x12\x03I\x02\x11\n\x0c\n\
2979    \x05\x04\n\x02\x02\x05\x12\x03I\x02\x07\n\x0c\n\x05\x04\n\x02\x02\x01\
2980    \x12\x03I\x08\x0c\n\x0c\n\x05\x04\n\x02\x02\x03\x12\x03I\x0f\x10\n\x0b\n\
2981    \x04\x04\n\x02\x03\x12\x03J\x02\x15\n\x0c\n\x05\x04\n\x02\x03\x05\x12\
2982    \x03J\x02\x06\n\x0c\n\x05\x04\n\x02\x03\x01\x12\x03J\x07\x10\n\x0c\n\x05\
2983    \x04\n\x02\x03\x03\x12\x03J\x13\x14\n\x0b\n\x04\x04\n\x02\x04\x12\x03K\
2984    \x02\x13\n\x0c\n\x05\x04\n\x02\x04\x05\x12\x03K\x02\x08\n\x0c\n\x05\x04\
2985    \n\x02\x04\x01\x12\x03K\t\x0e\n\x0c\n\x05\x04\n\x02\x04\x03\x12\x03K\x11\
2986    \x12\n#\n\x02\x04\x0b\x12\x04O\0R\x01\x1a\x17\x20message\x20resource\x20\
2987    seek\n\n\n\n\x03\x04\x0b\x01\x12\x03O\x08\x20\n\x0b\n\x04\x04\x0b\x02\0\
2988    \x12\x03P\x02\x1f\n\x0c\n\x05\x04\x0b\x02\0\x06\x12\x03P\x02\x11\n\x0c\n\
2989    \x05\x04\x0b\x02\0\x01\x12\x03P\x12\x1a\n\x0c\n\x05\x04\x0b\x02\0\x03\
2990    \x12\x03P\x1d\x1e\n\x0b\n\x04\x04\x0b\x02\x01\x12\x03Q\x02\x13\n\x0c\n\
2991    \x05\x04\x0b\x02\x01\x05\x12\x03Q\x02\x08\n\x0c\n\x05\x04\x0b\x02\x01\
2992    \x01\x12\x03Q\t\x0e\n\x0c\n\x05\x04\x0b\x02\x01\x03\x12\x03Q\x11\x12b\
2993    \x06proto3\
2994";
2995
2996static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
2997
2998fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
2999    ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
3000}
3001
3002pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
3003    file_descriptor_proto_lazy.get(|| {
3004        parse_descriptor_proto()
3005    })
3006}