4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fgps_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fgps_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/unknown_field_set.h>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fgps_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
53 PROTOBUF_NAMESPACE_CLOSE
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
64 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
71 class GPSDefaultTypeInternal;
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::GPS* Arena::CreateMaybeMessage<::ignition::msgs::GPS>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
83 class IGNITION_MSGS_VISIBLE GPS PROTOBUF_FINAL :
84 public ::PROTOBUF_NAMESPACE_ID::Message {
86 inline GPS() : GPS(nullptr) {}
90 GPS(GPS&& from) noexcept
92 *
this = ::std::move(from);
100 if (GetArena() == from.GetArena()) {
101 if (
this != &from) InternalSwap(&from);
108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
109 return GetDescriptor();
112 return GetMetadataStatic().descriptor;
115 return GetMetadataStatic().reflection;
120 return reinterpret_cast<const GPS*
>(
123 static constexpr
int kIndexInFileMessages =
126 friend void swap(GPS& a, GPS& b) {
130 if (other ==
this)
return;
131 if (GetArena() == other->GetArena()) {
134 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
138 if (other ==
this)
return;
139 GOOGLE_DCHECK(GetArena() == other->GetArena());
145 inline GPS*
New() const final {
146 return CreateMaybeMessage<GPS>(
nullptr);
149 GPS*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
150 return CreateMaybeMessage<GPS>(arena);
152 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
153 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
156 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
157 bool IsInitialized() const final;
159 size_t ByteSizeLong() const final;
160 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
161 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
162 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
163 int GetCachedSize() const final {
return _cached_size_.Get(); }
166 inline void SharedCtor();
167 inline void SharedDtor();
168 void SetCachedSize(
int size)
const final;
169 void InternalSwap(GPS* other);
170 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172 return "ignition.msgs.GPS";
175 explicit GPS(::PROTOBUF_NAMESPACE_ID::Arena* arena);
177 static void ArenaDtor(
void*
object);
178 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
183 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
195 kLinkNameFieldNumber = 2,
196 kHeaderFieldNumber = 1,
197 kLatitudeDegFieldNumber = 3,
198 kLongitudeDegFieldNumber = 4,
199 kAltitudeFieldNumber = 5,
200 kVelocityEastFieldNumber = 6,
201 kVelocityNorthFieldNumber = 7,
202 kVelocityUpFieldNumber = 8,
216 void _internal_set_link_name(
const std::string& value);
223 bool _internal_has_header()
const;
226 const ::ignition::msgs::Header&
header()
const;
231 const ::ignition::msgs::Header& _internal_header()
const;
232 ::ignition::msgs::Header* _internal_mutable_header();
235 ::ignition::msgs::Header* header);
243 double _internal_latitude_deg()
const;
244 void _internal_set_latitude_deg(
double value);
252 double _internal_longitude_deg()
const;
253 void _internal_set_longitude_deg(
double value);
261 double _internal_altitude()
const;
262 void _internal_set_altitude(
double value);
270 double _internal_velocity_east()
const;
271 void _internal_set_velocity_east(
double value);
279 double _internal_velocity_north()
const;
280 void _internal_set_velocity_north(
double value);
288 double _internal_velocity_up()
const;
289 void _internal_set_velocity_up(
double value);
296 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
297 typedef void InternalArenaConstructable_;
298 typedef void DestructorSkippable_;
299 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr link_name_;
300 ::ignition::msgs::Header* header_;
301 double latitude_deg_;
302 double longitude_deg_;
304 double velocity_east_;
305 double velocity_north_;
307 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
308 friend struct ::TableStruct_ignition_2fmsgs_2fgps_2eproto;
316 #pragma GCC diagnostic push
317 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
322 inline bool GPS::_internal_has_header()
const {
323 return this != internal_default_instance() && header_ !=
nullptr;
325 inline bool GPS::has_header()
const {
326 return _internal_has_header();
328 inline const ::ignition::msgs::Header& GPS::_internal_header()
const {
329 const ::ignition::msgs::Header* p = header_;
330 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
333 inline const ::ignition::msgs::Header& GPS::header()
const {
335 return _internal_header();
337 inline void GPS::unsafe_arena_set_allocated_header(
338 ::ignition::msgs::Header* header) {
339 if (GetArena() ==
nullptr) {
340 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
350 inline ::ignition::msgs::Header* GPS::release_header() {
352 ::ignition::msgs::Header* temp = header_;
354 if (GetArena() !=
nullptr) {
355 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
359 inline ::ignition::msgs::Header* GPS::unsafe_arena_release_header() {
362 ::ignition::msgs::Header* temp = header_;
366 inline ::ignition::msgs::Header* GPS::_internal_mutable_header() {
368 if (header_ ==
nullptr) {
369 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
374 inline ::ignition::msgs::Header* GPS::mutable_header() {
376 return _internal_mutable_header();
378 inline void GPS::set_allocated_header(::ignition::msgs::Header* header) {
379 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
380 if (message_arena ==
nullptr) {
381 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
384 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
385 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
386 if (message_arena != submessage_arena) {
387 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
388 message_arena, header, submessage_arena);
399 inline void GPS::clear_link_name() {
400 link_name_.ClearToEmpty();
404 return _internal_link_name();
406 inline void GPS::set_link_name(
const std::string& value) {
407 _internal_set_link_name(value);
412 return _internal_mutable_link_name();
414 inline const std::string& GPS::_internal_link_name()
const {
415 return link_name_.Get();
417 inline void GPS::_internal_set_link_name(
const std::string& value) {
419 link_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
421 inline void GPS::set_link_name(
std::string&& value) {
424 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
427 inline void GPS::set_link_name(
const char* value) {
428 GOOGLE_DCHECK(value !=
nullptr);
430 link_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
433 inline void GPS::set_link_name(
const char* value,
436 link_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
437 reinterpret_cast<const char*
>(value), size), GetArena());
440 inline std::string* GPS::_internal_mutable_link_name() {
442 return link_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
446 return link_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
448 inline void GPS::set_allocated_link_name(
std::string* link_name) {
449 if (link_name !=
nullptr) {
454 link_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), link_name,
460 inline void GPS::clear_latitude_deg() {
463 inline double GPS::_internal_latitude_deg()
const {
464 return latitude_deg_;
466 inline double GPS::latitude_deg()
const {
468 return _internal_latitude_deg();
470 inline void GPS::_internal_set_latitude_deg(
double value) {
472 latitude_deg_ = value;
474 inline void GPS::set_latitude_deg(
double value) {
475 _internal_set_latitude_deg(value);
480 inline void GPS::clear_longitude_deg() {
483 inline double GPS::_internal_longitude_deg()
const {
484 return longitude_deg_;
486 inline double GPS::longitude_deg()
const {
488 return _internal_longitude_deg();
490 inline void GPS::_internal_set_longitude_deg(
double value) {
492 longitude_deg_ = value;
494 inline void GPS::set_longitude_deg(
double value) {
495 _internal_set_longitude_deg(value);
500 inline void GPS::clear_altitude() {
503 inline double GPS::_internal_altitude()
const {
506 inline double GPS::altitude()
const {
508 return _internal_altitude();
510 inline void GPS::_internal_set_altitude(
double value) {
514 inline void GPS::set_altitude(
double value) {
515 _internal_set_altitude(value);
520 inline void GPS::clear_velocity_east() {
523 inline double GPS::_internal_velocity_east()
const {
524 return velocity_east_;
526 inline double GPS::velocity_east()
const {
528 return _internal_velocity_east();
530 inline void GPS::_internal_set_velocity_east(
double value) {
532 velocity_east_ = value;
534 inline void GPS::set_velocity_east(
double value) {
535 _internal_set_velocity_east(value);
540 inline void GPS::clear_velocity_north() {
543 inline double GPS::_internal_velocity_north()
const {
544 return velocity_north_;
546 inline double GPS::velocity_north()
const {
548 return _internal_velocity_north();
550 inline void GPS::_internal_set_velocity_north(
double value) {
552 velocity_north_ = value;
554 inline void GPS::set_velocity_north(
double value) {
555 _internal_set_velocity_north(value);
560 inline void GPS::clear_velocity_up() {
563 inline double GPS::_internal_velocity_up()
const {
566 inline double GPS::velocity_up()
const {
568 return _internal_velocity_up();
570 inline void GPS::_internal_set_velocity_up(
double value) {
572 velocity_up_ = value;
574 inline void GPS::set_velocity_up(
double value) {
575 _internal_set_velocity_up(value);
580 #pragma GCC diagnostic pop
597 #include <google/protobuf/port_undef.inc>
double longitude_deg() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: gps.pb.h:114
void clear_velocity_east()
void set_latitude_deg(double value)
void Swap(GPS *other)
Definition: gps.pb.h:129
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const GPS * internal_default_instance()
Definition: gps.pb.h:119
::ignition::msgs::Header * release_header()
void set_link_name(const char *value)
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: gps.pb.h:108
friend void swap(GPS &a, GPS &b)
Definition: gps.pb.h:126
void set_allocated_link_name(std::string *link_name)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
double velocity_north() const
void clear_velocity_north()
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void CopyFrom(const GPS &from)
GPS & operator=(GPS &&from) noexcept
Definition: gps.pb.h:99
void clear_longitude_deg()
GPS(GPS &&from) noexcept
Definition: gps.pb.h:90
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
GPS * New() const final
Definition: gps.pb.h:145
double latitude_deg() const
void set_velocity_north(double value)
void set_link_name(std::string &&value)
double velocity_up() const
void set_allocated_header(::ignition::msgs::Header *header)
void set_longitude_deg(double value)
GPS & operator=(const GPS &from)
Definition: gps.pb.h:95
void set_velocity_east(double value)
GPS * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: gps.pb.h:149
GPS(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
std::string * mutable_link_name()
void set_link_name(const char *value, size_t size)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: gps.pb.h:111
void MergeFrom(const GPS &from)
double velocity_east() const
void clear_latitude_deg()
GPS()
Definition: gps.pb.h:86
std::string * release_link_name()
void set_altitude(double value)
void set_velocity_up(double value)
static const GPS & default_instance()
const ::ignition::msgs::Header & header() const
const std::string & link_name() const
void UnsafeArenaSwap(GPS *other)
Definition: gps.pb.h:137
void set_link_name(const std::string &value)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fgps_2eproto
IGNITION_MSGS_VISIBLE GPSDefaultTypeInternal _GPS_default_instance_
std::unique_ptr< GPS > GPSUniquePtr
Definition: gps.pb.h:583
std::shared_ptr< GPS > GPSSharedPtr
Definition: gps.pb.h:585
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const GPS > ConstGPSSharedPtr
Definition: gps.pb.h:586
std::unique_ptr< const GPS > ConstGPSUniquePtr
Definition: gps.pb.h:584
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)