Gazebo Msgs

API Reference

9.5.1
sensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/sensor.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsensor_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fsensor_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>
33 #include "gz/msgs/altimeter_sensor.pb.h"
34 #include "gz/msgs/camerasensor.pb.h"
35 #include "gz/msgs/contactsensor.pb.h"
36 #include "gz/msgs/air_pressure_sensor.pb.h"
37 #include "gz/msgs/gps_sensor.pb.h"
38 #include "gz/msgs/header.pb.h"
39 #include "gz/msgs/imu_sensor.pb.h"
40 #include "gz/msgs/lidar_sensor.pb.h"
41 #include "gz/msgs/logical_camera_sensor.pb.h"
42 #include "gz/msgs/magnetometer_sensor.pb.h"
43 #include "gz/msgs/pose.pb.h"
44 // @@protoc_insertion_point(includes)
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsensor_2eproto GZ_MSGS_VISIBLE
46 
48 // Internal implementation detail -- do not use these members.
49 struct GZ_MSGS_VISIBLE TableStruct {
50  static const ::google::protobuf::internal::ParseTableField entries[];
51  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
52  static const ::google::protobuf::internal::ParseTable schema[1];
53  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
54  static const ::google::protobuf::internal::SerializationTable serialization_table[];
55  static const ::google::protobuf::uint32 offsets[];
56 };
57 void GZ_MSGS_VISIBLE AddDescriptors();
58 } // namespace protobuf_gz_2fmsgs_2fsensor_2eproto
59 namespace gz {
60 namespace msgs {
61 class Sensor;
62 class SensorDefaultTypeInternal;
63 GZ_MSGS_VISIBLE extern SensorDefaultTypeInternal _Sensor_default_instance_;
64 } // namespace msgs
65 } // namespace gz
66 namespace google {
67 namespace protobuf {
68 template<> GZ_MSGS_VISIBLE ::gz::msgs::Sensor* Arena::CreateMaybeMessage<::gz::msgs::Sensor>(Arena*);
69 } // namespace protobuf
70 } // namespace google
71 namespace gz {
72 namespace msgs {
73 
74 // ===================================================================
75 
76 class GZ_MSGS_VISIBLE Sensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Sensor) */ {
77  public:
78  Sensor();
79  virtual ~Sensor();
80 
81  Sensor(const Sensor& from);
82 
83  inline Sensor& operator=(const Sensor& from) {
84  CopyFrom(from);
85  return *this;
86  }
87  #if LANG_CXX11
88  Sensor(Sensor&& from) noexcept
89  : Sensor() {
90  *this = ::std::move(from);
91  }
92 
93  inline Sensor& operator=(Sensor&& from) noexcept {
94  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
95  if (this != &from) InternalSwap(&from);
96  } else {
97  CopyFrom(from);
98  }
99  return *this;
100  }
101  #endif
102  static const ::google::protobuf::Descriptor* descriptor();
103  static const Sensor& default_instance();
104 
105  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
106  static inline const Sensor* internal_default_instance() {
107  return reinterpret_cast<const Sensor*>(
109  }
110  static constexpr int kIndexInFileMessages =
111  0;
112 
113  void Swap(Sensor* other);
114  friend void swap(Sensor& a, Sensor& b) {
115  a.Swap(&b);
116  }
117 
118  // implements Message ----------------------------------------------
119 
120  inline Sensor* New() const final {
121  return CreateMaybeMessage<Sensor>(NULL);
122  }
123 
124  Sensor* New(::google::protobuf::Arena* arena) const final {
125  return CreateMaybeMessage<Sensor>(arena);
126  }
127  void CopyFrom(const ::google::protobuf::Message& from) final;
128  void MergeFrom(const ::google::protobuf::Message& from) final;
129  void CopyFrom(const Sensor& from);
130  void MergeFrom(const Sensor& from);
131  void Clear() final;
132  bool IsInitialized() const final;
133 
134  size_t ByteSizeLong() const final;
135  bool MergePartialFromCodedStream(
136  ::google::protobuf::io::CodedInputStream* input) final;
137  void SerializeWithCachedSizes(
138  ::google::protobuf::io::CodedOutputStream* output) const final;
139  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
140  bool deterministic, ::google::protobuf::uint8* target) const final;
141  int GetCachedSize() const final { return _cached_size_.Get(); }
142 
143  private:
144  void SharedCtor();
145  void SharedDtor();
146  void SetCachedSize(int size) const final;
147  void InternalSwap(Sensor* other);
148  private:
149  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
150  return NULL;
151  }
152  inline void* MaybeArenaPtr() const {
153  return NULL;
154  }
155  public:
156 
157  ::google::protobuf::Metadata GetMetadata() const final;
158 
159  // nested types ----------------------------------------------------
160 
161  // accessors -------------------------------------------------------
162 
163  // string name = 2;
164  void clear_name();
165  static const int kNameFieldNumber = 2;
166  const ::std::string& name() const;
167  void set_name(const ::std::string& value);
168  #if LANG_CXX11
169  void set_name(::std::string&& value);
170  #endif
171  void set_name(const char* value);
172  void set_name(const char* value, size_t size);
173  ::std::string* mutable_name();
174  ::std::string* release_name();
175  void set_allocated_name(::std::string* name);
176 
177  // string parent = 4;
178  void clear_parent();
179  static const int kParentFieldNumber = 4;
180  const ::std::string& parent() const;
181  void set_parent(const ::std::string& value);
182  #if LANG_CXX11
183  void set_parent(::std::string&& value);
184  #endif
185  void set_parent(const char* value);
186  void set_parent(const char* value, size_t size);
187  ::std::string* mutable_parent();
188  ::std::string* release_parent();
189  void set_allocated_parent(::std::string* parent);
190 
191  // string type = 6;
192  void clear_type();
193  static const int kTypeFieldNumber = 6;
194  const ::std::string& type() const;
195  void set_type(const ::std::string& value);
196  #if LANG_CXX11
197  void set_type(::std::string&& value);
198  #endif
199  void set_type(const char* value);
200  void set_type(const char* value, size_t size);
201  ::std::string* mutable_type();
202  ::std::string* release_type();
203  void set_allocated_type(::std::string* type);
204 
205  // string topic = 13;
206  void clear_topic();
207  static const int kTopicFieldNumber = 13;
208  const ::std::string& topic() const;
209  void set_topic(const ::std::string& value);
210  #if LANG_CXX11
211  void set_topic(::std::string&& value);
212  #endif
213  void set_topic(const char* value);
214  void set_topic(const char* value, size_t size);
215  ::std::string* mutable_topic();
216  ::std::string* release_topic();
217  void set_allocated_topic(::std::string* topic);
218 
219  // .gz.msgs.Header header = 1;
220  bool has_header() const;
221  void clear_header();
222  static const int kHeaderFieldNumber = 1;
223  private:
224  const ::gz::msgs::Header& _internal_header() const;
225  public:
226  const ::gz::msgs::Header& header() const;
227  ::gz::msgs::Header* release_header();
228  ::gz::msgs::Header* mutable_header();
229  void set_allocated_header(::gz::msgs::Header* header);
230 
231  // .gz.msgs.Pose pose = 9;
232  bool has_pose() const;
233  void clear_pose();
234  static const int kPoseFieldNumber = 9;
235  private:
236  const ::gz::msgs::Pose& _internal_pose() const;
237  public:
238  const ::gz::msgs::Pose& pose() const;
239  ::gz::msgs::Pose* release_pose();
240  ::gz::msgs::Pose* mutable_pose();
241  void set_allocated_pose(::gz::msgs::Pose* pose);
242 
243  // .gz.msgs.CameraSensor camera = 10;
244  bool has_camera() const;
245  void clear_camera();
246  static const int kCameraFieldNumber = 10;
247  private:
248  const ::gz::msgs::CameraSensor& _internal_camera() const;
249  public:
250  const ::gz::msgs::CameraSensor& camera() const;
251  ::gz::msgs::CameraSensor* release_camera();
252  ::gz::msgs::CameraSensor* mutable_camera();
253  void set_allocated_camera(::gz::msgs::CameraSensor* camera);
254 
255  // .gz.msgs.ContactSensor contact = 11;
256  bool has_contact() const;
257  void clear_contact();
258  static const int kContactFieldNumber = 11;
259  private:
260  const ::gz::msgs::ContactSensor& _internal_contact() const;
261  public:
262  const ::gz::msgs::ContactSensor& contact() const;
263  ::gz::msgs::ContactSensor* release_contact();
264  ::gz::msgs::ContactSensor* mutable_contact();
265  void set_allocated_contact(::gz::msgs::ContactSensor* contact);
266 
267  // .gz.msgs.LogicalCameraSensor logical_camera = 14;
268  bool has_logical_camera() const;
269  void clear_logical_camera();
270  static const int kLogicalCameraFieldNumber = 14;
271  private:
272  const ::gz::msgs::LogicalCameraSensor& _internal_logical_camera() const;
273  public:
274  const ::gz::msgs::LogicalCameraSensor& logical_camera() const;
275  ::gz::msgs::LogicalCameraSensor* release_logical_camera();
276  ::gz::msgs::LogicalCameraSensor* mutable_logical_camera();
277  void set_allocated_logical_camera(::gz::msgs::LogicalCameraSensor* logical_camera);
278 
279  // .gz.msgs.GPSSensor gps = 15;
280  bool has_gps() const;
281  void clear_gps();
282  static const int kGpsFieldNumber = 15;
283  private:
284  const ::gz::msgs::GPSSensor& _internal_gps() const;
285  public:
286  const ::gz::msgs::GPSSensor& gps() const;
287  ::gz::msgs::GPSSensor* release_gps();
288  ::gz::msgs::GPSSensor* mutable_gps();
289  void set_allocated_gps(::gz::msgs::GPSSensor* gps);
290 
291  // .gz.msgs.IMUSensor imu = 16;
292  bool has_imu() const;
293  void clear_imu();
294  static const int kImuFieldNumber = 16;
295  private:
296  const ::gz::msgs::IMUSensor& _internal_imu() const;
297  public:
298  const ::gz::msgs::IMUSensor& imu() const;
299  ::gz::msgs::IMUSensor* release_imu();
300  ::gz::msgs::IMUSensor* mutable_imu();
301  void set_allocated_imu(::gz::msgs::IMUSensor* imu);
302 
303  // .gz.msgs.MagnetometerSensor magnetometer = 17;
304  bool has_magnetometer() const;
305  void clear_magnetometer();
306  static const int kMagnetometerFieldNumber = 17;
307  private:
308  const ::gz::msgs::MagnetometerSensor& _internal_magnetometer() const;
309  public:
310  const ::gz::msgs::MagnetometerSensor& magnetometer() const;
311  ::gz::msgs::MagnetometerSensor* release_magnetometer();
312  ::gz::msgs::MagnetometerSensor* mutable_magnetometer();
313  void set_allocated_magnetometer(::gz::msgs::MagnetometerSensor* magnetometer);
314 
315  // .gz.msgs.AltimeterSensor altimeter = 18;
316  bool has_altimeter() const;
317  void clear_altimeter();
318  static const int kAltimeterFieldNumber = 18;
319  private:
320  const ::gz::msgs::AltimeterSensor& _internal_altimeter() const;
321  public:
322  const ::gz::msgs::AltimeterSensor& altimeter() const;
323  ::gz::msgs::AltimeterSensor* release_altimeter();
324  ::gz::msgs::AltimeterSensor* mutable_altimeter();
325  void set_allocated_altimeter(::gz::msgs::AltimeterSensor* altimeter);
326 
327  // .gz.msgs.AirPressureSensor air_pressure = 19;
328  bool has_air_pressure() const;
329  void clear_air_pressure();
330  static const int kAirPressureFieldNumber = 19;
331  private:
332  const ::gz::msgs::AirPressureSensor& _internal_air_pressure() const;
333  public:
334  const ::gz::msgs::AirPressureSensor& air_pressure() const;
335  ::gz::msgs::AirPressureSensor* release_air_pressure();
336  ::gz::msgs::AirPressureSensor* mutable_air_pressure();
337  void set_allocated_air_pressure(::gz::msgs::AirPressureSensor* air_pressure);
338 
339  // .gz.msgs.LidarSensor lidar = 20;
340  bool has_lidar() const;
341  void clear_lidar();
342  static const int kLidarFieldNumber = 20;
343  private:
344  const ::gz::msgs::LidarSensor& _internal_lidar() const;
345  public:
346  const ::gz::msgs::LidarSensor& lidar() const;
347  ::gz::msgs::LidarSensor* release_lidar();
348  ::gz::msgs::LidarSensor* mutable_lidar();
349  void set_allocated_lidar(::gz::msgs::LidarSensor* lidar);
350 
351  // uint32 id = 3;
352  void clear_id();
353  static const int kIdFieldNumber = 3;
354  ::google::protobuf::uint32 id() const;
355  void set_id(::google::protobuf::uint32 value);
356 
357  // uint32 parent_id = 5;
358  void clear_parent_id();
359  static const int kParentIdFieldNumber = 5;
360  ::google::protobuf::uint32 parent_id() const;
361  void set_parent_id(::google::protobuf::uint32 value);
362 
363  // double update_rate = 8;
364  void clear_update_rate();
365  static const int kUpdateRateFieldNumber = 8;
366  double update_rate() const;
367  void set_update_rate(double value);
368 
369  // bool always_on = 7;
370  void clear_always_on();
371  static const int kAlwaysOnFieldNumber = 7;
372  bool always_on() const;
373  void set_always_on(bool value);
374 
375  // bool visualize = 12;
376  void clear_visualize();
377  static const int kVisualizeFieldNumber = 12;
378  bool visualize() const;
379  void set_visualize(bool value);
380 
381  // @@protoc_insertion_point(class_scope:gz.msgs.Sensor)
382  private:
383 
384  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
385  ::google::protobuf::internal::ArenaStringPtr name_;
386  ::google::protobuf::internal::ArenaStringPtr parent_;
387  ::google::protobuf::internal::ArenaStringPtr type_;
388  ::google::protobuf::internal::ArenaStringPtr topic_;
389  ::gz::msgs::Header* header_;
390  ::gz::msgs::Pose* pose_;
391  ::gz::msgs::CameraSensor* camera_;
392  ::gz::msgs::ContactSensor* contact_;
393  ::gz::msgs::LogicalCameraSensor* logical_camera_;
394  ::gz::msgs::GPSSensor* gps_;
395  ::gz::msgs::IMUSensor* imu_;
396  ::gz::msgs::MagnetometerSensor* magnetometer_;
397  ::gz::msgs::AltimeterSensor* altimeter_;
398  ::gz::msgs::AirPressureSensor* air_pressure_;
399  ::gz::msgs::LidarSensor* lidar_;
400  ::google::protobuf::uint32 id_;
401  ::google::protobuf::uint32 parent_id_;
402  double update_rate_;
403  bool always_on_;
404  bool visualize_;
405  mutable ::google::protobuf::internal::CachedSize _cached_size_;
406  friend struct ::protobuf_gz_2fmsgs_2fsensor_2eproto::TableStruct;
407 };
408 // ===================================================================
409 
410 
411 // ===================================================================
412 
413 #ifdef __GNUC__
414  #pragma GCC diagnostic push
415  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
416 #endif // __GNUC__
417 // Sensor
418 
419 // .gz.msgs.Header header = 1;
420 inline bool Sensor::has_header() const {
421  return this != internal_default_instance() && header_ != NULL;
422 }
423 inline const ::gz::msgs::Header& Sensor::_internal_header() const {
424  return *header_;
425 }
426 inline const ::gz::msgs::Header& Sensor::header() const {
427  const ::gz::msgs::Header* p = header_;
428  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.header)
429  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
431 }
432 inline ::gz::msgs::Header* Sensor::release_header() {
433  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.header)
434 
435  ::gz::msgs::Header* temp = header_;
436  header_ = NULL;
437  return temp;
438 }
439 inline ::gz::msgs::Header* Sensor::mutable_header() {
440 
441  if (header_ == NULL) {
442  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
443  header_ = p;
444  }
445  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.header)
446  return header_;
447 }
449  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
450  if (message_arena == NULL) {
451  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
452  }
453  if (header) {
454  ::google::protobuf::Arena* submessage_arena = NULL;
455  if (message_arena != submessage_arena) {
456  header = ::google::protobuf::internal::GetOwnedMessage(
457  message_arena, header, submessage_arena);
458  }
459 
460  } else {
461 
462  }
463  header_ = header;
464  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.header)
465 }
466 
467 // string name = 2;
468 inline void Sensor::clear_name() {
469  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
470 }
471 inline const ::std::string& Sensor::name() const {
472  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.name)
473  return name_.GetNoArena();
474 }
475 inline void Sensor::set_name(const ::std::string& value) {
476 
477  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
478  // @@protoc_insertion_point(field_set:gz.msgs.Sensor.name)
479 }
480 #if LANG_CXX11
481 inline void Sensor::set_name(::std::string&& value) {
482 
483  name_.SetNoArena(
484  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
485  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Sensor.name)
486 }
487 #endif
488 inline void Sensor::set_name(const char* value) {
489  GOOGLE_DCHECK(value != NULL);
490 
491  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
492  // @@protoc_insertion_point(field_set_char:gz.msgs.Sensor.name)
493 }
494 inline void Sensor::set_name(const char* value, size_t size) {
495 
496  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
497  ::std::string(reinterpret_cast<const char*>(value), size));
498  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Sensor.name)
499 }
500 inline ::std::string* Sensor::mutable_name() {
501 
502  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.name)
503  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
504 }
505 inline ::std::string* Sensor::release_name() {
506  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.name)
507 
508  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
509 }
511  if (name != NULL) {
512 
513  } else {
514 
515  }
516  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
517  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.name)
518 }
519 
520 // uint32 id = 3;
521 inline void Sensor::clear_id() {
522  id_ = 0u;
523 }
524 inline ::google::protobuf::uint32 Sensor::id() const {
525  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.id)
526  return id_;
527 }
528 inline void Sensor::set_id(::google::protobuf::uint32 value) {
529 
530  id_ = value;
531  // @@protoc_insertion_point(field_set:gz.msgs.Sensor.id)
532 }
533 
534 // string parent = 4;
535 inline void Sensor::clear_parent() {
536  parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
537 }
538 inline const ::std::string& Sensor::parent() const {
539  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.parent)
540  return parent_.GetNoArena();
541 }
542 inline void Sensor::set_parent(const ::std::string& value) {
543 
544  parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
545  // @@protoc_insertion_point(field_set:gz.msgs.Sensor.parent)
546 }
547 #if LANG_CXX11
548 inline void Sensor::set_parent(::std::string&& value) {
549 
550  parent_.SetNoArena(
551  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
552  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Sensor.parent)
553 }
554 #endif
555 inline void Sensor::set_parent(const char* value) {
556  GOOGLE_DCHECK(value != NULL);
557 
558  parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
559  // @@protoc_insertion_point(field_set_char:gz.msgs.Sensor.parent)
560 }
561 inline void Sensor::set_parent(const char* value, size_t size) {
562 
563  parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
564  ::std::string(reinterpret_cast<const char*>(value), size));
565  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Sensor.parent)
566 }
567 inline ::std::string* Sensor::mutable_parent() {
568 
569  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.parent)
570  return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
571 }
572 inline ::std::string* Sensor::release_parent() {
573  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.parent)
574 
575  return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
576 }
578  if (parent != NULL) {
579 
580  } else {
581 
582  }
583  parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
584  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.parent)
585 }
586 
587 // uint32 parent_id = 5;
588 inline void Sensor::clear_parent_id() {
589  parent_id_ = 0u;
590 }
591 inline ::google::protobuf::uint32 Sensor::parent_id() const {
592  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.parent_id)
593  return parent_id_;
594 }
595 inline void Sensor::set_parent_id(::google::protobuf::uint32 value) {
596 
597  parent_id_ = value;
598  // @@protoc_insertion_point(field_set:gz.msgs.Sensor.parent_id)
599 }
600 
601 // string type = 6;
602 inline void Sensor::clear_type() {
603  type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
604 }
605 inline const ::std::string& Sensor::type() const {
606  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.type)
607  return type_.GetNoArena();
608 }
609 inline void Sensor::set_type(const ::std::string& value) {
610 
611  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
612  // @@protoc_insertion_point(field_set:gz.msgs.Sensor.type)
613 }
614 #if LANG_CXX11
615 inline void Sensor::set_type(::std::string&& value) {
616 
617  type_.SetNoArena(
618  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
619  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Sensor.type)
620 }
621 #endif
622 inline void Sensor::set_type(const char* value) {
623  GOOGLE_DCHECK(value != NULL);
624 
625  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
626  // @@protoc_insertion_point(field_set_char:gz.msgs.Sensor.type)
627 }
628 inline void Sensor::set_type(const char* value, size_t size) {
629 
630  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
631  ::std::string(reinterpret_cast<const char*>(value), size));
632  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Sensor.type)
633 }
634 inline ::std::string* Sensor::mutable_type() {
635 
636  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.type)
637  return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
638 }
639 inline ::std::string* Sensor::release_type() {
640  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.type)
641 
642  return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
643 }
645  if (type != NULL) {
646 
647  } else {
648 
649  }
650  type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
651  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.type)
652 }
653 
654 // bool always_on = 7;
655 inline void Sensor::clear_always_on() {
656  always_on_ = false;
657 }
658 inline bool Sensor::always_on() const {
659  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.always_on)
660  return always_on_;
661 }
662 inline void Sensor::set_always_on(bool value) {
663 
664  always_on_ = value;
665  // @@protoc_insertion_point(field_set:gz.msgs.Sensor.always_on)
666 }
667 
668 // double update_rate = 8;
670  update_rate_ = 0;
671 }
672 inline double Sensor::update_rate() const {
673  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.update_rate)
674  return update_rate_;
675 }
676 inline void Sensor::set_update_rate(double value) {
677 
678  update_rate_ = value;
679  // @@protoc_insertion_point(field_set:gz.msgs.Sensor.update_rate)
680 }
681 
682 // .gz.msgs.Pose pose = 9;
683 inline bool Sensor::has_pose() const {
684  return this != internal_default_instance() && pose_ != NULL;
685 }
686 inline const ::gz::msgs::Pose& Sensor::_internal_pose() const {
687  return *pose_;
688 }
689 inline const ::gz::msgs::Pose& Sensor::pose() const {
690  const ::gz::msgs::Pose* p = pose_;
691  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.pose)
692  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Pose*>(
694 }
695 inline ::gz::msgs::Pose* Sensor::release_pose() {
696  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.pose)
697 
698  ::gz::msgs::Pose* temp = pose_;
699  pose_ = NULL;
700  return temp;
701 }
702 inline ::gz::msgs::Pose* Sensor::mutable_pose() {
703 
704  if (pose_ == NULL) {
705  auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
706  pose_ = p;
707  }
708  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.pose)
709  return pose_;
710 }
712  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
713  if (message_arena == NULL) {
714  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
715  }
716  if (pose) {
717  ::google::protobuf::Arena* submessage_arena = NULL;
718  if (message_arena != submessage_arena) {
719  pose = ::google::protobuf::internal::GetOwnedMessage(
720  message_arena, pose, submessage_arena);
721  }
722 
723  } else {
724 
725  }
726  pose_ = pose;
727  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.pose)
728 }
729 
730 // .gz.msgs.CameraSensor camera = 10;
731 inline bool Sensor::has_camera() const {
732  return this != internal_default_instance() && camera_ != NULL;
733 }
734 inline const ::gz::msgs::CameraSensor& Sensor::_internal_camera() const {
735  return *camera_;
736 }
737 inline const ::gz::msgs::CameraSensor& Sensor::camera() const {
738  const ::gz::msgs::CameraSensor* p = camera_;
739  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.camera)
740  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::CameraSensor*>(
742 }
743 inline ::gz::msgs::CameraSensor* Sensor::release_camera() {
744  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.camera)
745 
746  ::gz::msgs::CameraSensor* temp = camera_;
747  camera_ = NULL;
748  return temp;
749 }
750 inline ::gz::msgs::CameraSensor* Sensor::mutable_camera() {
751 
752  if (camera_ == NULL) {
753  auto* p = CreateMaybeMessage<::gz::msgs::CameraSensor>(GetArenaNoVirtual());
754  camera_ = p;
755  }
756  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.camera)
757  return camera_;
758 }
760  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
761  if (message_arena == NULL) {
762  delete reinterpret_cast< ::google::protobuf::MessageLite*>(camera_);
763  }
764  if (camera) {
765  ::google::protobuf::Arena* submessage_arena = NULL;
766  if (message_arena != submessage_arena) {
767  camera = ::google::protobuf::internal::GetOwnedMessage(
768  message_arena, camera, submessage_arena);
769  }
770 
771  } else {
772 
773  }
774  camera_ = camera;
775  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.camera)
776 }
777 
778 // .gz.msgs.ContactSensor contact = 11;
779 inline bool Sensor::has_contact() const {
780  return this != internal_default_instance() && contact_ != NULL;
781 }
782 inline const ::gz::msgs::ContactSensor& Sensor::_internal_contact() const {
783  return *contact_;
784 }
785 inline const ::gz::msgs::ContactSensor& Sensor::contact() const {
786  const ::gz::msgs::ContactSensor* p = contact_;
787  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.contact)
788  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::ContactSensor*>(
790 }
791 inline ::gz::msgs::ContactSensor* Sensor::release_contact() {
792  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.contact)
793 
794  ::gz::msgs::ContactSensor* temp = contact_;
795  contact_ = NULL;
796  return temp;
797 }
798 inline ::gz::msgs::ContactSensor* Sensor::mutable_contact() {
799 
800  if (contact_ == NULL) {
801  auto* p = CreateMaybeMessage<::gz::msgs::ContactSensor>(GetArenaNoVirtual());
802  contact_ = p;
803  }
804  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.contact)
805  return contact_;
806 }
808  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
809  if (message_arena == NULL) {
810  delete reinterpret_cast< ::google::protobuf::MessageLite*>(contact_);
811  }
812  if (contact) {
813  ::google::protobuf::Arena* submessage_arena = NULL;
814  if (message_arena != submessage_arena) {
815  contact = ::google::protobuf::internal::GetOwnedMessage(
816  message_arena, contact, submessage_arena);
817  }
818 
819  } else {
820 
821  }
822  contact_ = contact;
823  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.contact)
824 }
825 
826 // bool visualize = 12;
827 inline void Sensor::clear_visualize() {
828  visualize_ = false;
829 }
830 inline bool Sensor::visualize() const {
831  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.visualize)
832  return visualize_;
833 }
834 inline void Sensor::set_visualize(bool value) {
835 
836  visualize_ = value;
837  // @@protoc_insertion_point(field_set:gz.msgs.Sensor.visualize)
838 }
839 
840 // string topic = 13;
841 inline void Sensor::clear_topic() {
842  topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
843 }
844 inline const ::std::string& Sensor::topic() const {
845  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.topic)
846  return topic_.GetNoArena();
847 }
848 inline void Sensor::set_topic(const ::std::string& value) {
849 
850  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
851  // @@protoc_insertion_point(field_set:gz.msgs.Sensor.topic)
852 }
853 #if LANG_CXX11
854 inline void Sensor::set_topic(::std::string&& value) {
855 
856  topic_.SetNoArena(
857  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
858  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Sensor.topic)
859 }
860 #endif
861 inline void Sensor::set_topic(const char* value) {
862  GOOGLE_DCHECK(value != NULL);
863 
864  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
865  // @@protoc_insertion_point(field_set_char:gz.msgs.Sensor.topic)
866 }
867 inline void Sensor::set_topic(const char* value, size_t size) {
868 
869  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
870  ::std::string(reinterpret_cast<const char*>(value), size));
871  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Sensor.topic)
872 }
873 inline ::std::string* Sensor::mutable_topic() {
874 
875  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.topic)
876  return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
877 }
878 inline ::std::string* Sensor::release_topic() {
879  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.topic)
880 
881  return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
882 }
884  if (topic != NULL) {
885 
886  } else {
887 
888  }
889  topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
890  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.topic)
891 }
892 
893 // .gz.msgs.LogicalCameraSensor logical_camera = 14;
894 inline bool Sensor::has_logical_camera() const {
895  return this != internal_default_instance() && logical_camera_ != NULL;
896 }
897 inline const ::gz::msgs::LogicalCameraSensor& Sensor::_internal_logical_camera() const {
898  return *logical_camera_;
899 }
900 inline const ::gz::msgs::LogicalCameraSensor& Sensor::logical_camera() const {
901  const ::gz::msgs::LogicalCameraSensor* p = logical_camera_;
902  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.logical_camera)
903  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::LogicalCameraSensor*>(
905 }
906 inline ::gz::msgs::LogicalCameraSensor* Sensor::release_logical_camera() {
907  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.logical_camera)
908 
909  ::gz::msgs::LogicalCameraSensor* temp = logical_camera_;
910  logical_camera_ = NULL;
911  return temp;
912 }
913 inline ::gz::msgs::LogicalCameraSensor* Sensor::mutable_logical_camera() {
914 
915  if (logical_camera_ == NULL) {
916  auto* p = CreateMaybeMessage<::gz::msgs::LogicalCameraSensor>(GetArenaNoVirtual());
917  logical_camera_ = p;
918  }
919  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.logical_camera)
920  return logical_camera_;
921 }
923  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
924  if (message_arena == NULL) {
925  delete reinterpret_cast< ::google::protobuf::MessageLite*>(logical_camera_);
926  }
927  if (logical_camera) {
928  ::google::protobuf::Arena* submessage_arena = NULL;
929  if (message_arena != submessage_arena) {
930  logical_camera = ::google::protobuf::internal::GetOwnedMessage(
931  message_arena, logical_camera, submessage_arena);
932  }
933 
934  } else {
935 
936  }
937  logical_camera_ = logical_camera;
938  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.logical_camera)
939 }
940 
941 // .gz.msgs.GPSSensor gps = 15;
942 inline bool Sensor::has_gps() const {
943  return this != internal_default_instance() && gps_ != NULL;
944 }
945 inline const ::gz::msgs::GPSSensor& Sensor::_internal_gps() const {
946  return *gps_;
947 }
948 inline const ::gz::msgs::GPSSensor& Sensor::gps() const {
949  const ::gz::msgs::GPSSensor* p = gps_;
950  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.gps)
951  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::GPSSensor*>(
953 }
954 inline ::gz::msgs::GPSSensor* Sensor::release_gps() {
955  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.gps)
956 
957  ::gz::msgs::GPSSensor* temp = gps_;
958  gps_ = NULL;
959  return temp;
960 }
961 inline ::gz::msgs::GPSSensor* Sensor::mutable_gps() {
962 
963  if (gps_ == NULL) {
964  auto* p = CreateMaybeMessage<::gz::msgs::GPSSensor>(GetArenaNoVirtual());
965  gps_ = p;
966  }
967  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.gps)
968  return gps_;
969 }
971  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
972  if (message_arena == NULL) {
973  delete reinterpret_cast< ::google::protobuf::MessageLite*>(gps_);
974  }
975  if (gps) {
976  ::google::protobuf::Arena* submessage_arena = NULL;
977  if (message_arena != submessage_arena) {
978  gps = ::google::protobuf::internal::GetOwnedMessage(
979  message_arena, gps, submessage_arena);
980  }
981 
982  } else {
983 
984  }
985  gps_ = gps;
986  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.gps)
987 }
988 
989 // .gz.msgs.IMUSensor imu = 16;
990 inline bool Sensor::has_imu() const {
991  return this != internal_default_instance() && imu_ != NULL;
992 }
993 inline const ::gz::msgs::IMUSensor& Sensor::_internal_imu() const {
994  return *imu_;
995 }
996 inline const ::gz::msgs::IMUSensor& Sensor::imu() const {
997  const ::gz::msgs::IMUSensor* p = imu_;
998  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.imu)
999  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::IMUSensor*>(
1001 }
1002 inline ::gz::msgs::IMUSensor* Sensor::release_imu() {
1003  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.imu)
1004 
1005  ::gz::msgs::IMUSensor* temp = imu_;
1006  imu_ = NULL;
1007  return temp;
1008 }
1009 inline ::gz::msgs::IMUSensor* Sensor::mutable_imu() {
1010 
1011  if (imu_ == NULL) {
1012  auto* p = CreateMaybeMessage<::gz::msgs::IMUSensor>(GetArenaNoVirtual());
1013  imu_ = p;
1014  }
1015  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.imu)
1016  return imu_;
1017 }
1019  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1020  if (message_arena == NULL) {
1021  delete reinterpret_cast< ::google::protobuf::MessageLite*>(imu_);
1022  }
1023  if (imu) {
1024  ::google::protobuf::Arena* submessage_arena = NULL;
1025  if (message_arena != submessage_arena) {
1026  imu = ::google::protobuf::internal::GetOwnedMessage(
1027  message_arena, imu, submessage_arena);
1028  }
1029 
1030  } else {
1031 
1032  }
1033  imu_ = imu;
1034  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.imu)
1035 }
1036 
1037 // .gz.msgs.MagnetometerSensor magnetometer = 17;
1038 inline bool Sensor::has_magnetometer() const {
1039  return this != internal_default_instance() && magnetometer_ != NULL;
1040 }
1041 inline const ::gz::msgs::MagnetometerSensor& Sensor::_internal_magnetometer() const {
1042  return *magnetometer_;
1043 }
1044 inline const ::gz::msgs::MagnetometerSensor& Sensor::magnetometer() const {
1045  const ::gz::msgs::MagnetometerSensor* p = magnetometer_;
1046  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.magnetometer)
1047  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::MagnetometerSensor*>(
1049 }
1050 inline ::gz::msgs::MagnetometerSensor* Sensor::release_magnetometer() {
1051  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.magnetometer)
1052 
1053  ::gz::msgs::MagnetometerSensor* temp = magnetometer_;
1054  magnetometer_ = NULL;
1055  return temp;
1056 }
1057 inline ::gz::msgs::MagnetometerSensor* Sensor::mutable_magnetometer() {
1058 
1059  if (magnetometer_ == NULL) {
1060  auto* p = CreateMaybeMessage<::gz::msgs::MagnetometerSensor>(GetArenaNoVirtual());
1061  magnetometer_ = p;
1062  }
1063  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.magnetometer)
1064  return magnetometer_;
1065 }
1067  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1068  if (message_arena == NULL) {
1069  delete reinterpret_cast< ::google::protobuf::MessageLite*>(magnetometer_);
1070  }
1071  if (magnetometer) {
1072  ::google::protobuf::Arena* submessage_arena = NULL;
1073  if (message_arena != submessage_arena) {
1074  magnetometer = ::google::protobuf::internal::GetOwnedMessage(
1075  message_arena, magnetometer, submessage_arena);
1076  }
1077 
1078  } else {
1079 
1080  }
1081  magnetometer_ = magnetometer;
1082  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.magnetometer)
1083 }
1084 
1085 // .gz.msgs.AltimeterSensor altimeter = 18;
1086 inline bool Sensor::has_altimeter() const {
1087  return this != internal_default_instance() && altimeter_ != NULL;
1088 }
1089 inline const ::gz::msgs::AltimeterSensor& Sensor::_internal_altimeter() const {
1090  return *altimeter_;
1091 }
1092 inline const ::gz::msgs::AltimeterSensor& Sensor::altimeter() const {
1093  const ::gz::msgs::AltimeterSensor* p = altimeter_;
1094  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.altimeter)
1095  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::AltimeterSensor*>(
1097 }
1098 inline ::gz::msgs::AltimeterSensor* Sensor::release_altimeter() {
1099  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.altimeter)
1100 
1101  ::gz::msgs::AltimeterSensor* temp = altimeter_;
1102  altimeter_ = NULL;
1103  return temp;
1104 }
1105 inline ::gz::msgs::AltimeterSensor* Sensor::mutable_altimeter() {
1106 
1107  if (altimeter_ == NULL) {
1108  auto* p = CreateMaybeMessage<::gz::msgs::AltimeterSensor>(GetArenaNoVirtual());
1109  altimeter_ = p;
1110  }
1111  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.altimeter)
1112  return altimeter_;
1113 }
1115  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1116  if (message_arena == NULL) {
1117  delete reinterpret_cast< ::google::protobuf::MessageLite*>(altimeter_);
1118  }
1119  if (altimeter) {
1120  ::google::protobuf::Arena* submessage_arena = NULL;
1121  if (message_arena != submessage_arena) {
1122  altimeter = ::google::protobuf::internal::GetOwnedMessage(
1123  message_arena, altimeter, submessage_arena);
1124  }
1125 
1126  } else {
1127 
1128  }
1129  altimeter_ = altimeter;
1130  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.altimeter)
1131 }
1132 
1133 // .gz.msgs.AirPressureSensor air_pressure = 19;
1134 inline bool Sensor::has_air_pressure() const {
1135  return this != internal_default_instance() && air_pressure_ != NULL;
1136 }
1137 inline const ::gz::msgs::AirPressureSensor& Sensor::_internal_air_pressure() const {
1138  return *air_pressure_;
1139 }
1140 inline const ::gz::msgs::AirPressureSensor& Sensor::air_pressure() const {
1141  const ::gz::msgs::AirPressureSensor* p = air_pressure_;
1142  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.air_pressure)
1143  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::AirPressureSensor*>(
1145 }
1146 inline ::gz::msgs::AirPressureSensor* Sensor::release_air_pressure() {
1147  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.air_pressure)
1148 
1149  ::gz::msgs::AirPressureSensor* temp = air_pressure_;
1150  air_pressure_ = NULL;
1151  return temp;
1152 }
1153 inline ::gz::msgs::AirPressureSensor* Sensor::mutable_air_pressure() {
1154 
1155  if (air_pressure_ == NULL) {
1156  auto* p = CreateMaybeMessage<::gz::msgs::AirPressureSensor>(GetArenaNoVirtual());
1157  air_pressure_ = p;
1158  }
1159  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.air_pressure)
1160  return air_pressure_;
1161 }
1163  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1164  if (message_arena == NULL) {
1165  delete reinterpret_cast< ::google::protobuf::MessageLite*>(air_pressure_);
1166  }
1167  if (air_pressure) {
1168  ::google::protobuf::Arena* submessage_arena = NULL;
1169  if (message_arena != submessage_arena) {
1170  air_pressure = ::google::protobuf::internal::GetOwnedMessage(
1171  message_arena, air_pressure, submessage_arena);
1172  }
1173 
1174  } else {
1175 
1176  }
1177  air_pressure_ = air_pressure;
1178  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.air_pressure)
1179 }
1180 
1181 // .gz.msgs.LidarSensor lidar = 20;
1182 inline bool Sensor::has_lidar() const {
1183  return this != internal_default_instance() && lidar_ != NULL;
1184 }
1185 inline const ::gz::msgs::LidarSensor& Sensor::_internal_lidar() const {
1186  return *lidar_;
1187 }
1188 inline const ::gz::msgs::LidarSensor& Sensor::lidar() const {
1189  const ::gz::msgs::LidarSensor* p = lidar_;
1190  // @@protoc_insertion_point(field_get:gz.msgs.Sensor.lidar)
1191  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::LidarSensor*>(
1193 }
1194 inline ::gz::msgs::LidarSensor* Sensor::release_lidar() {
1195  // @@protoc_insertion_point(field_release:gz.msgs.Sensor.lidar)
1196 
1197  ::gz::msgs::LidarSensor* temp = lidar_;
1198  lidar_ = NULL;
1199  return temp;
1200 }
1201 inline ::gz::msgs::LidarSensor* Sensor::mutable_lidar() {
1202 
1203  if (lidar_ == NULL) {
1204  auto* p = CreateMaybeMessage<::gz::msgs::LidarSensor>(GetArenaNoVirtual());
1205  lidar_ = p;
1206  }
1207  // @@protoc_insertion_point(field_mutable:gz.msgs.Sensor.lidar)
1208  return lidar_;
1209 }
1211  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1212  if (message_arena == NULL) {
1213  delete reinterpret_cast< ::google::protobuf::MessageLite*>(lidar_);
1214  }
1215  if (lidar) {
1216  ::google::protobuf::Arena* submessage_arena = NULL;
1217  if (message_arena != submessage_arena) {
1218  lidar = ::google::protobuf::internal::GetOwnedMessage(
1219  message_arena, lidar, submessage_arena);
1220  }
1221 
1222  } else {
1223 
1224  }
1225  lidar_ = lidar;
1226  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sensor.lidar)
1227 }
1228 
1229 #ifdef __GNUC__
1230  #pragma GCC diagnostic pop
1231 #endif // __GNUC__
1232 
1233 // @@protoc_insertion_point(namespace_scope)
1234 
1235 } // namespace msgs
1236 } // namespace gz
1237 
1238 // @@protoc_insertion_point(global_scope)
1239 
1240 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsensor_2eproto