#![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)]
#[derive(PartialEq,Clone,Default)]
#[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
pub struct Sound {
pub x: u32,
pub y: u32,
pub sound_type: u32,
pub variation: bool,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub unknown_fields: ::protobuf::UnknownFields,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Sound {
fn default() -> &'a Sound {
<Sound as ::protobuf::Message>::default_instance()
}
}
impl Sound {
pub fn new() -> Sound {
::std::default::Default::default()
}
pub fn get_x(&self) -> u32 {
self.x
}
pub fn clear_x(&mut self) {
self.x = 0;
}
pub fn set_x(&mut self, v: u32) {
self.x = v;
}
pub fn get_y(&self) -> u32 {
self.y
}
pub fn clear_y(&mut self) {
self.y = 0;
}
pub fn set_y(&mut self, v: u32) {
self.y = v;
}
pub fn get_sound_type(&self) -> u32 {
self.sound_type
}
pub fn clear_sound_type(&mut self) {
self.sound_type = 0;
}
pub fn set_sound_type(&mut self, v: u32) {
self.sound_type = v;
}
pub fn get_variation(&self) -> bool {
self.variation
}
pub fn clear_variation(&mut self) {
self.variation = false;
}
pub fn set_variation(&mut self, v: bool) {
self.variation = v;
}
}
impl ::protobuf::Message for Sound {
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_uint32()?;
self.x = tmp;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.y = tmp;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.sound_type = tmp;
},
4 => {
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.variation = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.x != 0 {
my_size += ::protobuf::rt::value_size(1, self.x, ::protobuf::wire_format::WireTypeVarint);
}
if self.y != 0 {
my_size += ::protobuf::rt::value_size(2, self.y, ::protobuf::wire_format::WireTypeVarint);
}
if self.sound_type != 0 {
my_size += ::protobuf::rt::value_size(3, self.sound_type, ::protobuf::wire_format::WireTypeVarint);
}
if self.variation != false {
my_size += 2;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if self.x != 0 {
os.write_uint32(1, self.x)?;
}
if self.y != 0 {
os.write_uint32(2, self.y)?;
}
if self.sound_type != 0 {
os.write_uint32(3, self.sound_type)?;
}
if self.variation != false {
os.write_bool(4, self.variation)?;
}
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() -> Sound {
Sound::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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"x",
|m: &Sound| { &m.x },
|m: &mut Sound| { &mut m.x },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"y",
|m: &Sound| { &m.y },
|m: &mut Sound| { &mut m.y },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"sound_type",
|m: &Sound| { &m.sound_type },
|m: &mut Sound| { &mut m.sound_type },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"variation",
|m: &Sound| { &m.variation },
|m: &mut Sound| { &mut m.variation },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Sound>(
"Sound",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Sound {
static instance: ::protobuf::rt::LazyV2<Sound> = ::protobuf::rt::LazyV2::INIT;
instance.get(Sound::new)
}
}
impl ::protobuf::Clear for Sound {
fn clear(&mut self) {
self.x = 0;
self.y = 0;
self.sound_type = 0;
self.variation = false;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Sound {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Sound {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
#[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
pub enum Sound_SoundType {
UNKNOWN = 0,
}
impl ::protobuf::ProtobufEnum for Sound_SoundType {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<Sound_SoundType> {
match value {
0 => ::std::option::Option::Some(Sound_SoundType::UNKNOWN),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [Sound_SoundType] = &[
Sound_SoundType::UNKNOWN,
];
values
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<Sound_SoundType>("Sound.SoundType", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for Sound_SoundType {
}
impl ::std::default::Default for Sound_SoundType {
fn default() -> Self {
Sound_SoundType::UNKNOWN
}
}
impl ::protobuf::reflect::ProtobufValue for Sound_SoundType {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x0bSound.proto\x12\x05smmdb\"\x86\x01\n\x05Sound\x12\x0e\n\x01x\x18\
\x01\x20\x01(\rR\x01xB\0\x12\x0e\n\x01y\x18\x02\x20\x01(\rR\x01yB\0\x12\
\x1f\n\nsound_type\x18\x03\x20\x01(\rR\tsoundTypeB\0\x12\x1e\n\tvariatio\
n\x18\x04\x20\x01(\x08R\tvariationB\0\"\x1a\n\tSoundType\x12\x0b\n\x07UN\
KNOWN\x10\0\x1a\0:\0B\0b\x06proto3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}