Ignition Msgs

API Reference

5.8.1
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 GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fgeometry_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fgeometry_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
45 #ifndef _MSC_VER
46 #pragma GCC system_header
47 #else
48 #pragma warning(push)
49 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
50 #endif
51 #ifdef __linux__
52 #include <sys/sysmacros.h>
53 #endif
54 #include <memory>
55 #include <ignition/msgs/Export.hh>
56 // @@protoc_insertion_point(includes)
57 #include <google/protobuf/port_def.inc>
58 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fgeometry_2eproto IGNITION_MSGS_VISIBLE
59 PROTOBUF_NAMESPACE_OPEN
60 namespace internal {
61 class AnyMetadata;
62 } // namespace internal
63 PROTOBUF_NAMESPACE_CLOSE
64 
65 // Internal implementation detail -- do not use these members.
66 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fgeometry_2eproto {
67  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
68  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
69  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
70  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
71  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
72  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
73  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
74  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
75  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
76 };
77 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fgeometry_2eproto;
78 namespace ignition {
79 namespace msgs {
80 class Geometry;
81 class GeometryDefaultTypeInternal;
82 IGNITION_MSGS_VISIBLE extern GeometryDefaultTypeInternal _Geometry_default_instance_;
83 } // namespace msgs
84 } // namespace ignition
85 PROTOBUF_NAMESPACE_OPEN
86 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Geometry* Arena::CreateMaybeMessage<::ignition::msgs::Geometry>(Arena*);
87 PROTOBUF_NAMESPACE_CLOSE
88 namespace ignition {
89 namespace msgs {
90 
91 enum Geometry_Type : int {
105 };
106 IGNITION_MSGS_VISIBLE bool Geometry_Type_IsValid(int value);
110 
111 IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Geometry_Type_descriptor();
112 template<typename T>
113 inline const std::string& Geometry_Type_Name(T enum_t_value) {
114  static_assert(::std::is_same<T, Geometry_Type>::value ||
116  "Incorrect type passed to function Geometry_Type_Name.");
117  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
118  Geometry_Type_descriptor(), enum_t_value);
119 }
121  ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Geometry_Type* value) {
122  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Geometry_Type>(
123  Geometry_Type_descriptor(), name, value);
124 }
125 // ===================================================================
126 
127 class IGNITION_MSGS_VISIBLE Geometry PROTOBUF_FINAL :
128  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Geometry) */ {
129  public:
130  inline Geometry() : Geometry(nullptr) {}
131  virtual ~Geometry();
132 
133  Geometry(const Geometry& from);
134  Geometry(Geometry&& from) noexcept
135  : Geometry() {
136  *this = ::std::move(from);
137  }
138 
139  inline Geometry& operator=(const Geometry& from) {
140  CopyFrom(from);
141  return *this;
142  }
143  inline Geometry& operator=(Geometry&& from) noexcept {
144  if (GetArena() == from.GetArena()) {
145  if (this != &from) InternalSwap(&from);
146  } else {
147  CopyFrom(from);
148  }
149  return *this;
150  }
151 
152  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
153  return GetDescriptor();
154  }
155  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
156  return GetMetadataStatic().descriptor;
157  }
158  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
159  return GetMetadataStatic().reflection;
160  }
161  static const Geometry& default_instance();
162 
163  static inline const Geometry* internal_default_instance() {
164  return reinterpret_cast<const Geometry*>(
166  }
167  static constexpr int kIndexInFileMessages =
168  0;
169 
170  friend void swap(Geometry& a, Geometry& b) {
171  a.Swap(&b);
172  }
173  inline void Swap(Geometry* other) {
174  if (other == this) return;
175  if (GetArena() == other->GetArena()) {
176  InternalSwap(other);
177  } else {
178  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
179  }
180  }
181  void UnsafeArenaSwap(Geometry* other) {
182  if (other == this) return;
183  GOOGLE_DCHECK(GetArena() == other->GetArena());
184  InternalSwap(other);
185  }
186 
187  // implements Message ----------------------------------------------
188 
189  inline Geometry* New() const final {
190  return CreateMaybeMessage<Geometry>(nullptr);
191  }
192 
193  Geometry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
194  return CreateMaybeMessage<Geometry>(arena);
195  }
196  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
197  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
198  void CopyFrom(const Geometry& from);
199  void MergeFrom(const Geometry& from);
200  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
201  bool IsInitialized() const final;
202 
203  size_t ByteSizeLong() const final;
204  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
205  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
206  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
207  int GetCachedSize() const final { return _cached_size_.Get(); }
208 
209  private:
210  inline void SharedCtor();
211  inline void SharedDtor();
212  void SetCachedSize(int size) const final;
213  void InternalSwap(Geometry* other);
214  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
215  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
216  return "ignition.msgs.Geometry";
217  }
218  protected:
219  explicit Geometry(::PROTOBUF_NAMESPACE_ID::Arena* arena);
220  private:
221  static void ArenaDtor(void* object);
222  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
223  public:
224 
225  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
226  private:
227  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
228  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fgeometry_2eproto);
229  return ::descriptor_table_ignition_2fmsgs_2fgeometry_2eproto.file_level_metadata[kIndexInFileMessages];
230  }
231 
232  public:
233 
234  // nested types ----------------------------------------------------
235 
237  static constexpr Type BOX =
239  static constexpr Type CYLINDER =
241  static constexpr Type SPHERE =
243  static constexpr Type PLANE =
245  static constexpr Type IMAGE =
247  static constexpr Type HEIGHTMAP =
249  static constexpr Type MESH =
251  static constexpr Type TRIANGLE_FAN =
253  static constexpr Type LINE_STRIP =
255  static constexpr Type POLYLINE =
257  static constexpr Type EMPTY =
259  static inline bool Type_IsValid(int value) {
260  return Geometry_Type_IsValid(value);
261  }
262  static constexpr Type Type_MIN =
264  static constexpr Type Type_MAX =
266  static constexpr int Type_ARRAYSIZE =
268  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
270  return Geometry_Type_descriptor();
271  }
272  template<typename T>
273  static inline const std::string& Type_Name(T enum_t_value) {
274  static_assert(::std::is_same<T, Type>::value ||
276  "Incorrect type passed to function Type_Name.");
277  return Geometry_Type_Name(enum_t_value);
278  }
279  static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
280  Type* value) {
281  return Geometry_Type_Parse(name, value);
282  }
283 
284  // accessors -------------------------------------------------------
285 
286  enum : int {
287  kPointsFieldNumber = 10,
288  kPolylineFieldNumber = 11,
289  kHeaderFieldNumber = 1,
290  kBoxFieldNumber = 3,
291  kCylinderFieldNumber = 4,
292  kPlaneFieldNumber = 5,
293  kSphereFieldNumber = 6,
294  kImageFieldNumber = 7,
295  kHeightmapFieldNumber = 8,
296  kMeshFieldNumber = 9,
297  kTypeFieldNumber = 2,
298  };
299  // repeated .ignition.msgs.Vector3d points = 10;
300  int points_size() const;
301  private:
302  int _internal_points_size() const;
303  public:
304  void clear_points();
305  ::ignition::msgs::Vector3d* mutable_points(int index);
306  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
308  private:
309  const ::ignition::msgs::Vector3d& _internal_points(int index) const;
310  ::ignition::msgs::Vector3d* _internal_add_points();
311  public:
312  const ::ignition::msgs::Vector3d& points(int index) const;
313  ::ignition::msgs::Vector3d* add_points();
314  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
315  points() const;
316 
317  // repeated .ignition.msgs.Polyline polyline = 11;
318  int polyline_size() const;
319  private:
320  int _internal_polyline_size() const;
321  public:
323  ::ignition::msgs::Polyline* mutable_polyline(int index);
324  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >*
326  private:
327  const ::ignition::msgs::Polyline& _internal_polyline(int index) const;
328  ::ignition::msgs::Polyline* _internal_add_polyline();
329  public:
330  const ::ignition::msgs::Polyline& polyline(int index) const;
331  ::ignition::msgs::Polyline* add_polyline();
332  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >&
333  polyline() const;
334 
335  // .ignition.msgs.Header header = 1;
336  bool has_header() const;
337  private:
338  bool _internal_has_header() const;
339  public:
340  void clear_header();
341  const ::ignition::msgs::Header& header() const;
342  ::ignition::msgs::Header* release_header();
343  ::ignition::msgs::Header* mutable_header();
344  void set_allocated_header(::ignition::msgs::Header* header);
345  private:
346  const ::ignition::msgs::Header& _internal_header() const;
347  ::ignition::msgs::Header* _internal_mutable_header();
348  public:
350  ::ignition::msgs::Header* header);
351  ::ignition::msgs::Header* unsafe_arena_release_header();
352 
353  // .ignition.msgs.BoxGeom box = 3;
354  bool has_box() const;
355  private:
356  bool _internal_has_box() const;
357  public:
358  void clear_box();
359  const ::ignition::msgs::BoxGeom& box() const;
360  ::ignition::msgs::BoxGeom* release_box();
361  ::ignition::msgs::BoxGeom* mutable_box();
362  void set_allocated_box(::ignition::msgs::BoxGeom* box);
363  private:
364  const ::ignition::msgs::BoxGeom& _internal_box() const;
365  ::ignition::msgs::BoxGeom* _internal_mutable_box();
366  public:
368  ::ignition::msgs::BoxGeom* box);
369  ::ignition::msgs::BoxGeom* unsafe_arena_release_box();
370 
371  // .ignition.msgs.CylinderGeom cylinder = 4;
372  bool has_cylinder() const;
373  private:
374  bool _internal_has_cylinder() const;
375  public:
377  const ::ignition::msgs::CylinderGeom& cylinder() const;
378  ::ignition::msgs::CylinderGeom* release_cylinder();
379  ::ignition::msgs::CylinderGeom* mutable_cylinder();
380  void set_allocated_cylinder(::ignition::msgs::CylinderGeom* cylinder);
381  private:
382  const ::ignition::msgs::CylinderGeom& _internal_cylinder() const;
383  ::ignition::msgs::CylinderGeom* _internal_mutable_cylinder();
384  public:
386  ::ignition::msgs::CylinderGeom* cylinder);
387  ::ignition::msgs::CylinderGeom* unsafe_arena_release_cylinder();
388 
389  // .ignition.msgs.PlaneGeom plane = 5;
390  bool has_plane() const;
391  private:
392  bool _internal_has_plane() const;
393  public:
394  void clear_plane();
395  const ::ignition::msgs::PlaneGeom& plane() const;
396  ::ignition::msgs::PlaneGeom* release_plane();
397  ::ignition::msgs::PlaneGeom* mutable_plane();
398  void set_allocated_plane(::ignition::msgs::PlaneGeom* plane);
399  private:
400  const ::ignition::msgs::PlaneGeom& _internal_plane() const;
401  ::ignition::msgs::PlaneGeom* _internal_mutable_plane();
402  public:
404  ::ignition::msgs::PlaneGeom* plane);
405  ::ignition::msgs::PlaneGeom* unsafe_arena_release_plane();
406 
407  // .ignition.msgs.SphereGeom sphere = 6;
408  bool has_sphere() const;
409  private:
410  bool _internal_has_sphere() const;
411  public:
412  void clear_sphere();
413  const ::ignition::msgs::SphereGeom& sphere() const;
414  ::ignition::msgs::SphereGeom* release_sphere();
415  ::ignition::msgs::SphereGeom* mutable_sphere();
416  void set_allocated_sphere(::ignition::msgs::SphereGeom* sphere);
417  private:
418  const ::ignition::msgs::SphereGeom& _internal_sphere() const;
419  ::ignition::msgs::SphereGeom* _internal_mutable_sphere();
420  public:
422  ::ignition::msgs::SphereGeom* sphere);
423  ::ignition::msgs::SphereGeom* unsafe_arena_release_sphere();
424 
425  // .ignition.msgs.ImageGeom image = 7;
426  bool has_image() const;
427  private:
428  bool _internal_has_image() const;
429  public:
430  void clear_image();
431  const ::ignition::msgs::ImageGeom& image() const;
432  ::ignition::msgs::ImageGeom* release_image();
433  ::ignition::msgs::ImageGeom* mutable_image();
434  void set_allocated_image(::ignition::msgs::ImageGeom* image);
435  private:
436  const ::ignition::msgs::ImageGeom& _internal_image() const;
437  ::ignition::msgs::ImageGeom* _internal_mutable_image();
438  public:
440  ::ignition::msgs::ImageGeom* image);
441  ::ignition::msgs::ImageGeom* unsafe_arena_release_image();
442 
443  // .ignition.msgs.HeightmapGeom heightmap = 8;
444  bool has_heightmap() const;
445  private:
446  bool _internal_has_heightmap() const;
447  public:
449  const ::ignition::msgs::HeightmapGeom& heightmap() const;
450  ::ignition::msgs::HeightmapGeom* release_heightmap();
451  ::ignition::msgs::HeightmapGeom* mutable_heightmap();
452  void set_allocated_heightmap(::ignition::msgs::HeightmapGeom* heightmap);
453  private:
454  const ::ignition::msgs::HeightmapGeom& _internal_heightmap() const;
455  ::ignition::msgs::HeightmapGeom* _internal_mutable_heightmap();
456  public:
458  ::ignition::msgs::HeightmapGeom* heightmap);
459  ::ignition::msgs::HeightmapGeom* unsafe_arena_release_heightmap();
460 
461  // .ignition.msgs.MeshGeom mesh = 9;
462  bool has_mesh() const;
463  private:
464  bool _internal_has_mesh() const;
465  public:
466  void clear_mesh();
467  const ::ignition::msgs::MeshGeom& mesh() const;
468  ::ignition::msgs::MeshGeom* release_mesh();
469  ::ignition::msgs::MeshGeom* mutable_mesh();
470  void set_allocated_mesh(::ignition::msgs::MeshGeom* mesh);
471  private:
472  const ::ignition::msgs::MeshGeom& _internal_mesh() const;
473  ::ignition::msgs::MeshGeom* _internal_mutable_mesh();
474  public:
476  ::ignition::msgs::MeshGeom* mesh);
477  ::ignition::msgs::MeshGeom* unsafe_arena_release_mesh();
478 
479  // .ignition.msgs.Geometry.Type type = 2;
480  void clear_type();
483  private:
484  ::ignition::msgs::Geometry_Type _internal_type() const;
485  void _internal_set_type(::ignition::msgs::Geometry_Type value);
486  public:
487 
488  // @@protoc_insertion_point(class_scope:ignition.msgs.Geometry)
489  private:
490  class _Internal;
491 
492  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
493  typedef void InternalArenaConstructable_;
494  typedef void DestructorSkippable_;
495  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d > points_;
496  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline > polyline_;
497  ::ignition::msgs::Header* header_;
498  ::ignition::msgs::BoxGeom* box_;
499  ::ignition::msgs::CylinderGeom* cylinder_;
500  ::ignition::msgs::PlaneGeom* plane_;
501  ::ignition::msgs::SphereGeom* sphere_;
502  ::ignition::msgs::ImageGeom* image_;
503  ::ignition::msgs::HeightmapGeom* heightmap_;
504  ::ignition::msgs::MeshGeom* mesh_;
505  int type_;
506  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
507  friend struct ::TableStruct_ignition_2fmsgs_2fgeometry_2eproto;
508 };
509 // ===================================================================
510 
511 
512 // ===================================================================
513 
514 #ifdef __GNUC__
515  #pragma GCC diagnostic push
516  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
517 #endif // __GNUC__
518 // Geometry
519 
520 // .ignition.msgs.Header header = 1;
521 inline bool Geometry::_internal_has_header() const {
522  return this != internal_default_instance() && header_ != nullptr;
523 }
524 inline bool Geometry::has_header() const {
525  return _internal_has_header();
526 }
527 inline const ::ignition::msgs::Header& Geometry::_internal_header() const {
528  const ::ignition::msgs::Header* p = header_;
529  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
531 }
532 inline const ::ignition::msgs::Header& Geometry::header() const {
533  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.header)
534  return _internal_header();
535 }
536 inline void Geometry::unsafe_arena_set_allocated_header(
537  ::ignition::msgs::Header* header) {
538  if (GetArena() == nullptr) {
539  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
540  }
541  header_ = header;
542  if (header) {
543 
544  } else {
545 
546  }
547  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Geometry.header)
548 }
549 inline ::ignition::msgs::Header* Geometry::release_header() {
550 
551  ::ignition::msgs::Header* temp = header_;
552  header_ = nullptr;
553  if (GetArena() != nullptr) {
554  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
555  }
556  return temp;
557 }
558 inline ::ignition::msgs::Header* Geometry::unsafe_arena_release_header() {
559  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.header)
560 
561  ::ignition::msgs::Header* temp = header_;
562  header_ = nullptr;
563  return temp;
564 }
565 inline ::ignition::msgs::Header* Geometry::_internal_mutable_header() {
566 
567  if (header_ == nullptr) {
568  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
569  header_ = p;
570  }
571  return header_;
572 }
573 inline ::ignition::msgs::Header* Geometry::mutable_header() {
574  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.header)
575  return _internal_mutable_header();
576 }
577 inline void Geometry::set_allocated_header(::ignition::msgs::Header* header) {
578  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
579  if (message_arena == nullptr) {
580  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
581  }
582  if (header) {
583  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
584  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
585  if (message_arena != submessage_arena) {
586  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
587  message_arena, header, submessage_arena);
588  }
589 
590  } else {
591 
592  }
593  header_ = header;
594  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.header)
595 }
596 
597 // .ignition.msgs.Geometry.Type type = 2;
598 inline void Geometry::clear_type() {
599  type_ = 0;
600 }
601 inline ::ignition::msgs::Geometry_Type Geometry::_internal_type() const {
602  return static_cast< ::ignition::msgs::Geometry_Type >(type_);
603 }
604 inline ::ignition::msgs::Geometry_Type Geometry::type() const {
605  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.type)
606  return _internal_type();
607 }
608 inline void Geometry::_internal_set_type(::ignition::msgs::Geometry_Type value) {
609 
610  type_ = value;
611 }
612 inline void Geometry::set_type(::ignition::msgs::Geometry_Type value) {
613  _internal_set_type(value);
614  // @@protoc_insertion_point(field_set:ignition.msgs.Geometry.type)
615 }
616 
617 // .ignition.msgs.BoxGeom box = 3;
618 inline bool Geometry::_internal_has_box() const {
619  return this != internal_default_instance() && box_ != nullptr;
620 }
621 inline bool Geometry::has_box() const {
622  return _internal_has_box();
623 }
624 inline const ::ignition::msgs::BoxGeom& Geometry::_internal_box() const {
625  const ::ignition::msgs::BoxGeom* p = box_;
626  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::BoxGeom&>(
628 }
629 inline const ::ignition::msgs::BoxGeom& Geometry::box() const {
630  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.box)
631  return _internal_box();
632 }
633 inline void Geometry::unsafe_arena_set_allocated_box(
634  ::ignition::msgs::BoxGeom* box) {
635  if (GetArena() == nullptr) {
636  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(box_);
637  }
638  box_ = box;
639  if (box) {
640 
641  } else {
642 
643  }
644  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Geometry.box)
645 }
646 inline ::ignition::msgs::BoxGeom* Geometry::release_box() {
647 
648  ::ignition::msgs::BoxGeom* temp = box_;
649  box_ = nullptr;
650  if (GetArena() != nullptr) {
651  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
652  }
653  return temp;
654 }
655 inline ::ignition::msgs::BoxGeom* Geometry::unsafe_arena_release_box() {
656  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.box)
657 
658  ::ignition::msgs::BoxGeom* temp = box_;
659  box_ = nullptr;
660  return temp;
661 }
662 inline ::ignition::msgs::BoxGeom* Geometry::_internal_mutable_box() {
663 
664  if (box_ == nullptr) {
665  auto* p = CreateMaybeMessage<::ignition::msgs::BoxGeom>(GetArena());
666  box_ = p;
667  }
668  return box_;
669 }
670 inline ::ignition::msgs::BoxGeom* Geometry::mutable_box() {
671  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.box)
672  return _internal_mutable_box();
673 }
674 inline void Geometry::set_allocated_box(::ignition::msgs::BoxGeom* box) {
675  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
676  if (message_arena == nullptr) {
677  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(box_);
678  }
679  if (box) {
680  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
681  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(box)->GetArena();
682  if (message_arena != submessage_arena) {
683  box = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
684  message_arena, box, submessage_arena);
685  }
686 
687  } else {
688 
689  }
690  box_ = box;
691  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.box)
692 }
693 
694 // .ignition.msgs.CylinderGeom cylinder = 4;
695 inline bool Geometry::_internal_has_cylinder() const {
696  return this != internal_default_instance() && cylinder_ != nullptr;
697 }
698 inline bool Geometry::has_cylinder() const {
699  return _internal_has_cylinder();
700 }
701 inline const ::ignition::msgs::CylinderGeom& Geometry::_internal_cylinder() const {
702  const ::ignition::msgs::CylinderGeom* p = cylinder_;
703  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::CylinderGeom&>(
705 }
706 inline const ::ignition::msgs::CylinderGeom& Geometry::cylinder() const {
707  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.cylinder)
708  return _internal_cylinder();
709 }
710 inline void Geometry::unsafe_arena_set_allocated_cylinder(
711  ::ignition::msgs::CylinderGeom* cylinder) {
712  if (GetArena() == nullptr) {
713  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cylinder_);
714  }
715  cylinder_ = cylinder;
716  if (cylinder) {
717 
718  } else {
719 
720  }
721  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Geometry.cylinder)
722 }
723 inline ::ignition::msgs::CylinderGeom* Geometry::release_cylinder() {
724 
725  ::ignition::msgs::CylinderGeom* temp = cylinder_;
726  cylinder_ = nullptr;
727  if (GetArena() != nullptr) {
728  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
729  }
730  return temp;
731 }
732 inline ::ignition::msgs::CylinderGeom* Geometry::unsafe_arena_release_cylinder() {
733  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.cylinder)
734 
735  ::ignition::msgs::CylinderGeom* temp = cylinder_;
736  cylinder_ = nullptr;
737  return temp;
738 }
739 inline ::ignition::msgs::CylinderGeom* Geometry::_internal_mutable_cylinder() {
740 
741  if (cylinder_ == nullptr) {
742  auto* p = CreateMaybeMessage<::ignition::msgs::CylinderGeom>(GetArena());
743  cylinder_ = p;
744  }
745  return cylinder_;
746 }
747 inline ::ignition::msgs::CylinderGeom* Geometry::mutable_cylinder() {
748  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.cylinder)
749  return _internal_mutable_cylinder();
750 }
751 inline void Geometry::set_allocated_cylinder(::ignition::msgs::CylinderGeom* cylinder) {
752  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
753  if (message_arena == nullptr) {
754  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(cylinder_);
755  }
756  if (cylinder) {
757  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
758  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cylinder)->GetArena();
759  if (message_arena != submessage_arena) {
760  cylinder = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
761  message_arena, cylinder, submessage_arena);
762  }
763 
764  } else {
765 
766  }
767  cylinder_ = cylinder;
768  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.cylinder)
769 }
770 
771 // .ignition.msgs.PlaneGeom plane = 5;
772 inline bool Geometry::_internal_has_plane() const {
773  return this != internal_default_instance() && plane_ != nullptr;
774 }
775 inline bool Geometry::has_plane() const {
776  return _internal_has_plane();
777 }
778 inline const ::ignition::msgs::PlaneGeom& Geometry::_internal_plane() const {
779  const ::ignition::msgs::PlaneGeom* p = plane_;
780  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::PlaneGeom&>(
782 }
783 inline const ::ignition::msgs::PlaneGeom& Geometry::plane() const {
784  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.plane)
785  return _internal_plane();
786 }
787 inline void Geometry::unsafe_arena_set_allocated_plane(
788  ::ignition::msgs::PlaneGeom* plane) {
789  if (GetArena() == nullptr) {
790  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(plane_);
791  }
792  plane_ = plane;
793  if (plane) {
794 
795  } else {
796 
797  }
798  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Geometry.plane)
799 }
800 inline ::ignition::msgs::PlaneGeom* Geometry::release_plane() {
801 
802  ::ignition::msgs::PlaneGeom* temp = plane_;
803  plane_ = nullptr;
804  if (GetArena() != nullptr) {
805  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
806  }
807  return temp;
808 }
809 inline ::ignition::msgs::PlaneGeom* Geometry::unsafe_arena_release_plane() {
810  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.plane)
811 
812  ::ignition::msgs::PlaneGeom* temp = plane_;
813  plane_ = nullptr;
814  return temp;
815 }
816 inline ::ignition::msgs::PlaneGeom* Geometry::_internal_mutable_plane() {
817 
818  if (plane_ == nullptr) {
819  auto* p = CreateMaybeMessage<::ignition::msgs::PlaneGeom>(GetArena());
820  plane_ = p;
821  }
822  return plane_;
823 }
824 inline ::ignition::msgs::PlaneGeom* Geometry::mutable_plane() {
825  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.plane)
826  return _internal_mutable_plane();
827 }
828 inline void Geometry::set_allocated_plane(::ignition::msgs::PlaneGeom* plane) {
829  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
830  if (message_arena == nullptr) {
831  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(plane_);
832  }
833  if (plane) {
834  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
835  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(plane)->GetArena();
836  if (message_arena != submessage_arena) {
837  plane = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
838  message_arena, plane, submessage_arena);
839  }
840 
841  } else {
842 
843  }
844  plane_ = plane;
845  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.plane)
846 }
847 
848 // .ignition.msgs.SphereGeom sphere = 6;
849 inline bool Geometry::_internal_has_sphere() const {
850  return this != internal_default_instance() && sphere_ != nullptr;
851 }
852 inline bool Geometry::has_sphere() const {
853  return _internal_has_sphere();
854 }
855 inline const ::ignition::msgs::SphereGeom& Geometry::_internal_sphere() const {
856  const ::ignition::msgs::SphereGeom* p = sphere_;
857  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::SphereGeom&>(
859 }
860 inline const ::ignition::msgs::SphereGeom& Geometry::sphere() const {
861  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.sphere)
862  return _internal_sphere();
863 }
864 inline void Geometry::unsafe_arena_set_allocated_sphere(
865  ::ignition::msgs::SphereGeom* sphere) {
866  if (GetArena() == nullptr) {
867  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sphere_);
868  }
869  sphere_ = sphere;
870  if (sphere) {
871 
872  } else {
873 
874  }
875  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Geometry.sphere)
876 }
877 inline ::ignition::msgs::SphereGeom* Geometry::release_sphere() {
878 
879  ::ignition::msgs::SphereGeom* temp = sphere_;
880  sphere_ = nullptr;
881  if (GetArena() != nullptr) {
882  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
883  }
884  return temp;
885 }
886 inline ::ignition::msgs::SphereGeom* Geometry::unsafe_arena_release_sphere() {
887  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.sphere)
888 
889  ::ignition::msgs::SphereGeom* temp = sphere_;
890  sphere_ = nullptr;
891  return temp;
892 }
893 inline ::ignition::msgs::SphereGeom* Geometry::_internal_mutable_sphere() {
894 
895  if (sphere_ == nullptr) {
896  auto* p = CreateMaybeMessage<::ignition::msgs::SphereGeom>(GetArena());
897  sphere_ = p;
898  }
899  return sphere_;
900 }
901 inline ::ignition::msgs::SphereGeom* Geometry::mutable_sphere() {
902  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.sphere)
903  return _internal_mutable_sphere();
904 }
905 inline void Geometry::set_allocated_sphere(::ignition::msgs::SphereGeom* sphere) {
906  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
907  if (message_arena == nullptr) {
908  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(sphere_);
909  }
910  if (sphere) {
911  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
912  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sphere)->GetArena();
913  if (message_arena != submessage_arena) {
914  sphere = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
915  message_arena, sphere, submessage_arena);
916  }
917 
918  } else {
919 
920  }
921  sphere_ = sphere;
922  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.sphere)
923 }
924 
925 // .ignition.msgs.ImageGeom image = 7;
926 inline bool Geometry::_internal_has_image() const {
927  return this != internal_default_instance() && image_ != nullptr;
928 }
929 inline bool Geometry::has_image() const {
930  return _internal_has_image();
931 }
932 inline const ::ignition::msgs::ImageGeom& Geometry::_internal_image() const {
933  const ::ignition::msgs::ImageGeom* p = image_;
934  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::ImageGeom&>(
936 }
937 inline const ::ignition::msgs::ImageGeom& Geometry::image() const {
938  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.image)
939  return _internal_image();
940 }
941 inline void Geometry::unsafe_arena_set_allocated_image(
942  ::ignition::msgs::ImageGeom* image) {
943  if (GetArena() == nullptr) {
944  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(image_);
945  }
946  image_ = image;
947  if (image) {
948 
949  } else {
950 
951  }
952  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Geometry.image)
953 }
954 inline ::ignition::msgs::ImageGeom* Geometry::release_image() {
955 
956  ::ignition::msgs::ImageGeom* temp = image_;
957  image_ = nullptr;
958  if (GetArena() != nullptr) {
959  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
960  }
961  return temp;
962 }
963 inline ::ignition::msgs::ImageGeom* Geometry::unsafe_arena_release_image() {
964  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.image)
965 
966  ::ignition::msgs::ImageGeom* temp = image_;
967  image_ = nullptr;
968  return temp;
969 }
970 inline ::ignition::msgs::ImageGeom* Geometry::_internal_mutable_image() {
971 
972  if (image_ == nullptr) {
973  auto* p = CreateMaybeMessage<::ignition::msgs::ImageGeom>(GetArena());
974  image_ = p;
975  }
976  return image_;
977 }
978 inline ::ignition::msgs::ImageGeom* Geometry::mutable_image() {
979  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.image)
980  return _internal_mutable_image();
981 }
982 inline void Geometry::set_allocated_image(::ignition::msgs::ImageGeom* image) {
983  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
984  if (message_arena == nullptr) {
985  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(image_);
986  }
987  if (image) {
988  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
989  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(image)->GetArena();
990  if (message_arena != submessage_arena) {
991  image = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
992  message_arena, image, submessage_arena);
993  }
994 
995  } else {
996 
997  }
998  image_ = image;
999  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.image)
1000 }
1001 
1002 // .ignition.msgs.HeightmapGeom heightmap = 8;
1003 inline bool Geometry::_internal_has_heightmap() const {
1004  return this != internal_default_instance() && heightmap_ != nullptr;
1005 }
1006 inline bool Geometry::has_heightmap() const {
1007  return _internal_has_heightmap();
1008 }
1009 inline const ::ignition::msgs::HeightmapGeom& Geometry::_internal_heightmap() const {
1010  const ::ignition::msgs::HeightmapGeom* p = heightmap_;
1011  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::HeightmapGeom&>(
1013 }
1014 inline const ::ignition::msgs::HeightmapGeom& Geometry::heightmap() const {
1015  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.heightmap)
1016  return _internal_heightmap();
1017 }
1018 inline void Geometry::unsafe_arena_set_allocated_heightmap(
1019  ::ignition::msgs::HeightmapGeom* heightmap) {
1020  if (GetArena() == nullptr) {
1021  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(heightmap_);
1022  }
1023  heightmap_ = heightmap;
1024  if (heightmap) {
1025 
1026  } else {
1027 
1028  }
1029  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Geometry.heightmap)
1030 }
1031 inline ::ignition::msgs::HeightmapGeom* Geometry::release_heightmap() {
1032 
1033  ::ignition::msgs::HeightmapGeom* temp = heightmap_;
1034  heightmap_ = nullptr;
1035  if (GetArena() != nullptr) {
1036  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1037  }
1038  return temp;
1039 }
1040 inline ::ignition::msgs::HeightmapGeom* Geometry::unsafe_arena_release_heightmap() {
1041  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.heightmap)
1042 
1043  ::ignition::msgs::HeightmapGeom* temp = heightmap_;
1044  heightmap_ = nullptr;
1045  return temp;
1046 }
1047 inline ::ignition::msgs::HeightmapGeom* Geometry::_internal_mutable_heightmap() {
1048 
1049  if (heightmap_ == nullptr) {
1050  auto* p = CreateMaybeMessage<::ignition::msgs::HeightmapGeom>(GetArena());
1051  heightmap_ = p;
1052  }
1053  return heightmap_;
1054 }
1055 inline ::ignition::msgs::HeightmapGeom* Geometry::mutable_heightmap() {
1056  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.heightmap)
1057  return _internal_mutable_heightmap();
1058 }
1059 inline void Geometry::set_allocated_heightmap(::ignition::msgs::HeightmapGeom* heightmap) {
1060  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1061  if (message_arena == nullptr) {
1062  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(heightmap_);
1063  }
1064  if (heightmap) {
1065  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1066  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(heightmap)->GetArena();
1067  if (message_arena != submessage_arena) {
1068  heightmap = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1069  message_arena, heightmap, submessage_arena);
1070  }
1071 
1072  } else {
1073 
1074  }
1075  heightmap_ = heightmap;
1076  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.heightmap)
1077 }
1078 
1079 // .ignition.msgs.MeshGeom mesh = 9;
1080 inline bool Geometry::_internal_has_mesh() const {
1081  return this != internal_default_instance() && mesh_ != nullptr;
1082 }
1083 inline bool Geometry::has_mesh() const {
1084  return _internal_has_mesh();
1085 }
1086 inline const ::ignition::msgs::MeshGeom& Geometry::_internal_mesh() const {
1087  const ::ignition::msgs::MeshGeom* p = mesh_;
1088  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::MeshGeom&>(
1090 }
1091 inline const ::ignition::msgs::MeshGeom& Geometry::mesh() const {
1092  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.mesh)
1093  return _internal_mesh();
1094 }
1095 inline void Geometry::unsafe_arena_set_allocated_mesh(
1096  ::ignition::msgs::MeshGeom* mesh) {
1097  if (GetArena() == nullptr) {
1098  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(mesh_);
1099  }
1100  mesh_ = mesh;
1101  if (mesh) {
1102 
1103  } else {
1104 
1105  }
1106  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Geometry.mesh)
1107 }
1108 inline ::ignition::msgs::MeshGeom* Geometry::release_mesh() {
1109 
1110  ::ignition::msgs::MeshGeom* temp = mesh_;
1111  mesh_ = nullptr;
1112  if (GetArena() != nullptr) {
1113  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1114  }
1115  return temp;
1116 }
1117 inline ::ignition::msgs::MeshGeom* Geometry::unsafe_arena_release_mesh() {
1118  // @@protoc_insertion_point(field_release:ignition.msgs.Geometry.mesh)
1119 
1120  ::ignition::msgs::MeshGeom* temp = mesh_;
1121  mesh_ = nullptr;
1122  return temp;
1123 }
1124 inline ::ignition::msgs::MeshGeom* Geometry::_internal_mutable_mesh() {
1125 
1126  if (mesh_ == nullptr) {
1127  auto* p = CreateMaybeMessage<::ignition::msgs::MeshGeom>(GetArena());
1128  mesh_ = p;
1129  }
1130  return mesh_;
1131 }
1132 inline ::ignition::msgs::MeshGeom* Geometry::mutable_mesh() {
1133  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.mesh)
1134  return _internal_mutable_mesh();
1135 }
1136 inline void Geometry::set_allocated_mesh(::ignition::msgs::MeshGeom* mesh) {
1137  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1138  if (message_arena == nullptr) {
1139  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mesh_);
1140  }
1141  if (mesh) {
1142  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1143  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(mesh)->GetArena();
1144  if (message_arena != submessage_arena) {
1145  mesh = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1146  message_arena, mesh, submessage_arena);
1147  }
1148 
1149  } else {
1150 
1151  }
1152  mesh_ = mesh;
1153  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Geometry.mesh)
1154 }
1155 
1156 // repeated .ignition.msgs.Vector3d points = 10;
1157 inline int Geometry::_internal_points_size() const {
1158  return points_.size();
1159 }
1160 inline int Geometry::points_size() const {
1161  return _internal_points_size();
1162 }
1163 inline ::ignition::msgs::Vector3d* Geometry::mutable_points(int index) {
1164  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.points)
1165  return points_.Mutable(index);
1166 }
1167 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
1168 Geometry::mutable_points() {
1169  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Geometry.points)
1170  return &points_;
1171 }
1172 inline const ::ignition::msgs::Vector3d& Geometry::_internal_points(int index) const {
1173  return points_.Get(index);
1174 }
1175 inline const ::ignition::msgs::Vector3d& Geometry::points(int index) const {
1176  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.points)
1177  return _internal_points(index);
1178 }
1179 inline ::ignition::msgs::Vector3d* Geometry::_internal_add_points() {
1180  return points_.Add();
1181 }
1182 inline ::ignition::msgs::Vector3d* Geometry::add_points() {
1183  // @@protoc_insertion_point(field_add:ignition.msgs.Geometry.points)
1184  return _internal_add_points();
1185 }
1186 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
1187 Geometry::points() const {
1188  // @@protoc_insertion_point(field_list:ignition.msgs.Geometry.points)
1189  return points_;
1190 }
1191 
1192 // repeated .ignition.msgs.Polyline polyline = 11;
1193 inline int Geometry::_internal_polyline_size() const {
1194  return polyline_.size();
1195 }
1196 inline int Geometry::polyline_size() const {
1197  return _internal_polyline_size();
1198 }
1199 inline ::ignition::msgs::Polyline* Geometry::mutable_polyline(int index) {
1200  // @@protoc_insertion_point(field_mutable:ignition.msgs.Geometry.polyline)
1201  return polyline_.Mutable(index);
1202 }
1203 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >*
1204 Geometry::mutable_polyline() {
1205  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Geometry.polyline)
1206  return &polyline_;
1207 }
1208 inline const ::ignition::msgs::Polyline& Geometry::_internal_polyline(int index) const {
1209  return polyline_.Get(index);
1210 }
1211 inline const ::ignition::msgs::Polyline& Geometry::polyline(int index) const {
1212  // @@protoc_insertion_point(field_get:ignition.msgs.Geometry.polyline)
1213  return _internal_polyline(index);
1214 }
1215 inline ::ignition::msgs::Polyline* Geometry::_internal_add_polyline() {
1216  return polyline_.Add();
1217 }
1218 inline ::ignition::msgs::Polyline* Geometry::add_polyline() {
1219  // @@protoc_insertion_point(field_add:ignition.msgs.Geometry.polyline)
1220  return _internal_add_polyline();
1221 }
1222 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >&
1223 Geometry::polyline() const {
1224  // @@protoc_insertion_point(field_list:ignition.msgs.Geometry.polyline)
1225  return polyline_;
1226 }
1227 
1228 #ifdef __GNUC__
1229  #pragma GCC diagnostic pop
1230 #endif // __GNUC__
1231 
1236 // @@protoc_insertion_point(namespace_scope)
1237 
1238 } // namespace msgs
1239 } // namespace ignition
1240 
1241 PROTOBUF_NAMESPACE_OPEN
1242 
1243 template <> struct is_proto_enum< ::ignition::msgs::Geometry_Type> : ::std::true_type {};
1244 template <>
1245 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Geometry_Type>() {
1247 }
1248 
1249 PROTOBUF_NAMESPACE_CLOSE
1250 
1251 #ifdef _MSC_VER
1252 #pragma warning(pop)
1253 #endif
1254 // @@protoc_insertion_point(global_scope)
1255 
1256 #include <google/protobuf/port_undef.inc>
1257 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fgeometry_2eproto
void set_type(::ignition::msgs::Geometry_Type value)
::ignition::msgs::Vector3d * add_points()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: geometry.pb.h:158
const ::ignition::msgs::Polyline & polyline(int index) const
const ::ignition::msgs::SphereGeom & sphere() const
Geometry * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: geometry.pb.h:193
static const std::string & Type_Name(T enum_t_value)
Definition: geometry.pb.h:273
void unsafe_arena_set_allocated_sphere(::ignition::msgs::SphereGeom *sphere)
void unsafe_arena_set_allocated_heightmap(::ignition::msgs::HeightmapGeom *heightmap)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::MeshGeom * release_mesh()
::ignition::msgs::Header * release_header()
friend void swap(Geometry &a, Geometry &b)
Definition: geometry.pb.h:170
::ignition::msgs::PlaneGeom * mutable_plane()
void unsafe_arena_set_allocated_image(::ignition::msgs::ImageGeom *image)
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: geometry.pb.h:152
void unsafe_arena_set_allocated_cylinder(::ignition::msgs::CylinderGeom *cylinder)
::ignition::msgs::MeshGeom * mutable_mesh()
::ignition::msgs::SphereGeom * release_sphere()
void Swap(Geometry *other)
Definition: geometry.pb.h:173
const ::ignition::msgs::HeightmapGeom & heightmap() const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: geometry.pb.h:269
const ::ignition::msgs::MeshGeom & mesh() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const Geometry &from)
::ignition::msgs::ImageGeom * mutable_image()
::ignition::msgs::Geometry_Type type() const
void UnsafeArenaSwap(Geometry *other)
Definition: geometry.pb.h:181
static bool Type_IsValid(int value)
Definition: geometry.pb.h:259
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d > & points() const
::ignition::msgs::Vector3d * mutable_points(int index)
::ignition::msgs::HeightmapGeom * mutable_heightmap()
Geometry & operator=(Geometry &&from) noexcept
Definition: geometry.pb.h:143
::ignition::msgs::ImageGeom * release_image()
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void set_allocated_plane(::ignition::msgs::PlaneGeom *plane)
::ignition::msgs::Polyline * add_polyline()
::ignition::msgs::PlaneGeom * unsafe_arena_release_plane()
Geometry(Geometry &&from) noexcept
Definition: geometry.pb.h:134
void set_allocated_box(::ignition::msgs::BoxGeom *box)
Geometry & operator=(const Geometry &from)
Definition: geometry.pb.h:139
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline > * mutable_polyline()
::ignition::msgs::CylinderGeom * unsafe_arena_release_cylinder()
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void unsafe_arena_set_allocated_box(::ignition::msgs::BoxGeom *box)
::ignition::msgs::BoxGeom * release_box()
::ignition::msgs::PlaneGeom * release_plane()
void set_allocated_sphere(::ignition::msgs::SphereGeom *sphere)
::ignition::msgs::CylinderGeom * release_cylinder()
void set_allocated_image(::ignition::msgs::ImageGeom *image)
::ignition::msgs::HeightmapGeom * unsafe_arena_release_heightmap()
Geometry_Type Type
Definition: geometry.pb.h:236
::ignition::msgs::ImageGeom * unsafe_arena_release_image()
::ignition::msgs::Polyline * mutable_polyline(int index)
static bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type *value)
Definition: geometry.pb.h:279
const ::ignition::msgs::PlaneGeom & plane() const
void set_allocated_header(::ignition::msgs::Header *header)
::ignition::msgs::CylinderGeom * mutable_cylinder()
void unsafe_arena_set_allocated_mesh(::ignition::msgs::MeshGeom *mesh)
::ignition::msgs::MeshGeom * unsafe_arena_release_mesh()
const ::ignition::msgs::CylinderGeom & cylinder() const
::ignition::msgs::SphereGeom * mutable_sphere()
Geometry(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::ignition::msgs::SphereGeom * unsafe_arena_release_sphere()
const ::ignition::msgs::ImageGeom & image() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Geometry * New() const final
Definition: geometry.pb.h:189
::ignition::msgs::BoxGeom * unsafe_arena_release_box()
Geometry(const Geometry &from)
void unsafe_arena_set_allocated_plane(::ignition::msgs::PlaneGeom *plane)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: geometry.pb.h:155
void set_allocated_heightmap(::ignition::msgs::HeightmapGeom *heightmap)
void set_allocated_cylinder(::ignition::msgs::CylinderGeom *cylinder)
void set_allocated_mesh(::ignition::msgs::MeshGeom *mesh)
::ignition::msgs::BoxGeom * mutable_box()
Geometry()
Definition: geometry.pb.h:130
const ::ignition::msgs::Vector3d & points(int index) const
const ::ignition::msgs::BoxGeom & box() const
static const Geometry & default_instance()
void CopyFrom(const Geometry &from)
static const Geometry * internal_default_instance()
Definition: geometry.pb.h:163
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_points()
const ::ignition::msgs::Header & header() const
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline > & polyline() const
::ignition::msgs::HeightmapGeom * release_heightmap()
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fgeometry_2eproto
T max(T... args)
T min(T... args)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Geometry_Type_descriptor()
IGNITION_MSGS_VISIBLE PlaneGeomDefaultTypeInternal _PlaneGeom_default_instance_
constexpr Geometry_Type Geometry_Type_Type_MIN
Definition: geometry.pb.h:107
IGNITION_MSGS_VISIBLE HeightmapGeomDefaultTypeInternal _HeightmapGeom_default_instance_
IGNITION_MSGS_VISIBLE bool Geometry_Type_IsValid(int value)
std::unique_ptr< const Geometry > ConstGeometryUniquePtr
Definition: geometry.pb.h:1233
IGNITION_MSGS_VISIBLE ImageGeomDefaultTypeInternal _ImageGeom_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< Geometry > GeometrySharedPtr
Definition: geometry.pb.h:1234
constexpr int Geometry_Type_Type_ARRAYSIZE
Definition: geometry.pb.h:109
IGNITION_MSGS_VISIBLE MeshGeomDefaultTypeInternal _MeshGeom_default_instance_
std::shared_ptr< const Geometry > ConstGeometrySharedPtr
Definition: geometry.pb.h:1235
const std::string & Geometry_Type_Name(T enum_t_value)
Definition: geometry.pb.h:113
std::unique_ptr< Geometry > GeometryUniquePtr
Definition: geometry.pb.h:1232
bool Geometry_Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Geometry_Type *value)
Definition: geometry.pb.h:120
IGNITION_MSGS_VISIBLE CylinderGeomDefaultTypeInternal _CylinderGeom_default_instance_
Atmosphere_Type
Definition: atmosphere.pb.h:82
Geometry_Type
Definition: geometry.pb.h:91
@ Geometry_Type_Geometry_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: geometry.pb.h:103
@ Geometry_Type_Geometry_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: geometry.pb.h:104
@ Geometry_Type_MESH
Definition: geometry.pb.h:98
@ Geometry_Type_CYLINDER
Definition: geometry.pb.h:93
@ Geometry_Type_SPHERE
Definition: geometry.pb.h:94
@ Geometry_Type_HEIGHTMAP
Definition: geometry.pb.h:97
@ Geometry_Type_POLYLINE
Definition: geometry.pb.h:101
@ Geometry_Type_IMAGE
Definition: geometry.pb.h:96
@ Geometry_Type_TRIANGLE_FAN
Definition: geometry.pb.h:99
@ Geometry_Type_LINE_STRIP
Definition: geometry.pb.h:100
@ Geometry_Type_PLANE
Definition: geometry.pb.h:95
@ Geometry_Type_EMPTY
Definition: geometry.pb.h:102
@ Geometry_Type_BOX
Definition: geometry.pb.h:92
IGNITION_MSGS_VISIBLE BoxGeomDefaultTypeInternal _BoxGeom_default_instance_
constexpr Geometry_Type Geometry_Type_Type_MAX
Definition: geometry.pb.h:108
IGNITION_MSGS_VISIBLE SphereGeomDefaultTypeInternal _SphereGeom_default_instance_
IGNITION_MSGS_VISIBLE GeometryDefaultTypeInternal _Geometry_default_instance_
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)