4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fgeometry_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fgeometry_2eproto
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
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.
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>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
46 #pragma GCC system_header
49 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
52 #include <sys/sysmacros.h>
57 #include <google/protobuf/port_def.inc>
58 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fgeometry_2eproto IGNITION_MSGS_VISIBLE
59 PROTOBUF_NAMESPACE_OPEN
63 PROTOBUF_NAMESPACE_CLOSE
67 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
69 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
71 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
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[];
81 class GeometryDefaultTypeInternal;
85 PROTOBUF_NAMESPACE_OPEN
86 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Geometry* Arena::CreateMaybeMessage<::ignition::msgs::Geometry>(Arena*);
87 PROTOBUF_NAMESPACE_CLOSE
116 "Incorrect type passed to function Geometry_Type_Name.");
117 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
121 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Geometry_Type* value) {
122 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Geometry_Type>(
127 class IGNITION_MSGS_VISIBLE Geometry PROTOBUF_FINAL :
128 public ::PROTOBUF_NAMESPACE_ID::Message {
136 *
this = ::std::move(from);
144 if (GetArena() == from.GetArena()) {
145 if (
this != &from) InternalSwap(&from);
152 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
153 return GetDescriptor();
156 return GetMetadataStatic().descriptor;
159 return GetMetadataStatic().reflection;
164 return reinterpret_cast<const Geometry*
>(
167 static constexpr
int kIndexInFileMessages =
170 friend void swap(Geometry& a, Geometry& b) {
173 inline void Swap(Geometry* other) {
174 if (other ==
this)
return;
175 if (GetArena() == other->GetArena()) {
178 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
182 if (other ==
this)
return;
183 GOOGLE_DCHECK(GetArena() == other->GetArena());
189 inline Geometry*
New() const final {
190 return CreateMaybeMessage<Geometry>(
nullptr);
193 Geometry*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
194 return CreateMaybeMessage<Geometry>(arena);
196 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
197 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
200 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
201 bool IsInitialized() const final;
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(); }
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";
219 explicit Geometry(::PROTOBUF_NAMESPACE_ID::Arena* arena);
221 static void ArenaDtor(
void*
object);
222 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
227 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
239 static constexpr
Type CYLINDER =
247 static constexpr
Type HEIGHTMAP =
251 static constexpr
Type TRIANGLE_FAN =
253 static constexpr
Type LINE_STRIP =
255 static constexpr
Type POLYLINE =
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*
276 "Incorrect type passed to function Type_Name.");
279 static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
287 kPointsFieldNumber = 10,
288 kPolylineFieldNumber = 11,
289 kHeaderFieldNumber = 1,
291 kCylinderFieldNumber = 4,
292 kPlaneFieldNumber = 5,
293 kSphereFieldNumber = 6,
294 kImageFieldNumber = 7,
295 kHeightmapFieldNumber = 8,
296 kMeshFieldNumber = 9,
297 kTypeFieldNumber = 2,
302 int _internal_points_size()
const;
306 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
309 const ::ignition::msgs::Vector3d& _internal_points(
int index)
const;
310 ::ignition::msgs::Vector3d* _internal_add_points();
312 const ::ignition::msgs::Vector3d&
points(
int index)
const;
314 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
320 int _internal_polyline_size()
const;
324 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >*
327 const ::ignition::msgs::Polyline& _internal_polyline(
int index)
const;
328 ::ignition::msgs::Polyline* _internal_add_polyline();
330 const ::ignition::msgs::Polyline&
polyline(
int index)
const;
332 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >&
338 bool _internal_has_header()
const;
341 const ::ignition::msgs::Header&
header()
const;
346 const ::ignition::msgs::Header& _internal_header()
const;
347 ::ignition::msgs::Header* _internal_mutable_header();
350 ::ignition::msgs::Header* header);
356 bool _internal_has_box()
const;
359 const ::ignition::msgs::BoxGeom&
box()
const;
364 const ::ignition::msgs::BoxGeom& _internal_box()
const;
365 ::ignition::msgs::BoxGeom* _internal_mutable_box();
368 ::ignition::msgs::BoxGeom* box);
374 bool _internal_has_cylinder()
const;
377 const ::ignition::msgs::CylinderGeom&
cylinder()
const;
382 const ::ignition::msgs::CylinderGeom& _internal_cylinder()
const;
383 ::ignition::msgs::CylinderGeom* _internal_mutable_cylinder();
386 ::ignition::msgs::CylinderGeom* cylinder);
392 bool _internal_has_plane()
const;
395 const ::ignition::msgs::PlaneGeom&
plane()
const;
400 const ::ignition::msgs::PlaneGeom& _internal_plane()
const;
401 ::ignition::msgs::PlaneGeom* _internal_mutable_plane();
404 ::ignition::msgs::PlaneGeom* plane);
410 bool _internal_has_sphere()
const;
413 const ::ignition::msgs::SphereGeom&
sphere()
const;
418 const ::ignition::msgs::SphereGeom& _internal_sphere()
const;
419 ::ignition::msgs::SphereGeom* _internal_mutable_sphere();
422 ::ignition::msgs::SphereGeom* sphere);
428 bool _internal_has_image()
const;
431 const ::ignition::msgs::ImageGeom&
image()
const;
436 const ::ignition::msgs::ImageGeom& _internal_image()
const;
437 ::ignition::msgs::ImageGeom* _internal_mutable_image();
440 ::ignition::msgs::ImageGeom* image);
446 bool _internal_has_heightmap()
const;
449 const ::ignition::msgs::HeightmapGeom&
heightmap()
const;
454 const ::ignition::msgs::HeightmapGeom& _internal_heightmap()
const;
455 ::ignition::msgs::HeightmapGeom* _internal_mutable_heightmap();
458 ::ignition::msgs::HeightmapGeom* heightmap);
464 bool _internal_has_mesh()
const;
467 const ::ignition::msgs::MeshGeom&
mesh()
const;
472 const ::ignition::msgs::MeshGeom& _internal_mesh()
const;
473 ::ignition::msgs::MeshGeom* _internal_mutable_mesh();
476 ::ignition::msgs::MeshGeom* mesh);
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_;
506 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
507 friend struct ::TableStruct_ignition_2fmsgs_2fgeometry_2eproto;
515 #pragma GCC diagnostic push
516 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
521 inline bool Geometry::_internal_has_header()
const {
522 return this != internal_default_instance() && header_ !=
nullptr;
524 inline bool Geometry::has_header()
const {
525 return _internal_has_header();
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&
>(
532 inline const ::ignition::msgs::Header& Geometry::header()
const {
534 return _internal_header();
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_);
549 inline ::ignition::msgs::Header* Geometry::release_header() {
551 ::ignition::msgs::Header* temp = header_;
553 if (GetArena() !=
nullptr) {
554 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
558 inline ::ignition::msgs::Header* Geometry::unsafe_arena_release_header() {
561 ::ignition::msgs::Header* temp = header_;
565 inline ::ignition::msgs::Header* Geometry::_internal_mutable_header() {
567 if (header_ ==
nullptr) {
568 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
573 inline ::ignition::msgs::Header* Geometry::mutable_header() {
575 return _internal_mutable_header();
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_);
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);
598 inline void Geometry::clear_type() {
606 return _internal_type();
613 _internal_set_type(value);
618 inline bool Geometry::_internal_has_box()
const {
619 return this != internal_default_instance() && box_ !=
nullptr;
621 inline bool Geometry::has_box()
const {
622 return _internal_has_box();
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&
>(
629 inline const ::ignition::msgs::BoxGeom& Geometry::box()
const {
631 return _internal_box();
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_);
646 inline ::ignition::msgs::BoxGeom* Geometry::release_box() {
648 ::ignition::msgs::BoxGeom* temp = box_;
650 if (GetArena() !=
nullptr) {
651 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
655 inline ::ignition::msgs::BoxGeom* Geometry::unsafe_arena_release_box() {
658 ::ignition::msgs::BoxGeom* temp = box_;
662 inline ::ignition::msgs::BoxGeom* Geometry::_internal_mutable_box() {
664 if (box_ ==
nullptr) {
665 auto* p = CreateMaybeMessage<::ignition::msgs::BoxGeom>(GetArena());
670 inline ::ignition::msgs::BoxGeom* Geometry::mutable_box() {
672 return _internal_mutable_box();
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_);
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);
695 inline bool Geometry::_internal_has_cylinder()
const {
696 return this != internal_default_instance() && cylinder_ !=
nullptr;
698 inline bool Geometry::has_cylinder()
const {
699 return _internal_has_cylinder();
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&
>(
706 inline const ::ignition::msgs::CylinderGeom& Geometry::cylinder()
const {
708 return _internal_cylinder();
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_);
715 cylinder_ = cylinder;
723 inline ::ignition::msgs::CylinderGeom* Geometry::release_cylinder() {
725 ::ignition::msgs::CylinderGeom* temp = cylinder_;
727 if (GetArena() !=
nullptr) {
728 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
732 inline ::ignition::msgs::CylinderGeom* Geometry::unsafe_arena_release_cylinder() {
735 ::ignition::msgs::CylinderGeom* temp = cylinder_;
739 inline ::ignition::msgs::CylinderGeom* Geometry::_internal_mutable_cylinder() {
741 if (cylinder_ ==
nullptr) {
742 auto* p = CreateMaybeMessage<::ignition::msgs::CylinderGeom>(GetArena());
747 inline ::ignition::msgs::CylinderGeom* Geometry::mutable_cylinder() {
749 return _internal_mutable_cylinder();
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_);
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);
767 cylinder_ = cylinder;
772 inline bool Geometry::_internal_has_plane()
const {
773 return this != internal_default_instance() && plane_ !=
nullptr;
775 inline bool Geometry::has_plane()
const {
776 return _internal_has_plane();
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&
>(
783 inline const ::ignition::msgs::PlaneGeom& Geometry::plane()
const {
785 return _internal_plane();
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_);
800 inline ::ignition::msgs::PlaneGeom* Geometry::release_plane() {
802 ::ignition::msgs::PlaneGeom* temp = plane_;
804 if (GetArena() !=
nullptr) {
805 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
809 inline ::ignition::msgs::PlaneGeom* Geometry::unsafe_arena_release_plane() {
812 ::ignition::msgs::PlaneGeom* temp = plane_;
816 inline ::ignition::msgs::PlaneGeom* Geometry::_internal_mutable_plane() {
818 if (plane_ ==
nullptr) {
819 auto* p = CreateMaybeMessage<::ignition::msgs::PlaneGeom>(GetArena());
824 inline ::ignition::msgs::PlaneGeom* Geometry::mutable_plane() {
826 return _internal_mutable_plane();
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_);
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);
849 inline bool Geometry::_internal_has_sphere()
const {
850 return this != internal_default_instance() && sphere_ !=
nullptr;
852 inline bool Geometry::has_sphere()
const {
853 return _internal_has_sphere();
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&
>(
860 inline const ::ignition::msgs::SphereGeom& Geometry::sphere()
const {
862 return _internal_sphere();
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_);
877 inline ::ignition::msgs::SphereGeom* Geometry::release_sphere() {
879 ::ignition::msgs::SphereGeom* temp = sphere_;
881 if (GetArena() !=
nullptr) {
882 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
886 inline ::ignition::msgs::SphereGeom* Geometry::unsafe_arena_release_sphere() {
889 ::ignition::msgs::SphereGeom* temp = sphere_;
893 inline ::ignition::msgs::SphereGeom* Geometry::_internal_mutable_sphere() {
895 if (sphere_ ==
nullptr) {
896 auto* p = CreateMaybeMessage<::ignition::msgs::SphereGeom>(GetArena());
901 inline ::ignition::msgs::SphereGeom* Geometry::mutable_sphere() {
903 return _internal_mutable_sphere();
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_);
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);
926 inline bool Geometry::_internal_has_image()
const {
927 return this != internal_default_instance() && image_ !=
nullptr;
929 inline bool Geometry::has_image()
const {
930 return _internal_has_image();
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&
>(
937 inline const ::ignition::msgs::ImageGeom& Geometry::image()
const {
939 return _internal_image();
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_);
954 inline ::ignition::msgs::ImageGeom* Geometry::release_image() {
956 ::ignition::msgs::ImageGeom* temp = image_;
958 if (GetArena() !=
nullptr) {
959 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
963 inline ::ignition::msgs::ImageGeom* Geometry::unsafe_arena_release_image() {
966 ::ignition::msgs::ImageGeom* temp = image_;
970 inline ::ignition::msgs::ImageGeom* Geometry::_internal_mutable_image() {
972 if (image_ ==
nullptr) {
973 auto* p = CreateMaybeMessage<::ignition::msgs::ImageGeom>(GetArena());
978 inline ::ignition::msgs::ImageGeom* Geometry::mutable_image() {
980 return _internal_mutable_image();
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_);
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);
1003 inline bool Geometry::_internal_has_heightmap()
const {
1004 return this != internal_default_instance() && heightmap_ !=
nullptr;
1006 inline bool Geometry::has_heightmap()
const {
1007 return _internal_has_heightmap();
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&
>(
1014 inline const ::ignition::msgs::HeightmapGeom& Geometry::heightmap()
const {
1016 return _internal_heightmap();
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_);
1023 heightmap_ = heightmap;
1031 inline ::ignition::msgs::HeightmapGeom* Geometry::release_heightmap() {
1033 ::ignition::msgs::HeightmapGeom* temp = heightmap_;
1034 heightmap_ =
nullptr;
1035 if (GetArena() !=
nullptr) {
1036 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1040 inline ::ignition::msgs::HeightmapGeom* Geometry::unsafe_arena_release_heightmap() {
1043 ::ignition::msgs::HeightmapGeom* temp = heightmap_;
1044 heightmap_ =
nullptr;
1047 inline ::ignition::msgs::HeightmapGeom* Geometry::_internal_mutable_heightmap() {
1049 if (heightmap_ ==
nullptr) {
1050 auto* p = CreateMaybeMessage<::ignition::msgs::HeightmapGeom>(GetArena());
1055 inline ::ignition::msgs::HeightmapGeom* Geometry::mutable_heightmap() {
1057 return _internal_mutable_heightmap();
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_);
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);
1075 heightmap_ = heightmap;
1080 inline bool Geometry::_internal_has_mesh()
const {
1081 return this != internal_default_instance() && mesh_ !=
nullptr;
1083 inline bool Geometry::has_mesh()
const {
1084 return _internal_has_mesh();
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&
>(
1091 inline const ::ignition::msgs::MeshGeom& Geometry::mesh()
const {
1093 return _internal_mesh();
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_);
1108 inline ::ignition::msgs::MeshGeom* Geometry::release_mesh() {
1110 ::ignition::msgs::MeshGeom* temp = mesh_;
1112 if (GetArena() !=
nullptr) {
1113 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1117 inline ::ignition::msgs::MeshGeom* Geometry::unsafe_arena_release_mesh() {
1120 ::ignition::msgs::MeshGeom* temp = mesh_;
1124 inline ::ignition::msgs::MeshGeom* Geometry::_internal_mutable_mesh() {
1126 if (mesh_ ==
nullptr) {
1127 auto* p = CreateMaybeMessage<::ignition::msgs::MeshGeom>(GetArena());
1132 inline ::ignition::msgs::MeshGeom* Geometry::mutable_mesh() {
1134 return _internal_mutable_mesh();
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_);
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);
1157 inline int Geometry::_internal_points_size()
const {
1158 return points_.size();
1160 inline int Geometry::points_size()
const {
1161 return _internal_points_size();
1163 inline ::ignition::msgs::Vector3d* Geometry::mutable_points(
int index) {
1165 return points_.Mutable(index);
1167 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
1168 Geometry::mutable_points() {
1172 inline const ::ignition::msgs::Vector3d& Geometry::_internal_points(
int index)
const {
1173 return points_.Get(index);
1175 inline const ::ignition::msgs::Vector3d& Geometry::points(
int index)
const {
1177 return _internal_points(index);
1179 inline ::ignition::msgs::Vector3d* Geometry::_internal_add_points() {
1180 return points_.Add();
1182 inline ::ignition::msgs::Vector3d* Geometry::add_points() {
1184 return _internal_add_points();
1186 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
1187 Geometry::points()
const {
1193 inline int Geometry::_internal_polyline_size()
const {
1194 return polyline_.size();
1196 inline int Geometry::polyline_size()
const {
1197 return _internal_polyline_size();
1199 inline ::ignition::msgs::Polyline* Geometry::mutable_polyline(
int index) {
1201 return polyline_.Mutable(index);
1203 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >*
1204 Geometry::mutable_polyline() {
1208 inline const ::ignition::msgs::Polyline& Geometry::_internal_polyline(
int index)
const {
1209 return polyline_.Get(index);
1211 inline const ::ignition::msgs::Polyline& Geometry::polyline(
int index)
const {
1213 return _internal_polyline(index);
1215 inline ::ignition::msgs::Polyline* Geometry::_internal_add_polyline() {
1216 return polyline_.Add();
1218 inline ::ignition::msgs::Polyline* Geometry::add_polyline() {
1220 return _internal_add_polyline();
1222 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >&
1223 Geometry::polyline()
const {
1229 #pragma GCC diagnostic pop
1241 PROTOBUF_NAMESPACE_OPEN
1245 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Geometry_Type>() {
1249 PROTOBUF_NAMESPACE_CLOSE
1252 #pragma warning(pop)
1256 #include <google/protobuf/port_undef.inc>
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
int polyline_size() const
::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
bool has_cylinder() const
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)
bool has_heightmap() const
::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
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
Definition: geometry.pb.h:66
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)