Gazebo Msgs

API Reference

9.5.0
link.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/link.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flink_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flink_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/inertial.pb.h"
34 #include "gz/msgs/collision.pb.h"
35 #include "gz/msgs/visual.pb.h"
36 #include "gz/msgs/light.pb.h"
37 #include "gz/msgs/sensor.pb.h"
38 #include "gz/msgs/particle_emitter.pb.h"
39 #include "gz/msgs/projector.pb.h"
40 #include "gz/msgs/pose.pb.h"
41 #include "gz/msgs/battery.pb.h"
42 #include "gz/msgs/density.pb.h"
43 #include "gz/msgs/header.pb.h"
44 // @@protoc_insertion_point(includes)
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flink_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_2flink_2eproto
59 namespace gz {
60 namespace msgs {
61 class Link;
62 class LinkDefaultTypeInternal;
63 GZ_MSGS_VISIBLE extern LinkDefaultTypeInternal _Link_default_instance_;
64 } // namespace msgs
65 } // namespace gz
66 namespace google {
67 namespace protobuf {
68 template<> GZ_MSGS_VISIBLE ::gz::msgs::Link* Arena::CreateMaybeMessage<::gz::msgs::Link>(Arena*);
69 } // namespace protobuf
70 } // namespace google
71 namespace gz {
72 namespace msgs {
73 
74 // ===================================================================
75 
76 class GZ_MSGS_VISIBLE Link : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Link) */ {
77  public:
78  Link();
79  virtual ~Link();
80 
81  Link(const Link& from);
82 
83  inline Link& operator=(const Link& from) {
84  CopyFrom(from);
85  return *this;
86  }
87  #if LANG_CXX11
88  Link(Link&& from) noexcept
89  : Link() {
90  *this = ::std::move(from);
91  }
92 
93  inline Link& operator=(Link&& 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 Link& default_instance();
104 
105  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
106  static inline const Link* internal_default_instance() {
107  return reinterpret_cast<const Link*>(
109  }
110  static constexpr int kIndexInFileMessages =
111  0;
112 
113  void Swap(Link* other);
114  friend void swap(Link& a, Link& b) {
115  a.Swap(&b);
116  }
117 
118  // implements Message ----------------------------------------------
119 
120  inline Link* New() const final {
121  return CreateMaybeMessage<Link>(NULL);
122  }
123 
124  Link* New(::google::protobuf::Arena* arena) const final {
125  return CreateMaybeMessage<Link>(arena);
126  }
127  void CopyFrom(const ::google::protobuf::Message& from) final;
128  void MergeFrom(const ::google::protobuf::Message& from) final;
129  void CopyFrom(const Link& from);
130  void MergeFrom(const Link& 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(Link* 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  // repeated .gz.msgs.Visual visual = 11;
164  int visual_size() const;
165  void clear_visual();
166  static const int kVisualFieldNumber = 11;
167  ::gz::msgs::Visual* mutable_visual(int index);
168  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >*
169  mutable_visual();
170  const ::gz::msgs::Visual& visual(int index) const;
171  ::gz::msgs::Visual* add_visual();
172  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >&
173  visual() const;
174 
175  // repeated .gz.msgs.Collision collision = 12;
176  int collision_size() const;
177  void clear_collision();
178  static const int kCollisionFieldNumber = 12;
179  ::gz::msgs::Collision* mutable_collision(int index);
180  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Collision >*
181  mutable_collision();
182  const ::gz::msgs::Collision& collision(int index) const;
183  ::gz::msgs::Collision* add_collision();
184  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Collision >&
185  collision() const;
186 
187  // repeated .gz.msgs.Sensor sensor = 13;
188  int sensor_size() const;
189  void clear_sensor();
190  static const int kSensorFieldNumber = 13;
191  ::gz::msgs::Sensor* mutable_sensor(int index);
192  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Sensor >*
193  mutable_sensor();
194  const ::gz::msgs::Sensor& sensor(int index) const;
195  ::gz::msgs::Sensor* add_sensor();
196  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Sensor >&
197  sensor() const;
198 
199  // repeated .gz.msgs.Projector projector = 14;
200  int projector_size() const;
201  void clear_projector();
202  static const int kProjectorFieldNumber = 14;
203  ::gz::msgs::Projector* mutable_projector(int index);
204  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Projector >*
205  mutable_projector();
206  const ::gz::msgs::Projector& projector(int index) const;
207  ::gz::msgs::Projector* add_projector();
208  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Projector >&
209  projector() const;
210 
211  // repeated .gz.msgs.Battery battery = 16;
212  int battery_size() const;
213  void clear_battery();
214  static const int kBatteryFieldNumber = 16;
215  ::gz::msgs::Battery* mutable_battery(int index);
216  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Battery >*
217  mutable_battery();
218  const ::gz::msgs::Battery& battery(int index) const;
219  ::gz::msgs::Battery* add_battery();
220  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Battery >&
221  battery() const;
222 
223  // repeated .gz.msgs.Light light = 17;
224  int light_size() const;
225  void clear_light();
226  static const int kLightFieldNumber = 17;
227  ::gz::msgs::Light* mutable_light(int index);
228  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >*
229  mutable_light();
230  const ::gz::msgs::Light& light(int index) const;
231  ::gz::msgs::Light* add_light();
232  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >&
233  light() const;
234 
235  // repeated .gz.msgs.ParticleEmitter particle_emitter = 18;
236  int particle_emitter_size() const;
237  void clear_particle_emitter();
238  static const int kParticleEmitterFieldNumber = 18;
239  ::gz::msgs::ParticleEmitter* mutable_particle_emitter(int index);
240  ::google::protobuf::RepeatedPtrField< ::gz::msgs::ParticleEmitter >*
241  mutable_particle_emitter();
242  const ::gz::msgs::ParticleEmitter& particle_emitter(int index) const;
243  ::gz::msgs::ParticleEmitter* add_particle_emitter();
244  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::ParticleEmitter >&
245  particle_emitter() const;
246 
247  // string name = 3;
248  void clear_name();
249  static const int kNameFieldNumber = 3;
250  const ::std::string& name() const;
251  void set_name(const ::std::string& value);
252  #if LANG_CXX11
253  void set_name(::std::string&& value);
254  #endif
255  void set_name(const char* value);
256  void set_name(const char* value, size_t size);
257  ::std::string* mutable_name();
258  ::std::string* release_name();
259  void set_allocated_name(::std::string* name);
260 
261  // .gz.msgs.Header header = 1;
262  bool has_header() const;
263  void clear_header();
264  static const int kHeaderFieldNumber = 1;
265  private:
266  const ::gz::msgs::Header& _internal_header() const;
267  public:
268  const ::gz::msgs::Header& header() const;
269  ::gz::msgs::Header* release_header();
270  ::gz::msgs::Header* mutable_header();
271  void set_allocated_header(::gz::msgs::Header* header);
272 
273  // .gz.msgs.Density density = 8;
274  bool has_density() const;
275  void clear_density();
276  static const int kDensityFieldNumber = 8;
277  private:
278  const ::gz::msgs::Density& _internal_density() const;
279  public:
280  const ::gz::msgs::Density& density() const;
281  ::gz::msgs::Density* release_density();
282  ::gz::msgs::Density* mutable_density();
283  void set_allocated_density(::gz::msgs::Density* density);
284 
285  // .gz.msgs.Inertial inertial = 9;
286  bool has_inertial() const;
287  void clear_inertial();
288  static const int kInertialFieldNumber = 9;
289  private:
290  const ::gz::msgs::Inertial& _internal_inertial() const;
291  public:
292  const ::gz::msgs::Inertial& inertial() const;
293  ::gz::msgs::Inertial* release_inertial();
294  ::gz::msgs::Inertial* mutable_inertial();
295  void set_allocated_inertial(::gz::msgs::Inertial* inertial);
296 
297  // .gz.msgs.Pose pose = 10;
298  bool has_pose() const;
299  void clear_pose();
300  static const int kPoseFieldNumber = 10;
301  private:
302  const ::gz::msgs::Pose& _internal_pose() const;
303  public:
304  const ::gz::msgs::Pose& pose() const;
305  ::gz::msgs::Pose* release_pose();
306  ::gz::msgs::Pose* mutable_pose();
307  void set_allocated_pose(::gz::msgs::Pose* pose);
308 
309  // uint32 id = 2;
310  void clear_id();
311  static const int kIdFieldNumber = 2;
312  ::google::protobuf::uint32 id() const;
313  void set_id(::google::protobuf::uint32 value);
314 
315  // bool self_collide = 4;
316  void clear_self_collide();
317  static const int kSelfCollideFieldNumber = 4;
318  bool self_collide() const;
319  void set_self_collide(bool value);
320 
321  // bool gravity = 5;
322  void clear_gravity();
323  static const int kGravityFieldNumber = 5;
324  bool gravity() const;
325  void set_gravity(bool value);
326 
327  // bool kinematic = 6;
328  void clear_kinematic();
329  static const int kKinematicFieldNumber = 6;
330  bool kinematic() const;
331  void set_kinematic(bool value);
332 
333  // bool enabled = 7;
334  void clear_enabled();
335  static const int kEnabledFieldNumber = 7;
336  bool enabled() const;
337  void set_enabled(bool value);
338 
339  // bool canonical = 15;
340  void clear_canonical();
341  static const int kCanonicalFieldNumber = 15;
342  bool canonical() const;
343  void set_canonical(bool value);
344 
345  // @@protoc_insertion_point(class_scope:gz.msgs.Link)
346  private:
347 
348  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
349  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual > visual_;
350  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Collision > collision_;
351  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Sensor > sensor_;
352  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Projector > projector_;
353  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Battery > battery_;
354  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light > light_;
355  ::google::protobuf::RepeatedPtrField< ::gz::msgs::ParticleEmitter > particle_emitter_;
356  ::google::protobuf::internal::ArenaStringPtr name_;
357  ::gz::msgs::Header* header_;
358  ::gz::msgs::Density* density_;
359  ::gz::msgs::Inertial* inertial_;
360  ::gz::msgs::Pose* pose_;
361  ::google::protobuf::uint32 id_;
362  bool self_collide_;
363  bool gravity_;
364  bool kinematic_;
365  bool enabled_;
366  bool canonical_;
367  mutable ::google::protobuf::internal::CachedSize _cached_size_;
368  friend struct ::protobuf_gz_2fmsgs_2flink_2eproto::TableStruct;
369 };
370 // ===================================================================
371 
372 
373 // ===================================================================
374 
375 #ifdef __GNUC__
376  #pragma GCC diagnostic push
377  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
378 #endif // __GNUC__
379 // Link
380 
381 // .gz.msgs.Header header = 1;
382 inline bool Link::has_header() const {
383  return this != internal_default_instance() && header_ != NULL;
384 }
385 inline const ::gz::msgs::Header& Link::_internal_header() const {
386  return *header_;
387 }
388 inline const ::gz::msgs::Header& Link::header() const {
389  const ::gz::msgs::Header* p = header_;
390  // @@protoc_insertion_point(field_get:gz.msgs.Link.header)
391  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
393 }
394 inline ::gz::msgs::Header* Link::release_header() {
395  // @@protoc_insertion_point(field_release:gz.msgs.Link.header)
396 
397  ::gz::msgs::Header* temp = header_;
398  header_ = NULL;
399  return temp;
400 }
401 inline ::gz::msgs::Header* Link::mutable_header() {
402 
403  if (header_ == NULL) {
404  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
405  header_ = p;
406  }
407  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.header)
408  return header_;
409 }
411  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
412  if (message_arena == NULL) {
413  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
414  }
415  if (header) {
416  ::google::protobuf::Arena* submessage_arena = NULL;
417  if (message_arena != submessage_arena) {
418  header = ::google::protobuf::internal::GetOwnedMessage(
419  message_arena, header, submessage_arena);
420  }
421 
422  } else {
423 
424  }
425  header_ = header;
426  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Link.header)
427 }
428 
429 // uint32 id = 2;
430 inline void Link::clear_id() {
431  id_ = 0u;
432 }
433 inline ::google::protobuf::uint32 Link::id() const {
434  // @@protoc_insertion_point(field_get:gz.msgs.Link.id)
435  return id_;
436 }
437 inline void Link::set_id(::google::protobuf::uint32 value) {
438 
439  id_ = value;
440  // @@protoc_insertion_point(field_set:gz.msgs.Link.id)
441 }
442 
443 // string name = 3;
444 inline void Link::clear_name() {
445  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
446 }
447 inline const ::std::string& Link::name() const {
448  // @@protoc_insertion_point(field_get:gz.msgs.Link.name)
449  return name_.GetNoArena();
450 }
451 inline void Link::set_name(const ::std::string& value) {
452 
453  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
454  // @@protoc_insertion_point(field_set:gz.msgs.Link.name)
455 }
456 #if LANG_CXX11
457 inline void Link::set_name(::std::string&& value) {
458 
459  name_.SetNoArena(
460  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
461  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Link.name)
462 }
463 #endif
464 inline void Link::set_name(const char* value) {
465  GOOGLE_DCHECK(value != NULL);
466 
467  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
468  // @@protoc_insertion_point(field_set_char:gz.msgs.Link.name)
469 }
470 inline void Link::set_name(const char* value, size_t size) {
471 
472  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
473  ::std::string(reinterpret_cast<const char*>(value), size));
474  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Link.name)
475 }
476 inline ::std::string* Link::mutable_name() {
477 
478  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.name)
479  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
480 }
481 inline ::std::string* Link::release_name() {
482  // @@protoc_insertion_point(field_release:gz.msgs.Link.name)
483 
484  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
485 }
486 inline void Link::set_allocated_name(::std::string* name) {
487  if (name != NULL) {
488 
489  } else {
490 
491  }
492  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
493  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Link.name)
494 }
495 
496 // bool self_collide = 4;
498  self_collide_ = false;
499 }
500 inline bool Link::self_collide() const {
501  // @@protoc_insertion_point(field_get:gz.msgs.Link.self_collide)
502  return self_collide_;
503 }
504 inline void Link::set_self_collide(bool value) {
505 
506  self_collide_ = value;
507  // @@protoc_insertion_point(field_set:gz.msgs.Link.self_collide)
508 }
509 
510 // bool gravity = 5;
511 inline void Link::clear_gravity() {
512  gravity_ = false;
513 }
514 inline bool Link::gravity() const {
515  // @@protoc_insertion_point(field_get:gz.msgs.Link.gravity)
516  return gravity_;
517 }
518 inline void Link::set_gravity(bool value) {
519 
520  gravity_ = value;
521  // @@protoc_insertion_point(field_set:gz.msgs.Link.gravity)
522 }
523 
524 // bool kinematic = 6;
525 inline void Link::clear_kinematic() {
526  kinematic_ = false;
527 }
528 inline bool Link::kinematic() const {
529  // @@protoc_insertion_point(field_get:gz.msgs.Link.kinematic)
530  return kinematic_;
531 }
532 inline void Link::set_kinematic(bool value) {
533 
534  kinematic_ = value;
535  // @@protoc_insertion_point(field_set:gz.msgs.Link.kinematic)
536 }
537 
538 // bool enabled = 7;
539 inline void Link::clear_enabled() {
540  enabled_ = false;
541 }
542 inline bool Link::enabled() const {
543  // @@protoc_insertion_point(field_get:gz.msgs.Link.enabled)
544  return enabled_;
545 }
546 inline void Link::set_enabled(bool value) {
547 
548  enabled_ = value;
549  // @@protoc_insertion_point(field_set:gz.msgs.Link.enabled)
550 }
551 
552 // .gz.msgs.Density density = 8;
553 inline bool Link::has_density() const {
554  return this != internal_default_instance() && density_ != NULL;
555 }
556 inline const ::gz::msgs::Density& Link::_internal_density() const {
557  return *density_;
558 }
559 inline const ::gz::msgs::Density& Link::density() const {
560  const ::gz::msgs::Density* p = density_;
561  // @@protoc_insertion_point(field_get:gz.msgs.Link.density)
562  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Density*>(
564 }
565 inline ::gz::msgs::Density* Link::release_density() {
566  // @@protoc_insertion_point(field_release:gz.msgs.Link.density)
567 
568  ::gz::msgs::Density* temp = density_;
569  density_ = NULL;
570  return temp;
571 }
572 inline ::gz::msgs::Density* Link::mutable_density() {
573 
574  if (density_ == NULL) {
575  auto* p = CreateMaybeMessage<::gz::msgs::Density>(GetArenaNoVirtual());
576  density_ = p;
577  }
578  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.density)
579  return density_;
580 }
582  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
583  if (message_arena == NULL) {
584  delete reinterpret_cast< ::google::protobuf::MessageLite*>(density_);
585  }
586  if (density) {
587  ::google::protobuf::Arena* submessage_arena = NULL;
588  if (message_arena != submessage_arena) {
589  density = ::google::protobuf::internal::GetOwnedMessage(
590  message_arena, density, submessage_arena);
591  }
592 
593  } else {
594 
595  }
596  density_ = density;
597  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Link.density)
598 }
599 
600 // .gz.msgs.Inertial inertial = 9;
601 inline bool Link::has_inertial() const {
602  return this != internal_default_instance() && inertial_ != NULL;
603 }
604 inline const ::gz::msgs::Inertial& Link::_internal_inertial() const {
605  return *inertial_;
606 }
607 inline const ::gz::msgs::Inertial& Link::inertial() const {
608  const ::gz::msgs::Inertial* p = inertial_;
609  // @@protoc_insertion_point(field_get:gz.msgs.Link.inertial)
610  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Inertial*>(
612 }
613 inline ::gz::msgs::Inertial* Link::release_inertial() {
614  // @@protoc_insertion_point(field_release:gz.msgs.Link.inertial)
615 
616  ::gz::msgs::Inertial* temp = inertial_;
617  inertial_ = NULL;
618  return temp;
619 }
620 inline ::gz::msgs::Inertial* Link::mutable_inertial() {
621 
622  if (inertial_ == NULL) {
623  auto* p = CreateMaybeMessage<::gz::msgs::Inertial>(GetArenaNoVirtual());
624  inertial_ = p;
625  }
626  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.inertial)
627  return inertial_;
628 }
630  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
631  if (message_arena == NULL) {
632  delete reinterpret_cast< ::google::protobuf::MessageLite*>(inertial_);
633  }
634  if (inertial) {
635  ::google::protobuf::Arena* submessage_arena = NULL;
636  if (message_arena != submessage_arena) {
637  inertial = ::google::protobuf::internal::GetOwnedMessage(
638  message_arena, inertial, submessage_arena);
639  }
640 
641  } else {
642 
643  }
644  inertial_ = inertial;
645  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Link.inertial)
646 }
647 
648 // .gz.msgs.Pose pose = 10;
649 inline bool Link::has_pose() const {
650  return this != internal_default_instance() && pose_ != NULL;
651 }
652 inline const ::gz::msgs::Pose& Link::_internal_pose() const {
653  return *pose_;
654 }
655 inline const ::gz::msgs::Pose& Link::pose() const {
656  const ::gz::msgs::Pose* p = pose_;
657  // @@protoc_insertion_point(field_get:gz.msgs.Link.pose)
658  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Pose*>(
660 }
661 inline ::gz::msgs::Pose* Link::release_pose() {
662  // @@protoc_insertion_point(field_release:gz.msgs.Link.pose)
663 
664  ::gz::msgs::Pose* temp = pose_;
665  pose_ = NULL;
666  return temp;
667 }
668 inline ::gz::msgs::Pose* Link::mutable_pose() {
669 
670  if (pose_ == NULL) {
671  auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
672  pose_ = p;
673  }
674  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.pose)
675  return pose_;
676 }
678  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
679  if (message_arena == NULL) {
680  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
681  }
682  if (pose) {
683  ::google::protobuf::Arena* submessage_arena = NULL;
684  if (message_arena != submessage_arena) {
685  pose = ::google::protobuf::internal::GetOwnedMessage(
686  message_arena, pose, submessage_arena);
687  }
688 
689  } else {
690 
691  }
692  pose_ = pose;
693  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Link.pose)
694 }
695 
696 // repeated .gz.msgs.Visual visual = 11;
697 inline int Link::visual_size() const {
698  return visual_.size();
699 }
700 inline ::gz::msgs::Visual* Link::mutable_visual(int index) {
701  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.visual)
702  return visual_.Mutable(index);
703 }
704 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >*
706  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Link.visual)
707  return &visual_;
708 }
709 inline const ::gz::msgs::Visual& Link::visual(int index) const {
710  // @@protoc_insertion_point(field_get:gz.msgs.Link.visual)
711  return visual_.Get(index);
712 }
713 inline ::gz::msgs::Visual* Link::add_visual() {
714  // @@protoc_insertion_point(field_add:gz.msgs.Link.visual)
715  return visual_.Add();
716 }
717 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Visual >&
718 Link::visual() const {
719  // @@protoc_insertion_point(field_list:gz.msgs.Link.visual)
720  return visual_;
721 }
722 
723 // repeated .gz.msgs.Collision collision = 12;
724 inline int Link::collision_size() const {
725  return collision_.size();
726 }
727 inline ::gz::msgs::Collision* Link::mutable_collision(int index) {
728  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.collision)
729  return collision_.Mutable(index);
730 }
731 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Collision >*
733  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Link.collision)
734  return &collision_;
735 }
736 inline const ::gz::msgs::Collision& Link::collision(int index) const {
737  // @@protoc_insertion_point(field_get:gz.msgs.Link.collision)
738  return collision_.Get(index);
739 }
740 inline ::gz::msgs::Collision* Link::add_collision() {
741  // @@protoc_insertion_point(field_add:gz.msgs.Link.collision)
742  return collision_.Add();
743 }
744 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Collision >&
746  // @@protoc_insertion_point(field_list:gz.msgs.Link.collision)
747  return collision_;
748 }
749 
750 // repeated .gz.msgs.Sensor sensor = 13;
751 inline int Link::sensor_size() const {
752  return sensor_.size();
753 }
754 inline ::gz::msgs::Sensor* Link::mutable_sensor(int index) {
755  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.sensor)
756  return sensor_.Mutable(index);
757 }
758 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Sensor >*
760  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Link.sensor)
761  return &sensor_;
762 }
763 inline const ::gz::msgs::Sensor& Link::sensor(int index) const {
764  // @@protoc_insertion_point(field_get:gz.msgs.Link.sensor)
765  return sensor_.Get(index);
766 }
767 inline ::gz::msgs::Sensor* Link::add_sensor() {
768  // @@protoc_insertion_point(field_add:gz.msgs.Link.sensor)
769  return sensor_.Add();
770 }
771 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Sensor >&
772 Link::sensor() const {
773  // @@protoc_insertion_point(field_list:gz.msgs.Link.sensor)
774  return sensor_;
775 }
776 
777 // repeated .gz.msgs.Projector projector = 14;
778 inline int Link::projector_size() const {
779  return projector_.size();
780 }
781 inline ::gz::msgs::Projector* Link::mutable_projector(int index) {
782  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.projector)
783  return projector_.Mutable(index);
784 }
785 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Projector >*
787  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Link.projector)
788  return &projector_;
789 }
790 inline const ::gz::msgs::Projector& Link::projector(int index) const {
791  // @@protoc_insertion_point(field_get:gz.msgs.Link.projector)
792  return projector_.Get(index);
793 }
794 inline ::gz::msgs::Projector* Link::add_projector() {
795  // @@protoc_insertion_point(field_add:gz.msgs.Link.projector)
796  return projector_.Add();
797 }
798 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Projector >&
800  // @@protoc_insertion_point(field_list:gz.msgs.Link.projector)
801  return projector_;
802 }
803 
804 // bool canonical = 15;
805 inline void Link::clear_canonical() {
806  canonical_ = false;
807 }
808 inline bool Link::canonical() const {
809  // @@protoc_insertion_point(field_get:gz.msgs.Link.canonical)
810  return canonical_;
811 }
812 inline void Link::set_canonical(bool value) {
813 
814  canonical_ = value;
815  // @@protoc_insertion_point(field_set:gz.msgs.Link.canonical)
816 }
817 
818 // repeated .gz.msgs.Battery battery = 16;
819 inline int Link::battery_size() const {
820  return battery_.size();
821 }
822 inline ::gz::msgs::Battery* Link::mutable_battery(int index) {
823  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.battery)
824  return battery_.Mutable(index);
825 }
826 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Battery >*
828  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Link.battery)
829  return &battery_;
830 }
831 inline const ::gz::msgs::Battery& Link::battery(int index) const {
832  // @@protoc_insertion_point(field_get:gz.msgs.Link.battery)
833  return battery_.Get(index);
834 }
835 inline ::gz::msgs::Battery* Link::add_battery() {
836  // @@protoc_insertion_point(field_add:gz.msgs.Link.battery)
837  return battery_.Add();
838 }
839 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Battery >&
840 Link::battery() const {
841  // @@protoc_insertion_point(field_list:gz.msgs.Link.battery)
842  return battery_;
843 }
844 
845 // repeated .gz.msgs.Light light = 17;
846 inline int Link::light_size() const {
847  return light_.size();
848 }
849 inline ::gz::msgs::Light* Link::mutable_light(int index) {
850  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.light)
851  return light_.Mutable(index);
852 }
853 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >*
855  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Link.light)
856  return &light_;
857 }
858 inline const ::gz::msgs::Light& Link::light(int index) const {
859  // @@protoc_insertion_point(field_get:gz.msgs.Link.light)
860  return light_.Get(index);
861 }
862 inline ::gz::msgs::Light* Link::add_light() {
863  // @@protoc_insertion_point(field_add:gz.msgs.Link.light)
864  return light_.Add();
865 }
866 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >&
867 Link::light() const {
868  // @@protoc_insertion_point(field_list:gz.msgs.Link.light)
869  return light_;
870 }
871 
872 // repeated .gz.msgs.ParticleEmitter particle_emitter = 18;
873 inline int Link::particle_emitter_size() const {
874  return particle_emitter_.size();
875 }
876 inline ::gz::msgs::ParticleEmitter* Link::mutable_particle_emitter(int index) {
877  // @@protoc_insertion_point(field_mutable:gz.msgs.Link.particle_emitter)
878  return particle_emitter_.Mutable(index);
879 }
880 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::ParticleEmitter >*
882  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Link.particle_emitter)
883  return &particle_emitter_;
884 }
885 inline const ::gz::msgs::ParticleEmitter& Link::particle_emitter(int index) const {
886  // @@protoc_insertion_point(field_get:gz.msgs.Link.particle_emitter)
887  return particle_emitter_.Get(index);
888 }
889 inline ::gz::msgs::ParticleEmitter* Link::add_particle_emitter() {
890  // @@protoc_insertion_point(field_add:gz.msgs.Link.particle_emitter)
891  return particle_emitter_.Add();
892 }
893 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::ParticleEmitter >&
895  // @@protoc_insertion_point(field_list:gz.msgs.Link.particle_emitter)
896  return particle_emitter_;
897 }
898 
899 #ifdef __GNUC__
900  #pragma GCC diagnostic pop
901 #endif // __GNUC__
902 
903 // @@protoc_insertion_point(namespace_scope)
904 
905 } // namespace msgs
906 } // namespace gz
907 
908 // @@protoc_insertion_point(global_scope)
909 
910 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flink_2eproto