riemann_client 0.9.0

A Riemann client library
Documentation
// This file is generated by rust-protobuf 2.20.0. Do not edit
// @generated

// https://github.com/rust-lang/rust-clippy/issues/702
#![allow(unknown_lints)]
#![allow(clippy::all)]

#![allow(unused_attributes)]
#![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_imports)]
#![allow(unused_results)]
//! Generated file from `src/proto/mod.proto`

/// Generated files are compatible only with the same version
/// of protobuf runtime.
// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_20_0;

#[derive(PartialEq,Clone,Default)]
pub struct State {
    // message fields
    time: ::std::option::Option<i64>,
    state: ::protobuf::SingularField<::std::string::String>,
    service: ::protobuf::SingularField<::std::string::String>,
    host: ::protobuf::SingularField<::std::string::String>,
    description: ::protobuf::SingularField<::std::string::String>,
    once: ::std::option::Option<bool>,
    pub tags: ::protobuf::RepeatedField<::std::string::String>,
    ttl: ::std::option::Option<f32>,
    // special fields
    pub unknown_fields: ::protobuf::UnknownFields,
    pub cached_size: ::protobuf::CachedSize,
}

impl<'a> ::std::default::Default for &'a State {
    fn default() -> &'a State {
        <State as ::protobuf::Message>::default_instance()
    }
}

impl State {
    pub fn new() -> State {
        ::std::default::Default::default()
    }

    // optional int64 time = 1;


    pub fn get_time(&self) -> i64 {
        self.time.unwrap_or(0)
    }
    pub fn clear_time(&mut self) {
        self.time = ::std::option::Option::None;
    }

    pub fn has_time(&self) -> bool {
        self.time.is_some()
    }

    // Param is passed by value, moved
    pub fn set_time(&mut self, v: i64) {
        self.time = ::std::option::Option::Some(v);
    }

    // optional string state = 2;


    pub fn get_state(&self) -> &str {
        match self.state.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_state(&mut self) {
        self.state.clear();
    }

    pub fn has_state(&self) -> bool {
        self.state.is_some()
    }

    // Param is passed by value, moved
    pub fn set_state(&mut self, v: ::std::string::String) {
        self.state = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_state(&mut self) -> &mut ::std::string::String {
        if self.state.is_none() {
            self.state.set_default();
        }
        self.state.as_mut().unwrap()
    }

    // Take field
    pub fn take_state(&mut self) -> ::std::string::String {
        self.state.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional string service = 3;


    pub fn get_service(&self) -> &str {
        match self.service.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_service(&mut self) {
        self.service.clear();
    }

    pub fn has_service(&self) -> bool {
        self.service.is_some()
    }

    // Param is passed by value, moved
    pub fn set_service(&mut self, v: ::std::string::String) {
        self.service = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_service(&mut self) -> &mut ::std::string::String {
        if self.service.is_none() {
            self.service.set_default();
        }
        self.service.as_mut().unwrap()
    }

    // Take field
    pub fn take_service(&mut self) -> ::std::string::String {
        self.service.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional string host = 4;


    pub fn get_host(&self) -> &str {
        match self.host.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_host(&mut self) {
        self.host.clear();
    }

    pub fn has_host(&self) -> bool {
        self.host.is_some()
    }

    // Param is passed by value, moved
    pub fn set_host(&mut self, v: ::std::string::String) {
        self.host = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_host(&mut self) -> &mut ::std::string::String {
        if self.host.is_none() {
            self.host.set_default();
        }
        self.host.as_mut().unwrap()
    }

    // Take field
    pub fn take_host(&mut self) -> ::std::string::String {
        self.host.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional string description = 5;


    pub fn get_description(&self) -> &str {
        match self.description.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_description(&mut self) {
        self.description.clear();
    }

    pub fn has_description(&self) -> bool {
        self.description.is_some()
    }

    // Param is passed by value, moved
    pub fn set_description(&mut self, v: ::std::string::String) {
        self.description = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_description(&mut self) -> &mut ::std::string::String {
        if self.description.is_none() {
            self.description.set_default();
        }
        self.description.as_mut().unwrap()
    }

    // Take field
    pub fn take_description(&mut self) -> ::std::string::String {
        self.description.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional bool once = 6;


    pub fn get_once(&self) -> bool {
        self.once.unwrap_or(false)
    }
    pub fn clear_once(&mut self) {
        self.once = ::std::option::Option::None;
    }

    pub fn has_once(&self) -> bool {
        self.once.is_some()
    }

    // Param is passed by value, moved
    pub fn set_once(&mut self, v: bool) {
        self.once = ::std::option::Option::Some(v);
    }

    // repeated string tags = 7;


    pub fn get_tags(&self) -> &[::std::string::String] {
        &self.tags
    }
    pub fn clear_tags(&mut self) {
        self.tags.clear();
    }

    // Param is passed by value, moved
    pub fn set_tags(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
        self.tags = v;
    }

    // Mutable pointer to the field.
    pub fn mut_tags(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
        &mut self.tags
    }

    // Take field
    pub fn take_tags(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
        ::std::mem::replace(&mut self.tags, ::protobuf::RepeatedField::new())
    }

    // optional float ttl = 8;


    pub fn get_ttl(&self) -> f32 {
        self.ttl.unwrap_or(0.)
    }
    pub fn clear_ttl(&mut self) {
        self.ttl = ::std::option::Option::None;
    }

    pub fn has_ttl(&self) -> bool {
        self.ttl.is_some()
    }

    // Param is passed by value, moved
    pub fn set_ttl(&mut self, v: f32) {
        self.ttl = ::std::option::Option::Some(v);
    }
}

impl ::protobuf::Message for State {
    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 => {
                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_int64()?;
                    self.time = ::std::option::Option::Some(tmp);
                },
                2 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.state)?;
                },
                3 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.service)?;
                },
                4 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.host)?;
                },
                5 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.description)?;
                },
                6 => {
                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_bool()?;
                    self.once = ::std::option::Option::Some(tmp);
                },
                7 => {
                    ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.tags)?;
                },
                8 => {
                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_float()?;
                    self.ttl = ::std::option::Option::Some(tmp);
                },
                _ => {
                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u32 {
        let mut my_size = 0;
        if let Some(v) = self.time {
            my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
        }
        if let Some(ref v) = self.state.as_ref() {
            my_size += ::protobuf::rt::string_size(2, &v);
        }
        if let Some(ref v) = self.service.as_ref() {
            my_size += ::protobuf::rt::string_size(3, &v);
        }
        if let Some(ref v) = self.host.as_ref() {
            my_size += ::protobuf::rt::string_size(4, &v);
        }
        if let Some(ref v) = self.description.as_ref() {
            my_size += ::protobuf::rt::string_size(5, &v);
        }
        if let Some(v) = self.once {
            my_size += 2;
        }
        for value in &self.tags {
            my_size += ::protobuf::rt::string_size(7, &value);
        };
        if let Some(v) = self.ttl {
            my_size += 5;
        }
        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 let Some(v) = self.time {
            os.write_int64(1, v)?;
        }
        if let Some(ref v) = self.state.as_ref() {
            os.write_string(2, &v)?;
        }
        if let Some(ref v) = self.service.as_ref() {
            os.write_string(3, &v)?;
        }
        if let Some(ref v) = self.host.as_ref() {
            os.write_string(4, &v)?;
        }
        if let Some(ref v) = self.description.as_ref() {
            os.write_string(5, &v)?;
        }
        if let Some(v) = self.once {
            os.write_bool(6, v)?;
        }
        for v in &self.tags {
            os.write_string(7, &v)?;
        };
        if let Some(v) = self.ttl {
            os.write_float(8, v)?;
        }
        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: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
        self
    }

    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
        Self::descriptor_static()
    }

    fn new() -> State {
        State::new()
    }

    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
        descriptor.get(|| {
            let mut fields = ::std::vec::Vec::new();
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
                "time",
                |m: &State| { &m.time },
                |m: &mut State| { &mut m.time },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "state",
                |m: &State| { &m.state },
                |m: &mut State| { &mut m.state },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "service",
                |m: &State| { &m.service },
                |m: &mut State| { &mut m.service },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "host",
                |m: &State| { &m.host },
                |m: &mut State| { &mut m.host },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "description",
                |m: &State| { &m.description },
                |m: &mut State| { &mut m.description },
            ));
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
                "once",
                |m: &State| { &m.once },
                |m: &mut State| { &mut m.once },
            ));
            fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "tags",
                |m: &State| { &m.tags },
                |m: &mut State| { &mut m.tags },
            ));
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
                "ttl",
                |m: &State| { &m.ttl },
                |m: &mut State| { &mut m.ttl },
            ));
            ::protobuf::reflect::MessageDescriptor::new_pb_name::<State>(
                "State",
                fields,
                file_descriptor_proto()
            )
        })
    }

    fn default_instance() -> &'static State {
        static instance: ::protobuf::rt::LazyV2<State> = ::protobuf::rt::LazyV2::INIT;
        instance.get(State::new)
    }
}

