1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![cfg_attr(rustfmt, rustfmt_skip)]
9
10#![allow(box_pointers)]
11#![allow(dead_code)]
12#![allow(missing_docs)]
13#![allow(non_camel_case_types)]
14#![allow(non_snake_case)]
15#![allow(non_upper_case_globals)]
16#![allow(trivial_casts)]
17#![allow(unsafe_code)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20use protobuf::Message as Message_imported_for_functions;
23use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
24
25const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_0;
28
29#[derive(PartialEq,Clone,Default)]
30pub struct Message {
31 pub to: u64,
33 pub from: u64,
34 pub data: ::std::vec::Vec<u8>,
35 pub spawn: ::std::string::String,
36 pub spawn_address: u64,
37 pub kill: bool,
38 pub exiting: bool,
39 pub exit: i32,
40 pub your_address: u64,
41 pub parent_address: u64,
42 pub error: i32,
43 pub startup: ::protobuf::SingularPtrField<Startup>,
44 pub unknown_fields: ::protobuf::UnknownFields,
46 pub cached_size: ::protobuf::CachedSize,
47}
48
49impl<'a> ::std::default::Default for &'a Message {
50 fn default() -> &'a Message {
51 <Message as ::protobuf::Message>::default_instance()
52 }
53}
54
55impl Message {
56 pub fn new() -> Message {
57 ::std::default::Default::default()
58 }
59
60 pub fn get_to(&self) -> u64 {
64 self.to
65 }
66 pub fn clear_to(&mut self) {
67 self.to = 0;
68 }
69
70 pub fn set_to(&mut self, v: u64) {
72 self.to = v;
73 }
74
75 pub fn get_from(&self) -> u64 {
79 self.from
80 }
81 pub fn clear_from(&mut self) {
82 self.from = 0;
83 }
84
85 pub fn set_from(&mut self, v: u64) {
87 self.from = v;
88 }
89
90 pub fn get_data(&self) -> &[u8] {
94 &self.data
95 }
96 pub fn clear_data(&mut self) {
97 self.data.clear();
98 }
99
100 pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
102 self.data = v;
103 }
104
105 pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
108 &mut self.data
109 }
110
111 pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
113 ::std::mem::replace(&mut self.data, ::std::vec::Vec::new())
114 }
115
116 pub fn get_spawn(&self) -> &str {
120 &self.spawn
121 }
122 pub fn clear_spawn(&mut self) {
123 self.spawn.clear();
124 }
125
126 pub fn set_spawn(&mut self, v: ::std::string::String) {
128 self.spawn = v;
129 }
130
131 pub fn mut_spawn(&mut self) -> &mut ::std::string::String {
134 &mut self.spawn
135 }
136
137 pub fn take_spawn(&mut self) -> ::std::string::String {
139 ::std::mem::replace(&mut self.spawn, ::std::string::String::new())
140 }
141
142 pub fn get_spawn_address(&self) -> u64 {
146 self.spawn_address
147 }
148 pub fn clear_spawn_address(&mut self) {
149 self.spawn_address = 0;
150 }
151
152 pub fn set_spawn_address(&mut self, v: u64) {
154 self.spawn_address = v;
155 }
156
157 pub fn get_kill(&self) -> bool {
161 self.kill
162 }
163 pub fn clear_kill(&mut self) {
164 self.kill = false;
165 }
166
167 pub fn set_kill(&mut self, v: bool) {
169 self.kill = v;
170 }
171
172 pub fn get_exiting(&self) -> bool {
176 self.exiting
177 }
178 pub fn clear_exiting(&mut self) {
179 self.exiting = false;
180 }
181
182 pub fn set_exiting(&mut self, v: bool) {
184 self.exiting = v;
185 }
186
187 pub fn get_exit(&self) -> i32 {
191 self.exit
192 }
193 pub fn clear_exit(&mut self) {
194 self.exit = 0;
195 }
196
197 pub fn set_exit(&mut self, v: i32) {
199 self.exit = v;
200 }
201
202 pub fn get_your_address(&self) -> u64 {
206 self.your_address
207 }
208 pub fn clear_your_address(&mut self) {
209 self.your_address = 0;
210 }
211
212 pub fn set_your_address(&mut self, v: u64) {
214 self.your_address = v;
215 }
216
217 pub fn get_parent_address(&self) -> u64 {
221 self.parent_address
222 }
223 pub fn clear_parent_address(&mut self) {
224 self.parent_address = 0;
225 }
226
227 pub fn set_parent_address(&mut self, v: u64) {
229 self.parent_address = v;
230 }
231
232 pub fn get_error(&self) -> i32 {
236 self.error
237 }
238 pub fn clear_error(&mut self) {
239 self.error = 0;
240 }
241
242 pub fn set_error(&mut self, v: i32) {
244 self.error = v;
245 }
246
247 pub fn get_startup(&self) -> &Startup {
251 self.startup.as_ref().unwrap_or_else(|| Startup::default_instance())
252 }
253 pub fn clear_startup(&mut self) {
254 self.startup.clear();
255 }
256
257 pub fn has_startup(&self) -> bool {
258 self.startup.is_some()
259 }
260
261 pub fn set_startup(&mut self, v: Startup) {
263 self.startup = ::protobuf::SingularPtrField::some(v);
264 }
265
266 pub fn mut_startup(&mut self) -> &mut Startup {
269 if self.startup.is_none() {
270 self.startup.set_default();
271 }
272 self.startup.as_mut().unwrap()
273 }
274
275 pub fn take_startup(&mut self) -> Startup {
277 self.startup.take().unwrap_or_else(|| Startup::new())
278 }
279}
280
281impl ::protobuf::Message for Message {
282 fn is_initialized(&self) -> bool {
283 for v in &self.startup {
284 if !v.is_initialized() {
285 return false;
286 }
287 };
288 true
289 }
290
291 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
292 while !is.eof()? {
293 let (field_number, wire_type) = is.read_tag_unpack()?;
294 match field_number {
295 1 => {
296 if wire_type != ::protobuf::wire_format::WireTypeVarint {
297 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
298 }
299 let tmp = is.read_uint64()?;
300 self.to = tmp;
301 },
302 2 => {
303 if wire_type != ::protobuf::wire_format::WireTypeVarint {
304 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
305 }
306 let tmp = is.read_uint64()?;
307 self.from = tmp;
308 },
309 3 => {
310 ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?;
311 },
312 4 => {
313 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.spawn)?;
314 },
315 5 => {
316 if wire_type != ::protobuf::wire_format::WireTypeVarint {
317 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
318 }
319 let tmp = is.read_uint64()?;
320 self.spawn_address = tmp;
321 },
322 6 => {
323 if wire_type != ::protobuf::wire_format::WireTypeVarint {
324 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
325 }
326 let tmp = is.read_bool()?;
327 self.kill = tmp;
328 },
329 7 => {
330 if wire_type != ::protobuf::wire_format::WireTypeVarint {
331 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
332 }
333 let tmp = is.read_bool()?;
334 self.exiting = tmp;
335 },
336 8 => {
337 if wire_type != ::protobuf::wire_format::WireTypeVarint {
338 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
339 }
340 let tmp = is.read_int32()?;
341 self.exit = tmp;
342 },
343 9 => {
344 if wire_type != ::protobuf::wire_format::WireTypeVarint {
345 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
346 }
347 let tmp = is.read_uint64()?;
348 self.your_address = tmp;
349 },
350 10 => {
351 if wire_type != ::protobuf::wire_format::WireTypeVarint {
352 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
353 }
354 let tmp = is.read_uint64()?;
355 self.parent_address = tmp;
356 },
357 11 => {
358 if wire_type != ::protobuf::wire_format::WireTypeVarint {
359 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
360 }
361 let tmp = is.read_int32()?;
362 self.error = tmp;
363 },
364 12 => {
365 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.startup)?;
366 },
367 _ => {
368 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
369 },
370 };
371 }
372 ::std::result::Result::Ok(())
373 }
374
375 #[allow(unused_variables)]
377 fn compute_size(&self) -> u32 {
378 let mut my_size = 0;
379 if self.to != 0 {
380 my_size += ::protobuf::rt::value_size(1, self.to, ::protobuf::wire_format::WireTypeVarint);
381 }
382 if self.from != 0 {
383 my_size += ::protobuf::rt::value_size(2, self.from, ::protobuf::wire_format::WireTypeVarint);
384 }
385 if !self.data.is_empty() {
386 my_size += ::protobuf::rt::bytes_size(3, &self.data);
387 }
388 if !self.spawn.is_empty() {
389 my_size += ::protobuf::rt::string_size(4, &self.spawn);
390 }
391 if self.spawn_address != 0 {
392 my_size += ::protobuf::rt::value_size(5, self.spawn_address, ::protobuf::wire_format::WireTypeVarint);
393 }
394 if self.kill != false {
395 my_size += 2;
396 }
397 if self.exiting != false {
398 my_size += 2;
399 }
400 if self.exit != 0 {
401 my_size += ::protobuf::rt::value_size(8, self.exit, ::protobuf::wire_format::WireTypeVarint);
402 }
403 if self.your_address != 0 {
404 my_size += ::protobuf::rt::value_size(9, self.your_address, ::protobuf::wire_format::WireTypeVarint);
405 }
406 if self.parent_address != 0 {
407 my_size += ::protobuf::rt::value_size(10, self.parent_address, ::protobuf::wire_format::WireTypeVarint);
408 }
409 if self.error != 0 {
410 my_size += ::protobuf::rt::value_size(11, self.error, ::protobuf::wire_format::WireTypeVarint);
411 }
412 if let Some(ref v) = self.startup.as_ref() {
413 let len = v.compute_size();
414 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
415 }
416 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
417 self.cached_size.set(my_size);
418 my_size
419 }
420
421 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
422 if self.to != 0 {
423 os.write_uint64(1, self.to)?;
424 }
425 if self.from != 0 {
426 os.write_uint64(2, self.from)?;
427 }
428 if !self.data.is_empty() {
429 os.write_bytes(3, &self.data)?;
430 }
431 if !self.spawn.is_empty() {
432 os.write_string(4, &self.spawn)?;
433 }
434 if self.spawn_address != 0 {
435 os.write_uint64(5, self.spawn_address)?;
436 }
437 if self.kill != false {
438 os.write_bool(6, self.kill)?;
439 }
440 if self.exiting != false {
441 os.write_bool(7, self.exiting)?;
442 }
443 if self.exit != 0 {
444 os.write_int32(8, self.exit)?;
445 }
446 if self.your_address != 0 {
447 os.write_uint64(9, self.your_address)?;
448 }
449 if self.parent_address != 0 {
450 os.write_uint64(10, self.parent_address)?;
451 }
452 if self.error != 0 {
453 os.write_int32(11, self.error)?;
454 }
455 if let Some(ref v) = self.startup.as_ref() {
456 os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?;
457 os.write_raw_varint32(v.get_cached_size())?;
458 v.write_to_with_cached_sizes(os)?;
459 }
460 os.write_unknown_fields(self.get_unknown_fields())?;
461 ::std::result::Result::Ok(())
462 }
463
464 fn get_cached_size(&self) -> u32 {
465 self.cached_size.get()
466 }
467
468 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
469 &self.unknown_fields
470 }
471
472 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
473 &mut self.unknown_fields
474 }
475
476 fn as_any(&self) -> &dyn (::std::any::Any) {
477 self as &dyn (::std::any::Any)
478 }
479 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
480 self as &mut dyn (::std::any::Any)
481 }
482 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
483 self
484 }
485
486 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
487 Self::descriptor_static()
488 }
489
490 fn new() -> Message {
491 Message::new()
492 }
493
494 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
495 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
496 lock: ::protobuf::lazy::ONCE_INIT,
497 ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
498 };
499 unsafe {
500 descriptor.get(|| {
501 let mut fields = ::std::vec::Vec::new();
502 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
503 "to",
504 |m: &Message| { &m.to },
505 |m: &mut Message| { &mut m.to },
506 ));
507 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
508 "from",
509 |m: &Message| { &m.from },
510 |m: &mut Message| { &mut m.from },
511 ));
512 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
513 "data",
514 |m: &Message| { &m.data },
515 |m: &mut Message| { &mut m.data },
516 ));
517 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
518 "spawn",
519 |m: &Message| { &m.spawn },
520 |m: &mut Message| { &mut m.spawn },
521 ));
522 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
523 "spawn_address",
524 |m: &Message| { &m.spawn_address },
525 |m: &mut Message| { &mut m.spawn_address },
526 ));
527 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
528 "kill",
529 |m: &Message| { &m.kill },
530 |m: &mut Message| { &mut m.kill },
531 ));
532 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
533 "exiting",
534 |m: &Message| { &m.exiting },
535 |m: &mut Message| { &mut m.exiting },
536 ));
537 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
538 "exit",
539 |m: &Message| { &m.exit },
540 |m: &mut Message| { &mut m.exit },
541 ));
542 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
543 "your_address",
544 |m: &Message| { &m.your_address },
545 |m: &mut Message| { &mut m.your_address },
546 ));
547 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
548 "parent_address",
549 |m: &Message| { &m.parent_address },
550 |m: &mut Message| { &mut m.parent_address },
551 ));
552 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
553 "error",
554 |m: &Message| { &m.error },
555 |m: &mut Message| { &mut m.error },
556 ));
557 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Startup>>(
558 "startup",
559 |m: &Message| { &m.startup },
560 |m: &mut Message| { &mut m.startup },
561 ));
562 ::protobuf::reflect::MessageDescriptor::new::<Message>(
563 "Message",
564 fields,
565 file_descriptor_proto()
566 )
567 })
568 }
569 }
570
571 fn default_instance() -> &'static Message {
572 static mut instance: ::protobuf::lazy::Lazy<Message> = ::protobuf::lazy::Lazy {
573 lock: ::protobuf::lazy::ONCE_INIT,
574 ptr: 0 as *const Message,
575 };
576 unsafe {
577 instance.get(Message::new)
578 }
579 }
580}
581
582impl ::protobuf::Clear for Message {
583 fn clear(&mut self) {
584 self.to = 0;
585 self.from = 0;
586 self.data.clear();
587 self.spawn.clear();
588 self.spawn_address = 0;
589 self.kill = false;
590 self.exiting = false;
591 self.exit = 0;
592 self.your_address = 0;
593 self.parent_address = 0;
594 self.error = 0;
595 self.startup.clear();
596 self.unknown_fields.clear();
597 }
598}
599
600impl ::std::fmt::Debug for Message {
601 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
602 ::protobuf::text_format::fmt(self, f)
603 }
604}
605
606impl ::protobuf::reflect::ProtobufValue for Message {
607 fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
608 ::protobuf::reflect::ProtobufValueRef::Message(self)
609 }
610}
611
612#[derive(PartialEq,Clone,Default)]
613pub struct Startup {
614 pub module: ::std::string::String,
616 pub addr: u64,
617 pub parent: u64,
618 pub dbs: ::protobuf::RepeatedField<DB>,
619 pub unknown_fields: ::protobuf::UnknownFields,
621 pub cached_size: ::protobuf::CachedSize,
622}
623
624impl<'a> ::std::default::Default for &'a Startup {
625 fn default() -> &'a Startup {
626 <Startup as ::protobuf::Message>::default_instance()
627 }
628}
629
630impl Startup {
631 pub fn new() -> Startup {
632 ::std::default::Default::default()
633 }
634
635 pub fn get_module(&self) -> &str {
639 &self.module
640 }
641 pub fn clear_module(&mut self) {
642 self.module.clear();
643 }
644
645 pub fn set_module(&mut self, v: ::std::string::String) {
647 self.module = v;
648 }
649
650 pub fn mut_module(&mut self) -> &mut ::std::string::String {
653 &mut self.module
654 }
655
656 pub fn take_module(&mut self) -> ::std::string::String {
658 ::std::mem::replace(&mut self.module, ::std::string::String::new())
659 }
660
661 pub fn get_addr(&self) -> u64 {
665 self.addr
666 }
667 pub fn clear_addr(&mut self) {
668 self.addr = 0;
669 }
670
671 pub fn set_addr(&mut self, v: u64) {
673 self.addr = v;
674 }
675
676 pub fn get_parent(&self) -> u64 {
680 self.parent
681 }
682 pub fn clear_parent(&mut self) {
683 self.parent = 0;
684 }
685
686 pub fn set_parent(&mut self, v: u64) {
688 self.parent = v;
689 }
690
691 pub fn get_dbs(&self) -> &[DB] {
695 &self.dbs
696 }
697 pub fn clear_dbs(&mut self) {
698 self.dbs.clear();
699 }
700
701 pub fn set_dbs(&mut self, v: ::protobuf::RepeatedField<DB>) {
703 self.dbs = v;
704 }
705
706 pub fn mut_dbs(&mut self) -> &mut ::protobuf::RepeatedField<DB> {
708 &mut self.dbs
709 }
710
711 pub fn take_dbs(&mut self) -> ::protobuf::RepeatedField<DB> {
713 ::std::mem::replace(&mut self.dbs, ::protobuf::RepeatedField::new())
714 }
715}
716
717impl ::protobuf::Message for Startup {
718 fn is_initialized(&self) -> bool {
719 for v in &self.dbs {
720 if !v.is_initialized() {
721 return false;
722 }
723 };
724 true
725 }
726
727 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
728 while !is.eof()? {
729 let (field_number, wire_type) = is.read_tag_unpack()?;
730 match field_number {
731 1 => {
732 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.module)?;
733 },
734 2 => {
735 if wire_type != ::protobuf::wire_format::WireTypeVarint {
736 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
737 }
738 let tmp = is.read_uint64()?;
739 self.addr = tmp;
740 },
741 3 => {
742 if wire_type != ::protobuf::wire_format::WireTypeVarint {
743 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
744 }
745 let tmp = is.read_uint64()?;
746 self.parent = tmp;
747 },
748 4 => {
749 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.dbs)?;
750 },
751 _ => {
752 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
753 },
754 };
755 }
756 ::std::result::Result::Ok(())
757 }
758
759 #[allow(unused_variables)]
761 fn compute_size(&self) -> u32 {
762 let mut my_size = 0;
763 if !self.module.is_empty() {
764 my_size += ::protobuf::rt::string_size(1, &self.module);
765 }
766 if self.addr != 0 {
767 my_size += ::protobuf::rt::value_size(2, self.addr, ::protobuf::wire_format::WireTypeVarint);
768 }
769 if self.parent != 0 {
770 my_size += ::protobuf::rt::value_size(3, self.parent, ::protobuf::wire_format::WireTypeVarint);
771 }
772 for value in &self.dbs {
773 let len = value.compute_size();
774 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
775 };
776 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
777 self.cached_size.set(my_size);
778 my_size
779 }
780
781 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
782 if !self.module.is_empty() {
783 os.write_string(1, &self.module)?;
784 }
785 if self.addr != 0 {
786 os.write_uint64(2, self.addr)?;
787 }
788 if self.parent != 0 {
789 os.write_uint64(3, self.parent)?;
790 }
791 for v in &self.dbs {
792 os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
793 os.write_raw_varint32(v.get_cached_size())?;
794 v.write_to_with_cached_sizes(os)?;
795 };
796 os.write_unknown_fields(self.get_unknown_fields())?;
797 ::std::result::Result::Ok(())
798 }
799
800 fn get_cached_size(&self) -> u32 {
801 self.cached_size.get()
802 }
803
804 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
805 &self.unknown_fields
806 }
807
808 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
809 &mut self.unknown_fields
810 }
811
812 fn as_any(&self) -> &dyn (::std::any::Any) {
813 self as &dyn (::std::any::Any)
814 }
815 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
816 self as &mut dyn (::std::any::Any)
817 }
818 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
819 self
820 }
821
822 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
823 Self::descriptor_static()
824 }
825
826 fn new() -> Startup {
827 Startup::new()
828 }
829
830 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
831 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
832 lock: ::protobuf::lazy::ONCE_INIT,
833 ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
834 };
835 unsafe {
836 descriptor.get(|| {
837 let mut fields = ::std::vec::Vec::new();
838 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
839 "module",
840 |m: &Startup| { &m.module },
841 |m: &mut Startup| { &mut m.module },
842 ));
843 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
844 "addr",
845 |m: &Startup| { &m.addr },
846 |m: &mut Startup| { &mut m.addr },
847 ));
848 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
849 "parent",
850 |m: &Startup| { &m.parent },
851 |m: &mut Startup| { &mut m.parent },
852 ));
853 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<DB>>(
854 "dbs",
855 |m: &Startup| { &m.dbs },
856 |m: &mut Startup| { &mut m.dbs },
857 ));
858 ::protobuf::reflect::MessageDescriptor::new::<Startup>(
859 "Startup",
860 fields,
861 file_descriptor_proto()
862 )
863 })
864 }
865 }
866
867 fn default_instance() -> &'static Startup {
868 static mut instance: ::protobuf::lazy::Lazy<Startup> = ::protobuf::lazy::Lazy {
869 lock: ::protobuf::lazy::ONCE_INIT,
870 ptr: 0 as *const Startup,
871 };
872 unsafe {
873 instance.get(Startup::new)
874 }
875 }
876}
877
878impl ::protobuf::Clear for Startup {
879 fn clear(&mut self) {
880 self.module.clear();
881 self.addr = 0;
882 self.parent = 0;
883 self.dbs.clear();
884 self.unknown_fields.clear();
885 }
886}
887
888impl ::std::fmt::Debug for Startup {
889 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
890 ::protobuf::text_format::fmt(self, f)
891 }
892}
893
894impl ::protobuf::reflect::ProtobufValue for Startup {
895 fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
896 ::protobuf::reflect::ProtobufValueRef::Message(self)
897 }
898}
899
900#[derive(PartialEq,Clone,Default)]
901pub struct DB {
902 pub field_type: ::std::string::String,
904 pub name: ::std::string::String,
905 pub connection: ::std::string::String,
906 pub token: ::std::string::String,
907 pub unknown_fields: ::protobuf::UnknownFields,
909 pub cached_size: ::protobuf::CachedSize,
910}
911
912impl<'a> ::std::default::Default for &'a DB {
913 fn default() -> &'a DB {
914 <DB as ::protobuf::Message>::default_instance()
915 }
916}
917
918impl DB {
919 pub fn new() -> DB {
920 ::std::default::Default::default()
921 }
922
923 pub fn get_field_type(&self) -> &str {
927 &self.field_type
928 }
929 pub fn clear_field_type(&mut self) {
930 self.field_type.clear();
931 }
932
933 pub fn set_field_type(&mut self, v: ::std::string::String) {
935 self.field_type = v;
936 }
937
938 pub fn mut_field_type(&mut self) -> &mut ::std::string::String {
941 &mut self.field_type
942 }
943
944 pub fn take_field_type(&mut self) -> ::std::string::String {
946 ::std::mem::replace(&mut self.field_type, ::std::string::String::new())
947 }
948
949 pub fn get_name(&self) -> &str {
953 &self.name
954 }
955 pub fn clear_name(&mut self) {
956 self.name.clear();
957 }
958
959 pub fn set_name(&mut self, v: ::std::string::String) {
961 self.name = v;
962 }
963
964 pub fn mut_name(&mut self) -> &mut ::std::string::String {
967 &mut self.name
968 }
969
970 pub fn take_name(&mut self) -> ::std::string::String {
972 ::std::mem::replace(&mut self.name, ::std::string::String::new())
973 }
974
975 pub fn get_connection(&self) -> &str {
979 &self.connection
980 }
981 pub fn clear_connection(&mut self) {
982 self.connection.clear();
983 }
984
985 pub fn set_connection(&mut self, v: ::std::string::String) {
987 self.connection = v;
988 }
989
990 pub fn mut_connection(&mut self) -> &mut ::std::string::String {
993 &mut self.connection
994 }
995
996 pub fn take_connection(&mut self) -> ::std::string::String {
998 ::std::mem::replace(&mut self.connection, ::std::string::String::new())
999 }
1000
1001 pub fn get_token(&self) -> &str {
1005 &self.token
1006 }
1007 pub fn clear_token(&mut self) {
1008 self.token.clear();
1009 }
1010
1011 pub fn set_token(&mut self, v: ::std::string::String) {
1013 self.token = v;
1014 }
1015
1016 pub fn mut_token(&mut self) -> &mut ::std::string::String {
1019 &mut self.token
1020 }
1021
1022 pub fn take_token(&mut self) -> ::std::string::String {
1024 ::std::mem::replace(&mut self.token, ::std::string::String::new())
1025 }
1026}
1027
1028impl ::protobuf::Message for DB {
1029 fn is_initialized(&self) -> bool {
1030 true
1031 }
1032
1033 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1034 while !is.eof()? {
1035 let (field_number, wire_type) = is.read_tag_unpack()?;
1036 match field_number {
1037 1 => {
1038 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?;
1039 },
1040 2 => {
1041 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
1042 },
1043 3 => {
1044 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.connection)?;
1045 },
1046 4 => {
1047 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.token)?;
1048 },
1049 _ => {
1050 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1051 },
1052 };
1053 }
1054 ::std::result::Result::Ok(())
1055 }
1056
1057 #[allow(unused_variables)]
1059 fn compute_size(&self) -> u32 {
1060 let mut my_size = 0;
1061 if !self.field_type.is_empty() {
1062 my_size += ::protobuf::rt::string_size(1, &self.field_type);
1063 }
1064 if !self.name.is_empty() {
1065 my_size += ::protobuf::rt::string_size(2, &self.name);
1066 }
1067 if !self.connection.is_empty() {
1068 my_size += ::protobuf::rt::string_size(3, &self.connection);
1069 }
1070 if !self.token.is_empty() {
1071 my_size += ::protobuf::rt::string_size(4, &self.token);
1072 }
1073 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1074 self.cached_size.set(my_size);
1075 my_size
1076 }
1077
1078 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1079 if !self.field_type.is_empty() {
1080 os.write_string(1, &self.field_type)?;
1081 }
1082 if !self.name.is_empty() {
1083 os.write_string(2, &self.name)?;
1084 }
1085 if !self.connection.is_empty() {
1086 os.write_string(3, &self.connection)?;
1087 }
1088 if !self.token.is_empty() {
1089 os.write_string(4, &self.token)?;
1090 }
1091 os.write_unknown_fields(self.get_unknown_fields())?;
1092 ::std::result::Result::Ok(())
1093 }
1094
1095 fn get_cached_size(&self) -> u32 {
1096 self.cached_size.get()
1097 }
1098
1099 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1100 &self.unknown_fields
1101 }
1102
1103 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1104 &mut self.unknown_fields
1105 }
1106
1107 fn as_any(&self) -> &dyn (::std::any::Any) {
1108 self as &dyn (::std::any::Any)
1109 }
1110 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1111 self as &mut dyn (::std::any::Any)
1112 }
1113 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1114 self
1115 }
1116
1117 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1118 Self::descriptor_static()
1119 }
1120
1121 fn new() -> DB {
1122 DB::new()
1123 }
1124
1125 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1126 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
1127 lock: ::protobuf::lazy::ONCE_INIT,
1128 ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
1129 };
1130 unsafe {
1131 descriptor.get(|| {
1132 let mut fields = ::std::vec::Vec::new();
1133 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1134 "type",
1135 |m: &DB| { &m.field_type },
1136 |m: &mut DB| { &mut m.field_type },
1137 ));
1138 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1139 "name",
1140 |m: &DB| { &m.name },
1141 |m: &mut DB| { &mut m.name },
1142 ));
1143 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1144 "connection",
1145 |m: &DB| { &m.connection },
1146 |m: &mut DB| { &mut m.connection },
1147 ));
1148 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1149 "token",
1150 |m: &DB| { &m.token },
1151 |m: &mut DB| { &mut m.token },
1152 ));
1153 ::protobuf::reflect::MessageDescriptor::new::<DB>(
1154 "DB",
1155 fields,
1156 file_descriptor_proto()
1157 )
1158 })
1159 }
1160 }
1161
1162 fn default_instance() -> &'static DB {
1163 static mut instance: ::protobuf::lazy::Lazy<DB> = ::protobuf::lazy::Lazy {
1164 lock: ::protobuf::lazy::ONCE_INIT,
1165 ptr: 0 as *const DB,
1166 };
1167 unsafe {
1168 instance.get(DB::new)
1169 }
1170 }
1171}
1172
1173impl ::protobuf::Clear for DB {
1174 fn clear(&mut self) {
1175 self.field_type.clear();
1176 self.name.clear();
1177 self.connection.clear();
1178 self.token.clear();
1179 self.unknown_fields.clear();
1180 }
1181}
1182
1183impl ::std::fmt::Debug for DB {
1184 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1185 ::protobuf::text_format::fmt(self, f)
1186 }
1187}
1188
1189impl ::protobuf::reflect::ProtobufValue for DB {
1190 fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
1191 ::protobuf::reflect::ProtobufValueRef::Message(self)
1192 }
1193}
1194
1195static file_descriptor_proto_data: &'static [u8] = b"\
1196 \n\x0bcomms.proto\x12\x05comms\"\xc8\x02\n\x07Message\x12\x0e\n\x02to\
1197 \x18\x01\x20\x01(\x04R\x02to\x12\x12\n\x04from\x18\x02\x20\x01(\x04R\x04\
1198 from\x12\x12\n\x04data\x18\x03\x20\x01(\x0cR\x04data\x12\x14\n\x05spawn\
1199 \x18\x04\x20\x01(\tR\x05spawn\x12#\n\rspawn_address\x18\x05\x20\x01(\x04\
1200 R\x0cspawnAddress\x12\x12\n\x04kill\x18\x06\x20\x01(\x08R\x04kill\x12\
1201 \x18\n\x07exiting\x18\x07\x20\x01(\x08R\x07exiting\x12\x12\n\x04exit\x18\
1202 \x08\x20\x01(\x05R\x04exit\x12!\n\x0cyour_address\x18\t\x20\x01(\x04R\
1203 \x0byourAddress\x12%\n\x0eparent_address\x18\n\x20\x01(\x04R\rparentAddr\
1204 ess\x12\x14\n\x05error\x18\x0b\x20\x01(\x05R\x05error\x12(\n\x07startup\
1205 \x18\x0c\x20\x01(\x0b2\x0e.comms.StartupR\x07startup\"j\n\x07Startup\x12\
1206 \x16\n\x06module\x18\x01\x20\x01(\tR\x06module\x12\x12\n\x04addr\x18\x02\
1207 \x20\x01(\x04R\x04addr\x12\x16\n\x06parent\x18\x03\x20\x01(\x04R\x06pare\
1208 nt\x12\x1b\n\x03dbs\x18\x04\x20\x03(\x0b2\t.comms.DBR\x03dbs\"b\n\x02DB\
1209 \x12\x12\n\x04type\x18\x01\x20\x01(\tR\x04type\x12\x12\n\x04name\x18\x02\
1210 \x20\x01(\tR\x04name\x12\x1e\n\nconnection\x18\x03\x20\x01(\tR\nconnecti\
1211 on\x12\x14\n\x05token\x18\x04\x20\x01(\tR\x05tokenb\x06proto3\
1212";
1213
1214static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
1215 lock: ::protobuf::lazy::ONCE_INIT,
1216 ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
1217};
1218
1219fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1220 ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
1221}
1222
1223pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1224 unsafe {
1225 file_descriptor_proto_lazy.get(|| {
1226 parse_descriptor_proto()
1227 })
1228 }
1229}