Gazebo Msgs

API Reference

5.11.0
build/ignition-msgs5/include/ignition/msgs/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_INCLUDED_ignition_2fmsgs_2fgeometry_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fgeometry_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fgeometry_2eproto IGNITION_MSGS_VISIBLE
57 
59 // Internal implementation detail -- do not use these members.
60 struct IGNITION_MSGS_VISIBLE TableStruct {
61  static const ::google::protobuf::internal::ParseTableField entries[];
62  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
63  static const ::google::protobuf::internal::ParseTable schema[1];
64  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
65  static const ::google::protobuf::internal::SerializationTable serialization_table[];
66  static const ::google::protobuf::uint32 offsets[];
67 };
68 void IGNITION_MSGS_VISIBLE AddDescriptors();
69 } // namespace protobuf_ignition_2fmsgs_2fgeometry_2eproto
70 namespace ignition {
71 namespace msgs {
72 class Geometry;
73 class GeometryDefaultTypeInternal;
74 IGNITION_MSGS_VISIBLE extern GeometryDefaultTypeInternal _Geometry_default_instance_;
75 } // namespace msgs
76 } // namespace ignition
77 namespace google {
78 namespace protobuf {
79 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Geometry* Arena::CreateMaybeMessage<::ignition::msgs::Geometry>(Arena*);
80 } // namespace protobuf
81 } // namespace google
82 namespace ignition {
83 namespace msgs {
84 
99 };
100 IGNITION_MSGS_VISIBLE bool Geometry_Type_IsValid(int value);
104 
105 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Geometry_Type_descriptor();
106 inline const ::std::string& Geometry_Type_Name(Geometry_Type value) {
107  return ::google::protobuf::internal::NameOfEnum(
108  Geometry_Type_descriptor(), value);
109 }
111  const ::std::string& name, Geometry_Type* value) {
112  return ::google::protobuf::internal::ParseNamedEnum<Geometry_Type>(
113  Geometry_Type_descriptor(), name, value);
114 }
115 // ===================================================================
116 
117 class IGNITION_MSGS_VISIBLE Geometry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Geometry) */ {
118  public:
119  Geometry();
120  virtual ~Geometry();
121 
122  Geometry(const Geometry& from);
123 
124  inline Geometry& operator=(const Geometry& from) {
125  CopyFrom(from);
126  return *this;
127  }
128  #if LANG_CXX11
129  Geometry(Geometry&& from) noexcept
130  : Geometry() {
131  *this = ::std::move(from);
132  }
133 
134  inline Geometry& operator=(Geometry&& from) noexcept {
135  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
136  if (this != &from) InternalSwap(&from);
137  } else {
138  CopyFrom(from);
139  }
140  return *this;
141  }
142  #endif
143  static const ::google::protobuf::Descriptor* descriptor();
144  static const Geometry& default_instance();
145 
146  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
147  static inline const Geometry* internal_default_instance() {
148  return reinterpret_cast<const Geometry*>(
150  }
151  static constexpr int kIndexInFileMessages =
152  0;
153 
154  void Swap(Geometry* other);
155  friend void swap(Geometry& a, Geometry& b) {
156  a.Swap(&b);
157  }
158 
159  // implements Message ----------------------------------------------
160 
161  inline Geometry* New() const final {
162  return CreateMaybeMessage<Geometry>(NULL);
163  }
164 
165  Geometry* New(::google::protobuf::Arena* arena) const final {
166  return CreateMaybeMessage<Geometry>(arena);
167  }
168  void CopyFrom(const ::google::protobuf::Message& from) final;
169  void MergeFrom(const ::google::protobuf::Message& from) final;
170  void CopyFrom(const Geometry& from);
171  void MergeFrom(const Geometry& from);
172  void Clear() final;
173  bool IsInitialized() const final;
174 
175  size_t ByteSizeLong() const final;
176  bool MergePartialFromCodedStream(
177  ::google::protobuf::io::CodedInputStream* input) final;
178  void SerializeWithCachedSizes(
179  ::google::protobuf::io::CodedOutputStream* output) const final;
180  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
181  bool deterministic, ::google::protobuf::uint8* target) const final;
182  int GetCachedSize() const final { return _cached_size_.Get(); }
183 
184  private:
185  void SharedCtor();
186  void SharedDtor();
187  void SetCachedSize(int size) const final;
188  void InternalSwap(Geometry* other);
189  private:
190  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
191  return NULL;
192  }
193  inline void* MaybeArenaPtr() const {
194  return NULL;
195  }
196  public:
197 
198  ::google::protobuf::Metadata GetMetadata() const final;
199 
200  // nested types ----------------------------------------------------
201 
203  static const Type BOX =
205  static const Type CYLINDER =
207  static const Type SPHERE =
209  static const Type PLANE =
211  static const Type IMAGE =
213  static const Type HEIGHTMAP =
215  static const Type MESH =
217  static const Type TRIANGLE_FAN =
219  static const Type LINE_STRIP =
221  static const Type POLYLINE =
223  static const Type EMPTY =
225  static inline bool Type_IsValid(int value) {
226  return Geometry_Type_IsValid(value);
227  }
228  static const Type Type_MIN =
230  static const Type Type_MAX =
232  static const int Type_ARRAYSIZE =
234  static inline const ::google::protobuf::EnumDescriptor*
236  return Geometry_Type_descriptor();
237  }
238  static inline const ::std::string& Type_Name(Type value) {
239  return Geometry_Type_Name(value);
240  }
241  static inline bool Type_Parse(const ::std::string& name,
242  Type* value) {
243  return Geometry_Type_Parse(name, value);
244  }
245 
246  // accessors -------------------------------------------------------
247 
248  // repeated .ignition.msgs.Vector3d points = 10;
249  int points_size() const;
250  void clear_points();
251  static const int kPointsFieldNumber = 10;
252  ::ignition::msgs::Vector3d* mutable_points(int index);
253  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
254  mutable_points();
255  const ::ignition::msgs::Vector3d& points(int index) const;
256  ::ignition::msgs::Vector3d* add_points();
257  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
258  points() const;
259 
260  // repeated .ignition.msgs.Polyline polyline = 11;
261  int polyline_size() const;
262  void clear_polyline();
263  static const int kPolylineFieldNumber = 11;
264  ::ignition::msgs::Polyline* mutable_polyline(int index);
265  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >*
266  mutable_polyline();
267  const ::ignition::msgs::Polyline& polyline(int index) const;
268  ::ignition::msgs::Polyline* add_polyline();
269  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >&
270  polyline() const;
271 
272  // .ignition.msgs.Header header = 1;
273  bool has_header() const;
274  void clear_header();
275  static const int kHeaderFieldNumber = 1;
276  private:
277  const ::ignition::msgs::Header& _internal_header() const;
278  public:
279  const ::ignition::msgs::Header& header() const;
280  ::ignition::msgs::Header* release_header();
281  ::ignition::msgs::Header* mutable_header();
282  void set_allocated_header(::ignition::msgs::Header* header);
283 
284  // .ignition.msgs.BoxGeom box = 3;
285  bool has_box() const;
286  void clear_box();
287  static const int kBoxFieldNumber = 3;
288  private:
289  const ::ignition::msgs::BoxGeom& _internal_box() const;
290  public:
291  const ::ignition::msgs::BoxGeom& box() const;
292  ::ignition::msgs::BoxGeom* release_box();
293  ::ignition::msgs::BoxGeom* mutable_box();
294  void set_allocated_box(::ignition::msgs::BoxGeom* box);
295 
296  // .ignition.msgs.CylinderGeom cylinder = 4;
297  bool has_cylinder() const;
298  void clear_cylinder();
299  static const int kCylinderFieldNumber = 4;
300  private:
301  const ::ignition::msgs::CylinderGeom& _internal_cylinder() const;
302  public:
303  const ::ignition::msgs::CylinderGeom& cylinder() const;
304  ::ignition::msgs::CylinderGeom* release_cylinder();
305  ::ignition::msgs::CylinderGeom* mutable_cylinder();
306  void set_allocated_cylinder(::ignition::msgs::CylinderGeom* cylinder);
307 
308  // .ignition.msgs.PlaneGeom plane = 5;
309  bool has_plane() const;
310  void clear_plane();
311  static const int kPlaneFieldNumber = 5;
312  private:
313  const ::ignition::msgs::PlaneGeom& _internal_plane() const;
314  public:
315  const ::ignition::msgs::PlaneGeom& plane() const;
316  ::ignition::msgs::PlaneGeom* release_plane();
317  ::ignition::msgs::PlaneGeom* mutable_plane();
318  void set_allocated_plane(::ignition::msgs::PlaneGeom* plane);
319 
320  // .ignition.msgs.SphereGeom sphere = 6;
321  bool has_sphere() const;
322  void clear_sphere();
323  static const int kSphereFieldNumber = 6;
324  private:
325  const ::ignition::msgs::SphereGeom& _internal_sphere() const;
326  public:
327  const ::ignition::msgs::SphereGeom& sphere() const;
328  ::ignition::msgs::SphereGeom* release_sphere();
329  ::ignition::msgs::SphereGeom* mutable_sphere();
330  void set_allocated_sphere(::ignition::msgs::SphereGeom* sphere);
331 
332  // .ignition.msgs.ImageGeom image = 7;
333  bool has_image() const;
334  void clear_image();
335  static const int kImageFieldNumber = 7;
336  private:
337  const ::ignition::msgs::ImageGeom& _internal_image() const;
338  public:
339  const ::ignition::msgs::ImageGeom& image() const;
340  ::ignition::msgs::ImageGeom* release_image();
341  ::ignition::msgs::ImageGeom* mutable_image();
342  void set_allocated_image(::ignition::msgs::ImageGeom* image);
343 
344  // .ignition.msgs.HeightmapGeom heightmap = 8;
345  bool has_heightmap() const;
346  void clear_heightmap();
347  static const int kHeightmapFieldNumber = 8;
348  private:
349  const ::ignition::msgs::HeightmapGeom& _internal_heightmap() const;
350  public:
351  const ::ignition::msgs::HeightmapGeom& heightmap() const;
352  ::ignition::msgs::HeightmapGeom* release_heightmap();
353  ::ignition::msgs::HeightmapGeom* mutable_heightmap();
354  void set_allocated_heightmap(::ignition::msgs::HeightmapGeom* heightmap);
355 
356  // .ignition.msgs.MeshGeom mesh = 9;
357  bool has_mesh() const;
358  void clear_mesh();
359  static const int kMeshFieldNumber = 9;
360  private:
361  const ::ignition::msgs::MeshGeom& _internal_mesh() const;
362  public:
363  const ::ignition::msgs::MeshGeom& mesh() const;
364  ::ignition::msgs::MeshGeom* release_mesh();
365  ::ignition::msgs::MeshGeom* mutable_mesh();
366  void set_allocated_mesh(::ignition::msgs::MeshGeom* mesh);
367 
368  // .ignition.msgs.Geometry.Type type = 2;
369  void clear_type();
370  static const int kTypeFieldNumber = 2;
371  ::ignition::msgs::Geometry_Type type() const;
372  void set_type(::ignition::msgs::Geometry_Type value);
373 
374  // @@protoc_insertion_point(class_scope:ignition.msgs.Geometry)
375  private:
376 
377  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
378  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > points_;
379  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > polyline_;
380  ::ignition::msgs::Header* header_;
388  int type_;
389  mutable ::google::protobuf::internal::CachedSize _cached_size_;
390  friend struct ::protobuf_ignition_2fmsgs_2fgeometry_2eproto::TableStruct;
391 };
392 // ===================================================================
393 
394 
395 // ===================================================================
396 
397 #ifdef __GNUC__
398  #pragma GCC diagnostic push
399  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
400 #endif // __GNUC__
401 // Geometry
402 
403 // .ignition.msgs.Header header = 1;
404 inline bool Geometry::has_header() const {
405  return this != internal_default_instance() && header_ != NULL;
406 }
407 inline const ::ignition::msgs::Header& Geometry::_internal_header() const {
408  return *header_;
409 }
410 inline const ::ignition::msgs::Header& Geometry::header() const {
411  const ::ignition::msgs::Header* p = header_;
412  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.header)
413  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
415 }
416 inline ::ignition::msgs::Header* Geometry::release_header() {
417  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.header)
418 
419  ::ignition::msgs::Header* temp = header_;
420  header_ = NULL;
421  return temp;
422 }
423 inline ::ignition::msgs::Header* Geometry::mutable_header() {
424 
425  if (header_ == NULL) {
426  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
427  header_ = p;
428  }
429  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.header)
430  return header_;
431 }
433  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
434  if (message_arena == NULL) {
435  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
436  }
437  if (header) {
438  ::google::protobuf::Arena* submessage_arena = NULL;
439  if (message_arena != submessage_arena) {
440  header = ::google::protobuf::internal::GetOwnedMessage(
441  message_arena, header, submessage_arena);
442  }
443 
444  } else {
445 
446  }
447  header_ = header;
448  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.header)
449 }
450 
451 // .ignition.msgs.Geometry.Type type = 2;
452 inline void Geometry::clear_type() {
453  type_ = 0;
454 }
456  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.type)
457  return static_cast< ::ignition::msgs::Geometry_Type >(type_);
458 }
460 
461  type_ = value;
462  // @@protoc_insertion_point(field_set:ignition.msgs.Geometry.type)
463 }
464 
465 // .ignition.msgs.BoxGeom box = 3;
466 inline bool Geometry::has_box() const {
467  return this != internal_default_instance() && box_ != NULL;
468 }
469 inline const ::ignition::msgs::BoxGeom& Geometry::_internal_box() const {
470  return *box_;
471 }
472 inline const ::ignition::msgs::BoxGeom& Geometry::box() const {
473  const ::ignition::msgs::BoxGeom* p = box_;
474  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.box)
475  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::BoxGeom*>(
477 }
478 inline ::ignition::msgs::BoxGeom* Geometry::release_box() {
479  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.box)
480 
481  ::ignition::msgs::BoxGeom* temp = box_;
482  box_ = NULL;
483  return temp;
484 }
485 inline ::ignition::msgs::BoxGeom* Geometry::mutable_box() {
486 
487  if (box_ == NULL) {
488  auto* p = CreateMaybeMessage<::ignition::msgs::BoxGeom>(GetArenaNoVirtual());
489  box_ = p;
490  }
491  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.box)
492  return box_;
493 }
495  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
496  if (message_arena == NULL) {
497  delete reinterpret_cast< ::google::protobuf::MessageLite*>(box_);
498  }
499  if (box) {
500  ::google::protobuf::Arena* submessage_arena = NULL;
501  if (message_arena != submessage_arena) {
502  box = ::google::protobuf::internal::GetOwnedMessage(
503  message_arena, box, submessage_arena);
504  }
505 
506  } else {
507 
508  }
509  box_ = box;
510  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.box)
511 }
512 
513 // .ignition.msgs.CylinderGeom cylinder = 4;
514 inline bool Geometry::has_cylinder() const {
515  return this != internal_default_instance() && cylinder_ != NULL;
516 }
517 inline const ::ignition::msgs::CylinderGeom& Geometry::_internal_cylinder() const {
518  return *cylinder_;
519 }
520 inline const ::ignition::msgs::CylinderGeom& Geometry::cylinder() const {
521  const ::ignition::msgs::CylinderGeom* p = cylinder_;
522  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.cylinder)
523  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::CylinderGeom*>(
525 }
526 inline ::ignition::msgs::CylinderGeom* Geometry::release_cylinder() {
527  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.cylinder)
528 
529  ::ignition::msgs::CylinderGeom* temp = cylinder_;
530  cylinder_ = NULL;
531  return temp;
532 }
533 inline ::ignition::msgs::CylinderGeom* Geometry::mutable_cylinder() {
534 
535  if (cylinder_ == NULL) {
536  auto* p = CreateMaybeMessage<::ignition::msgs::CylinderGeom>(GetArenaNoVirtual());
537  cylinder_ = p;
538  }
539  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.cylinder)
540  return cylinder_;
541 }
543  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
544  if (message_arena == NULL) {
545  delete reinterpret_cast< ::google::protobuf::MessageLite*>(cylinder_);
546  }
547  if (cylinder) {
548  ::google::protobuf::Arena* submessage_arena = NULL;
549  if (message_arena != submessage_arena) {
550  cylinder = ::google::protobuf::internal::GetOwnedMessage(
551  message_arena, cylinder, submessage_arena);
552  }
553 
554  } else {
555 
556  }
557  cylinder_ = cylinder;
558  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.cylinder)
559 }
560 
561 // .ignition.msgs.PlaneGeom plane = 5;
562 inline bool Geometry::has_plane() const {
563  return this != internal_default_instance() && plane_ != NULL;
564 }
565 inline const ::ignition::msgs::PlaneGeom& Geometry::_internal_plane() const {
566  return *plane_;
567 }
568 inline const ::ignition::msgs::PlaneGeom& Geometry::plane() const {
569  const ::ignition::msgs::PlaneGeom* p = plane_;
570  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.plane)
571  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::PlaneGeom*>(
573 }
574 inline ::ignition::msgs::PlaneGeom* Geometry::release_plane() {
575  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.plane)
576 
577  ::ignition::msgs::PlaneGeom* temp = plane_;
578  plane_ = NULL;
579  return temp;
580 }
581 inline ::ignition::msgs::PlaneGeom* Geometry::mutable_plane() {
582 
583  if (plane_ == NULL) {
584  auto* p = CreateMaybeMessage<::ignition::msgs::PlaneGeom>(GetArenaNoVirtual());
585  plane_ = p;
586  }
587  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.plane)
588  return plane_;
589 }
591  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
592  if (message_arena == NULL) {
593  delete reinterpret_cast< ::google::protobuf::MessageLite*>(plane_);
594  }
595  if (plane) {
596  ::google::protobuf::Arena* submessage_arena = NULL;
597  if (message_arena != submessage_arena) {
598  plane = ::google::protobuf::internal::GetOwnedMessage(
599  message_arena, plane, submessage_arena);
600  }
601 
602  } else {
603 
604  }
605  plane_ = plane;
606  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.plane)
607 }
608 
609 // .ignition.msgs.SphereGeom sphere = 6;
610 inline bool Geometry::has_sphere() const {
611  return this != internal_default_instance() && sphere_ != NULL;
612 }
613 inline const ::ignition::msgs::SphereGeom& Geometry::_internal_sphere() const {
614  return *sphere_;
615 }
616 inline const ::ignition::msgs::SphereGeom& Geometry::sphere() const {
617  const ::ignition::msgs::SphereGeom* p = sphere_;
618  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.sphere)
619  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::SphereGeom*>(
621 }
622 inline ::ignition::msgs::SphereGeom* Geometry::release_sphere() {
623  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.sphere)
624 
625  ::ignition::msgs::SphereGeom* temp = sphere_;
626  sphere_ = NULL;
627  return temp;
628 }
629 inline ::ignition::msgs::SphereGeom* Geometry::mutable_sphere() {
630 
631  if (sphere_ == NULL) {
632  auto* p = CreateMaybeMessage<::ignition::msgs::SphereGeom>(GetArenaNoVirtual());
633  sphere_ = p;
634  }
635  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.sphere)
636  return sphere_;
637 }
639  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
640  if (message_arena == NULL) {
641  delete reinterpret_cast< ::google::protobuf::MessageLite*>(sphere_);
642  }
643  if (sphere) {
644  ::google::protobuf::Arena* submessage_arena = NULL;
645  if (message_arena != submessage_arena) {
646  sphere = ::google::protobuf::internal::GetOwnedMessage(
647  message_arena, sphere, submessage_arena);
648  }
649 
650  } else {
651 
652  }
653  sphere_ = sphere;
654  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.sphere)
655 }
656 
657 // .ignition.msgs.ImageGeom image = 7;
658 inline bool Geometry::has_image() const {
659  return this != internal_default_instance() && image_ != NULL;
660 }
661 inline const ::ignition::msgs::ImageGeom& Geometry::_internal_image() const {
662  return *image_;
663 }
664 inline const ::ignition::msgs::ImageGeom& Geometry::image() const {
665  const ::ignition::msgs::ImageGeom* p = image_;
666  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.image)
667  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::ImageGeom*>(
669 }
670 inline ::ignition::msgs::ImageGeom* Geometry::release_image() {
671  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.image)
672 
673  ::ignition::msgs::ImageGeom* temp = image_;
674  image_ = NULL;
675  return temp;
676 }
677 inline ::ignition::msgs::ImageGeom* Geometry::mutable_image() {
678 
679  if (image_ == NULL) {
680  auto* p = CreateMaybeMessage<::ignition::msgs::ImageGeom>(GetArenaNoVirtual());
681  image_ = p;
682  }
683  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.image)
684  return image_;
685 }
687  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
688  if (message_arena == NULL) {
689  delete reinterpret_cast< ::google::protobuf::MessageLite*>(image_);
690  }
691  if (image) {
692  ::google::protobuf::Arena* submessage_arena = NULL;
693  if (message_arena != submessage_arena) {
694  image = ::google::protobuf::internal::GetOwnedMessage(
695  message_arena, image, submessage_arena);
696  }
697 
698  } else {
699 
700  }
701  image_ = image;
702  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.image)
703 }
704 
705 // .ignition.msgs.HeightmapGeom heightmap = 8;
706 inline bool Geometry::has_heightmap() const {
707  return this != internal_default_instance() && heightmap_ != NULL;
708 }
709 inline const ::ignition::msgs::HeightmapGeom& Geometry::_internal_heightmap() const {
710  return *heightmap_;
711 }
712 inline const ::ignition::msgs::HeightmapGeom& Geometry::heightmap() const {
713  const ::ignition::msgs::HeightmapGeom* p = heightmap_;
714  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.heightmap)
715  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::HeightmapGeom*>(
717 }
718 inline ::ignition::msgs::HeightmapGeom* Geometry::release_heightmap() {
719  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.heightmap)
720 
721  ::ignition::msgs::HeightmapGeom* temp = heightmap_;
722  heightmap_ = NULL;
723  return temp;
724 }
725 inline ::ignition::msgs::HeightmapGeom* Geometry::mutable_heightmap() {
726 
727  if (heightmap_ == NULL) {
728  auto* p = CreateMaybeMessage<::ignition::msgs::HeightmapGeom>(GetArenaNoVirtual());
729  heightmap_ = p;
730  }
731  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.heightmap)
732  return heightmap_;
733 }
735  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
736  if (message_arena == NULL) {
737  delete reinterpret_cast< ::google::protobuf::MessageLite*>(heightmap_);
738  }
739  if (heightmap) {
740  ::google::protobuf::Arena* submessage_arena = NULL;
741  if (message_arena != submessage_arena) {
742  heightmap = ::google::protobuf::internal::GetOwnedMessage(
743  message_arena, heightmap, submessage_arena);
744  }
745 
746  } else {
747 
748  }
749  heightmap_ = heightmap;
750  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.heightmap)
751 }
752 
753 // .ignition.msgs.MeshGeom mesh = 9;
754 inline bool Geometry::has_mesh() const {
755  return this != internal_default_instance() && mesh_ != NULL;
756 }
757 inline const ::ignition::msgs::MeshGeom& Geometry::_internal_mesh() const {
758  return *mesh_;
759 }
760 inline const ::ignition::msgs::MeshGeom& Geometry::mesh() const {
761  const ::ignition::msgs::MeshGeom* p = mesh_;
762  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.mesh)
763  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::MeshGeom*>(
765 }
766 inline ::ignition::msgs::MeshGeom* Geometry::release_mesh() {
767  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.mesh)
768 
769  ::ignition::msgs::MeshGeom* temp = mesh_;
770  mesh_ = NULL;
771  return temp;
772 }
773 inline ::ignition::msgs::MeshGeom* Geometry::mutable_mesh() {
774 
775  if (mesh_ == NULL) {
776  auto* p = CreateMaybeMessage<::ignition::msgs::MeshGeom>(GetArenaNoVirtual());
777  mesh_ = p;
778  }
779  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.mesh)
780  return mesh_;
781 }
783  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
784  if (message_arena == NULL) {
785  delete reinterpret_cast< ::google::protobuf::MessageLite*>(mesh_);
786  }
787  if (mesh) {
788  ::google::protobuf::Arena* submessage_arena = NULL;
789  if (message_arena != submessage_arena) {
790  mesh = ::google::protobuf::internal::GetOwnedMessage(
791  message_arena, mesh, submessage_arena);
792  }
793 
794  } else {
795 
796  }
797  mesh_ = mesh;
798  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.mesh)
799 }
800 
801 // repeated .ignition.msgs.Vector3d points = 10;
802 inline int Geometry::points_size() const {
803  return points_.size();
804 }
805 inline ::ignition::msgs::Vector3d* Geometry::mutable_points(int index) {
806  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.points)
807  return points_.Mutable(index);
808 }
809 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
811  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Geometry.points)
812  return &points_;
813 }
814 inline const ::ignition::msgs::Vector3d& Geometry::points(int index) const {
815  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.points)
816  return points_.Get(index);
817 }
818 inline ::ignition::msgs::Vector3d* Geometry::add_points() {
819  // @@protoc_insertion_point(field_add:ignition.msgs.Geometry.points)
820  return points_.Add();
821 }
822 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
824  // @@protoc_insertion_point(field_list:ignition.msgs.Geometry.points)
825  return points_;
826 }
827 
828 // repeated .ignition.msgs.Polyline polyline = 11;
829 inline int Geometry::polyline_size() const {
830  return polyline_.size();
831 }
832 inline ::ignition::msgs::Polyline* Geometry::mutable_polyline(int index) {
833  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.polyline)
834  return polyline_.Mutable(index);
835 }
836 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >*
838  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Geometry.polyline)
839  return &polyline_;
840 }
841 inline const ::ignition::msgs::Polyline& Geometry::polyline(int index) const {
842  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.polyline)
843  return polyline_.Get(index);
844 }
845 inline ::ignition::msgs::Polyline* Geometry::add_polyline() {
846  // @@protoc_insertion_point(field_add:ignition.msgs.Geometry.polyline)
847  return polyline_.Add();
848 }
849 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >&
851  // @@protoc_insertion_point(field_list:ignition.msgs.Geometry.polyline)
852  return polyline_;
853 }
854 
855 #ifdef __GNUC__
856  #pragma GCC diagnostic pop
857 #endif // __GNUC__
858 
863 // @@protoc_insertion_point(namespace_scope)
864 
865 } // namespace msgs
866 } // namespace ignition
867 
868 namespace google {
869 namespace protobuf {
870 
871 template <> struct is_proto_enum< ::ignition::msgs::Geometry_Type> : ::std::true_type {};
872 template <>
873 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Geometry_Type>() {
875 }
876 
877 } // namespace protobuf
878 } // namespace google
879 
880 #ifdef _MSC_VER
881 #pragma warning(pop)
882 #endif
883 // @@protoc_insertion_point(global_scope)
884 
885 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fgeometry_2eproto
std::shared_ptr< Geometry > GeometrySharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:861
IGNITION_MSGS_VISIBLE ImageGeomDefaultTypeInternal _ImageGeom_default_instance_
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > & polyline() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:850
Geometry * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:161
::ignition::msgs::Vector3d * add_points()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:818
IGNITION_MSGS_VISIBLE bool Geometry_Type_IsValid(int value)
STL class.
int polyline_size() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:829
::ignition::msgs::SphereGeom * mutable_sphere()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:629
::ignition::msgs::BoxGeom * mutable_box()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:485
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:241
::ignition::msgs::ImageGeom * release_image()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:670
Definition: build/ignition-msgs5/include/ignition/msgs/vector3d.pb.h:77
IGNITION_MSGS_VISIBLE PlaneGeomDefaultTypeInternal _PlaneGeom_default_instance_
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_points()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:810
::ignition::msgs::PlaneGeom * mutable_plane()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:581
const ::ignition::msgs::PlaneGeom & plane() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:568
@ Geometry_Type_IMAGE
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:90
Definition: build/ignition-msgs5/include/ignition/msgs/planegeom.pb.h:79
Definition: build/ignition-msgs5/include/ignition/msgs/polylinegeom.pb.h:78
@ Geometry_Type_Geometry_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:97
::ignition::msgs::HeightmapGeom * mutable_heightmap()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:725
Definition: build/ignition-msgs5/include/ignition/msgs/boxgeom.pb.h:78
void set_allocated_mesh(::ignition::msgs::MeshGeom *mesh)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:782
void set_allocated_sphere(::ignition::msgs::SphereGeom *sphere)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:638
bool Geometry_Type_Parse(const ::std::string &name, Geometry_Type *value)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:110
Geometry_Type
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:85
@ Geometry_Type_CYLINDER
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:87
const ::ignition::msgs::SphereGeom & sphere() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:616
@ Geometry_Type_MESH
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:92
@ Geometry_Type_Geometry_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:98
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:432
IGNITION_MSGS_VISIBLE SphereGeomDefaultTypeInternal _SphereGeom_default_instance_
bool has_image() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:658
const Geometry_Type Geometry_Type_Type_MAX
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:102
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:235
bool has_heightmap() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:706
@ Geometry_Type_SPHERE
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:88
Definition: build/ignition-msgs5/include/ignition/msgs/imagegeom.pb.h:77
const ::ignition::msgs::BoxGeom & box() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:472
int points_size() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:802
const ::ignition::msgs::MeshGeom & mesh() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:760
::ignition::msgs::MeshGeom * release_mesh()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:766
void set_allocated_cylinder(::ignition::msgs::CylinderGeom *cylinder)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:542
std::unique_ptr< Geometry > GeometryUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:859
bool has_cylinder() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:514
::ignition::msgs::HeightmapGeom * release_heightmap()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:718
@ Geometry_Type_PLANE
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:89
IGNITION_MSGS_VISIBLE BoxGeomDefaultTypeInternal _BoxGeom_default_instance_
Definition: build/ignition-msgs5/include/ignition/msgs/cylindergeom.pb.h:77
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & points() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:823
Geometry & operator=(const Geometry &from)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:124
::ignition::msgs::PlaneGeom * release_plane()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:574
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:423
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:60
::ignition::msgs::MeshGeom * mutable_mesh()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:773
void clear_type()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:452
IGNITION_MSGS_VISIBLE MeshGeomDefaultTypeInternal _MeshGeom_default_instance_
std::unique_ptr< const Geometry > ConstGeometryUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:860
Definition: build/ignition-msgs5/include/ignition/msgs/meshgeom.pb.h:78
bool has_plane() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:562
void set_type(::ignition::msgs::Geometry_Type value)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:459
::ignition::msgs::BoxGeom * release_box()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:478
void set_allocated_heightmap(::ignition::msgs::HeightmapGeom *heightmap)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:734
bool has_box() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:466
::ignition::msgs::SphereGeom * release_sphere()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:622
static const Geometry * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:147
std::shared_ptr< const Geometry > ConstGeometrySharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:862
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:117
IGNITION_MSGS_VISIBLE HeightmapGeomDefaultTypeInternal _HeightmapGeom_default_instance_
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:404
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:410
::ignition::msgs::ImageGeom * mutable_image()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:677
void set_allocated_box(::ignition::msgs::BoxGeom *box)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:494
void Swap(Geometry *other)
bool has_sphere() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:610
const ::ignition::msgs::CylinderGeom & cylinder() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:520
const ::std::string & Geometry_Type_Name(Geometry_Type value)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:106
@ Geometry_Type_LINE_STRIP
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:94
@ Geometry_Type_EMPTY
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:96
@ Geometry_Type_HEIGHTMAP
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:91
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
Definition: build/ignition-msgs5/include/ignition/msgs/heightmapgeom.pb.h:330
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:416
const int Geometry_Type_Type_ARRAYSIZE
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:103
Definition: build/ignition-msgs5/include/ignition/msgs/spheregeom.pb.h:77
Definition: build/ignition-msgs5/include/ignition/msgs/header.pb.h:215
IGNITION_MSGS_VISIBLE CylinderGeomDefaultTypeInternal _CylinderGeom_default_instance_
::ignition::msgs::CylinderGeom * release_cylinder()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:526
void set_allocated_plane(::ignition::msgs::PlaneGeom *plane)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:590
IGNITION_MSGS_VISIBLE GeometryDefaultTypeInternal _Geometry_default_instance_
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > * mutable_polyline()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:837
@ Geometry_Type_POLYLINE
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:95
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * Geometry_Type_descriptor()
void set_allocated_image(::ignition::msgs::ImageGeom *image)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:686
static const ::std::string & Type_Name(Type value)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:238
@ Geometry_Type_BOX
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:86
const ::ignition::msgs::ImageGeom & image() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:664
Geometry * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:165
::ignition::msgs::Polyline * add_polyline()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:845
STL class.
::ignition::msgs::Geometry_Type type() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:455
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:58
const Geometry_Type Geometry_Type_Type_MIN
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:101
const ::ignition::msgs::HeightmapGeom & heightmap() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:712
friend void swap(Geometry &a, Geometry &b)
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:155
::ignition::msgs::CylinderGeom * mutable_cylinder()
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:533
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
void IGNITION_MSGS_VISIBLE AddDescriptors()
@ Geometry_Type_TRIANGLE_FAN
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:93
bool has_mesh() const
Definition: build/ignition-msgs5/include/ignition/msgs/geometry.pb.h:754