impl ::protobuf::Clear for State {
    fn clear(&mut self) {
        self.time = ::std::option::Option::None;
        self.state.clear();
        self.service.clear();
        self.host.clear();
        self.description.clear();
        self.once = ::std::option::Option::None;
        self.tags.clear();
        self.ttl = ::std::option::Option::None;
        self.unknown_fields.clear();
    }
}

impl ::std::fmt::Debug for State {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        ::protobuf::text_format::fmt(self, f)
    }
}

impl ::protobuf::reflect::ProtobufValue for State {
    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
        ::protobuf::reflect::ReflectValueRef::Message(self)
    }
}

#[derive(PartialEq,Clone,Default)]
pub struct Event {
    // message fields
    time: ::std::option::Option<i64>,
    state: ::protobuf::SingularField<::std::string::String>,
    service: ::protobuf::SingularField<::std::string::String>,
    host: ::protobuf::SingularField<::std::string::String>,
    description: ::protobuf::SingularField<::std::string::String>,
    pub tags: ::protobuf::RepeatedField<::std::string::String>,
    ttl: ::std::option::Option<f32>,
    pub attributes: ::protobuf::RepeatedField<Attribute>,
    time_micros: ::std::option::Option<i64>,
    metric_sint64: ::std::option::Option<i64>,
    metric_d: ::std::option::Option<f64>,
    metric_f: ::std::option::Option<f32>,
    // special fields
    pub unknown_fields: ::protobuf::UnknownFields,
    pub cached_size: ::protobuf::CachedSize,
}

impl<'a> ::std::default::Default for &'a Event {
    fn default() -> &'a Event {
        <Event as ::protobuf::Message>::default_instance()
    }
}

impl Event {
    pub fn new() -> Event {
        ::std::default::Default::default()
    }

    // optional int64 time = 1;


    pub fn get_time(&self) -> i64 {
        self.time.unwrap_or(0)
    }
    pub fn clear_time(&mut self) {
        self.time = ::std::option::Option::None;
    }

    pub fn has_time(&self) -> bool {
        self.time.is_some()
    }

    // Param is passed by value, moved
    pub fn set_time(&mut self, v: i64) {
        self.time = ::std::option::Option::Some(v);
    }

    // optional string state = 2;


