Run rustfmt, rust version 1.45.0

This commit is contained in:
Sasha Hilton 2020-07-22 16:35:05 +01:00
parent 258db6ba42
commit 74ad7231ba
11 changed files with 9487 additions and 5333 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -26,7 +26,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
/// of protobuf runtime. /// of protobuf runtime.
// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; // const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0;
#[derive(PartialEq,Clone,Default)] #[derive(PartialEq, Clone, Default)]
pub struct ClientIssue { pub struct ClientIssue {
// message fields // message fields
level: ::std::option::Option<ClientIssue_Level>, level: ::std::option::Option<ClientIssue_Level>,
@ -50,7 +50,6 @@ impl ClientIssue {
// optional .ClientIssue.Level level = 1; // optional .ClientIssue.Level level = 1;
pub fn get_level(&self) -> ClientIssue_Level { pub fn get_level(&self) -> ClientIssue_Level {
self.level.unwrap_or(ClientIssue_Level::LEVEL_UNKNOWN) self.level.unwrap_or(ClientIssue_Level::LEVEL_UNKNOWN)
} }
@ -69,7 +68,6 @@ impl ClientIssue {
// optional .ClientIssue.Code code = 2; // optional .ClientIssue.Code code = 2;
pub fn get_code(&self) -> ClientIssue_Code { pub fn get_code(&self) -> ClientIssue_Code {
self.code.unwrap_or(ClientIssue_Code::CODE_UNKNOWN) self.code.unwrap_or(ClientIssue_Code::CODE_UNKNOWN)
} }
@ -88,7 +86,6 @@ impl ClientIssue {
// optional int32 repeatCount = 3; // optional int32 repeatCount = 3;
pub fn get_repeatCount(&self) -> i32 { pub fn get_repeatCount(&self) -> i32 {
self.repeatCount.unwrap_or(0) self.repeatCount.unwrap_or(0)
} }
@ -111,26 +108,44 @@ impl ::protobuf::Message for ClientIssue {
true true
} }
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { fn merge_from(
&mut self,
is: &mut ::protobuf::CodedInputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? { while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?; let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number { match field_number {
1 => { 1 => ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.level, 1, &mut self.unknown_fields)? wire_type,
}, is,
2 => { &mut self.level,
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 2, &mut self.unknown_fields)? 1,
}, &mut self.unknown_fields,
)?,
2 => ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(
wire_type,
is,
&mut self.code,
2,
&mut self.unknown_fields,
)?,
3 => { 3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint { if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(
wire_type,
));
} }
let tmp = is.read_int32()?; let tmp = is.read_int32()?;
self.repeatCount = ::std::option::Option::Some(tmp); self.repeatCount = ::std::option::Option::Some(tmp);
}, }
_ => { _ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; ::protobuf::rt::read_unknown_or_skip_group(
}, field_number,
wire_type,
is,
self.mut_unknown_fields(),
)?;
}
}; };
} }
::std::result::Result::Ok(()) ::std::result::Result::Ok(())
@ -154,7 +169,10 @@ impl ::protobuf::Message for ClientIssue {
my_size my_size
} }
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { fn write_to_with_cached_sizes(
&self,
os: &mut ::protobuf::CodedOutputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.level { if let Some(v) = self.level {
os.write_enum(1, v.value())?; os.write_enum(1, v.value())?;
} }
@ -199,29 +217,39 @@ impl ::protobuf::Message for ClientIssue {
} }
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe { unsafe {
descriptor.get(|| { descriptor.get(|| {
let mut fields = ::std::vec::Vec::new(); let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientIssue_Level>>( fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeEnum<ClientIssue_Level>,
>(
"level", "level",
|m: &ClientIssue| { &m.level }, |m: &ClientIssue| &m.level,
|m: &mut ClientIssue| { &mut m.level }, |m: &mut ClientIssue| &mut m.level,
)); ));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientIssue_Code>>( fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeEnum<ClientIssue_Code>,
>(
"code", "code",
|m: &ClientIssue| { &m.code }, |m: &ClientIssue| &m.code,
|m: &mut ClientIssue| { &mut m.code }, |m: &mut ClientIssue| &mut m.code,
)); ));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeInt32,
>(
"repeatCount", "repeatCount",
|m: &ClientIssue| { &m.repeatCount }, |m: &ClientIssue| &m.repeatCount,
|m: &mut ClientIssue| { &mut m.repeatCount }, |m: &mut ClientIssue| &mut m.repeatCount,
)); ));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ClientIssue>( ::protobuf::reflect::MessageDescriptor::new_pb_name::<ClientIssue>(
"ClientIssue", "ClientIssue",
fields, fields,
file_descriptor_proto() file_descriptor_proto(),
) )
}) })
} }
@ -229,9 +257,7 @@ impl ::protobuf::Message for ClientIssue {
fn default_instance() -> &'static ClientIssue { fn default_instance() -> &'static ClientIssue {
static mut instance: ::protobuf::lazy::Lazy<ClientIssue> = ::protobuf::lazy::Lazy::INIT; static mut instance: ::protobuf::lazy::Lazy<ClientIssue> = ::protobuf::lazy::Lazy::INIT;
unsafe { unsafe { instance.get(ClientIssue::new) }
instance.get(ClientIssue::new)
}
} }
} }
@ -256,7 +282,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientIssue {
} }
} }
#[derive(Clone,PartialEq,Eq,Debug,Hash)] #[derive(Clone, PartialEq, Eq, Debug, Hash)]
pub enum ClientIssue_Level { pub enum ClientIssue_Level {
LEVEL_UNKNOWN = 0, LEVEL_UNKNOWN = 0,
LEVEL_DEBUG = 1, LEVEL_DEBUG = 1,
@ -279,7 +305,7 @@ impl ::protobuf::ProtobufEnum for ClientIssue_Level {
3 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_NOTICE), 3 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_NOTICE),
4 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_WARNING), 4 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_WARNING),
5 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_ERROR), 5 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_ERROR),
_ => ::std::option::Option::None _ => ::std::option::Option::None,
} }
} }
@ -296,17 +322,20 @@ impl ::protobuf::ProtobufEnum for ClientIssue_Level {
} }
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe { unsafe {
descriptor.get(|| { descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientIssue_Level>("ClientIssue.Level", file_descriptor_proto()) ::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientIssue_Level>(
"ClientIssue.Level",
file_descriptor_proto(),
)
}) })
} }
} }
} }
impl ::std::marker::Copy for ClientIssue_Level { impl ::std::marker::Copy for ClientIssue_Level {}
}
impl ::std::default::Default for ClientIssue_Level { impl ::std::default::Default for ClientIssue_Level {
fn default() -> Self { fn default() -> Self {
@ -320,7 +349,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientIssue_Level {
} }
} }
#[derive(Clone,PartialEq,Eq,Debug,Hash)] #[derive(Clone, PartialEq, Eq, Debug, Hash)]
pub enum ClientIssue_Code { pub enum ClientIssue_Code {
CODE_UNKNOWN = 0, CODE_UNKNOWN = 0,
CODE_INDEX_OUT_OF_BOUNDS = 1, CODE_INDEX_OUT_OF_BOUNDS = 1,
@ -343,7 +372,7 @@ impl ::protobuf::ProtobufEnum for ClientIssue_Code {
3 => ::std::option::Option::Some(ClientIssue_Code::CODE_CACHED_CHANGE), 3 => ::std::option::Option::Some(ClientIssue_Code::CODE_CACHED_CHANGE),
4 => ::std::option::Option::Some(ClientIssue_Code::CODE_OFFLINE_CHANGE), 4 => ::std::option::Option::Some(ClientIssue_Code::CODE_OFFLINE_CHANGE),
5 => ::std::option::Option::Some(ClientIssue_Code::CODE_CONCURRENT_CHANGE), 5 => ::std::option::Option::Some(ClientIssue_Code::CODE_CONCURRENT_CHANGE),
_ => ::std::option::Option::None _ => ::std::option::Option::None,
} }
} }
@ -360,17 +389,20 @@ impl ::protobuf::ProtobufEnum for ClientIssue_Code {
} }
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe { unsafe {
descriptor.get(|| { descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientIssue_Code>("ClientIssue.Code", file_descriptor_proto()) ::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientIssue_Code>(
"ClientIssue.Code",
file_descriptor_proto(),
)
}) })
} }
} }
} }
impl ::std::marker::Copy for ClientIssue_Code { impl ::std::marker::Copy for ClientIssue_Code {}
}
impl ::std::default::Default for ClientIssue_Code { impl ::std::default::Default for ClientIssue_Code {
fn default() -> Self { fn default() -> Self {
@ -384,7 +416,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientIssue_Code {
} }
} }
#[derive(PartialEq,Clone,Default)] #[derive(PartialEq, Clone, Default)]
pub struct ClientResolveAction { pub struct ClientResolveAction {
// message fields // message fields
code: ::std::option::Option<ClientResolveAction_Code>, code: ::std::option::Option<ClientResolveAction_Code>,
@ -407,7 +439,6 @@ impl ClientResolveAction {
// optional .ClientResolveAction.Code code = 1; // optional .ClientResolveAction.Code code = 1;
pub fn get_code(&self) -> ClientResolveAction_Code { pub fn get_code(&self) -> ClientResolveAction_Code {
self.code.unwrap_or(ClientResolveAction_Code::CODE_UNKNOWN) self.code.unwrap_or(ClientResolveAction_Code::CODE_UNKNOWN)
} }
@ -426,9 +457,9 @@ impl ClientResolveAction {
// optional .ClientResolveAction.Initiator initiator = 2; // optional .ClientResolveAction.Initiator initiator = 2;
pub fn get_initiator(&self) -> ClientResolveAction_Initiator { pub fn get_initiator(&self) -> ClientResolveAction_Initiator {
self.initiator.unwrap_or(ClientResolveAction_Initiator::INITIATOR_UNKNOWN) self.initiator
.unwrap_or(ClientResolveAction_Initiator::INITIATOR_UNKNOWN)
} }
pub fn clear_initiator(&mut self) { pub fn clear_initiator(&mut self) {
self.initiator = ::std::option::Option::None; self.initiator = ::std::option::Option::None;
@ -449,19 +480,35 @@ impl ::protobuf::Message for ClientResolveAction {
true true
} }
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { fn merge_from(
&mut self,
is: &mut ::protobuf::CodedInputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? { while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?; let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number { match field_number {
1 => { 1 => ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 1, &mut self.unknown_fields)? wire_type,
}, is,
2 => { &mut self.code,
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.initiator, 2, &mut self.unknown_fields)? 1,
}, &mut self.unknown_fields,
)?,
2 => ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(
wire_type,
is,
&mut self.initiator,
2,
&mut self.unknown_fields,
)?,
_ => { _ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; ::protobuf::rt::read_unknown_or_skip_group(
}, field_number,
wire_type,
is,
self.mut_unknown_fields(),
)?;
}
}; };
} }
::std::result::Result::Ok(()) ::std::result::Result::Ok(())
@ -482,7 +529,10 @@ impl ::protobuf::Message for ClientResolveAction {
my_size my_size
} }
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { fn write_to_with_cached_sizes(
&self,
os: &mut ::protobuf::CodedOutputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.code { if let Some(v) = self.code {
os.write_enum(1, v.value())?; os.write_enum(1, v.value())?;
} }
@ -524,34 +574,40 @@ impl ::protobuf::Message for ClientResolveAction {
} }
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe { unsafe {
descriptor.get(|| { descriptor.get(|| {
let mut fields = ::std::vec::Vec::new(); let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Code>>( fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Code>,
>(
"code", "code",
|m: &ClientResolveAction| { &m.code }, |m: &ClientResolveAction| &m.code,
|m: &mut ClientResolveAction| { &mut m.code }, |m: &mut ClientResolveAction| &mut m.code,
)); ));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Initiator>>( fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Initiator>,
>(
"initiator", "initiator",
|m: &ClientResolveAction| { &m.initiator }, |m: &ClientResolveAction| &m.initiator,
|m: &mut ClientResolveAction| { &mut m.initiator }, |m: &mut ClientResolveAction| &mut m.initiator,
)); ));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ClientResolveAction>( ::protobuf::reflect::MessageDescriptor::new_pb_name::<ClientResolveAction>(
"ClientResolveAction", "ClientResolveAction",
fields, fields,
file_descriptor_proto() file_descriptor_proto(),
) )
}) })
} }
} }
fn default_instance() -> &'static ClientResolveAction { fn default_instance() -> &'static ClientResolveAction {
static mut instance: ::protobuf::lazy::Lazy<ClientResolveAction> = ::protobuf::lazy::Lazy::INIT; static mut instance: ::protobuf::lazy::Lazy<ClientResolveAction> =
unsafe { ::protobuf::lazy::Lazy::INIT;
instance.get(ClientResolveAction::new) unsafe { instance.get(ClientResolveAction::new) }
}
} }
} }
@ -575,7 +631,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientResolveAction {
} }
} }
#[derive(Clone,PartialEq,Eq,Debug,Hash)] #[derive(Clone, PartialEq, Eq, Debug, Hash)]
pub enum ClientResolveAction_Code { pub enum ClientResolveAction_Code {
CODE_UNKNOWN = 0, CODE_UNKNOWN = 0,
CODE_NO_ACTION = 1, CODE_NO_ACTION = 1,
@ -600,7 +656,7 @@ impl ::protobuf::ProtobufEnum for ClientResolveAction_Code {
4 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISCARD_LOCAL_CHANGES), 4 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISCARD_LOCAL_CHANGES),
5 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_SEND_DUMP), 5 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_SEND_DUMP),
6 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISPLAY_ERROR_MESSAGE), 6 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISPLAY_ERROR_MESSAGE),
_ => ::std::option::Option::None _ => ::std::option::Option::None,
} }
} }
@ -618,17 +674,20 @@ impl ::protobuf::ProtobufEnum for ClientResolveAction_Code {
} }
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe { unsafe {
descriptor.get(|| { descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientResolveAction_Code>("ClientResolveAction.Code", file_descriptor_proto()) ::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientResolveAction_Code>(
"ClientResolveAction.Code",
file_descriptor_proto(),
)
}) })
} }
} }
} }
impl ::std::marker::Copy for ClientResolveAction_Code { impl ::std::marker::Copy for ClientResolveAction_Code {}
}
impl ::std::default::Default for ClientResolveAction_Code { impl ::std::default::Default for ClientResolveAction_Code {
fn default() -> Self { fn default() -> Self {
@ -642,7 +701,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientResolveAction_Code {
} }
} }
#[derive(Clone,PartialEq,Eq,Debug,Hash)] #[derive(Clone, PartialEq, Eq, Debug, Hash)]
pub enum ClientResolveAction_Initiator { pub enum ClientResolveAction_Initiator {
INITIATOR_UNKNOWN = 0, INITIATOR_UNKNOWN = 0,
INITIATOR_SERVER = 1, INITIATOR_SERVER = 1,
@ -659,7 +718,7 @@ impl ::protobuf::ProtobufEnum for ClientResolveAction_Initiator {
0 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_UNKNOWN), 0 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_UNKNOWN),
1 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_SERVER), 1 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_SERVER),
2 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_CLIENT), 2 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_CLIENT),
_ => ::std::option::Option::None _ => ::std::option::Option::None,
} }
} }
@ -673,17 +732,20 @@ impl ::protobuf::ProtobufEnum for ClientResolveAction_Initiator {
} }
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe { unsafe {
descriptor.get(|| { descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientResolveAction_Initiator>("ClientResolveAction.Initiator", file_descriptor_proto()) ::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientResolveAction_Initiator>(
"ClientResolveAction.Initiator",
file_descriptor_proto(),
)
}) })
} }
} }
} }
impl ::std::marker::Copy for ClientResolveAction_Initiator { impl ::std::marker::Copy for ClientResolveAction_Initiator {}
}
impl ::std::default::Default for ClientResolveAction_Initiator { impl ::std::default::Default for ClientResolveAction_Initiator {
fn default() -> Self { fn default() -> Self {
@ -719,16 +781,14 @@ static file_descriptor_proto_data: &'static [u8] = b"\
\x10\x01\x12\x14\n\x10INITIATOR_CLIENT\x10\x02\x1a\0:\0B\0b\x06proto2\ \x10\x01\x12\x14\n\x10INITIATOR_CLIENT\x10\x02\x1a\0:\0B\0b\x06proto2\
"; ";
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<
::protobuf::descriptor::FileDescriptorProto,
> = ::protobuf::lazy::Lazy::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
} }
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
unsafe { unsafe { file_descriptor_proto_lazy.get(|| parse_descriptor_proto()) }
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}
} }

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -26,7 +26,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
/// of protobuf runtime. /// of protobuf runtime.
// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; // const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0;
#[derive(PartialEq,Clone,Default)] #[derive(PartialEq, Clone, Default)]
pub struct Subscription { pub struct Subscription {
// message fields // message fields
uri: ::protobuf::SingularField<::std::string::String>, uri: ::protobuf::SingularField<::std::string::String>,
@ -50,7 +50,6 @@ impl Subscription {
// optional string uri = 1; // optional string uri = 1;
pub fn get_uri(&self) -> &str { pub fn get_uri(&self) -> &str {
match self.uri.as_ref() { match self.uri.as_ref() {
Some(v) => &v, Some(v) => &v,
@ -81,12 +80,13 @@ impl Subscription {
// Take field // Take field
pub fn take_uri(&mut self) -> ::std::string::String { pub fn take_uri(&mut self) -> ::std::string::String {
self.uri.take().unwrap_or_else(|| ::std::string::String::new()) self.uri
.take()
.unwrap_or_else(|| ::std::string::String::new())
} }
// optional int32 expiry = 2; // optional int32 expiry = 2;
pub fn get_expiry(&self) -> i32 { pub fn get_expiry(&self) -> i32 {
self.expiry.unwrap_or(0) self.expiry.unwrap_or(0)
} }
@ -105,7 +105,6 @@ impl Subscription {
// optional int32 status_code = 3; // optional int32 status_code = 3;
pub fn get_status_code(&self) -> i32 { pub fn get_status_code(&self) -> i32 {
self.status_code.unwrap_or(0) self.status_code.unwrap_or(0)
} }
@ -128,30 +127,42 @@ impl ::protobuf::Message for Subscription {
true true
} }
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { fn merge_from(
&mut self,
is: &mut ::protobuf::CodedInputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? { while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?; let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number { match field_number {
1 => { 1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.uri)?; ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.uri)?;
}, }
2 => { 2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint { if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(
wire_type,
));
} }
let tmp = is.read_int32()?; let tmp = is.read_int32()?;
self.expiry = ::std::option::Option::Some(tmp); self.expiry = ::std::option::Option::Some(tmp);
}, }
3 => { 3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint { if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(
wire_type,
));
} }
let tmp = is.read_int32()?; let tmp = is.read_int32()?;
self.status_code = ::std::option::Option::Some(tmp); self.status_code = ::std::option::Option::Some(tmp);
}, }
_ => { _ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; ::protobuf::rt::read_unknown_or_skip_group(
}, field_number,
wire_type,
is,
self.mut_unknown_fields(),
)?;
}
}; };
} }
::std::result::Result::Ok(()) ::std::result::Result::Ok(())
@ -175,7 +186,10 @@ impl ::protobuf::Message for Subscription {
my_size my_size
} }
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { fn write_to_with_cached_sizes(
&self,
os: &mut ::protobuf::CodedOutputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.uri.as_ref() { if let Some(ref v) = self.uri.as_ref() {
os.write_string(1, &v)?; os.write_string(1, &v)?;
} }
@ -220,29 +234,41 @@ impl ::protobuf::Message for Subscription {
} }
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe { unsafe {
descriptor.get(|| { descriptor.get(|| {
let mut fields = ::std::vec::Vec::new(); let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( fields.push(
"uri", ::protobuf::reflect::accessor::make_singular_field_accessor::<
|m: &Subscription| { &m.uri }, _,
|m: &mut Subscription| { &mut m.uri }, ::protobuf::types::ProtobufTypeString,
)); >(
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( "uri",
|m: &Subscription| &m.uri,
|m: &mut Subscription| &mut m.uri,
),
);
fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeInt32,
>(
"expiry", "expiry",
|m: &Subscription| { &m.expiry }, |m: &Subscription| &m.expiry,
|m: &mut Subscription| { &mut m.expiry }, |m: &mut Subscription| &mut m.expiry,
)); ));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeInt32,
>(
"status_code", "status_code",
|m: &Subscription| { &m.status_code }, |m: &Subscription| &m.status_code,
|m: &mut Subscription| { &mut m.status_code }, |m: &mut Subscription| &mut m.status_code,
)); ));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Subscription>( ::protobuf::reflect::MessageDescriptor::new_pb_name::<Subscription>(
"Subscription", "Subscription",
fields, fields,
file_descriptor_proto() file_descriptor_proto(),
) )
}) })
} }
@ -250,9 +276,7 @@ impl ::protobuf::Message for Subscription {
fn default_instance() -> &'static Subscription { fn default_instance() -> &'static Subscription {
static mut instance: ::protobuf::lazy::Lazy<Subscription> = ::protobuf::lazy::Lazy::INIT; static mut instance: ::protobuf::lazy::Lazy<Subscription> = ::protobuf::lazy::Lazy::INIT;
unsafe { unsafe { instance.get(Subscription::new) }
instance.get(Subscription::new)
}
} }
} }
@ -283,16 +307,14 @@ static file_descriptor_proto_data: &'static [u8] = b"\
us_code\x18\x03\x20\x01(\x05B\0:\0B\0b\x06proto2\ us_code\x18\x03\x20\x01(\x05B\0:\0B\0b\x06proto2\
"; ";
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<
::protobuf::descriptor::FileDescriptorProto,
> = ::protobuf::lazy::Lazy::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
} }
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
unsafe { unsafe { file_descriptor_proto_lazy.get(|| parse_descriptor_proto()) }
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}
} }

File diff suppressed because it is too large Load diff