Ignition Msgs

API Reference

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