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