Ignition Msgs

API Reference

8.2.0
gps_sensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/gps_sensor.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fgps_5fsensor_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fgps_5fsensor_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
52 
53 class GPSSensor;
54 class GPSSensor_Sensing;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE GPSSensor_Sensing : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.GPSSensor.Sensing) */ {
59  public:
61  virtual ~GPSSensor_Sensing();
62 
64 
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const GPSSensor_Sensing& default_instance();
72 
73  void Swap(GPSSensor_Sensing* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline GPSSensor_Sensing* New() const { return New(NULL); }
78 
79  GPSSensor_Sensing* New(::google::protobuf::Arena* arena) const;
80  void CopyFrom(const ::google::protobuf::Message& from);
81  void MergeFrom(const ::google::protobuf::Message& from);
82  void CopyFrom(const GPSSensor_Sensing& from);
83  void MergeFrom(const GPSSensor_Sensing& from);
84  void Clear();
85  bool IsInitialized() const;
86 
87  int ByteSize() const;
88  bool MergePartialFromCodedStream(
89  ::google::protobuf::io::CodedInputStream* input);
90  void SerializeWithCachedSizes(
91  ::google::protobuf::io::CodedOutputStream* output) const;
92  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93  bool deterministic, ::google::protobuf::uint8* output) const;
94  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
95  return InternalSerializeWithCachedSizesToArray(false, output);
96  }
97  int GetCachedSize() const { return _cached_size_; }
98  private:
99  void SharedCtor();
100  void SharedDtor();
101  void SetCachedSize(int size) const;
102  void InternalSwap(GPSSensor_Sensing* other);
103  private:
104  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
105  return _internal_metadata_.arena();
106  }
107  inline void* MaybeArenaPtr() const {
108  return _internal_metadata_.raw_arena_ptr();
109  }
110  public:
111 
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // optional .ignition.msgs.SensorNoise horizontal_noise = 1;
119  bool has_horizontal_noise() const;
120  void clear_horizontal_noise();
121  static const int kHorizontalNoiseFieldNumber = 1;
122  const ::ignition::msgs::SensorNoise& horizontal_noise() const;
123  ::ignition::msgs::SensorNoise* mutable_horizontal_noise();
124  ::ignition::msgs::SensorNoise* release_horizontal_noise();
125  void set_allocated_horizontal_noise(::ignition::msgs::SensorNoise* horizontal_noise);
126 
127  // optional .ignition.msgs.SensorNoise vertical_noise = 2;
128  bool has_vertical_noise() const;
129  void clear_vertical_noise();
130  static const int kVerticalNoiseFieldNumber = 2;
131  const ::ignition::msgs::SensorNoise& vertical_noise() const;
132  ::ignition::msgs::SensorNoise* mutable_vertical_noise();
133  ::ignition::msgs::SensorNoise* release_vertical_noise();
134  void set_allocated_vertical_noise(::ignition::msgs::SensorNoise* vertical_noise);
135 
136  // @@protoc_insertion_point(class_scope:ignition.msgs.GPSSensor.Sensing)
137  private:
138 
139  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
140  bool _is_default_instance_;
141  ::ignition::msgs::SensorNoise* horizontal_noise_;
142  ::ignition::msgs::SensorNoise* vertical_noise_;
143  mutable int _cached_size_;
144  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fgps_5fsensor_2eproto();
147 
148  void InitAsDefaultInstance();
149  static GPSSensor_Sensing* default_instance_;
150 };
151 // -------------------------------------------------------------------
152 
153 class IGNITION_MSGS_VISIBLE GPSSensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.GPSSensor) */ {
154  public:
155  GPSSensor();
156  virtual ~GPSSensor();
157 
158  GPSSensor(const GPSSensor& from);
159 
160  inline GPSSensor& operator=(const GPSSensor& from) {
161  CopyFrom(from);
162  return *this;
163  }
164 
165  static const ::google::protobuf::Descriptor* descriptor();
166  static const GPSSensor& default_instance();
167 
168  void Swap(GPSSensor* other);
169 
170  // implements Message ----------------------------------------------
171 
172  inline GPSSensor* New() const { return New(NULL); }
173 
174  GPSSensor* New(::google::protobuf::Arena* arena) const;
175  void CopyFrom(const ::google::protobuf::Message& from);
176  void MergeFrom(const ::google::protobuf::Message& from);
177  void CopyFrom(const GPSSensor& from);
178  void MergeFrom(const GPSSensor& from);
179  void Clear();
180  bool IsInitialized() const;
181 
182  int ByteSize() const;
183  bool MergePartialFromCodedStream(
184  ::google::protobuf::io::CodedInputStream* input);
185  void SerializeWithCachedSizes(
186  ::google::protobuf::io::CodedOutputStream* output) const;
187  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
188  bool deterministic, ::google::protobuf::uint8* output) const;
189  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
190  return InternalSerializeWithCachedSizesToArray(false, output);
191  }
192  int GetCachedSize() const { return _cached_size_; }
193  private:
194  void SharedCtor();
195  void SharedDtor();
196  void SetCachedSize(int size) const;
197  void InternalSwap(GPSSensor* other);
198  private:
199  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
200  return _internal_metadata_.arena();
201  }
202  inline void* MaybeArenaPtr() const {
203  return _internal_metadata_.raw_arena_ptr();
204  }
205  public:
206 
207  ::google::protobuf::Metadata GetMetadata() const;
208 
209  // nested types ----------------------------------------------------
210 
212 
213  // accessors -------------------------------------------------------
214 
215  // optional .ignition.msgs.Header header = 1;
216  bool has_header() const;
217  void clear_header();
218  static const int kHeaderFieldNumber = 1;
219  const ::ignition::msgs::Header& header() const;
220  ::ignition::msgs::Header* mutable_header();
221  ::ignition::msgs::Header* release_header();
222  void set_allocated_header(::ignition::msgs::Header* header);
223 
224  // optional .ignition.msgs.GPSSensor.Sensing position = 2;
225  bool has_position() const;
226  void clear_position();
227  static const int kPositionFieldNumber = 2;
228  const ::ignition::msgs::GPSSensor_Sensing& position() const;
229  ::ignition::msgs::GPSSensor_Sensing* mutable_position();
230  ::ignition::msgs::GPSSensor_Sensing* release_position();
231  void set_allocated_position(::ignition::msgs::GPSSensor_Sensing* position);
232 
233  // optional .ignition.msgs.GPSSensor.Sensing velocity = 3;
234  bool has_velocity() const;
235  void clear_velocity();
236  static const int kVelocityFieldNumber = 3;
237  const ::ignition::msgs::GPSSensor_Sensing& velocity() const;
238  ::ignition::msgs::GPSSensor_Sensing* mutable_velocity();
239  ::ignition::msgs::GPSSensor_Sensing* release_velocity();
240  void set_allocated_velocity(::ignition::msgs::GPSSensor_Sensing* velocity);
241 
242  // @@protoc_insertion_point(class_scope:ignition.msgs.GPSSensor)
243  private:
244 
245  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
246  bool _is_default_instance_;
247  ::ignition::msgs::Header* header_;
250  mutable int _cached_size_;
251  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fgps_5fsensor_2eproto();
254 
255  void InitAsDefaultInstance();
256  static GPSSensor* default_instance_;
257 };
258 // ===================================================================
259 
260 
261 // ===================================================================
262 
263 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
264 // GPSSensor_Sensing
265 
266 // optional .ignition.msgs.SensorNoise horizontal_noise = 1;
268  return !_is_default_instance_ && horizontal_noise_ != NULL;
269 }
271  if (GetArenaNoVirtual() == NULL && horizontal_noise_ != NULL) delete horizontal_noise_;
272  horizontal_noise_ = NULL;
273 }
274 inline const ::ignition::msgs::SensorNoise& GPSSensor_Sensing::horizontal_noise() const {
275  // @@protoc_insertion_point(field_get:ignition.msgs.GPSSensor.Sensing.horizontal_noise)
276  return horizontal_noise_ != NULL ? *horizontal_noise_ : *default_instance_->horizontal_noise_;
277 }
278 inline ::ignition::msgs::SensorNoise* GPSSensor_Sensing::mutable_horizontal_noise() {
279 
280  if (horizontal_noise_ == NULL) {
281  horizontal_noise_ = new ::ignition::msgs::SensorNoise;
282  }
283  // @@protoc_insertion_point(field_mutable:ignition.msgs.GPSSensor.Sensing.horizontal_noise)
284  return horizontal_noise_;
285 }
286 inline ::ignition::msgs::SensorNoise* GPSSensor_Sensing::release_horizontal_noise() {
287  // @@protoc_insertion_point(field_release:ignition.msgs.GPSSensor.Sensing.horizontal_noise)
288 
289  ::ignition::msgs::SensorNoise* temp = horizontal_noise_;
290  horizontal_noise_ = NULL;
291  return temp;
292 }
294  delete horizontal_noise_;
295  horizontal_noise_ = horizontal_noise;
296  if (horizontal_noise) {
297 
298  } else {
299 
300  }
301  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.GPSSensor.Sensing.horizontal_noise)
302 }
303 
304 // optional .ignition.msgs.SensorNoise vertical_noise = 2;
306  return !_is_default_instance_ && vertical_noise_ != NULL;
307 }
309  if (GetArenaNoVirtual() == NULL && vertical_noise_ != NULL) delete vertical_noise_;
310  vertical_noise_ = NULL;
311 }
312 inline const ::ignition::msgs::SensorNoise& GPSSensor_Sensing::vertical_noise() const {
313  // @@protoc_insertion_point(field_get:ignition.msgs.GPSSensor.Sensing.vertical_noise)
314  return vertical_noise_ != NULL ? *vertical_noise_ : *default_instance_->vertical_noise_;
315 }
316 inline ::ignition::msgs::SensorNoise* GPSSensor_Sensing::mutable_vertical_noise() {
317 
318  if (vertical_noise_ == NULL) {
319  vertical_noise_ = new ::ignition::msgs::SensorNoise;
320  }
321  // @@protoc_insertion_point(field_mutable:ignition.msgs.GPSSensor.Sensing.vertical_noise)
322  return vertical_noise_;
323 }
324 inline ::ignition::msgs::SensorNoise* GPSSensor_Sensing::release_vertical_noise() {
325  // @@protoc_insertion_point(field_release:ignition.msgs.GPSSensor.Sensing.vertical_noise)
326 
327  ::ignition::msgs::SensorNoise* temp = vertical_noise_;
328  vertical_noise_ = NULL;
329  return temp;
330 }
332  delete vertical_noise_;
333  vertical_noise_ = vertical_noise;
334  if (vertical_noise) {
335 
336  } else {
337 
338  }
339  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.GPSSensor.Sensing.vertical_noise)
340 }
341 
342 // -------------------------------------------------------------------
343 
344 // GPSSensor
345 
346 // optional .ignition.msgs.Header header = 1;
347 inline bool GPSSensor::has_header() const {
348  return !_is_default_instance_ && header_ != NULL;
349 }
350 inline void GPSSensor::clear_header() {
351  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
352  header_ = NULL;
353 }
354 inline const ::ignition::msgs::Header& GPSSensor::header() const {
355  // @@protoc_insertion_point(field_get:ignition.msgs.GPSSensor.header)
356  return header_ != NULL ? *header_ : *default_instance_->header_;
357 }
358 inline ::ignition::msgs::Header* GPSSensor::mutable_header() {
359 
360  if (header_ == NULL) {
361  header_ = new ::ignition::msgs::Header;
362  }
363  // @@protoc_insertion_point(field_mutable:ignition.msgs.GPSSensor.header)
364  return header_;
365 }
366 inline ::ignition::msgs::Header* GPSSensor::release_header() {
367  // @@protoc_insertion_point(field_release:ignition.msgs.GPSSensor.header)
368 
369  ::ignition::msgs::Header* temp = header_;
370  header_ = NULL;
371  return temp;
372 }
374  delete header_;
375  header_ = header;
376  if (header) {
377 
378  } else {
379 
380  }
381  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.GPSSensor.header)
382 }
383 
384 // optional .ignition.msgs.GPSSensor.Sensing position = 2;
385 inline bool GPSSensor::has_position() const {
386  return !_is_default_instance_ && position_ != NULL;
387 }
389  if (GetArenaNoVirtual() == NULL && position_ != NULL) delete position_;
390  position_ = NULL;
391 }
392 inline const ::ignition::msgs::GPSSensor_Sensing& GPSSensor::position() const {
393  // @@protoc_insertion_point(field_get:ignition.msgs.GPSSensor.position)
394  return position_ != NULL ? *position_ : *default_instance_->position_;
395 }
396 inline ::ignition::msgs::GPSSensor_Sensing* GPSSensor::mutable_position() {
397 
398  if (position_ == NULL) {
399  position_ = new ::ignition::msgs::GPSSensor_Sensing;
400  }
401  // @@protoc_insertion_point(field_mutable:ignition.msgs.GPSSensor.position)
402  return position_;
403 }
404 inline ::ignition::msgs::GPSSensor_Sensing* GPSSensor::release_position() {
405  // @@protoc_insertion_point(field_release:ignition.msgs.GPSSensor.position)
406 
407  ::ignition::msgs::GPSSensor_Sensing* temp = position_;
408  position_ = NULL;
409  return temp;
410 }
412  delete position_;
413  position_ = position;
414  if (position) {
415 
416  } else {
417 
418  }
419  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.GPSSensor.position)
420 }
421 
422 // optional .ignition.msgs.GPSSensor.Sensing velocity = 3;
423 inline bool GPSSensor::has_velocity() const {
424  return !_is_default_instance_ && velocity_ != NULL;
425 }
427  if (GetArenaNoVirtual() == NULL && velocity_ != NULL) delete velocity_;
428  velocity_ = NULL;
429 }
430 inline const ::ignition::msgs::GPSSensor_Sensing& GPSSensor::velocity() const {
431  // @@protoc_insertion_point(field_get:ignition.msgs.GPSSensor.velocity)
432  return velocity_ != NULL ? *velocity_ : *default_instance_->velocity_;
433 }
434 inline ::ignition::msgs::GPSSensor_Sensing* GPSSensor::mutable_velocity() {
435 
436  if (velocity_ == NULL) {
437  velocity_ = new ::ignition::msgs::GPSSensor_Sensing;
438  }
439  // @@protoc_insertion_point(field_mutable:ignition.msgs.GPSSensor.velocity)
440  return velocity_;
441 }
442 inline ::ignition::msgs::GPSSensor_Sensing* GPSSensor::release_velocity() {
443  // @@protoc_insertion_point(field_release:ignition.msgs.GPSSensor.velocity)
444 
445  ::ignition::msgs::GPSSensor_Sensing* temp = velocity_;
446  velocity_ = NULL;
447  return temp;
448 }
450  delete velocity_;
451  velocity_ = velocity;
452  if (velocity) {
453 
454  } else {
455 
456  }
457  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.GPSSensor.velocity)
458 }
459 
460 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
461 // -------------------------------------------------------------------
462 
463 
468 // @@protoc_insertion_point(namespace_scope)
469 
470 } // namespace msgs
471 } // namespace ignition
472 
473 #ifdef _MSC_VER
474 #pragma warning(pop)
475 #endif
476 // @@protoc_insertion_point(global_scope)
477 
478 #endif // PROTOBUF_ignition_2fmsgs_2fgps_5fsensor_2eproto__INCLUDED
bool has_position() const
Definition: gps_sensor.pb.h:385
int GetCachedSize() const
Definition: gps_sensor.pb.h:192
GPSSensor & operator=(const GPSSensor &from)
Definition: gps_sensor.pb.h:160
const ::ignition::msgs::SensorNoise & horizontal_noise() const
Definition: gps_sensor.pb.h:274
bool has_horizontal_noise() const
Definition: gps_sensor.pb.h:267
const ::ignition::msgs::SensorNoise & vertical_noise() const
Definition: gps_sensor.pb.h:312
void clear_position()
Definition: gps_sensor.pb.h:388
void clear_vertical_noise()
Definition: gps_sensor.pb.h:308
std::unique_ptr< GPSSensor > GPSSensorUniquePtr
Definition: gps_sensor.pb.h:464
void clear_velocity()
Definition: gps_sensor.pb.h:426
void set_allocated_vertical_noise(::ignition::msgs::SensorNoise *vertical_noise)
Definition: gps_sensor.pb.h:331
int GetCachedSize() const
Definition: gps_sensor.pb.h:97
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fgps_5fsensor_2eproto()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: gps_sensor.pb.h:189
GPSSensor_Sensing & operator=(const GPSSensor_Sensing &from)
Definition: gps_sensor.pb.h:65
GPSSensor_Sensing * New() const
Definition: gps_sensor.pb.h:77
Definition: header.pb.h:161
const ::ignition::msgs::GPSSensor_Sensing & position() const
Definition: gps_sensor.pb.h:392
::ignition::msgs::GPSSensor_Sensing * mutable_position()
Definition: gps_sensor.pb.h:396
::ignition::msgs::GPSSensor_Sensing * mutable_velocity()
Definition: gps_sensor.pb.h:434
void protobuf_ShutdownFile_ignition_2fmsgs_2fgps_5fsensor_2eproto()
GPSSensor_Sensing Sensing
Definition: gps_sensor.pb.h:211
Definition: sensor_noise.pb.h:79
const ::ignition::msgs::Header & header() const
Definition: gps_sensor.pb.h:354
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: gps_sensor.pb.h:94
bool has_header() const
Definition: gps_sensor.pb.h:347
::ignition::msgs::Header * mutable_header()
Definition: gps_sensor.pb.h:358
std::shared_ptr< GPSSensor > GPSSensorSharedPtr
Definition: gps_sensor.pb.h:466
::ignition::msgs::SensorNoise * mutable_horizontal_noise()
Definition: gps_sensor.pb.h:278
const ::ignition::msgs::GPSSensor_Sensing & velocity() const
Definition: gps_sensor.pb.h:430
::ignition::msgs::SensorNoise * mutable_vertical_noise()
Definition: gps_sensor.pb.h:316
void clear_header()
Definition: gps_sensor.pb.h:350
bool has_vertical_noise() const
Definition: gps_sensor.pb.h:305
GPSSensor * New() const
Definition: gps_sensor.pb.h:172
void protobuf_AssignDesc_ignition_2fmsgs_2fgps_5fsensor_2eproto()
bool has_velocity() const
Definition: gps_sensor.pb.h:423
void clear_horizontal_noise()
Definition: gps_sensor.pb.h:270
std::unique_ptr< const GPSSensor > ConstGPSSensorUniquePtr
Definition: gps_sensor.pb.h:465
STL class.
std::shared_ptr< const GPSSensor > ConstGPSSensorSharedPtr
Definition: gps_sensor.pb.h:467
void set_allocated_horizontal_noise(::ignition::msgs::SensorNoise *horizontal_noise)
Definition: gps_sensor.pb.h:293
::ignition::msgs::GPSSensor_Sensing * release_position()
Definition: gps_sensor.pb.h:404
::ignition::msgs::SensorNoise * release_horizontal_noise()
Definition: gps_sensor.pb.h:286
void set_allocated_velocity(::ignition::msgs::GPSSensor_Sensing *velocity)
Definition: gps_sensor.pb.h:449
void set_allocated_position(::ignition::msgs::GPSSensor_Sensing *position)
Definition: gps_sensor.pb.h:411
Definition: gps_sensor.pb.h:58
::ignition::msgs::GPSSensor_Sensing * release_velocity()
Definition: gps_sensor.pb.h:442
::ignition::msgs::Header * release_header()
Definition: gps_sensor.pb.h:366
Definition: gps_sensor.pb.h:153
void set_allocated_header(::ignition::msgs::Header *header)
Definition: gps_sensor.pb.h:373
::ignition::msgs::SensorNoise * release_vertical_noise()
Definition: gps_sensor.pb.h:324