#![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)]
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
#[derive(PartialEq,Clone,Default,Debug)]
#[derive(::gz_msgs_derive::GzMessage)]
pub struct Shadows {
    pub header: ::protobuf::MessageField<super::header::Header>,
    pub type_: ::protobuf::EnumOrUnknown<shadows::ShadowType>,
    pub color: ::protobuf::MessageField<super::color::Color>,
    pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a Shadows {
    fn default() -> &'a Shadows {
        <Shadows as ::protobuf::Message>::default_instance()
    }
}
impl Shadows {
    pub fn new() -> Shadows {
        ::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_message_field_accessor::<_, super::header::Header>(
            "header",
            |m: &Shadows| { &m.header },
            |m: &mut Shadows| { &mut m.header },
        ));
        fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
            "type",
            |m: &Shadows| { &m.type_ },
            |m: &mut Shadows| { &mut m.type_ },
        ));
        fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::color::Color>(
            "color",
            |m: &Shadows| { &m.color },
            |m: &mut Shadows| { &mut m.color },
        ));
        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Shadows>(
            "Shadows",
            fields,
            oneofs,
        )
    }
}
impl ::protobuf::Message for Shadows {
    const NAME: &'static str = "Shadows";
    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.header)?;
                },
                16 => {
                    self.type_ = is.read_enum_or_unknown()?;
                },
                26 => {
                    ::protobuf::rt::read_singular_message_into_field(is, &mut self.color)?;
                },
                tag => {
                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }
    #[allow(unused_variables)]
    fn compute_size(&self) -> u64 {
        let mut my_size = 0;
        if let Some(v) = self.header.as_ref() {
            let len = v.compute_size();
            my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
        }
        if self.type_ != ::protobuf::EnumOrUnknown::new(shadows::ShadowType::STENCIL_ADDITIVE) {
            my_size += ::protobuf::rt::int32_size(2, self.type_.value());
        }
        if let Some(v) = self.color.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.header.as_ref() {
            ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
        }
        if self.type_ != ::protobuf::EnumOrUnknown::new(shadows::ShadowType::STENCIL_ADDITIVE) {
            os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.type_))?;
        }
        if let Some(v) = self.color.as_ref() {
            ::protobuf::rt::write_message_field_with_cached_size(3, 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() -> Shadows {
        Shadows::new()
    }
    fn clear(&mut self) {
        self.header.clear();
        self.type_ = ::protobuf::EnumOrUnknown::new(shadows::ShadowType::STENCIL_ADDITIVE);
        self.color.clear();
        self.special_fields.clear();
    }
    fn default_instance() -> &'static Shadows {
        static instance: Shadows = Shadows {
            header: ::protobuf::MessageField::none(),
            type_: ::protobuf::EnumOrUnknown::from_i32(0),
            color: ::protobuf::MessageField::none(),
            special_fields: ::protobuf::SpecialFields::new(),
        };
        &instance
    }
}
impl ::protobuf::MessageFull for Shadows {
    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("Shadows").unwrap()).clone()
    }
}
impl ::std::fmt::Display for Shadows {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        ::protobuf::text_format::fmt(self, f)
    }
}
impl ::protobuf::reflect::ProtobufValue for Shadows {
    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
pub mod shadows {
    #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
    pub enum ShadowType {
        STENCIL_ADDITIVE = 0,
        STENCIL_MODULATIVE = 1,
        TEXTURE_ADDITIVE = 2,
        TEXTURE_MODULATIVE = 3,
    }
    impl ::protobuf::Enum for ShadowType {
        const NAME: &'static str = "ShadowType";
        fn value(&self) -> i32 {
            *self as i32
        }
        fn from_i32(value: i32) -> ::std::option::Option<ShadowType> {
            match value {
                0 => ::std::option::Option::Some(ShadowType::STENCIL_ADDITIVE),
                1 => ::std::option::Option::Some(ShadowType::STENCIL_MODULATIVE),
                2 => ::std::option::Option::Some(ShadowType::TEXTURE_ADDITIVE),
                3 => ::std::option::Option::Some(ShadowType::TEXTURE_MODULATIVE),
                _ => ::std::option::Option::None
            }
        }
        const VALUES: &'static [ShadowType] = &[
            ShadowType::STENCIL_ADDITIVE,
            ShadowType::STENCIL_MODULATIVE,
            ShadowType::TEXTURE_ADDITIVE,
            ShadowType::TEXTURE_MODULATIVE,
        ];
    }
    impl ::protobuf::EnumFull for ShadowType {
        fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
            static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
            descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Shadows.ShadowType").unwrap()).clone()
        }
        fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
            let index = *self as usize;
            Self::enum_descriptor().value_by_index(index)
        }
    }
    impl ::std::default::Default for ShadowType {
        fn default() -> Self {
            ShadowType::STENCIL_ADDITIVE
        }
    }
    impl ShadowType {
        pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
            ::protobuf::reflect::GeneratedEnumDescriptorData::new::<ShadowType>("Shadows.ShadowType")
        }
    }
}
static file_descriptor_proto_data: &'static [u8] = b"\
    \n\x15gz/msgs/shadows.proto\x12\x07gz.msgs\x1a\x13gz/msgs/color.proto\
    \x1a\x14gz/msgs/header.proto\"\xf3\x01\n\x07Shadows\x12'\n\x06header\x18\
    \x01\x20\x01(\x0b2\x0f.gz.msgs.HeaderR\x06header\x12/\n\x04type\x18\x02\
    \x20\x01(\x0e2\x1b.gz.msgs.Shadows.ShadowTypeR\x04type\x12$\n\x05color\
    \x18\x03\x20\x01(\x0b2\x0e.gz.msgs.ColorR\x05color\"h\n\nShadowType\x12\
    \x14\n\x10STENCIL_ADDITIVE\x10\0\x12\x16\n\x12STENCIL_MODULATIVE\x10\x01\
    \x12\x14\n\x10TEXTURE_ADDITIVE\x10\x02\x12\x16\n\x12TEXTURE_MODULATIVE\
    \x10\x03B\x1c\n\x0bcom.gz.msgsB\rShadowsProtosb\x06proto3\
";
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()
    })
}
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(2);
            deps.push(super::color::file_descriptor().clone());
            deps.push(super::header::file_descriptor().clone());
            let mut messages = ::std::vec::Vec::with_capacity(1);
            messages.push(Shadows::generated_message_descriptor_data());
            let mut enums = ::std::vec::Vec::with_capacity(1);
            enums.push(shadows::ShadowType::generated_enum_descriptor_data());
            ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
                file_descriptor_proto(),
                deps,
                messages,
                enums,
            )
        });
        ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
    })
}