Ignition Msgs

API Reference

8.0.0~pre1
marker.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/marker.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fmarker_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fmarker_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/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.h>
31 #include "ignition/msgs/time.pb.h"
32 #include "ignition/msgs/pose.pb.h"
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 
49 namespace ignition {
50 namespace msgs {
51 
52 // Internal implementation detail -- do not call these.
53 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fmarker_2eproto();
56 
57 class Marker;
58 
78 };
79 IGNITION_MSGS_VISIBLE bool Marker_Type_IsValid(int value);
82 const int Marker_Type_Type_ARRAYSIZE = Marker_Type_Type_MAX + 1;
83 
84 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Marker_Type_descriptor();
85 inline const ::std::string& Marker_Type_Name(Marker_Type value) {
86  return ::google::protobuf::internal::NameOfEnum(
87  Marker_Type_descriptor(), value);
88 }
89 inline bool Marker_Type_Parse(
90  const ::std::string& name, Marker_Type* value) {
91  return ::google::protobuf::internal::ParseNamedEnum<Marker_Type>(
92  Marker_Type_descriptor(), name, value);
93 }
99 };
100 IGNITION_MSGS_VISIBLE bool Marker_Visibility_IsValid(int value);
103 const int Marker_Visibility_Visibility_ARRAYSIZE = Marker_Visibility_Visibility_MAX + 1;
104 
105 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Marker_Visibility_descriptor();
106 inline const ::std::string& Marker_Visibility_Name(Marker_Visibility value) {
107  return ::google::protobuf::internal::NameOfEnum(
109 }
111  const ::std::string& name, Marker_Visibility* value) {
112  return ::google::protobuf::internal::ParseNamedEnum<Marker_Visibility>(
113  Marker_Visibility_descriptor(), name, value);
114 }
121 };
122 IGNITION_MSGS_VISIBLE bool Marker_Action_IsValid(int value);
125 const int Marker_Action_Action_ARRAYSIZE = Marker_Action_Action_MAX + 1;
126 
127 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Marker_Action_descriptor();
128 inline const ::std::string& Marker_Action_Name(Marker_Action value) {
129  return ::google::protobuf::internal::NameOfEnum(
130  Marker_Action_descriptor(), value);
131 }
133  const ::std::string& name, Marker_Action* value) {
134  return ::google::protobuf::internal::ParseNamedEnum<Marker_Action>(
135  Marker_Action_descriptor(), name, value);
136 }
137 // ===================================================================
138 
139 class IGNITION_MSGS_VISIBLE Marker : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Marker) */ {
140  public:
141  Marker();
142  virtual ~Marker();
143 
144  Marker(const Marker& from);
145 
146  inline Marker& operator=(const Marker& from) {
147  CopyFrom(from);
148  return *this;
149  }
150 
151  static const ::google::protobuf::Descriptor* descriptor();
152  static const Marker& default_instance();
153 
154  void Swap(Marker* other);
155 
156  // implements Message ----------------------------------------------
157 
158  inline Marker* New() const { return New(NULL); }
159 
160  Marker* New(::google::protobuf::Arena* arena) const;
161  void CopyFrom(const ::google::protobuf::Message& from);
162  void MergeFrom(const ::google::protobuf::Message& from);
163  void CopyFrom(const Marker& from);
164  void MergeFrom(const Marker& from);
165  void Clear();
166  bool IsInitialized() const;
167 
168  int ByteSize() const;
169  bool MergePartialFromCodedStream(
170  ::google::protobuf::io::CodedInputStream* input);
171  void SerializeWithCachedSizes(
172  ::google::protobuf::io::CodedOutputStream* output) const;
173  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
174  bool deterministic, ::google::protobuf::uint8* output) const;
175  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
176  return InternalSerializeWithCachedSizesToArray(false, output);
177  }
178  int GetCachedSize() const { return _cached_size_; }
179  private:
180  void SharedCtor();
181  void SharedDtor();
182  void SetCachedSize(int size) const;
183  void InternalSwap(Marker* other);
184  private:
185  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
186  return _internal_metadata_.arena();
187  }
188  inline void* MaybeArenaPtr() const {
189  return _internal_metadata_.raw_arena_ptr();
190  }
191  public:
192 
193  ::google::protobuf::Metadata GetMetadata() const;
194 
195  // nested types ----------------------------------------------------
196 
197  typedef Marker_Type Type;
198  static const Type NONE =
200  static const Type BOX =
202  static const Type CYLINDER =
204  static const Type LINE_LIST =
206  static const Type LINE_STRIP =
208  static const Type POINTS =
210  static const Type SPHERE =
212  static const Type TEXT =
214  static const Type TRIANGLE_FAN =
216  static const Type TRIANGLE_LIST =
218  static const Type TRIANGLE_STRIP =
220  static const Type CONE =
222  static const Type ARROW =
224  static const Type AXIS =
226  static const Type CAPSULE =
228  static const Type ELLIPSOID =
230  static inline bool Type_IsValid(int value) {
231  return Marker_Type_IsValid(value);
232  }
233  static const Type Type_MIN =
235  static const Type Type_MAX =
237  static const int Type_ARRAYSIZE =
239  static inline const ::google::protobuf::EnumDescriptor*
241  return Marker_Type_descriptor();
242  }
243  static inline const ::std::string& Type_Name(Type value) {
244  return Marker_Type_Name(value);
245  }
246  static inline bool Type_Parse(const ::std::string& name,
247  Type* value) {
248  return Marker_Type_Parse(name, value);
249  }
250 
252  static const Visibility GUI =
254  static const Visibility ALL =
256  static inline bool Visibility_IsValid(int value) {
257  return Marker_Visibility_IsValid(value);
258  }
259  static const Visibility Visibility_MIN =
261  static const Visibility Visibility_MAX =
263  static const int Visibility_ARRAYSIZE =
265  static inline const ::google::protobuf::EnumDescriptor*
268  }
269  static inline const ::std::string& Visibility_Name(Visibility value) {
270  return Marker_Visibility_Name(value);
271  }
272  static inline bool Visibility_Parse(const ::std::string& name,
273  Visibility* value) {
274  return Marker_Visibility_Parse(name, value);
275  }
276 
278  static const Action ADD_MODIFY =
280  static const Action DELETE_MARKER =
282  static const Action DELETE_ALL =
284  static inline bool Action_IsValid(int value) {
285  return Marker_Action_IsValid(value);
286  }
287  static const Action Action_MIN =
289  static const Action Action_MAX =
291  static const int Action_ARRAYSIZE =
293  static inline const ::google::protobuf::EnumDescriptor*
295  return Marker_Action_descriptor();
296  }
297  static inline const ::std::string& Action_Name(Action value) {
298  return Marker_Action_Name(value);
299  }
300  static inline bool Action_Parse(const ::std::string& name,
301  Action* value) {
302  return Marker_Action_Parse(name, value);
303  }
304 
305  // accessors -------------------------------------------------------
306 
307  // optional .ignition.msgs.Header header = 1;
308  bool has_header() const;
309  void clear_header();
310  static const int kHeaderFieldNumber = 1;
311  const ::ignition::msgs::Header& header() const;
312  ::ignition::msgs::Header* mutable_header();
313  ::ignition::msgs::Header* release_header();
314  void set_allocated_header(::ignition::msgs::Header* header);
315 
316  // optional .ignition.msgs.Marker.Action action = 2;
317  void clear_action();
318  static const int kActionFieldNumber = 2;
319  ::ignition::msgs::Marker_Action action() const;
320  void set_action(::ignition::msgs::Marker_Action value);
321 
322  // optional string ns = 3;
323  void clear_ns();
324  static const int kNsFieldNumber = 3;
325  const ::std::string& ns() const;
326  void set_ns(const ::std::string& value);
327  void set_ns(const char* value);
328  void set_ns(const char* value, size_t size);
329  ::std::string* mutable_ns();
330  ::std::string* release_ns();
331  void set_allocated_ns(::std::string* ns);
332 
333  // optional uint64 id = 4;
334  void clear_id();
335  static const int kIdFieldNumber = 4;
336  ::google::protobuf::uint64 id() const;
337  void set_id(::google::protobuf::uint64 value);
338 
339  // optional int32 layer = 5;
340  void clear_layer();
341  static const int kLayerFieldNumber = 5;
342  ::google::protobuf::int32 layer() const;
343  void set_layer(::google::protobuf::int32 value);
344 
345  // optional .ignition.msgs.Marker.Type type = 6;
346  void clear_type();
347  static const int kTypeFieldNumber = 6;
348  ::ignition::msgs::Marker_Type type() const;
349  void set_type(::ignition::msgs::Marker_Type value);
350 
351  // optional .ignition.msgs.Time lifetime = 7;
352  bool has_lifetime() const;
353  void clear_lifetime();
354  static const int kLifetimeFieldNumber = 7;
355  const ::ignition::msgs::Time& lifetime() const;
356  ::ignition::msgs::Time* mutable_lifetime();
357  ::ignition::msgs::Time* release_lifetime();
358  void set_allocated_lifetime(::ignition::msgs::Time* lifetime);
359 
360  // optional .ignition.msgs.Pose pose = 8;
361  bool has_pose() const;
362  void clear_pose();
363  static const int kPoseFieldNumber = 8;
364  const ::ignition::msgs::Pose& pose() const;
365  ::ignition::msgs::Pose* mutable_pose();
366  ::ignition::msgs::Pose* release_pose();
367  void set_allocated_pose(::ignition::msgs::Pose* pose);
368 
369  // optional .ignition.msgs.Vector3d scale = 9;
370  bool has_scale() const;
371  void clear_scale();
372  static const int kScaleFieldNumber = 9;
373  const ::ignition::msgs::Vector3d& scale() const;
374  ::ignition::msgs::Vector3d* mutable_scale();
375  ::ignition::msgs::Vector3d* release_scale();
376  void set_allocated_scale(::ignition::msgs::Vector3d* scale);
377 
378  // optional .ignition.msgs.Material material = 10;
379  bool has_material() const;
380  void clear_material();
381  static const int kMaterialFieldNumber = 10;
382  const ::ignition::msgs::Material& material() const;
383  ::ignition::msgs::Material* mutable_material();
384  ::ignition::msgs::Material* release_material();
385  void set_allocated_material(::ignition::msgs::Material* material);
386 
387  // repeated .ignition.msgs.Vector3d point = 11;
388  int point_size() const;
389  void clear_point();
390  static const int kPointFieldNumber = 11;
391  const ::ignition::msgs::Vector3d& point(int index) const;
392  ::ignition::msgs::Vector3d* mutable_point(int index);
393  ::ignition::msgs::Vector3d* add_point();
394  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
395  mutable_point();
396  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
397  point() const;
398 
399  // optional string text = 12;
400  void clear_text();
401  static const int kTextFieldNumber = 12;
402  const ::std::string& text() const;
403  void set_text(const ::std::string& value);
404  void set_text(const char* value);
405  void set_text(const char* value, size_t size);
406  ::std::string* mutable_text();
407  ::std::string* release_text();
408  void set_allocated_text(::std::string* text);
409 
410  // optional string parent = 13;
411  void clear_parent();
412  static const int kParentFieldNumber = 13;
413  const ::std::string& parent() const;
414  void set_parent(const ::std::string& value);
415  void set_parent(const char* value);
416  void set_parent(const char* value, size_t size);
417  ::std::string* mutable_parent();
418  ::std::string* release_parent();
419  void set_allocated_parent(::std::string* parent);
420 
421  // optional .ignition.msgs.Marker.Visibility visibility = 14;
422  void clear_visibility();
423  static const int kVisibilityFieldNumber = 14;
424  ::ignition::msgs::Marker_Visibility visibility() const;
425  void set_visibility(::ignition::msgs::Marker_Visibility value);
426 
427  // @@protoc_insertion_point(class_scope:ignition.msgs.Marker)
428  private:
429 
430  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
431  bool _is_default_instance_;
432  ::ignition::msgs::Header* header_;
433  ::google::protobuf::internal::ArenaStringPtr ns_;
434  int action_;
435  ::google::protobuf::int32 layer_;
436  ::google::protobuf::uint64 id_;
437  ::ignition::msgs::Time* lifetime_;
438  ::ignition::msgs::Pose* pose_;
440  ::ignition::msgs::Material* material_;
441  int type_;
442  int visibility_;
443  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > point_;
444  ::google::protobuf::internal::ArenaStringPtr text_;
445  ::google::protobuf::internal::ArenaStringPtr parent_;
446  mutable int _cached_size_;
447  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fmarker_2eproto();
450 
451  void InitAsDefaultInstance();
452  static Marker* default_instance_;
453 };
454 // ===================================================================
455 
456 
457 // ===================================================================
458 
459 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
460 // Marker
461 
462 // optional .ignition.msgs.Header header = 1;
463 inline bool Marker::has_header() const {
464  return !_is_default_instance_ && header_ != NULL;
465 }
466 inline void Marker::clear_header() {
467  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
468  header_ = NULL;
469 }
470 inline const ::ignition::msgs::Header& Marker::header() const {
471  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.header)
472  return header_ != NULL ? *header_ : *default_instance_->header_;
473 }
474 inline ::ignition::msgs::Header* Marker::mutable_header() {
475 
476  if (header_ == NULL) {
477  header_ = new ::ignition::msgs::Header;
478  }
479  // @@protoc_insertion_point(field_mutable:ignition.msgs.Marker.header)
480  return header_;
481 }
482 inline ::ignition::msgs::Header* Marker::release_header() {
483  // @@protoc_insertion_point(field_release:ignition.msgs.Marker.header)
484 
485  ::ignition::msgs::Header* temp = header_;
486  header_ = NULL;
487  return temp;
488 }
490  delete header_;
491  header_ = header;
492  if (header) {
493 
494  } else {
495 
496  }
497  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Marker.header)
498 }
499 
500 // optional .ignition.msgs.Marker.Action action = 2;
501 inline void Marker::clear_action() {
502  action_ = 0;
503 }
505  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.action)
506  return static_cast< ::ignition::msgs::Marker_Action >(action_);
507 }
509 
510  action_ = value;
511  // @@protoc_insertion_point(field_set:ignition.msgs.Marker.action)
512 }
513 
514 // optional string ns = 3;
515 inline void Marker::clear_ns() {
516  ns_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
517 }
518 inline const ::std::string& Marker::ns() const {
519  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.ns)
520  return ns_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
521 }
522 inline void Marker::set_ns(const ::std::string& value) {
523 
524  ns_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
525  // @@protoc_insertion_point(field_set:ignition.msgs.Marker.ns)
526 }
527 inline void Marker::set_ns(const char* value) {
528 
529  ns_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
530  // @@protoc_insertion_point(field_set_char:ignition.msgs.Marker.ns)
531 }
532 inline void Marker::set_ns(const char* value, size_t size) {
533 
534  ns_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
535  ::std::string(reinterpret_cast<const char*>(value), size));
536  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Marker.ns)
537 }
538 inline ::std::string* Marker::mutable_ns() {
539 
540  // @@protoc_insertion_point(field_mutable:ignition.msgs.Marker.ns)
541  return ns_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
542 }
543 inline ::std::string* Marker::release_ns() {
544  // @@protoc_insertion_point(field_release:ignition.msgs.Marker.ns)
545 
546  return ns_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
547 }
549  if (ns != NULL) {
550 
551  } else {
552 
553  }
554  ns_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ns);
555  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Marker.ns)
556 }
557 
558 // optional uint64 id = 4;
559 inline void Marker::clear_id() {
560  id_ = GOOGLE_ULONGLONG(0);
561 }
562 inline ::google::protobuf::uint64 Marker::id() const {
563  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.id)
564  return id_;
565 }
566 inline void Marker::set_id(::google::protobuf::uint64 value) {
567 
568  id_ = value;
569  // @@protoc_insertion_point(field_set:ignition.msgs.Marker.id)
570 }
571 
572 // optional int32 layer = 5;
573 inline void Marker::clear_layer() {
574  layer_ = 0;
575 }
576 inline ::google::protobuf::int32 Marker::layer() const {
577  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.layer)
578  return layer_;
579 }
580 inline void Marker::set_layer(::google::protobuf::int32 value) {
581 
582  layer_ = value;
583  // @@protoc_insertion_point(field_set:ignition.msgs.Marker.layer)
584 }
585 
586 // optional .ignition.msgs.Marker.Type type = 6;
587 inline void Marker::clear_type() {
588  type_ = 0;
589 }
591  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.type)
592  return static_cast< ::ignition::msgs::Marker_Type >(type_);
593 }
595 
596  type_ = value;
597  // @@protoc_insertion_point(field_set:ignition.msgs.Marker.type)
598 }
599 
600 // optional .ignition.msgs.Time lifetime = 7;
601 inline bool Marker::has_lifetime() const {
602  return !_is_default_instance_ && lifetime_ != NULL;
603 }
604 inline void Marker::clear_lifetime() {
605  if (GetArenaNoVirtual() == NULL && lifetime_ != NULL) delete lifetime_;
606  lifetime_ = NULL;
607 }
608 inline const ::ignition::msgs::Time& Marker::lifetime() const {
609  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.lifetime)
610  return lifetime_ != NULL ? *lifetime_ : *default_instance_->lifetime_;
611 }
612 inline ::ignition::msgs::Time* Marker::mutable_lifetime() {
613 
614  if (lifetime_ == NULL) {
615  lifetime_ = new ::ignition::msgs::Time;
616  }
617  // @@protoc_insertion_point(field_mutable:ignition.msgs.Marker.lifetime)
618  return lifetime_;
619 }
620 inline ::ignition::msgs::Time* Marker::release_lifetime() {
621  // @@protoc_insertion_point(field_release:ignition.msgs.Marker.lifetime)
622 
623  ::ignition::msgs::Time* temp = lifetime_;
624  lifetime_ = NULL;
625  return temp;
626 }
628  delete lifetime_;
629  lifetime_ = lifetime;
630  if (lifetime) {
631 
632  } else {
633 
634  }
635  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Marker.lifetime)
636 }
637 
638 // optional .ignition.msgs.Pose pose = 8;
639 inline bool Marker::has_pose() const {
640  return !_is_default_instance_ && pose_ != NULL;
641 }
642 inline void Marker::clear_pose() {
643  if (GetArenaNoVirtual() == NULL && pose_ != NULL) delete pose_;
644  pose_ = NULL;
645 }
646 inline const ::ignition::msgs::Pose& Marker::pose() const {
647  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.pose)
648  return pose_ != NULL ? *pose_ : *default_instance_->pose_;
649 }
650 inline ::ignition::msgs::Pose* Marker::mutable_pose() {
651 
652  if (pose_ == NULL) {
653  pose_ = new ::ignition::msgs::Pose;
654  }
655  // @@protoc_insertion_point(field_mutable:ignition.msgs.Marker.pose)
656  return pose_;
657 }
658 inline ::ignition::msgs::Pose* Marker::release_pose() {
659  // @@protoc_insertion_point(field_release:ignition.msgs.Marker.pose)
660 
661  ::ignition::msgs::Pose* temp = pose_;
662  pose_ = NULL;
663  return temp;
664 }
666  delete pose_;
667  pose_ = pose;
668  if (pose) {
669 
670  } else {
671 
672  }
673  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Marker.pose)
674 }
675 
676 // optional .ignition.msgs.Vector3d scale = 9;
677 inline bool Marker::has_scale() const {
678  return !_is_default_instance_ && scale_ != NULL;
679 }
680 inline void Marker::clear_scale() {
681  if (GetArenaNoVirtual() == NULL && scale_ != NULL) delete scale_;
682  scale_ = NULL;
683 }
684 inline const ::ignition::msgs::Vector3d& Marker::scale() const {
685  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.scale)
686  return scale_ != NULL ? *scale_ : *default_instance_->scale_;
687 }
688 inline ::ignition::msgs::Vector3d* Marker::mutable_scale() {
689 
690  if (scale_ == NULL) {
691  scale_ = new ::ignition::msgs::Vector3d;
692  }
693  // @@protoc_insertion_point(field_mutable:ignition.msgs.Marker.scale)
694  return scale_;
695 }
696 inline ::ignition::msgs::Vector3d* Marker::release_scale() {
697  // @@protoc_insertion_point(field_release:ignition.msgs.Marker.scale)
698 
699  ::ignition::msgs::Vector3d* temp = scale_;
700  scale_ = NULL;
701  return temp;
702 }
704  delete scale_;
705  scale_ = scale;
706  if (scale) {
707 
708  } else {
709 
710  }
711  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Marker.scale)
712 }
713 
714 // optional .ignition.msgs.Material material = 10;
715 inline bool Marker::has_material() const {
716  return !_is_default_instance_ && material_ != NULL;
717 }
718 inline void Marker::clear_material() {
719  if (GetArenaNoVirtual() == NULL && material_ != NULL) delete material_;
720  material_ = NULL;
721 }
722 inline const ::ignition::msgs::Material& Marker::material() const {
723  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.material)
724  return material_ != NULL ? *material_ : *default_instance_->material_;
725 }
726 inline ::ignition::msgs::Material* Marker::mutable_material() {
727 
728  if (material_ == NULL) {
729  material_ = new ::ignition::msgs::Material;
730  }
731  // @@protoc_insertion_point(field_mutable:ignition.msgs.Marker.material)
732  return material_;
733 }
734 inline ::ignition::msgs::Material* Marker::release_material() {
735  // @@protoc_insertion_point(field_release:ignition.msgs.Marker.material)
736 
737  ::ignition::msgs::Material* temp = material_;
738  material_ = NULL;
739  return temp;
740 }
742  delete material_;
743  material_ = material;
744  if (material) {
745 
746  } else {
747 
748  }
749  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Marker.material)
750 }
751 
752 // repeated .ignition.msgs.Vector3d point = 11;
753 inline int Marker::point_size() const {
754  return point_.size();
755 }
756 inline void Marker::clear_point() {
757  point_.Clear();
758 }
759 inline const ::ignition::msgs::Vector3d& Marker::point(int index) const {
760  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.point)
761  return point_.Get(index);
762 }
763 inline ::ignition::msgs::Vector3d* Marker::mutable_point(int index) {
764  // @@protoc_insertion_point(field_mutable:ignition.msgs.Marker.point)
765  return point_.Mutable(index);
766 }
767 inline ::ignition::msgs::Vector3d* Marker::add_point() {
768  // @@protoc_insertion_point(field_add:ignition.msgs.Marker.point)
769  return point_.Add();
770 }
771 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
773  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Marker.point)
774  return &point_;
775 }
776 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
777 Marker::point() const {
778  // @@protoc_insertion_point(field_list:ignition.msgs.Marker.point)
779  return point_;
780 }
781 
782 // optional string text = 12;
783 inline void Marker::clear_text() {
784  text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
785 }
786 inline const ::std::string& Marker::text() const {
787  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.text)
788  return text_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
789 }
790 inline void Marker::set_text(const ::std::string& value) {
791 
792  text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
793  // @@protoc_insertion_point(field_set:ignition.msgs.Marker.text)
794 }
795 inline void Marker::set_text(const char* value) {
796 
797  text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
798  // @@protoc_insertion_point(field_set_char:ignition.msgs.Marker.text)
799 }
800 inline void Marker::set_text(const char* value, size_t size) {
801 
802  text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
803  ::std::string(reinterpret_cast<const char*>(value), size));
804  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Marker.text)
805 }
806 inline ::std::string* Marker::mutable_text() {
807 
808  // @@protoc_insertion_point(field_mutable:ignition.msgs.Marker.text)
809  return text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
810 }
811 inline ::std::string* Marker::release_text() {
812  // @@protoc_insertion_point(field_release:ignition.msgs.Marker.text)
813 
814  return text_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
815 }
817  if (text != NULL) {
818 
819  } else {
820 
821  }
822  text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), text);
823  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Marker.text)
824 }
825 
826 // optional string parent = 13;
827 inline void Marker::clear_parent() {
828  parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
829 }
830 inline const ::std::string& Marker::parent() const {
831  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.parent)
832  return parent_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
833 }
834 inline void Marker::set_parent(const ::std::string& value) {
835 
836  parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
837  // @@protoc_insertion_point(field_set:ignition.msgs.Marker.parent)
838 }
839 inline void Marker::set_parent(const char* value) {
840 
841  parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
842  // @@protoc_insertion_point(field_set_char:ignition.msgs.Marker.parent)
843 }
844 inline void Marker::set_parent(const char* value, size_t size) {
845 
846  parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
847  ::std::string(reinterpret_cast<const char*>(value), size));
848  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Marker.parent)
849 }
850 inline ::std::string* Marker::mutable_parent() {
851 
852  // @@protoc_insertion_point(field_mutable:ignition.msgs.Marker.parent)
853  return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
854 }
855 inline ::std::string* Marker::release_parent() {
856  // @@protoc_insertion_point(field_release:ignition.msgs.Marker.parent)
857 
858  return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
859 }
861  if (parent != NULL) {
862 
863  } else {
864 
865  }
866  parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
867  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Marker.parent)
868 }
869 
870 // optional .ignition.msgs.Marker.Visibility visibility = 14;
872  visibility_ = 0;
873 }
875  // @@protoc_insertion_point(field_get:ignition.msgs.Marker.visibility)
876  return static_cast< ::ignition::msgs::Marker_Visibility >(visibility_);
877 }
879 
880  visibility_ = value;
881  // @@protoc_insertion_point(field_set:ignition.msgs.Marker.visibility)
882 }
883 
884 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
885 
890 // @@protoc_insertion_point(namespace_scope)
891 
892 } // namespace msgs
893 } // namespace ignition
894 
895 #ifndef SWIG
896 namespace google {
897 namespace protobuf {
898 
899 template <> struct is_proto_enum< ::ignition::msgs::Marker_Type> : ::google::protobuf::internal::true_type {};
900 template <>
901 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Marker_Type>() {
903 }
904 template <> struct is_proto_enum< ::ignition::msgs::Marker_Visibility> : ::google::protobuf::internal::true_type {};
905 template <>
906 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Marker_Visibility>() {
908 }
909 template <> struct is_proto_enum< ::ignition::msgs::Marker_Action> : ::google::protobuf::internal::true_type {};
910 template <>
911 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Marker_Action>() {
913 }
914 
915 } // namespace protobuf
916 } // namespace google
917 #endif // SWIG
918 
919 #ifdef _MSC_VER
920 #pragma warning(pop)
921 #endif
922 // @@protoc_insertion_point(global_scope)
923 
924 #endif // PROTOBUF_ignition_2fmsgs_2fmarker_2eproto__INCLUDED
void set_allocated_parent(::std::string *parent)
Definition: marker.pb.h:860
bool has_scale() const
Definition: marker.pb.h:677
Definition: pose.pb.h:58
void protobuf_AssignDesc_ignition_2fmsgs_2fmarker_2eproto()
const ::ignition::msgs::Vector3d & scale() const
Definition: marker.pb.h:684
void set_allocated_material(::ignition::msgs::Material *material)
Definition: marker.pb.h:741
const Marker_Action Marker_Action_Action_MIN
Definition: marker.pb.h:123
static const ::std::string & Visibility_Name(Visibility value)
Definition: marker.pb.h:269
const ::ignition::msgs::Time & lifetime() const
Definition: marker.pb.h:608
const int Marker_Action_Action_ARRAYSIZE
Definition: marker.pb.h:125
std::unique_ptr< Marker > MarkerUniquePtr
Definition: marker.pb.h:886
Marker & operator=(const Marker &from)
Definition: marker.pb.h:146
Marker_Type Type
Definition: marker.pb.h:197
Definition: marker.pb.h:64
const int Marker_Type_Type_ARRAYSIZE
Definition: marker.pb.h:82
void set_visibility(::ignition::msgs::Marker_Visibility value)
Definition: marker.pb.h:878
::ignition::msgs::Vector3d * add_point()
Definition: marker.pb.h:767
const ::std::string & Marker_Type_Name(Marker_Type value)
Definition: marker.pb.h:85
void set_id(::google::protobuf::uint64 value)
Definition: marker.pb.h:566
static bool Action_IsValid(int value)
Definition: marker.pb.h:284
const ::ignition::msgs::Header & header() const
Definition: marker.pb.h:470
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fmarker_2eproto()
Marker_Type
Definition: marker.pb.h:59
const Marker_Type Marker_Type_Type_MIN
Definition: marker.pb.h:80
const ::std::string & ns() const
Definition: marker.pb.h:518
const ::ignition::msgs::Pose & pose() const
Definition: marker.pb.h:646
static const ::std::string & Action_Name(Action value)
Definition: marker.pb.h:297
static bool Type_IsValid(int value)
Definition: marker.pb.h:230
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_point()
Definition: marker.pb.h:772
void clear_point()
Definition: marker.pb.h:756
IGNITION_MSGS_VISIBLE bool Marker_Visibility_IsValid(int value)
::ignition::msgs::Material * mutable_material()
Definition: marker.pb.h:726
const ::std::string & Marker_Action_Name(Marker_Action value)
Definition: marker.pb.h:128
Marker_Visibility
Definition: marker.pb.h:94
bool has_pose() const
Definition: marker.pb.h:639
void clear_lifetime()
Definition: marker.pb.h:604
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: marker.pb.h:175
::std::string * release_text()
Definition: marker.pb.h:811
Definition: marker.pb.h:95
::ignition::msgs::Header * mutable_header()
Definition: marker.pb.h:474
::ignition::msgs::Marker_Action action() const
Definition: marker.pb.h:504
const ::std::string & Marker_Visibility_Name(Marker_Visibility value)
Definition: marker.pb.h:106
::std::string * mutable_parent()
Definition: marker.pb.h:850
IGNITION_MSGS_VISIBLE bool Marker_Action_IsValid(int value)
void set_allocated_ns(::std::string *ns)
Definition: marker.pb.h:548
Definition: marker.pb.h:62
void set_parent(const ::std::string &value)
Definition: marker.pb.h:834
void set_allocated_header(::ignition::msgs::Header *header)
Definition: marker.pb.h:489
const Marker_Type Marker_Type_Type_MAX
Definition: marker.pb.h:81
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: marker.pb.h:246
void clear_parent()
Definition: marker.pb.h:827
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Marker_Visibility_descriptor()
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Marker_Type_descriptor()
bool has_material() const
Definition: marker.pb.h:715
Definition: marker.pb.h:116
IGNITION_MSGS_VISIBLE bool Marker_Type_IsValid(int value)
Definition: gui.pb.h:58
Definition: header.pb.h:161
static bool Visibility_IsValid(int value)
Definition: marker.pb.h:256
STL class.
Definition: marker.pb.h:74
Marker_Action Action
Definition: marker.pb.h:277
void clear_scale()
Definition: marker.pb.h:680
static bool Visibility_Parse(const ::std::string &name, Visibility *value)
Definition: marker.pb.h:272
static const ::google::protobuf::EnumDescriptor * Action_descriptor()
Definition: marker.pb.h:294
void clear_visibility()
Definition: marker.pb.h:871
const ::std::string & parent() const
Definition: marker.pb.h:830
bool Marker_Visibility_Parse(const ::std::string &name, Marker_Visibility *value)
Definition: marker.pb.h:110
::ignition::msgs::Marker_Visibility visibility() const
Definition: marker.pb.h:874
void clear_ns()
Definition: marker.pb.h:515
const ::std::string & text() const
Definition: marker.pb.h:786
void set_allocated_text(::std::string *text)
Definition: marker.pb.h:816
::ignition::msgs::Time * mutable_lifetime()
Definition: marker.pb.h:612
void set_text(const ::std::string &value)
Definition: marker.pb.h:790
void protobuf_ShutdownFile_ignition_2fmsgs_2fmarker_2eproto()
Definition: marker.pb.h:61
void clear_material()
Definition: marker.pb.h:718
Definition: marker.pb.h:73
void clear_action()
Definition: marker.pb.h:501
int point_size() const
Definition: marker.pb.h:753
::std::string * mutable_ns()
Definition: marker.pb.h:538
static const ::google::protobuf::EnumDescriptor * Visibility_descriptor()
Definition: marker.pb.h:266
::ignition::msgs::Header * release_header()
Definition: marker.pb.h:482
Definition: marker.pb.h:63
void clear_text()
Definition: marker.pb.h:783
Definition: marker.pb.h:72
void clear_pose()
Definition: marker.pb.h:642
bool has_header() const
Definition: marker.pb.h:463
const Marker_Visibility Marker_Visibility_Visibility_MAX
Definition: marker.pb.h:102
bool has_lifetime() const
Definition: marker.pb.h:601
Definition: material.pb.h:467
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: marker.pb.h:240
::ignition::msgs::Marker_Type type() const
Definition: marker.pb.h:590
::std::string * release_ns()
Definition: marker.pb.h:543
Marker * New() const
Definition: marker.pb.h:158
std::shared_ptr< Marker > MarkerSharedPtr
Definition: marker.pb.h:888
::google::protobuf::uint64 id() const
Definition: marker.pb.h:562
Definition: marker.pb.h:60
void set_ns(const ::std::string &value)
Definition: marker.pb.h:522
void set_allocated_lifetime(::ignition::msgs::Time *lifetime)
Definition: marker.pb.h:627
void set_allocated_scale(::ignition::msgs::Vector3d *scale)
Definition: marker.pb.h:703
Definition: vector3d.pb.h:56
Marker_Visibility Visibility
Definition: marker.pb.h:251
Marker_Action
Definition: marker.pb.h:115
Definition: marker.pb.h:118
::ignition::msgs::Pose * release_pose()
Definition: marker.pb.h:658
STL class.
int GetCachedSize() const
Definition: marker.pb.h:178
bool Marker_Action_Parse(const ::std::string &name, Marker_Action *value)
Definition: marker.pb.h:132
Definition: marker.pb.h:139
Definition: marker.pb.h:67
Definition: marker.pb.h:71
::ignition::msgs::Pose * mutable_pose()
Definition: marker.pb.h:650
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & point() const
Definition: marker.pb.h:777
void set_type(::ignition::msgs::Marker_Type value)
Definition: marker.pb.h:594
::ignition::msgs::Vector3d * release_scale()
Definition: marker.pb.h:696
Definition: marker.pb.h:96
void clear_id()
Definition: marker.pb.h:559
const int Marker_Visibility_Visibility_ARRAYSIZE
Definition: marker.pb.h:103
const Marker_Action Marker_Action_Action_MAX
Definition: marker.pb.h:124
::ignition::msgs::Time * release_lifetime()
Definition: marker.pb.h:620
std::unique_ptr< const Marker > ConstMarkerUniquePtr
Definition: marker.pb.h:887
const ::ignition::msgs::Material & material() const
Definition: marker.pb.h:722
Definition: any.pb.h:839
const Marker_Visibility Marker_Visibility_Visibility_MIN
Definition: marker.pb.h:101
static bool Action_Parse(const ::std::string &name, Action *value)
Definition: marker.pb.h:300
void clear_type()
Definition: marker.pb.h:587
void set_layer(::google::protobuf::int32 value)
Definition: marker.pb.h:580
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Marker_Action_descriptor()
void set_action(::ignition::msgs::Marker_Action value)
Definition: marker.pb.h:508
::std::string * mutable_text()
Definition: marker.pb.h:806
static const ::std::string & Type_Name(Type value)
Definition: marker.pb.h:243
Definition: marker.pb.h:75
void clear_layer()
Definition: marker.pb.h:573
::std::string * release_parent()
Definition: marker.pb.h:855
Definition: time.pb.h:55
::ignition::msgs::Material * release_material()
Definition: marker.pb.h:734
::google::protobuf::int32 layer() const
Definition: marker.pb.h:576
Definition: marker.pb.h:66
Definition: marker.pb.h:65
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: marker.pb.h:665
::ignition::msgs::Vector3d * mutable_scale()
Definition: marker.pb.h:688
void clear_header()
Definition: marker.pb.h:466
std::shared_ptr< const Marker > ConstMarkerSharedPtr
Definition: marker.pb.h:889
bool Marker_Type_Parse(const ::std::string &name, Marker_Type *value)
Definition: marker.pb.h:89