Ignition Msgs

API Reference

7.1.0
geometry.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/geometry.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fgeometry_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fgeometry_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>
44 #ifndef _MSC_VER
45 #pragma GCC system_header
46 #else
47 #pragma warning(push)
48 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
49 #endif
50 #ifdef __linux__
51 #include <sys/sysmacros.h>
52 #endif
53 #include <memory>
54 #include <ignition/msgs/Export.hh>
55 // @@protoc_insertion_point(includes)
56 
57 namespace ignition {
58 namespace msgs {
59 
60 // Internal implementation detail -- do not call these.
61 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fgeometry_2eproto();
64 
65 class Geometry;
66 
86 };
87 IGNITION_MSGS_VISIBLE bool Geometry_Type_IsValid(int value);
90 const int Geometry_Type_Type_ARRAYSIZE = Geometry_Type_Type_MAX + 1;
91 
92 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Geometry_Type_descriptor();
93 inline const ::std::string& Geometry_Type_Name(Geometry_Type value) {
94  return ::google::protobuf::internal::NameOfEnum(
95  Geometry_Type_descriptor(), value);
96 }
97 inline bool Geometry_Type_Parse(
98  const ::std::string& name, Geometry_Type* value) {
99  return ::google::protobuf::internal::ParseNamedEnum<Geometry_Type>(
100  Geometry_Type_descriptor(), name, value);
101 }
102 // ===================================================================
103 
104 class IGNITION_MSGS_VISIBLE Geometry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Geometry) */ {
105  public:
106  Geometry();
107  virtual ~Geometry();
108 
109  Geometry(const Geometry& from);
110 
111  inline Geometry& operator=(const Geometry& from) {
112  CopyFrom(from);
113  return *this;
114  }
115 
116  static const ::google::protobuf::Descriptor* descriptor();
117  static const Geometry& default_instance();
118 
119  void Swap(Geometry* other);
120 
121  // implements Message ----------------------------------------------
122 
123  inline Geometry* New() const { return New(NULL); }
124 
125  Geometry* New(::google::protobuf::Arena* arena) const;
126  void CopyFrom(const ::google::protobuf::Message& from);
127  void MergeFrom(const ::google::protobuf::Message& from);
128  void CopyFrom(const Geometry& from);
129  void MergeFrom(const Geometry& from);
130  void Clear();
131  bool IsInitialized() const;
132 
133  int ByteSize() const;
134  bool MergePartialFromCodedStream(
135  ::google::protobuf::io::CodedInputStream* input);
136  void SerializeWithCachedSizes(
137  ::google::protobuf::io::CodedOutputStream* output) const;
138  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
139  bool deterministic, ::google::protobuf::uint8* output) const;
140  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
141  return InternalSerializeWithCachedSizesToArray(false, output);
142  }
143  int GetCachedSize() const { return _cached_size_; }
144  private:
145  void SharedCtor();
146  void SharedDtor();
147  void SetCachedSize(int size) const;
148  void InternalSwap(Geometry* other);
149  private:
150  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
151  return _internal_metadata_.arena();
152  }
153  inline void* MaybeArenaPtr() const {
154  return _internal_metadata_.raw_arena_ptr();
155  }
156  public:
157 
158  ::google::protobuf::Metadata GetMetadata() const;
159 
160  // nested types ----------------------------------------------------
161 
163  static const Type BOX =
165  static const Type CYLINDER =
167  static const Type SPHERE =
169  static const Type PLANE =
171  static const Type IMAGE =
173  static const Type HEIGHTMAP =
175  static const Type MESH =
177  static const Type TRIANGLE_FAN =
179  static const Type LINE_STRIP =
181  static const Type POLYLINE =
183  static const Type CONE =
185  static const Type EMPTY =
187  static const Type ARROW =
189  static const Type AXIS =
191  static const Type CAPSULE =
193  static const Type ELLIPSOID =
195  static inline bool Type_IsValid(int value) {
196  return Geometry_Type_IsValid(value);
197  }
198  static const Type Type_MIN =
200  static const Type Type_MAX =
202  static const int Type_ARRAYSIZE =
204  static inline const ::google::protobuf::EnumDescriptor*
206  return Geometry_Type_descriptor();
207  }
208  static inline const ::std::string& Type_Name(Type value) {
209  return Geometry_Type_Name(value);
210  }
211  static inline bool Type_Parse(const ::std::string& name,
212  Type* value) {
213  return Geometry_Type_Parse(name, value);
214  }
215 
216  // accessors -------------------------------------------------------
217 
218  // optional .ignition.msgs.Header header = 1;
219  bool has_header() const;
220  void clear_header();
221  static const int kHeaderFieldNumber = 1;
222  const ::ignition::msgs::Header& header() const;
223  ::ignition::msgs::Header* mutable_header();
224  ::ignition::msgs::Header* release_header();
225  void set_allocated_header(::ignition::msgs::Header* header);
226 
227  // optional .ignition.msgs.Geometry.Type type = 2;
228  void clear_type();
229  static const int kTypeFieldNumber = 2;
230  ::ignition::msgs::Geometry_Type type() const;
231  void set_type(::ignition::msgs::Geometry_Type value);
232 
233  // optional .ignition.msgs.BoxGeom box = 3;
234  bool has_box() const;
235  void clear_box();
236  static const int kBoxFieldNumber = 3;
237  const ::ignition::msgs::BoxGeom& box() const;
238  ::ignition::msgs::BoxGeom* mutable_box();
239  ::ignition::msgs::BoxGeom* release_box();
240  void set_allocated_box(::ignition::msgs::BoxGeom* box);
241 
242  // optional .ignition.msgs.CylinderGeom cylinder = 4;
243  bool has_cylinder() const;
244  void clear_cylinder();
245  static const int kCylinderFieldNumber = 4;
246  const ::ignition::msgs::CylinderGeom& cylinder() const;
247  ::ignition::msgs::CylinderGeom* mutable_cylinder();
248  ::ignition::msgs::CylinderGeom* release_cylinder();
249  void set_allocated_cylinder(::ignition::msgs::CylinderGeom* cylinder);
250 
251  // optional .ignition.msgs.PlaneGeom plane = 5;
252  bool has_plane() const;
253  void clear_plane();
254  static const int kPlaneFieldNumber = 5;
255  const ::ignition::msgs::PlaneGeom& plane() const;
256  ::ignition::msgs::PlaneGeom* mutable_plane();
257  ::ignition::msgs::PlaneGeom* release_plane();
258  void set_allocated_plane(::ignition::msgs::PlaneGeom* plane);
259 
260  // optional .ignition.msgs.SphereGeom sphere = 6;
261  bool has_sphere() const;
262  void clear_sphere();
263  static const int kSphereFieldNumber = 6;
264  const ::ignition::msgs::SphereGeom& sphere() const;
265  ::ignition::msgs::SphereGeom* mutable_sphere();
266  ::ignition::msgs::SphereGeom* release_sphere();
267  void set_allocated_sphere(::ignition::msgs::SphereGeom* sphere);
268 
269  // optional .ignition.msgs.ImageGeom image = 7;
270  bool has_image() const;
271  void clear_image();
272  static const int kImageFieldNumber = 7;
273  const ::ignition::msgs::ImageGeom& image() const;
274  ::ignition::msgs::ImageGeom* mutable_image();
275  ::ignition::msgs::ImageGeom* release_image();
276  void set_allocated_image(::ignition::msgs::ImageGeom* image);
277 
278  // optional .ignition.msgs.HeightmapGeom heightmap = 8;
279  bool has_heightmap() const;
280  void clear_heightmap();
281  static const int kHeightmapFieldNumber = 8;
282  const ::ignition::msgs::HeightmapGeom& heightmap() const;
283  ::ignition::msgs::HeightmapGeom* mutable_heightmap();
284  ::ignition::msgs::HeightmapGeom* release_heightmap();
285  void set_allocated_heightmap(::ignition::msgs::HeightmapGeom* heightmap);
286 
287  // optional .ignition.msgs.MeshGeom mesh = 9;
288  bool has_mesh() const;
289  void clear_mesh();
290  static const int kMeshFieldNumber = 9;
291  const ::ignition::msgs::MeshGeom& mesh() const;
292  ::ignition::msgs::MeshGeom* mutable_mesh();
293  ::ignition::msgs::MeshGeom* release_mesh();
294  void set_allocated_mesh(::ignition::msgs::MeshGeom* mesh);
295 
296  // optional .ignition.msgs.ConeGeom cone = 10;
297  bool has_cone() const;
298  void clear_cone();
299  static const int kConeFieldNumber = 10;
300  const ::ignition::msgs::ConeGeom& cone() const;
301  ::ignition::msgs::ConeGeom* mutable_cone();
302  ::ignition::msgs::ConeGeom* release_cone();
303  void set_allocated_cone(::ignition::msgs::ConeGeom* cone);
304 
305  // optional .ignition.msgs.CapsuleGeom capsule = 13;
306  bool has_capsule() const;
307  void clear_capsule();
308  static const int kCapsuleFieldNumber = 13;
309  const ::ignition::msgs::CapsuleGeom& capsule() const;
310  ::ignition::msgs::CapsuleGeom* mutable_capsule();
311  ::ignition::msgs::CapsuleGeom* release_capsule();
312  void set_allocated_capsule(::ignition::msgs::CapsuleGeom* capsule);
313 
314  // optional .ignition.msgs.EllipsoidGeom ellipsoid = 14;
315  bool has_ellipsoid() const;
316  void clear_ellipsoid();
317  static const int kEllipsoidFieldNumber = 14;
318  const ::ignition::msgs::EllipsoidGeom& ellipsoid() const;
319  ::ignition::msgs::EllipsoidGeom* mutable_ellipsoid();
320  ::ignition::msgs::EllipsoidGeom* release_ellipsoid();
321  void set_allocated_ellipsoid(::ignition::msgs::EllipsoidGeom* ellipsoid);
322 
323  // repeated .ignition.msgs.Vector3d points = 11;
324  int points_size() const;
325  void clear_points();
326  static const int kPointsFieldNumber = 11;
327  const ::ignition::msgs::Vector3d& points(int index) const;
328  ::ignition::msgs::Vector3d* mutable_points(int index);
329  ::ignition::msgs::Vector3d* add_points();
330  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
331  mutable_points();
332  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
333  points() const;
334 
335  // repeated .ignition.msgs.Polyline polyline = 12;
336  int polyline_size() const;
337  void clear_polyline();
338  static const int kPolylineFieldNumber = 12;
339  const ::ignition::msgs::Polyline& polyline(int index) const;
340  ::ignition::msgs::Polyline* mutable_polyline(int index);
341  ::ignition::msgs::Polyline* add_polyline();
342  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >*
343  mutable_polyline();
344  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >&
345  polyline() const;
346 
347  // @@protoc_insertion_point(class_scope:ignition.msgs.Geometry)
348  private:
349 
350  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
351  bool _is_default_instance_;
352  ::ignition::msgs::Header* header_;
363  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > points_;
364  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > polyline_;
365  int type_;
366  mutable int _cached_size_;
367  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fgeometry_2eproto();
370 
371  void InitAsDefaultInstance();
372  static Geometry* default_instance_;
373 };
374 // ===================================================================
375 
376 
377 // ===================================================================
378 
379 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
380 // Geometry
381 
382 // optional .ignition.msgs.Header header = 1;
383 inline bool Geometry::has_header() const {
384  return !_is_default_instance_ && header_ != NULL;
385 }
386 inline void Geometry::clear_header() {
387  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
388  header_ = NULL;
389 }
390 inline const ::ignition::msgs::Header& Geometry::header() const {
391  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.header)
392  return header_ != NULL ? *header_ : *default_instance_->header_;
393 }
394 inline ::ignition::msgs::Header* Geometry::mutable_header() {
395 
396  if (header_ == NULL) {
397  header_ = new ::ignition::msgs::Header;
398  }
399  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.header)
400  return header_;
401 }
402 inline ::ignition::msgs::Header* Geometry::release_header() {
403  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.header)
404 
405  ::ignition::msgs::Header* temp = header_;
406  header_ = NULL;
407  return temp;
408 }
410  delete header_;
411  header_ = header;
412  if (header) {
413 
414  } else {
415 
416  }
417  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.header)
418 }
419 
420 // optional .ignition.msgs.Geometry.Type type = 2;
421 inline void Geometry::clear_type() {
422  type_ = 0;
423 }
425  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.type)
426  return static_cast< ::ignition::msgs::Geometry_Type >(type_);
427 }
429 
430  type_ = value;
431  // @@protoc_insertion_point(field_set:ignition.msgs.Geometry.type)
432 }
433 
434 // optional .ignition.msgs.BoxGeom box = 3;
435 inline bool Geometry::has_box() const {
436  return !_is_default_instance_ && box_ != NULL;
437 }
438 inline void Geometry::clear_box() {
439  if (GetArenaNoVirtual() == NULL && box_ != NULL) delete box_;
440  box_ = NULL;
441 }
442 inline const ::ignition::msgs::BoxGeom& Geometry::box() const {
443  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.box)
444  return box_ != NULL ? *box_ : *default_instance_->box_;
445 }
446 inline ::ignition::msgs::BoxGeom* Geometry::mutable_box() {
447 
448  if (box_ == NULL) {
449  box_ = new ::ignition::msgs::BoxGeom;
450  }
451  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.box)
452  return box_;
453 }
454 inline ::ignition::msgs::BoxGeom* Geometry::release_box() {
455  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.box)
456 
457  ::ignition::msgs::BoxGeom* temp = box_;
458  box_ = NULL;
459  return temp;
460 }
462  delete box_;
463  box_ = box;
464  if (box) {
465 
466  } else {
467 
468  }
469  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.box)
470 }
471 
472 // optional .ignition.msgs.CylinderGeom cylinder = 4;
473 inline bool Geometry::has_cylinder() const {
474  return !_is_default_instance_ && cylinder_ != NULL;
475 }
477  if (GetArenaNoVirtual() == NULL && cylinder_ != NULL) delete cylinder_;
478  cylinder_ = NULL;
479 }
480 inline const ::ignition::msgs::CylinderGeom& Geometry::cylinder() const {
481  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.cylinder)
482  return cylinder_ != NULL ? *cylinder_ : *default_instance_->cylinder_;
483 }
484 inline ::ignition::msgs::CylinderGeom* Geometry::mutable_cylinder() {
485 
486  if (cylinder_ == NULL) {
487  cylinder_ = new ::ignition::msgs::CylinderGeom;
488  }
489  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.cylinder)
490  return cylinder_;
491 }
492 inline ::ignition::msgs::CylinderGeom* Geometry::release_cylinder() {
493  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.cylinder)
494 
495  ::ignition::msgs::CylinderGeom* temp = cylinder_;
496  cylinder_ = NULL;
497  return temp;
498 }
500  delete cylinder_;
501  cylinder_ = cylinder;
502  if (cylinder) {
503 
504  } else {
505 
506  }
507  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.cylinder)
508 }
509 
510 // optional .ignition.msgs.PlaneGeom plane = 5;
511 inline bool Geometry::has_plane() const {
512  return !_is_default_instance_ && plane_ != NULL;
513 }
514 inline void Geometry::clear_plane() {
515  if (GetArenaNoVirtual() == NULL && plane_ != NULL) delete plane_;
516  plane_ = NULL;
517 }
518 inline const ::ignition::msgs::PlaneGeom& Geometry::plane() const {
519  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.plane)
520  return plane_ != NULL ? *plane_ : *default_instance_->plane_;
521 }
522 inline ::ignition::msgs::PlaneGeom* Geometry::mutable_plane() {
523 
524  if (plane_ == NULL) {
525  plane_ = new ::ignition::msgs::PlaneGeom;
526  }
527  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.plane)
528  return plane_;
529 }
530 inline ::ignition::msgs::PlaneGeom* Geometry::release_plane() {
531  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.plane)
532 
533  ::ignition::msgs::PlaneGeom* temp = plane_;
534  plane_ = NULL;
535  return temp;
536 }
538  delete plane_;
539  plane_ = plane;
540  if (plane) {
541 
542  } else {
543 
544  }
545  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.plane)
546 }
547 
548 // optional .ignition.msgs.SphereGeom sphere = 6;
549 inline bool Geometry::has_sphere() const {
550  return !_is_default_instance_ && sphere_ != NULL;
551 }
552 inline void Geometry::clear_sphere() {
553  if (GetArenaNoVirtual() == NULL && sphere_ != NULL) delete sphere_;
554  sphere_ = NULL;
555 }
556 inline const ::ignition::msgs::SphereGeom& Geometry::sphere() const {
557  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.sphere)
558  return sphere_ != NULL ? *sphere_ : *default_instance_->sphere_;
559 }
560 inline ::ignition::msgs::SphereGeom* Geometry::mutable_sphere() {
561 
562  if (sphere_ == NULL) {
563  sphere_ = new ::ignition::msgs::SphereGeom;
564  }
565  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.sphere)
566  return sphere_;
567 }
568 inline ::ignition::msgs::SphereGeom* Geometry::release_sphere() {
569  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.sphere)
570 
571  ::ignition::msgs::SphereGeom* temp = sphere_;
572  sphere_ = NULL;
573  return temp;
574 }
576  delete sphere_;
577  sphere_ = sphere;
578  if (sphere) {
579 
580  } else {
581 
582  }
583  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.sphere)
584 }
585 
586 // optional .ignition.msgs.ImageGeom image = 7;
587 inline bool Geometry::has_image() const {
588  return !_is_default_instance_ && image_ != NULL;
589 }
590 inline void Geometry::clear_image() {
591  if (GetArenaNoVirtual() == NULL && image_ != NULL) delete image_;
592  image_ = NULL;
593 }
594 inline const ::ignition::msgs::ImageGeom& Geometry::image() const {
595  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.image)
596  return image_ != NULL ? *image_ : *default_instance_->image_;
597 }
598 inline ::ignition::msgs::ImageGeom* Geometry::mutable_image() {
599 
600  if (image_ == NULL) {
601  image_ = new ::ignition::msgs::ImageGeom;
602  }
603  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.image)
604  return image_;
605 }
606 inline ::ignition::msgs::ImageGeom* Geometry::release_image() {
607  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.image)
608 
609  ::ignition::msgs::ImageGeom* temp = image_;
610  image_ = NULL;
611  return temp;
612 }
614  delete image_;
615  image_ = image;
616  if (image) {
617 
618  } else {
619 
620  }
621  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.image)
622 }
623 
624 // optional .ignition.msgs.HeightmapGeom heightmap = 8;
625 inline bool Geometry::has_heightmap() const {
626  return !_is_default_instance_ && heightmap_ != NULL;
627 }
629  if (GetArenaNoVirtual() == NULL && heightmap_ != NULL) delete heightmap_;
630  heightmap_ = NULL;
631 }
632 inline const ::ignition::msgs::HeightmapGeom& Geometry::heightmap() const {
633  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.heightmap)
634  return heightmap_ != NULL ? *heightmap_ : *default_instance_->heightmap_;
635 }
636 inline ::ignition::msgs::HeightmapGeom* Geometry::mutable_heightmap() {
637 
638  if (heightmap_ == NULL) {
639  heightmap_ = new ::ignition::msgs::HeightmapGeom;
640  }
641  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.heightmap)
642  return heightmap_;
643 }
644 inline ::ignition::msgs::HeightmapGeom* Geometry::release_heightmap() {
645  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.heightmap)
646 
647  ::ignition::msgs::HeightmapGeom* temp = heightmap_;
648  heightmap_ = NULL;
649  return temp;
650 }
652  delete heightmap_;
653  heightmap_ = heightmap;
654  if (heightmap) {
655 
656  } else {
657 
658  }
659  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.heightmap)
660 }
661 
662 // optional .ignition.msgs.MeshGeom mesh = 9;
663 inline bool Geometry::has_mesh() const {
664  return !_is_default_instance_ && mesh_ != NULL;
665 }
666 inline void Geometry::clear_mesh() {
667  if (GetArenaNoVirtual() == NULL && mesh_ != NULL) delete mesh_;
668  mesh_ = NULL;
669 }
670 inline const ::ignition::msgs::MeshGeom& Geometry::mesh() const {
671  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.mesh)
672  return mesh_ != NULL ? *mesh_ : *default_instance_->mesh_;
673 }
674 inline ::ignition::msgs::MeshGeom* Geometry::mutable_mesh() {
675 
676  if (mesh_ == NULL) {
677  mesh_ = new ::ignition::msgs::MeshGeom;
678  }
679  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.mesh)
680  return mesh_;
681 }
682 inline ::ignition::msgs::MeshGeom* Geometry::release_mesh() {
683  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.mesh)
684 
685  ::ignition::msgs::MeshGeom* temp = mesh_;
686  mesh_ = NULL;
687  return temp;
688 }
690  delete mesh_;
691  mesh_ = mesh;
692  if (mesh) {
693 
694  } else {
695 
696  }
697  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.mesh)
698 }
699 
700 // optional .ignition.msgs.ConeGeom cone = 10;
701 inline bool Geometry::has_cone() const {
702  return !_is_default_instance_ && cone_ != NULL;
703 }
704 inline void Geometry::clear_cone() {
705  if (GetArenaNoVirtual() == NULL && cone_ != NULL) delete cone_;
706  cone_ = NULL;
707 }
708 inline const ::ignition::msgs::ConeGeom& Geometry::cone() const {
709  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.cone)
710  return cone_ != NULL ? *cone_ : *default_instance_->cone_;
711 }
712 inline ::ignition::msgs::ConeGeom* Geometry::mutable_cone() {
713 
714  if (cone_ == NULL) {
715  cone_ = new ::ignition::msgs::ConeGeom;
716  }
717  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.cone)
718  return cone_;
719 }
720 inline ::ignition::msgs::ConeGeom* Geometry::release_cone() {
721  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.cone)
722 
723  ::ignition::msgs::ConeGeom* temp = cone_;
724  cone_ = NULL;
725  return temp;
726 }
728  delete cone_;
729  cone_ = cone;
730  if (cone) {
731 
732  } else {
733 
734  }
735  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.cone)
736 }
737 
738 // optional .ignition.msgs.CapsuleGeom capsule = 13;
739 inline bool Geometry::has_capsule() const {
740  return !_is_default_instance_ && capsule_ != NULL;
741 }
742 inline void Geometry::clear_capsule() {
743  if (GetArenaNoVirtual() == NULL && capsule_ != NULL) delete capsule_;
744  capsule_ = NULL;
745 }
746 inline const ::ignition::msgs::CapsuleGeom& Geometry::capsule() const {
747  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.capsule)
748  return capsule_ != NULL ? *capsule_ : *default_instance_->capsule_;
749 }
750 inline ::ignition::msgs::CapsuleGeom* Geometry::mutable_capsule() {
751 
752  if (capsule_ == NULL) {
753  capsule_ = new ::ignition::msgs::CapsuleGeom;
754  }
755  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.capsule)
756  return capsule_;
757 }
758 inline ::ignition::msgs::CapsuleGeom* Geometry::release_capsule() {
759  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.capsule)
760 
761  ::ignition::msgs::CapsuleGeom* temp = capsule_;
762  capsule_ = NULL;
763  return temp;
764 }
766  delete capsule_;
767  capsule_ = capsule;
768  if (capsule) {
769 
770  } else {
771 
772  }
773  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.capsule)
774 }
775 
776 // optional .ignition.msgs.EllipsoidGeom ellipsoid = 14;
777 inline bool Geometry::has_ellipsoid() const {
778  return !_is_default_instance_ && ellipsoid_ != NULL;
779 }
781  if (GetArenaNoVirtual() == NULL && ellipsoid_ != NULL) delete ellipsoid_;
782  ellipsoid_ = NULL;
783 }
784 inline const ::ignition::msgs::EllipsoidGeom& Geometry::ellipsoid() const {
785  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.ellipsoid)
786  return ellipsoid_ != NULL ? *ellipsoid_ : *default_instance_->ellipsoid_;
787 }
788 inline ::ignition::msgs::EllipsoidGeom* Geometry::mutable_ellipsoid() {
789 
790  if (ellipsoid_ == NULL) {
791  ellipsoid_ = new ::ignition::msgs::EllipsoidGeom;
792  }
793  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.ellipsoid)
794  return ellipsoid_;
795 }
796 inline ::ignition::msgs::EllipsoidGeom* Geometry::release_ellipsoid() {
797  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.ellipsoid)
798 
799  ::ignition::msgs::EllipsoidGeom* temp = ellipsoid_;
800  ellipsoid_ = NULL;
801  return temp;
802 }
804  delete ellipsoid_;
805  ellipsoid_ = ellipsoid;
806  if (ellipsoid) {
807 
808  } else {
809 
810  }
811  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.ellipsoid)
812 }
813 
814 // repeated .ignition.msgs.Vector3d points = 11;
815 inline int Geometry::points_size() const {
816  return points_.size();
817 }
818 inline void Geometry::clear_points() {
819  points_.Clear();
820 }
821 inline const ::ignition::msgs::Vector3d& Geometry::points(int index) const {
822  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.points)
823  return points_.Get(index);
824 }
825 inline ::ignition::msgs::Vector3d* Geometry::mutable_points(int index) {
826  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.points)
827  return points_.Mutable(index);
828 }
829 inline ::ignition::msgs::Vector3d* Geometry::add_points() {
830  // @@protoc_insertion_point(field_add:ignition.msgs.Geometry.points)
831  return points_.Add();
832 }
833 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
835  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Geometry.points)
836  return &points_;
837 }
838 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
840  // @@protoc_insertion_point(field_list:ignition.msgs.Geometry.points)
841  return points_;
842 }
843 
844 // repeated .ignition.msgs.Polyline polyline = 12;
845 inline int Geometry::polyline_size() const {
846  return polyline_.size();
847 }
849  polyline_.Clear();
850 }
851 inline const ::ignition::msgs::Polyline& Geometry::polyline(int index) const {
852  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.polyline)
853  return polyline_.Get(index);
854 }
855 inline ::ignition::msgs::Polyline* Geometry::mutable_polyline(int index) {
856  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.polyline)
857  return polyline_.Mutable(index);
858 }
859 inline ::ignition::msgs::Polyline* Geometry::add_polyline() {
860  // @@protoc_insertion_point(field_add:ignition.msgs.Geometry.polyline)
861  return polyline_.Add();
862 }
863 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >*
865  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Geometry.polyline)
866  return &polyline_;
867 }
868 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >&
870  // @@protoc_insertion_point(field_list:ignition.msgs.Geometry.polyline)
871  return polyline_;
872 }
873 
874 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
875 
880 // @@protoc_insertion_point(namespace_scope)
881 
882 } // namespace msgs
883 } // namespace ignition
884 
885 #ifndef SWIG
886 namespace google {
887 namespace protobuf {
888 
889 template <> struct is_proto_enum< ::ignition::msgs::Geometry_Type> : ::google::protobuf::internal::true_type {};
890 template <>
891 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Geometry_Type>() {
893 }
894 
895 } // namespace protobuf
896 } // namespace google
897 #endif // SWIG
898 
899 #ifdef _MSC_VER
900 #pragma warning(pop)
901 #endif
902 // @@protoc_insertion_point(global_scope)
903 
904 #endif // PROTOBUF_ignition_2fmsgs_2fgeometry_2eproto__INCLUDED
const ::std::string & Geometry_Type_Name(Geometry_Type value)
Definition: geometry.pb.h:93
void clear_cylinder()
Definition: geometry.pb.h:476
::ignition::msgs::CapsuleGeom * mutable_capsule()
Definition: geometry.pb.h:750
Definition: planegeom.pb.h:58
::ignition::msgs::MeshGeom * mutable_mesh()
Definition: geometry.pb.h:674
void clear_type()
Definition: geometry.pb.h:421
void set_type(::ignition::msgs::Geometry_Type value)
Definition: geometry.pb.h:428
Definition: geometry.pb.h:70
void clear_box()
Definition: geometry.pb.h:438
::ignition::msgs::SphereGeom * release_sphere()
Definition: geometry.pb.h:568
bool has_box() const
Definition: geometry.pb.h:435
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & points() const
Definition: geometry.pb.h:839
Geometry & operator=(const Geometry &from)
Definition: geometry.pb.h:111
bool has_plane() const
Definition: geometry.pb.h:511
Definition: cylindergeom.pb.h:56
void set_allocated_heightmap(::ignition::msgs::HeightmapGeom *heightmap)
Definition: geometry.pb.h:651
void clear_image()
Definition: geometry.pb.h:590
Definition: geometry.pb.h:82
void clear_ellipsoid()
Definition: geometry.pb.h:780
::ignition::msgs::Header * mutable_header()
Definition: geometry.pb.h:394
::ignition::msgs::PlaneGeom * release_plane()
Definition: geometry.pb.h:530
Definition: geometry.pb.h:81
Definition: ellipsoidgeom.pb.h:57
bool has_header() const
Definition: geometry.pb.h:383
::ignition::msgs::ImageGeom * mutable_image()
Definition: geometry.pb.h:598
const ::ignition::msgs::Header & header() const
Definition: geometry.pb.h:390
std::unique_ptr< Geometry > GeometryUniquePtr
Definition: geometry.pb.h:876
const ::ignition::msgs::CylinderGeom & cylinder() const
Definition: geometry.pb.h:480
const Geometry_Type Geometry_Type_Type_MAX
Definition: geometry.pb.h:89
Geometry_Type
Definition: geometry.pb.h:67
Definition: geometry.pb.h:74
bool Geometry_Type_Parse(const ::std::string &name, Geometry_Type *value)
Definition: geometry.pb.h:97
Definition: geometry.pb.h:75
::ignition::msgs::BoxGeom * release_box()
Definition: geometry.pb.h:454
::ignition::msgs::Header * release_header()
Definition: geometry.pb.h:402
bool has_ellipsoid() const
Definition: geometry.pb.h:777
::ignition::msgs::ConeGeom * release_cone()
Definition: geometry.pb.h:720
::ignition::msgs::CylinderGeom * release_cylinder()
Definition: geometry.pb.h:492
void set_allocated_plane(::ignition::msgs::PlaneGeom *plane)
Definition: geometry.pb.h:537
void set_allocated_box(::ignition::msgs::BoxGeom *box)
Definition: geometry.pb.h:461
Definition: geometry.pb.h:71
::ignition::msgs::EllipsoidGeom * release_ellipsoid()
Definition: geometry.pb.h:796
Geometry * New() const
Definition: geometry.pb.h:123
Definition: capsulegeom.pb.h:56
Definition: geometry.pb.h:78
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > * mutable_polyline()
Definition: geometry.pb.h:864
bool has_sphere() const
Definition: geometry.pb.h:549
void set_allocated_image(::ignition::msgs::ImageGeom *image)
Definition: geometry.pb.h:613
void clear_plane()
Definition: geometry.pb.h:514
std::shared_ptr< Geometry > GeometrySharedPtr
Definition: geometry.pb.h:878
void clear_capsule()
Definition: geometry.pb.h:742
void protobuf_ShutdownFile_ignition_2fmsgs_2fgeometry_2eproto()
::ignition::msgs::CapsuleGeom * release_capsule()
Definition: geometry.pb.h:758
void clear_cone()
Definition: geometry.pb.h:704
Definition: geometry.pb.h:76
const Geometry_Type Geometry_Type_Type_MIN
Definition: geometry.pb.h:88
::ignition::msgs::Polyline * add_polyline()
Definition: geometry.pb.h:859
::ignition::msgs::Geometry_Type type() const
Definition: geometry.pb.h:424
::ignition::msgs::ConeGeom * mutable_cone()
Definition: geometry.pb.h:712
Definition: geometry.pb.h:73
Definition: header.pb.h:161
const ::ignition::msgs::HeightmapGeom & heightmap() const
Definition: geometry.pb.h:632
static const ::std::string & Type_Name(Type value)
Definition: geometry.pb.h:208
std::unique_ptr< const Geometry > ConstGeometryUniquePtr
Definition: geometry.pb.h:877
void clear_polyline()
Definition: geometry.pb.h:848
const ::ignition::msgs::CapsuleGeom & capsule() const
Definition: geometry.pb.h:746
const ::ignition::msgs::ImageGeom & image() const
Definition: geometry.pb.h:594
void clear_mesh()
Definition: geometry.pb.h:666
IGNITION_MSGS_VISIBLE bool Geometry_Type_IsValid(int value)
Definition: boxgeom.pb.h:57
Definition: geometry.pb.h:80
bool has_mesh() const
Definition: geometry.pb.h:663
Definition: imagegeom.pb.h:56
int GetCachedSize() const
Definition: geometry.pb.h:143
static bool Type_IsValid(int value)
Definition: geometry.pb.h:195
::ignition::msgs::Vector3d * add_points()
Definition: geometry.pb.h:829
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > & polyline() const
Definition: geometry.pb.h:869
Definition: geometry.pb.h:68
Definition: geometry.pb.h:69
::ignition::msgs::CylinderGeom * mutable_cylinder()
Definition: geometry.pb.h:484
Definition: geometry.pb.h:104
void clear_sphere()
Definition: geometry.pb.h:552
int polyline_size() const
Definition: geometry.pb.h:845
void clear_heightmap()
Definition: geometry.pb.h:628
void protobuf_AssignDesc_ignition_2fmsgs_2fgeometry_2eproto()
Definition: geometry.pb.h:77
Geometry_Type Type
Definition: geometry.pb.h:162
bool has_cone() const
Definition: geometry.pb.h:701
::ignition::msgs::SphereGeom * mutable_sphere()
Definition: geometry.pb.h:560
const ::ignition::msgs::EllipsoidGeom & ellipsoid() const
Definition: geometry.pb.h:784
::ignition::msgs::ImageGeom * release_image()
Definition: geometry.pb.h:606
void clear_points()
Definition: geometry.pb.h:818
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Geometry_Type_descriptor()
const ::ignition::msgs::PlaneGeom & plane() const
Definition: geometry.pb.h:518
Definition: heightmapgeom.pb.h:255
Definition: spheregeom.pb.h:56
Definition: meshgeom.pb.h:57
::ignition::msgs::BoxGeom * mutable_box()
Definition: geometry.pb.h:446
Definition: vector3d.pb.h:56
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: geometry.pb.h:211
void clear_header()
Definition: geometry.pb.h:386
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_points()
Definition: geometry.pb.h:834
Definition: conegeom.pb.h:56
::ignition::msgs::PlaneGeom * mutable_plane()
Definition: geometry.pb.h:522
void set_allocated_mesh(::ignition::msgs::MeshGeom *mesh)
Definition: geometry.pb.h:689
void set_allocated_sphere(::ignition::msgs::SphereGeom *sphere)
Definition: geometry.pb.h:575
Definition: polylinegeom.pb.h:57
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: geometry.pb.h:140
STL class.
const ::ignition::msgs::ConeGeom & cone() const
Definition: geometry.pb.h:708
const ::ignition::msgs::SphereGeom & sphere() const
Definition: geometry.pb.h:556
void set_allocated_cone(::ignition::msgs::ConeGeom *cone)
Definition: geometry.pb.h:727
Definition: geometry.pb.h:83
bool has_image() const
Definition: geometry.pb.h:587
::ignition::msgs::HeightmapGeom * mutable_heightmap()
Definition: geometry.pb.h:636
void set_allocated_capsule(::ignition::msgs::CapsuleGeom *capsule)
Definition: geometry.pb.h:765
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fgeometry_2eproto()
std::shared_ptr< const Geometry > ConstGeometrySharedPtr
Definition: geometry.pb.h:879
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: geometry.pb.h:205
bool has_capsule() const
Definition: geometry.pb.h:739
const ::ignition::msgs::BoxGeom & box() const
Definition: geometry.pb.h:442
Definition: any.pb.h:839
Definition: geometry.pb.h:79
::ignition::msgs::EllipsoidGeom * mutable_ellipsoid()
Definition: geometry.pb.h:788
void set_allocated_header(::ignition::msgs::Header *header)
Definition: geometry.pb.h:409
int points_size() const
Definition: geometry.pb.h:815
void set_allocated_ellipsoid(::ignition::msgs::EllipsoidGeom *ellipsoid)
Definition: geometry.pb.h:803
const ::ignition::msgs::MeshGeom & mesh() const
Definition: geometry.pb.h:670
Definition: geometry.pb.h:72
bool has_heightmap() const
Definition: geometry.pb.h:625
bool has_cylinder() const
Definition: geometry.pb.h:473
::ignition::msgs::HeightmapGeom * release_heightmap()
Definition: geometry.pb.h:644
const int Geometry_Type_Type_ARRAYSIZE
Definition: geometry.pb.h:90
void set_allocated_cylinder(::ignition::msgs::CylinderGeom *cylinder)
Definition: geometry.pb.h:499
::ignition::msgs::MeshGeom * release_mesh()
Definition: geometry.pb.h:682