#![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)]
pub struct AvailableAbility {
pub ability_id: ::std::option::Option<i32>,
pub requires_point: ::std::option::Option<bool>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a AvailableAbility {
fn default() -> &'a AvailableAbility {
<AvailableAbility as ::protobuf::Message>::default_instance()
}
}
impl AvailableAbility {
pub fn new() -> AvailableAbility {
::std::default::Default::default()
}
pub fn get_ability_id(&self) -> i32 {
self.ability_id.unwrap_or(0)
}
pub fn clear_ability_id(&mut self) {
self.ability_id = ::std::option::Option::None;
}
pub fn has_ability_id(&self) -> bool {
self.ability_id.is_some()
}
pub fn set_ability_id(&mut self, v: i32) {
self.ability_id = ::std::option::Option::Some(v);
}
pub fn get_requires_point(&self) -> bool {
self.requires_point.unwrap_or(false)
}
pub fn clear_requires_point(&mut self) {
self.requires_point = ::std::option::Option::None;
}
pub fn has_requires_point(&self) -> bool {
self.requires_point.is_some()
}
pub fn set_requires_point(&mut self, v: bool) {
self.requires_point = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for AvailableAbility {
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_int32()?;
self.ability_id = ::std::option::Option::Some(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_bool()?;
self.requires_point = ::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(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(v) = self.ability_id {
my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.requires_point {
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 let Some(v) = self.ability_id {
os.write_int32(1, v)?;
}
if let Some(v) = self.requires_point {
os.write_bool(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() -> AvailableAbility {
AvailableAbility::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::ProtobufTypeInt32>(
"ability_id",
|m: &AvailableAbility| { &m.ability_id },
|m: &mut AvailableAbility| { &mut m.ability_id },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"requires_point",
|m: &AvailableAbility| { &m.requires_point },
|m: &mut AvailableAbility| { &mut m.requires_point },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<AvailableAbility>(
"AvailableAbility",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static AvailableAbility {
static instance: ::protobuf::rt::LazyV2<AvailableAbility> = ::protobuf::rt::LazyV2::INIT;
instance.get(AvailableAbility::new)
}
}
impl ::protobuf::Clear for AvailableAbility {
fn clear(&mut self) {
self.ability_id = ::std::option::Option::None;
self.requires_point = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for AvailableAbility {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for AvailableAbility {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ImageData {
pub bits_per_pixel: ::std::option::Option<i32>,
pub size: ::protobuf::SingularPtrField<Size2DI>,
pub data: ::protobuf::SingularField<::std::vec::Vec<u8>>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ImageData {
fn default() -> &'a ImageData {
<ImageData as ::protobuf::Message>::default_instance()
}
}
impl ImageData {
pub fn new() -> ImageData {
::std::default::Default::default()
}
pub fn get_bits_per_pixel(&self) -> i32 {
self.bits_per_pixel.unwrap_or(0)
}
pub fn clear_bits_per_pixel(&mut self) {
self.bits_per_pixel = ::std::option::Option::None;
}
pub fn has_bits_per_pixel(&self) -> bool {
self.bits_per_pixel.is_some()
}
pub fn set_bits_per_pixel(&mut self, v: i32) {
self.bits_per_pixel = ::std::option::Option::Some(v);
}
pub fn get_size(&self) -> &Size2DI {
self.size.as_ref().unwrap_or_else(|| <Size2DI as ::protobuf::Message>::default_instance())
}
pub fn clear_size(&mut self) {
self.size.clear();
}
pub fn has_size(&self) -> bool {
self.size.is_some()
}
pub fn set_size(&mut self, v: Size2DI) {
self.size = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_size(&mut self) -> &mut Size2DI {
if self.size.is_none() {
self.size.set_default();
}
self.size.as_mut().unwrap()
}
pub fn take_size(&mut self) -> Size2DI {
self.size.take().unwrap_or_else(|| Size2DI::new())
}
pub fn get_data(&self) -> &[u8] {
match self.data.as_ref() {
Some(v) => &v,
None => &[],
}
}
pub fn clear_data(&mut self) {
self.data.clear();
}
pub fn has_data(&self) -> bool {
self.data.is_some()
}
pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
self.data = ::protobuf::SingularField::some(v);
}
pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.data.is_none() {
self.data.set_default();
}
self.data.as_mut().unwrap()
}
pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
self.data.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
}
impl ::protobuf::Message for ImageData {
fn is_initialized(&self) -> bool {
for v in &self.size {
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_int32()?;
self.bits_per_pixel = ::std::option::Option::Some(tmp);
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.size)?;
},
3 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.data)?;
},
_ => {
::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 let Some(v) = self.bits_per_pixel {
my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(ref v) = self.size.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.data.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &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(v) = self.bits_per_pixel {
os.write_int32(1, v)?;
}
if let Some(ref v) = self.size.as_ref() {
os.write_tag(2, ::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.data.as_ref() {
os.write_bytes(3, &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() -> ImageData {
ImageData::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::ProtobufTypeInt32>(
"bits_per_pixel",
|m: &ImageData| { &m.bits_per_pixel },
|m: &mut ImageData| { &mut m.bits_per_pixel },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Size2DI>>(
"size",
|m: &ImageData| { &m.size },
|m: &mut ImageData| { &mut m.size },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"data",
|m: &ImageData| { &m.data },
|m: &mut ImageData| { &mut m.data },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ImageData>(
"ImageData",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ImageData {
static instance: ::protobuf::rt::LazyV2<ImageData> = ::protobuf::rt::LazyV2::INIT;
instance.get(ImageData::new)
}
}
impl ::protobuf::Clear for ImageData {
fn clear(&mut self) {
self.bits_per_pixel = ::std::option::Option::None;
self.size.clear();
self.data.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ImageData {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ImageData {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PointI {
pub x: ::std::option::Option<i32>,
pub y: ::std::option::Option<i32>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a PointI {
fn default() -> &'a PointI {
<PointI as ::protobuf::Message>::default_instance()
}
}
impl PointI {
pub fn new() -> PointI {
::std::default::Default::default()
}
pub fn get_x(&self) -> i32 {
self.x.unwrap_or(0)
}
pub fn clear_x(&mut self) {
self.x = ::std::option::Option::None;
}
pub fn has_x(&self) -> bool {
self.x.is_some()
}
pub fn set_x(&mut self, v: i32) {
self.x = ::std::option::Option::Some(v);
}
pub fn get_y(&self) -> i32 {
self.y.unwrap_or(0)
}
pub fn clear_y(&mut self) {
self.y = ::std::option::Option::None;
}
pub fn has_y(&self) -> bool {
self.y.is_some()
}
pub fn set_y(&mut self, v: i32) {
self.y = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for PointI {
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_int32()?;
self.x = ::std::option::Option::Some(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_int32()?;
self.y = ::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(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(v) = self.x {
my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.y {
my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint);
}
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.x {
os.write_int32(1, v)?;
}
if let Some(v) = self.y {
os.write_int32(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() -> PointI {
PointI::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::ProtobufTypeInt32>(
"x",
|m: &PointI| { &m.x },
|m: &mut PointI| { &mut m.x },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"y",
|m: &PointI| { &m.y },
|m: &mut PointI| { &mut m.y },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<PointI>(
"PointI",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static PointI {
static instance: ::protobuf::rt::LazyV2<PointI> = ::protobuf::rt::LazyV2::INIT;
instance.get(PointI::new)
}
}
impl ::protobuf::Clear for PointI {
fn clear(&mut self) {
self.x = ::std::option::Option::None;
self.y = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PointI {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PointI {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RectangleI {
pub p0: ::protobuf::SingularPtrField<PointI>,
pub p1: ::protobuf::SingularPtrField<PointI>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a RectangleI {
fn default() -> &'a RectangleI {
<RectangleI as ::protobuf::Message>::default_instance()
}
}
impl RectangleI {
pub fn new() -> RectangleI {
::std::default::Default::default()
}
pub fn get_p0(&self) -> &PointI {
self.p0.as_ref().unwrap_or_else(|| <PointI as ::protobuf::Message>::default_instance())
}
pub fn clear_p0(&mut self) {
self.p0.clear();
}
pub fn has_p0(&self) -> bool {
self.p0.is_some()
}
pub fn set_p0(&mut self, v: PointI) {
self.p0 = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_p0(&mut self) -> &mut PointI {
if self.p0.is_none() {
self.p0.set_default();
}
self.p0.as_mut().unwrap()
}
pub fn take_p0(&mut self) -> PointI {
self.p0.take().unwrap_or_else(|| PointI::new())
}
pub fn get_p1(&self) -> &PointI {
self.p1.as_ref().unwrap_or_else(|| <PointI as ::protobuf::Message>::default_instance())
}
pub fn clear_p1(&mut self) {
self.p1.clear();
}
pub fn has_p1(&self) -> bool {
self.p1.is_some()
}
pub fn set_p1(&mut self, v: PointI) {
self.p1 = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_p1(&mut self) -> &mut PointI {
if self.p1.is_none() {
self.p1.set_default();
}
self.p1.as_mut().unwrap()
}
pub fn take_p1(&mut self) -> PointI {
self.p1.take().unwrap_or_else(|| PointI::new())
}
}
impl ::protobuf::Message for RectangleI {
fn is_initialized(&self) -> bool {
for v in &self.p0 {
if !v.is_initialized() {
return false;
}
};
for v in &self.p1 {
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 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.p0)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.p1)?;
},
_ => {
::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 let Some(ref v) = self.p0.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.p1.as_ref() {
let len = v.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(ref v) = self.p0.as_ref() {
os.write_tag(1, ::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.p1.as_ref() {
os.write_tag(2, ::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() -> RectangleI {
RectangleI::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_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PointI>>(
"p0",
|m: &RectangleI| { &m.p0 },
|m: &mut RectangleI| { &mut m.p0 },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PointI>>(
"p1",
|m: &RectangleI| { &m.p1 },
|m: &mut RectangleI| { &mut m.p1 },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<RectangleI>(
"RectangleI",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static RectangleI {
static instance: ::protobuf::rt::LazyV2<RectangleI> = ::protobuf::rt::LazyV2::INIT;
instance.get(RectangleI::new)
}
}
impl ::protobuf::Clear for RectangleI {
fn clear(&mut self) {
self.p0.clear();
self.p1.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RectangleI {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RectangleI {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Point2D {
pub x: ::std::option::Option<f32>,
pub y: ::std::option::Option<f32>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Point2D {
fn default() -> &'a Point2D {
<Point2D as ::protobuf::Message>::default_instance()
}
}
impl Point2D {
pub fn new() -> Point2D {
::std::default::Default::default()
}
pub fn get_x(&self) -> f32 {
self.x.unwrap_or(0.)
}
pub fn clear_x(&mut self) {
self.x = ::std::option::Option::None;
}
pub fn has_x(&self) -> bool {
self.x.is_some()
}
pub fn set_x(&mut self, v: f32) {
self.x = ::std::option::Option::Some(v);
}
pub fn get_y(&self) -> f32 {
self.y.unwrap_or(0.)
}
pub fn clear_y(&mut self) {
self.y = ::std::option::Option::None;
}
pub fn has_y(&self) -> bool {
self.y.is_some()
}
pub fn set_y(&mut self, v: f32) {
self.y = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for Point2D {
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::WireTypeFixed32 {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_float()?;
self.x = ::std::option::Option::Some(tmp);
},
2 => {
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.y = ::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(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(v) = self.x {
my_size += 5;
}
if let Some(v) = self.y {
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.x {
os.write_float(1, v)?;
}
if let Some(v) = self.y {
os.write_float(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() -> Point2D {
Point2D::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::ProtobufTypeFloat>(
"x",
|m: &Point2D| { &m.x },
|m: &mut Point2D| { &mut m.x },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
"y",
|m: &Point2D| { &m.y },
|m: &mut Point2D| { &mut m.y },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Point2D>(
"Point2D",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Point2D {
static instance: ::protobuf::rt::LazyV2<Point2D> = ::protobuf::rt::LazyV2::INIT;
instance.get(Point2D::new)
}
}
impl ::protobuf::Clear for Point2D {
fn clear(&mut self) {
self.x = ::std::option::Option::None;
self.y = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Point2D {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Point2D {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Point {
pub x: ::std::option::Option<f32>,
pub y: ::std::option::Option<f32>,
pub z: ::std::option::Option<f32>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Point {
fn default() -> &'a Point {
<Point as ::protobuf::Message>::default_instance()
}
}
impl Point {
pub fn new() -> Point {
::std::default::Default::default()
}
pub fn get_x(&self) -> f32 {
self.x.unwrap_or(0.)
}
pub fn clear_x(&mut self) {
self.x = ::std::option::Option::None;
}
pub fn has_x(&self) -> bool {
self.x.is_some()
}
pub fn set_x(&mut self, v: f32) {
self.x = ::std::option::Option::Some(v);
}
pub fn get_y(&self) -> f32 {
self.y.unwrap_or(0.)
}
pub fn clear_y(&mut self) {
self.y = ::std::option::Option::None;
}
pub fn has_y(&self) -> bool {
self.y.is_some()
}
pub fn set_y(&mut self, v: f32) {
self.y = ::std::option::Option::Some(v);
}
pub fn get_z(&self) -> f32 {
self.z.unwrap_or(0.)
}
pub fn clear_z(&mut self) {
self.z = ::std::option::Option::None;
}
pub fn has_z(&self) -> bool {
self.z.is_some()
}
pub fn set_z(&mut self, v: f32) {
self.z = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for Point {
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::WireTypeFixed32 {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_float()?;
self.x = ::std::option::Option::Some(tmp);
},
2 => {
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.y = ::std::option::Option::Some(tmp);
},
3 => {
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.z = ::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(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(v) = self.x {
my_size += 5;
}
if let Some(v) = self.y {
my_size += 5;
}
if let Some(v) = self.z {
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.x {
os.write_float(1, v)?;
}
if let Some(v) = self.y {
os.write_float(2, v)?;
}
if let Some(v) = self.z {
os.write_float(3, 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() -> Point {
Point::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::ProtobufTypeFloat>(
"x",
|m: &Point| { &m.x },
|m: &mut Point| { &mut m.x },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
"y",
|m: &Point| { &m.y },
|m: &mut Point| { &mut m.y },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
"z",
|m: &Point| { &m.z },
|m: &mut Point| { &mut m.z },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Point>(
"Point",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Point {
static instance: ::protobuf::rt::LazyV2<Point> = ::protobuf::rt::LazyV2::INIT;
instance.get(Point::new)
}
}
impl ::protobuf::Clear for Point {
fn clear(&mut self) {
self.x = ::std::option::Option::None;
self.y = ::std::option::Option::None;
self.z = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Point {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Point {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Size2DI {
pub x: ::std::option::Option<i32>,
pub y: ::std::option::Option<i32>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Size2DI {
fn default() -> &'a Size2DI {
<Size2DI as ::protobuf::Message>::default_instance()
}
}
impl Size2DI {
pub fn new() -> Size2DI {
::std::default::Default::default()
}
pub fn get_x(&self) -> i32 {
self.x.unwrap_or(0)
}
pub fn clear_x(&mut self) {
self.x = ::std::option::Option::None;
}
pub fn has_x(&self) -> bool {
self.x.is_some()
}
pub fn set_x(&mut self, v: i32) {
self.x = ::std::option::Option::Some(v);
}
pub fn get_y(&self) -> i32 {
self.y.unwrap_or(0)
}
pub fn clear_y(&mut self) {
self.y = ::std::option::Option::None;
}
pub fn has_y(&self) -> bool {
self.y.is_some()
}
pub fn set_y(&mut self, v: i32) {
self.y = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for Size2DI {
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_int32()?;
self.x = ::std::option::Option::Some(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_int32()?;
self.y = ::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(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(v) = self.x {
my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.y {
my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint);
}
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.x {
os.write_int32(1, v)?;
}
if let Some(v) = self.y {
os.write_int32(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() -> Size2DI {
Size2DI::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::ProtobufTypeInt32>(
"x",
|m: &Size2DI| { &m.x },
|m: &mut Size2DI| { &mut m.x },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"y",
|m: &Size2DI| { &m.y },
|m: &mut Size2DI| { &mut m.y },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Size2DI>(
"Size2DI",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Size2DI {
static instance: ::protobuf::rt::LazyV2<Size2DI> = ::protobuf::rt::LazyV2::INIT;
instance.get(Size2DI::new)
}
}
impl ::protobuf::Clear for Size2DI {
fn clear(&mut self) {
self.x = ::std::option::Option::None;
self.y = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Size2DI {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Size2DI {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum Race {
NoRace = 0,
Terran = 1,
Zerg = 2,
Protoss = 3,
Random = 4,
}
impl ::protobuf::ProtobufEnum for Race {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<Race> {
match value {
0 => ::std::option::Option::Some(Race::NoRace),
1 => ::std::option::Option::Some(Race::Terran),
2 => ::std::option::Option::Some(Race::Zerg),
3 => ::std::option::Option::Some(Race::Protoss),
4 => ::std::option::Option::Some(Race::Random),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [Race] = &[
Race::NoRace,
Race::Terran,
Race::Zerg,
Race::Protoss,
Race::Random,
];
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::<Race>("Race", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for Race {
}
impl ::std::default::Default for Race {
fn default() -> Self {
Race::NoRace
}
}
impl ::protobuf::reflect::ProtobufValue for Race {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x1ds2clientprotocol/common.proto\x12\x0eSC2APIProtocol\"X\n\x10Availa\
bleAbility\x12\x1d\n\nability_id\x18\x01\x20\x01(\x05R\tabilityId\x12%\n\
\x0erequires_point\x18\x02\x20\x01(\x08R\rrequiresPoint\"r\n\tImageData\
\x12$\n\x0ebits_per_pixel\x18\x01\x20\x01(\x05R\x0cbitsPerPixel\x12+\n\
\x04size\x18\x02\x20\x01(\x0b2\x17.SC2APIProtocol.Size2DIR\x04size\x12\
\x12\n\x04data\x18\x03\x20\x01(\x0cR\x04data\"$\n\x06PointI\x12\x0c\n\
\x01x\x18\x01\x20\x01(\x05R\x01x\x12\x0c\n\x01y\x18\x02\x20\x01(\x05R\
\x01y\"\\\n\nRectangleI\x12&\n\x02p0\x18\x01\x20\x01(\x0b2\x16.SC2APIPro\
tocol.PointIR\x02p0\x12&\n\x02p1\x18\x02\x20\x01(\x0b2\x16.SC2APIProtoco\
l.PointIR\x02p1\"%\n\x07Point2D\x12\x0c\n\x01x\x18\x01\x20\x01(\x02R\x01\
x\x12\x0c\n\x01y\x18\x02\x20\x01(\x02R\x01y\"1\n\x05Point\x12\x0c\n\x01x\
\x18\x01\x20\x01(\x02R\x01x\x12\x0c\n\x01y\x18\x02\x20\x01(\x02R\x01y\
\x12\x0c\n\x01z\x18\x03\x20\x01(\x02R\x01z\"%\n\x07Size2DI\x12\x0c\n\x01\
x\x18\x01\x20\x01(\x05R\x01x\x12\x0c\n\x01y\x18\x02\x20\x01(\x05R\x01y*A\
\n\x04Race\x12\n\n\x06NoRace\x10\0\x12\n\n\x06Terran\x10\x01\x12\x08\n\
\x04Zerg\x10\x02\x12\x0b\n\x07Protoss\x10\x03\x12\n\n\x06Random\x10\x04\
";
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()
})
}