4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fspherical_5fcoordinates_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fspherical_5fcoordinates_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/entity.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fspherical_5fcoordinates_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
53 class SphericalCoordinates;
54 class SphericalCoordinatesDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::SphericalCoordinates* Arena::CreateMaybeMessage<::gz::msgs::SphericalCoordinates>(Arena*);
80 return ::google::protobuf::internal::NameOfEnum(
85 return ::google::protobuf::internal::ParseNamedEnum<SphericalCoordinates_SurfaceModel>(
104 return ::google::protobuf::internal::NameOfEnum(
109 return ::google::protobuf::internal::ParseNamedEnum<SphericalCoordinatesType>(
128 *
this = ::std::move(from);
131 inline SphericalCoordinates& operator=(SphericalCoordinates&& from) noexcept {
132 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
133 if (
this != &from) InternalSwap(&from);
140 static const ::google::protobuf::Descriptor* descriptor();
141 static const SphericalCoordinates& default_instance();
143 static void InitAsDefaultInstance();
148 static constexpr
int kIndexInFileMessages =
159 return CreateMaybeMessage<SphericalCoordinates>(NULL);
163 return CreateMaybeMessage<SphericalCoordinates>(arena);
165 void CopyFrom(const ::google::protobuf::Message& from)
final;
166 void MergeFrom(const ::google::protobuf::Message& from)
final;
170 bool IsInitialized() const final;
172 size_t ByteSizeLong() const final;
173 bool MergePartialFromCodedStream(
174 ::
google::protobuf::io::CodedInputStream* input) final;
175 void SerializeWithCachedSizes(
176 ::
google::protobuf::io::CodedOutputStream* output) const final;
177 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
178 bool deterministic, ::
google::protobuf::uint8* target) const final;
179 int GetCachedSize() const final {
return _cached_size_.Get(); }
184 void SetCachedSize(
int size)
const final;
187 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
190 inline void* MaybeArenaPtr()
const {
195 ::google::protobuf::Metadata GetMetadata() const final;
206 static inline
bool SurfaceModel_IsValid(
int value) {
213 static const int SurfaceModel_ARRAYSIZE =
215 static inline const ::google::protobuf::EnumDescriptor*
230 bool has_header()
const;
232 static const int kHeaderFieldNumber = 1;
234 const ::gz::msgs::Header& _internal_header()
const;
236 const ::gz::msgs::Header& header()
const;
242 bool has_entity()
const;
244 static const int kEntityFieldNumber = 7;
246 const ::gz::msgs::Entity& _internal_entity()
const;
248 const ::gz::msgs::Entity& entity()
const;
254 void clear_latitude_deg();
255 static const int kLatitudeDegFieldNumber = 3;
256 double latitude_deg()
const;
257 void set_latitude_deg(
double value);
260 void clear_longitude_deg();
261 static const int kLongitudeDegFieldNumber = 4;
262 double longitude_deg()
const;
263 void set_longitude_deg(
double value);
266 void clear_elevation();
267 static const int kElevationFieldNumber = 5;
268 double elevation()
const;
269 void set_elevation(
double value);
272 void clear_heading_deg();
273 static const int kHeadingDegFieldNumber = 6;
274 double heading_deg()
const;
275 void set_heading_deg(
double value);
278 void clear_surface_axis_equatorial();
279 static const int kSurfaceAxisEquatorialFieldNumber = 8;
280 double surface_axis_equatorial()
const;
281 void set_surface_axis_equatorial(
double value);
284 void clear_surface_axis_polar();
285 static const int kSurfaceAxisPolarFieldNumber = 9;
286 double surface_axis_polar()
const;
287 void set_surface_axis_polar(
double value);
290 void clear_surface_model();
291 static const int kSurfaceModelFieldNumber = 2;
298 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
301 double latitude_deg_;
302 double longitude_deg_;
305 double surface_axis_equatorial_;
306 double surface_axis_polar_;
308 mutable ::google::protobuf::internal::CachedSize _cached_size_;
309 friend struct ::protobuf_gz_2fmsgs_2fspherical_5fcoordinates_2eproto::TableStruct;
317 #pragma GCC diagnostic push
318 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
326 inline const ::gz::msgs::Header& SphericalCoordinates::_internal_header()
const {
330 const ::gz::msgs::Header* p = header_;
344 if (header_ == NULL) {
345 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
352 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
353 if (message_arena == NULL) {
354 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
357 ::google::protobuf::Arena* submessage_arena = NULL;
358 if (message_arena != submessage_arena) {
359 header = ::google::protobuf::internal::GetOwnedMessage(
360 message_arena,
header, submessage_arena);
380 surface_model_ = value;
390 return latitude_deg_;
394 latitude_deg_ = value;
404 return longitude_deg_;
408 longitude_deg_ = value;
436 heading_deg_ = value;
444 inline const ::gz::msgs::Entity& SphericalCoordinates::_internal_entity()
const {
448 const ::gz::msgs::Entity* p = entity_;
462 if (entity_ == NULL) {
463 auto* p = CreateMaybeMessage<::gz::msgs::Entity>(GetArenaNoVirtual());
470 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
471 if (message_arena == NULL) {
472 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(entity_);
475 ::google::protobuf::Arena* submessage_arena = NULL;
476 if (message_arena != submessage_arena) {
477 entity = ::google::protobuf::internal::GetOwnedMessage(
478 message_arena,
entity, submessage_arena);
490 surface_axis_equatorial_ = 0;
494 return surface_axis_equatorial_;
498 surface_axis_equatorial_ = value;
504 surface_axis_polar_ = 0;
508 return surface_axis_polar_;
512 surface_axis_polar_ = value;
517 #pragma GCC diagnostic pop
530 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::SphericalCoordinates_SurfaceModel>() {
535 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::SphericalCoordinatesType>() {
544 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fspherical_5fcoordinates_2eproto