// This file is generated by rust-protobuf 3.5.0. Do not edit // .proto file is parsed by protoc --rust_out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 #![allow(unknown_lints)] #![allow(clippy::all)] #![allow(unused_attributes)] #![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(unused_results)] #![allow(unused_mut)] //! Generated file from `yats-grpc.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_5_0; // @@protoc_insertion_point(message:yats.Metric) #[derive(PartialEq,Clone,Default,Debug)] pub struct Metric { // message fields // @@protoc_insertion_point(field:yats.Metric.id_client) pub id_client: ::std::string::String, // @@protoc_insertion_point(field:yats.Metric.mtime) pub mtime: i64, // @@protoc_insertion_point(field:yats.Metric.name) pub name: ::std::string::String, // @@protoc_insertion_point(field:yats.Metric.value) pub value: ::std::string::String, // special fields // @@protoc_insertion_point(special_field:yats.Metric.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Metric { fn default() -> &'a Metric { ::default_instance() } } impl Metric { pub fn new() -> Metric { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(4); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "id_client", |m: &Metric| { &m.id_client }, |m: &mut Metric| { &mut m.id_client }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "mtime", |m: &Metric| { &m.mtime }, |m: &mut Metric| { &mut m.mtime }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "name", |m: &Metric| { &m.name }, |m: &mut Metric| { &mut m.name }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "value", |m: &Metric| { &m.value }, |m: &mut Metric| { &mut m.value }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Metric", fields, oneofs, ) } } impl ::protobuf::Message for Metric { const NAME: &'static str = "Metric"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 10 => { self.id_client = is.read_string()?; }, 16 => { self.mtime = is.read_int64()?; }, 26 => { self.name = is.read_string()?; }, 34 => { self.value = is.read_string()?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.id_client.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.id_client); } if self.mtime != 0 { my_size += ::protobuf::rt::int64_size(2, self.mtime); } if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.name); } if !self.value.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.value); } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.id_client.is_empty() { os.write_string(1, &self.id_client)?; } if self.mtime != 0 { os.write_int64(2, self.mtime)?; } if !self.name.is_empty() { os.write_string(3, &self.name)?; } if !self.value.is_empty() { os.write_string(4, &self.value)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> Metric { Metric::new() } fn clear(&mut self) { self.id_client.clear(); self.mtime = 0; self.name.clear(); self.value.clear(); self.special_fields.clear(); } fn default_instance() -> &'static Metric { static instance: Metric = Metric { id_client: ::std::string::String::new(), mtime: 0, name: ::std::string::String::new(), value: ::std::string::String::new(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for Metric { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("Metric").unwrap()).clone() } } impl ::std::fmt::Display for Metric { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Metric { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } // @@protoc_insertion_point(message:yats.Event) #[derive(PartialEq,Clone,Default,Debug)] pub struct Event { // message fields // @@protoc_insertion_point(field:yats.Event.id_client) pub id_client: ::std::string::String, // @@protoc_insertion_point(field:yats.Event.etime) pub etime: i64, // @@protoc_insertion_point(field:yats.Event.name) pub name: ::std::string::String, // special fields // @@protoc_insertion_point(special_field:yats.Event.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Event { fn default() -> &'a Event { ::default_instance() } } impl Event { pub fn new() -> Event { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(3); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "id_client", |m: &Event| { &m.id_client }, |m: &mut Event| { &mut m.id_client }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "etime", |m: &Event| { &m.etime }, |m: &mut Event| { &mut m.etime }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "name", |m: &Event| { &m.name }, |m: &mut Event| { &mut m.name }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Event", fields, oneofs, ) } } impl ::protobuf::Message for Event { const NAME: &'static str = "Event"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 10 => { self.id_client = is.read_string()?; }, 16 => { self.etime = is.read_int64()?; }, 26 => { self.name = is.read_string()?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.id_client.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.id_client); } if self.etime != 0 { my_size += ::protobuf::rt::int64_size(2, self.etime); } if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.name); } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.id_client.is_empty() { os.write_string(1, &self.id_client)?; } if self.etime != 0 { os.write_int64(2, self.etime)?; } if !self.name.is_empty() { os.write_string(3, &self.name)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> Event { Event::new() } fn clear(&mut self) { self.id_client.clear(); self.etime = 0; self.name.clear(); self.special_fields.clear(); } fn default_instance() -> &'static Event { static instance: Event = Event { id_client: ::std::string::String::new(), etime: 0, name: ::std::string::String::new(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for Event { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("Event").unwrap()).clone() } } impl ::std::fmt::Display for Event { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Event { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } // @@protoc_insertion_point(message:yats.CreateMetricRequest) #[derive(PartialEq,Clone,Default,Debug)] pub struct CreateMetricRequest { // message fields // @@protoc_insertion_point(field:yats.CreateMetricRequest.metric) pub metric: ::protobuf::MessageField, // special fields // @@protoc_insertion_point(special_field:yats.CreateMetricRequest.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateMetricRequest { fn default() -> &'a CreateMetricRequest { ::default_instance() } } impl CreateMetricRequest { pub fn new() -> CreateMetricRequest { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(1); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Metric>( "metric", |m: &CreateMetricRequest| { &m.metric }, |m: &mut CreateMetricRequest| { &mut m.metric }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "CreateMetricRequest", fields, oneofs, ) } } impl ::protobuf::Message for CreateMetricRequest { const NAME: &'static str = "CreateMetricRequest"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 10 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.metric)?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if let Some(v) = self.metric.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let Some(v) = self.metric.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> CreateMetricRequest { CreateMetricRequest::new() } fn clear(&mut self) { self.metric.clear(); self.special_fields.clear(); } fn default_instance() -> &'static CreateMetricRequest { static instance: CreateMetricRequest = CreateMetricRequest { metric: ::protobuf::MessageField::none(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for CreateMetricRequest { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateMetricRequest").unwrap()).clone() } } impl ::std::fmt::Display for CreateMetricRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateMetricRequest { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } // @@protoc_insertion_point(message:yats.CreateMetricResponse) #[derive(PartialEq,Clone,Default,Debug)] pub struct CreateMetricResponse { // message fields // @@protoc_insertion_point(field:yats.CreateMetricResponse.metric) pub metric: ::protobuf::MessageField, // special fields // @@protoc_insertion_point(special_field:yats.CreateMetricResponse.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateMetricResponse { fn default() -> &'a CreateMetricResponse { ::default_instance() } } impl CreateMetricResponse { pub fn new() -> CreateMetricResponse { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(1); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Metric>( "metric", |m: &CreateMetricResponse| { &m.metric }, |m: &mut CreateMetricResponse| { &mut m.metric }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "CreateMetricResponse", fields, oneofs, ) } } impl ::protobuf::Message for CreateMetricResponse { const NAME: &'static str = "CreateMetricResponse"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 10 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.metric)?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if let Some(v) = self.metric.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let Some(v) = self.metric.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> CreateMetricResponse { CreateMetricResponse::new() } fn clear(&mut self) { self.metric.clear(); self.special_fields.clear(); } fn default_instance() -> &'static CreateMetricResponse { static instance: CreateMetricResponse = CreateMetricResponse { metric: ::protobuf::MessageField::none(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for CreateMetricResponse { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateMetricResponse").unwrap()).clone() } } impl ::std::fmt::Display for CreateMetricResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateMetricResponse { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } // @@protoc_insertion_point(message:yats.CreateEventRequest) #[derive(PartialEq,Clone,Default,Debug)] pub struct CreateEventRequest { // message fields // @@protoc_insertion_point(field:yats.CreateEventRequest.event) pub event: ::protobuf::MessageField, // special fields // @@protoc_insertion_point(special_field:yats.CreateEventRequest.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateEventRequest { fn default() -> &'a CreateEventRequest { ::default_instance() } } impl CreateEventRequest { pub fn new() -> CreateEventRequest { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(1); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Event>( "event", |m: &CreateEventRequest| { &m.event }, |m: &mut CreateEventRequest| { &mut m.event }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "CreateEventRequest", fields, oneofs, ) } } impl ::protobuf::Message for CreateEventRequest { const NAME: &'static str = "CreateEventRequest"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 10 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.event)?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if let Some(v) = self.event.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let Some(v) = self.event.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> CreateEventRequest { CreateEventRequest::new() } fn clear(&mut self) { self.event.clear(); self.special_fields.clear(); } fn default_instance() -> &'static CreateEventRequest { static instance: CreateEventRequest = CreateEventRequest { event: ::protobuf::MessageField::none(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for CreateEventRequest { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateEventRequest").unwrap()).clone() } } impl ::std::fmt::Display for CreateEventRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateEventRequest { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } // @@protoc_insertion_point(message:yats.CreateEventResponse) #[derive(PartialEq,Clone,Default,Debug)] pub struct CreateEventResponse { // message fields // @@protoc_insertion_point(field:yats.CreateEventResponse.event) pub event: ::protobuf::MessageField, // special fields // @@protoc_insertion_point(special_field:yats.CreateEventResponse.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateEventResponse { fn default() -> &'a CreateEventResponse { ::default_instance() } } impl CreateEventResponse { pub fn new() -> CreateEventResponse { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(1); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Event>( "event", |m: &CreateEventResponse| { &m.event }, |m: &mut CreateEventResponse| { &mut m.event }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "CreateEventResponse", fields, oneofs, ) } } impl ::protobuf::Message for CreateEventResponse { const NAME: &'static str = "CreateEventResponse"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 10 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.event)?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if let Some(v) = self.event.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let Some(v) = self.event.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> CreateEventResponse { CreateEventResponse::new() } fn clear(&mut self) { self.event.clear(); self.special_fields.clear(); } fn default_instance() -> &'static CreateEventResponse { static instance: CreateEventResponse = CreateEventResponse { event: ::protobuf::MessageField::none(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for CreateEventResponse { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateEventResponse").unwrap()).clone() } } impl ::std::fmt::Display for CreateEventResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateEventResponse { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x0fyats-grpc.proto\x12\x04yats\"e\n\x06Metric\x12\x1b\n\tid_client\ \x18\x01\x20\x01(\tR\x08idClient\x12\x14\n\x05mtime\x18\x02\x20\x01(\x03\ R\x05mtime\x12\x12\n\x04name\x18\x03\x20\x01(\tR\x04name\x12\x14\n\x05va\ lue\x18\x04\x20\x01(\tR\x05value\"N\n\x05Event\x12\x1b\n\tid_client\x18\ \x01\x20\x01(\tR\x08idClient\x12\x14\n\x05etime\x18\x02\x20\x01(\x03R\ \x05etime\x12\x12\n\x04name\x18\x03\x20\x01(\tR\x04name\";\n\x13CreateMe\ tricRequest\x12$\n\x06metric\x18\x01\x20\x01(\x0b2\x0c.yats.MetricR\x06m\ etric\"<\n\x14CreateMetricResponse\x12$\n\x06metric\x18\x01\x20\x01(\x0b\ 2\x0c.yats.MetricR\x06metric\"7\n\x12CreateEventRequest\x12!\n\x05event\ \x18\x01\x20\x01(\x0b2\x0b.yats.EventR\x05event\"8\n\x13CreateEventRespo\ nse\x12!\n\x05event\x18\x01\x20\x01(\x0b2\x0b.yats.EventR\x05event2\x9c\ \x01\n\x0fYatsGrpcService\x12E\n\x0cCreateMetric\x12\x19.yats.CreateMetr\ icRequest\x1a\x1a.yats.CreateMetricResponse\x12B\n\x0bCreateEvent\x12\ \x18.yats.CreateEventRequest\x1a\x19.yats.CreateEventResponseB'\n\x17com\ .kevwe.yats.protobufP\x01Z\nyats/protoJ\x8b\t\n\x06\x12\x04\n\01\x01\n\ \xc4\x01\n\x01\x0c\x12\x03\n\0\x122\xb9\x01*\n\x20Yats\x20-\x20yats\n\n\ \x20This\x20file\x20is\x20licensed\x20under\x20the\x20Affero\x20General\ \x20Public\x20License\x20version\x203\x20or\n\x20later.\x20See\x20the\ \x20COPYING\x20file.\n\n\x20@author\x20Paolo\x20Lulli\x20\n\ \x20@copyright\x20Paolo\x20Lulli\x202024\n\n\x08\n\x01\x02\x12\x03\x0b\0\ \r\n\x08\n\x01\x08\x12\x03\r\00\n\t\n\x02\x08\x01\x12\x03\r\00\n\x08\n\ \x01\x08\x12\x03\x0e\0\"\n\t\n\x02\x08\n\x12\x03\x0e\0\"\n\x08\n\x01\x08\ \x12\x03\x0f\0!\n\t\n\x02\x08\x0b\x12\x03\x0f\0!\n\n\n\x02\x04\0\x12\x04\ \x11\0\x16\x01\n\n\n\x03\x04\0\x01\x12\x03\x11\x08\x0e\n\x0b\n\x04\x04\0\ \x02\0\x12\x03\x12\x02\x17\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x12\x02\ \x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x12\t\x12\n\x0c\n\x05\x04\0\x02\ \0\x03\x12\x03\x12\x15\x16\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x13\x02\x12\ \n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x13\x02\x07\n\x0c\n\x05\x04\0\x02\ \x01\x01\x12\x03\x13\x08\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x13\x10\ \x11\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x14\x02\x12\n\x0c\n\x05\x04\0\x02\ \x02\x05\x12\x03\x14\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x14\t\ \r\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x14\x10\x11\n\x0b\n\x04\x04\0\ \x02\x03\x12\x03\x15\x02\x13\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03\x15\ \x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\x15\t\x0e\n\x0c\n\x05\x04\ \0\x02\x03\x03\x12\x03\x15\x11\x12\n\n\n\x02\x04\x01\x12\x04\x18\0\x1c\ \x01\n\n\n\x03\x04\x01\x01\x12\x03\x18\x08\r\n\x0b\n\x04\x04\x01\x02\0\ \x12\x03\x19\x02\x17\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\x19\x02\x08\n\ \x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x19\t\x12\n\x0c\n\x05\x04\x01\x02\0\ \x03\x12\x03\x19\x15\x16\n\x0b\n\x04\x04\x01\x02\x01\x12\x03\x1a\x02\x12\ \n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03\x1a\x02\x07\n\x0c\n\x05\x04\x01\ \x02\x01\x01\x12\x03\x1a\x08\r\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03\ \x1a\x10\x11\n\x0b\n\x04\x04\x01\x02\x02\x12\x03\x1b\x02\x12\n\x0c\n\x05\ \x04\x01\x02\x02\x05\x12\x03\x1b\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\ \x12\x03\x1b\t\r\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03\x1b\x10\x11\n\n\ \n\x02\x04\x02\x12\x04\x1e\0\x20\x01\n\n\n\x03\x04\x02\x01\x12\x03\x1e\ \x08\x1b\n\x0b\n\x04\x04\x02\x02\0\x12\x03\x1f\x02\x14\n\x0c\n\x05\x04\ \x02\x02\0\x06\x12\x03\x1f\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\ \x1f\t\x0f\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\x1f\x12\x13\n\n\n\x02\ \x04\x03\x12\x04\"\0$\x01\n\n\n\x03\x04\x03\x01\x12\x03\"\x08\x1c\n\x0b\ \n\x04\x04\x03\x02\0\x12\x03#\x02\x14\n\x0c\n\x05\x04\x03\x02\0\x06\x12\ \x03#\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03#\t\x0f\n\x0c\n\x05\ \x04\x03\x02\0\x03\x12\x03#\x12\x13\n\n\n\x02\x04\x04\x12\x04&\0(\x01\n\ \n\n\x03\x04\x04\x01\x12\x03&\x08\x1a\n\x0b\n\x04\x04\x04\x02\0\x12\x03'\ \x02\x12\n\x0c\n\x05\x04\x04\x02\0\x06\x12\x03'\x02\x07\n\x0c\n\x05\x04\ \x04\x02\0\x01\x12\x03'\x08\r\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03'\x10\ \x11\n\n\n\x02\x04\x05\x12\x04*\0,\x01\n\n\n\x03\x04\x05\x01\x12\x03*\ \x08\x1b\n\x0b\n\x04\x04\x05\x02\0\x12\x03+\x02\x12\n\x0c\n\x05\x04\x05\ \x02\0\x06\x12\x03+\x02\x07\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03+\x08\r\ \n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03+\x10\x11\n\n\n\x02\x06\0\x12\x04.\ \01\x01\n\n\n\x03\x06\0\x01\x12\x03.\x08\x17\n\x0b\n\x04\x06\0\x02\0\x12\ \x03/\x02G\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03/\x06\x12\n\x0c\n\x05\x06\ \0\x02\0\x02\x12\x03/\x13&\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03/1E\n\x0b\ \n\x04\x06\0\x02\x01\x12\x030\x02D\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03\ 0\x06\x11\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x030\x12$\n\x0c\n\x05\x06\0\ \x02\x01\x03\x12\x030/Bb\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); file_descriptor_proto_lazy.get(|| { ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() }) } /// `FileDescriptor` object which allows dynamic access to files pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); file_descriptor.get(|| { let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { let mut deps = ::std::vec::Vec::with_capacity(0); let mut messages = ::std::vec::Vec::with_capacity(6); messages.push(Metric::generated_message_descriptor_data()); messages.push(Event::generated_message_descriptor_data()); messages.push(CreateMetricRequest::generated_message_descriptor_data()); messages.push(CreateMetricResponse::generated_message_descriptor_data()); messages.push(CreateEventRequest::generated_message_descriptor_data()); messages.push(CreateEventResponse::generated_message_descriptor_data()); let mut enums = ::std::vec::Vec::with_capacity(0); ::protobuf::reflect::GeneratedFileDescriptor::new_generated( file_descriptor_proto(), deps, messages, enums, ) }); ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) }