Gazebo Msgs

API Reference

9.5.1
geometry.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/geometry.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fgeometry_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
34 #include "gz/msgs/boxgeom.pb.h"
35 #include "gz/msgs/capsulegeom.pb.h"
36 #include "gz/msgs/conegeom.pb.h"
37 #include "gz/msgs/cylindergeom.pb.h"
38 #include "gz/msgs/ellipsoidgeom.pb.h"
39 #include "gz/msgs/header.pb.h"
40 #include "gz/msgs/heightmapgeom.pb.h"
41 #include "gz/msgs/imagegeom.pb.h"
42 #include "gz/msgs/meshgeom.pb.h"
43 #include "gz/msgs/planegeom.pb.h"
44 #include "gz/msgs/polylinegeom.pb.h"
45 #include "gz/msgs/spheregeom.pb.h"
46 #include "gz/msgs/vector3d.pb.h"
47 // @@protoc_insertion_point(includes)
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fgeometry_2eproto GZ_MSGS_VISIBLE
49 
51 // Internal implementation detail -- do not use these members.
52 struct GZ_MSGS_VISIBLE TableStruct {
53  static const ::google::protobuf::internal::ParseTableField entries[];
54  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55  static const ::google::protobuf::internal::ParseTable schema[1];
56  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57  static const ::google::protobuf::internal::SerializationTable serialization_table[];
58  static const ::google::protobuf::uint32 offsets[];
59 };
60 void GZ_MSGS_VISIBLE AddDescriptors();
61 } // namespace protobuf_gz_2fmsgs_2fgeometry_2eproto
62 namespace gz {
63 namespace msgs {
64 class Geometry;
65 class GeometryDefaultTypeInternal;
66 GZ_MSGS_VISIBLE extern GeometryDefaultTypeInternal _Geometry_default_instance_;
67 } // namespace msgs
68 } // namespace gz
69 namespace google {
70 namespace protobuf {
71 template<> GZ_MSGS_VISIBLE ::gz::msgs::Geometry* Arena::CreateMaybeMessage<::gz::msgs::Geometry>(Arena*);
72 } // namespace protobuf
73 } // namespace google
74 namespace gz {
75 namespace msgs {
76 
96 };
97 GZ_MSGS_VISIBLE bool Geometry_Type_IsValid(int value);
101 
102 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Geometry_Type_descriptor();
103 inline const ::std::string& Geometry_Type_Name(Geometry_Type value) {
104  return ::google::protobuf::internal::NameOfEnum(
105  Geometry_Type_descriptor(), value);
106 }
108  const ::std::string& name, Geometry_Type* value) {
109  return ::google::protobuf::internal::ParseNamedEnum<Geometry_Type>(
110  Geometry_Type_descriptor(), name, value);
111 }
112 // ===================================================================
113 
114 class GZ_MSGS_VISIBLE Geometry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Geometry) */ {
115  public:
116  Geometry();
117  virtual ~Geometry();
118 
119  Geometry(const Geometry& from);
120 
121  inline Geometry& operator=(const Geometry& from) {
122  CopyFrom(from);
123  return *this;
124  }
125  #if LANG_CXX11
126  Geometry(Geometry&& from) noexcept
127  : Geometry() {
128  *this = ::std::move(from);
129  }
130 
131  inline Geometry& operator=(Geometry&& from) noexcept {
132  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
133  if (this != &from) InternalSwap(&from);
134  } else {
135  CopyFrom(from);
136  }
137  return *this;
138  }
139  #endif
140  static const ::google::protobuf::Descriptor* descriptor();
141  static const Geometry& default_instance();
142 
143  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
144  static inline const Geometry* internal_default_instance() {
145  return reinterpret_cast<const Geometry*>(
147  }
148  static constexpr int kIndexInFileMessages =
149  0;
150 
151  void Swap(Geometry* other);
152  friend void swap(Geometry& a, Geometry& b) {
153  a.Swap(&b);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  inline Geometry* New() const final {
159  return CreateMaybeMessage<Geometry>(NULL);
160  }
161 
162  Geometry* New(::google::protobuf::Arena* arena) const final {
163  return CreateMaybeMessage<Geometry>(arena);
164  }
165  void CopyFrom(const ::google::protobuf::Message& from) final;
166  void MergeFrom(const ::google::protobuf::Message& from) final;
167  void CopyFrom(const Geometry& from);
168  void MergeFrom(const Geometry& from);
169  void Clear() final;
170  bool IsInitialized() const final;
171 
172  size_t ByteSizeLong() const final;
173  bool MergePartialFromCodedStream(
174  ::google::protobuf::io::CodedInputStream* input) final;
175  void SerializeWithCachedSizes(
176  ::google::protobuf::io::CodedOutputStream* output) const final;
177  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
178  bool deterministic, ::google::protobuf::uint8* target) const final;
179  int GetCachedSize() const final { return _cached_size_.Get(); }
180 
181  private:
182  void SharedCtor();
183  void SharedDtor();
184  void SetCachedSize(int size) const final;
185  void InternalSwap(Geometry* other);
186  private:
187  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
188  return NULL;
189  }
190  inline void* MaybeArenaPtr() const {
191  return NULL;
192  }
193  public:
194 
195  ::google::protobuf::Metadata GetMetadata() const final;
196 
197  // nested types ----------------------------------------------------
198 
200  static const Type BOX =
202  static const Type CYLINDER =
204  static const Type SPHERE =
206  static const Type PLANE =
208  static const Type IMAGE =
210  static const Type HEIGHTMAP =
212  static const Type MESH =
214  static const Type TRIANGLE_FAN =
216  static const Type LINE_STRIP =
218  static const Type POLYLINE =
220  static const Type CONE =
222  static const Type EMPTY =
224  static const Type ARROW =
226  static const Type AXIS =
228  static const Type CAPSULE =
230  static const Type ELLIPSOID =
232  static inline bool Type_IsValid(int value) {
233  return Geometry_Type_IsValid(value);
234  }
235  static const Type Type_MIN =
237  static const Type Type_MAX =
239  static const int Type_ARRAYSIZE =
241  static inline const ::google::protobuf::EnumDescriptor*
243  return Geometry_Type_descriptor();
244  }
245  static inline const ::std::string& Type_Name(Type value) {
246  return Geometry_Type_Name(value);
247  }
248  static inline bool Type_Parse(const ::std::string& name,
249  Type* value) {
250  return Geometry_Type_Parse(name, value);
251  }
252 
253  // accessors -------------------------------------------------------
254 
255  // repeated .gz.msgs.Vector3d points = 11;
256  int points_size() const;
257  void clear_points();
258  static const int kPointsFieldNumber = 11;
259  ::gz::msgs::Vector3d* mutable_points(int index);
260  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
261  mutable_points();
262  const ::gz::msgs::Vector3d& points(int index) const;
263  ::gz::msgs::Vector3d* add_points();
264  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
265  points() const;
266 
267  // repeated .gz.msgs.Polyline polyline = 12;
268  int polyline_size() const;
269  void clear_polyline();
270  static const int kPolylineFieldNumber = 12;
271  ::gz::msgs::Polyline* mutable_polyline(int index);
272  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline >*
273  mutable_polyline();
274  const ::gz::msgs::Polyline& polyline(int index) const;
275  ::gz::msgs::Polyline* add_polyline();
276  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline >&
277  polyline() const;
278 
279  // .gz.msgs.Header header = 1;
280  bool has_header() const;
281  void clear_header();
282  static const int kHeaderFieldNumber = 1;
283  private:
284  const ::gz::msgs::Header& _internal_header() const;
285  public:
286  const ::gz::msgs::Header& header() const;
287  ::gz::msgs::Header* release_header();
288  ::gz::msgs::Header* mutable_header();
289  void set_allocated_header(::gz::msgs::Header* header);
290 
291  // .gz.msgs.BoxGeom box = 3;
292  bool has_box() const;
293  void clear_box();
294  static const int kBoxFieldNumber = 3;
295  private:
296  const ::gz::msgs::BoxGeom& _internal_box() const;
297  public:
298  const ::gz::msgs::BoxGeom& box() const;
299  ::gz::msgs::BoxGeom* release_box();
300  ::gz::msgs::BoxGeom* mutable_box();
301  void set_allocated_box(::gz::msgs::BoxGeom* box);
302 
303  // .gz.msgs.CylinderGeom cylinder = 4;
304  bool has_cylinder() const;
305  void clear_cylinder();
306  static const int kCylinderFieldNumber = 4;
307  private:
308  const ::gz::msgs::CylinderGeom& _internal_cylinder() const;
309  public:
310  const ::gz::msgs::CylinderGeom& cylinder() const;
311  ::gz::msgs::CylinderGeom* release_cylinder();
312  ::gz::msgs::CylinderGeom* mutable_cylinder();
313  void set_allocated_cylinder(::gz::msgs::CylinderGeom* cylinder);
314 
315  // .gz.msgs.PlaneGeom plane = 5;
316  bool has_plane() const;
317  void clear_plane();
318  static const int kPlaneFieldNumber = 5;
319  private:
320  const ::gz::msgs::PlaneGeom& _internal_plane() const;
321  public:
322  const ::gz::msgs::PlaneGeom& plane() const;
323  ::gz::msgs::PlaneGeom* release_plane();
324  ::gz::msgs::PlaneGeom* mutable_plane();
325  void set_allocated_plane(::gz::msgs::PlaneGeom* plane);
326 
327  // .gz.msgs.SphereGeom sphere = 6;
328  bool has_sphere() const;
329  void clear_sphere();
330  static const int kSphereFieldNumber = 6;
331  private:
332  const ::gz::msgs::SphereGeom& _internal_sphere() const;
333  public:
334  const ::gz::msgs::SphereGeom& sphere() const;
335  ::gz::msgs::SphereGeom* release_sphere();
336  ::gz::msgs::SphereGeom* mutable_sphere();
337  void set_allocated_sphere(::gz::msgs::SphereGeom* sphere);
338 
339  // .gz.msgs.ImageGeom image = 7;
340  bool has_image() const;
341  void clear_image();
342  static const int kImageFieldNumber = 7;
343  private:
344  const ::gz::msgs::ImageGeom& _internal_image() const;
345  public:
346  const ::gz::msgs::ImageGeom& image() const;
347  ::gz::msgs::ImageGeom* release_image();
348  ::gz::msgs::ImageGeom* mutable_image();
349  void set_allocated_image(::gz::msgs::ImageGeom* image);
350 
351  // .gz.msgs.HeightmapGeom heightmap = 8;
352  bool has_heightmap() const;
353  void clear_heightmap();
354  static const int kHeightmapFieldNumber = 8;
355  private:
356  const ::gz::msgs::HeightmapGeom& _internal_heightmap() const;
357  public:
358  const ::gz::msgs::HeightmapGeom& heightmap() const;
359  ::gz::msgs::HeightmapGeom* release_heightmap();
360  ::gz::msgs::HeightmapGeom* mutable_heightmap();
361  void set_allocated_heightmap(::gz::msgs::HeightmapGeom* heightmap);
362 
363  // .gz.msgs.MeshGeom mesh = 9;
364  bool has_mesh() const;
365  void clear_mesh();
366  static const int kMeshFieldNumber = 9;
367  private:
368  const ::gz::msgs::MeshGeom& _internal_mesh() const;
369  public:
370  const ::gz::msgs::MeshGeom& mesh() const;
371  ::gz::msgs::MeshGeom* release_mesh();
372  ::gz::msgs::MeshGeom* mutable_mesh();
373  void set_allocated_mesh(::gz::msgs::MeshGeom* mesh);
374 
375  // .gz.msgs.ConeGeom cone = 10;
376  bool has_cone() const;
377  void clear_cone();
378  static const int kConeFieldNumber = 10;
379  private:
380  const ::gz::msgs::ConeGeom& _internal_cone() const;
381  public:
382  const ::gz::msgs::ConeGeom& cone() const;
383  ::gz::msgs::ConeGeom* release_cone();
384  ::gz::msgs::ConeGeom* mutable_cone();
385  void set_allocated_cone(::gz::msgs::ConeGeom* cone);
386 
387  // .gz.msgs.CapsuleGeom capsule = 13;
388  bool has_capsule() const;
389  void clear_capsule();
390  static const int kCapsuleFieldNumber = 13;
391  private:
392  const ::gz::msgs::CapsuleGeom& _internal_capsule() const;
393  public:
394  const ::gz::msgs::CapsuleGeom& capsule() const;
395  ::gz::msgs::CapsuleGeom* release_capsule();
396  ::gz::msgs::CapsuleGeom* mutable_capsule();
397  void set_allocated_capsule(::gz::msgs::CapsuleGeom* capsule);
398 
399  // .gz.msgs.EllipsoidGeom ellipsoid = 14;
400  bool has_ellipsoid() const;
401  void clear_ellipsoid();
402  static const int kEllipsoidFieldNumber = 14;
403  private:
404  const ::gz::msgs::EllipsoidGeom& _internal_ellipsoid() const;
405  public:
406  const ::gz::msgs::EllipsoidGeom& ellipsoid() const;
407  ::gz::msgs::EllipsoidGeom* release_ellipsoid();
408  ::gz::msgs::EllipsoidGeom* mutable_ellipsoid();
409  void set_allocated_ellipsoid(::gz::msgs::EllipsoidGeom* ellipsoid);
410 
411  // .gz.msgs.Geometry.Type type = 2;
412  void clear_type();
413  static const int kTypeFieldNumber = 2;
414  ::gz::msgs::Geometry_Type type() const;
415  void set_type(::gz::msgs::Geometry_Type value);
416 
417  // @@protoc_insertion_point(class_scope:gz.msgs.Geometry)
418  private:
419 
420  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
421  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d > points_;
422  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline > polyline_;
423  ::gz::msgs::Header* header_;
424  ::gz::msgs::BoxGeom* box_;
425  ::gz::msgs::CylinderGeom* cylinder_;
426  ::gz::msgs::PlaneGeom* plane_;
427  ::gz::msgs::SphereGeom* sphere_;
428  ::gz::msgs::ImageGeom* image_;
429  ::gz::msgs::HeightmapGeom* heightmap_;
430  ::gz::msgs::MeshGeom* mesh_;
431  ::gz::msgs::ConeGeom* cone_;
432  ::gz::msgs::CapsuleGeom* capsule_;
433  ::gz::msgs::EllipsoidGeom* ellipsoid_;
434  int type_;
435  mutable ::google::protobuf::internal::CachedSize _cached_size_;
436  friend struct ::protobuf_gz_2fmsgs_2fgeometry_2eproto::TableStruct;
437 };
438 // ===================================================================
439 
440 
441 // ===================================================================
442 
443 #ifdef __GNUC__
444  #pragma GCC diagnostic push
445  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
446 #endif // __GNUC__
447 // Geometry
448 
449 // .gz.msgs.Header header = 1;
450 inline bool Geometry::has_header() const {
451  return this != internal_default_instance() && header_ != NULL;
452 }
453 inline const ::gz::msgs::Header& Geometry::_internal_header() const {
454  return *header_;
455 }
456 inline const ::gz::msgs::Header& Geometry::header() const {
457  const ::gz::msgs::Header* p = header_;
458  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.header)
459  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
461 }
462 inline ::gz::msgs::Header* Geometry::release_header() {
463  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.header)
464 
465  ::gz::msgs::Header* temp = header_;
466  header_ = NULL;
467  return temp;
468 }
469 inline ::gz::msgs::Header* Geometry::mutable_header() {
470 
471  if (header_ == NULL) {
472  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
473  header_ = p;
474  }
475  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.header)
476  return header_;
477 }
479  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
480  if (message_arena == NULL) {
481  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
482  }
483  if (header) {
484  ::google::protobuf::Arena* submessage_arena = NULL;
485  if (message_arena != submessage_arena) {
486  header = ::google::protobuf::internal::GetOwnedMessage(
487  message_arena, header, submessage_arena);
488  }
489 
490  } else {
491 
492  }
493  header_ = header;
494  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.header)
495 }
496 
497 // .gz.msgs.Geometry.Type type = 2;
498 inline void Geometry::clear_type() {
499  type_ = 0;
500 }
502  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.type)
503  return static_cast< ::gz::msgs::Geometry_Type >(type_);
504 }
506 
507  type_ = value;
508  // @@protoc_insertion_point(field_set:gz.msgs.Geometry.type)
509 }
510 
511 // .gz.msgs.BoxGeom box = 3;
512 inline bool Geometry::has_box() const {
513  return this != internal_default_instance() && box_ != NULL;
514 }
515 inline const ::gz::msgs::BoxGeom& Geometry::_internal_box() const {
516  return *box_;
517 }
518 inline const ::gz::msgs::BoxGeom& Geometry::box() const {
519  const ::gz::msgs::BoxGeom* p = box_;
520  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.box)
521  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::BoxGeom*>(
523 }
524 inline ::gz::msgs::BoxGeom* Geometry::release_box() {
525  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.box)
526 
527  ::gz::msgs::BoxGeom* temp = box_;
528  box_ = NULL;
529  return temp;
530 }
531 inline ::gz::msgs::BoxGeom* Geometry::mutable_box() {
532 
533  if (box_ == NULL) {
534  auto* p = CreateMaybeMessage<::gz::msgs::BoxGeom>(GetArenaNoVirtual());
535  box_ = p;
536  }
537  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.box)
538  return box_;
539 }
541  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
542  if (message_arena == NULL) {
543  delete reinterpret_cast< ::google::protobuf::MessageLite*>(box_);
544  }
545  if (box) {
546  ::google::protobuf::Arena* submessage_arena = NULL;
547  if (message_arena != submessage_arena) {
548  box = ::google::protobuf::internal::GetOwnedMessage(
549  message_arena, box, submessage_arena);
550  }
551 
552  } else {
553 
554  }
555  box_ = box;
556  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.box)
557 }
558 
559 // .gz.msgs.CylinderGeom cylinder = 4;
560 inline bool Geometry::has_cylinder() const {
561  return this != internal_default_instance() && cylinder_ != NULL;
562 }
563 inline const ::gz::msgs::CylinderGeom& Geometry::_internal_cylinder() const {
564  return *cylinder_;
565 }
566 inline const ::gz::msgs::CylinderGeom& Geometry::cylinder() const {
567  const ::gz::msgs::CylinderGeom* p = cylinder_;
568  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.cylinder)
569  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::CylinderGeom*>(
571 }
572 inline ::gz::msgs::CylinderGeom* Geometry::release_cylinder() {
573  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.cylinder)
574 
575  ::gz::msgs::CylinderGeom* temp = cylinder_;
576  cylinder_ = NULL;
577  return temp;
578 }
579 inline ::gz::msgs::CylinderGeom* Geometry::mutable_cylinder() {
580 
581  if (cylinder_ == NULL) {
582  auto* p = CreateMaybeMessage<::gz::msgs::CylinderGeom>(GetArenaNoVirtual());
583  cylinder_ = p;
584  }
585  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.cylinder)
586  return cylinder_;
587 }
589  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
590  if (message_arena == NULL) {
591  delete reinterpret_cast< ::google::protobuf::MessageLite*>(cylinder_);
592  }
593  if (cylinder) {
594  ::google::protobuf::Arena* submessage_arena = NULL;
595  if (message_arena != submessage_arena) {
596  cylinder = ::google::protobuf::internal::GetOwnedMessage(
597  message_arena, cylinder, submessage_arena);
598  }
599 
600  } else {
601 
602  }
603  cylinder_ = cylinder;
604  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.cylinder)
605 }
606 
607 // .gz.msgs.PlaneGeom plane = 5;
608 inline bool Geometry::has_plane() const {
609  return this != internal_default_instance() && plane_ != NULL;
610 }
611 inline const ::gz::msgs::PlaneGeom& Geometry::_internal_plane() const {
612  return *plane_;
613 }
614 inline const ::gz::msgs::PlaneGeom& Geometry::plane() const {
615  const ::gz::msgs::PlaneGeom* p = plane_;
616  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.plane)
617  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::PlaneGeom*>(
619 }
620 inline ::gz::msgs::PlaneGeom* Geometry::release_plane() {
621  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.plane)
622 
623  ::gz::msgs::PlaneGeom* temp = plane_;
624  plane_ = NULL;
625  return temp;
626 }
627 inline ::gz::msgs::PlaneGeom* Geometry::mutable_plane() {
628 
629  if (plane_ == NULL) {
630  auto* p = CreateMaybeMessage<::gz::msgs::PlaneGeom>(GetArenaNoVirtual());
631  plane_ = p;
632  }
633  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.plane)
634  return plane_;
635 }
637  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
638  if (message_arena == NULL) {
639  delete reinterpret_cast< ::google::protobuf::MessageLite*>(plane_);
640  }
641  if (plane) {
642  ::google::protobuf::Arena* submessage_arena = NULL;
643  if (message_arena != submessage_arena) {
644  plane = ::google::protobuf::internal::GetOwnedMessage(
645  message_arena, plane, submessage_arena);
646  }
647 
648  } else {
649 
650  }
651  plane_ = plane;
652  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.plane)
653 }
654 
655 // .gz.msgs.SphereGeom sphere = 6;
656 inline bool Geometry::has_sphere() const {
657  return this != internal_default_instance() && sphere_ != NULL;
658 }
659 inline const ::gz::msgs::SphereGeom& Geometry::_internal_sphere() const {
660  return *sphere_;
661 }
662 inline const ::gz::msgs::SphereGeom& Geometry::sphere() const {
663  const ::gz::msgs::SphereGeom* p = sphere_;
664  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.sphere)
665  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::SphereGeom*>(
667 }
668 inline ::gz::msgs::SphereGeom* Geometry::release_sphere() {
669  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.sphere)
670 
671  ::gz::msgs::SphereGeom* temp = sphere_;
672  sphere_ = NULL;
673  return temp;
674 }
675 inline ::gz::msgs::SphereGeom* Geometry::mutable_sphere() {
676 
677  if (sphere_ == NULL) {
678  auto* p = CreateMaybeMessage<::gz::msgs::SphereGeom>(GetArenaNoVirtual());
679  sphere_ = p;
680  }
681  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.sphere)
682  return sphere_;
683 }
685  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
686  if (message_arena == NULL) {
687  delete reinterpret_cast< ::google::protobuf::MessageLite*>(sphere_);
688  }
689  if (sphere) {
690  ::google::protobuf::Arena* submessage_arena = NULL;
691  if (message_arena != submessage_arena) {
692  sphere = ::google::protobuf::internal::GetOwnedMessage(
693  message_arena, sphere, submessage_arena);
694  }
695 
696  } else {
697 
698  }
699  sphere_ = sphere;
700  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.sphere)
701 }
702 
703 // .gz.msgs.ImageGeom image = 7;
704 inline bool Geometry::has_image() const {
705  return this != internal_default_instance() && image_ != NULL;
706 }
707 inline const ::gz::msgs::ImageGeom& Geometry::_internal_image() const {
708  return *image_;
709 }
710 inline const ::gz::msgs::ImageGeom& Geometry::image() const {
711  const ::gz::msgs::ImageGeom* p = image_;
712  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.image)
713  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::ImageGeom*>(
715 }
716 inline ::gz::msgs::ImageGeom* Geometry::release_image() {
717  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.image)
718 
719  ::gz::msgs::ImageGeom* temp = image_;
720  image_ = NULL;
721  return temp;
722 }
723 inline ::gz::msgs::ImageGeom* Geometry::mutable_image() {
724 
725  if (image_ == NULL) {
726  auto* p = CreateMaybeMessage<::gz::msgs::ImageGeom>(GetArenaNoVirtual());
727  image_ = p;
728  }
729  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.image)
730  return image_;
731 }
733  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
734  if (message_arena == NULL) {
735  delete reinterpret_cast< ::google::protobuf::MessageLite*>(image_);
736  }
737  if (image) {
738  ::google::protobuf::Arena* submessage_arena = NULL;
739  if (message_arena != submessage_arena) {
740  image = ::google::protobuf::internal::GetOwnedMessage(
741  message_arena, image, submessage_arena);
742  }
743 
744  } else {
745 
746  }
747  image_ = image;
748  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.image)
749 }
750 
751 // .gz.msgs.HeightmapGeom heightmap = 8;
752 inline bool Geometry::has_heightmap() const {
753  return this != internal_default_instance() && heightmap_ != NULL;
754 }
755 inline const ::gz::msgs::HeightmapGeom& Geometry::_internal_heightmap() const {
756  return *heightmap_;
757 }
758 inline const ::gz::msgs::HeightmapGeom& Geometry::heightmap() const {
759  const ::gz::msgs::HeightmapGeom* p = heightmap_;
760  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.heightmap)
761  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::HeightmapGeom*>(
763 }
764 inline ::gz::msgs::HeightmapGeom* Geometry::release_heightmap() {
765  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.heightmap)
766 
767  ::gz::msgs::HeightmapGeom* temp = heightmap_;
768  heightmap_ = NULL;
769  return temp;
770 }
771 inline ::gz::msgs::HeightmapGeom* Geometry::mutable_heightmap() {
772 
773  if (heightmap_ == NULL) {
774  auto* p = CreateMaybeMessage<::gz::msgs::HeightmapGeom>(GetArenaNoVirtual());
775  heightmap_ = p;
776  }
777  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.heightmap)
778  return heightmap_;
779 }
781  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
782  if (message_arena == NULL) {
783  delete reinterpret_cast< ::google::protobuf::MessageLite*>(heightmap_);
784  }
785  if (heightmap) {
786  ::google::protobuf::Arena* submessage_arena = NULL;
787  if (message_arena != submessage_arena) {
788  heightmap = ::google::protobuf::internal::GetOwnedMessage(
789  message_arena, heightmap, submessage_arena);
790  }
791 
792  } else {
793 
794  }
795  heightmap_ = heightmap;
796  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.heightmap)
797 }
798 
799 // .gz.msgs.MeshGeom mesh = 9;
800 inline bool Geometry::has_mesh() const {
801  return this != internal_default_instance() && mesh_ != NULL;
802 }
803 inline const ::gz::msgs::MeshGeom& Geometry::_internal_mesh() const {
804  return *mesh_;
805 }
806 inline const ::gz::msgs::MeshGeom& Geometry::mesh() const {
807  const ::gz::msgs::MeshGeom* p = mesh_;
808  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.mesh)
809  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::MeshGeom*>(
811 }
812 inline ::gz::msgs::MeshGeom* Geometry::release_mesh() {
813  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.mesh)
814 
815  ::gz::msgs::MeshGeom* temp = mesh_;
816  mesh_ = NULL;
817  return temp;
818 }
819 inline ::gz::msgs::MeshGeom* Geometry::mutable_mesh() {
820 
821  if (mesh_ == NULL) {
822  auto* p = CreateMaybeMessage<::gz::msgs::MeshGeom>(GetArenaNoVirtual());
823  mesh_ = p;
824  }
825  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.mesh)
826  return mesh_;
827 }
829  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
830  if (message_arena == NULL) {
831  delete reinterpret_cast< ::google::protobuf::MessageLite*>(mesh_);
832  }
833  if (mesh) {
834  ::google::protobuf::Arena* submessage_arena = NULL;
835  if (message_arena != submessage_arena) {
836  mesh = ::google::protobuf::internal::GetOwnedMessage(
837  message_arena, mesh, submessage_arena);
838  }
839 
840  } else {
841 
842  }
843  mesh_ = mesh;
844  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.mesh)
845 }
846 
847 // .gz.msgs.ConeGeom cone = 10;
848 inline bool Geometry::has_cone() const {
849  return this != internal_default_instance() && cone_ != NULL;
850 }
851 inline const ::gz::msgs::ConeGeom& Geometry::_internal_cone() const {
852  return *cone_;
853 }
854 inline const ::gz::msgs::ConeGeom& Geometry::cone() const {
855  const ::gz::msgs::ConeGeom* p = cone_;
856  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.cone)
857  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::ConeGeom*>(
859 }
860 inline ::gz::msgs::ConeGeom* Geometry::release_cone() {
861  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.cone)
862 
863  ::gz::msgs::ConeGeom* temp = cone_;
864  cone_ = NULL;
865  return temp;
866 }
867 inline ::gz::msgs::ConeGeom* Geometry::mutable_cone() {
868 
869  if (cone_ == NULL) {
870  auto* p = CreateMaybeMessage<::gz::msgs::ConeGeom>(GetArenaNoVirtual());
871  cone_ = p;
872  }
873  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.cone)
874  return cone_;
875 }
877  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
878  if (message_arena == NULL) {
879  delete reinterpret_cast< ::google::protobuf::MessageLite*>(cone_);
880  }
881  if (cone) {
882  ::google::protobuf::Arena* submessage_arena = NULL;
883  if (message_arena != submessage_arena) {
884  cone = ::google::protobuf::internal::GetOwnedMessage(
885  message_arena, cone, submessage_arena);
886  }
887 
888  } else {
889 
890  }
891  cone_ = cone;
892  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.cone)
893 }
894 
895 // .gz.msgs.CapsuleGeom capsule = 13;
896 inline bool Geometry::has_capsule() const {
897  return this != internal_default_instance() && capsule_ != NULL;
898 }
899 inline const ::gz::msgs::CapsuleGeom& Geometry::_internal_capsule() const {
900  return *capsule_;
901 }
902 inline const ::gz::msgs::CapsuleGeom& Geometry::capsule() const {
903  const ::gz::msgs::CapsuleGeom* p = capsule_;
904  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.capsule)
905  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::CapsuleGeom*>(
907 }
908 inline ::gz::msgs::CapsuleGeom* Geometry::release_capsule() {
909  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.capsule)
910 
911  ::gz::msgs::CapsuleGeom* temp = capsule_;
912  capsule_ = NULL;
913  return temp;
914 }
915 inline ::gz::msgs::CapsuleGeom* Geometry::mutable_capsule() {
916 
917  if (capsule_ == NULL) {
918  auto* p = CreateMaybeMessage<::gz::msgs::CapsuleGeom>(GetArenaNoVirtual());
919  capsule_ = p;
920  }
921  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.capsule)
922  return capsule_;
923 }
925  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
926  if (message_arena == NULL) {
927  delete reinterpret_cast< ::google::protobuf::MessageLite*>(capsule_);
928  }
929  if (capsule) {
930  ::google::protobuf::Arena* submessage_arena = NULL;
931  if (message_arena != submessage_arena) {
932  capsule = ::google::protobuf::internal::GetOwnedMessage(
933  message_arena, capsule, submessage_arena);
934  }
935 
936  } else {
937 
938  }
939  capsule_ = capsule;
940  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.capsule)
941 }
942 
943 // .gz.msgs.EllipsoidGeom ellipsoid = 14;
944 inline bool Geometry::has_ellipsoid() const {
945  return this != internal_default_instance() && ellipsoid_ != NULL;
946 }
947 inline const ::gz::msgs::EllipsoidGeom& Geometry::_internal_ellipsoid() const {
948  return *ellipsoid_;
949 }
950 inline const ::gz::msgs::EllipsoidGeom& Geometry::ellipsoid() const {
951  const ::gz::msgs::EllipsoidGeom* p = ellipsoid_;
952  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.ellipsoid)
953  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::EllipsoidGeom*>(
955 }
956 inline ::gz::msgs::EllipsoidGeom* Geometry::release_ellipsoid() {
957  // @@protoc_insertion_point(field_release:gz.msgs.Geometry.ellipsoid)
958 
959  ::gz::msgs::EllipsoidGeom* temp = ellipsoid_;
960  ellipsoid_ = NULL;
961  return temp;
962 }
963 inline ::gz::msgs::EllipsoidGeom* Geometry::mutable_ellipsoid() {
964 
965  if (ellipsoid_ == NULL) {
966  auto* p = CreateMaybeMessage<::gz::msgs::EllipsoidGeom>(GetArenaNoVirtual());
967  ellipsoid_ = p;
968  }
969  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.ellipsoid)
970  return ellipsoid_;
971 }
973  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
974  if (message_arena == NULL) {
975  delete reinterpret_cast< ::google::protobuf::MessageLite*>(ellipsoid_);
976  }
977  if (ellipsoid) {
978  ::google::protobuf::Arena* submessage_arena = NULL;
979  if (message_arena != submessage_arena) {
980  ellipsoid = ::google::protobuf::internal::GetOwnedMessage(
981  message_arena, ellipsoid, submessage_arena);
982  }
983 
984  } else {
985 
986  }
987  ellipsoid_ = ellipsoid;
988  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Geometry.ellipsoid)
989 }
990 
991 // repeated .gz.msgs.Vector3d points = 11;
992 inline int Geometry::points_size() const {
993  return points_.size();
994 }
995 inline ::gz::msgs::Vector3d* Geometry::mutable_points(int index) {
996  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.points)
997  return points_.Mutable(index);
998 }
999 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
1001  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Geometry.points)
1002  return &points_;
1003 }
1004 inline const ::gz::msgs::Vector3d& Geometry::points(int index) const {
1005  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.points)
1006  return points_.Get(index);
1007 }
1008 inline ::gz::msgs::Vector3d* Geometry::add_points() {
1009  // @@protoc_insertion_point(field_add:gz.msgs.Geometry.points)
1010  return points_.Add();
1011 }
1012 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
1014  // @@protoc_insertion_point(field_list:gz.msgs.Geometry.points)
1015  return points_;
1016 }
1017 
1018 // repeated .gz.msgs.Polyline polyline = 12;
1019 inline int Geometry::polyline_size() const {
1020  return polyline_.size();
1021 }
1022 inline ::gz::msgs::Polyline* Geometry::mutable_polyline(int index) {
1023  // @@protoc_insertion_point(field_mutable:gz.msgs.Geometry.polyline)
1024  return polyline_.Mutable(index);
1025 }
1026 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline >*
1028  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Geometry.polyline)
1029  return &polyline_;
1030 }
1031 inline const ::gz::msgs::Polyline& Geometry::polyline(int index) const {
1032  // @@protoc_insertion_point(field_get:gz.msgs.Geometry.polyline)
1033  return polyline_.Get(index);
1034 }
1035 inline ::gz::msgs::Polyline* Geometry::add_polyline() {
1036  // @@protoc_insertion_point(field_add:gz.msgs.Geometry.polyline)
1037  return polyline_.Add();
1038 }
1039 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline >&
1041  // @@protoc_insertion_point(field_list:gz.msgs.Geometry.polyline)
1042  return polyline_;
1043 }
1044 
1045 #ifdef __GNUC__
1046  #pragma GCC diagnostic pop
1047 #endif // __GNUC__
1048 
1049 // @@protoc_insertion_point(namespace_scope)
1050 
1051 } // namespace msgs
1052 } // namespace gz
1053 
1054 namespace google {
1055 namespace protobuf {
1056 
1057 template <> struct is_proto_enum< ::gz::msgs::Geometry_Type> : ::std::true_type {};
1058 template <>
1059 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Geometry_Type>() {
1061 }
1062 
1063 } // namespace protobuf
1064 } // namespace google
1065 
1066 // @@protoc_insertion_point(global_scope)
1067 
1068 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fgeometry_2eproto