Ignition Msgs

API Reference

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