    pub fn get_state(&self) -> &str {
        match self.state.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_state(&mut self) {
        self.state.clear();
    }

    pub fn has_state(&self) -> bool {
        self.state.is_some()
    }

    // Param is passed by value, moved
    pub fn set_state(&mut self, v: ::std::string::String) {
        self.state = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_state(&mut self) -> &mut ::std::string::String {
        if self.state.is_none() {
            self.state.set_default();
        }
        self.state.as_mut().unwrap()
    }

    // Take field
    pub fn take_state(&mut self) -> ::std::string::String {
        self.state.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional string service = 3;


    pub fn get_service(&self) -> &str {
        match self.service.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_service(&mut self) {
        self.service.clear();
    }

    pub fn has_service(&self) -> bool {
        self.service.is_some()
    }

    // Param is passed by value, moved
    pub fn set_service(&mut self, v: ::std::string::String) {
        self.service = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_service(&mut self) -> &mut ::std::string::String {
        if self.service.is_none() {
            self.service.set_default();
        }
        self.service.as_mut().unwrap()
    }

    // Take field
    pub fn take_service(&mut self) -> ::std::string::String {
        self.service.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional string host = 4;


    pub fn get_host(&self) -> &str {
        match self.host.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_host(&mut self) {
        self.host.clear();
    }

    pub fn has_host(&self) -> bool {
        self.host.is_some()
    }

    // Param is passed by value, moved
    pub fn set_host(&mut self, v: ::std::string::String) {
        self.host = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_host(&mut self) -> &mut ::std::string::String {
        if self.host.is_none() {
            self.host.set_default();
        }
        self.host.as_mut().unwrap()
    }

    // Take field
    pub fn take_host(&mut self) -> ::std::string::String {
        self.host.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional string description = 5;


    pub fn get_description(&self) -> &str {
        match self.description.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_description(&mut self) {
        self.description.clear();
    }

    pub fn has_description(&self) -> bool {
        self.description.is_some()
    }

    // Param is passed by value, moved
    pub fn set_description(&mut self, v: ::std::string::String) {
        self.description = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_description(&mut self) -> &mut ::std::string::String {
        if self.description.is_none() {
            self.description.set_default();
        }
        self.description.as_mut().unwrap()
    }

    // Take field
    pub fn take_description(&mut self) -> ::std::string::String {
        self.description.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // repeated string tags = 7;


    pub fn get_tags(&self) -> &[::std::string::String] {
        &self.tags
    }
    pub fn clear_tags(&mut self) {
        self.tags.clear();
    }

    // Param is passed by value, moved
    pub fn set_tags(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
        self.tags = v;
    }

    // Mutable pointer to the field.
    pub fn mut_tags(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
        &mut self.tags
    }

    // Take field
    pub fn take_tags(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
        ::std::mem::replace(&mut self.tags, ::protobuf::RepeatedField::new())
    }

    // optional float ttl = 8;


    pub fn get_ttl(&self) -> f32 {
        self.ttl.unwrap_or(0.)
    }
    pub fn clear_ttl(&mut self) {
        self.ttl = ::std::option::Option::None;
    }

    pub fn has_ttl(&self) -> bool {
        self.ttl.is_some()
    }

    // Param is passed by value, moved
    pub fn set_ttl(&mut self, v: f32) {
        self.ttl = ::std::option::Option::Some(v);
    }

    // repeated .Attribute attributes = 9;


    pub fn get_attributes(&self) -> &[Attribute] {
        &self.attributes
    }
    pub fn clear_attributes(&mut self) {
        self.attributes.clear();
    }

    // Param is passed by value, moved
    pub fn set_attributes(&mut self, v: ::protobuf::RepeatedField<Attribute>) {
        self.attributes = v;
    }

    // Mutable pointer to the field.
    pub fn mut_attributes(&mut self) -> &mut ::protobuf::RepeatedField<Attribute> {
        &mut self.attributes
    }

    // Take field
    pub fn take_attributes(&mut self) -> ::protobuf::RepeatedField<Attribute> {
        ::std::mem::replace(&mut self.attributes, ::protobuf::RepeatedField::new())
    }

    // optional int64 time_micros = 10;


    pub fn get_time_micros(&self) -> i64 {
        self.time_micros.unwrap_or(0)
    }
    pub fn clear_time_micros(&mut self) {
        self.time_micros = ::std::option::Option::None;
    }

    pub fn has_time_micros(&self) -> bool {
        self.time_micros.is_some()
    }

    // Param is passed by value, moved
    pub fn set_time_micros(&mut self, v: i64) {
        self.time_micros = ::std::option::Option::Some(v);
    }

    // optional sint64 metric_sint64 = 13;


    pub fn get_metric_sint64(&self) -> i64 {
        self.metric_sint64.unwrap_or(0)
    }
    pub fn clear_metric_sint64(&mut self) {
        self.metric_sint64 = ::std::option::Option::None;
    }

    pub fn has_metric_sint64(&self) -> bool {
        self.metric_sint64.is_some()
    }

    // Param is passed by value, moved
    pub fn set_metric_sint64(&mut self, v: i64) {
        self.metric_sint64 = ::std::option::Option::Some(v);
    }

    // optional double metric_d = 14;


    pub fn get_metric_d(&self) -> f64 {
        self.metric_d.unwrap_or(0.)
    }
    pub fn clear_metric_d(&mut self) {
        self.metric_d = ::std::option::Option::None;
    }

    pub fn has_metric_d(&self) -> bool {
        self.metric_d.is_some()
    }

    // Param is passed by value, moved
    pub fn set_metric_d(&mut self, v: f64) {
        self.metric_d = ::std::option::Option::Some(v);
    }

    // optional float metric_f = 15;


    pub fn get_metric_f(&self) -> f32 {
        self.metric_f.unwrap_or(0.)
    }
    pub fn clear_metric_f(&mut self) {
        self.metric_f = ::std::option::Option::None;
    }

    pub fn has_metric_f(&self) -> bool {
        self.metric_f.is_some()
    }

    // Param is passed by value, moved
    pub fn set_metric_f(&mut self, v: f32) {
        self.metric_f = ::std::option::Option::Some(v);
    }
}

impl ::protobuf::Message for Event {
    fn is_initialized(&self) -> bool {
        for v in &self.attributes {
            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 => {
                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_int64()?;
                    self.time = ::std::option::Option::Some(tmp);
                },
                2 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.state)?;
                },
                3 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.service)?;
                },
                4 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.host)?;
                },
                5 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.description)?;
                },
                7 => {
                    ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.tags)?;
                },
                8 => {
                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_float()?;
                    self.ttl = ::std::option::Option::Some(tmp);
                },
                9 => {
                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.attributes)?;
                },
                10 => {
                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_int64()?;
                    self.time_micros = ::std::option::Option::Some(tmp);
                },
                13 => {
                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_sint64()?;
                    self.metric_sint64 = ::std::option::Option::Some(tmp);
                },
                14 => {
                    if wire_type != ::protobuf::wire_format::WireTypeFixed64 {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_double()?;
                    self.metric_d = ::std::option::Option::Some(tmp);
                },
                15 => {
                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_float()?;
                    self.metric_f = ::std::option::Option::Some(tmp);
                },
                _ => {
                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u32 {
        let mut my_size = 0;
        if let Some(v) = self.time {
            my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
        }
        if let Some(ref v) = self.state.as_ref() {
            my_size += ::protobuf::rt::string_size(2, &v);
        }
        if let Some(ref v) = self.service.as_ref() {
            my_size += ::protobuf::rt::string_size(3, &v);
        }
        if let Some(ref v) = self.host.as_ref() {
            my_size += ::protobuf::rt::string_size(4, &v);
        }
        if let Some(ref v) = self.description.as_ref() {
            my_size += ::protobuf::rt::string_size(5, &v);
        }
        for value in &self.tags {
            my_size += ::protobuf::rt::string_size(7, &value);
        };
        if let Some(v) = self.ttl {
            my_size += 5;
        }
        for value in &self.attributes {
            let len = value.compute_size();
            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
        };
        if let Some(v) = self.time_micros {
            my_size += ::protobuf::rt::value_size(10, v, ::protobuf::wire_format::WireTypeVarint);
        }
        if let Some(v) = self.metric_sint64 {
            my_size += ::protobuf::rt::value_varint_zigzag_size(13, v);
        }
        if let Some(v) = self.metric_d {
            my_size += 9;
        }
        if let Some(v) = self.metric_f {
            my_size += 5;
        }
        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 let Some(v) = self.time {
            os.write_int64(1, v)?;
        }
        if let Some(ref v) = self.state.as_ref() {
            os.write_string(2, &v)?;
        }
        if let Some(ref v) = self.service.as_ref() {
            os.write_string(3, &v)?;
        }
        if let Some(ref v) = self.host.as_ref() {
            os.write_string(4, &v)?;
        }
        if let Some(ref v) = self.description.as_ref() {
            os.write_string(5, &v)?;
        }
        for v in &self.tags {
            os.write_string(7, &v)?;
        };
        if let Some(v) = self.ttl {
            os.write_float(8, v)?;
        }
        for v in &self.attributes {
            os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?;
            os.write_raw_varint32(v.get_cached_size())?;
            v.write_to_with_cached_sizes(os)?;
        };
        if let Some(v) = self.time_micros {
            os.write_int64(10, v)?;
        }
        if let Some(v) = self.metric_sint64 {
            os.write_sint64(13, v)?;
        }
        if let Some(v) = self.metric_d {
            os.write_double(14, v)?;
        }
        if let Some(v) = self.metric_f {
            os.write_float(15, v)?;
        }
        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: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
        self
    }

    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
        Self::descriptor_static()
    }

    fn new() -> Event {
        Event::new()
    }

    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
        descriptor.get(|| {
            let mut fields = ::std::vec::Vec::new();
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
                "time",
                |m: &Event| { &m.time },
                |m: &mut Event| { &mut m.time },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "state",
                |m: &Event| { &m.state },
                |m: &mut Event| { &mut m.state },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "service",
                |m: &Event| { &m.service },
                |m: &mut Event| { &mut m.service },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "host",
                |m: &Event| { &m.host },
                |m: &mut Event| { &mut m.host },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "description",
                |m: &Event| { &m.description },
                |m: &mut Event| { &mut m.description },
            ));
            fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "tags",
                |m: &Event| { &m.tags },
                |m: &mut Event| { &mut m.tags },
            ));
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
                "ttl",
                |m: &Event| { &m.ttl },
                |m: &mut Event| { &mut m.ttl },
            ));
            fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Attribute>>(
                "attributes",
                |m: &Event| { &m.attributes },
                |m: &mut Event| { &mut m.attributes },
            ));
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
                "time_micros",
                |m: &Event| { &m.time_micros },
                |m: &mut Event| { &mut m.time_micros },
            ));
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint64>(
                "metric_sint64",
                |m: &Event| { &m.metric_sint64 },
                |m: &mut Event| { &mut m.metric_sint64 },
            ));
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeDouble>(
                "metric_d",
                |m: &Event| { &m.metric_d },
                |m: &mut Event| { &mut m.metric_d },
            ));
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
                "metric_f",
                |m: &Event| { &m.metric_f },
                |m: &mut Event| { &mut m.metric_f },
            ));
            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Event>(
                "Event",
                fields,
                file_descriptor_proto()
            )
        })
    }

    fn default_instance() -> &'static Event {
        static instance: ::protobuf::rt::LazyV2<Event> = ::protobuf::rt::LazyV2::INIT;
        instance.get(Event::new)
    }
}

