Ignition Msgs

API Reference

5.8.1
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 GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2flink_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2flink_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
37 #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 #include <google/protobuf/port_def.inc>
57 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2flink_2eproto IGNITION_MSGS_VISIBLE
58 PROTOBUF_NAMESPACE_OPEN
59 namespace internal {
60 class AnyMetadata;
61 } // namespace internal
62 PROTOBUF_NAMESPACE_CLOSE
63 
64 // Internal implementation detail -- do not use these members.
65 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2flink_2eproto {
66  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
67  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
68  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
69  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
70  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
71  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
72  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
73  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
74  static const uint32_t offsets[];
75 };
76 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2flink_2eproto;
77 namespace ignition {
78 namespace msgs {
79 class Link;
80 struct LinkDefaultTypeInternal;
81 IGNITION_MSGS_VISIBLE extern LinkDefaultTypeInternal _Link_default_instance_;
82 } // namespace msgs
83 } // namespace ignition
84 PROTOBUF_NAMESPACE_OPEN
85 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Link* Arena::CreateMaybeMessage<::ignition::msgs::Link>(Arena*);
86 PROTOBUF_NAMESPACE_CLOSE
87 namespace ignition {
88 namespace msgs {
89 
90 // ===================================================================
91 
92 class IGNITION_MSGS_VISIBLE Link final :
93  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Link) */ {
94  public:
95  inline Link() : Link(nullptr) {}
96  ~Link() override;
97  explicit constexpr Link(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
98 
99  Link(const Link& from);
100  Link(Link&& from) noexcept
101  : Link() {
102  *this = ::std::move(from);
103  }
104 
105  inline Link& operator=(const Link& from) {
106  CopyFrom(from);
107  return *this;
108  }
109  inline Link& operator=(Link&& from) noexcept {
110  if (this == &from) return *this;
111  if (GetOwningArena() == from.GetOwningArena()
112  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
113  && GetOwningArena() != nullptr
114  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
115  ) {
116  InternalSwap(&from);
117  } else {
118  CopyFrom(from);
119  }
120  return *this;
121  }
122 
123  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
124  return GetDescriptor();
125  }
126  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
127  return default_instance().GetMetadata().descriptor;
128  }
129  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
130  return default_instance().GetMetadata().reflection;
131  }
132  static const Link& default_instance() {
133  return *internal_default_instance();
134  }
135  static inline const Link* internal_default_instance() {
136  return reinterpret_cast<const Link*>(
138  }
139  static constexpr int kIndexInFileMessages =
140  0;
141 
142  friend void swap(Link& a, Link& b) {
143  a.Swap(&b);
144  }
145  inline void Swap(Link* other) {
146  if (other == this) return;
147  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
148  if (GetOwningArena() != nullptr &&
149  GetOwningArena() == other->GetOwningArena()) {
150  #else // PROTOBUF_FORCE_COPY_IN_SWAP
151  if (GetOwningArena() == other->GetOwningArena()) {
152  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
153  InternalSwap(other);
154  } else {
155  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
156  }
157  }
158  void UnsafeArenaSwap(Link* other) {
159  if (other == this) return;
160  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
161  InternalSwap(other);
162  }
163 
164  // implements Message ----------------------------------------------
165 
166  Link* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
167  return CreateMaybeMessage<Link>(arena);
168  }
169  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
170  void CopyFrom(const Link& from);
171  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
172  void MergeFrom(const Link& from);
173  private:
174  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
175  public:
176  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
177  bool IsInitialized() const final;
178 
179  size_t ByteSizeLong() const final;
180  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
181  uint8_t* _InternalSerialize(
182  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
183  int GetCachedSize() const final { return _cached_size_.Get(); }
184 
185  private:
186  void SharedCtor();
187  void SharedDtor();
188  void SetCachedSize(int size) const final;
189  void InternalSwap(Link* other);
190 
191  private:
192  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
193  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
194  return "ignition.msgs.Link";
195  }
196  protected:
197  explicit Link(::PROTOBUF_NAMESPACE_ID::Arena* arena,
198  bool is_message_owned = false);
199  private:
200  static void ArenaDtor(void* object);
201  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
202  public:
203 
204  static const ClassData _class_data_;
205  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
206 
207  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
208 
209  // nested types ----------------------------------------------------
210 
211  // accessors -------------------------------------------------------
212 
213  enum : int {
214  kVisualFieldNumber = 11,
215  kCollisionFieldNumber = 12,
216  kSensorFieldNumber = 13,
217  kProjectorFieldNumber = 14,
218  kBatteryFieldNumber = 16,
219  kLightFieldNumber = 17,
220  kNameFieldNumber = 3,
221  kHeaderFieldNumber = 1,
222  kDensityFieldNumber = 8,
223  kInertialFieldNumber = 9,
224  kPoseFieldNumber = 10,
225  kIdFieldNumber = 2,
226  kSelfCollideFieldNumber = 4,
227  kGravityFieldNumber = 5,
228  kKinematicFieldNumber = 6,
229  kEnabledFieldNumber = 7,
230  kCanonicalFieldNumber = 15,
231  };
232  // repeated .ignition.msgs.Visual visual = 11;
233  int visual_size() const;
234  private:
235  int _internal_visual_size() const;
236  public:
237  void clear_visual();
238  ::ignition::msgs::Visual* mutable_visual(int index);
239  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual >*
240  mutable_visual();
241  private:
242  const ::ignition::msgs::Visual& _internal_visual(int index) const;
243  ::ignition::msgs::Visual* _internal_add_visual();
244  public:
245  const ::ignition::msgs::Visual& visual(int index) const;
246  ::ignition::msgs::Visual* add_visual();
247  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual >&
248  visual() const;
249 
250  // repeated .ignition.msgs.Collision collision = 12;
251  int collision_size() const;
252  private:
253  int _internal_collision_size() const;
254  public:
256  ::ignition::msgs::Collision* mutable_collision(int index);
257  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Collision >*
258  mutable_collision();
259  private:
260  const ::ignition::msgs::Collision& _internal_collision(int index) const;
261  ::ignition::msgs::Collision* _internal_add_collision();
262  public:
263  const ::ignition::msgs::Collision& collision(int index) const;
264  ::ignition::msgs::Collision* add_collision();
265  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Collision >&
266  collision() const;
267 
268  // repeated .ignition.msgs.Sensor sensor = 13;
269  int sensor_size() const;
270  private:
271  int _internal_sensor_size() const;
272  public:
273  void clear_sensor();
274  ::ignition::msgs::Sensor* mutable_sensor(int index);
275  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Sensor >*
276  mutable_sensor();
277  private:
278  const ::ignition::msgs::Sensor& _internal_sensor(int index) const;
279  ::ignition::msgs::Sensor* _internal_add_sensor();
280  public:
281  const ::ignition::msgs::Sensor& sensor(int index) const;
282  ::ignition::msgs::Sensor* add_sensor();
283  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Sensor >&
284  sensor() const;
285 
286  // repeated .ignition.msgs.Projector projector = 14;
287  int projector_size() const;
288  private:
289  int _internal_projector_size() const;
290  public:
292  ::ignition::msgs::Projector* mutable_projector(int index);
293  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Projector >*
294  mutable_projector();
295  private:
296  const ::ignition::msgs::Projector& _internal_projector(int index) const;
297  ::ignition::msgs::Projector* _internal_add_projector();
298  public:
299  const ::ignition::msgs::Projector& projector(int index) const;
300  ::ignition::msgs::Projector* add_projector();
301  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Projector >&
302  projector() const;
303 
304  // repeated .ignition.msgs.Battery battery = 16;
305  int battery_size() const;
306  private:
307  int _internal_battery_size() const;
308  public:
310  ::ignition::msgs::Battery* mutable_battery(int index);
311  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Battery >*
312  mutable_battery();
313  private:
314  const ::ignition::msgs::Battery& _internal_battery(int index) const;
315  ::ignition::msgs::Battery* _internal_add_battery();
316  public:
317  const ::ignition::msgs::Battery& battery(int index) const;
318  ::ignition::msgs::Battery* add_battery();
319  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Battery >&
320  battery() const;
321 
322  // repeated .ignition.msgs.Light light = 17;
323  int light_size() const;
324  private:
325  int _internal_light_size() const;
326  public:
327  void clear_light();
328  ::ignition::msgs::Light* mutable_light(int index);
329  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >*
330  mutable_light();
331  private:
332  const ::ignition::msgs::Light& _internal_light(int index) const;
333  ::ignition::msgs::Light* _internal_add_light();
334  public:
335  const ::ignition::msgs::Light& light(int index) const;
336  ::ignition::msgs::Light* add_light();
337  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >&
338  light() const;
339 
340  // string name = 3;
341  void clear_name();
342  const std::string& name() const;
343  template <typename ArgT0 = const std::string&, typename... ArgT>
344  void set_name(ArgT0&& arg0, ArgT... args);
345  std::string* mutable_name();
346  PROTOBUF_NODISCARD std::string* release_name();
347  void set_allocated_name(std::string* name);
348  private:
349  const std::string& _internal_name() const;
350  inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
351  std::string* _internal_mutable_name();
352  public:
353 
354  // .ignition.msgs.Header header = 1;
355  bool has_header() const;
356  private:
357  bool _internal_has_header() const;
358  public:
359  void clear_header();
360  const ::ignition::msgs::Header& header() const;
361  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
362  ::ignition::msgs::Header* mutable_header();
363  void set_allocated_header(::ignition::msgs::Header* header);
364  private:
365  const ::ignition::msgs::Header& _internal_header() const;
366  ::ignition::msgs::Header* _internal_mutable_header();
367  public:
368  void unsafe_arena_set_allocated_header(
369  ::ignition::msgs::Header* header);
370  ::ignition::msgs::Header* unsafe_arena_release_header();
371 
372  // .ignition.msgs.Density density = 8;
373  bool has_density() const;
374  private:
375  bool _internal_has_density() const;
376  public:
378  const ::ignition::msgs::Density& density() const;
379  PROTOBUF_NODISCARD ::ignition::msgs::Density* release_density();
380  ::ignition::msgs::Density* mutable_density();
381  void set_allocated_density(::ignition::msgs::Density* density);
382  private:
383  const ::ignition::msgs::Density& _internal_density() const;
384  ::ignition::msgs::Density* _internal_mutable_density();
385  public:
386  void unsafe_arena_set_allocated_density(
387  ::ignition::msgs::Density* density);
388  ::ignition::msgs::Density* unsafe_arena_release_density();
389 
390  // .ignition.msgs.Inertial inertial = 9;
391  bool has_inertial() const;
392  private:
393  bool _internal_has_inertial() const;
394  public:
396  const ::ignition::msgs::Inertial& inertial() const;
397  PROTOBUF_NODISCARD ::ignition::msgs::Inertial* release_inertial();
398  ::ignition::msgs::Inertial* mutable_inertial();
399  void set_allocated_inertial(::ignition::msgs::Inertial* inertial);
400  private:
401  const ::ignition::msgs::Inertial& _internal_inertial() const;
402  ::ignition::msgs::Inertial* _internal_mutable_inertial();
403  public:
404  void unsafe_arena_set_allocated_inertial(
405  ::ignition::msgs::Inertial* inertial);
406  ::ignition::msgs::Inertial* unsafe_arena_release_inertial();
407 
408  // .ignition.msgs.Pose pose = 10;
409  bool has_pose() const;
410  private:
411  bool _internal_has_pose() const;
412  public:
413  void clear_pose();
414  const ::ignition::msgs::Pose& pose() const;
415  PROTOBUF_NODISCARD ::ignition::msgs::Pose* release_pose();
416  ::ignition::msgs::Pose* mutable_pose();
417  void set_allocated_pose(::ignition::msgs::Pose* pose);
418  private:
419  const ::ignition::msgs::Pose& _internal_pose() const;
420  ::ignition::msgs::Pose* _internal_mutable_pose();
421  public:
422  void unsafe_arena_set_allocated_pose(
423  ::ignition::msgs::Pose* pose);
424  ::ignition::msgs::Pose* unsafe_arena_release_pose();
425 
426  // uint32 id = 2;
427  void clear_id();
428  uint32_t id() const;
429  void set_id(uint32_t value);
430  private:
431  uint32_t _internal_id() const;
432  void _internal_set_id(uint32_t value);
433  public:
434 
435  // bool self_collide = 4;
436  void clear_self_collide();
437  bool self_collide() const;
438  void set_self_collide(bool value);
439  private:
440  bool _internal_self_collide() const;
441  void _internal_set_self_collide(bool value);
442  public:
443 
444  // bool gravity = 5;
445  void clear_gravity();
446  bool gravity() const;
447  void set_gravity(bool value);
448  private:
449  bool _internal_gravity() const;
450  void _internal_set_gravity(bool value);
451  public:
452 
453  // bool kinematic = 6;
454  void clear_kinematic();
455  bool kinematic() const;
456  void set_kinematic(bool value);
457  private:
458  bool _internal_kinematic() const;
459  void _internal_set_kinematic(bool value);
460  public:
461 
462  // bool enabled = 7;
463  void clear_enabled();
464  bool enabled() const;
465  void set_enabled(bool value);
466  private:
467  bool _internal_enabled() const;
468  void _internal_set_enabled(bool value);
469  public:
470 
471  // bool canonical = 15;
472  void clear_canonical();
473  bool canonical() const;
474  void set_canonical(bool value);
475  private:
476  bool _internal_canonical() const;
477  void _internal_set_canonical(bool value);
478  public:
479 
480  // @@protoc_insertion_point(class_scope:ignition.msgs.Link)
481  private:
482  class _Internal;
483 
484  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
485  typedef void InternalArenaConstructable_;
486  typedef void DestructorSkippable_;
487  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual > visual_;
488  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Collision > collision_;
489  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Sensor > sensor_;
490  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Projector > projector_;
491  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Battery > battery_;
492  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light > light_;
493  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
494  ::ignition::msgs::Header* header_;
495  ::ignition::msgs::Density* density_;
496  ::ignition::msgs::Inertial* inertial_;
497  ::ignition::msgs::Pose* pose_;
498  uint32_t id_;
499  bool self_collide_;
500  bool gravity_;
501  bool kinematic_;
502  bool enabled_;
503  bool canonical_;
504  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
505  friend struct ::TableStruct_ignition_2fmsgs_2flink_2eproto;
506 };
507 // ===================================================================
508 
509 
510 // ===================================================================
511 
512 #ifdef __GNUC__
513  #pragma GCC diagnostic push
514  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
515 #endif // __GNUC__
516 // Link
517 
518 // .ignition.msgs.Header header = 1;
519 inline bool Link::_internal_has_header() const {
520  return this != internal_default_instance() && header_ != nullptr;
521 }
522 inline bool Link::has_header() const {
523  return _internal_has_header();
524 }
525 inline const ::ignition::msgs::Header& Link::_internal_header() const {
526  const ::ignition::msgs::Header* p = header_;
527  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
529 }
530 inline const ::ignition::msgs::Header& Link::header() const {
531  // @@protoc_insertion_point(field_get:ignition.msgs.Link.header)
532  return _internal_header();
533 }
535  ::ignition::msgs::Header* header) {
536  if (GetArenaForAllocation() == nullptr) {
537  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
538  }
539  header_ = header;
540  if (header) {
541 
542  } else {
543 
544  }
545  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Link.header)
546 }
547 inline ::ignition::msgs::Header* Link::release_header() {
548 
549  ::ignition::msgs::Header* temp = header_;
550  header_ = nullptr;
551 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
552  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
553  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
554  if (GetArenaForAllocation() == nullptr) { delete old; }
555 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
556  if (GetArenaForAllocation() != nullptr) {
557  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
558  }
559 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
560  return temp;
561 }
562 inline ::ignition::msgs::Header* Link::unsafe_arena_release_header() {
563  // @@protoc_insertion_point(field_release:ignition.msgs.Link.header)
564 
565  ::ignition::msgs::Header* temp = header_;
566  header_ = nullptr;
567  return temp;
568 }
569 inline ::ignition::msgs::Header* Link::_internal_mutable_header() {
570 
571  if (header_ == nullptr) {
572  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
573  header_ = p;
574  }
575  return header_;
576 }
577 inline ::ignition::msgs::Header* Link::mutable_header() {
578  ::ignition::msgs::Header* _msg = _internal_mutable_header();
579  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.header)
580  return _msg;
581 }
583  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
584  if (message_arena == nullptr) {
585  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
586  }
587  if (header) {
588  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
589  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
590  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
591  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
592  if (message_arena != submessage_arena) {
593  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
594  message_arena, header, submessage_arena);
595  }
596 
597  } else {
598 
599  }
600  header_ = header;
601  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Link.header)
602 }
603 
604 // uint32 id = 2;
605 inline void Link::clear_id() {
606  id_ = 0u;
607 }
608 inline uint32_t Link::_internal_id() const {
609  return id_;
610 }
611 inline uint32_t Link::id() const {
612  // @@protoc_insertion_point(field_get:ignition.msgs.Link.id)
613  return _internal_id();
614 }
615 inline void Link::_internal_set_id(uint32_t value) {
616 
617  id_ = value;
618 }
619 inline void Link::set_id(uint32_t value) {
620  _internal_set_id(value);
621  // @@protoc_insertion_point(field_set:ignition.msgs.Link.id)
622 }
623 
624 // string name = 3;
625 inline void Link::clear_name() {
626  name_.ClearToEmpty();
627 }
628 inline const std::string& Link::name() const {
629  // @@protoc_insertion_point(field_get:ignition.msgs.Link.name)
630  return _internal_name();
631 }
632 template <typename ArgT0, typename... ArgT>
633 inline PROTOBUF_ALWAYS_INLINE
634 void Link::set_name(ArgT0&& arg0, ArgT... args) {
635 
636  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
637  // @@protoc_insertion_point(field_set:ignition.msgs.Link.name)
638 }
640  std::string* _s = _internal_mutable_name();
641  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.name)
642  return _s;
643 }
644 inline const std::string& Link::_internal_name() const {
645  return name_.Get();
646 }
647 inline void Link::_internal_set_name(const std::string& value) {
648 
649  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
650 }
651 inline std::string* Link::_internal_mutable_name() {
652 
653  return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
654 }
656  // @@protoc_insertion_point(field_release:ignition.msgs.Link.name)
657  return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
658 }
660  if (name != nullptr) {
661 
662  } else {
663 
664  }
665  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
666  GetArenaForAllocation());
667 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
668  if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
669  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
670  }
671 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
672  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Link.name)
673 }
674 
675 // bool self_collide = 4;
677  self_collide_ = false;
678 }
679 inline bool Link::_internal_self_collide() const {
680  return self_collide_;
681 }
682 inline bool Link::self_collide() const {
683  // @@protoc_insertion_point(field_get:ignition.msgs.Link.self_collide)
684  return _internal_self_collide();
685 }
686 inline void Link::_internal_set_self_collide(bool value) {
687 
688  self_collide_ = value;
689 }
690 inline void Link::set_self_collide(bool value) {
691  _internal_set_self_collide(value);
692  // @@protoc_insertion_point(field_set:ignition.msgs.Link.self_collide)
693 }
694 
695 // bool gravity = 5;
696 inline void Link::clear_gravity() {
697  gravity_ = false;
698 }
699 inline bool Link::_internal_gravity() const {
700  return gravity_;
701 }
702 inline bool Link::gravity() const {
703  // @@protoc_insertion_point(field_get:ignition.msgs.Link.gravity)
704  return _internal_gravity();
705 }
706 inline void Link::_internal_set_gravity(bool value) {
707 
708  gravity_ = value;
709 }
710 inline void Link::set_gravity(bool value) {
711  _internal_set_gravity(value);
712  // @@protoc_insertion_point(field_set:ignition.msgs.Link.gravity)
713 }
714 
715 // bool kinematic = 6;
716 inline void Link::clear_kinematic() {
717  kinematic_ = false;
718 }
719 inline bool Link::_internal_kinematic() const {
720  return kinematic_;
721 }
722 inline bool Link::kinematic() const {
723  // @@protoc_insertion_point(field_get:ignition.msgs.Link.kinematic)
724  return _internal_kinematic();
725 }
726 inline void Link::_internal_set_kinematic(bool value) {
727 
728  kinematic_ = value;
729 }
730 inline void Link::set_kinematic(bool value) {
731  _internal_set_kinematic(value);
732  // @@protoc_insertion_point(field_set:ignition.msgs.Link.kinematic)
733 }
734 
735 // bool enabled = 7;
736 inline void Link::clear_enabled() {
737  enabled_ = false;
738 }
739 inline bool Link::_internal_enabled() const {
740  return enabled_;
741 }
742 inline bool Link::enabled() const {
743  // @@protoc_insertion_point(field_get:ignition.msgs.Link.enabled)
744  return _internal_enabled();
745 }
746 inline void Link::_internal_set_enabled(bool value) {
747 
748  enabled_ = value;
749 }
750 inline void Link::set_enabled(bool value) {
751  _internal_set_enabled(value);
752  // @@protoc_insertion_point(field_set:ignition.msgs.Link.enabled)
753 }
754 
755 // .ignition.msgs.Density density = 8;
756 inline bool Link::_internal_has_density() const {
757  return this != internal_default_instance() && density_ != nullptr;
758 }
759 inline bool Link::has_density() const {
760  return _internal_has_density();
761 }
762 inline const ::ignition::msgs::Density& Link::_internal_density() const {
763  const ::ignition::msgs::Density* p = density_;
764  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Density&>(
766 }
767 inline const ::ignition::msgs::Density& Link::density() const {
768  // @@protoc_insertion_point(field_get:ignition.msgs.Link.density)
769  return _internal_density();
770 }
772  ::ignition::msgs::Density* density) {
773  if (GetArenaForAllocation() == nullptr) {
774  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(density_);
775  }
776  density_ = density;
777  if (density) {
778 
779  } else {
780 
781  }
782  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Link.density)
783 }
784 inline ::ignition::msgs::Density* Link::release_density() {
785 
786  ::ignition::msgs::Density* temp = density_;
787  density_ = nullptr;
788 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
789  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
790  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
791  if (GetArenaForAllocation() == nullptr) { delete old; }
792 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
793  if (GetArenaForAllocation() != nullptr) {
794  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
795  }
796 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
797  return temp;
798 }
799 inline ::ignition::msgs::Density* Link::unsafe_arena_release_density() {
800  // @@protoc_insertion_point(field_release:ignition.msgs.Link.density)
801 
802  ::ignition::msgs::Density* temp = density_;
803  density_ = nullptr;
804  return temp;
805 }
806 inline ::ignition::msgs::Density* Link::_internal_mutable_density() {
807 
808  if (density_ == nullptr) {
809  auto* p = CreateMaybeMessage<::ignition::msgs::Density>(GetArenaForAllocation());
810  density_ = p;
811  }
812  return density_;
813 }
814 inline ::ignition::msgs::Density* Link::mutable_density() {
815  ::ignition::msgs::Density* _msg = _internal_mutable_density();
816  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.density)
817  return _msg;
818 }
820  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
821  if (message_arena == nullptr) {
822  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(density_);
823  }
824  if (density) {
825  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
826  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
827  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
828  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(density));
829  if (message_arena != submessage_arena) {
830  density = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
831  message_arena, density, submessage_arena);
832  }
833 
834  } else {
835 
836  }
837  density_ = density;
838  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Link.density)
839 }
840 
841 // .ignition.msgs.Inertial inertial = 9;
842 inline bool Link::_internal_has_inertial() const {
843  return this != internal_default_instance() && inertial_ != nullptr;
844 }
845 inline bool Link::has_inertial() const {
846  return _internal_has_inertial();
847 }
848 inline const ::ignition::msgs::Inertial& Link::_internal_inertial() const {
849  const ::ignition::msgs::Inertial* p = inertial_;
850  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Inertial&>(
852 }
853 inline const ::ignition::msgs::Inertial& Link::inertial() const {
854  // @@protoc_insertion_point(field_get:ignition.msgs.Link.inertial)
855  return _internal_inertial();
856 }
858  ::ignition::msgs::Inertial* inertial) {
859  if (GetArenaForAllocation() == nullptr) {
860  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(inertial_);
861  }
862  inertial_ = inertial;
863  if (inertial) {
864 
865  } else {
866 
867  }
868  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Link.inertial)
869 }
870 inline ::ignition::msgs::Inertial* Link::release_inertial() {
871 
872  ::ignition::msgs::Inertial* temp = inertial_;
873  inertial_ = nullptr;
874 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
875  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
876  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
877  if (GetArenaForAllocation() == nullptr) { delete old; }
878 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
879  if (GetArenaForAllocation() != nullptr) {
880  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
881  }
882 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
883  return temp;
884 }
885 inline ::ignition::msgs::Inertial* Link::unsafe_arena_release_inertial() {
886  // @@protoc_insertion_point(field_release:ignition.msgs.Link.inertial)
887 
888  ::ignition::msgs::Inertial* temp = inertial_;
889  inertial_ = nullptr;
890  return temp;
891 }
892 inline ::ignition::msgs::Inertial* Link::_internal_mutable_inertial() {
893 
894  if (inertial_ == nullptr) {
895  auto* p = CreateMaybeMessage<::ignition::msgs::Inertial>(GetArenaForAllocation());
896  inertial_ = p;
897  }
898  return inertial_;
899 }
900 inline ::ignition::msgs::Inertial* Link::mutable_inertial() {
901  ::ignition::msgs::Inertial* _msg = _internal_mutable_inertial();
902  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.inertial)
903  return _msg;
904 }
906  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
907  if (message_arena == nullptr) {
908  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(inertial_);
909  }
910  if (inertial) {
911  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
912  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
913  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
914  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(inertial));
915  if (message_arena != submessage_arena) {
916  inertial = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
917  message_arena, inertial, submessage_arena);
918  }
919 
920  } else {
921 
922  }
923  inertial_ = inertial;
924  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Link.inertial)
925 }
926 
927 // .ignition.msgs.Pose pose = 10;
928 inline bool Link::_internal_has_pose() const {
929  return this != internal_default_instance() && pose_ != nullptr;
930 }
931 inline bool Link::has_pose() const {
932  return _internal_has_pose();
933 }
934 inline const ::ignition::msgs::Pose& Link::_internal_pose() const {
935  const ::ignition::msgs::Pose* p = pose_;
936  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Pose&>(
938 }
939 inline const ::ignition::msgs::Pose& Link::pose() const {
940  // @@protoc_insertion_point(field_get:ignition.msgs.Link.pose)
941  return _internal_pose();
942 }
944  ::ignition::msgs::Pose* pose) {
945  if (GetArenaForAllocation() == nullptr) {
946  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_);
947  }
948  pose_ = pose;
949  if (pose) {
950 
951  } else {
952 
953  }
954  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Link.pose)
955 }
956 inline ::ignition::msgs::Pose* Link::release_pose() {
957 
958  ::ignition::msgs::Pose* temp = pose_;
959  pose_ = nullptr;
960 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
961  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
962  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
963  if (GetArenaForAllocation() == nullptr) { delete old; }
964 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
965  if (GetArenaForAllocation() != nullptr) {
966  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
967  }
968 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
969  return temp;
970 }
971 inline ::ignition::msgs::Pose* Link::unsafe_arena_release_pose() {
972  // @@protoc_insertion_point(field_release:ignition.msgs.Link.pose)
973 
974  ::ignition::msgs::Pose* temp = pose_;
975  pose_ = nullptr;
976  return temp;
977 }
978 inline ::ignition::msgs::Pose* Link::_internal_mutable_pose() {
979 
980  if (pose_ == nullptr) {
981  auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaForAllocation());
982  pose_ = p;
983  }
984  return pose_;
985 }
986 inline ::ignition::msgs::Pose* Link::mutable_pose() {
987  ::ignition::msgs::Pose* _msg = _internal_mutable_pose();
988  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.pose)
989  return _msg;
990 }
992  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
993  if (message_arena == nullptr) {
994  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_);
995  }
996  if (pose) {
997  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
998  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
999  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
1000  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose));
1001  if (message_arena != submessage_arena) {
1002  pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1003  message_arena, pose, submessage_arena);
1004  }
1005 
1006  } else {
1007 
1008  }
1009  pose_ = pose;
1010  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Link.pose)
1011 }
1012 
1013 // repeated .ignition.msgs.Visual visual = 11;
1014 inline int Link::_internal_visual_size() const {
1015  return visual_.size();
1016 }
1017 inline int Link::visual_size() const {
1018  return _internal_visual_size();
1019 }
1020 inline ::ignition::msgs::Visual* Link::mutable_visual(int index) {
1021  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.visual)
1022  return visual_.Mutable(index);
1023 }
1024 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual >*
1026  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Link.visual)
1027  return &visual_;
1028 }
1029 inline const ::ignition::msgs::Visual& Link::_internal_visual(int index) const {
1030  return visual_.Get(index);
1031 }
1032 inline const ::ignition::msgs::Visual& Link::visual(int index) const {
1033  // @@protoc_insertion_point(field_get:ignition.msgs.Link.visual)
1034  return _internal_visual(index);
1035 }
1036 inline ::ignition::msgs::Visual* Link::_internal_add_visual() {
1037  return visual_.Add();
1038 }
1039 inline ::ignition::msgs::Visual* Link::add_visual() {
1040  ::ignition::msgs::Visual* _add = _internal_add_visual();
1041  // @@protoc_insertion_point(field_add:ignition.msgs.Link.visual)
1042  return _add;
1043 }
1044 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Visual >&
1045 Link::visual() const {
1046  // @@protoc_insertion_point(field_list:ignition.msgs.Link.visual)
1047  return visual_;
1048 }
1049 
1050 // repeated .ignition.msgs.Collision collision = 12;
1051 inline int Link::_internal_collision_size() const {
1052  return collision_.size();
1053 }
1054 inline int Link::collision_size() const {
1055  return _internal_collision_size();
1056 }
1057 inline ::ignition::msgs::Collision* Link::mutable_collision(int index) {
1058  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.collision)
1059  return collision_.Mutable(index);
1060 }
1061 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Collision >*
1063  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Link.collision)
1064  return &collision_;
1065 }
1066 inline const ::ignition::msgs::Collision& Link::_internal_collision(int index) const {
1067  return collision_.Get(index);
1068 }
1069 inline const ::ignition::msgs::Collision& Link::collision(int index) const {
1070  // @@protoc_insertion_point(field_get:ignition.msgs.Link.collision)
1071  return _internal_collision(index);
1072 }
1073 inline ::ignition::msgs::Collision* Link::_internal_add_collision() {
1074  return collision_.Add();
1075 }
1076 inline ::ignition::msgs::Collision* Link::add_collision() {
1077  ::ignition::msgs::Collision* _add = _internal_add_collision();
1078  // @@protoc_insertion_point(field_add:ignition.msgs.Link.collision)
1079  return _add;
1080 }
1081 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Collision >&
1083  // @@protoc_insertion_point(field_list:ignition.msgs.Link.collision)
1084  return collision_;
1085 }
1086 
1087 // repeated .ignition.msgs.Sensor sensor = 13;
1088 inline int Link::_internal_sensor_size() const {
1089  return sensor_.size();
1090 }
1091 inline int Link::sensor_size() const {
1092  return _internal_sensor_size();
1093 }
1094 inline ::ignition::msgs::Sensor* Link::mutable_sensor(int index) {
1095  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.sensor)
1096  return sensor_.Mutable(index);
1097 }
1098 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Sensor >*
1100  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Link.sensor)
1101  return &sensor_;
1102 }
1103 inline const ::ignition::msgs::Sensor& Link::_internal_sensor(int index) const {
1104  return sensor_.Get(index);
1105 }
1106 inline const ::ignition::msgs::Sensor& Link::sensor(int index) const {
1107  // @@protoc_insertion_point(field_get:ignition.msgs.Link.sensor)
1108  return _internal_sensor(index);
1109 }
1110 inline ::ignition::msgs::Sensor* Link::_internal_add_sensor() {
1111  return sensor_.Add();
1112 }
1113 inline ::ignition::msgs::Sensor* Link::add_sensor() {
1114  ::ignition::msgs::Sensor* _add = _internal_add_sensor();
1115  // @@protoc_insertion_point(field_add:ignition.msgs.Link.sensor)
1116  return _add;
1117 }
1118 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Sensor >&
1119 Link::sensor() const {
1120  // @@protoc_insertion_point(field_list:ignition.msgs.Link.sensor)
1121  return sensor_;
1122 }
1123 
1124 // repeated .ignition.msgs.Projector projector = 14;
1125 inline int Link::_internal_projector_size() const {
1126  return projector_.size();
1127 }
1128 inline int Link::projector_size() const {
1129  return _internal_projector_size();
1130 }
1131 inline ::ignition::msgs::Projector* Link::mutable_projector(int index) {
1132  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.projector)
1133  return projector_.Mutable(index);
1134 }
1135 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Projector >*
1137  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Link.projector)
1138  return &projector_;
1139 }
1140 inline const ::ignition::msgs::Projector& Link::_internal_projector(int index) const {
1141  return projector_.Get(index);
1142 }
1143 inline const ::ignition::msgs::Projector& Link::projector(int index) const {
1144  // @@protoc_insertion_point(field_get:ignition.msgs.Link.projector)
1145  return _internal_projector(index);
1146 }
1147 inline ::ignition::msgs::Projector* Link::_internal_add_projector() {
1148  return projector_.Add();
1149 }
1150 inline ::ignition::msgs::Projector* Link::add_projector() {
1151  ::ignition::msgs::Projector* _add = _internal_add_projector();
1152  // @@protoc_insertion_point(field_add:ignition.msgs.Link.projector)
1153  return _add;
1154 }
1155 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Projector >&
1157  // @@protoc_insertion_point(field_list:ignition.msgs.Link.projector)
1158  return projector_;
1159 }
1160 
1161 // bool canonical = 15;
1162 inline void Link::clear_canonical() {
1163  canonical_ = false;
1164 }
1165 inline bool Link::_internal_canonical() const {
1166  return canonical_;
1167 }
1168 inline bool Link::canonical() const {
1169  // @@protoc_insertion_point(field_get:ignition.msgs.Link.canonical)
1170  return _internal_canonical();
1171 }
1172 inline void Link::_internal_set_canonical(bool value) {
1173 
1174  canonical_ = value;
1175 }
1176 inline void Link::set_canonical(bool value) {
1177  _internal_set_canonical(value);
1178  // @@protoc_insertion_point(field_set:ignition.msgs.Link.canonical)
1179 }
1180 
1181 // repeated .ignition.msgs.Battery battery = 16;
1182 inline int Link::_internal_battery_size() const {
1183  return battery_.size();
1184 }
1185 inline int Link::battery_size() const {
1186  return _internal_battery_size();
1187 }
1188 inline ::ignition::msgs::Battery* Link::mutable_battery(int index) {
1189  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.battery)
1190  return battery_.Mutable(index);
1191 }
1192 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Battery >*
1194  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Link.battery)
1195  return &battery_;
1196 }
1197 inline const ::ignition::msgs::Battery& Link::_internal_battery(int index) const {
1198  return battery_.Get(index);
1199 }
1200 inline const ::ignition::msgs::Battery& Link::battery(int index) const {
1201  // @@protoc_insertion_point(field_get:ignition.msgs.Link.battery)
1202  return _internal_battery(index);
1203 }
1204 inline ::ignition::msgs::Battery* Link::_internal_add_battery() {
1205  return battery_.Add();
1206 }
1207 inline ::ignition::msgs::Battery* Link::add_battery() {
1208  ::ignition::msgs::Battery* _add = _internal_add_battery();
1209  // @@protoc_insertion_point(field_add:ignition.msgs.Link.battery)
1210  return _add;
1211 }
1212 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Battery >&
1213 Link::battery() const {
1214  // @@protoc_insertion_point(field_list:ignition.msgs.Link.battery)
1215  return battery_;
1216 }
1217 
1218 // repeated .ignition.msgs.Light light = 17;
1219 inline int Link::_internal_light_size() const {
1220  return light_.size();
1221 }
1222 inline int Link::light_size() const {
1223  return _internal_light_size();
1224 }
1225 inline ::ignition::msgs::Light* Link::mutable_light(int index) {
1226  // @@protoc_insertion_point(field_mutable:ignition.msgs.Link.light)
1227  return light_.Mutable(index);
1228 }
1229 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >*
1231  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Link.light)
1232  return &light_;
1233 }
1234 inline const ::ignition::msgs::Light& Link::_internal_light(int index) const {
1235  return light_.Get(index);
1236 }
1237 inline const ::ignition::msgs::Light& Link::light(int index) const {
1238  // @@protoc_insertion_point(field_get:ignition.msgs.Link.light)
1239  return _internal_light(index);
1240 }
1241 inline ::ignition::msgs::Light* Link::_internal_add_light() {
1242  return light_.Add();
1243 }
1244 inline ::ignition::msgs::Light* Link::add_light() {
1245  ::ignition::msgs::Light* _add = _internal_add_light();
1246  // @@protoc_insertion_point(field_add:ignition.msgs.Link.light)
1247  return _add;
1248 }
1249 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >&
1250 Link::light() const {
1251  // @@protoc_insertion_point(field_list:ignition.msgs.Link.light)
1252  return light_;
1253 }
1254 
1255 #ifdef __GNUC__
1256  #pragma GCC diagnostic pop
1257 #endif // __GNUC__
1258 
1263 // @@protoc_insertion_point(namespace_scope)
1264 
1265 } // namespace msgs
1266 } // namespace ignition
1267 
1268 #ifdef _MSC_VER
1269 #pragma warning(pop)
1270 #endif
1271 // @@protoc_insertion_point(global_scope)
1272 
1273 #include <google/protobuf/port_undef.inc>
1274 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2flink_2eproto
Definition: battery.pb.h:84
Definition: collision.pb.h:88
Definition: density.pb.h:84
Definition: header.pb.h:265
Definition: inertial.pb.h:85
Definition: light.pb.h:114
Definition: pose.pb.h:86
Definition: projector.pb.h:85
Definition: sensor.pb.h:94
Definition: visual.pb.h:271
std::shared_ptr< Link > LinkSharedPtr
Definition: link.pb.h:1261
IGNITION_MSGS_VISIBLE InertialDefaultTypeInternal _Inertial_default_instance_
std::unique_ptr< const Link > ConstLinkUniquePtr
Definition: link.pb.h:1260
std::shared_ptr< const Link > ConstLinkSharedPtr
Definition: link.pb.h:1262
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
std::unique_ptr< Link > LinkUniquePtr
Definition: link.pb.h:1259
IGNITION_MSGS_VISIBLE DensityDefaultTypeInternal _Density_default_instance_
IGNITION_MSGS_VISIBLE LinkDefaultTypeInternal _Link_default_instance_
Definition: actor.pb.h:52