Ignition Msgs

API Reference

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