impl ::protobuf::Clear for Event {
    fn clear(&mut self) {
        self.time = ::std::option::Option::None;
        self.state.clear();
        self.service.clear();
        self.host.clear();
        self.description.clear();
        self.tags.clear();
        self.ttl = ::std::option::Option::None;
        self.attributes.clear();
        self.time_micros = ::std::option::Option::None;
        self.metric_sint64 = ::std::option::Option::None;
        self.metric_d = ::std::option::Option::None;
        self.metric_f = ::std::option::Option::None;
        self.unknown_fields.clear();
    }
}

impl ::std::fmt::Debug 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 {
    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
        ::protobuf::reflect::ReflectValueRef::Message(self)
    }
}

#[derive(PartialEq,Clone,Default)]
pub struct Query {
    // message fields
    string: ::protobuf::SingularField<::std::string::String>,
    // special fields
    pub unknown_fields: ::protobuf::UnknownFields,
    pub cached_size: ::protobuf::CachedSize,
}

impl<'a> ::std::default::Default for &'a Query {
    fn default() -> &'a Query {
        <Query as ::protobuf::Message>::default_instance()
    }
}

impl Query {
    pub fn new() -> Query {
        ::std::default::Default::default()
    }

    // optional string string = 1;


    pub fn get_string(&self) -> &str {
        match self.string.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_string(&mut self) {
        self.string.clear();
    }

    pub fn has_string(&self) -> bool {
        self.string.is_some()
    }

    // Param is passed by value, moved
    pub fn set_string(&mut self, v: ::std::string::String) {
        self.string = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_string(&mut self) -> &mut ::std::string::String {
        if self.string.is_none() {
            self.string.set_default();
        }
        self.string.as_mut().unwrap()
    }

    // Take field
    pub fn take_string(&mut self) -> ::std::string::String {
        self.string.take().unwrap_or_else(|| ::std::string::String::new())
    }
}

impl ::protobuf::Message for Query {
    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_string_into(wire_type, is, &mut self.string)?;
                },
                _ => {
                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u32 {
        let mut my_size = 0;
        if let Some(ref v) = self.string.as_ref() {
            my_size += ::protobuf::rt::string_size(1, &v);
        }
        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 let Some(ref v) = self.string.as_ref() {
            os.write_string(1, &v)?;
        }
        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: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
        self
    }

    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
        Self::descriptor_static()
    }

    fn new() -> Query {
        Query::new()
    }

    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
        descriptor.get(|| {
            let mut fields = ::std::vec::Vec::new();
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "string",
                |m: &Query| { &m.string },
                |m: &mut Query| { &mut m.string },
            ));
            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Query>(
                "Query",
                fields,
                file_descriptor_proto()
            )
        })
    }

    fn default_instance() -> &'static Query {
        static instance: ::protobuf::rt::LazyV2<Query> = ::protobuf::rt::LazyV2::INIT;
        instance.get(Query::new)
    }
}

impl ::protobuf::Clear for Query {
    fn clear(&mut self) {
        self.string.clear();
        self.unknown_fields.clear();
    }
}

impl ::std::fmt::Debug for Query {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        ::protobuf::text_format::fmt(self, f)
    }
}

impl ::protobuf::reflect::ProtobufValue for Query {
    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
        ::protobuf::reflect::ReflectValueRef::Message(self)
    }
}

#[derive(PartialEq,Clone,Default)]
pub struct Msg {
    // message fields
    ok: ::std::option::Option<bool>,
    error: ::protobuf::SingularField<::std::string::String>,
    pub states: ::protobuf::RepeatedField<State>,
    pub query: ::protobuf::SingularPtrField<Query>,
    pub events: ::protobuf::RepeatedField<Event>,
    // special fields
    pub unknown_fields: ::protobuf::UnknownFields,
    pub cached_size: ::protobuf::CachedSize,
}

