catalyst_protocol_sdk_rust/
Wire.rs

1// This file is generated by rust-protobuf 2.10.0. Do not edit
2// @generated
3
4// https://github.com/Manishearth/rust-clippy/issues/702
5#![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)]
20//! Generated file from `Wire.proto`
21
22use protobuf::Message as Message_imported_for_functions;
23use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
24
25/// Generated files are compatible only with the same version
26/// of protobuf runtime.
27const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_0;
28
29#[derive(PartialEq,Clone,Default)]
30pub struct ProtocolErrorMessage {
31    // message fields
32    pub signature: ::protobuf::SingularPtrField<super::Cryptography::Signature>,
33    pub peer_id: ::protobuf::SingularPtrField<super::Peer::PeerId>,
34    pub correlation_id: ::std::vec::Vec<u8>,
35    pub code: i32,
36    // special fields
37    pub unknown_fields: ::protobuf::UnknownFields,
38    pub cached_size: ::protobuf::CachedSize,
39}
40
41impl<'a> ::std::default::Default for &'a ProtocolErrorMessage {
42    fn default() -> &'a ProtocolErrorMessage {
43        <ProtocolErrorMessage as ::protobuf::Message>::default_instance()
44    }
45}
46
47impl ProtocolErrorMessage {
48    pub fn new() -> ProtocolErrorMessage {
49        ::std::default::Default::default()
50    }
51
52    // .Catalyst.Protocol.Cryptography.Signature signature = 1;
53
54
55    pub fn get_signature(&self) -> &super::Cryptography::Signature {
56        self.signature.as_ref().unwrap_or_else(|| super::Cryptography::Signature::default_instance())
57    }
58    pub fn clear_signature(&mut self) {
59        self.signature.clear();
60    }
61
62    pub fn has_signature(&self) -> bool {
63        self.signature.is_some()
64    }
65
66    // Param is passed by value, moved
67    pub fn set_signature(&mut self, v: super::Cryptography::Signature) {
68        self.signature = ::protobuf::SingularPtrField::some(v);
69    }
70
71    // Mutable pointer to the field.
72    // If field is not initialized, it is initialized with default value first.
73    pub fn mut_signature(&mut self) -> &mut super::Cryptography::Signature {
74        if self.signature.is_none() {
75            self.signature.set_default();
76        }
77        self.signature.as_mut().unwrap()
78    }
79
80    // Take field
81    pub fn take_signature(&mut self) -> super::Cryptography::Signature {
82        self.signature.take().unwrap_or_else(|| super::Cryptography::Signature::new())
83    }
84
85    // .Catalyst.Protocol.Peer.PeerId peer_id = 2;
86
87
88    pub fn get_peer_id(&self) -> &super::Peer::PeerId {
89        self.peer_id.as_ref().unwrap_or_else(|| super::Peer::PeerId::default_instance())
90    }
91    pub fn clear_peer_id(&mut self) {
92        self.peer_id.clear();
93    }
94
95    pub fn has_peer_id(&self) -> bool {
96        self.peer_id.is_some()
97    }
98
99    // Param is passed by value, moved
100    pub fn set_peer_id(&mut self, v: super::Peer::PeerId) {
101        self.peer_id = ::protobuf::SingularPtrField::some(v);
102    }
103
104    // Mutable pointer to the field.
105    // If field is not initialized, it is initialized with default value first.
106    pub fn mut_peer_id(&mut self) -> &mut super::Peer::PeerId {
107        if self.peer_id.is_none() {
108            self.peer_id.set_default();
109        }
110        self.peer_id.as_mut().unwrap()
111    }
112
113    // Take field
114    pub fn take_peer_id(&mut self) -> super::Peer::PeerId {
115        self.peer_id.take().unwrap_or_else(|| super::Peer::PeerId::new())
116    }
117
118    // bytes correlation_id = 3;
119
120
121    pub fn get_correlation_id(&self) -> &[u8] {
122        &self.correlation_id
123    }
124    pub fn clear_correlation_id(&mut self) {
125        self.correlation_id.clear();
126    }
127
128    // Param is passed by value, moved
129    pub fn set_correlation_id(&mut self, v: ::std::vec::Vec<u8>) {
130        self.correlation_id = v;
131    }
132
133    // Mutable pointer to the field.
134    // If field is not initialized, it is initialized with default value first.
135    pub fn mut_correlation_id(&mut self) -> &mut ::std::vec::Vec<u8> {
136        &mut self.correlation_id
137    }
138
139    // Take field
140    pub fn take_correlation_id(&mut self) -> ::std::vec::Vec<u8> {
141        ::std::mem::replace(&mut self.correlation_id, ::std::vec::Vec::new())
142    }
143
144    // int32 code = 4;
145
146
147    pub fn get_code(&self) -> i32 {
148        self.code
149    }
150    pub fn clear_code(&mut self) {
151        self.code = 0;
152    }
153
154    // Param is passed by value, moved
155    pub fn set_code(&mut self, v: i32) {
156        self.code = v;
157    }
158}
159
160impl ::protobuf::Message for ProtocolErrorMessage {
161    fn is_initialized(&self) -> bool {
162        for v in &self.signature {
163            if !v.is_initialized() {
164                return false;
165            }
166        };
167        for v in &self.peer_id {
168            if !v.is_initialized() {
169                return false;
170            }
171        };
172        true
173    }
174
175    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
176        while !is.eof()? {
177            let (field_number, wire_type) = is.read_tag_unpack()?;
178            match field_number {
179                1 => {
180                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.signature)?;
181                },
182                2 => {
183                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.peer_id)?;
184                },
185                3 => {
186                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.correlation_id)?;
187                },
188                4 => {
189                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
190                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
191                    }
192                    let tmp = is.read_int32()?;
193                    self.code = tmp;
194                },
195                _ => {
196                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
197                },
198            };
199        }
200        ::std::result::Result::Ok(())
201    }
202
203    // Compute sizes of nested messages
204    #[allow(unused_variables)]
205    fn compute_size(&self) -> u32 {
206        let mut my_size = 0;
207        if let Some(ref v) = self.signature.as_ref() {
208            let len = v.compute_size();
209            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
210        }
211        if let Some(ref v) = self.peer_id.as_ref() {
212            let len = v.compute_size();
213            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
214        }
215        if !self.correlation_id.is_empty() {
216            my_size += ::protobuf::rt::bytes_size(3, &self.correlation_id);
217        }
218        if self.code != 0 {
219            my_size += ::protobuf::rt::value_size(4, self.code, ::protobuf::wire_format::WireTypeVarint);
220        }
221        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
222        self.cached_size.set(my_size);
223        my_size
224    }
225
226    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
227        if let Some(ref v) = self.signature.as_ref() {
228            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
229            os.write_raw_varint32(v.get_cached_size())?;
230            v.write_to_with_cached_sizes(os)?;
231        }
232        if let Some(ref v) = self.peer_id.as_ref() {
233            os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
234            os.write_raw_varint32(v.get_cached_size())?;
235            v.write_to_with_cached_sizes(os)?;
236        }
237        if !self.correlation_id.is_empty() {
238            os.write_bytes(3, &self.correlation_id)?;
239        }
240        if self.code != 0 {
241            os.write_int32(4, self.code)?;
242        }
243        os.write_unknown_fields(self.get_unknown_fields())?;
244        ::std::result::Result::Ok(())
245    }
246
247    fn get_cached_size(&self) -> u32 {
248        self.cached_size.get()
249    }
250
251    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
252        &self.unknown_fields
253    }
254
255    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
256        &mut self.unknown_fields
257    }
258
259    fn as_any(&self) -> &dyn (::std::any::Any) {
260        self as &dyn (::std::any::Any)
261    }
262    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
263        self as &mut dyn (::std::any::Any)
264    }
265    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
266        self
267    }
268
269    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
270        Self::descriptor_static()
271    }
272
273    fn new() -> ProtocolErrorMessage {
274        ProtocolErrorMessage::new()
275    }
276
277    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
278        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
279            lock: ::protobuf::lazy::ONCE_INIT,
280            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
281        };
282        unsafe {
283            descriptor.get(|| {
284                let mut fields = ::std::vec::Vec::new();
285                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Cryptography::Signature>>(
286                    "signature",
287                    |m: &ProtocolErrorMessage| { &m.signature },
288                    |m: &mut ProtocolErrorMessage| { &mut m.signature },
289                ));
290                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Peer::PeerId>>(
291                    "peer_id",
292                    |m: &ProtocolErrorMessage| { &m.peer_id },
293                    |m: &mut ProtocolErrorMessage| { &mut m.peer_id },
294                ));
295                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
296                    "correlation_id",
297                    |m: &ProtocolErrorMessage| { &m.correlation_id },
298                    |m: &mut ProtocolErrorMessage| { &mut m.correlation_id },
299                ));
300                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
301                    "code",
302                    |m: &ProtocolErrorMessage| { &m.code },
303                    |m: &mut ProtocolErrorMessage| { &mut m.code },
304                ));
305                ::protobuf::reflect::MessageDescriptor::new::<ProtocolErrorMessage>(
306                    "ProtocolErrorMessage",
307                    fields,
308                    file_descriptor_proto()
309                )
310            })
311        }
312    }
313
314    fn default_instance() -> &'static ProtocolErrorMessage {
315        static mut instance: ::protobuf::lazy::Lazy<ProtocolErrorMessage> = ::protobuf::lazy::Lazy {
316            lock: ::protobuf::lazy::ONCE_INIT,
317            ptr: 0 as *const ProtocolErrorMessage,
318        };
319        unsafe {
320            instance.get(ProtocolErrorMessage::new)
321        }
322    }
323}
324
325impl ::protobuf::Clear for ProtocolErrorMessage {
326    fn clear(&mut self) {
327        self.signature.clear();
328        self.peer_id.clear();
329        self.correlation_id.clear();
330        self.code = 0;
331        self.unknown_fields.clear();
332    }
333}
334
335impl ::std::fmt::Debug for ProtocolErrorMessage {
336    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
337        ::protobuf::text_format::fmt(self, f)
338    }
339}
340
341impl ::protobuf::reflect::ProtobufValue for ProtocolErrorMessage {
342    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
343        ::protobuf::reflect::ProtobufValueRef::Message(self)
344    }
345}
346
347#[derive(PartialEq,Clone,Default)]
348pub struct ProtocolMessage {
349    // message fields
350    pub peer_id: ::protobuf::SingularPtrField<super::Peer::PeerId>,
351    pub correlation_id: ::std::vec::Vec<u8>,
352    pub type_url: ::std::string::String,
353    pub value: ::std::vec::Vec<u8>,
354    pub signature: ::protobuf::SingularPtrField<super::Cryptography::Signature>,
355    // special fields
356    pub unknown_fields: ::protobuf::UnknownFields,
357    pub cached_size: ::protobuf::CachedSize,
358}
359
360impl<'a> ::std::default::Default for &'a ProtocolMessage {
361    fn default() -> &'a ProtocolMessage {
362        <ProtocolMessage as ::protobuf::Message>::default_instance()
363    }
364}
365
366impl ProtocolMessage {
367    pub fn new() -> ProtocolMessage {
368        ::std::default::Default::default()
369    }
370
371    // .Catalyst.Protocol.Peer.PeerId peer_id = 1;
372
373
374    pub fn get_peer_id(&self) -> &super::Peer::PeerId {
375        self.peer_id.as_ref().unwrap_or_else(|| super::Peer::PeerId::default_instance())
376    }
377    pub fn clear_peer_id(&mut self) {
378        self.peer_id.clear();
379    }
380
381    pub fn has_peer_id(&self) -> bool {
382        self.peer_id.is_some()
383    }
384
385    // Param is passed by value, moved
386    pub fn set_peer_id(&mut self, v: super::Peer::PeerId) {
387        self.peer_id = ::protobuf::SingularPtrField::some(v);
388    }
389
390    // Mutable pointer to the field.
391    // If field is not initialized, it is initialized with default value first.
392    pub fn mut_peer_id(&mut self) -> &mut super::Peer::PeerId {
393        if self.peer_id.is_none() {
394            self.peer_id.set_default();
395        }
396        self.peer_id.as_mut().unwrap()
397    }
398
399    // Take field
400    pub fn take_peer_id(&mut self) -> super::Peer::PeerId {
401        self.peer_id.take().unwrap_or_else(|| super::Peer::PeerId::new())
402    }
403
404    // bytes correlation_id = 2;
405
406
407    pub fn get_correlation_id(&self) -> &[u8] {
408        &self.correlation_id
409    }
410    pub fn clear_correlation_id(&mut self) {
411        self.correlation_id.clear();
412    }
413
414    // Param is passed by value, moved
415    pub fn set_correlation_id(&mut self, v: ::std::vec::Vec<u8>) {
416        self.correlation_id = v;
417    }
418
419    // Mutable pointer to the field.
420    // If field is not initialized, it is initialized with default value first.
421    pub fn mut_correlation_id(&mut self) -> &mut ::std::vec::Vec<u8> {
422        &mut self.correlation_id
423    }
424
425    // Take field
426    pub fn take_correlation_id(&mut self) -> ::std::vec::Vec<u8> {
427        ::std::mem::replace(&mut self.correlation_id, ::std::vec::Vec::new())
428    }
429
430    // string type_url = 3;
431
432
433    pub fn get_type_url(&self) -> &str {
434        &self.type_url
435    }
436    pub fn clear_type_url(&mut self) {
437        self.type_url.clear();
438    }
439
440    // Param is passed by value, moved
441    pub fn set_type_url(&mut self, v: ::std::string::String) {
442        self.type_url = v;
443    }
444
445    // Mutable pointer to the field.
446    // If field is not initialized, it is initialized with default value first.
447    pub fn mut_type_url(&mut self) -> &mut ::std::string::String {
448        &mut self.type_url
449    }
450
451    // Take field
452    pub fn take_type_url(&mut self) -> ::std::string::String {
453        ::std::mem::replace(&mut self.type_url, ::std::string::String::new())
454    }
455
456    // bytes value = 4;
457
458
459    pub fn get_value(&self) -> &[u8] {
460        &self.value
461    }
462    pub fn clear_value(&mut self) {
463        self.value.clear();
464    }
465
466    // Param is passed by value, moved
467    pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
468        self.value = v;
469    }
470
471    // Mutable pointer to the field.
472    // If field is not initialized, it is initialized with default value first.
473    pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
474        &mut self.value
475    }
476
477    // Take field
478    pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
479        ::std::mem::replace(&mut self.value, ::std::vec::Vec::new())
480    }
481
482    // .Catalyst.Protocol.Cryptography.Signature signature = 5;
483
484
485    pub fn get_signature(&self) -> &super::Cryptography::Signature {
486        self.signature.as_ref().unwrap_or_else(|| super::Cryptography::Signature::default_instance())
487    }
488    pub fn clear_signature(&mut self) {
489        self.signature.clear();
490    }
491
492    pub fn has_signature(&self) -> bool {
493        self.signature.is_some()
494    }
495
496    // Param is passed by value, moved
497    pub fn set_signature(&mut self, v: super::Cryptography::Signature) {
498        self.signature = ::protobuf::SingularPtrField::some(v);
499    }
500
501    // Mutable pointer to the field.
502    // If field is not initialized, it is initialized with default value first.
503    pub fn mut_signature(&mut self) -> &mut super::Cryptography::Signature {
504        if self.signature.is_none() {
505            self.signature.set_default();
506        }
507        self.signature.as_mut().unwrap()
508    }
509
510    // Take field
511    pub fn take_signature(&mut self) -> super::Cryptography::Signature {
512        self.signature.take().unwrap_or_else(|| super::Cryptography::Signature::new())
513    }
514}
515
516impl ::protobuf::Message for ProtocolMessage {
517    fn is_initialized(&self) -> bool {
518        for v in &self.peer_id {
519            if !v.is_initialized() {
520                return false;
521            }
522        };
523        for v in &self.signature {
524            if !v.is_initialized() {
525                return false;
526            }
527        };
528        true
529    }
530
531    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
532        while !is.eof()? {
533            let (field_number, wire_type) = is.read_tag_unpack()?;
534            match field_number {
535                1 => {
536                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.peer_id)?;
537                },
538                2 => {
539                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.correlation_id)?;
540                },
541                3 => {
542                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.type_url)?;
543                },
544                4 => {
545                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;
546                },
547                5 => {
548                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.signature)?;
549                },
550                _ => {
551                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
552                },
553            };
554        }
555        ::std::result::Result::Ok(())
556    }
557
558    // Compute sizes of nested messages
559    #[allow(unused_variables)]
560    fn compute_size(&self) -> u32 {
561        let mut my_size = 0;
562        if let Some(ref v) = self.peer_id.as_ref() {
563            let len = v.compute_size();
564            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
565        }
566        if !self.correlation_id.is_empty() {
567            my_size += ::protobuf::rt::bytes_size(2, &self.correlation_id);
568        }
569        if !self.type_url.is_empty() {
570            my_size += ::protobuf::rt::string_size(3, &self.type_url);
571        }
572        if !self.value.is_empty() {
573            my_size += ::protobuf::rt::bytes_size(4, &self.value);
574        }
575        if let Some(ref v) = self.signature.as_ref() {
576            let len = v.compute_size();
577            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
578        }
579        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
580        self.cached_size.set(my_size);
581        my_size
582    }
583
584    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
585        if let Some(ref v) = self.peer_id.as_ref() {
586            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
587            os.write_raw_varint32(v.get_cached_size())?;
588            v.write_to_with_cached_sizes(os)?;
589        }
590        if !self.correlation_id.is_empty() {
591            os.write_bytes(2, &self.correlation_id)?;
592        }
593        if !self.type_url.is_empty() {
594            os.write_string(3, &self.type_url)?;
595        }
596        if !self.value.is_empty() {
597            os.write_bytes(4, &self.value)?;
598        }
599        if let Some(ref v) = self.signature.as_ref() {
600            os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
601            os.write_raw_varint32(v.get_cached_size())?;
602            v.write_to_with_cached_sizes(os)?;
603        }
604        os.write_unknown_fields(self.get_unknown_fields())?;
605        ::std::result::Result::Ok(())
606    }
607
608    fn get_cached_size(&self) -> u32 {
609        self.cached_size.get()
610    }
611
612    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
613        &self.unknown_fields
614    }
615
616    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
617        &mut self.unknown_fields
618    }
619
620    fn as_any(&self) -> &dyn (::std::any::Any) {
621        self as &dyn (::std::any::Any)
622    }
623    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
624        self as &mut dyn (::std::any::Any)
625    }
626    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
627        self
628    }
629
630    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
631        Self::descriptor_static()
632    }
633
634    fn new() -> ProtocolMessage {
635        ProtocolMessage::new()
636    }
637
638    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
639        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
640            lock: ::protobuf::lazy::ONCE_INIT,
641            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
642        };
643        unsafe {
644            descriptor.get(|| {
645                let mut fields = ::std::vec::Vec::new();
646                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Peer::PeerId>>(
647                    "peer_id",
648                    |m: &ProtocolMessage| { &m.peer_id },
649                    |m: &mut ProtocolMessage| { &mut m.peer_id },
650                ));
651                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
652                    "correlation_id",
653                    |m: &ProtocolMessage| { &m.correlation_id },
654                    |m: &mut ProtocolMessage| { &mut m.correlation_id },
655                ));
656                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
657                    "type_url",
658                    |m: &ProtocolMessage| { &m.type_url },
659                    |m: &mut ProtocolMessage| { &mut m.type_url },
660                ));
661                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
662                    "value",
663                    |m: &ProtocolMessage| { &m.value },
664                    |m: &mut ProtocolMessage| { &mut m.value },
665                ));
666                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Cryptography::Signature>>(
667                    "signature",
668                    |m: &ProtocolMessage| { &m.signature },
669                    |m: &mut ProtocolMessage| { &mut m.signature },
670                ));
671                ::protobuf::reflect::MessageDescriptor::new::<ProtocolMessage>(
672                    "ProtocolMessage",
673                    fields,
674                    file_descriptor_proto()
675                )
676            })
677        }
678    }
679
680    fn default_instance() -> &'static ProtocolMessage {
681        static mut instance: ::protobuf::lazy::Lazy<ProtocolMessage> = ::protobuf::lazy::Lazy {
682            lock: ::protobuf::lazy::ONCE_INIT,
683            ptr: 0 as *const ProtocolMessage,
684        };
685        unsafe {
686            instance.get(ProtocolMessage::new)
687        }
688    }
689}
690
691impl ::protobuf::Clear for ProtocolMessage {
692    fn clear(&mut self) {
693        self.peer_id.clear();
694        self.correlation_id.clear();
695        self.type_url.clear();
696        self.value.clear();
697        self.signature.clear();
698        self.unknown_fields.clear();
699    }
700}
701
702impl ::std::fmt::Debug for ProtocolMessage {
703    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
704        ::protobuf::text_format::fmt(self, f)
705    }
706}
707
708impl ::protobuf::reflect::ProtobufValue for ProtocolMessage {
709    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
710        ::protobuf::reflect::ProtobufValueRef::Message(self)
711    }
712}
713
714#[derive(PartialEq,Clone,Default)]
715pub struct TransactionBroadcast {
716    // message fields
717    pub public_entry: ::protobuf::SingularPtrField<super::Transaction::PublicEntry>,
718    // special fields
719    pub unknown_fields: ::protobuf::UnknownFields,
720    pub cached_size: ::protobuf::CachedSize,
721}
722
723impl<'a> ::std::default::Default for &'a TransactionBroadcast {
724    fn default() -> &'a TransactionBroadcast {
725        <TransactionBroadcast as ::protobuf::Message>::default_instance()
726    }
727}
728
729impl TransactionBroadcast {
730    pub fn new() -> TransactionBroadcast {
731        ::std::default::Default::default()
732    }
733
734    // .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1;
735
736
737    pub fn get_public_entry(&self) -> &super::Transaction::PublicEntry {
738        self.public_entry.as_ref().unwrap_or_else(|| super::Transaction::PublicEntry::default_instance())
739    }
740    pub fn clear_public_entry(&mut self) {
741        self.public_entry.clear();
742    }
743
744    pub fn has_public_entry(&self) -> bool {
745        self.public_entry.is_some()
746    }
747
748    // Param is passed by value, moved
749    pub fn set_public_entry(&mut self, v: super::Transaction::PublicEntry) {
750        self.public_entry = ::protobuf::SingularPtrField::some(v);
751    }
752
753    // Mutable pointer to the field.
754    // If field is not initialized, it is initialized with default value first.
755    pub fn mut_public_entry(&mut self) -> &mut super::Transaction::PublicEntry {
756        if self.public_entry.is_none() {
757            self.public_entry.set_default();
758        }
759        self.public_entry.as_mut().unwrap()
760    }
761
762    // Take field
763    pub fn take_public_entry(&mut self) -> super::Transaction::PublicEntry {
764        self.public_entry.take().unwrap_or_else(|| super::Transaction::PublicEntry::new())
765    }
766}
767
768impl ::protobuf::Message for TransactionBroadcast {
769    fn is_initialized(&self) -> bool {
770        for v in &self.public_entry {
771            if !v.is_initialized() {
772                return false;
773            }
774        };
775        true
776    }
777
778    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
779        while !is.eof()? {
780            let (field_number, wire_type) = is.read_tag_unpack()?;
781            match field_number {
782                1 => {
783                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.public_entry)?;
784                },
785                _ => {
786                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
787                },
788            };
789        }
790        ::std::result::Result::Ok(())
791    }
792
793    // Compute sizes of nested messages
794    #[allow(unused_variables)]
795    fn compute_size(&self) -> u32 {
796        let mut my_size = 0;
797        if let Some(ref v) = self.public_entry.as_ref() {
798            let len = v.compute_size();
799            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
800        }
801        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
802        self.cached_size.set(my_size);
803        my_size
804    }
805
806    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
807        if let Some(ref v) = self.public_entry.as_ref() {
808            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
809            os.write_raw_varint32(v.get_cached_size())?;
810            v.write_to_with_cached_sizes(os)?;
811        }
812        os.write_unknown_fields(self.get_unknown_fields())?;
813        ::std::result::Result::Ok(())
814    }
815
816    fn get_cached_size(&self) -> u32 {
817        self.cached_size.get()
818    }
819
820    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
821        &self.unknown_fields
822    }
823
824    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
825        &mut self.unknown_fields
826    }
827
828    fn as_any(&self) -> &dyn (::std::any::Any) {
829        self as &dyn (::std::any::Any)
830    }
831    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
832        self as &mut dyn (::std::any::Any)
833    }
834    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
835        self
836    }
837
838    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
839        Self::descriptor_static()
840    }
841
842    fn new() -> TransactionBroadcast {
843        TransactionBroadcast::new()
844    }
845
846    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
847        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
848            lock: ::protobuf::lazy::ONCE_INIT,
849            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
850        };
851        unsafe {
852            descriptor.get(|| {
853                let mut fields = ::std::vec::Vec::new();
854                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Transaction::PublicEntry>>(
855                    "public_entry",
856                    |m: &TransactionBroadcast| { &m.public_entry },
857                    |m: &mut TransactionBroadcast| { &mut m.public_entry },
858                ));
859                ::protobuf::reflect::MessageDescriptor::new::<TransactionBroadcast>(
860                    "TransactionBroadcast",
861                    fields,
862                    file_descriptor_proto()
863                )
864            })
865        }
866    }
867
868    fn default_instance() -> &'static TransactionBroadcast {
869        static mut instance: ::protobuf::lazy::Lazy<TransactionBroadcast> = ::protobuf::lazy::Lazy {
870            lock: ::protobuf::lazy::ONCE_INIT,
871            ptr: 0 as *const TransactionBroadcast,
872        };
873        unsafe {
874            instance.get(TransactionBroadcast::new)
875        }
876    }
877}
878
879impl ::protobuf::Clear for TransactionBroadcast {
880    fn clear(&mut self) {
881        self.public_entry.clear();
882        self.unknown_fields.clear();
883    }
884}
885
886impl ::std::fmt::Debug for TransactionBroadcast {
887    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
888        ::protobuf::text_format::fmt(self, f)
889    }
890}
891
892impl ::protobuf::reflect::ProtobufValue for TransactionBroadcast {
893    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
894        ::protobuf::reflect::ProtobufValueRef::Message(self)
895    }
896}
897
898#[derive(PartialEq,Clone,Default)]
899pub struct CandidateDeltaBroadcast {
900    // message fields
901    pub hash: ::std::vec::Vec<u8>,
902    pub producer_id: ::protobuf::SingularPtrField<super::Peer::PeerId>,
903    pub previous_delta_dfs_hash: ::std::vec::Vec<u8>,
904    // special fields
905    pub unknown_fields: ::protobuf::UnknownFields,
906    pub cached_size: ::protobuf::CachedSize,
907}
908
909impl<'a> ::std::default::Default for &'a CandidateDeltaBroadcast {
910    fn default() -> &'a CandidateDeltaBroadcast {
911        <CandidateDeltaBroadcast as ::protobuf::Message>::default_instance()
912    }
913}
914
915impl CandidateDeltaBroadcast {
916    pub fn new() -> CandidateDeltaBroadcast {
917        ::std::default::Default::default()
918    }
919
920    // bytes hash = 1;
921
922
923    pub fn get_hash(&self) -> &[u8] {
924        &self.hash
925    }
926    pub fn clear_hash(&mut self) {
927        self.hash.clear();
928    }
929
930    // Param is passed by value, moved
931    pub fn set_hash(&mut self, v: ::std::vec::Vec<u8>) {
932        self.hash = v;
933    }
934
935    // Mutable pointer to the field.
936    // If field is not initialized, it is initialized with default value first.
937    pub fn mut_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
938        &mut self.hash
939    }
940
941    // Take field
942    pub fn take_hash(&mut self) -> ::std::vec::Vec<u8> {
943        ::std::mem::replace(&mut self.hash, ::std::vec::Vec::new())
944    }
945
946    // .Catalyst.Protocol.Peer.PeerId producer_id = 2;
947
948
949    pub fn get_producer_id(&self) -> &super::Peer::PeerId {
950        self.producer_id.as_ref().unwrap_or_else(|| super::Peer::PeerId::default_instance())
951    }
952    pub fn clear_producer_id(&mut self) {
953        self.producer_id.clear();
954    }
955
956    pub fn has_producer_id(&self) -> bool {
957        self.producer_id.is_some()
958    }
959
960    // Param is passed by value, moved
961    pub fn set_producer_id(&mut self, v: super::Peer::PeerId) {
962        self.producer_id = ::protobuf::SingularPtrField::some(v);
963    }
964
965    // Mutable pointer to the field.
966    // If field is not initialized, it is initialized with default value first.
967    pub fn mut_producer_id(&mut self) -> &mut super::Peer::PeerId {
968        if self.producer_id.is_none() {
969            self.producer_id.set_default();
970        }
971        self.producer_id.as_mut().unwrap()
972    }
973
974    // Take field
975    pub fn take_producer_id(&mut self) -> super::Peer::PeerId {
976        self.producer_id.take().unwrap_or_else(|| super::Peer::PeerId::new())
977    }
978
979    // bytes previous_delta_dfs_hash = 3;
980
981
982    pub fn get_previous_delta_dfs_hash(&self) -> &[u8] {
983        &self.previous_delta_dfs_hash
984    }
985    pub fn clear_previous_delta_dfs_hash(&mut self) {
986        self.previous_delta_dfs_hash.clear();
987    }
988
989    // Param is passed by value, moved
990    pub fn set_previous_delta_dfs_hash(&mut self, v: ::std::vec::Vec<u8>) {
991        self.previous_delta_dfs_hash = v;
992    }
993
994    // Mutable pointer to the field.
995    // If field is not initialized, it is initialized with default value first.
996    pub fn mut_previous_delta_dfs_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
997        &mut self.previous_delta_dfs_hash
998    }
999
1000    // Take field
1001    pub fn take_previous_delta_dfs_hash(&mut self) -> ::std::vec::Vec<u8> {
1002        ::std::mem::replace(&mut self.previous_delta_dfs_hash, ::std::vec::Vec::new())
1003    }
1004}
1005
1006impl ::protobuf::Message for CandidateDeltaBroadcast {
1007    fn is_initialized(&self) -> bool {
1008        for v in &self.producer_id {
1009            if !v.is_initialized() {
1010                return false;
1011            }
1012        };
1013        true
1014    }
1015
1016    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1017        while !is.eof()? {
1018            let (field_number, wire_type) = is.read_tag_unpack()?;
1019            match field_number {
1020                1 => {
1021                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.hash)?;
1022                },
1023                2 => {
1024                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.producer_id)?;
1025                },
1026                3 => {
1027                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.previous_delta_dfs_hash)?;
1028                },
1029                _ => {
1030                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1031                },
1032            };
1033        }
1034        ::std::result::Result::Ok(())
1035    }
1036
1037    // Compute sizes of nested messages
1038    #[allow(unused_variables)]
1039    fn compute_size(&self) -> u32 {
1040        let mut my_size = 0;
1041        if !self.hash.is_empty() {
1042            my_size += ::protobuf::rt::bytes_size(1, &self.hash);
1043        }
1044        if let Some(ref v) = self.producer_id.as_ref() {
1045            let len = v.compute_size();
1046            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1047        }
1048        if !self.previous_delta_dfs_hash.is_empty() {
1049            my_size += ::protobuf::rt::bytes_size(3, &self.previous_delta_dfs_hash);
1050        }
1051        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1052        self.cached_size.set(my_size);
1053        my_size
1054    }
1055
1056    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1057        if !self.hash.is_empty() {
1058            os.write_bytes(1, &self.hash)?;
1059        }
1060        if let Some(ref v) = self.producer_id.as_ref() {
1061            os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1062            os.write_raw_varint32(v.get_cached_size())?;
1063            v.write_to_with_cached_sizes(os)?;
1064        }
1065        if !self.previous_delta_dfs_hash.is_empty() {
1066            os.write_bytes(3, &self.previous_delta_dfs_hash)?;
1067        }
1068        os.write_unknown_fields(self.get_unknown_fields())?;
1069        ::std::result::Result::Ok(())
1070    }
1071
1072    fn get_cached_size(&self) -> u32 {
1073        self.cached_size.get()
1074    }
1075
1076    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1077        &self.unknown_fields
1078    }
1079
1080    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1081        &mut self.unknown_fields
1082    }
1083
1084    fn as_any(&self) -> &dyn (::std::any::Any) {
1085        self as &dyn (::std::any::Any)
1086    }
1087    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1088        self as &mut dyn (::std::any::Any)
1089    }
1090    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1091        self
1092    }
1093
1094    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1095        Self::descriptor_static()
1096    }
1097
1098    fn new() -> CandidateDeltaBroadcast {
1099        CandidateDeltaBroadcast::new()
1100    }
1101
1102    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1103        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
1104            lock: ::protobuf::lazy::ONCE_INIT,
1105            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
1106        };
1107        unsafe {
1108            descriptor.get(|| {
1109                let mut fields = ::std::vec::Vec::new();
1110                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1111                    "hash",
1112                    |m: &CandidateDeltaBroadcast| { &m.hash },
1113                    |m: &mut CandidateDeltaBroadcast| { &mut m.hash },
1114                ));
1115                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Peer::PeerId>>(
1116                    "producer_id",
1117                    |m: &CandidateDeltaBroadcast| { &m.producer_id },
1118                    |m: &mut CandidateDeltaBroadcast| { &mut m.producer_id },
1119                ));
1120                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1121                    "previous_delta_dfs_hash",
1122                    |m: &CandidateDeltaBroadcast| { &m.previous_delta_dfs_hash },
1123                    |m: &mut CandidateDeltaBroadcast| { &mut m.previous_delta_dfs_hash },
1124                ));
1125                ::protobuf::reflect::MessageDescriptor::new::<CandidateDeltaBroadcast>(
1126                    "CandidateDeltaBroadcast",
1127                    fields,
1128                    file_descriptor_proto()
1129                )
1130            })
1131        }
1132    }
1133
1134    fn default_instance() -> &'static CandidateDeltaBroadcast {
1135        static mut instance: ::protobuf::lazy::Lazy<CandidateDeltaBroadcast> = ::protobuf::lazy::Lazy {
1136            lock: ::protobuf::lazy::ONCE_INIT,
1137            ptr: 0 as *const CandidateDeltaBroadcast,
1138        };
1139        unsafe {
1140            instance.get(CandidateDeltaBroadcast::new)
1141        }
1142    }
1143}
1144
1145impl ::protobuf::Clear for CandidateDeltaBroadcast {
1146    fn clear(&mut self) {
1147        self.hash.clear();
1148        self.producer_id.clear();
1149        self.previous_delta_dfs_hash.clear();
1150        self.unknown_fields.clear();
1151    }
1152}
1153
1154impl ::std::fmt::Debug for CandidateDeltaBroadcast {
1155    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1156        ::protobuf::text_format::fmt(self, f)
1157    }
1158}
1159
1160impl ::protobuf::reflect::ProtobufValue for CandidateDeltaBroadcast {
1161    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
1162        ::protobuf::reflect::ProtobufValueRef::Message(self)
1163    }
1164}
1165
1166#[derive(PartialEq,Clone,Default)]
1167pub struct FavouriteDeltaBroadcast {
1168    // message fields
1169    pub candidate: ::protobuf::SingularPtrField<CandidateDeltaBroadcast>,
1170    pub voter_id: ::protobuf::SingularPtrField<super::Peer::PeerId>,
1171    // special fields
1172    pub unknown_fields: ::protobuf::UnknownFields,
1173    pub cached_size: ::protobuf::CachedSize,
1174}
1175
1176impl<'a> ::std::default::Default for &'a FavouriteDeltaBroadcast {
1177    fn default() -> &'a FavouriteDeltaBroadcast {
1178        <FavouriteDeltaBroadcast as ::protobuf::Message>::default_instance()
1179    }
1180}
1181
1182impl FavouriteDeltaBroadcast {
1183    pub fn new() -> FavouriteDeltaBroadcast {
1184        ::std::default::Default::default()
1185    }
1186
1187    // .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1;
1188
1189
1190    pub fn get_candidate(&self) -> &CandidateDeltaBroadcast {
1191        self.candidate.as_ref().unwrap_or_else(|| CandidateDeltaBroadcast::default_instance())
1192    }
1193    pub fn clear_candidate(&mut self) {
1194        self.candidate.clear();
1195    }
1196
1197    pub fn has_candidate(&self) -> bool {
1198        self.candidate.is_some()
1199    }
1200
1201    // Param is passed by value, moved
1202    pub fn set_candidate(&mut self, v: CandidateDeltaBroadcast) {
1203        self.candidate = ::protobuf::SingularPtrField::some(v);
1204    }
1205
1206    // Mutable pointer to the field.
1207    // If field is not initialized, it is initialized with default value first.
1208    pub fn mut_candidate(&mut self) -> &mut CandidateDeltaBroadcast {
1209        if self.candidate.is_none() {
1210            self.candidate.set_default();
1211        }
1212        self.candidate.as_mut().unwrap()
1213    }
1214
1215    // Take field
1216    pub fn take_candidate(&mut self) -> CandidateDeltaBroadcast {
1217        self.candidate.take().unwrap_or_else(|| CandidateDeltaBroadcast::new())
1218    }
1219
1220    // .Catalyst.Protocol.Peer.PeerId voter_id = 2;
1221
1222
1223    pub fn get_voter_id(&self) -> &super::Peer::PeerId {
1224        self.voter_id.as_ref().unwrap_or_else(|| super::Peer::PeerId::default_instance())
1225    }
1226    pub fn clear_voter_id(&mut self) {
1227        self.voter_id.clear();
1228    }
1229
1230    pub fn has_voter_id(&self) -> bool {
1231        self.voter_id.is_some()
1232    }
1233
1234    // Param is passed by value, moved
1235    pub fn set_voter_id(&mut self, v: super::Peer::PeerId) {
1236        self.voter_id = ::protobuf::SingularPtrField::some(v);
1237    }
1238
1239    // Mutable pointer to the field.
1240    // If field is not initialized, it is initialized with default value first.
1241    pub fn mut_voter_id(&mut self) -> &mut super::Peer::PeerId {
1242        if self.voter_id.is_none() {
1243            self.voter_id.set_default();
1244        }
1245        self.voter_id.as_mut().unwrap()
1246    }
1247
1248    // Take field
1249    pub fn take_voter_id(&mut self) -> super::Peer::PeerId {
1250        self.voter_id.take().unwrap_or_else(|| super::Peer::PeerId::new())
1251    }
1252}
1253
1254impl ::protobuf::Message for FavouriteDeltaBroadcast {
1255    fn is_initialized(&self) -> bool {
1256        for v in &self.candidate {
1257            if !v.is_initialized() {
1258                return false;
1259            }
1260        };
1261        for v in &self.voter_id {
1262            if !v.is_initialized() {
1263                return false;
1264            }
1265        };
1266        true
1267    }
1268
1269    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1270        while !is.eof()? {
1271            let (field_number, wire_type) = is.read_tag_unpack()?;
1272            match field_number {
1273                1 => {
1274                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.candidate)?;
1275                },
1276                2 => {
1277                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.voter_id)?;
1278                },
1279                _ => {
1280                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1281                },
1282            };
1283        }
1284        ::std::result::Result::Ok(())
1285    }
1286
1287    // Compute sizes of nested messages
1288    #[allow(unused_variables)]
1289    fn compute_size(&self) -> u32 {
1290        let mut my_size = 0;
1291        if let Some(ref v) = self.candidate.as_ref() {
1292            let len = v.compute_size();
1293            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1294        }
1295        if let Some(ref v) = self.voter_id.as_ref() {
1296            let len = v.compute_size();
1297            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1298        }
1299        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1300        self.cached_size.set(my_size);
1301        my_size
1302    }
1303
1304    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1305        if let Some(ref v) = self.candidate.as_ref() {
1306            os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1307            os.write_raw_varint32(v.get_cached_size())?;
1308            v.write_to_with_cached_sizes(os)?;
1309        }
1310        if let Some(ref v) = self.voter_id.as_ref() {
1311            os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1312            os.write_raw_varint32(v.get_cached_size())?;
1313            v.write_to_with_cached_sizes(os)?;
1314        }
1315        os.write_unknown_fields(self.get_unknown_fields())?;
1316        ::std::result::Result::Ok(())
1317    }
1318
1319    fn get_cached_size(&self) -> u32 {
1320        self.cached_size.get()
1321    }
1322
1323    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1324        &self.unknown_fields
1325    }
1326
1327    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1328        &mut self.unknown_fields
1329    }
1330
1331    fn as_any(&self) -> &dyn (::std::any::Any) {
1332        self as &dyn (::std::any::Any)
1333    }
1334    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1335        self as &mut dyn (::std::any::Any)
1336    }
1337    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1338        self
1339    }
1340
1341    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1342        Self::descriptor_static()
1343    }
1344
1345    fn new() -> FavouriteDeltaBroadcast {
1346        FavouriteDeltaBroadcast::new()
1347    }
1348
1349    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1350        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
1351            lock: ::protobuf::lazy::ONCE_INIT,
1352            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
1353        };
1354        unsafe {
1355            descriptor.get(|| {
1356                let mut fields = ::std::vec::Vec::new();
1357                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CandidateDeltaBroadcast>>(
1358                    "candidate",
1359                    |m: &FavouriteDeltaBroadcast| { &m.candidate },
1360                    |m: &mut FavouriteDeltaBroadcast| { &mut m.candidate },
1361                ));
1362                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Peer::PeerId>>(
1363                    "voter_id",
1364                    |m: &FavouriteDeltaBroadcast| { &m.voter_id },
1365                    |m: &mut FavouriteDeltaBroadcast| { &mut m.voter_id },
1366                ));
1367                ::protobuf::reflect::MessageDescriptor::new::<FavouriteDeltaBroadcast>(
1368                    "FavouriteDeltaBroadcast",
1369                    fields,
1370                    file_descriptor_proto()
1371                )
1372            })
1373        }
1374    }
1375
1376    fn default_instance() -> &'static FavouriteDeltaBroadcast {
1377        static mut instance: ::protobuf::lazy::Lazy<FavouriteDeltaBroadcast> = ::protobuf::lazy::Lazy {
1378            lock: ::protobuf::lazy::ONCE_INIT,
1379            ptr: 0 as *const FavouriteDeltaBroadcast,
1380        };
1381        unsafe {
1382            instance.get(FavouriteDeltaBroadcast::new)
1383        }
1384    }
1385}
1386
1387impl ::protobuf::Clear for FavouriteDeltaBroadcast {
1388    fn clear(&mut self) {
1389        self.candidate.clear();
1390        self.voter_id.clear();
1391        self.unknown_fields.clear();
1392    }
1393}
1394
1395impl ::std::fmt::Debug for FavouriteDeltaBroadcast {
1396    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1397        ::protobuf::text_format::fmt(self, f)
1398    }
1399}
1400
1401impl ::protobuf::reflect::ProtobufValue for FavouriteDeltaBroadcast {
1402    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
1403        ::protobuf::reflect::ProtobufValueRef::Message(self)
1404    }
1405}
1406
1407#[derive(PartialEq,Clone,Default)]
1408pub struct DeltaDfsHashBroadcast {
1409    // message fields
1410    pub delta_dfs_hash: ::std::vec::Vec<u8>,
1411    pub previous_delta_dfs_hash: ::std::vec::Vec<u8>,
1412    // special fields
1413    pub unknown_fields: ::protobuf::UnknownFields,
1414    pub cached_size: ::protobuf::CachedSize,
1415}
1416
1417impl<'a> ::std::default::Default for &'a DeltaDfsHashBroadcast {
1418    fn default() -> &'a DeltaDfsHashBroadcast {
1419        <DeltaDfsHashBroadcast as ::protobuf::Message>::default_instance()
1420    }
1421}
1422
1423impl DeltaDfsHashBroadcast {
1424    pub fn new() -> DeltaDfsHashBroadcast {
1425        ::std::default::Default::default()
1426    }
1427
1428    // bytes delta_dfs_hash = 1;
1429
1430
1431    pub fn get_delta_dfs_hash(&self) -> &[u8] {
1432        &self.delta_dfs_hash
1433    }
1434    pub fn clear_delta_dfs_hash(&mut self) {
1435        self.delta_dfs_hash.clear();
1436    }
1437
1438    // Param is passed by value, moved
1439    pub fn set_delta_dfs_hash(&mut self, v: ::std::vec::Vec<u8>) {
1440        self.delta_dfs_hash = v;
1441    }
1442
1443    // Mutable pointer to the field.
1444    // If field is not initialized, it is initialized with default value first.
1445    pub fn mut_delta_dfs_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
1446        &mut self.delta_dfs_hash
1447    }
1448
1449    // Take field
1450    pub fn take_delta_dfs_hash(&mut self) -> ::std::vec::Vec<u8> {
1451        ::std::mem::replace(&mut self.delta_dfs_hash, ::std::vec::Vec::new())
1452    }
1453
1454    // bytes previous_delta_dfs_hash = 2;
1455
1456
1457    pub fn get_previous_delta_dfs_hash(&self) -> &[u8] {
1458        &self.previous_delta_dfs_hash
1459    }
1460    pub fn clear_previous_delta_dfs_hash(&mut self) {
1461        self.previous_delta_dfs_hash.clear();
1462    }
1463
1464    // Param is passed by value, moved
1465    pub fn set_previous_delta_dfs_hash(&mut self, v: ::std::vec::Vec<u8>) {
1466        self.previous_delta_dfs_hash = v;
1467    }
1468
1469    // Mutable pointer to the field.
1470    // If field is not initialized, it is initialized with default value first.
1471    pub fn mut_previous_delta_dfs_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
1472        &mut self.previous_delta_dfs_hash
1473    }
1474
1475    // Take field
1476    pub fn take_previous_delta_dfs_hash(&mut self) -> ::std::vec::Vec<u8> {
1477        ::std::mem::replace(&mut self.previous_delta_dfs_hash, ::std::vec::Vec::new())
1478    }
1479}
1480
1481impl ::protobuf::Message for DeltaDfsHashBroadcast {
1482    fn is_initialized(&self) -> bool {
1483        true
1484    }
1485
1486    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1487        while !is.eof()? {
1488            let (field_number, wire_type) = is.read_tag_unpack()?;
1489            match field_number {
1490                1 => {
1491                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.delta_dfs_hash)?;
1492                },
1493                2 => {
1494                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.previous_delta_dfs_hash)?;
1495                },
1496                _ => {
1497                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1498                },
1499            };
1500        }
1501        ::std::result::Result::Ok(())
1502    }
1503
1504    // Compute sizes of nested messages
1505    #[allow(unused_variables)]
1506    fn compute_size(&self) -> u32 {
1507        let mut my_size = 0;
1508        if !self.delta_dfs_hash.is_empty() {
1509            my_size += ::protobuf::rt::bytes_size(1, &self.delta_dfs_hash);
1510        }
1511        if !self.previous_delta_dfs_hash.is_empty() {
1512            my_size += ::protobuf::rt::bytes_size(2, &self.previous_delta_dfs_hash);
1513        }
1514        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1515        self.cached_size.set(my_size);
1516        my_size
1517    }
1518
1519    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1520        if !self.delta_dfs_hash.is_empty() {
1521            os.write_bytes(1, &self.delta_dfs_hash)?;
1522        }
1523        if !self.previous_delta_dfs_hash.is_empty() {
1524            os.write_bytes(2, &self.previous_delta_dfs_hash)?;
1525        }
1526        os.write_unknown_fields(self.get_unknown_fields())?;
1527        ::std::result::Result::Ok(())
1528    }
1529
1530    fn get_cached_size(&self) -> u32 {
1531        self.cached_size.get()
1532    }
1533
1534    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1535        &self.unknown_fields
1536    }
1537
1538    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1539        &mut self.unknown_fields
1540    }
1541
1542    fn as_any(&self) -> &dyn (::std::any::Any) {
1543        self as &dyn (::std::any::Any)
1544    }
1545    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1546        self as &mut dyn (::std::any::Any)
1547    }
1548    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1549        self
1550    }
1551
1552    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1553        Self::descriptor_static()
1554    }
1555
1556    fn new() -> DeltaDfsHashBroadcast {
1557        DeltaDfsHashBroadcast::new()
1558    }
1559
1560    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1561        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
1562            lock: ::protobuf::lazy::ONCE_INIT,
1563            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
1564        };
1565        unsafe {
1566            descriptor.get(|| {
1567                let mut fields = ::std::vec::Vec::new();
1568                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1569                    "delta_dfs_hash",
1570                    |m: &DeltaDfsHashBroadcast| { &m.delta_dfs_hash },
1571                    |m: &mut DeltaDfsHashBroadcast| { &mut m.delta_dfs_hash },
1572                ));
1573                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1574                    "previous_delta_dfs_hash",
1575                    |m: &DeltaDfsHashBroadcast| { &m.previous_delta_dfs_hash },
1576                    |m: &mut DeltaDfsHashBroadcast| { &mut m.previous_delta_dfs_hash },
1577                ));
1578                ::protobuf::reflect::MessageDescriptor::new::<DeltaDfsHashBroadcast>(
1579                    "DeltaDfsHashBroadcast",
1580                    fields,
1581                    file_descriptor_proto()
1582                )
1583            })
1584        }
1585    }
1586
1587    fn default_instance() -> &'static DeltaDfsHashBroadcast {
1588        static mut instance: ::protobuf::lazy::Lazy<DeltaDfsHashBroadcast> = ::protobuf::lazy::Lazy {
1589            lock: ::protobuf::lazy::ONCE_INIT,
1590            ptr: 0 as *const DeltaDfsHashBroadcast,
1591        };
1592        unsafe {
1593            instance.get(DeltaDfsHashBroadcast::new)
1594        }
1595    }
1596}
1597
1598impl ::protobuf::Clear for DeltaDfsHashBroadcast {
1599    fn clear(&mut self) {
1600        self.delta_dfs_hash.clear();
1601        self.previous_delta_dfs_hash.clear();
1602        self.unknown_fields.clear();
1603    }
1604}
1605
1606impl ::std::fmt::Debug for DeltaDfsHashBroadcast {
1607    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1608        ::protobuf::text_format::fmt(self, f)
1609    }
1610}
1611
1612impl ::protobuf::reflect::ProtobufValue for DeltaDfsHashBroadcast {
1613    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
1614        ::protobuf::reflect::ProtobufValueRef::Message(self)
1615    }
1616}
1617
1618static file_descriptor_proto_data: &'static [u8] = b"\
1619    \n\nWire.proto\x12\x16Catalyst.Protocol.Wire\x1a\x12Cryptography.proto\
1620    \x1a\nPeer.proto\x1a\x11Transaction.proto\x1a\x1fgoogle/protobuf/timesta\
1621    mp.proto\"\xd3\x01\n\x14ProtocolErrorMessage\x12G\n\tsignature\x18\x01\
1622    \x20\x01(\x0b2).Catalyst.Protocol.Cryptography.SignatureR\tsignature\x12\
1623    7\n\x07peer_id\x18\x02\x20\x01(\x0b2\x1e.Catalyst.Protocol.Peer.PeerIdR\
1624    \x06peerId\x12%\n\x0ecorrelation_id\x18\x03\x20\x01(\x0cR\rcorrelationId\
1625    \x12\x12\n\x04code\x18\x04\x20\x01(\x05R\x04code\"\xeb\x01\n\x0fProtocol\
1626    Message\x127\n\x07peer_id\x18\x01\x20\x01(\x0b2\x1e.Catalyst.Protocol.Pe\
1627    er.PeerIdR\x06peerId\x12%\n\x0ecorrelation_id\x18\x02\x20\x01(\x0cR\rcor\
1628    relationId\x12\x19\n\x08type_url\x18\x03\x20\x01(\tR\x07typeUrl\x12\x14\
1629    \n\x05value\x18\x04\x20\x01(\x0cR\x05value\x12G\n\tsignature\x18\x05\x20\
1630    \x01(\x0b2).Catalyst.Protocol.Cryptography.SignatureR\tsignature\"e\n\
1631    \x14TransactionBroadcast\x12M\n\x0cpublic_entry\x18\x01\x20\x01(\x0b2*.C\
1632    atalyst.Protocol.Transaction.PublicEntryR\x0bpublicEntry\"\xa5\x01\n\x17\
1633    CandidateDeltaBroadcast\x12\x12\n\x04hash\x18\x01\x20\x01(\x0cR\x04hash\
1634    \x12?\n\x0bproducer_id\x18\x02\x20\x01(\x0b2\x1e.Catalyst.Protocol.Peer.\
1635    PeerIdR\nproducerId\x125\n\x17previous_delta_dfs_hash\x18\x03\x20\x01(\
1636    \x0cR\x14previousDeltaDfsHash\"\xa3\x01\n\x17FavouriteDeltaBroadcast\x12\
1637    M\n\tcandidate\x18\x01\x20\x01(\x0b2/.Catalyst.Protocol.Wire.CandidateDe\
1638    ltaBroadcastR\tcandidate\x129\n\x08voter_id\x18\x02\x20\x01(\x0b2\x1e.Ca\
1639    talyst.Protocol.Peer.PeerIdR\x07voterId\"t\n\x15DeltaDfsHashBroadcast\
1640    \x12$\n\x0edelta_dfs_hash\x18\x01\x20\x01(\x0cR\x0cdeltaDfsHash\x125\n\
1641    \x17previous_delta_dfs_hash\x18\x02\x20\x01(\x0cR\x14previousDeltaDfsHas\
1642    hB\x02P\x01J\xaf\x1b\n\x06\x12\x04\x13\0E\x01\n\xdf\x06\n\x01\x0c\x12\
1643    \x03\x13\0\x122\xd4\x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\x20Ne\
1644    twork\n\n\x20This\x20file\x20is\x20part\x20of\x20Catalyst.Network.Protoc\
1645    ol.Protobuffs\x20<https://github.com/catalyst-network/protocol-protobuff\
1646    s>\n\n\x20Catalyst.Network.Protocol.Protobuffs\x20is\x20free\x20software\
1647    :\x20you\x20can\x20redistribute\x20it\x20and/or\x20modify\n\x20it\x20und\
1648    er\x20the\x20terms\x20of\x20the\x20GNU\x20General\x20Public\x20License\
1649    \x20as\x20published\x20by\n\x20the\x20Free\x20Software\x20Foundation,\
1650    \x20either\x20version\x202\x20of\x20the\x20License,\x20or\n\x20(at\x20yo\
1651    ur\x20option)\x20any\x20later\x20version.\n\x20\n\x20Catalyst.Network.Pr\
1652    otocol.Protobuffs\x20is\x20distributed\x20in\x20the\x20hope\x20that\x20i\
1653    t\x20will\x20be\x20useful,\n\x20but\x20WITHOUT\x20ANY\x20WARRANTY;\x20wi\
1654    thout\x20even\x20the\x20implied\x20warranty\x20of\n\x20MERCHANTABILITY\
1655    \x20or\x20FITNESS\x20FOR\x20A\x20PARTICULAR\x20PURPOSE.\x20See\x20the\n\
1656    \x20GNU\x20General\x20Public\x20License\x20for\x20more\x20details.\n\x20\
1657    \n\x20You\x20should\x20have\x20received\x20a\x20copy\x20of\x20the\x20GNU\
1658    \x20General\x20Public\x20License\n\x20along\x20with\x20Catalyst.Network.\
1659    Protocol.Protobuffs\x20If\x20not,\x20see\x20<https://www.gnu.org/license\
1660    s/>.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\
1661    \x15\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\n\x06\x08\
1662    \xe7\x07\0\x02\0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\x02\0\x01\
1663    \x12\x03\x15\x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\x1d!\n\t\
1664    \n\x02\x03\0\x12\x03\x17\x07\x1b\n\t\n\x02\x03\x01\x12\x03\x18\x07\x13\n\
1665    \t\n\x02\x03\x02\x12\x03\x19\x07\x1a\n\t\n\x02\x03\x03\x12\x03\x1a\x07(\
1666    \n\x08\n\x01\x02\x12\x03\x1c\x08\x1e\nc\n\x02\x04\0\x12\x04!\0&\x01\x1aW\
1667    *\n\x20Provides\x20a\x20network\x20error\x20message,\x20for\x20when\x20a\
1668    \x20node\x20cant\x20send/\x20build\x20a\x20valid\x20response\n\n\n\n\x03\
1669    \x04\0\x01\x12\x03!\x08\x1c\n\x0b\n\x04\x04\0\x02\0\x12\x03\"\x08-\n\r\n\
1670    \x05\x04\0\x02\0\x04\x12\x04\"\x08!\x1e\n\x0c\n\x05\x04\0\x02\0\x06\x12\
1671    \x03\"\x08\x1e\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\"\x1f(\n\x0c\n\x05\
1672    \x04\0\x02\0\x03\x12\x03\"+,\n\x0b\n\x04\x04\0\x02\x01\x12\x03#\x04\x1c\
1673    \n\r\n\x05\x04\0\x02\x01\x04\x12\x04#\x04\"-\n\x0c\n\x05\x04\0\x02\x01\
1674    \x06\x12\x03#\x04\x0f\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03#\x10\x17\n\
1675    \x0c\n\x05\x04\0\x02\x01\x03\x12\x03#\x1a\x1b\n\x0b\n\x04\x04\0\x02\x02\
1676    \x12\x03$\x04\x1d\n\r\n\x05\x04\0\x02\x02\x04\x12\x04$\x04#\x1c\n\x0c\n\
1677    \x05\x04\0\x02\x02\x05\x12\x03$\x04\t\n\x0c\n\x05\x04\0\x02\x02\x01\x12\
1678    \x03$\n\x18\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03$\x1b\x1c\n\x0b\n\x04\
1679    \x04\0\x02\x03\x12\x03%\x04\x13\n\r\n\x05\x04\0\x02\x03\x04\x12\x04%\x04\
1680    $\x1d\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03%\x04\t\n\x0c\n\x05\x04\0\x02\
1681    \x03\x01\x12\x03%\n\x0e\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03%\x11\x12\n\
1682    \x95\x01\n\x02\x04\x01\x12\x04+\01\x01\x1a\x88\x01*\n\x20A\x20wrapper\
1683    \x20around\x20the\x20service\x20message,\x20the\x20contents\x20of\x20ser\
1684    vice\x20message\x20should\x20be\x20signed\x20by\x20the\x20sender\x20to\
1685    \x20avoid\x20tampering\x20mid-transit.\n\n\n\n\x03\x04\x01\x01\x12\x03+\
1686    \x08\x17\n%\n\x04\x04\x01\x02\0\x12\x03,\x04\x1c\"\x18\x20is\x20the\x20s\
1687    ender's\x20peerId\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04,\x04+\x19\n\x0c\
1688    \n\x05\x04\x01\x02\0\x06\x12\x03,\x04\x0f\n\x0c\n\x05\x04\x01\x02\0\x01\
1689    \x12\x03,\x10\x17\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03,\x1a\x1b\nT\n\
1690    \x04\x04\x01\x02\x01\x12\x03-\x04\x1d\"G\x20is\x20a\x2016\x20bytes\x20gu\
1691    id\x20used\x20to\x20match\x20responses\x20to\x20their\x20original\x20req\
1692    uests\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04-\x04,\x1c\n\x0c\n\x05\x04\
1693    \x01\x02\x01\x05\x12\x03-\x04\t\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03-\
1694    \n\x18\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03-\x1b\x1c\n\x88\x01\n\x04\
1695    \x04\x01\x02\x02\x12\x03.\x04\x18\"{\x20is\x20the\x20shortened\x20protoc\
1696    ol\x20name\x20of\x20the\x20message\x20type\x20being\x20encoded\x20in\x20\
1697    the\x20value\x20field\x20(cf\x20Any\x20from\x20protobuf\x20WellKnownType\
1698    s)\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04.\x04-\x1d\n\x0c\n\x05\x04\x01\
1699    \x02\x02\x05\x12\x03.\x04\n\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03.\x0b\
1700    \x13\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03.\x16\x17\ne\n\x04\x04\x01\
1701    \x02\x03\x12\x03/\x04\x14\"X\x20is\x20the\x20actual\x20value\x20of\x20th\
1702    e\x20message\x20being\x20wrapped\x20(cf\x20Any\x20from\x20protobuf\x20We\
1703    llKnownTypes)\n\n\r\n\x05\x04\x01\x02\x03\x04\x12\x04/\x04.\x18\n\x0c\n\
1704    \x05\x04\x01\x02\x03\x05\x12\x03/\x04\t\n\x0c\n\x05\x04\x01\x02\x03\x01\
1705    \x12\x03/\n\x0f\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03/\x12\x13\n1\n\
1706    \x04\x04\x01\x02\x04\x12\x030\x04)\"$\x20is\x20the\x20ed25519ph\x20conte\
1707    xt\x20signature\n\n\r\n\x05\x04\x01\x02\x04\x04\x12\x040\x04/\x14\n\x0c\
1708    \n\x05\x04\x01\x02\x04\x06\x12\x030\x04\x1a\n\x0c\n\x05\x04\x01\x02\x04\
1709    \x01\x12\x030\x1b$\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x030'(\n\n\n\x02\
1710    \x04\x02\x12\x043\05\x01\n\n\n\x03\x04\x02\x01\x12\x033\x08\x1c\n3\n\x04\
1711    \x04\x02\x02\0\x12\x034\x081\"&\x200\x20field\x20for\x20confidential\x20\
1712    transaction\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x044\x083\x1e\n\x0c\n\x05\
1713    \x04\x02\x02\0\x06\x12\x034\x08\x1f\n\x0c\n\x05\x04\x02\x02\0\x01\x12\
1714    \x034\x20,\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x034/0\n\n\n\x02\x04\x03\
1715    \x12\x047\x01;\x01\n\n\n\x03\x04\x03\x01\x12\x037\t\x20\n\x8c\x01\n\x04\
1716    \x04\x03\x02\0\x12\x038\x08\x17\"\x7f\x20The\x20hash\x20computed\x20for\
1717    \x20the\x20current\x20delta\x20produced\x20by\x20ProducerId.\x20This\x20\
1718    is\x20meant\x20to\x20be\x20used\x20when\x20voting\x20for\x20most\x20popu\
1719    lar\x20hashes.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x048\x087\"\n\x0c\n\x05\
1720    \x04\x03\x02\0\x05\x12\x038\x08\r\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x038\
1721    \x0e\x12\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x038\x15\x16\n;\n\x04\x04\x03\
1722    \x02\x01\x12\x039\x08$\".\x20Identifier\x20of\x20the\x20producer\x20of\
1723    \x20the\x20candidate.\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x049\x088\x17\
1724    \n\x0c\n\x05\x04\x03\x02\x01\x06\x12\x039\x08\x13\n\x0c\n\x05\x04\x03\
1725    \x02\x01\x01\x12\x039\x14\x1f\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x039\"\
1726    #\nU\n\x04\x04\x03\x02\x02\x12\x03:\x08*\"H\x20The\x20DFS\x20address\x20\
1727    for\x20the\x20content\x20of\x20the\x20delta\x20preceding\x20this\x20cand\
1728    idate.\n\n\r\n\x05\x04\x03\x02\x02\x04\x12\x04:\x089$\n\x0c\n\x05\x04\
1729    \x03\x02\x02\x05\x12\x03:\x08\r\n\x0c\n\x05\x04\x03\x02\x02\x01\x12\x03:\
1730    \x0e%\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03:()\n\n\n\x02\x04\x04\x12\
1731    \x04=\0@\x01\n\n\n\x03\x04\x04\x01\x12\x03=\x08\x1f\nM\n\x04\x04\x04\x02\
1732    \0\x12\x03>\x08.\"@\x20The\x20candidate\x20favoured\x20by\x20the\x20vote\
1733    r\x20broadcasting\x20this\x20message.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\
1734    \x04>\x08=!\n\x0c\n\x05\x04\x04\x02\0\x06\x12\x03>\x08\x1f\n\x0c\n\x05\
1735    \x04\x04\x02\0\x01\x12\x03>\x20)\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03>,\
1736    -\nP\n\x04\x04\x04\x02\x01\x12\x03?\x08!\"C\x20The\x20PeerId\x20of\x20th\
1737    e\x20participant\x20submitting\x20its\x20vote\x20to\x20the\x20network.\n\
1738    \n\r\n\x05\x04\x04\x02\x01\x04\x12\x04?\x08>.\n\x0c\n\x05\x04\x04\x02\
1739    \x01\x06\x12\x03?\x08\x13\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03?\x14\
1740    \x1c\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03?\x1f\x20\n\n\n\x02\x04\x05\
1741    \x12\x04B\x01E\x01\n\n\n\x03\x04\x05\x01\x12\x03B\t\x1e\nW\n\x04\x04\x05\
1742    \x02\0\x12\x03C\x08!\"J\x20The\x20DFS\x20address\x20at\x20which\x20the\
1743    \x20full\x20content\x20of\x20the\x20delta\x20can\x20be\x20retrieved.\n\n\
1744    \r\n\x05\x04\x05\x02\0\x04\x12\x04C\x08B\x20\n\x0c\n\x05\x04\x05\x02\0\
1745    \x05\x12\x03C\x08\r\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03C\x0e\x1c\n\x0c\
1746    \n\x05\x04\x05\x02\0\x03\x12\x03C\x1f\x20\nU\n\x04\x04\x05\x02\x01\x12\
1747    \x03D\x08*\"H\x20The\x20DFS\x20address\x20for\x20the\x20content\x20of\
1748    \x20the\x20delta\x20preceding\x20this\x20candidate.\n\n\r\n\x05\x04\x05\
1749    \x02\x01\x04\x12\x04D\x08C!\n\x0c\n\x05\x04\x05\x02\x01\x05\x12\x03D\x08\
1750    \r\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03D\x0e%\n\x0c\n\x05\x04\x05\x02\
1751    \x01\x03\x12\x03D()b\x06proto3\
1752";
1753
1754static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
1755    lock: ::protobuf::lazy::ONCE_INIT,
1756    ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
1757};
1758
1759fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1760    ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
1761}
1762
1763pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1764    unsafe {
1765        file_descriptor_proto_lazy.get(|| {
1766            parse_descriptor_proto()
1767        })
1768    }
1769}