dfhack_proto/generated/messages/
CoreProtocol.rs

1// This file is generated by rust-protobuf 3.4.0. Do not edit
2// .proto file is parsed by pure
3// @generated
4
5// https://github.com/rust-lang/rust-clippy/issues/702
6#![allow(unknown_lints)]
7#![allow(clippy::all)]
8
9#![allow(unused_attributes)]
10#![cfg_attr(rustfmt, rustfmt::skip)]
11
12#![allow(box_pointers)]
13#![allow(dead_code)]
14#![allow(missing_docs)]
15#![allow(non_camel_case_types)]
16#![allow(non_snake_case)]
17#![allow(non_upper_case_globals)]
18#![allow(trivial_casts)]
19#![allow(unused_results)]
20#![allow(unused_mut)]
21
22//! Generated file from `CoreProtocol.proto`
23
24/// Generated files are compatible only with the same version
25/// of protobuf runtime.
26const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0;
27
28// @@protoc_insertion_point(message:dfproto.CoreTextFragment)
29#[derive(PartialEq,Clone,Default,Debug)]
30pub struct CoreTextFragment {
31    // message fields
32    // @@protoc_insertion_point(field:dfproto.CoreTextFragment.text)
33    pub text: ::std::option::Option<::std::string::String>,
34    // @@protoc_insertion_point(field:dfproto.CoreTextFragment.color)
35    pub color: ::std::option::Option<::protobuf::EnumOrUnknown<core_text_fragment::Color>>,
36    // special fields
37    // @@protoc_insertion_point(special_field:dfproto.CoreTextFragment.special_fields)
38    pub special_fields: ::protobuf::SpecialFields,
39}
40
41impl<'a> ::std::default::Default for &'a CoreTextFragment {
42    fn default() -> &'a CoreTextFragment {
43        <CoreTextFragment as ::protobuf::Message>::default_instance()
44    }
45}
46
47impl CoreTextFragment {
48    pub fn new() -> CoreTextFragment {
49        ::std::default::Default::default()
50    }
51
52    // required string text = 1;
53
54    pub fn text(&self) -> &str {
55        match self.text.as_ref() {
56            Some(v) => v,
57            None => "",
58        }
59    }
60
61    pub fn clear_text(&mut self) {
62        self.text = ::std::option::Option::None;
63    }
64
65    pub fn has_text(&self) -> bool {
66        self.text.is_some()
67    }
68
69    // Param is passed by value, moved
70    pub fn set_text(&mut self, v: ::std::string::String) {
71        self.text = ::std::option::Option::Some(v);
72    }
73
74    // Mutable pointer to the field.
75    // If field is not initialized, it is initialized with default value first.
76    pub fn mut_text(&mut self) -> &mut ::std::string::String {
77        if self.text.is_none() {
78            self.text = ::std::option::Option::Some(::std::string::String::new());
79        }
80        self.text.as_mut().unwrap()
81    }
82
83    // Take field
84    pub fn take_text(&mut self) -> ::std::string::String {
85        self.text.take().unwrap_or_else(|| ::std::string::String::new())
86    }
87
88    // optional .dfproto.CoreTextFragment.Color color = 2;
89
90    pub fn color(&self) -> core_text_fragment::Color {
91        match self.color {
92            Some(e) => e.enum_value_or(core_text_fragment::Color::COLOR_BLACK),
93            None => core_text_fragment::Color::COLOR_BLACK,
94        }
95    }
96
97    pub fn clear_color(&mut self) {
98        self.color = ::std::option::Option::None;
99    }
100
101    pub fn has_color(&self) -> bool {
102        self.color.is_some()
103    }
104
105    // Param is passed by value, moved
106    pub fn set_color(&mut self, v: core_text_fragment::Color) {
107        self.color = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
108    }
109
110    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
111        let mut fields = ::std::vec::Vec::with_capacity(2);
112        let mut oneofs = ::std::vec::Vec::with_capacity(0);
113        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
114            "text",
115            |m: &CoreTextFragment| { &m.text },
116            |m: &mut CoreTextFragment| { &mut m.text },
117        ));
118        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
119            "color",
120            |m: &CoreTextFragment| { &m.color },
121            |m: &mut CoreTextFragment| { &mut m.color },
122        ));
123        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CoreTextFragment>(
124            "CoreTextFragment",
125            fields,
126            oneofs,
127        )
128    }
129}
130
131impl ::protobuf::Message for CoreTextFragment {
132    const NAME: &'static str = "CoreTextFragment";
133
134    fn is_initialized(&self) -> bool {
135        if self.text.is_none() {
136            return false;
137        }
138        true
139    }
140
141    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
142        while let Some(tag) = is.read_raw_tag_or_eof()? {
143            match tag {
144                10 => {
145                    self.text = ::std::option::Option::Some(is.read_string()?);
146                },
147                16 => {
148                    self.color = ::std::option::Option::Some(is.read_enum_or_unknown()?);
149                },
150                tag => {
151                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
152                },
153            };
154        }
155        ::std::result::Result::Ok(())
156    }
157
158    // Compute sizes of nested messages
159    #[allow(unused_variables)]
160    fn compute_size(&self) -> u64 {
161        let mut my_size = 0;
162        if let Some(v) = self.text.as_ref() {
163            my_size += ::protobuf::rt::string_size(1, &v);
164        }
165        if let Some(v) = self.color {
166            my_size += ::protobuf::rt::int32_size(2, v.value());
167        }
168        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
169        self.special_fields.cached_size().set(my_size as u32);
170        my_size
171    }
172
173    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
174        if let Some(v) = self.text.as_ref() {
175            os.write_string(1, v)?;
176        }
177        if let Some(v) = self.color {
178            os.write_enum(2, ::protobuf::EnumOrUnknown::value(&v))?;
179        }
180        os.write_unknown_fields(self.special_fields.unknown_fields())?;
181        ::std::result::Result::Ok(())
182    }
183
184    fn special_fields(&self) -> &::protobuf::SpecialFields {
185        &self.special_fields
186    }
187
188    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
189        &mut self.special_fields
190    }
191
192    fn new() -> CoreTextFragment {
193        CoreTextFragment::new()
194    }
195
196    fn clear(&mut self) {
197        self.text = ::std::option::Option::None;
198        self.color = ::std::option::Option::None;
199        self.special_fields.clear();
200    }
201
202    fn default_instance() -> &'static CoreTextFragment {
203        static instance: CoreTextFragment = CoreTextFragment {
204            text: ::std::option::Option::None,
205            color: ::std::option::Option::None,
206            special_fields: ::protobuf::SpecialFields::new(),
207        };
208        &instance
209    }
210}
211
212impl ::protobuf::MessageFull for CoreTextFragment {
213    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
214        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
215        descriptor.get(|| file_descriptor().message_by_package_relative_name("CoreTextFragment").unwrap()).clone()
216    }
217}
218
219impl ::std::fmt::Display for CoreTextFragment {
220    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
221        ::protobuf::text_format::fmt(self, f)
222    }
223}
224
225impl ::protobuf::reflect::ProtobufValue for CoreTextFragment {
226    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
227}
228
229/// Nested message and enums of message `CoreTextFragment`
230pub mod core_text_fragment {
231    #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
232    // @@protoc_insertion_point(enum:dfproto.CoreTextFragment.Color)
233    pub enum Color {
234        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_BLACK)
235        COLOR_BLACK = 0,
236        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_BLUE)
237        COLOR_BLUE = 1,
238        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_GREEN)
239        COLOR_GREEN = 2,
240        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_CYAN)
241        COLOR_CYAN = 3,
242        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_RED)
243        COLOR_RED = 4,
244        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_MAGENTA)
245        COLOR_MAGENTA = 5,
246        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_BROWN)
247        COLOR_BROWN = 6,
248        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_GREY)
249        COLOR_GREY = 7,
250        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_DARKGREY)
251        COLOR_DARKGREY = 8,
252        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_LIGHTBLUE)
253        COLOR_LIGHTBLUE = 9,
254        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_LIGHTGREEN)
255        COLOR_LIGHTGREEN = 10,
256        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_LIGHTCYAN)
257        COLOR_LIGHTCYAN = 11,
258        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_LIGHTRED)
259        COLOR_LIGHTRED = 12,
260        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_LIGHTMAGENTA)
261        COLOR_LIGHTMAGENTA = 13,
262        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_YELLOW)
263        COLOR_YELLOW = 14,
264        // @@protoc_insertion_point(enum_value:dfproto.CoreTextFragment.Color.COLOR_WHITE)
265        COLOR_WHITE = 15,
266    }
267
268    impl ::protobuf::Enum for Color {
269        const NAME: &'static str = "Color";
270
271        fn value(&self) -> i32 {
272            *self as i32
273        }
274
275        fn from_i32(value: i32) -> ::std::option::Option<Color> {
276            match value {
277                0 => ::std::option::Option::Some(Color::COLOR_BLACK),
278                1 => ::std::option::Option::Some(Color::COLOR_BLUE),
279                2 => ::std::option::Option::Some(Color::COLOR_GREEN),
280                3 => ::std::option::Option::Some(Color::COLOR_CYAN),
281                4 => ::std::option::Option::Some(Color::COLOR_RED),
282                5 => ::std::option::Option::Some(Color::COLOR_MAGENTA),
283                6 => ::std::option::Option::Some(Color::COLOR_BROWN),
284                7 => ::std::option::Option::Some(Color::COLOR_GREY),
285                8 => ::std::option::Option::Some(Color::COLOR_DARKGREY),
286                9 => ::std::option::Option::Some(Color::COLOR_LIGHTBLUE),
287                10 => ::std::option::Option::Some(Color::COLOR_LIGHTGREEN),
288                11 => ::std::option::Option::Some(Color::COLOR_LIGHTCYAN),
289                12 => ::std::option::Option::Some(Color::COLOR_LIGHTRED),
290                13 => ::std::option::Option::Some(Color::COLOR_LIGHTMAGENTA),
291                14 => ::std::option::Option::Some(Color::COLOR_YELLOW),
292                15 => ::std::option::Option::Some(Color::COLOR_WHITE),
293                _ => ::std::option::Option::None
294            }
295        }
296
297        fn from_str(str: &str) -> ::std::option::Option<Color> {
298            match str {
299                "COLOR_BLACK" => ::std::option::Option::Some(Color::COLOR_BLACK),
300                "COLOR_BLUE" => ::std::option::Option::Some(Color::COLOR_BLUE),
301                "COLOR_GREEN" => ::std::option::Option::Some(Color::COLOR_GREEN),
302                "COLOR_CYAN" => ::std::option::Option::Some(Color::COLOR_CYAN),
303                "COLOR_RED" => ::std::option::Option::Some(Color::COLOR_RED),
304                "COLOR_MAGENTA" => ::std::option::Option::Some(Color::COLOR_MAGENTA),
305                "COLOR_BROWN" => ::std::option::Option::Some(Color::COLOR_BROWN),
306                "COLOR_GREY" => ::std::option::Option::Some(Color::COLOR_GREY),
307                "COLOR_DARKGREY" => ::std::option::Option::Some(Color::COLOR_DARKGREY),
308                "COLOR_LIGHTBLUE" => ::std::option::Option::Some(Color::COLOR_LIGHTBLUE),
309                "COLOR_LIGHTGREEN" => ::std::option::Option::Some(Color::COLOR_LIGHTGREEN),
310                "COLOR_LIGHTCYAN" => ::std::option::Option::Some(Color::COLOR_LIGHTCYAN),
311                "COLOR_LIGHTRED" => ::std::option::Option::Some(Color::COLOR_LIGHTRED),
312                "COLOR_LIGHTMAGENTA" => ::std::option::Option::Some(Color::COLOR_LIGHTMAGENTA),
313                "COLOR_YELLOW" => ::std::option::Option::Some(Color::COLOR_YELLOW),
314                "COLOR_WHITE" => ::std::option::Option::Some(Color::COLOR_WHITE),
315                _ => ::std::option::Option::None
316            }
317        }
318
319        const VALUES: &'static [Color] = &[
320            Color::COLOR_BLACK,
321            Color::COLOR_BLUE,
322            Color::COLOR_GREEN,
323            Color::COLOR_CYAN,
324            Color::COLOR_RED,
325            Color::COLOR_MAGENTA,
326            Color::COLOR_BROWN,
327            Color::COLOR_GREY,
328            Color::COLOR_DARKGREY,
329            Color::COLOR_LIGHTBLUE,
330            Color::COLOR_LIGHTGREEN,
331            Color::COLOR_LIGHTCYAN,
332            Color::COLOR_LIGHTRED,
333            Color::COLOR_LIGHTMAGENTA,
334            Color::COLOR_YELLOW,
335            Color::COLOR_WHITE,
336        ];
337    }
338
339    impl ::protobuf::EnumFull for Color {
340        fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
341            static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
342            descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("CoreTextFragment.Color").unwrap()).clone()
343        }
344
345        fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
346            let index = *self as usize;
347            Self::enum_descriptor().value_by_index(index)
348        }
349    }
350
351    impl ::std::default::Default for Color {
352        fn default() -> Self {
353            Color::COLOR_BLACK
354        }
355    }
356
357    impl Color {
358        pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
359            ::protobuf::reflect::GeneratedEnumDescriptorData::new::<Color>("CoreTextFragment.Color")
360        }
361    }
362}
363
364// @@protoc_insertion_point(message:dfproto.CoreTextNotification)
365#[derive(PartialEq,Clone,Default,Debug)]
366pub struct CoreTextNotification {
367    // message fields
368    // @@protoc_insertion_point(field:dfproto.CoreTextNotification.fragments)
369    pub fragments: ::std::vec::Vec<CoreTextFragment>,
370    // special fields
371    // @@protoc_insertion_point(special_field:dfproto.CoreTextNotification.special_fields)
372    pub special_fields: ::protobuf::SpecialFields,
373}
374
375impl<'a> ::std::default::Default for &'a CoreTextNotification {
376    fn default() -> &'a CoreTextNotification {
377        <CoreTextNotification as ::protobuf::Message>::default_instance()
378    }
379}
380
381impl CoreTextNotification {
382    pub fn new() -> CoreTextNotification {
383        ::std::default::Default::default()
384    }
385
386    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
387        let mut fields = ::std::vec::Vec::with_capacity(1);
388        let mut oneofs = ::std::vec::Vec::with_capacity(0);
389        fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
390            "fragments",
391            |m: &CoreTextNotification| { &m.fragments },
392            |m: &mut CoreTextNotification| { &mut m.fragments },
393        ));
394        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CoreTextNotification>(
395            "CoreTextNotification",
396            fields,
397            oneofs,
398        )
399    }
400}
401
402impl ::protobuf::Message for CoreTextNotification {
403    const NAME: &'static str = "CoreTextNotification";
404
405    fn is_initialized(&self) -> bool {
406        for v in &self.fragments {
407            if !v.is_initialized() {
408                return false;
409            }
410        };
411        true
412    }
413
414    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
415        while let Some(tag) = is.read_raw_tag_or_eof()? {
416            match tag {
417                10 => {
418                    self.fragments.push(is.read_message()?);
419                },
420                tag => {
421                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
422                },
423            };
424        }
425        ::std::result::Result::Ok(())
426    }
427
428    // Compute sizes of nested messages
429    #[allow(unused_variables)]
430    fn compute_size(&self) -> u64 {
431        let mut my_size = 0;
432        for value in &self.fragments {
433            let len = value.compute_size();
434            my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
435        };
436        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
437        self.special_fields.cached_size().set(my_size as u32);
438        my_size
439    }
440
441    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
442        for v in &self.fragments {
443            ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
444        };
445        os.write_unknown_fields(self.special_fields.unknown_fields())?;
446        ::std::result::Result::Ok(())
447    }
448
449    fn special_fields(&self) -> &::protobuf::SpecialFields {
450        &self.special_fields
451    }
452
453    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
454        &mut self.special_fields
455    }
456
457    fn new() -> CoreTextNotification {
458        CoreTextNotification::new()
459    }
460
461    fn clear(&mut self) {
462        self.fragments.clear();
463        self.special_fields.clear();
464    }
465
466    fn default_instance() -> &'static CoreTextNotification {
467        static instance: CoreTextNotification = CoreTextNotification {
468            fragments: ::std::vec::Vec::new(),
469            special_fields: ::protobuf::SpecialFields::new(),
470        };
471        &instance
472    }
473}
474
475impl ::protobuf::MessageFull for CoreTextNotification {
476    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
477        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
478        descriptor.get(|| file_descriptor().message_by_package_relative_name("CoreTextNotification").unwrap()).clone()
479    }
480}
481
482impl ::std::fmt::Display for CoreTextNotification {
483    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
484        ::protobuf::text_format::fmt(self, f)
485    }
486}
487
488impl ::protobuf::reflect::ProtobufValue for CoreTextNotification {
489    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
490}
491
492// @@protoc_insertion_point(message:dfproto.CoreErrorNotification)
493#[derive(PartialEq,Clone,Default,Debug)]
494pub struct CoreErrorNotification {
495    // message fields
496    // @@protoc_insertion_point(field:dfproto.CoreErrorNotification.code)
497    pub code: ::std::option::Option<::protobuf::EnumOrUnknown<core_error_notification::ErrorCode>>,
498    // special fields
499    // @@protoc_insertion_point(special_field:dfproto.CoreErrorNotification.special_fields)
500    pub special_fields: ::protobuf::SpecialFields,
501}
502
503impl<'a> ::std::default::Default for &'a CoreErrorNotification {
504    fn default() -> &'a CoreErrorNotification {
505        <CoreErrorNotification as ::protobuf::Message>::default_instance()
506    }
507}
508
509impl CoreErrorNotification {
510    pub fn new() -> CoreErrorNotification {
511        ::std::default::Default::default()
512    }
513
514    // required .dfproto.CoreErrorNotification.ErrorCode code = 1;
515
516    pub fn code(&self) -> core_error_notification::ErrorCode {
517        match self.code {
518            Some(e) => e.enum_value_or(core_error_notification::ErrorCode::CR_LINK_FAILURE),
519            None => core_error_notification::ErrorCode::CR_LINK_FAILURE,
520        }
521    }
522
523    pub fn clear_code(&mut self) {
524        self.code = ::std::option::Option::None;
525    }
526
527    pub fn has_code(&self) -> bool {
528        self.code.is_some()
529    }
530
531    // Param is passed by value, moved
532    pub fn set_code(&mut self, v: core_error_notification::ErrorCode) {
533        self.code = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
534    }
535
536    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
537        let mut fields = ::std::vec::Vec::with_capacity(1);
538        let mut oneofs = ::std::vec::Vec::with_capacity(0);
539        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
540            "code",
541            |m: &CoreErrorNotification| { &m.code },
542            |m: &mut CoreErrorNotification| { &mut m.code },
543        ));
544        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CoreErrorNotification>(
545            "CoreErrorNotification",
546            fields,
547            oneofs,
548        )
549    }
550}
551
552impl ::protobuf::Message for CoreErrorNotification {
553    const NAME: &'static str = "CoreErrorNotification";
554
555    fn is_initialized(&self) -> bool {
556        if self.code.is_none() {
557            return false;
558        }
559        true
560    }
561
562    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
563        while let Some(tag) = is.read_raw_tag_or_eof()? {
564            match tag {
565                8 => {
566                    self.code = ::std::option::Option::Some(is.read_enum_or_unknown()?);
567                },
568                tag => {
569                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
570                },
571            };
572        }
573        ::std::result::Result::Ok(())
574    }
575
576    // Compute sizes of nested messages
577    #[allow(unused_variables)]
578    fn compute_size(&self) -> u64 {
579        let mut my_size = 0;
580        if let Some(v) = self.code {
581            my_size += ::protobuf::rt::int32_size(1, v.value());
582        }
583        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
584        self.special_fields.cached_size().set(my_size as u32);
585        my_size
586    }
587
588    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
589        if let Some(v) = self.code {
590            os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
591        }
592        os.write_unknown_fields(self.special_fields.unknown_fields())?;
593        ::std::result::Result::Ok(())
594    }
595
596    fn special_fields(&self) -> &::protobuf::SpecialFields {
597        &self.special_fields
598    }
599
600    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
601        &mut self.special_fields
602    }
603
604    fn new() -> CoreErrorNotification {
605        CoreErrorNotification::new()
606    }
607
608    fn clear(&mut self) {
609        self.code = ::std::option::Option::None;
610        self.special_fields.clear();
611    }
612
613    fn default_instance() -> &'static CoreErrorNotification {
614        static instance: CoreErrorNotification = CoreErrorNotification {
615            code: ::std::option::Option::None,
616            special_fields: ::protobuf::SpecialFields::new(),
617        };
618        &instance
619    }
620}
621
622impl ::protobuf::MessageFull for CoreErrorNotification {
623    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
624        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
625        descriptor.get(|| file_descriptor().message_by_package_relative_name("CoreErrorNotification").unwrap()).clone()
626    }
627}
628
629impl ::std::fmt::Display for CoreErrorNotification {
630    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
631        ::protobuf::text_format::fmt(self, f)
632    }
633}
634
635impl ::protobuf::reflect::ProtobufValue for CoreErrorNotification {
636    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
637}
638
639/// Nested message and enums of message `CoreErrorNotification`
640pub mod core_error_notification {
641    #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
642    // @@protoc_insertion_point(enum:dfproto.CoreErrorNotification.ErrorCode)
643    pub enum ErrorCode {
644        // @@protoc_insertion_point(enum_value:dfproto.CoreErrorNotification.ErrorCode.CR_LINK_FAILURE)
645        CR_LINK_FAILURE = -3,
646        // @@protoc_insertion_point(enum_value:dfproto.CoreErrorNotification.ErrorCode.CR_WOULD_BREAK)
647        CR_WOULD_BREAK = -2,
648        // @@protoc_insertion_point(enum_value:dfproto.CoreErrorNotification.ErrorCode.CR_NOT_IMPLEMENTED)
649        CR_NOT_IMPLEMENTED = -1,
650        // @@protoc_insertion_point(enum_value:dfproto.CoreErrorNotification.ErrorCode.CR_OK)
651        CR_OK = 0,
652        // @@protoc_insertion_point(enum_value:dfproto.CoreErrorNotification.ErrorCode.CR_FAILURE)
653        CR_FAILURE = 1,
654        // @@protoc_insertion_point(enum_value:dfproto.CoreErrorNotification.ErrorCode.CR_WRONG_USAGE)
655        CR_WRONG_USAGE = 2,
656        // @@protoc_insertion_point(enum_value:dfproto.CoreErrorNotification.ErrorCode.CR_NOT_FOUND)
657        CR_NOT_FOUND = 3,
658    }
659
660    impl ::protobuf::Enum for ErrorCode {
661        const NAME: &'static str = "ErrorCode";
662
663        fn value(&self) -> i32 {
664            *self as i32
665        }
666
667        fn from_i32(value: i32) -> ::std::option::Option<ErrorCode> {
668            match value {
669                -3 => ::std::option::Option::Some(ErrorCode::CR_LINK_FAILURE),
670                -2 => ::std::option::Option::Some(ErrorCode::CR_WOULD_BREAK),
671                -1 => ::std::option::Option::Some(ErrorCode::CR_NOT_IMPLEMENTED),
672                0 => ::std::option::Option::Some(ErrorCode::CR_OK),
673                1 => ::std::option::Option::Some(ErrorCode::CR_FAILURE),
674                2 => ::std::option::Option::Some(ErrorCode::CR_WRONG_USAGE),
675                3 => ::std::option::Option::Some(ErrorCode::CR_NOT_FOUND),
676                _ => ::std::option::Option::None
677            }
678        }
679
680        fn from_str(str: &str) -> ::std::option::Option<ErrorCode> {
681            match str {
682                "CR_LINK_FAILURE" => ::std::option::Option::Some(ErrorCode::CR_LINK_FAILURE),
683                "CR_WOULD_BREAK" => ::std::option::Option::Some(ErrorCode::CR_WOULD_BREAK),
684                "CR_NOT_IMPLEMENTED" => ::std::option::Option::Some(ErrorCode::CR_NOT_IMPLEMENTED),
685                "CR_OK" => ::std::option::Option::Some(ErrorCode::CR_OK),
686                "CR_FAILURE" => ::std::option::Option::Some(ErrorCode::CR_FAILURE),
687                "CR_WRONG_USAGE" => ::std::option::Option::Some(ErrorCode::CR_WRONG_USAGE),
688                "CR_NOT_FOUND" => ::std::option::Option::Some(ErrorCode::CR_NOT_FOUND),
689                _ => ::std::option::Option::None
690            }
691        }
692
693        const VALUES: &'static [ErrorCode] = &[
694            ErrorCode::CR_LINK_FAILURE,
695            ErrorCode::CR_WOULD_BREAK,
696            ErrorCode::CR_NOT_IMPLEMENTED,
697            ErrorCode::CR_OK,
698            ErrorCode::CR_FAILURE,
699            ErrorCode::CR_WRONG_USAGE,
700            ErrorCode::CR_NOT_FOUND,
701        ];
702    }
703
704    impl ::protobuf::EnumFull for ErrorCode {
705        fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
706            static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
707            descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("CoreErrorNotification.ErrorCode").unwrap()).clone()
708        }
709
710        fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
711            let index = match self {
712                ErrorCode::CR_LINK_FAILURE => 0,
713                ErrorCode::CR_WOULD_BREAK => 1,
714                ErrorCode::CR_NOT_IMPLEMENTED => 2,
715                ErrorCode::CR_OK => 3,
716                ErrorCode::CR_FAILURE => 4,
717                ErrorCode::CR_WRONG_USAGE => 5,
718                ErrorCode::CR_NOT_FOUND => 6,
719            };
720            Self::enum_descriptor().value_by_index(index)
721        }
722    }
723
724    // Note, `Default` is implemented although default value is not 0
725    impl ::std::default::Default for ErrorCode {
726        fn default() -> Self {
727            ErrorCode::CR_LINK_FAILURE
728        }
729    }
730
731    impl ErrorCode {
732        pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
733            ::protobuf::reflect::GeneratedEnumDescriptorData::new::<ErrorCode>("CoreErrorNotification.ErrorCode")
734        }
735    }
736}
737
738// @@protoc_insertion_point(message:dfproto.EmptyMessage)
739#[derive(PartialEq,Clone,Default,Debug)]
740pub struct EmptyMessage {
741    // special fields
742    // @@protoc_insertion_point(special_field:dfproto.EmptyMessage.special_fields)
743    pub special_fields: ::protobuf::SpecialFields,
744}
745
746impl<'a> ::std::default::Default for &'a EmptyMessage {
747    fn default() -> &'a EmptyMessage {
748        <EmptyMessage as ::protobuf::Message>::default_instance()
749    }
750}
751
752impl EmptyMessage {
753    pub fn new() -> EmptyMessage {
754        ::std::default::Default::default()
755    }
756
757    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
758        let mut fields = ::std::vec::Vec::with_capacity(0);
759        let mut oneofs = ::std::vec::Vec::with_capacity(0);
760        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<EmptyMessage>(
761            "EmptyMessage",
762            fields,
763            oneofs,
764        )
765    }
766}
767
768impl ::protobuf::Message for EmptyMessage {
769    const NAME: &'static str = "EmptyMessage";
770
771    fn is_initialized(&self) -> bool {
772        true
773    }
774
775    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
776        while let Some(tag) = is.read_raw_tag_or_eof()? {
777            match tag {
778                tag => {
779                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
780                },
781            };
782        }
783        ::std::result::Result::Ok(())
784    }
785
786    // Compute sizes of nested messages
787    #[allow(unused_variables)]
788    fn compute_size(&self) -> u64 {
789        let mut my_size = 0;
790        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
791        self.special_fields.cached_size().set(my_size as u32);
792        my_size
793    }
794
795    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
796        os.write_unknown_fields(self.special_fields.unknown_fields())?;
797        ::std::result::Result::Ok(())
798    }
799
800    fn special_fields(&self) -> &::protobuf::SpecialFields {
801        &self.special_fields
802    }
803
804    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
805        &mut self.special_fields
806    }
807
808    fn new() -> EmptyMessage {
809        EmptyMessage::new()
810    }
811
812    fn clear(&mut self) {
813        self.special_fields.clear();
814    }
815
816    fn default_instance() -> &'static EmptyMessage {
817        static instance: EmptyMessage = EmptyMessage {
818            special_fields: ::protobuf::SpecialFields::new(),
819        };
820        &instance
821    }
822}
823
824impl ::protobuf::MessageFull for EmptyMessage {
825    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
826        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
827        descriptor.get(|| file_descriptor().message_by_package_relative_name("EmptyMessage").unwrap()).clone()
828    }
829}
830
831impl ::std::fmt::Display for EmptyMessage {
832    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
833        ::protobuf::text_format::fmt(self, f)
834    }
835}
836
837impl ::protobuf::reflect::ProtobufValue for EmptyMessage {
838    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
839}
840
841// @@protoc_insertion_point(message:dfproto.IntMessage)
842#[derive(PartialEq,Clone,Default,Debug)]
843pub struct IntMessage {
844    // message fields
845    // @@protoc_insertion_point(field:dfproto.IntMessage.value)
846    pub value: ::std::option::Option<i32>,
847    // special fields
848    // @@protoc_insertion_point(special_field:dfproto.IntMessage.special_fields)
849    pub special_fields: ::protobuf::SpecialFields,
850}
851
852impl<'a> ::std::default::Default for &'a IntMessage {
853    fn default() -> &'a IntMessage {
854        <IntMessage as ::protobuf::Message>::default_instance()
855    }
856}
857
858impl IntMessage {
859    pub fn new() -> IntMessage {
860        ::std::default::Default::default()
861    }
862
863    // required int32 value = 1;
864
865    pub fn value(&self) -> i32 {
866        self.value.unwrap_or(0)
867    }
868
869    pub fn clear_value(&mut self) {
870        self.value = ::std::option::Option::None;
871    }
872
873    pub fn has_value(&self) -> bool {
874        self.value.is_some()
875    }
876
877    // Param is passed by value, moved
878    pub fn set_value(&mut self, v: i32) {
879        self.value = ::std::option::Option::Some(v);
880    }
881
882    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
883        let mut fields = ::std::vec::Vec::with_capacity(1);
884        let mut oneofs = ::std::vec::Vec::with_capacity(0);
885        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
886            "value",
887            |m: &IntMessage| { &m.value },
888            |m: &mut IntMessage| { &mut m.value },
889        ));
890        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<IntMessage>(
891            "IntMessage",
892            fields,
893            oneofs,
894        )
895    }
896}
897
898impl ::protobuf::Message for IntMessage {
899    const NAME: &'static str = "IntMessage";
900
901    fn is_initialized(&self) -> bool {
902        if self.value.is_none() {
903            return false;
904        }
905        true
906    }
907
908    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
909        while let Some(tag) = is.read_raw_tag_or_eof()? {
910            match tag {
911                8 => {
912                    self.value = ::std::option::Option::Some(is.read_int32()?);
913                },
914                tag => {
915                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
916                },
917            };
918        }
919        ::std::result::Result::Ok(())
920    }
921
922    // Compute sizes of nested messages
923    #[allow(unused_variables)]
924    fn compute_size(&self) -> u64 {
925        let mut my_size = 0;
926        if let Some(v) = self.value {
927            my_size += ::protobuf::rt::int32_size(1, v);
928        }
929        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
930        self.special_fields.cached_size().set(my_size as u32);
931        my_size
932    }
933
934    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
935        if let Some(v) = self.value {
936            os.write_int32(1, v)?;
937        }
938        os.write_unknown_fields(self.special_fields.unknown_fields())?;
939        ::std::result::Result::Ok(())
940    }
941
942    fn special_fields(&self) -> &::protobuf::SpecialFields {
943        &self.special_fields
944    }
945
946    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
947        &mut self.special_fields
948    }
949
950    fn new() -> IntMessage {
951        IntMessage::new()
952    }
953
954    fn clear(&mut self) {
955        self.value = ::std::option::Option::None;
956        self.special_fields.clear();
957    }
958
959    fn default_instance() -> &'static IntMessage {
960        static instance: IntMessage = IntMessage {
961            value: ::std::option::Option::None,
962            special_fields: ::protobuf::SpecialFields::new(),
963        };
964        &instance
965    }
966}
967
968impl ::protobuf::MessageFull for IntMessage {
969    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
970        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
971        descriptor.get(|| file_descriptor().message_by_package_relative_name("IntMessage").unwrap()).clone()
972    }
973}
974
975impl ::std::fmt::Display for IntMessage {
976    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
977        ::protobuf::text_format::fmt(self, f)
978    }
979}
980
981impl ::protobuf::reflect::ProtobufValue for IntMessage {
982    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
983}
984
985// @@protoc_insertion_point(message:dfproto.IntListMessage)
986#[derive(PartialEq,Clone,Default,Debug)]
987pub struct IntListMessage {
988    // message fields
989    // @@protoc_insertion_point(field:dfproto.IntListMessage.value)
990    pub value: ::std::vec::Vec<i32>,
991    // special fields
992    // @@protoc_insertion_point(special_field:dfproto.IntListMessage.special_fields)
993    pub special_fields: ::protobuf::SpecialFields,
994}
995
996impl<'a> ::std::default::Default for &'a IntListMessage {
997    fn default() -> &'a IntListMessage {
998        <IntListMessage as ::protobuf::Message>::default_instance()
999    }
1000}
1001
1002impl IntListMessage {
1003    pub fn new() -> IntListMessage {
1004        ::std::default::Default::default()
1005    }
1006
1007    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1008        let mut fields = ::std::vec::Vec::with_capacity(1);
1009        let mut oneofs = ::std::vec::Vec::with_capacity(0);
1010        fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1011            "value",
1012            |m: &IntListMessage| { &m.value },
1013            |m: &mut IntListMessage| { &mut m.value },
1014        ));
1015        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<IntListMessage>(
1016            "IntListMessage",
1017            fields,
1018            oneofs,
1019        )
1020    }
1021}
1022
1023impl ::protobuf::Message for IntListMessage {
1024    const NAME: &'static str = "IntListMessage";
1025
1026    fn is_initialized(&self) -> bool {
1027        true
1028    }
1029
1030    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1031        while let Some(tag) = is.read_raw_tag_or_eof()? {
1032            match tag {
1033                10 => {
1034                    is.read_repeated_packed_int32_into(&mut self.value)?;
1035                },
1036                8 => {
1037                    self.value.push(is.read_int32()?);
1038                },
1039                tag => {
1040                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1041                },
1042            };
1043        }
1044        ::std::result::Result::Ok(())
1045    }
1046
1047    // Compute sizes of nested messages
1048    #[allow(unused_variables)]
1049    fn compute_size(&self) -> u64 {
1050        let mut my_size = 0;
1051        for value in &self.value {
1052            my_size += ::protobuf::rt::int32_size(1, *value);
1053        };
1054        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1055        self.special_fields.cached_size().set(my_size as u32);
1056        my_size
1057    }
1058
1059    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1060        for v in &self.value {
1061            os.write_int32(1, *v)?;
1062        };
1063        os.write_unknown_fields(self.special_fields.unknown_fields())?;
1064        ::std::result::Result::Ok(())
1065    }
1066
1067    fn special_fields(&self) -> &::protobuf::SpecialFields {
1068        &self.special_fields
1069    }
1070
1071    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1072        &mut self.special_fields
1073    }
1074
1075    fn new() -> IntListMessage {
1076        IntListMessage::new()
1077    }
1078
1079    fn clear(&mut self) {
1080        self.value.clear();
1081        self.special_fields.clear();
1082    }
1083
1084    fn default_instance() -> &'static IntListMessage {
1085        static instance: IntListMessage = IntListMessage {
1086            value: ::std::vec::Vec::new(),
1087            special_fields: ::protobuf::SpecialFields::new(),
1088        };
1089        &instance
1090    }
1091}
1092
1093impl ::protobuf::MessageFull for IntListMessage {
1094    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1095        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1096        descriptor.get(|| file_descriptor().message_by_package_relative_name("IntListMessage").unwrap()).clone()
1097    }
1098}
1099
1100impl ::std::fmt::Display for IntListMessage {
1101    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1102        ::protobuf::text_format::fmt(self, f)
1103    }
1104}
1105
1106impl ::protobuf::reflect::ProtobufValue for IntListMessage {
1107    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1108}
1109
1110// @@protoc_insertion_point(message:dfproto.StringMessage)
1111#[derive(PartialEq,Clone,Default,Debug)]
1112pub struct StringMessage {
1113    // message fields
1114    // @@protoc_insertion_point(field:dfproto.StringMessage.value)
1115    pub value: ::std::option::Option<::std::string::String>,
1116    // special fields
1117    // @@protoc_insertion_point(special_field:dfproto.StringMessage.special_fields)
1118    pub special_fields: ::protobuf::SpecialFields,
1119}
1120
1121impl<'a> ::std::default::Default for &'a StringMessage {
1122    fn default() -> &'a StringMessage {
1123        <StringMessage as ::protobuf::Message>::default_instance()
1124    }
1125}
1126
1127impl StringMessage {
1128    pub fn new() -> StringMessage {
1129        ::std::default::Default::default()
1130    }
1131
1132    // required string value = 1;
1133
1134    pub fn value(&self) -> &str {
1135        match self.value.as_ref() {
1136            Some(v) => v,
1137            None => "",
1138        }
1139    }
1140
1141    pub fn clear_value(&mut self) {
1142        self.value = ::std::option::Option::None;
1143    }
1144
1145    pub fn has_value(&self) -> bool {
1146        self.value.is_some()
1147    }
1148
1149    // Param is passed by value, moved
1150    pub fn set_value(&mut self, v: ::std::string::String) {
1151        self.value = ::std::option::Option::Some(v);
1152    }
1153
1154    // Mutable pointer to the field.
1155    // If field is not initialized, it is initialized with default value first.
1156    pub fn mut_value(&mut self) -> &mut ::std::string::String {
1157        if self.value.is_none() {
1158            self.value = ::std::option::Option::Some(::std::string::String::new());
1159        }
1160        self.value.as_mut().unwrap()
1161    }
1162
1163    // Take field
1164    pub fn take_value(&mut self) -> ::std::string::String {
1165        self.value.take().unwrap_or_else(|| ::std::string::String::new())
1166    }
1167
1168    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1169        let mut fields = ::std::vec::Vec::with_capacity(1);
1170        let mut oneofs = ::std::vec::Vec::with_capacity(0);
1171        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1172            "value",
1173            |m: &StringMessage| { &m.value },
1174            |m: &mut StringMessage| { &mut m.value },
1175        ));
1176        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<StringMessage>(
1177            "StringMessage",
1178            fields,
1179            oneofs,
1180        )
1181    }
1182}
1183
1184impl ::protobuf::Message for StringMessage {
1185    const NAME: &'static str = "StringMessage";
1186
1187    fn is_initialized(&self) -> bool {
1188        if self.value.is_none() {
1189            return false;
1190        }
1191        true
1192    }
1193
1194    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1195        while let Some(tag) = is.read_raw_tag_or_eof()? {
1196            match tag {
1197                10 => {
1198                    self.value = ::std::option::Option::Some(is.read_string()?);
1199                },
1200                tag => {
1201                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1202                },
1203            };
1204        }
1205        ::std::result::Result::Ok(())
1206    }
1207
1208    // Compute sizes of nested messages
1209    #[allow(unused_variables)]
1210    fn compute_size(&self) -> u64 {
1211        let mut my_size = 0;
1212        if let Some(v) = self.value.as_ref() {
1213            my_size += ::protobuf::rt::string_size(1, &v);
1214        }
1215        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1216        self.special_fields.cached_size().set(my_size as u32);
1217        my_size
1218    }
1219
1220    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1221        if let Some(v) = self.value.as_ref() {
1222            os.write_string(1, v)?;
1223        }
1224        os.write_unknown_fields(self.special_fields.unknown_fields())?;
1225        ::std::result::Result::Ok(())
1226    }
1227
1228    fn special_fields(&self) -> &::protobuf::SpecialFields {
1229        &self.special_fields
1230    }
1231
1232    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1233        &mut self.special_fields
1234    }
1235
1236    fn new() -> StringMessage {
1237        StringMessage::new()
1238    }
1239
1240    fn clear(&mut self) {
1241        self.value = ::std::option::Option::None;
1242        self.special_fields.clear();
1243    }
1244
1245    fn default_instance() -> &'static StringMessage {
1246        static instance: StringMessage = StringMessage {
1247            value: ::std::option::Option::None,
1248            special_fields: ::protobuf::SpecialFields::new(),
1249        };
1250        &instance
1251    }
1252}
1253
1254impl ::protobuf::MessageFull for StringMessage {
1255    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1256        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1257        descriptor.get(|| file_descriptor().message_by_package_relative_name("StringMessage").unwrap()).clone()
1258    }
1259}
1260
1261impl ::std::fmt::Display for StringMessage {
1262    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1263        ::protobuf::text_format::fmt(self, f)
1264    }
1265}
1266
1267impl ::protobuf::reflect::ProtobufValue for StringMessage {
1268    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1269}
1270
1271// @@protoc_insertion_point(message:dfproto.StringListMessage)
1272#[derive(PartialEq,Clone,Default,Debug)]
1273pub struct StringListMessage {
1274    // message fields
1275    // @@protoc_insertion_point(field:dfproto.StringListMessage.value)
1276    pub value: ::std::vec::Vec<::std::string::String>,
1277    // special fields
1278    // @@protoc_insertion_point(special_field:dfproto.StringListMessage.special_fields)
1279    pub special_fields: ::protobuf::SpecialFields,
1280}
1281
1282impl<'a> ::std::default::Default for &'a StringListMessage {
1283    fn default() -> &'a StringListMessage {
1284        <StringListMessage as ::protobuf::Message>::default_instance()
1285    }
1286}
1287
1288impl StringListMessage {
1289    pub fn new() -> StringListMessage {
1290        ::std::default::Default::default()
1291    }
1292
1293    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1294        let mut fields = ::std::vec::Vec::with_capacity(1);
1295        let mut oneofs = ::std::vec::Vec::with_capacity(0);
1296        fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1297            "value",
1298            |m: &StringListMessage| { &m.value },
1299            |m: &mut StringListMessage| { &mut m.value },
1300        ));
1301        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<StringListMessage>(
1302            "StringListMessage",
1303            fields,
1304            oneofs,
1305        )
1306    }
1307}
1308
1309impl ::protobuf::Message for StringListMessage {
1310    const NAME: &'static str = "StringListMessage";
1311
1312    fn is_initialized(&self) -> bool {
1313        true
1314    }
1315
1316    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1317        while let Some(tag) = is.read_raw_tag_or_eof()? {
1318            match tag {
1319                10 => {
1320                    self.value.push(is.read_string()?);
1321                },
1322                tag => {
1323                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1324                },
1325            };
1326        }
1327        ::std::result::Result::Ok(())
1328    }
1329
1330    // Compute sizes of nested messages
1331    #[allow(unused_variables)]
1332    fn compute_size(&self) -> u64 {
1333        let mut my_size = 0;
1334        for value in &self.value {
1335            my_size += ::protobuf::rt::string_size(1, &value);
1336        };
1337        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1338        self.special_fields.cached_size().set(my_size as u32);
1339        my_size
1340    }
1341
1342    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1343        for v in &self.value {
1344            os.write_string(1, &v)?;
1345        };
1346        os.write_unknown_fields(self.special_fields.unknown_fields())?;
1347        ::std::result::Result::Ok(())
1348    }
1349
1350    fn special_fields(&self) -> &::protobuf::SpecialFields {
1351        &self.special_fields
1352    }
1353
1354    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1355        &mut self.special_fields
1356    }
1357
1358    fn new() -> StringListMessage {
1359        StringListMessage::new()
1360    }
1361
1362    fn clear(&mut self) {
1363        self.value.clear();
1364        self.special_fields.clear();
1365    }
1366
1367    fn default_instance() -> &'static StringListMessage {
1368        static instance: StringListMessage = StringListMessage {
1369            value: ::std::vec::Vec::new(),
1370            special_fields: ::protobuf::SpecialFields::new(),
1371        };
1372        &instance
1373    }
1374}
1375
1376impl ::protobuf::MessageFull for StringListMessage {
1377    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1378        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1379        descriptor.get(|| file_descriptor().message_by_package_relative_name("StringListMessage").unwrap()).clone()
1380    }
1381}
1382
1383impl ::std::fmt::Display for StringListMessage {
1384    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1385        ::protobuf::text_format::fmt(self, f)
1386    }
1387}
1388
1389impl ::protobuf::reflect::ProtobufValue for StringListMessage {
1390    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1391}
1392
1393// @@protoc_insertion_point(message:dfproto.CoreBindRequest)
1394#[derive(PartialEq,Clone,Default,Debug)]
1395pub struct CoreBindRequest {
1396    // message fields
1397    // @@protoc_insertion_point(field:dfproto.CoreBindRequest.method)
1398    pub method: ::std::option::Option<::std::string::String>,
1399    // @@protoc_insertion_point(field:dfproto.CoreBindRequest.input_msg)
1400    pub input_msg: ::std::option::Option<::std::string::String>,
1401    // @@protoc_insertion_point(field:dfproto.CoreBindRequest.output_msg)
1402    pub output_msg: ::std::option::Option<::std::string::String>,
1403    // @@protoc_insertion_point(field:dfproto.CoreBindRequest.plugin)
1404    pub plugin: ::std::option::Option<::std::string::String>,
1405    // special fields
1406    // @@protoc_insertion_point(special_field:dfproto.CoreBindRequest.special_fields)
1407    pub special_fields: ::protobuf::SpecialFields,
1408}
1409
1410impl<'a> ::std::default::Default for &'a CoreBindRequest {
1411    fn default() -> &'a CoreBindRequest {
1412        <CoreBindRequest as ::protobuf::Message>::default_instance()
1413    }
1414}
1415
1416impl CoreBindRequest {
1417    pub fn new() -> CoreBindRequest {
1418        ::std::default::Default::default()
1419    }
1420
1421    // required string method = 1;
1422
1423    pub fn method(&self) -> &str {
1424        match self.method.as_ref() {
1425            Some(v) => v,
1426            None => "",
1427        }
1428    }
1429
1430    pub fn clear_method(&mut self) {
1431        self.method = ::std::option::Option::None;
1432    }
1433
1434    pub fn has_method(&self) -> bool {
1435        self.method.is_some()
1436    }
1437
1438    // Param is passed by value, moved
1439    pub fn set_method(&mut self, v: ::std::string::String) {
1440        self.method = ::std::option::Option::Some(v);
1441    }
1442
1443    // Mutable pointer to the field.
1444    // If field is not initialized, it is initialized with default value first.
1445    pub fn mut_method(&mut self) -> &mut ::std::string::String {
1446        if self.method.is_none() {
1447            self.method = ::std::option::Option::Some(::std::string::String::new());
1448        }
1449        self.method.as_mut().unwrap()
1450    }
1451
1452    // Take field
1453    pub fn take_method(&mut self) -> ::std::string::String {
1454        self.method.take().unwrap_or_else(|| ::std::string::String::new())
1455    }
1456
1457    // required string input_msg = 2;
1458
1459    pub fn input_msg(&self) -> &str {
1460        match self.input_msg.as_ref() {
1461            Some(v) => v,
1462            None => "",
1463        }
1464    }
1465
1466    pub fn clear_input_msg(&mut self) {
1467        self.input_msg = ::std::option::Option::None;
1468    }
1469
1470    pub fn has_input_msg(&self) -> bool {
1471        self.input_msg.is_some()
1472    }
1473
1474    // Param is passed by value, moved
1475    pub fn set_input_msg(&mut self, v: ::std::string::String) {
1476        self.input_msg = ::std::option::Option::Some(v);
1477    }
1478
1479    // Mutable pointer to the field.
1480    // If field is not initialized, it is initialized with default value first.
1481    pub fn mut_input_msg(&mut self) -> &mut ::std::string::String {
1482        if self.input_msg.is_none() {
1483            self.input_msg = ::std::option::Option::Some(::std::string::String::new());
1484        }
1485        self.input_msg.as_mut().unwrap()
1486    }
1487
1488    // Take field
1489    pub fn take_input_msg(&mut self) -> ::std::string::String {
1490        self.input_msg.take().unwrap_or_else(|| ::std::string::String::new())
1491    }
1492
1493    // required string output_msg = 3;
1494
1495    pub fn output_msg(&self) -> &str {
1496        match self.output_msg.as_ref() {
1497            Some(v) => v,
1498            None => "",
1499        }
1500    }
1501
1502    pub fn clear_output_msg(&mut self) {
1503        self.output_msg = ::std::option::Option::None;
1504    }
1505
1506    pub fn has_output_msg(&self) -> bool {
1507        self.output_msg.is_some()
1508    }
1509
1510    // Param is passed by value, moved
1511    pub fn set_output_msg(&mut self, v: ::std::string::String) {
1512        self.output_msg = ::std::option::Option::Some(v);
1513    }
1514
1515    // Mutable pointer to the field.
1516    // If field is not initialized, it is initialized with default value first.
1517    pub fn mut_output_msg(&mut self) -> &mut ::std::string::String {
1518        if self.output_msg.is_none() {
1519            self.output_msg = ::std::option::Option::Some(::std::string::String::new());
1520        }
1521        self.output_msg.as_mut().unwrap()
1522    }
1523
1524    // Take field
1525    pub fn take_output_msg(&mut self) -> ::std::string::String {
1526        self.output_msg.take().unwrap_or_else(|| ::std::string::String::new())
1527    }
1528
1529    // optional string plugin = 4;
1530
1531    pub fn plugin(&self) -> &str {
1532        match self.plugin.as_ref() {
1533            Some(v) => v,
1534            None => "",
1535        }
1536    }
1537
1538    pub fn clear_plugin(&mut self) {
1539        self.plugin = ::std::option::Option::None;
1540    }
1541
1542    pub fn has_plugin(&self) -> bool {
1543        self.plugin.is_some()
1544    }
1545
1546    // Param is passed by value, moved
1547    pub fn set_plugin(&mut self, v: ::std::string::String) {
1548        self.plugin = ::std::option::Option::Some(v);
1549    }
1550
1551    // Mutable pointer to the field.
1552    // If field is not initialized, it is initialized with default value first.
1553    pub fn mut_plugin(&mut self) -> &mut ::std::string::String {
1554        if self.plugin.is_none() {
1555            self.plugin = ::std::option::Option::Some(::std::string::String::new());
1556        }
1557        self.plugin.as_mut().unwrap()
1558    }
1559
1560    // Take field
1561    pub fn take_plugin(&mut self) -> ::std::string::String {
1562        self.plugin.take().unwrap_or_else(|| ::std::string::String::new())
1563    }
1564
1565    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1566        let mut fields = ::std::vec::Vec::with_capacity(4);
1567        let mut oneofs = ::std::vec::Vec::with_capacity(0);
1568        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1569            "method",
1570            |m: &CoreBindRequest| { &m.method },
1571            |m: &mut CoreBindRequest| { &mut m.method },
1572        ));
1573        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1574            "input_msg",
1575            |m: &CoreBindRequest| { &m.input_msg },
1576            |m: &mut CoreBindRequest| { &mut m.input_msg },
1577        ));
1578        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1579            "output_msg",
1580            |m: &CoreBindRequest| { &m.output_msg },
1581            |m: &mut CoreBindRequest| { &mut m.output_msg },
1582        ));
1583        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1584            "plugin",
1585            |m: &CoreBindRequest| { &m.plugin },
1586            |m: &mut CoreBindRequest| { &mut m.plugin },
1587        ));
1588        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CoreBindRequest>(
1589            "CoreBindRequest",
1590            fields,
1591            oneofs,
1592        )
1593    }
1594}
1595
1596impl ::protobuf::Message for CoreBindRequest {
1597    const NAME: &'static str = "CoreBindRequest";
1598
1599    fn is_initialized(&self) -> bool {
1600        if self.method.is_none() {
1601            return false;
1602        }
1603        if self.input_msg.is_none() {
1604            return false;
1605        }
1606        if self.output_msg.is_none() {
1607            return false;
1608        }
1609        true
1610    }
1611
1612    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1613        while let Some(tag) = is.read_raw_tag_or_eof()? {
1614            match tag {
1615                10 => {
1616                    self.method = ::std::option::Option::Some(is.read_string()?);
1617                },
1618                18 => {
1619                    self.input_msg = ::std::option::Option::Some(is.read_string()?);
1620                },
1621                26 => {
1622                    self.output_msg = ::std::option::Option::Some(is.read_string()?);
1623                },
1624                34 => {
1625                    self.plugin = ::std::option::Option::Some(is.read_string()?);
1626                },
1627                tag => {
1628                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1629                },
1630            };
1631        }
1632        ::std::result::Result::Ok(())
1633    }
1634
1635    // Compute sizes of nested messages
1636    #[allow(unused_variables)]
1637    fn compute_size(&self) -> u64 {
1638        let mut my_size = 0;
1639        if let Some(v) = self.method.as_ref() {
1640            my_size += ::protobuf::rt::string_size(1, &v);
1641        }
1642        if let Some(v) = self.input_msg.as_ref() {
1643            my_size += ::protobuf::rt::string_size(2, &v);
1644        }
1645        if let Some(v) = self.output_msg.as_ref() {
1646            my_size += ::protobuf::rt::string_size(3, &v);
1647        }
1648        if let Some(v) = self.plugin.as_ref() {
1649            my_size += ::protobuf::rt::string_size(4, &v);
1650        }
1651        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1652        self.special_fields.cached_size().set(my_size as u32);
1653        my_size
1654    }
1655
1656    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1657        if let Some(v) = self.method.as_ref() {
1658            os.write_string(1, v)?;
1659        }
1660        if let Some(v) = self.input_msg.as_ref() {
1661            os.write_string(2, v)?;
1662        }
1663        if let Some(v) = self.output_msg.as_ref() {
1664            os.write_string(3, v)?;
1665        }
1666        if let Some(v) = self.plugin.as_ref() {
1667            os.write_string(4, v)?;
1668        }
1669        os.write_unknown_fields(self.special_fields.unknown_fields())?;
1670        ::std::result::Result::Ok(())
1671    }
1672
1673    fn special_fields(&self) -> &::protobuf::SpecialFields {
1674        &self.special_fields
1675    }
1676
1677    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1678        &mut self.special_fields
1679    }
1680
1681    fn new() -> CoreBindRequest {
1682        CoreBindRequest::new()
1683    }
1684
1685    fn clear(&mut self) {
1686        self.method = ::std::option::Option::None;
1687        self.input_msg = ::std::option::Option::None;
1688        self.output_msg = ::std::option::Option::None;
1689        self.plugin = ::std::option::Option::None;
1690        self.special_fields.clear();
1691    }
1692
1693    fn default_instance() -> &'static CoreBindRequest {
1694        static instance: CoreBindRequest = CoreBindRequest {
1695            method: ::std::option::Option::None,
1696            input_msg: ::std::option::Option::None,
1697            output_msg: ::std::option::Option::None,
1698            plugin: ::std::option::Option::None,
1699            special_fields: ::protobuf::SpecialFields::new(),
1700        };
1701        &instance
1702    }
1703}
1704
1705impl ::protobuf::MessageFull for CoreBindRequest {
1706    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1707        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1708        descriptor.get(|| file_descriptor().message_by_package_relative_name("CoreBindRequest").unwrap()).clone()
1709    }
1710}
1711
1712impl ::std::fmt::Display for CoreBindRequest {
1713    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1714        ::protobuf::text_format::fmt(self, f)
1715    }
1716}
1717
1718impl ::protobuf::reflect::ProtobufValue for CoreBindRequest {
1719    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1720}
1721
1722// @@protoc_insertion_point(message:dfproto.CoreBindReply)
1723#[derive(PartialEq,Clone,Default,Debug)]
1724pub struct CoreBindReply {
1725    // message fields
1726    // @@protoc_insertion_point(field:dfproto.CoreBindReply.assigned_id)
1727    pub assigned_id: ::std::option::Option<i32>,
1728    // special fields
1729    // @@protoc_insertion_point(special_field:dfproto.CoreBindReply.special_fields)
1730    pub special_fields: ::protobuf::SpecialFields,
1731}
1732
1733impl<'a> ::std::default::Default for &'a CoreBindReply {
1734    fn default() -> &'a CoreBindReply {
1735        <CoreBindReply as ::protobuf::Message>::default_instance()
1736    }
1737}
1738
1739impl CoreBindReply {
1740    pub fn new() -> CoreBindReply {
1741        ::std::default::Default::default()
1742    }
1743
1744    // required int32 assigned_id = 1;
1745
1746    pub fn assigned_id(&self) -> i32 {
1747        self.assigned_id.unwrap_or(0)
1748    }
1749
1750    pub fn clear_assigned_id(&mut self) {
1751        self.assigned_id = ::std::option::Option::None;
1752    }
1753
1754    pub fn has_assigned_id(&self) -> bool {
1755        self.assigned_id.is_some()
1756    }
1757
1758    // Param is passed by value, moved
1759    pub fn set_assigned_id(&mut self, v: i32) {
1760        self.assigned_id = ::std::option::Option::Some(v);
1761    }
1762
1763    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1764        let mut fields = ::std::vec::Vec::with_capacity(1);
1765        let mut oneofs = ::std::vec::Vec::with_capacity(0);
1766        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1767            "assigned_id",
1768            |m: &CoreBindReply| { &m.assigned_id },
1769            |m: &mut CoreBindReply| { &mut m.assigned_id },
1770        ));
1771        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CoreBindReply>(
1772            "CoreBindReply",
1773            fields,
1774            oneofs,
1775        )
1776    }
1777}
1778
1779impl ::protobuf::Message for CoreBindReply {
1780    const NAME: &'static str = "CoreBindReply";
1781
1782    fn is_initialized(&self) -> bool {
1783        if self.assigned_id.is_none() {
1784            return false;
1785        }
1786        true
1787    }
1788
1789    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1790        while let Some(tag) = is.read_raw_tag_or_eof()? {
1791            match tag {
1792                8 => {
1793                    self.assigned_id = ::std::option::Option::Some(is.read_int32()?);
1794                },
1795                tag => {
1796                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1797                },
1798            };
1799        }
1800        ::std::result::Result::Ok(())
1801    }
1802
1803    // Compute sizes of nested messages
1804    #[allow(unused_variables)]
1805    fn compute_size(&self) -> u64 {
1806        let mut my_size = 0;
1807        if let Some(v) = self.assigned_id {
1808            my_size += ::protobuf::rt::int32_size(1, v);
1809        }
1810        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1811        self.special_fields.cached_size().set(my_size as u32);
1812        my_size
1813    }
1814
1815    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1816        if let Some(v) = self.assigned_id {
1817            os.write_int32(1, v)?;
1818        }
1819        os.write_unknown_fields(self.special_fields.unknown_fields())?;
1820        ::std::result::Result::Ok(())
1821    }
1822
1823    fn special_fields(&self) -> &::protobuf::SpecialFields {
1824        &self.special_fields
1825    }
1826
1827    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1828        &mut self.special_fields
1829    }
1830
1831    fn new() -> CoreBindReply {
1832        CoreBindReply::new()
1833    }
1834
1835    fn clear(&mut self) {
1836        self.assigned_id = ::std::option::Option::None;
1837        self.special_fields.clear();
1838    }
1839
1840    fn default_instance() -> &'static CoreBindReply {
1841        static instance: CoreBindReply = CoreBindReply {
1842            assigned_id: ::std::option::Option::None,
1843            special_fields: ::protobuf::SpecialFields::new(),
1844        };
1845        &instance
1846    }
1847}
1848
1849impl ::protobuf::MessageFull for CoreBindReply {
1850    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1851        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1852        descriptor.get(|| file_descriptor().message_by_package_relative_name("CoreBindReply").unwrap()).clone()
1853    }
1854}
1855
1856impl ::std::fmt::Display for CoreBindReply {
1857    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1858        ::protobuf::text_format::fmt(self, f)
1859    }
1860}
1861
1862impl ::protobuf::reflect::ProtobufValue for CoreBindReply {
1863    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1864}
1865
1866// @@protoc_insertion_point(message:dfproto.CoreRunCommandRequest)
1867#[derive(PartialEq,Clone,Default,Debug)]
1868pub struct CoreRunCommandRequest {
1869    // message fields
1870    // @@protoc_insertion_point(field:dfproto.CoreRunCommandRequest.command)
1871    pub command: ::std::option::Option<::std::string::String>,
1872    // @@protoc_insertion_point(field:dfproto.CoreRunCommandRequest.arguments)
1873    pub arguments: ::std::vec::Vec<::std::string::String>,
1874    // special fields
1875    // @@protoc_insertion_point(special_field:dfproto.CoreRunCommandRequest.special_fields)
1876    pub special_fields: ::protobuf::SpecialFields,
1877}
1878
1879impl<'a> ::std::default::Default for &'a CoreRunCommandRequest {
1880    fn default() -> &'a CoreRunCommandRequest {
1881        <CoreRunCommandRequest as ::protobuf::Message>::default_instance()
1882    }
1883}
1884
1885impl CoreRunCommandRequest {
1886    pub fn new() -> CoreRunCommandRequest {
1887        ::std::default::Default::default()
1888    }
1889
1890    // required string command = 1;
1891
1892    pub fn command(&self) -> &str {
1893        match self.command.as_ref() {
1894            Some(v) => v,
1895            None => "",
1896        }
1897    }
1898
1899    pub fn clear_command(&mut self) {
1900        self.command = ::std::option::Option::None;
1901    }
1902
1903    pub fn has_command(&self) -> bool {
1904        self.command.is_some()
1905    }
1906
1907    // Param is passed by value, moved
1908    pub fn set_command(&mut self, v: ::std::string::String) {
1909        self.command = ::std::option::Option::Some(v);
1910    }
1911
1912    // Mutable pointer to the field.
1913    // If field is not initialized, it is initialized with default value first.
1914    pub fn mut_command(&mut self) -> &mut ::std::string::String {
1915        if self.command.is_none() {
1916            self.command = ::std::option::Option::Some(::std::string::String::new());
1917        }
1918        self.command.as_mut().unwrap()
1919    }
1920
1921    // Take field
1922    pub fn take_command(&mut self) -> ::std::string::String {
1923        self.command.take().unwrap_or_else(|| ::std::string::String::new())
1924    }
1925
1926    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1927        let mut fields = ::std::vec::Vec::with_capacity(2);
1928        let mut oneofs = ::std::vec::Vec::with_capacity(0);
1929        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1930            "command",
1931            |m: &CoreRunCommandRequest| { &m.command },
1932            |m: &mut CoreRunCommandRequest| { &mut m.command },
1933        ));
1934        fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1935            "arguments",
1936            |m: &CoreRunCommandRequest| { &m.arguments },
1937            |m: &mut CoreRunCommandRequest| { &mut m.arguments },
1938        ));
1939        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CoreRunCommandRequest>(
1940            "CoreRunCommandRequest",
1941            fields,
1942            oneofs,
1943        )
1944    }
1945}
1946
1947impl ::protobuf::Message for CoreRunCommandRequest {
1948    const NAME: &'static str = "CoreRunCommandRequest";
1949
1950    fn is_initialized(&self) -> bool {
1951        if self.command.is_none() {
1952            return false;
1953        }
1954        true
1955    }
1956
1957    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1958        while let Some(tag) = is.read_raw_tag_or_eof()? {
1959            match tag {
1960                10 => {
1961                    self.command = ::std::option::Option::Some(is.read_string()?);
1962                },
1963                18 => {
1964                    self.arguments.push(is.read_string()?);
1965                },
1966                tag => {
1967                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1968                },
1969            };
1970        }
1971        ::std::result::Result::Ok(())
1972    }
1973
1974    // Compute sizes of nested messages
1975    #[allow(unused_variables)]
1976    fn compute_size(&self) -> u64 {
1977        let mut my_size = 0;
1978        if let Some(v) = self.command.as_ref() {
1979            my_size += ::protobuf::rt::string_size(1, &v);
1980        }
1981        for value in &self.arguments {
1982            my_size += ::protobuf::rt::string_size(2, &value);
1983        };
1984        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1985        self.special_fields.cached_size().set(my_size as u32);
1986        my_size
1987    }
1988
1989    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1990        if let Some(v) = self.command.as_ref() {
1991            os.write_string(1, v)?;
1992        }
1993        for v in &self.arguments {
1994            os.write_string(2, &v)?;
1995        };
1996        os.write_unknown_fields(self.special_fields.unknown_fields())?;
1997        ::std::result::Result::Ok(())
1998    }
1999
2000    fn special_fields(&self) -> &::protobuf::SpecialFields {
2001        &self.special_fields
2002    }
2003
2004    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2005        &mut self.special_fields
2006    }
2007
2008    fn new() -> CoreRunCommandRequest {
2009        CoreRunCommandRequest::new()
2010    }
2011
2012    fn clear(&mut self) {
2013        self.command = ::std::option::Option::None;
2014        self.arguments.clear();
2015        self.special_fields.clear();
2016    }
2017
2018    fn default_instance() -> &'static CoreRunCommandRequest {
2019        static instance: CoreRunCommandRequest = CoreRunCommandRequest {
2020            command: ::std::option::Option::None,
2021            arguments: ::std::vec::Vec::new(),
2022            special_fields: ::protobuf::SpecialFields::new(),
2023        };
2024        &instance
2025    }
2026}
2027
2028impl ::protobuf::MessageFull for CoreRunCommandRequest {
2029    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2030        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2031        descriptor.get(|| file_descriptor().message_by_package_relative_name("CoreRunCommandRequest").unwrap()).clone()
2032    }
2033}
2034
2035impl ::std::fmt::Display for CoreRunCommandRequest {
2036    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2037        ::protobuf::text_format::fmt(self, f)
2038    }
2039}
2040
2041impl ::protobuf::reflect::ProtobufValue for CoreRunCommandRequest {
2042    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2043}
2044
2045// @@protoc_insertion_point(message:dfproto.CoreRunLuaRequest)
2046#[derive(PartialEq,Clone,Default,Debug)]
2047pub struct CoreRunLuaRequest {
2048    // message fields
2049    // @@protoc_insertion_point(field:dfproto.CoreRunLuaRequest.module)
2050    pub module: ::std::option::Option<::std::string::String>,
2051    // @@protoc_insertion_point(field:dfproto.CoreRunLuaRequest.function)
2052    pub function: ::std::option::Option<::std::string::String>,
2053    // @@protoc_insertion_point(field:dfproto.CoreRunLuaRequest.arguments)
2054    pub arguments: ::std::vec::Vec<::std::string::String>,
2055    // special fields
2056    // @@protoc_insertion_point(special_field:dfproto.CoreRunLuaRequest.special_fields)
2057    pub special_fields: ::protobuf::SpecialFields,
2058}
2059
2060impl<'a> ::std::default::Default for &'a CoreRunLuaRequest {
2061    fn default() -> &'a CoreRunLuaRequest {
2062        <CoreRunLuaRequest as ::protobuf::Message>::default_instance()
2063    }
2064}
2065
2066impl CoreRunLuaRequest {
2067    pub fn new() -> CoreRunLuaRequest {
2068        ::std::default::Default::default()
2069    }
2070
2071    // required string module = 1;
2072
2073    pub fn module(&self) -> &str {
2074        match self.module.as_ref() {
2075            Some(v) => v,
2076            None => "",
2077        }
2078    }
2079
2080    pub fn clear_module(&mut self) {
2081        self.module = ::std::option::Option::None;
2082    }
2083
2084    pub fn has_module(&self) -> bool {
2085        self.module.is_some()
2086    }
2087
2088    // Param is passed by value, moved
2089    pub fn set_module(&mut self, v: ::std::string::String) {
2090        self.module = ::std::option::Option::Some(v);
2091    }
2092
2093    // Mutable pointer to the field.
2094    // If field is not initialized, it is initialized with default value first.
2095    pub fn mut_module(&mut self) -> &mut ::std::string::String {
2096        if self.module.is_none() {
2097            self.module = ::std::option::Option::Some(::std::string::String::new());
2098        }
2099        self.module.as_mut().unwrap()
2100    }
2101
2102    // Take field
2103    pub fn take_module(&mut self) -> ::std::string::String {
2104        self.module.take().unwrap_or_else(|| ::std::string::String::new())
2105    }
2106
2107    // required string function = 2;
2108
2109    pub fn function(&self) -> &str {
2110        match self.function.as_ref() {
2111            Some(v) => v,
2112            None => "",
2113        }
2114    }
2115
2116    pub fn clear_function(&mut self) {
2117        self.function = ::std::option::Option::None;
2118    }
2119
2120    pub fn has_function(&self) -> bool {
2121        self.function.is_some()
2122    }
2123
2124    // Param is passed by value, moved
2125    pub fn set_function(&mut self, v: ::std::string::String) {
2126        self.function = ::std::option::Option::Some(v);
2127    }
2128
2129    // Mutable pointer to the field.
2130    // If field is not initialized, it is initialized with default value first.
2131    pub fn mut_function(&mut self) -> &mut ::std::string::String {
2132        if self.function.is_none() {
2133            self.function = ::std::option::Option::Some(::std::string::String::new());
2134        }
2135        self.function.as_mut().unwrap()
2136    }
2137
2138    // Take field
2139    pub fn take_function(&mut self) -> ::std::string::String {
2140        self.function.take().unwrap_or_else(|| ::std::string::String::new())
2141    }
2142
2143    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2144        let mut fields = ::std::vec::Vec::with_capacity(3);
2145        let mut oneofs = ::std::vec::Vec::with_capacity(0);
2146        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
2147            "module",
2148            |m: &CoreRunLuaRequest| { &m.module },
2149            |m: &mut CoreRunLuaRequest| { &mut m.module },
2150        ));
2151        fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
2152            "function",
2153            |m: &CoreRunLuaRequest| { &m.function },
2154            |m: &mut CoreRunLuaRequest| { &mut m.function },
2155        ));
2156        fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
2157            "arguments",
2158            |m: &CoreRunLuaRequest| { &m.arguments },
2159            |m: &mut CoreRunLuaRequest| { &mut m.arguments },
2160        ));
2161        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CoreRunLuaRequest>(
2162            "CoreRunLuaRequest",
2163            fields,
2164            oneofs,
2165        )
2166    }
2167}
2168
2169impl ::protobuf::Message for CoreRunLuaRequest {
2170    const NAME: &'static str = "CoreRunLuaRequest";
2171
2172    fn is_initialized(&self) -> bool {
2173        if self.module.is_none() {
2174            return false;
2175        }
2176        if self.function.is_none() {
2177            return false;
2178        }
2179        true
2180    }
2181
2182    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2183        while let Some(tag) = is.read_raw_tag_or_eof()? {
2184            match tag {
2185                10 => {
2186                    self.module = ::std::option::Option::Some(is.read_string()?);
2187                },
2188                18 => {
2189                    self.function = ::std::option::Option::Some(is.read_string()?);
2190                },
2191                26 => {
2192                    self.arguments.push(is.read_string()?);
2193                },
2194                tag => {
2195                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.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) -> u64 {
2205        let mut my_size = 0;
2206        if let Some(v) = self.module.as_ref() {
2207            my_size += ::protobuf::rt::string_size(1, &v);
2208        }
2209        if let Some(v) = self.function.as_ref() {
2210            my_size += ::protobuf::rt::string_size(2, &v);
2211        }
2212        for value in &self.arguments {
2213            my_size += ::protobuf::rt::string_size(3, &value);
2214        };
2215        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2216        self.special_fields.cached_size().set(my_size as u32);
2217        my_size
2218    }
2219
2220    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2221        if let Some(v) = self.module.as_ref() {
2222            os.write_string(1, v)?;
2223        }
2224        if let Some(v) = self.function.as_ref() {
2225            os.write_string(2, v)?;
2226        }
2227        for v in &self.arguments {
2228            os.write_string(3, &v)?;
2229        };
2230        os.write_unknown_fields(self.special_fields.unknown_fields())?;
2231        ::std::result::Result::Ok(())
2232    }
2233
2234    fn special_fields(&self) -> &::protobuf::SpecialFields {
2235        &self.special_fields
2236    }
2237
2238    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2239        &mut self.special_fields
2240    }
2241
2242    fn new() -> CoreRunLuaRequest {
2243        CoreRunLuaRequest::new()
2244    }
2245
2246    fn clear(&mut self) {
2247        self.module = ::std::option::Option::None;
2248        self.function = ::std::option::Option::None;
2249        self.arguments.clear();
2250        self.special_fields.clear();
2251    }
2252
2253    fn default_instance() -> &'static CoreRunLuaRequest {
2254        static instance: CoreRunLuaRequest = CoreRunLuaRequest {
2255            module: ::std::option::Option::None,
2256            function: ::std::option::Option::None,
2257            arguments: ::std::vec::Vec::new(),
2258            special_fields: ::protobuf::SpecialFields::new(),
2259        };
2260        &instance
2261    }
2262}
2263
2264impl ::protobuf::MessageFull for CoreRunLuaRequest {
2265    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2266        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2267        descriptor.get(|| file_descriptor().message_by_package_relative_name("CoreRunLuaRequest").unwrap()).clone()
2268    }
2269}
2270
2271impl ::std::fmt::Display for CoreRunLuaRequest {
2272    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2273        ::protobuf::text_format::fmt(self, f)
2274    }
2275}
2276
2277impl ::protobuf::reflect::ProtobufValue for CoreRunLuaRequest {
2278    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2279}
2280
2281static file_descriptor_proto_data: &'static [u8] = b"\
2282    \n\x12CoreProtocol.proto\x12\x07dfproto\"\x8f\x03\n\x10CoreTextFragment\
2283    \x12\x12\n\x04text\x18\x01\x20\x02(\tR\x04text\x125\n\x05color\x18\x02\
2284    \x20\x01(\x0e2\x1f.dfproto.CoreTextFragment.ColorR\x05color\"\xaf\x02\n\
2285    \x05Color\x12\x0f\n\x0bCOLOR_BLACK\x10\0\x12\x0e\n\nCOLOR_BLUE\x10\x01\
2286    \x12\x0f\n\x0bCOLOR_GREEN\x10\x02\x12\x0e\n\nCOLOR_CYAN\x10\x03\x12\r\n\
2287    \tCOLOR_RED\x10\x04\x12\x11\n\rCOLOR_MAGENTA\x10\x05\x12\x0f\n\x0bCOLOR_\
2288    BROWN\x10\x06\x12\x0e\n\nCOLOR_GREY\x10\x07\x12\x12\n\x0eCOLOR_DARKGREY\
2289    \x10\x08\x12\x13\n\x0fCOLOR_LIGHTBLUE\x10\t\x12\x14\n\x10COLOR_LIGHTGREE\
2290    N\x10\n\x12\x13\n\x0fCOLOR_LIGHTCYAN\x10\x0b\x12\x12\n\x0eCOLOR_LIGHTRED\
2291    \x10\x0c\x12\x16\n\x12COLOR_LIGHTMAGENTA\x10\r\x12\x10\n\x0cCOLOR_YELLOW\
2292    \x10\x0e\x12\x0f\n\x0bCOLOR_WHITE\x10\x0f\"O\n\x14CoreTextNotification\
2293    \x127\n\tfragments\x18\x01\x20\x03(\x0b2\x19.dfproto.CoreTextFragmentR\t\
2294    fragments\"\x80\x02\n\x15CoreErrorNotification\x12<\n\x04code\x18\x01\
2295    \x20\x02(\x0e2(.dfproto.CoreErrorNotification.ErrorCodeR\x04code\"\xa8\
2296    \x01\n\tErrorCode\x12\x1c\n\x0fCR_LINK_FAILURE\x10\xfd\xff\xff\xff\xff\
2297    \xff\xff\xff\xff\x01\x12\x1b\n\x0eCR_WOULD_BREAK\x10\xfe\xff\xff\xff\xff\
2298    \xff\xff\xff\xff\x01\x12\x1f\n\x12CR_NOT_IMPLEMENTED\x10\xff\xff\xff\xff\
2299    \xff\xff\xff\xff\xff\x01\x12\t\n\x05CR_OK\x10\0\x12\x0e\n\nCR_FAILURE\
2300    \x10\x01\x12\x12\n\x0eCR_WRONG_USAGE\x10\x02\x12\x10\n\x0cCR_NOT_FOUND\
2301    \x10\x03\"\x0e\n\x0cEmptyMessage\"\"\n\nIntMessage\x12\x14\n\x05value\
2302    \x18\x01\x20\x02(\x05R\x05value\"&\n\x0eIntListMessage\x12\x14\n\x05valu\
2303    e\x18\x01\x20\x03(\x05R\x05value\"%\n\rStringMessage\x12\x14\n\x05value\
2304    \x18\x01\x20\x02(\tR\x05value\")\n\x11StringListMessage\x12\x14\n\x05val\
2305    ue\x18\x01\x20\x03(\tR\x05value\"}\n\x0fCoreBindRequest\x12\x16\n\x06met\
2306    hod\x18\x01\x20\x02(\tR\x06method\x12\x1b\n\tinput_msg\x18\x02\x20\x02(\
2307    \tR\x08inputMsg\x12\x1d\n\noutput_msg\x18\x03\x20\x02(\tR\toutputMsg\x12\
2308    \x16\n\x06plugin\x18\x04\x20\x01(\tR\x06plugin\"0\n\rCoreBindReply\x12\
2309    \x1f\n\x0bassigned_id\x18\x01\x20\x02(\x05R\nassignedId\"O\n\x15CoreRunC\
2310    ommandRequest\x12\x18\n\x07command\x18\x01\x20\x02(\tR\x07command\x12\
2311    \x1c\n\targuments\x18\x02\x20\x03(\tR\targuments\"e\n\x11CoreRunLuaReque\
2312    st\x12\x16\n\x06module\x18\x01\x20\x02(\tR\x06module\x12\x1a\n\x08functi\
2313    on\x18\x02\x20\x02(\tR\x08function\x12\x1c\n\targuments\x18\x03\x20\x03(\
2314    \tR\targumentsB\x02H\x03b\x06proto2\
2315";
2316
2317/// `FileDescriptorProto` object which was a source for this generated file
2318fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
2319    static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
2320    file_descriptor_proto_lazy.get(|| {
2321        ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
2322    })
2323}
2324
2325/// `FileDescriptor` object which allows dynamic access to files
2326pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
2327    static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
2328    static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
2329    file_descriptor.get(|| {
2330        let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
2331            let mut deps = ::std::vec::Vec::with_capacity(0);
2332            let mut messages = ::std::vec::Vec::with_capacity(12);
2333            messages.push(CoreTextFragment::generated_message_descriptor_data());
2334            messages.push(CoreTextNotification::generated_message_descriptor_data());
2335            messages.push(CoreErrorNotification::generated_message_descriptor_data());
2336            messages.push(EmptyMessage::generated_message_descriptor_data());
2337            messages.push(IntMessage::generated_message_descriptor_data());
2338            messages.push(IntListMessage::generated_message_descriptor_data());
2339            messages.push(StringMessage::generated_message_descriptor_data());
2340            messages.push(StringListMessage::generated_message_descriptor_data());
2341            messages.push(CoreBindRequest::generated_message_descriptor_data());
2342            messages.push(CoreBindReply::generated_message_descriptor_data());
2343            messages.push(CoreRunCommandRequest::generated_message_descriptor_data());
2344            messages.push(CoreRunLuaRequest::generated_message_descriptor_data());
2345            let mut enums = ::std::vec::Vec::with_capacity(2);
2346            enums.push(core_text_fragment::Color::generated_enum_descriptor_data());
2347            enums.push(core_error_notification::ErrorCode::generated_enum_descriptor_data());
2348            ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
2349                file_descriptor_proto(),
2350                deps,
2351                messages,
2352                enums,
2353            )
2354        });
2355        ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
2356    })
2357}