impl<'a> ::std::default::Default for &'a Msg {
    fn default() -> &'a Msg {
        <Msg as ::protobuf::Message>::default_instance()
    }
}

impl Msg {
    pub fn new() -> Msg {
        ::std::default::Default::default()
    }

    // optional bool ok = 2;


    pub fn get_ok(&self) -> bool {
        self.ok.unwrap_or(false)
    }
    pub fn clear_ok(&mut self) {
        self.ok = ::std::option::Option::None;
    }

    pub fn has_ok(&self) -> bool {
        self.ok.is_some()
    }

    // Param is passed by value, moved
    pub fn set_ok(&mut self, v: bool) {
        self.ok = ::std::option::Option::Some(v);
    }

    // optional string error = 3;


    pub fn get_error(&self) -> &str {
        match self.error.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_error(&mut self) {
        self.error.clear();
    }

    pub fn has_error(&self) -> bool {
        self.error.is_some()
    }

    // Param is passed by value, moved
    pub fn set_error(&mut self, v: ::std::string::String) {
        self.error = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_error(&mut self) -> &mut ::std::string::String {
        if self.error.is_none() {
            self.error.set_default();
        }
        self.error.as_mut().unwrap()
    }

    // Take field
    pub fn take_error(&mut self) -> ::std::string::String {
        self.error.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // repeated .State states = 4;


    pub fn get_states(&self) -> &[State] {
        &self.states
    }
    pub fn clear_states(&mut self) {
        self.states.clear();
    }

    // Param is passed by value, moved
    pub fn set_states(&mut self, v: ::protobuf::RepeatedField<State>) {
        self.states = v;
    }

    // Mutable pointer to the field.
    pub fn mut_states(&mut self) -> &mut ::protobuf::RepeatedField<State> {
        &mut self.states
    }

    // Take field
    pub fn take_states(&mut self) -> ::protobuf::RepeatedField<State> {
        ::std::mem::replace(&mut self.states, ::protobuf::RepeatedField::new())
    }

    // optional .Query query = 5;


    pub fn get_query(&self) -> &Query {
        self.query.as_ref().unwrap_or_else(|| <Query as ::protobuf::Message>::default_instance())
    }
    pub fn clear_query(&mut self) {
        self.query.clear();
    }

    pub fn has_query(&self) -> bool {
        self.query.is_some()
    }

    // Param is passed by value, moved
    pub fn set_query(&mut self, v: Query) {
        self.query = ::protobuf::SingularPtrField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_query(&mut self) -> &mut Query {
        if self.query.is_none() {
            self.query.set_default();
        }
        self.query.as_mut().unwrap()
    }

    // Take field
    pub fn take_query(&mut self) -> Query {
        self.query.take().unwrap_or_else(|| Query::new())
    }

    // repeated .Event events = 6;


    pub fn get_events(&self) -> &[Event] {
        &self.events
    }
    pub fn clear_events(&mut self) {
        self.events.clear();
    }

    // Param is passed by value, moved
    pub fn set_events(&mut self, v: ::protobuf::RepeatedField<Event>) {
        self.events = v;
    }

    // Mutable pointer to the field.
    pub fn mut_events(&mut self) -> &mut ::protobuf::RepeatedField<Event> {
        &mut self.events
    }

    // Take field
    pub fn take_events(&mut self) -> ::protobuf::RepeatedField<Event> {
        ::std::mem::replace(&mut self.events, ::protobuf::RepeatedField::new())
    }
}

impl ::protobuf::Message for Msg {
    fn is_initialized(&self) -> bool {
        for v in &self.states {
            if !v.is_initialized() {
                return false;
            }
        };
        for v in &self.query {
            if !v.is_initialized() {
                return false;
            }
        };
        for v in &self.events {
            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 {
                2 => {
                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
                    }
                    let tmp = is.read_bool()?;
                    self.ok = ::std::option::Option::Some(tmp);
                },
                3 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.error)?;
                },
                4 => {
                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.states)?;
                },
                5 => {
                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.query)?;
                },
                6 => {
                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.events)?;
                },
                _ => {
                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u32 {
        let mut my_size = 0;
        if let Some(v) = self.ok {
            my_size += 2;
        }
        if let Some(ref v) = self.error.as_ref() {
            my_size += ::protobuf::rt::string_size(3, &v);
        }
        for value in &self.states {
            let len = value.compute_size();
            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
        };
        if let Some(ref v) = self.query.as_ref() {
            let len = v.compute_size();
            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
        }
        for value in &self.events {
            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<()> {
        if let Some(v) = self.ok {
            os.write_bool(2, v)?;
        }
        if let Some(ref v) = self.error.as_ref() {
            os.write_string(3, &v)?;
        }
        for v in &self.states {
            os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
            os.write_raw_varint32(v.get_cached_size())?;
            v.write_to_with_cached_sizes(os)?;
        };
        if let Some(ref v) = self.query.as_ref() {
            os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
            os.write_raw_varint32(v.get_cached_size())?;
            v.write_to_with_cached_sizes(os)?;
        }
        for v in &self.events {
            os.write_tag(6, ::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: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
        self
    }

    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
        Self::descriptor_static()
    }

    fn new() -> Msg {
        Msg::new()
    }

    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
        descriptor.get(|| {
            let mut fields = ::std::vec::Vec::new();
            fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
                "ok",
                |m: &Msg| { &m.ok },
                |m: &mut Msg| { &mut m.ok },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "error",
                |m: &Msg| { &m.error },
                |m: &mut Msg| { &mut m.error },
            ));
            fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<State>>(
                "states",
                |m: &Msg| { &m.states },
                |m: &mut Msg| { &mut m.states },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Query>>(
                "query",
                |m: &Msg| { &m.query },
                |m: &mut Msg| { &mut m.query },
            ));
            fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Event>>(
                "events",
                |m: &Msg| { &m.events },
                |m: &mut Msg| { &mut m.events },
            ));
            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Msg>(
                "Msg",
                fields,
                file_descriptor_proto()
            )
        })
    }

    fn default_instance() -> &'static Msg {
        static instance: ::protobuf::rt::LazyV2<Msg> = ::protobuf::rt::LazyV2::INIT;
        instance.get(Msg::new)
    }
}

impl ::protobuf::Clear for Msg {
    fn clear(&mut self) {
        self.ok = ::std::option::Option::None;
        self.error.clear();
        self.states.clear();
        self.query.clear();
        self.events.clear();
        self.unknown_fields.clear();
    }
}

impl ::std::fmt::Debug for Msg {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        ::protobuf::text_format::fmt(self, f)
    }
}

impl ::protobuf::reflect::ProtobufValue for Msg {
    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
        ::protobuf::reflect::ReflectValueRef::Message(self)
    }
}

