Gazebo Msgs

API Reference

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