Ignition Msgs

API Reference

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