#[derive(PartialEq,Clone,Default)]
pub struct Attribute {
    // message fields
    key: ::protobuf::SingularField<::std::string::String>,
    value: ::protobuf::SingularField<::std::string::String>,
    // special fields
    pub unknown_fields: ::protobuf::UnknownFields,
    pub cached_size: ::protobuf::CachedSize,
}

impl<'a> ::std::default::Default for &'a Attribute {
    fn default() -> &'a Attribute {
        <Attribute as ::protobuf::Message>::default_instance()
    }
}

impl Attribute {
    pub fn new() -> Attribute {
        ::std::default::Default::default()
    }

    // required string key = 1;


    pub fn get_key(&self) -> &str {
        match self.key.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_key(&mut self) {
        self.key.clear();
    }

    pub fn has_key(&self) -> bool {
        self.key.is_some()
    }

    // Param is passed by value, moved
    pub fn set_key(&mut self, v: ::std::string::String) {
        self.key = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_key(&mut self) -> &mut ::std::string::String {
        if self.key.is_none() {
            self.key.set_default();
        }
        self.key.as_mut().unwrap()
    }

    // Take field
    pub fn take_key(&mut self) -> ::std::string::String {
        self.key.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional string value = 2;


    pub fn get_value(&self) -> &str {
        match self.value.as_ref() {
            Some(v) => &v,
            None => "",
        }
    }
    pub fn clear_value(&mut self) {
        self.value.clear();
    }

    pub fn has_value(&self) -> bool {
        self.value.is_some()
    }

    // Param is passed by value, moved
    pub fn set_value(&mut self, v: ::std::string::String) {
        self.value = ::protobuf::SingularField::some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_value(&mut self) -> &mut ::std::string::String {
        if self.value.is_none() {
            self.value.set_default();
        }
        self.value.as_mut().unwrap()
    }

    // Take field
    pub fn take_value(&mut self) -> ::std::string::String {
        self.value.take().unwrap_or_else(|| ::std::string::String::new())
    }
}

impl ::protobuf::Message for Attribute {
    fn is_initialized(&self) -> bool {
        if self.key.is_none() {
            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_singular_string_into(wire_type, is, &mut self.key)?;
                },
                2 => {
                    ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.value)?;
                },
                _ => {
                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u32 {
        let mut my_size = 0;
        if let Some(ref v) = self.key.as_ref() {
            my_size += ::protobuf::rt::string_size(1, &v);
        }
        if let Some(ref v) = self.value.as_ref() {
            my_size += ::protobuf::rt::string_size(2, &v);
        }
        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 let Some(ref v) = self.key.as_ref() {
            os.write_string(1, &v)?;
        }
        if let Some(ref v) = self.value.as_ref() {
            os.write_string(2, &v)?;
        }
        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: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
        self
    }

    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
        Self::descriptor_static()
    }

    fn new() -> Attribute {
        Attribute::new()
    }

    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
        descriptor.get(|| {
            let mut fields = ::std::vec::Vec::new();
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "key",
                |m: &Attribute| { &m.key },
                |m: &mut Attribute| { &mut m.key },
            ));
            fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
                "value",
                |m: &Attribute| { &m.value },
                |m: &mut Attribute| { &mut m.value },
            ));
            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Attribute>(
                "Attribute",
                fields,
                file_descriptor_proto()
            )
        })
    }

    fn default_instance() -> &'static Attribute {
        static instance: ::protobuf::rt::LazyV2<Attribute> = ::protobuf::rt::LazyV2::INIT;
        instance.get(Attribute::new)
    }
}

impl ::protobuf::Clear for Attribute {
    fn clear(&mut self) {
        self.key.clear();
        self.value.clear();
        self.unknown_fields.clear();
    }
}

impl ::std::fmt::Debug for Attribute {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        ::protobuf::text_format::fmt(self, f)
    }
}

impl ::protobuf::reflect::ProtobufValue for Attribute {
    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
        ::protobuf::reflect::ReflectValueRef::Message(self)
    }
}

