#![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_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct LatLng {
pub latitude: f64,
pub longitude: f64,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a LatLng {
fn default() -> &'a LatLng {
<LatLng as ::protobuf::Message>::default_instance()
}
}
impl LatLng {
pub fn new() -> LatLng {
::std::default::Default::default()
}
pub fn get_latitude(&self) -> f64 {
self.latitude
}
pub fn clear_latitude(&mut self) {
self.latitude = 0.;
}
pub fn set_latitude(&mut self, v: f64) {
self.latitude = v;
}
pub fn get_longitude(&self) -> f64 {
self.longitude
}
pub fn clear_longitude(&mut self) {
self.longitude = 0.;
}
pub fn set_longitude(&mut self, v: f64) {
self.longitude = v;
}
}
impl ::protobuf::Message for LatLng {
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::WireTypeFixed64 {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_double()?;
self.latitude = tmp;
},
2 => {
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.longitude = 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.latitude != 0. {
my_size += 9;
}
if self.longitude != 0. {
my_size += 9;
}
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.latitude != 0. {
os.write_double(1, self.latitude)?;
}
if self.longitude != 0. {
os.write_double(2, self.longitude)?;
}
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() -> LatLng {
LatLng::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::ProtobufTypeDouble>(
"latitude",
|m: &LatLng| { &m.latitude },
|m: &mut LatLng| { &mut m.latitude },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>(
"longitude",
|m: &LatLng| { &m.longitude },
|m: &mut LatLng| { &mut m.longitude },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<LatLng>(
"LatLng",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static LatLng {
static instance: ::protobuf::rt::LazyV2<LatLng> = ::protobuf::rt::LazyV2::INIT;
instance.get(LatLng::new)
}
}
impl ::protobuf::Clear for LatLng {
fn clear(&mut self) {
self.latitude = 0.;
self.longitude = 0.;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for LatLng {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for LatLng {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x18google/type/latlng.proto\x12\x0bgoogle.type\"B\n\x06LatLng\x12\x1a\
\n\x08latitude\x18\x01\x20\x01(\x01R\x08latitude\x12\x1c\n\tlongitude\
\x18\x02\x20\x01(\x01R\tlongitudeBc\n\x0fcom.google.typeB\x0bLatLngProto\
P\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xf8\x01\
\x01\xa2\x02\x03GTPJ\xac\n\n\x06\x12\x04\x0f\0%\x01\n\xbe\x04\n\x01\x0c\
\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\
\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\
(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\
xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\
obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\
\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\
\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\
oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\
\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\
\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\
ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\
governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\
nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x14\n\x08\n\x01\x08\x12\x03\x13\0\
\x1f\n\t\n\x02\x08\x1f\x12\x03\x13\0\x1f\n\x08\n\x01\x08\x12\x03\x14\0O\
\n\t\n\x02\x08\x0b\x12\x03\x14\0O\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\
\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0,\n\t\n\x02\x08\
\x08\x12\x03\x16\0,\n\x08\n\x01\x08\x12\x03\x17\0(\n\t\n\x02\x08\x01\x12\
\x03\x17\0(\n\x08\n\x01\x08\x12\x03\x18\0!\n\t\n\x02\x08$\x12\x03\x18\0!\
\n\xd3\x02\n\x02\x04\0\x12\x04\x1f\0%\x01\x1a\xc6\x02\x20An\x20object\
\x20representing\x20a\x20latitude/longitude\x20pair.\x20This\x20is\x20ex\
pressed\x20as\x20a\x20pair\n\x20of\x20doubles\x20representing\x20degrees\
\x20latitude\x20and\x20degrees\x20longitude.\x20Unless\n\x20specified\
\x20otherwise,\x20this\x20must\x20conform\x20to\x20the\n\x20<a\x20href=\
\"http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\n\x20st\
andard</a>.\x20Values\x20must\x20be\x20within\x20normalized\x20ranges.\n\
\n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x0e\nO\n\x04\x04\0\x02\0\x12\x03!\
\x02\x16\x1aB\x20The\x20latitude\x20in\x20degrees.\x20It\x20must\x20be\
\x20in\x20the\x20range\x20[-90.0,\x20+90.0].\n\n\x0c\n\x05\x04\0\x02\0\
\x05\x12\x03!\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03!\t\x11\n\x0c\n\
\x05\x04\0\x02\0\x03\x12\x03!\x14\x15\nR\n\x04\x04\0\x02\x01\x12\x03$\
\x02\x17\x1aE\x20The\x20longitude\x20in\x20degrees.\x20It\x20must\x20be\
\x20in\x20the\x20range\x20[-180.0,\x20+180.0].\n\n\x0c\n\x05\x04\0\x02\
\x01\x05\x12\x03$\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03$\t\x12\n\
\x0c\n\x05\x04\0\x02\x01\x03\x12\x03$\x15\x16b\x06proto3\
";
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()
})
}