Gazebo Msgs

API Reference

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