static file_descriptor_proto_data: &'static [u8] = b"\
    \n\x13src/proto/mod.proto\"\xbb\x01\n\x05State\x12\x12\n\x04time\x18\x01\
    \x20\x01(\x03R\x04time\x12\x14\n\x05state\x18\x02\x20\x01(\tR\x05state\
    \x12\x18\n\x07service\x18\x03\x20\x01(\tR\x07service\x12\x12\n\x04host\
    \x18\x04\x20\x01(\tR\x04host\x12\x20\n\x0bdescription\x18\x05\x20\x01(\t\
    R\x0bdescription\x12\x12\n\x04once\x18\x06\x20\x01(\x08R\x04once\x12\x12\
    \n\x04tags\x18\x07\x20\x03(\tR\x04tags\x12\x10\n\x03ttl\x18\x08\x20\x01(\
    \x02R\x03ttl\"\xcf\x02\n\x05Event\x12\x12\n\x04time\x18\x01\x20\x01(\x03\
    R\x04time\x12\x14\n\x05state\x18\x02\x20\x01(\tR\x05state\x12\x18\n\x07s\
    ervice\x18\x03\x20\x01(\tR\x07service\x12\x12\n\x04host\x18\x04\x20\x01(\
    \tR\x04host\x12\x20\n\x0bdescription\x18\x05\x20\x01(\tR\x0bdescription\
    \x12\x12\n\x04tags\x18\x07\x20\x03(\tR\x04tags\x12\x10\n\x03ttl\x18\x08\
    \x20\x01(\x02R\x03ttl\x12*\n\nattributes\x18\t\x20\x03(\x0b2\n.Attribute\
    R\nattributes\x12\x1f\n\x0btime_micros\x18\n\x20\x01(\x03R\ntimeMicros\
    \x12#\n\rmetric_sint64\x18\r\x20\x01(\x12R\x0cmetricSint64\x12\x19\n\x08\
    metric_d\x18\x0e\x20\x01(\x01R\x07metricD\x12\x19\n\x08metric_f\x18\x0f\
    \x20\x01(\x02R\x07metricF\"\x1f\n\x05Query\x12\x16\n\x06string\x18\x01\
    \x20\x01(\tR\x06string\"\x89\x01\n\x03Msg\x12\x0e\n\x02ok\x18\x02\x20\
    \x01(\x08R\x02ok\x12\x14\n\x05error\x18\x03\x20\x01(\tR\x05error\x12\x1e\
    \n\x06states\x18\x04\x20\x03(\x0b2\x06.StateR\x06states\x12\x1c\n\x05que\
    ry\x18\x05\x20\x01(\x0b2\x06.QueryR\x05query\x12\x1e\n\x06events\x18\x06\
    \x20\x03(\x0b2\x06.EventR\x06events\"3\n\tAttribute\x12\x10\n\x03key\x18\
    \x01\x20\x02(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05valueB\
    \x1b\n\x12io.riemann.riemannB\x05ProtoJ\x94\x11\n\x06\x12\x04\0\00\x01\n\
    \x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\x08\x12\x03\x01\0+\n\t\n\x02\
    \x08\x01\x12\x03\x01\0+\n\x08\n\x01\x08\x12\x03\x02\0&\n\t\n\x02\x08\x08\
    \x12\x03\x02\0&\n^\n\x02\x04\0\x12\x04\x06\0\x0f\x01\x1aR\x20Deprecated;\
    \x20state\x20was\x20used\x20by\x20early\x20versions\x20of\x20the\x20prot\
    ocol,\x20but\x20not\x20any\n\x20more.\n\n\n\n\x03\x04\0\x01\x12\x03\x06\
    \x08\r\n\x0b\n\x04\x04\0\x02\0\x12\x03\x07\x02\x1a\n\x0c\n\x05\x04\0\x02\
    \0\x04\x12\x03\x07\x02\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x07\x0b\x10\
    \n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x07\x11\x15\n\x0c\n\x05\x04\0\x02\0\
    \x03\x12\x03\x07\x18\x19\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x08\x02\x1c\n\
    \x0c\n\x05\x04\0\x02\x01\x04\x12\x03\x08\x02\n\n\x0c\n\x05\x04\0\x02\x01\
    \x05\x12\x03\x08\x0b\x11\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x08\x12\
    \x17\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x08\x1a\x1b\n\x0b\n\x04\x04\0\
    \x02\x02\x12\x03\t\x02\x1e\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03\t\x02\n\
    \n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\t\x0b\x11\n\x0c\n\x05\x04\0\x02\
    \x02\x01\x12\x03\t\x12\x19\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\t\x1c\
    \x1d\n\x0b\n\x04\x04\0\x02\x03\x12\x03\n\x02\x1b\n\x0c\n\x05\x04\0\x02\
    \x03\x04\x12\x03\n\x02\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03\n\x0b\x11\
    \n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\n\x12\x16\n\x0c\n\x05\x04\0\x02\
    \x03\x03\x12\x03\n\x19\x1a\n\x0b\n\x04\x04\0\x02\x04\x12\x03\x0b\x02\"\n\
    \x0c\n\x05\x04\0\x02\x04\x04\x12\x03\x0b\x02\n\n\x0c\n\x05\x04\0\x02\x04\
    \x05\x12\x03\x0b\x0b\x11\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03\x0b\x12\
    \x1d\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03\x0b\x20!\n\x0b\n\x04\x04\0\
    \x02\x05\x12\x03\x0c\x02\x19\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03\x0c\
    \x02\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03\x0c\x0b\x0f\n\x0c\n\x05\x04\
    \0\x02\x05\x01\x12\x03\x0c\x10\x14\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03\
    \x0c\x17\x18\n\x0b\n\x04\x04\0\x02\x06\x12\x03\r\x02\x1b\n\x0c\n\x05\x04\
    \0\x02\x06\x04\x12\x03\r\x02\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03\r\
    \x0b\x11\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03\r\x12\x16\n\x0c\n\x05\x04\
    \0\x02\x06\x03\x12\x03\r\x19\x1a\n\x0b\n\x04\x04\0\x02\x07\x12\x03\x0e\
    \x02\x19\n\x0c\n\x05\x04\0\x02\x07\x04\x12\x03\x0e\x02\n\n\x0c\n\x05\x04\
    \0\x02\x07\x05\x12\x03\x0e\x0b\x10\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03\
    \x0e\x11\x14\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03\x0e\x17\x18\n\n\n\x02\
    \x04\x01\x12\x04\x11\0\x1f\x01\n\n\n\x03\x04\x01\x01\x12\x03\x11\x08\r\n\
    \x0b\n\x04\x04\x01\x02\0\x12\x03\x12\x02\x1a\n\x0c\n\x05\x04\x01\x02\0\
    \x04\x12\x03\x12\x02\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\x12\x0b\x10\
    \n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x12\x11\x15\n\x0c\n\x05\x04\x01\
    \x02\0\x03\x12\x03\x12\x18\x19\n\x0b\n\x04\x04\x01\x02\x01\x12\x03\x13\
    \x02\x1c\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03\x13\x02\n\n\x0c\n\x05\
    \x04\x01\x02\x01\x05\x12\x03\x13\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\x01\
    \x12\x03\x13\x12\x17\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03\x13\x1a\x1b\
    \n\x0b\n\x04\x04\x01\x02\x02\x12\x03\x14\x02\x1e\n\x0c\n\x05\x04\x01\x02\
    \x02\x04\x12\x03\x14\x02\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03\x14\
    \x0b\x11\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03\x14\x12\x19\n\x0c\n\x05\
    \x04\x01\x02\x02\x03\x12\x03\x14\x1c\x1d\n\x0b\n\x04\x04\x01\x02\x03\x12\
    \x03\x15\x02\x1b\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03\x15\x02\n\n\x0c\
    \n\x05\x04\x01\x02\x03\x05\x12\x03\x15\x0b\x11\n\x0c\n\x05\x04\x01\x02\
    \x03\x01\x12\x03\x15\x12\x16\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03\x15\
    \x19\x1a\n\x0b\n\x04\x04\x01\x02\x04\x12\x03\x16\x02\"\n\x0c\n\x05\x04\
    \x01\x02\x04\x04\x12\x03\x16\x02\n\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\
    \x03\x16\x0b\x11\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03\x16\x12\x1d\n\
    \x0c\n\x05\x04\x01\x02\x04\x03\x12\x03\x16\x20!\n\x0b\n\x04\x04\x01\x02\
    \x05\x12\x03\x17\x02\x1b\n\x0c\n\x05\x04\x01\x02\x05\x04\x12\x03\x17\x02\
    \n\n\x0c\n\x05\x04\x01\x02\x05\x05\x12\x03\x17\x0b\x11\n\x0c\n\x05\x04\
    \x01\x02\x05\x01\x12\x03\x17\x12\x16\n\x0c\n\x05\x04\x01\x02\x05\x03\x12\
    \x03\x17\x19\x1a\n\x0b\n\x04\x04\x01\x02\x06\x12\x03\x18\x02\x19\n\x0c\n\
    \x05\x04\x01\x02\x06\x04\x12\x03\x18\x02\n\n\x0c\n\x05\x04\x01\x02\x06\
    \x05\x12\x03\x18\x0b\x10\n\x0c\n\x05\x04\x01\x02\x06\x01\x12\x03\x18\x11\
    \x14\n\x0c\n\x05\x04\x01\x02\x06\x03\x12\x03\x18\x17\x18\n\x0b\n\x04\x04\
    \x01\x02\x07\x12\x03\x19\x02$\n\x0c\n\x05\x04\x01\x02\x07\x04\x12\x03\
    \x19\x02\n\n\x0c\n\x05\x04\x01\x02\x07\x06\x12\x03\x19\x0b\x14\n\x0c\n\
    \x05\x04\x01\x02\x07\x01\x12\x03\x19\x15\x1f\n\x0c\n\x05\x04\x01\x02\x07\
    \x03\x12\x03\x19\"#\n\x0b\n\x04\x04\x01\x02\x08\x12\x03\x1b\x02\"\n\x0c\
    \n\x05\x04\x01\x02\x08\x04\x12\x03\x1b\x02\n\n\x0c\n\x05\x04\x01\x02\x08\
    \x05\x12\x03\x1b\x0b\x10\n\x0c\n\x05\x04\x01\x02\x08\x01\x12\x03\x1b\x11\
    \x1c\n\x0c\n\x05\x04\x01\x02\x08\x03\x12\x03\x1b\x1f!\n\x0b\n\x04\x04\
    \x01\x02\t\x12\x03\x1c\x02%\n\x0c\n\x05\x04\x01\x02\t\x04\x12\x03\x1c\
    \x02\n\n\x0c\n\x05\x04\x01\x02\t\x05\x12\x03\x1c\x0b\x11\n\x0c\n\x05\x04\
    \x01\x02\t\x01\x12\x03\x1c\x12\x1f\n\x0c\n\x05\x04\x01\x02\t\x03\x12\x03\
    \x1c\"$\n\x0b\n\x04\x04\x01\x02\n\x12\x03\x1d\x02\x20\n\x0c\n\x05\x04\
    \x01\x02\n\x04\x12\x03\x1d\x02\n\n\x0c\n\x05\x04\x01\x02\n\x05\x12\x03\
    \x1d\x0b\x11\n\x0c\n\x05\x04\x01\x02\n\x01\x12\x03\x1d\x12\x1a\n\x0c\n\
    \x05\x04\x01\x02\n\x03\x12\x03\x1d\x1d\x1f\n\x0b\n\x04\x04\x01\x02\x0b\
    \x12\x03\x1e\x02\x1f\n\x0c\n\x05\x04\x01\x02\x0b\x04\x12\x03\x1e\x02\n\n\
    \x0c\n\x05\x04\x01\x02\x0b\x05\x12\x03\x1e\x0b\x10\n\x0c\n\x05\x04\x01\
    \x02\x0b\x01\x12\x03\x1e\x11\x19\n\x0c\n\x05\x04\x01\x02\x0b\x03\x12\x03\
    \x1e\x1c\x1e\n\n\n\x02\x04\x02\x12\x04!\0#\x01\n\n\n\x03\x04\x02\x01\x12\
    \x03!\x08\r\n\x0b\n\x04\x04\x02\x02\0\x12\x03\"\x02\x1d\n\x0c\n\x05\x04\
    \x02\x02\0\x04\x12\x03\"\x02\n\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03\"\
    \x0b\x11\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\"\x12\x18\n\x0c\n\x05\x04\
    \x02\x02\0\x03\x12\x03\"\x1b\x1c\n\n\n\x02\x04\x03\x12\x04%\0+\x01\n\n\n\
    \x03\x04\x03\x01\x12\x03%\x08\x0b\n\x0b\n\x04\x04\x03\x02\0\x12\x03&\x02\
    \x17\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03&\x02\n\n\x0c\n\x05\x04\x03\
    \x02\0\x05\x12\x03&\x0b\x0f\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03&\x10\
    \x12\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03&\x15\x16\n\x0b\n\x04\x04\x03\
    \x02\x01\x12\x03'\x02\x1c\n\x0c\n\x05\x04\x03\x02\x01\x04\x12\x03'\x02\n\
    \n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03'\x0b\x11\n\x0c\n\x05\x04\x03\
    \x02\x01\x01\x12\x03'\x12\x17\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03'\
    \x1a\x1b\n\x0b\n\x04\x04\x03\x02\x02\x12\x03(\x02\x1c\n\x0c\n\x05\x04\
    \x03\x02\x02\x04\x12\x03(\x02\n\n\x0c\n\x05\x04\x03\x02\x02\x06\x12\x03(\
    \x0b\x10\n\x0c\n\x05\x04\x03\x02\x02\x01\x12\x03(\x11\x17\n\x0c\n\x05\
    \x04\x03\x02\x02\x03\x12\x03(\x1a\x1b\n\x0b\n\x04\x04\x03\x02\x03\x12\
    \x03)\x02\x1b\n\x0c\n\x05\x04\x03\x02\x03\x04\x12\x03)\x02\n\n\x0c\n\x05\
    \x04\x03\x02\x03\x06\x12\x03)\x0b\x10\n\x0c\n\x05\x04\x03\x02\x03\x01\
    \x12\x03)\x11\x16\n\x0c\n\x05\x04\x03\x02\x03\x03\x12\x03)\x19\x1a\n\x0b\
    \n\x04\x04\x03\x02\x04\x12\x03*\x02\x1c\n\x0c\n\x05\x04\x03\x02\x04\x04\
    \x12\x03*\x02\n\n\x0c\n\x05\x04\x03\x02\x04\x06\x12\x03*\x0b\x10\n\x0c\n\
    \x05\x04\x03\x02\x04\x01\x12\x03*\x11\x17\n\x0c\n\x05\x04\x03\x02\x04\
    \x03\x12\x03*\x1a\x1b\n\n\n\x02\x04\x04\x12\x04-\00\x01\n\n\n\x03\x04\
    \x04\x01\x12\x03-\x08\x11\n\x0b\n\x04\x04\x04\x02\0\x12\x03.\x02\x1a\n\
    \x0c\n\x05\x04\x04\x02\0\x04\x12\x03.\x02\n\n\x0c\n\x05\x04\x04\x02\0\
    \x05\x12\x03.\x0b\x11\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03.\x12\x15\n\
    \x0c\n\x05\x04\x04\x02\0\x03\x12\x03.\x18\x19\n\x0b\n\x04\x04\x04\x02\
    \x01\x12\x03/\x02\x1c\n\x0c\n\x05\x04\x04\x02\x01\x04\x12\x03/\x02\n\n\
    \x0c\n\x05\x04\x04\x02\x01\x05\x12\x03/\x0b\x11\n\x0c\n\x05\x04\x04\x02\
    \x01\x01\x12\x03/\x12\x17\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03/\x1a\
    \x1b\
";

static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;

fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
    ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}

pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
    file_descriptor_proto_lazy.get(|| {
        parse_descriptor_proto()
    })
}