kplayer_rust_wrap/kplayer/proto/
msg_player.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_player.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 EventMessagePlayerStarted {
28    // message fields
29    pub error: ::std::string::String,
30    // special fields
31    pub unknown_fields: ::protobuf::UnknownFields,
32    pub cached_size: ::protobuf::CachedSize,
33}
34
35impl<'a> ::std::default::Default for &'a EventMessagePlayerStarted {
36    fn default() -> &'a EventMessagePlayerStarted {
37        <EventMessagePlayerStarted as ::protobuf::Message>::default_instance()
38    }
39}
40
41impl EventMessagePlayerStarted {
42    pub fn new() -> EventMessagePlayerStarted {
43        ::std::default::Default::default()
44    }
45
46    // string error = 1;
47
48
49    pub fn get_error(&self) -> &str {
50        &self.error
51    }
52    pub fn clear_error(&mut self) {
53        self.error.clear();
54    }
55
56    // Param is passed by value, moved
57    pub fn set_error(&mut self, v: ::std::string::String) {
58        self.error = v;
59    }
60
61    // Mutable pointer to the field.
62    // If field is not initialized, it is initialized with default value first.
63    pub fn mut_error(&mut self) -> &mut ::std::string::String {
64        &mut self.error
65    }
66
67    // Take field
68    pub fn take_error(&mut self) -> ::std::string::String {
69        ::std::mem::replace(&mut self.error, ::std::string::String::new())
70    }
71}
72
73impl ::protobuf::Message for EventMessagePlayerStarted {
74    fn is_initialized(&self) -> bool {
75        true
76    }
77
78    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
79        while !is.eof()? {
80            let (field_number, wire_type) = is.read_tag_unpack()?;
81            match field_number {
82                1 => {
83                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
84                },
85                _ => {
86                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
87                },
88            };
89        }
90        ::std::result::Result::Ok(())
91    }
92
93    // Compute sizes of nested messages
94    #[allow(unused_variables)]
95    fn compute_size(&self) -> u32 {
96        let mut my_size = 0;
97        if !self.error.is_empty() {
98            my_size += ::protobuf::rt::string_size(1, &self.error);
99        }
100        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
101        self.cached_size.set(my_size);
102        my_size
103    }
104
105    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
106        if !self.error.is_empty() {
107            os.write_string(1, &self.error)?;
108        }
109        os.write_unknown_fields(self.get_unknown_fields())?;
110        ::std::result::Result::Ok(())
111    }
112
113    fn get_cached_size(&self) -> u32 {
114        self.cached_size.get()
115    }
116
117    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
118        &self.unknown_fields
119    }
120
121    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
122        &mut self.unknown_fields
123    }
124
125    fn as_any(&self) -> &dyn (::std::any::Any) {
126        self as &dyn (::std::any::Any)
127    }
128    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
129        self as &mut dyn (::std::any::Any)
130    }
131    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
132        self
133    }
134
135    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
136        Self::descriptor_static()
137    }
138
139    fn new() -> EventMessagePlayerStarted {
140        EventMessagePlayerStarted::new()
141    }
142
143    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
144        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
145        descriptor.get(|| {
146            let mut fields = ::std::vec::Vec::new();
147            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
148                "error",
149                |m: &EventMessagePlayerStarted| { &m.error },
150                |m: &mut EventMessagePlayerStarted| { &mut m.error },
151            ));
152            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessagePlayerStarted>(
153                "EventMessagePlayerStarted",
154                fields,
155                file_descriptor_proto()
156            )
157        })
158    }
159
160    fn default_instance() -> &'static EventMessagePlayerStarted {
161        static instance: ::protobuf::rt::LazyV2<EventMessagePlayerStarted> = ::protobuf::rt::LazyV2::INIT;
162        instance.get(EventMessagePlayerStarted::new)
163    }
164}
165
166impl ::protobuf::Clear for EventMessagePlayerStarted {
167    fn clear(&mut self) {
168        self.error.clear();
169        self.unknown_fields.clear();
170    }
171}
172
173impl ::std::fmt::Debug for EventMessagePlayerStarted {
174    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
175        ::protobuf::text_format::fmt(self, f)
176    }
177}
178
179impl ::protobuf::reflect::ProtobufValue for EventMessagePlayerStarted {
180    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
181        ::protobuf::reflect::ReflectValueRef::Message(self)
182    }
183}
184
185#[derive(PartialEq,Clone,Default)]
186pub struct EventMessagePlayerEnded {
187    // message fields
188    pub error: ::std::string::String,
189    // special fields
190    pub unknown_fields: ::protobuf::UnknownFields,
191    pub cached_size: ::protobuf::CachedSize,
192}
193
194impl<'a> ::std::default::Default for &'a EventMessagePlayerEnded {
195    fn default() -> &'a EventMessagePlayerEnded {
196        <EventMessagePlayerEnded as ::protobuf::Message>::default_instance()
197    }
198}
199
200impl EventMessagePlayerEnded {
201    pub fn new() -> EventMessagePlayerEnded {
202        ::std::default::Default::default()
203    }
204
205    // string error = 1;
206
207
208    pub fn get_error(&self) -> &str {
209        &self.error
210    }
211    pub fn clear_error(&mut self) {
212        self.error.clear();
213    }
214
215    // Param is passed by value, moved
216    pub fn set_error(&mut self, v: ::std::string::String) {
217        self.error = v;
218    }
219
220    // Mutable pointer to the field.
221    // If field is not initialized, it is initialized with default value first.
222    pub fn mut_error(&mut self) -> &mut ::std::string::String {
223        &mut self.error
224    }
225
226    // Take field
227    pub fn take_error(&mut self) -> ::std::string::String {
228        ::std::mem::replace(&mut self.error, ::std::string::String::new())
229    }
230}
231
232impl ::protobuf::Message for EventMessagePlayerEnded {
233    fn is_initialized(&self) -> bool {
234        true
235    }
236
237    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
238        while !is.eof()? {
239            let (field_number, wire_type) = is.read_tag_unpack()?;
240            match field_number {
241                1 => {
242                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
243                },
244                _ => {
245                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
246                },
247            };
248        }
249        ::std::result::Result::Ok(())
250    }
251
252    // Compute sizes of nested messages
253    #[allow(unused_variables)]
254    fn compute_size(&self) -> u32 {
255        let mut my_size = 0;
256        if !self.error.is_empty() {
257            my_size += ::protobuf::rt::string_size(1, &self.error);
258        }
259        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
260        self.cached_size.set(my_size);
261        my_size
262    }
263
264    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
265        if !self.error.is_empty() {
266            os.write_string(1, &self.error)?;
267        }
268        os.write_unknown_fields(self.get_unknown_fields())?;
269        ::std::result::Result::Ok(())
270    }
271
272    fn get_cached_size(&self) -> u32 {
273        self.cached_size.get()
274    }
275
276    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
277        &self.unknown_fields
278    }
279
280    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
281        &mut self.unknown_fields
282    }
283
284    fn as_any(&self) -> &dyn (::std::any::Any) {
285        self as &dyn (::std::any::Any)
286    }
287    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
288        self as &mut dyn (::std::any::Any)
289    }
290    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
291        self
292    }
293
294    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
295        Self::descriptor_static()
296    }
297
298    fn new() -> EventMessagePlayerEnded {
299        EventMessagePlayerEnded::new()
300    }
301
302    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
303        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
304        descriptor.get(|| {
305            let mut fields = ::std::vec::Vec::new();
306            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
307                "error",
308                |m: &EventMessagePlayerEnded| { &m.error },
309                |m: &mut EventMessagePlayerEnded| { &mut m.error },
310            ));
311            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessagePlayerEnded>(
312                "EventMessagePlayerEnded",
313                fields,
314                file_descriptor_proto()
315            )
316        })
317    }
318
319    fn default_instance() -> &'static EventMessagePlayerEnded {
320        static instance: ::protobuf::rt::LazyV2<EventMessagePlayerEnded> = ::protobuf::rt::LazyV2::INIT;
321        instance.get(EventMessagePlayerEnded::new)
322    }
323}
324
325impl ::protobuf::Clear for EventMessagePlayerEnded {
326    fn clear(&mut self) {
327        self.error.clear();
328        self.unknown_fields.clear();
329    }
330}
331
332impl ::std::fmt::Debug for EventMessagePlayerEnded {
333    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
334        ::protobuf::text_format::fmt(self, f)
335    }
336}
337
338impl ::protobuf::reflect::ProtobufValue for EventMessagePlayerEnded {
339    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
340        ::protobuf::reflect::ReflectValueRef::Message(self)
341    }
342}
343
344#[derive(PartialEq,Clone,Default)]
345pub struct EventMessagePlayerPause {
346    // message fields
347    pub error: ::std::string::String,
348    // special fields
349    pub unknown_fields: ::protobuf::UnknownFields,
350    pub cached_size: ::protobuf::CachedSize,
351}
352
353impl<'a> ::std::default::Default for &'a EventMessagePlayerPause {
354    fn default() -> &'a EventMessagePlayerPause {
355        <EventMessagePlayerPause as ::protobuf::Message>::default_instance()
356    }
357}
358
359impl EventMessagePlayerPause {
360    pub fn new() -> EventMessagePlayerPause {
361        ::std::default::Default::default()
362    }
363
364    // string error = 1;
365
366
367    pub fn get_error(&self) -> &str {
368        &self.error
369    }
370    pub fn clear_error(&mut self) {
371        self.error.clear();
372    }
373
374    // Param is passed by value, moved
375    pub fn set_error(&mut self, v: ::std::string::String) {
376        self.error = v;
377    }
378
379    // Mutable pointer to the field.
380    // If field is not initialized, it is initialized with default value first.
381    pub fn mut_error(&mut self) -> &mut ::std::string::String {
382        &mut self.error
383    }
384
385    // Take field
386    pub fn take_error(&mut self) -> ::std::string::String {
387        ::std::mem::replace(&mut self.error, ::std::string::String::new())
388    }
389}
390
391impl ::protobuf::Message for EventMessagePlayerPause {
392    fn is_initialized(&self) -> bool {
393        true
394    }
395
396    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
397        while !is.eof()? {
398            let (field_number, wire_type) = is.read_tag_unpack()?;
399            match field_number {
400                1 => {
401                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
402                },
403                _ => {
404                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
405                },
406            };
407        }
408        ::std::result::Result::Ok(())
409    }
410
411    // Compute sizes of nested messages
412    #[allow(unused_variables)]
413    fn compute_size(&self) -> u32 {
414        let mut my_size = 0;
415        if !self.error.is_empty() {
416            my_size += ::protobuf::rt::string_size(1, &self.error);
417        }
418        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
419        self.cached_size.set(my_size);
420        my_size
421    }
422
423    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
424        if !self.error.is_empty() {
425            os.write_string(1, &self.error)?;
426        }
427        os.write_unknown_fields(self.get_unknown_fields())?;
428        ::std::result::Result::Ok(())
429    }
430
431    fn get_cached_size(&self) -> u32 {
432        self.cached_size.get()
433    }
434
435    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
436        &self.unknown_fields
437    }
438
439    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
440        &mut self.unknown_fields
441    }
442
443    fn as_any(&self) -> &dyn (::std::any::Any) {
444        self as &dyn (::std::any::Any)
445    }
446    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
447        self as &mut dyn (::std::any::Any)
448    }
449    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
450        self
451    }
452
453    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
454        Self::descriptor_static()
455    }
456
457    fn new() -> EventMessagePlayerPause {
458        EventMessagePlayerPause::new()
459    }
460
461    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
462        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
463        descriptor.get(|| {
464            let mut fields = ::std::vec::Vec::new();
465            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
466                "error",
467                |m: &EventMessagePlayerPause| { &m.error },
468                |m: &mut EventMessagePlayerPause| { &mut m.error },
469            ));
470            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessagePlayerPause>(
471                "EventMessagePlayerPause",
472                fields,
473                file_descriptor_proto()
474            )
475        })
476    }
477
478    fn default_instance() -> &'static EventMessagePlayerPause {
479        static instance: ::protobuf::rt::LazyV2<EventMessagePlayerPause> = ::protobuf::rt::LazyV2::INIT;
480        instance.get(EventMessagePlayerPause::new)
481    }
482}
483
484impl ::protobuf::Clear for EventMessagePlayerPause {
485    fn clear(&mut self) {
486        self.error.clear();
487        self.unknown_fields.clear();
488    }
489}
490
491impl ::std::fmt::Debug for EventMessagePlayerPause {
492    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
493        ::protobuf::text_format::fmt(self, f)
494    }
495}
496
497impl ::protobuf::reflect::ProtobufValue for EventMessagePlayerPause {
498    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
499        ::protobuf::reflect::ReflectValueRef::Message(self)
500    }
501}
502
503#[derive(PartialEq,Clone,Default)]
504pub struct EventMessagePlayerContinue {
505    // message fields
506    pub error: ::std::string::String,
507    // special fields
508    pub unknown_fields: ::protobuf::UnknownFields,
509    pub cached_size: ::protobuf::CachedSize,
510}
511
512impl<'a> ::std::default::Default for &'a EventMessagePlayerContinue {
513    fn default() -> &'a EventMessagePlayerContinue {
514        <EventMessagePlayerContinue as ::protobuf::Message>::default_instance()
515    }
516}
517
518impl EventMessagePlayerContinue {
519    pub fn new() -> EventMessagePlayerContinue {
520        ::std::default::Default::default()
521    }
522
523    // string error = 1;
524
525
526    pub fn get_error(&self) -> &str {
527        &self.error
528    }
529    pub fn clear_error(&mut self) {
530        self.error.clear();
531    }
532
533    // Param is passed by value, moved
534    pub fn set_error(&mut self, v: ::std::string::String) {
535        self.error = v;
536    }
537
538    // Mutable pointer to the field.
539    // If field is not initialized, it is initialized with default value first.
540    pub fn mut_error(&mut self) -> &mut ::std::string::String {
541        &mut self.error
542    }
543
544    // Take field
545    pub fn take_error(&mut self) -> ::std::string::String {
546        ::std::mem::replace(&mut self.error, ::std::string::String::new())
547    }
548}
549
550impl ::protobuf::Message for EventMessagePlayerContinue {
551    fn is_initialized(&self) -> bool {
552        true
553    }
554
555    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
556        while !is.eof()? {
557            let (field_number, wire_type) = is.read_tag_unpack()?;
558            match field_number {
559                1 => {
560                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
561                },
562                _ => {
563                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
564                },
565            };
566        }
567        ::std::result::Result::Ok(())
568    }
569
570    // Compute sizes of nested messages
571    #[allow(unused_variables)]
572    fn compute_size(&self) -> u32 {
573        let mut my_size = 0;
574        if !self.error.is_empty() {
575            my_size += ::protobuf::rt::string_size(1, &self.error);
576        }
577        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
578        self.cached_size.set(my_size);
579        my_size
580    }
581
582    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
583        if !self.error.is_empty() {
584            os.write_string(1, &self.error)?;
585        }
586        os.write_unknown_fields(self.get_unknown_fields())?;
587        ::std::result::Result::Ok(())
588    }
589
590    fn get_cached_size(&self) -> u32 {
591        self.cached_size.get()
592    }
593
594    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
595        &self.unknown_fields
596    }
597
598    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
599        &mut self.unknown_fields
600    }
601
602    fn as_any(&self) -> &dyn (::std::any::Any) {
603        self as &dyn (::std::any::Any)
604    }
605    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
606        self as &mut dyn (::std::any::Any)
607    }
608    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
609        self
610    }
611
612    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
613        Self::descriptor_static()
614    }
615
616    fn new() -> EventMessagePlayerContinue {
617        EventMessagePlayerContinue::new()
618    }
619
620    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
621        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
622        descriptor.get(|| {
623            let mut fields = ::std::vec::Vec::new();
624            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
625                "error",
626                |m: &EventMessagePlayerContinue| { &m.error },
627                |m: &mut EventMessagePlayerContinue| { &mut m.error },
628            ));
629            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessagePlayerContinue>(
630                "EventMessagePlayerContinue",
631                fields,
632                file_descriptor_proto()
633            )
634        })
635    }
636
637    fn default_instance() -> &'static EventMessagePlayerContinue {
638        static instance: ::protobuf::rt::LazyV2<EventMessagePlayerContinue> = ::protobuf::rt::LazyV2::INIT;
639        instance.get(EventMessagePlayerContinue::new)
640    }
641}
642
643impl ::protobuf::Clear for EventMessagePlayerContinue {
644    fn clear(&mut self) {
645        self.error.clear();
646        self.unknown_fields.clear();
647    }
648}
649
650impl ::std::fmt::Debug for EventMessagePlayerContinue {
651    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
652        ::protobuf::text_format::fmt(self, f)
653    }
654}
655
656impl ::protobuf::reflect::ProtobufValue for EventMessagePlayerContinue {
657    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
658        ::protobuf::reflect::ReflectValueRef::Message(self)
659    }
660}
661
662#[derive(PartialEq,Clone,Default)]
663pub struct EventMessagePlayerSkip {
664    // message fields
665    pub error: ::std::string::String,
666    // special fields
667    pub unknown_fields: ::protobuf::UnknownFields,
668    pub cached_size: ::protobuf::CachedSize,
669}
670
671impl<'a> ::std::default::Default for &'a EventMessagePlayerSkip {
672    fn default() -> &'a EventMessagePlayerSkip {
673        <EventMessagePlayerSkip as ::protobuf::Message>::default_instance()
674    }
675}
676
677impl EventMessagePlayerSkip {
678    pub fn new() -> EventMessagePlayerSkip {
679        ::std::default::Default::default()
680    }
681
682    // string error = 1;
683
684
685    pub fn get_error(&self) -> &str {
686        &self.error
687    }
688    pub fn clear_error(&mut self) {
689        self.error.clear();
690    }
691
692    // Param is passed by value, moved
693    pub fn set_error(&mut self, v: ::std::string::String) {
694        self.error = v;
695    }
696
697    // Mutable pointer to the field.
698    // If field is not initialized, it is initialized with default value first.
699    pub fn mut_error(&mut self) -> &mut ::std::string::String {
700        &mut self.error
701    }
702
703    // Take field
704    pub fn take_error(&mut self) -> ::std::string::String {
705        ::std::mem::replace(&mut self.error, ::std::string::String::new())
706    }
707}
708
709impl ::protobuf::Message for EventMessagePlayerSkip {
710    fn is_initialized(&self) -> bool {
711        true
712    }
713
714    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
715        while !is.eof()? {
716            let (field_number, wire_type) = is.read_tag_unpack()?;
717            match field_number {
718                1 => {
719                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
720                },
721                _ => {
722                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
723                },
724            };
725        }
726        ::std::result::Result::Ok(())
727    }
728
729    // Compute sizes of nested messages
730    #[allow(unused_variables)]
731    fn compute_size(&self) -> u32 {
732        let mut my_size = 0;
733        if !self.error.is_empty() {
734            my_size += ::protobuf::rt::string_size(1, &self.error);
735        }
736        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
737        self.cached_size.set(my_size);
738        my_size
739    }
740
741    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
742        if !self.error.is_empty() {
743            os.write_string(1, &self.error)?;
744        }
745        os.write_unknown_fields(self.get_unknown_fields())?;
746        ::std::result::Result::Ok(())
747    }
748
749    fn get_cached_size(&self) -> u32 {
750        self.cached_size.get()
751    }
752
753    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
754        &self.unknown_fields
755    }
756
757    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
758        &mut self.unknown_fields
759    }
760
761    fn as_any(&self) -> &dyn (::std::any::Any) {
762        self as &dyn (::std::any::Any)
763    }
764    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
765        self as &mut dyn (::std::any::Any)
766    }
767    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
768        self
769    }
770
771    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
772        Self::descriptor_static()
773    }
774
775    fn new() -> EventMessagePlayerSkip {
776        EventMessagePlayerSkip::new()
777    }
778
779    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
780        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
781        descriptor.get(|| {
782            let mut fields = ::std::vec::Vec::new();
783            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
784                "error",
785                |m: &EventMessagePlayerSkip| { &m.error },
786                |m: &mut EventMessagePlayerSkip| { &mut m.error },
787            ));
788            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessagePlayerSkip>(
789                "EventMessagePlayerSkip",
790                fields,
791                file_descriptor_proto()
792            )
793        })
794    }
795
796    fn default_instance() -> &'static EventMessagePlayerSkip {
797        static instance: ::protobuf::rt::LazyV2<EventMessagePlayerSkip> = ::protobuf::rt::LazyV2::INIT;
798        instance.get(EventMessagePlayerSkip::new)
799    }
800}
801
802impl ::protobuf::Clear for EventMessagePlayerSkip {
803    fn clear(&mut self) {
804        self.error.clear();
805        self.unknown_fields.clear();
806    }
807}
808
809impl ::std::fmt::Debug for EventMessagePlayerSkip {
810    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
811        ::protobuf::text_format::fmt(self, f)
812    }
813}
814
815impl ::protobuf::reflect::ProtobufValue for EventMessagePlayerSkip {
816    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
817        ::protobuf::reflect::ReflectValueRef::Message(self)
818    }
819}
820
821#[derive(PartialEq,Clone,Default)]
822pub struct EventMessagePlayerStop {
823    // message fields
824    pub error: ::std::string::String,
825    // special fields
826    pub unknown_fields: ::protobuf::UnknownFields,
827    pub cached_size: ::protobuf::CachedSize,
828}
829
830impl<'a> ::std::default::Default for &'a EventMessagePlayerStop {
831    fn default() -> &'a EventMessagePlayerStop {
832        <EventMessagePlayerStop as ::protobuf::Message>::default_instance()
833    }
834}
835
836impl EventMessagePlayerStop {
837    pub fn new() -> EventMessagePlayerStop {
838        ::std::default::Default::default()
839    }
840
841    // string error = 1;
842
843
844    pub fn get_error(&self) -> &str {
845        &self.error
846    }
847    pub fn clear_error(&mut self) {
848        self.error.clear();
849    }
850
851    // Param is passed by value, moved
852    pub fn set_error(&mut self, v: ::std::string::String) {
853        self.error = v;
854    }
855
856    // Mutable pointer to the field.
857    // If field is not initialized, it is initialized with default value first.
858    pub fn mut_error(&mut self) -> &mut ::std::string::String {
859        &mut self.error
860    }
861
862    // Take field
863    pub fn take_error(&mut self) -> ::std::string::String {
864        ::std::mem::replace(&mut self.error, ::std::string::String::new())
865    }
866}
867
868impl ::protobuf::Message for EventMessagePlayerStop {
869    fn is_initialized(&self) -> bool {
870        true
871    }
872
873    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
874        while !is.eof()? {
875            let (field_number, wire_type) = is.read_tag_unpack()?;
876            match field_number {
877                1 => {
878                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error)?;
879                },
880                _ => {
881                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
882                },
883            };
884        }
885        ::std::result::Result::Ok(())
886    }
887
888    // Compute sizes of nested messages
889    #[allow(unused_variables)]
890    fn compute_size(&self) -> u32 {
891        let mut my_size = 0;
892        if !self.error.is_empty() {
893            my_size += ::protobuf::rt::string_size(1, &self.error);
894        }
895        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
896        self.cached_size.set(my_size);
897        my_size
898    }
899
900    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
901        if !self.error.is_empty() {
902            os.write_string(1, &self.error)?;
903        }
904        os.write_unknown_fields(self.get_unknown_fields())?;
905        ::std::result::Result::Ok(())
906    }
907
908    fn get_cached_size(&self) -> u32 {
909        self.cached_size.get()
910    }
911
912    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
913        &self.unknown_fields
914    }
915
916    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
917        &mut self.unknown_fields
918    }
919
920    fn as_any(&self) -> &dyn (::std::any::Any) {
921        self as &dyn (::std::any::Any)
922    }
923    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
924        self as &mut dyn (::std::any::Any)
925    }
926    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
927        self
928    }
929
930    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
931        Self::descriptor_static()
932    }
933
934    fn new() -> EventMessagePlayerStop {
935        EventMessagePlayerStop::new()
936    }
937
938    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
939        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
940        descriptor.get(|| {
941            let mut fields = ::std::vec::Vec::new();
942            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
943                "error",
944                |m: &EventMessagePlayerStop| { &m.error },
945                |m: &mut EventMessagePlayerStop| { &mut m.error },
946            ));
947            ::protobuf::reflect::MessageDescriptor::new_pb_name::<EventMessagePlayerStop>(
948                "EventMessagePlayerStop",
949                fields,
950                file_descriptor_proto()
951            )
952        })
953    }
954
955    fn default_instance() -> &'static EventMessagePlayerStop {
956        static instance: ::protobuf::rt::LazyV2<EventMessagePlayerStop> = ::protobuf::rt::LazyV2::INIT;
957        instance.get(EventMessagePlayerStop::new)
958    }
959}
960
961impl ::protobuf::Clear for EventMessagePlayerStop {
962    fn clear(&mut self) {
963        self.error.clear();
964        self.unknown_fields.clear();
965    }
966}
967
968impl ::std::fmt::Debug for EventMessagePlayerStop {
969    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
970        ::protobuf::text_format::fmt(self, f)
971    }
972}
973
974impl ::protobuf::reflect::ProtobufValue for EventMessagePlayerStop {
975    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
976        ::protobuf::reflect::ReflectValueRef::Message(self)
977    }
978}
979
980static file_descriptor_proto_data: &'static [u8] = b"\
981    \n\x1aproto/msg/msg_player.proto\x12\x0bKPProto.Msg\"1\n\x19EventMessage\
982    PlayerStarted\x12\x14\n\x05error\x18\x01\x20\x01(\tR\x05error\"/\n\x17Ev\
983    entMessagePlayerEnded\x12\x14\n\x05error\x18\x01\x20\x01(\tR\x05error\"/\
984    \n\x17EventMessagePlayerPause\x12\x14\n\x05error\x18\x01\x20\x01(\tR\x05\
985    error\"2\n\x1aEventMessagePlayerContinue\x12\x14\n\x05error\x18\x01\x20\
986    \x01(\tR\x05error\".\n\x16EventMessagePlayerSkip\x12\x14\n\x05error\x18\
987    \x01\x20\x01(\tR\x05error\".\n\x16EventMessagePlayerStop\x12\x14\n\x05er\
988    ror\x18\x01\x20\x01(\tR\x05errorB2Z0github.com/bytelang/kplayer/types/co\
989    re/proto/msgJ\x8b\x04\n\x06\x12\x04\0\0\x1c\x01\n\x08\n\x01\x0c\x12\x03\
990    \0\0\x12\n\x08\n\x01\x02\x12\x03\x02\0\x14\n\x08\n\x01\x08\x12\x03\x04\0\
991    G\n\t\n\x02\x08\x0b\x12\x03\x04\0G\n\n\n\x02\x04\0\x12\x04\x06\0\x08\x01\
992    \n\n\n\x03\x04\0\x01\x12\x03\x06\x08!\n\x0b\n\x04\x04\0\x02\0\x12\x03\
993    \x07\x02\x13\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x07\x02\x08\n\x0c\n\x05\
994    \x04\0\x02\0\x01\x12\x03\x07\t\x0e\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\
995    \x07\x11\x12\n\n\n\x02\x04\x01\x12\x04\n\0\x0c\x01\n\n\n\x03\x04\x01\x01\
996    \x12\x03\n\x08\x1f\n\x0b\n\x04\x04\x01\x02\0\x12\x03\x0b\x02\x13\n\x0c\n\
997    \x05\x04\x01\x02\0\x05\x12\x03\x0b\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\
998    \x12\x03\x0b\t\x0e\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x0b\x11\x12\n\n\
999    \n\x02\x04\x02\x12\x04\x0e\0\x10\x01\n\n\n\x03\x04\x02\x01\x12\x03\x0e\
1000    \x08\x1f\n\x0b\n\x04\x04\x02\x02\0\x12\x03\x0f\x02\x13\n\x0c\n\x05\x04\
1001    \x02\x02\0\x05\x12\x03\x0f\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\
1002    \x0f\t\x0e\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\x0f\x11\x12\n\n\n\x02\
1003    \x04\x03\x12\x04\x12\0\x14\x01\n\n\n\x03\x04\x03\x01\x12\x03\x12\x08\"\n\
1004    \x0b\n\x04\x04\x03\x02\0\x12\x03\x13\x02\x13\n\x0c\n\x05\x04\x03\x02\0\
1005    \x05\x12\x03\x13\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03\x13\t\x0e\
1006    \n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03\x13\x11\x12\n\n\n\x02\x04\x04\x12\
1007    \x04\x16\0\x18\x01\n\n\n\x03\x04\x04\x01\x12\x03\x16\x08\x1e\n\x0b\n\x04\
1008    \x04\x04\x02\0\x12\x03\x17\x02\x13\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03\
1009    \x17\x02\x08\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03\x17\t\x0e\n\x0c\n\x05\
1010    \x04\x04\x02\0\x03\x12\x03\x17\x11\x12\n\n\n\x02\x04\x05\x12\x04\x1a\0\
1011    \x1c\x01\n\n\n\x03\x04\x05\x01\x12\x03\x1a\x08\x1e\n\x0b\n\x04\x04\x05\
1012    \x02\0\x12\x03\x1b\x02\x13\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03\x1b\x02\
1013    \x08\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03\x1b\t\x0e\n\x0c\n\x05\x04\x05\
1014    \x02\0\x03\x12\x03\x1b\x11\x12b\x06proto3\
1015";
1016
1017static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
1018
1019fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1020    ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1021}
1022
1023pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1024    file_descriptor_proto_lazy.get(|| {
1025        parse_descriptor_proto()
1026    })
1027}