dfhack_proto/generated/messages/
CoreProtocol.rs

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