Gazebo Msgs

API Reference

5.11.0
build/ignition-msgs5/include/ignition/msgs/gps.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/gps.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fgps_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fgps_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
34 #ifndef _MSC_VER
35 #pragma GCC system_header
36 #else
37 #pragma warning(push)
38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
39 #endif
40 #ifdef __linux__
41 #include <sys/sysmacros.h>
42 #endif
43 #include <memory>
44 #include <ignition/msgs/Export.hh>
45 // @@protoc_insertion_point(includes)
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fgps_2eproto IGNITION_MSGS_VISIBLE
47 
49 // Internal implementation detail -- do not use these members.
50 struct IGNITION_MSGS_VISIBLE TableStruct {
51  static const ::google::protobuf::internal::ParseTableField entries[];
52  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
53  static const ::google::protobuf::internal::ParseTable schema[1];
54  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
55  static const ::google::protobuf::internal::SerializationTable serialization_table[];
56  static const ::google::protobuf::uint32 offsets[];
57 };
58 void IGNITION_MSGS_VISIBLE AddDescriptors();
59 } // namespace protobuf_ignition_2fmsgs_2fgps_2eproto
60 namespace ignition {
61 namespace msgs {
62 class GPS;
63 class GPSDefaultTypeInternal;
64 IGNITION_MSGS_VISIBLE extern GPSDefaultTypeInternal _GPS_default_instance_;
65 } // namespace msgs
66 } // namespace ignition
67 namespace google {
68 namespace protobuf {
69 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::GPS* Arena::CreateMaybeMessage<::ignition::msgs::GPS>(Arena*);
70 } // namespace protobuf
71 } // namespace google
72 namespace ignition {
73 namespace msgs {
74 
75 // ===================================================================
76 
77 class IGNITION_MSGS_VISIBLE GPS : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.GPS) */ {
78  public:
79  GPS();
80  virtual ~GPS();
81 
82  GPS(const GPS& from);
83 
84  inline GPS& operator=(const GPS& from) {
85  CopyFrom(from);
86  return *this;
87  }
88  #if LANG_CXX11
89  GPS(GPS&& from) noexcept
90  : GPS() {
91  *this = ::std::move(from);
92  }
93 
94  inline GPS& operator=(GPS&& from) noexcept {
95  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
96  if (this != &from) InternalSwap(&from);
97  } else {
98  CopyFrom(from);
99  }
100  return *this;
101  }
102  #endif
103  static const ::google::protobuf::Descriptor* descriptor();
104  static const GPS& default_instance();
105 
106  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
107  static inline const GPS* internal_default_instance() {
108  return reinterpret_cast<const GPS*>(
110  }
111  static constexpr int kIndexInFileMessages =
112  0;
113 
114  void Swap(GPS* other);
115  friend void swap(GPS& a, GPS& b) {
116  a.Swap(&b);
117  }
118 
119  // implements Message ----------------------------------------------
120 
121  inline GPS* New() const final {
122  return CreateMaybeMessage<GPS>(NULL);
123  }
124 
125  GPS* New(::google::protobuf::Arena* arena) const final {
126  return CreateMaybeMessage<GPS>(arena);
127  }
128  void CopyFrom(const ::google::protobuf::Message& from) final;
129  void MergeFrom(const ::google::protobuf::Message& from) final;
130  void CopyFrom(const GPS& from);
131  void MergeFrom(const GPS& from);
132  void Clear() final;
133  bool IsInitialized() const final;
134 
135  size_t ByteSizeLong() const final;
136  bool MergePartialFromCodedStream(
137  ::google::protobuf::io::CodedInputStream* input) final;
138  void SerializeWithCachedSizes(
139  ::google::protobuf::io::CodedOutputStream* output) const final;
140  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
141  bool deterministic, ::google::protobuf::uint8* target) const final;
142  int GetCachedSize() const final { return _cached_size_.Get(); }
143 
144  private:
145  void SharedCtor();
146  void SharedDtor();
147  void SetCachedSize(int size) const final;
148  void InternalSwap(GPS* other);
149  private:
150  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
151  return NULL;
152  }
153  inline void* MaybeArenaPtr() const {
154  return NULL;
155  }
156  public:
157 
158  ::google::protobuf::Metadata GetMetadata() const final;
159 
160  // nested types ----------------------------------------------------
161 
162  // accessors -------------------------------------------------------
163 
164  // string link_name = 2;
165  void clear_link_name();
166  static const int kLinkNameFieldNumber = 2;
167  const ::std::string& link_name() const;
168  void set_link_name(const ::std::string& value);
169  #if LANG_CXX11
170  void set_link_name(::std::string&& value);
171  #endif
172  void set_link_name(const char* value);
173  void set_link_name(const char* value, size_t size);
174  ::std::string* mutable_link_name();
175  ::std::string* release_link_name();
176  void set_allocated_link_name(::std::string* link_name);
177 
178  // .ignition.msgs.Header header = 1;
179  bool has_header() const;
180  void clear_header();
181  static const int kHeaderFieldNumber = 1;
182  private:
183  const ::ignition::msgs::Header& _internal_header() const;
184  public:
185  const ::ignition::msgs::Header& header() const;
186  ::ignition::msgs::Header* release_header();
187  ::ignition::msgs::Header* mutable_header();
188  void set_allocated_header(::ignition::msgs::Header* header);
189 
190  // double latitude_deg = 3;
191  void clear_latitude_deg();
192  static const int kLatitudeDegFieldNumber = 3;
193  double latitude_deg() const;
194  void set_latitude_deg(double value);
195 
196  // double longitude_deg = 4;
197  void clear_longitude_deg();
198  static const int kLongitudeDegFieldNumber = 4;
199  double longitude_deg() const;
200  void set_longitude_deg(double value);
201 
202  // double altitude = 5;
203  void clear_altitude();
204  static const int kAltitudeFieldNumber = 5;
205  double altitude() const;
206  void set_altitude(double value);
207 
208  // double velocity_east = 6;
209  void clear_velocity_east();
210  static const int kVelocityEastFieldNumber = 6;
211  double velocity_east() const;
212  void set_velocity_east(double value);
213 
214  // double velocity_north = 7;
215  void clear_velocity_north();
216  static const int kVelocityNorthFieldNumber = 7;
217  double velocity_north() const;
218  void set_velocity_north(double value);
219 
220  // double velocity_up = 8;
221  void clear_velocity_up();
222  static const int kVelocityUpFieldNumber = 8;
223  double velocity_up() const;
224  void set_velocity_up(double value);
225 
226  // @@protoc_insertion_point(class_scope:ignition.msgs.GPS)
227  private:
228 
229  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
230  ::google::protobuf::internal::ArenaStringPtr link_name_;
231  ::ignition::msgs::Header* header_;
232  double latitude_deg_;
233  double longitude_deg_;
234  double altitude_;
235  double velocity_east_;
236  double velocity_north_;
237  double velocity_up_;
238  mutable ::google::protobuf::internal::CachedSize _cached_size_;
239  friend struct ::protobuf_ignition_2fmsgs_2fgps_2eproto::TableStruct;
240 };
241 // ===================================================================
242 
243 
244 // ===================================================================
245 
246 #ifdef __GNUC__
247  #pragma GCC diagnostic push
248  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
249 #endif // __GNUC__
250 // GPS
251 
252 // .ignition.msgs.Header header = 1;
253 inline bool GPS::has_header() const {
254  return this != internal_default_instance() && header_ != NULL;
255 }
256 inline const ::ignition::msgs::Header& GPS::_internal_header() const {
257  return *header_;
258 }
259 inline const ::ignition::msgs::Header& GPS::header() const {
260  const ::ignition::msgs::Header* p = header_;
261  // @@protoc_insertion_point(field_get:ignition.msgs.GPS.header)
262  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
264 }
265 inline ::ignition::msgs::Header* GPS::release_header() {
266  // @@protoc_insertion_point(field_release:ignition.msgs.GPS.header)
267 
268  ::ignition::msgs::Header* temp = header_;
269  header_ = NULL;
270  return temp;
271 }
272 inline ::ignition::msgs::Header* GPS::mutable_header() {
273 
274  if (header_ == NULL) {
275  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
276  header_ = p;
277  }
278  // @@protoc_insertion_point(field_mutable:ignition.msgs.GPS.header)
279  return header_;
280 }
282  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
283  if (message_arena == NULL) {
284  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
285  }
286  if (header) {
287  ::google::protobuf::Arena* submessage_arena = NULL;
288  if (message_arena != submessage_arena) {
289  header = ::google::protobuf::internal::GetOwnedMessage(
290  message_arena, header, submessage_arena);
291  }
292 
293  } else {
294 
295  }
296  header_ = header;
297  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.GPS.header)
298 }
299 
300 // string link_name = 2;
301 inline void GPS::clear_link_name() {
302  link_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
303 }
304 inline const ::std::string& GPS::link_name() const {
305  // @@protoc_insertion_point(field_get:ignition.msgs.GPS.link_name)
306  return link_name_.GetNoArena();
307 }
308 inline void GPS::set_link_name(const ::std::string& value) {
309 
310  link_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
311  // @@protoc_insertion_point(field_set:ignition.msgs.GPS.link_name)
312 }
313 #if LANG_CXX11
314 inline void GPS::set_link_name(::std::string&& value) {
315 
316  link_name_.SetNoArena(
317  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
318  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.GPS.link_name)
319 }
320 #endif
321 inline void GPS::set_link_name(const char* value) {
322  GOOGLE_DCHECK(value != NULL);
323 
324  link_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
325  // @@protoc_insertion_point(field_set_char:ignition.msgs.GPS.link_name)
326 }
327 inline void GPS::set_link_name(const char* value, size_t size) {
328 
329  link_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
330  ::std::string(reinterpret_cast<const char*>(value), size));
331  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.GPS.link_name)
332 }
333 inline ::std::string* GPS::mutable_link_name() {
334 
335  // @@protoc_insertion_point(field_mutable:ignition.msgs.GPS.link_name)
336  return link_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
337 }
338 inline ::std::string* GPS::release_link_name() {
339  // @@protoc_insertion_point(field_release:ignition.msgs.GPS.link_name)
340 
341  return link_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
342 }
343 inline void GPS::set_allocated_link_name(::std::string* link_name) {
344  if (link_name != NULL) {
345 
346  } else {
347 
348  }
349  link_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), link_name);
350  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.GPS.link_name)
351 }
352 
353 // double latitude_deg = 3;
354 inline void GPS::clear_latitude_deg() {
355  latitude_deg_ = 0;
356 }
357 inline double GPS::latitude_deg() const {
358  // @@protoc_insertion_point(field_get:ignition.msgs.GPS.latitude_deg)
359  return latitude_deg_;
360 }
361 inline void GPS::set_latitude_deg(double value) {
362 
363  latitude_deg_ = value;
364  // @@protoc_insertion_point(field_set:ignition.msgs.GPS.latitude_deg)
365 }
366 
367 // double longitude_deg = 4;
369  longitude_deg_ = 0;
370 }
371 inline double GPS::longitude_deg() const {
372  // @@protoc_insertion_point(field_get:ignition.msgs.GPS.longitude_deg)
373  return longitude_deg_;
374 }
375 inline void GPS::set_longitude_deg(double value) {
376 
377  longitude_deg_ = value;
378  // @@protoc_insertion_point(field_set:ignition.msgs.GPS.longitude_deg)
379 }
380 
381 // double altitude = 5;
382 inline void GPS::clear_altitude() {
383  altitude_ = 0;
384 }
385 inline double GPS::altitude() const {
386  // @@protoc_insertion_point(field_get:ignition.msgs.GPS.altitude)
387  return altitude_;
388 }
389 inline void GPS::set_altitude(double value) {
390 
391  altitude_ = value;
392  // @@protoc_insertion_point(field_set:ignition.msgs.GPS.altitude)
393 }
394 
395 // double velocity_east = 6;
397  velocity_east_ = 0;
398 }
399 inline double GPS::velocity_east() const {
400  // @@protoc_insertion_point(field_get:ignition.msgs.GPS.velocity_east)
401  return velocity_east_;
402 }
403 inline void GPS::set_velocity_east(double value) {
404 
405  velocity_east_ = value;
406  // @@protoc_insertion_point(field_set:ignition.msgs.GPS.velocity_east)
407 }
408 
409 // double velocity_north = 7;
411  velocity_north_ = 0;
412 }
413 inline double GPS::velocity_north() const {
414  // @@protoc_insertion_point(field_get:ignition.msgs.GPS.velocity_north)
415  return velocity_north_;
416 }
417 inline void GPS::set_velocity_north(double value) {
418 
419  velocity_north_ = value;
420  // @@protoc_insertion_point(field_set:ignition.msgs.GPS.velocity_north)
421 }
422 
423 // double velocity_up = 8;
424 inline void GPS::clear_velocity_up() {
425  velocity_up_ = 0;
426 }
427 inline double GPS::velocity_up() const {
428  // @@protoc_insertion_point(field_get:ignition.msgs.GPS.velocity_up)
429  return velocity_up_;
430 }
431 inline void GPS::set_velocity_up(double value) {
432 
433  velocity_up_ = value;
434  // @@protoc_insertion_point(field_set:ignition.msgs.GPS.velocity_up)
435 }
436 
437 #ifdef __GNUC__
438  #pragma GCC diagnostic pop
439 #endif // __GNUC__
440 
445 // @@protoc_insertion_point(namespace_scope)
446 
447 } // namespace msgs
448 } // namespace ignition
449 
450 #ifdef _MSC_VER
451 #pragma warning(pop)
452 #endif
453 // @@protoc_insertion_point(global_scope)
454 
455 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fgps_2eproto
GPS * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:121
static const GPS * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:107
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:272
void set_velocity_north(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:417
std::unique_ptr< GPS > GPSUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:441
STL class.
STL class.
T move(T... args)
GPS * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:125
std::unique_ptr< const GPS > ConstGPSUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:442
const ::std::string & link_name() const
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:304
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:77
GPS & operator=(const GPS &from)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:84
friend void swap(GPS &a, GPS &b)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:115
void Swap(GPS *other)
std::shared_ptr< const GPS > ConstGPSSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:444
double latitude_deg() const
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:357
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:50
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:281
void IGNITION_MSGS_VISIBLE AddDescriptors()
double velocity_north() const
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:413
double velocity_east() const
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:399
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:48
void clear_altitude()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:382
void set_link_name(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:308
void clear_link_name()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:301
double velocity_up() const
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:427
double altitude() const
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:385
void set_latitude_deg(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:361
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:265
void clear_latitude_deg()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:354
double longitude_deg() const
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:371
void set_velocity_up(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:431
void set_velocity_east(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:403
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:259
void clear_velocity_east()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:396
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void clear_velocity_north()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:410
STL namespace.
Definition: build/ignition-msgs5/include/ignition/msgs/header.pb.h:215
::std::string * release_link_name()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:338
std::shared_ptr< GPS > GPSSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:443
void clear_velocity_up()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:424
void set_longitude_deg(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:375
void set_allocated_link_name(::std::string *link_name)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:343
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:253
::std::string * mutable_link_name()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:333
STL class.
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
void clear_longitude_deg()
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:368
IGNITION_MSGS_VISIBLE GPSDefaultTypeInternal _GPS_default_instance_
void set_altitude(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/gps.pb.h:389