#![allow(unknown_lints)]
#![allow(clippy::all)]
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unsafe_code)]
#![allow(unused_imports)]
#![allow(unused_results)]
use protobuf::Message as Message_imported_for_functions;
use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_8_1;
#[derive(PartialEq,Clone,Default)]
pub struct PeerNeighborsRequest {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PeerNeighborsRequest {
fn default() -> &'a PeerNeighborsRequest {
<PeerNeighborsRequest as ::protobuf::Message>::default_instance()
}
}
impl PeerNeighborsRequest {
pub fn new() -> PeerNeighborsRequest {
::std::default::Default::default()
}
}
impl ::protobuf::Message for PeerNeighborsRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PeerNeighborsRequest {
PeerNeighborsRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<PeerNeighborsRequest>(
"PeerNeighborsRequest",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static PeerNeighborsRequest {
static mut instance: ::protobuf::lazy::Lazy<PeerNeighborsRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const PeerNeighborsRequest,
};
unsafe {
instance.get(PeerNeighborsRequest::new)
}
}
}
impl ::protobuf::Clear for PeerNeighborsRequest {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PeerNeighborsRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PeerNeighborsRequest {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PeerNeighborsResponse {
pub peers: ::protobuf::RepeatedField<super::Peer::PeerId>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PeerNeighborsResponse {
fn default() -> &'a PeerNeighborsResponse {
<PeerNeighborsResponse as ::protobuf::Message>::default_instance()
}
}
impl PeerNeighborsResponse {
pub fn new() -> PeerNeighborsResponse {
::std::default::Default::default()
}
pub fn get_peers(&self) -> &[super::Peer::PeerId] {
&self.peers
}
pub fn clear_peers(&mut self) {
self.peers.clear();
}
pub fn set_peers(&mut self, v: ::protobuf::RepeatedField<super::Peer::PeerId>) {
self.peers = v;
}
pub fn mut_peers(&mut self) -> &mut ::protobuf::RepeatedField<super::Peer::PeerId> {
&mut self.peers
}
pub fn take_peers(&mut self) -> ::protobuf::RepeatedField<super::Peer::PeerId> {
::std::mem::replace(&mut self.peers, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for PeerNeighborsResponse {
fn is_initialized(&self) -> bool {
for v in &self.peers {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.peers)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.peers {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.peers {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PeerNeighborsResponse {
PeerNeighborsResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Peer::PeerId>>(
"peers",
|m: &PeerNeighborsResponse| { &m.peers },
|m: &mut PeerNeighborsResponse| { &mut m.peers },
));
::protobuf::reflect::MessageDescriptor::new::<PeerNeighborsResponse>(
"PeerNeighborsResponse",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static PeerNeighborsResponse {
static mut instance: ::protobuf::lazy::Lazy<PeerNeighborsResponse> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const PeerNeighborsResponse,
};
unsafe {
instance.get(PeerNeighborsResponse::new)
}
}
}
impl ::protobuf::Clear for PeerNeighborsResponse {
fn clear(&mut self) {
self.peers.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PeerNeighborsResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PeerNeighborsResponse {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PingRequest {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PingRequest {
fn default() -> &'a PingRequest {
<PingRequest as ::protobuf::Message>::default_instance()
}
}
impl PingRequest {
pub fn new() -> PingRequest {
::std::default::Default::default()
}
}
impl ::protobuf::Message for PingRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PingRequest {
PingRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<PingRequest>(
"PingRequest",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static PingRequest {
static mut instance: ::protobuf::lazy::Lazy<PingRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const PingRequest,
};
unsafe {
instance.get(PingRequest::new)
}
}
}
impl ::protobuf::Clear for PingRequest {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PingRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PingRequest {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PingResponse {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PingResponse {
fn default() -> &'a PingResponse {
<PingResponse as ::protobuf::Message>::default_instance()
}
}
impl PingResponse {
pub fn new() -> PingResponse {
::std::default::Default::default()
}
}
impl ::protobuf::Message for PingResponse {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> PingResponse {
PingResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<PingResponse>(
"PingResponse",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static PingResponse {
static mut instance: ::protobuf::lazy::Lazy<PingResponse> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const PingResponse,
};
unsafe {
instance.get(PingResponse::new)
}
}
}
impl ::protobuf::Clear for PingResponse {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PingResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PingResponse {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct LatestDeltaHashRequest {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a LatestDeltaHashRequest {
fn default() -> &'a LatestDeltaHashRequest {
<LatestDeltaHashRequest as ::protobuf::Message>::default_instance()
}
}
impl LatestDeltaHashRequest {
pub fn new() -> LatestDeltaHashRequest {
::std::default::Default::default()
}
}
impl ::protobuf::Message for LatestDeltaHashRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> LatestDeltaHashRequest {
LatestDeltaHashRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<LatestDeltaHashRequest>(
"LatestDeltaHashRequest",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static LatestDeltaHashRequest {
static mut instance: ::protobuf::lazy::Lazy<LatestDeltaHashRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const LatestDeltaHashRequest,
};
unsafe {
instance.get(LatestDeltaHashRequest::new)
}
}
}
impl ::protobuf::Clear for LatestDeltaHashRequest {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for LatestDeltaHashRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for LatestDeltaHashRequest {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct LatestDeltaHashResponse {
pub delta_hash: ::std::vec::Vec<u8>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a LatestDeltaHashResponse {
fn default() -> &'a LatestDeltaHashResponse {
<LatestDeltaHashResponse as ::protobuf::Message>::default_instance()
}
}
impl LatestDeltaHashResponse {
pub fn new() -> LatestDeltaHashResponse {
::std::default::Default::default()
}
pub fn get_delta_hash(&self) -> &[u8] {
&self.delta_hash
}
pub fn clear_delta_hash(&mut self) {
self.delta_hash.clear();
}
pub fn set_delta_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.delta_hash = v;
}
pub fn mut_delta_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.delta_hash
}
pub fn take_delta_hash(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.delta_hash, ::std::vec::Vec::new())
}
}
impl ::protobuf::Message for LatestDeltaHashResponse {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.delta_hash)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.delta_hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.delta_hash);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.delta_hash.is_empty() {
os.write_bytes(1, &self.delta_hash)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> LatestDeltaHashResponse {
LatestDeltaHashResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"delta_hash",
|m: &LatestDeltaHashResponse| { &m.delta_hash },
|m: &mut LatestDeltaHashResponse| { &mut m.delta_hash },
));
::protobuf::reflect::MessageDescriptor::new::<LatestDeltaHashResponse>(
"LatestDeltaHashResponse",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static LatestDeltaHashResponse {
static mut instance: ::protobuf::lazy::Lazy<LatestDeltaHashResponse> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const LatestDeltaHashResponse,
};
unsafe {
instance.get(LatestDeltaHashResponse::new)
}
}
}
impl ::protobuf::Clear for LatestDeltaHashResponse {
fn clear(&mut self) {
self.delta_hash.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for LatestDeltaHashResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for LatestDeltaHashResponse {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\nIPPN.proto\x12\x16Catalyst.Protocol.IPPN\x1a\nPeer.proto\"\x16\n\x14\
PeerNeighborsRequest\"M\n\x15PeerNeighborsResponse\x124\n\x05peers\x18\
\x01\x20\x03(\x0b2\x1e.Catalyst.Protocol.Peer.PeerIdR\x05peers\"\r\n\x0b\
PingRequest\"\x0e\n\x0cPingResponse\"\x18\n\x16LatestDeltaHashRequest\"8\
\n\x17LatestDeltaHashResponse\x12\x1d\n\ndelta_hash\x18\x01\x20\x01(\x0c\
R\tdeltaHashB\x02P\x01J\x9c\t\n\x06\x12\x04\x13\0)\x01\n\xdf\x06\n\x01\
\x0c\x12\x03\x13\0\x122\xd4\x06*\n\x20Copyright\x20(c)\x202019\x20Cataly\
st\x20Network\n\n\x20This\x20file\x20is\x20part\x20of\x20Catalyst.Networ\
k.Protocol.Protobuffs\x20<https://github.com/catalyst-network/protocol-p\
rotobuffs>\n\n\x20Catalyst.Network.Protocol.Protobuffs\x20is\x20free\x20\
software:\x20you\x20can\x20redistribute\x20it\x20and/or\x20modify\n\x20i\
t\x20under\x20the\x20terms\x20of\x20the\x20GNU\x20General\x20Public\x20L\
icense\x20as\x20published\x20by\n\x20the\x20Free\x20Software\x20Foundati\
on,\x20either\x20version\x202\x20of\x20the\x20License,\x20or\n\x20(at\
\x20your\x20option)\x20any\x20later\x20version.\n\x20\n\x20Catalyst.Netw\
ork.Protocol.Protobuffs\x20is\x20distributed\x20in\x20the\x20hope\x20tha\
t\x20it\x20will\x20be\x20useful,\n\x20but\x20WITHOUT\x20ANY\x20WARRANTY;\
\x20without\x20even\x20the\x20implied\x20warranty\x20of\n\x20MERCHANTABI\
LITY\x20or\x20FITNESS\x20FOR\x20A\x20PARTICULAR\x20PURPOSE.\x20See\x20th\
e\n\x20GNU\x20General\x20Public\x20License\x20for\x20more\x20details.\n\
\x20\n\x20You\x20should\x20have\x20received\x20a\x20copy\x20of\x20the\
\x20GNU\x20General\x20Public\x20License\n\x20along\x20with\x20Catalyst.N\
etwork.Protocol.Protobuffs\x20If\x20not,\x20see\x20<https://www.gnu.org/\
licenses/>.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\
\x15\0\"\n\x08\n\x01\x02\x12\x03\x17\0\x1f\n\t\n\x02\x03\0\x12\x03\x19\0\
\x14\n\t\n\x02\x04\0\x12\x03\x1b\0\x20\n\n\n\x03\x04\0\x01\x12\x03\x1b\
\x08\x1c\n\n\n\x02\x04\x01\x12\x04\x1d\0\x1f\x01\n\n\n\x03\x04\x01\x01\
\x12\x03\x1d\x08\x1d\n\x0b\n\x04\x04\x01\x02\0\x12\x03\x1e\x04#\n\x0c\n\
\x05\x04\x01\x02\0\x04\x12\x03\x1e\x04\x0c\n\x0c\n\x05\x04\x01\x02\0\x06\
\x12\x03\x1e\r\x18\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x1e\x19\x1e\n\
\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x1e!\"\n\t\n\x02\x04\x02\x12\x03!\0\
\x17\n\n\n\x03\x04\x02\x01\x12\x03!\x08\x13\n\t\n\x02\x04\x03\x12\x03#\0\
\x18\n\n\n\x03\x04\x03\x01\x12\x03#\x08\x14\n\t\n\x02\x04\x04\x12\x03%\0\
\"\n\n\n\x03\x04\x04\x01\x12\x03%\x08\x1e\n\n\n\x02\x04\x05\x12\x04'\0)\
\x01\n\n\n\x03\x04\x05\x01\x12\x03'\x08\x1f\n\x0b\n\x04\x04\x05\x02\0\
\x12\x03(\x04\x19\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03(\x04\t\n\x0c\n\
\x05\x04\x05\x02\0\x01\x12\x03(\n\x14\n\x0c\n\x05\x04\x05\x02\0\x03\x12\
\x03(\x17\x18b\x06proto3\
";
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
};
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
unsafe {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}
}