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 < 3019000
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 3019000 < 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 uint32_t offsets[];
81 struct 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>(
128 public ::PROTOBUF_NAMESPACE_ID::Message {
132 explicit constexpr
Geometry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
137 *
this = ::std::move(from);
145 if (
this == &from)
return *
this;
146 if (GetOwningArena() == from.GetOwningArena()
147 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
148 && GetOwningArena() !=
nullptr
158 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
159 return GetDescriptor();
162 return default_instance().GetMetadata().descriptor;
165 return default_instance().GetMetadata().reflection;
168 return *internal_default_instance();
171 return reinterpret_cast<const Geometry*
>(
174 static constexpr
int kIndexInFileMessages =
181 if (other ==
this)
return;
182 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
183 if (GetOwningArena() !=
nullptr &&
184 GetOwningArena() == other->GetOwningArena()) {
186 if (GetOwningArena() == other->GetOwningArena()) {
190 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
194 if (other ==
this)
return;
195 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
201 Geometry*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
202 return CreateMaybeMessage<Geometry>(arena);
204 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
206 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
209 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
211 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
212 bool IsInitialized() const final;
214 size_t ByteSizeLong() const final;
215 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
216 uint8_t* _InternalSerialize(
217 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
218 int GetCachedSize() const final {
return _cached_size_.Get(); }
223 void SetCachedSize(
int size)
const final;
227 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
228 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
229 return "ignition.msgs.Geometry";
232 explicit Geometry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
233 bool is_message_owned =
false);
235 static void ArenaDtor(
void*
object);
236 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
240 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
242 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
249 static constexpr
Type CYLINDER =
257 static constexpr
Type HEIGHTMAP =
261 static constexpr
Type TRIANGLE_FAN =
263 static constexpr
Type LINE_STRIP =
265 static constexpr
Type POLYLINE =
269 static inline
bool Type_IsValid(
int value) {
272 static constexpr
Type Type_MIN =
274 static constexpr
Type Type_MAX =
276 static constexpr
int Type_ARRAYSIZE =
278 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
286 "Incorrect type passed to function Type_Name.");
289 static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
297 kPointsFieldNumber = 10,
298 kPolylineFieldNumber = 11,
299 kHeaderFieldNumber = 1,
301 kCylinderFieldNumber = 4,
302 kPlaneFieldNumber = 5,
303 kSphereFieldNumber = 6,
304 kImageFieldNumber = 7,
305 kHeightmapFieldNumber = 8,
306 kMeshFieldNumber = 9,
307 kTypeFieldNumber = 2,
310 int points_size()
const;
312 int _internal_points_size()
const;
316 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
319 const ::ignition::msgs::Vector3d& _internal_points(
int index)
const;
322 const ::ignition::msgs::Vector3d& points(
int index)
const;
324 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
328 int polyline_size()
const;
330 int _internal_polyline_size()
const;
334 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >*
337 const ::ignition::msgs::Polyline& _internal_polyline(
int index)
const;
340 const ::ignition::msgs::Polyline& polyline(
int index)
const;
342 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >&
346 bool has_header()
const;
348 bool _internal_has_header()
const;
351 const ::ignition::msgs::Header& header()
const;
352 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
356 const ::ignition::msgs::Header& _internal_header()
const;
359 void unsafe_arena_set_allocated_header(
364 bool has_box()
const;
366 bool _internal_has_box()
const;
369 const ::ignition::msgs::BoxGeom& box()
const;
370 PROTOBUF_NODISCARD ::ignition::msgs::BoxGeom* release_box();
374 const ::ignition::msgs::BoxGeom& _internal_box()
const;
377 void unsafe_arena_set_allocated_box(
382 bool has_cylinder()
const;
384 bool _internal_has_cylinder()
const;
387 const ::ignition::msgs::CylinderGeom& cylinder()
const;
388 PROTOBUF_NODISCARD ::ignition::msgs::CylinderGeom* release_cylinder();
392 const ::ignition::msgs::CylinderGeom& _internal_cylinder()
const;
395 void unsafe_arena_set_allocated_cylinder(
400 bool has_plane()
const;
402 bool _internal_has_plane()
const;
405 const ::ignition::msgs::PlaneGeom& plane()
const;
406 PROTOBUF_NODISCARD ::ignition::msgs::PlaneGeom* release_plane();
410 const ::ignition::msgs::PlaneGeom& _internal_plane()
const;
413 void unsafe_arena_set_allocated_plane(
418 bool has_sphere()
const;
420 bool _internal_has_sphere()
const;
423 const ::ignition::msgs::SphereGeom& sphere()
const;
424 PROTOBUF_NODISCARD ::ignition::msgs::SphereGeom* release_sphere();
428 const ::ignition::msgs::SphereGeom& _internal_sphere()
const;
431 void unsafe_arena_set_allocated_sphere(
436 bool has_image()
const;
438 bool _internal_has_image()
const;
441 const ::ignition::msgs::ImageGeom& image()
const;
442 PROTOBUF_NODISCARD ::ignition::msgs::ImageGeom* release_image();
446 const ::ignition::msgs::ImageGeom& _internal_image()
const;
449 void unsafe_arena_set_allocated_image(
454 bool has_heightmap()
const;
456 bool _internal_has_heightmap()
const;
459 const ::ignition::msgs::HeightmapGeom& heightmap()
const;
460 PROTOBUF_NODISCARD ::ignition::msgs::HeightmapGeom* release_heightmap();
464 const ::ignition::msgs::HeightmapGeom& _internal_heightmap()
const;
467 void unsafe_arena_set_allocated_heightmap(
472 bool has_mesh()
const;
474 bool _internal_has_mesh()
const;
477 const ::ignition::msgs::MeshGeom& mesh()
const;
478 PROTOBUF_NODISCARD ::ignition::msgs::MeshGeom* release_mesh();
482 const ::ignition::msgs::MeshGeom& _internal_mesh()
const;
485 void unsafe_arena_set_allocated_mesh(
502 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
503 typedef void InternalArenaConstructable_;
504 typedef void DestructorSkippable_;
505 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d > points_;
506 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline > polyline_;
516 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
517 friend struct ::TableStruct_ignition_2fmsgs_2fgeometry_2eproto;
525 #pragma GCC diagnostic push
526 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
531 inline bool Geometry::_internal_has_header()
const {
532 return this != internal_default_instance() && header_ !=
nullptr;
535 return _internal_has_header();
537 inline const ::ignition::msgs::Header& Geometry::_internal_header()
const {
538 const ::ignition::msgs::Header* p = header_;
544 return _internal_header();
548 if (GetArenaForAllocation() ==
nullptr) {
549 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
563 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
564 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
565 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
566 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
568 if (GetArenaForAllocation() !=
nullptr) {
569 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
581 inline ::ignition::msgs::Header* Geometry::_internal_mutable_header() {
583 if (header_ ==
nullptr) {
584 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
595 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
596 if (message_arena ==
nullptr) {
597 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
600 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
601 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
602 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
603 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
604 if (message_arena != submessage_arena) {
605 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
606 message_arena, header, submessage_arena);
625 return _internal_type();
632 _internal_set_type(value);
637 inline bool Geometry::_internal_has_box()
const {
638 return this != internal_default_instance() && box_ !=
nullptr;
641 return _internal_has_box();
643 inline const ::ignition::msgs::BoxGeom& Geometry::_internal_box()
const {
644 const ::ignition::msgs::BoxGeom* p = box_;
650 return _internal_box();
654 if (GetArenaForAllocation() ==
nullptr) {
655 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(box_);
669 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
670 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
671 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
672 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
674 if (GetArenaForAllocation() !=
nullptr) {
675 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
687 inline ::ignition::msgs::BoxGeom* Geometry::_internal_mutable_box() {
689 if (box_ ==
nullptr) {
690 auto* p = CreateMaybeMessage<::ignition::msgs::BoxGeom>(GetArenaForAllocation());
701 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
702 if (message_arena ==
nullptr) {
703 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(box_);
706 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
707 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
708 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
709 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(box));
710 if (message_arena != submessage_arena) {
711 box = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
712 message_arena, box, submessage_arena);
723 inline bool Geometry::_internal_has_cylinder()
const {
724 return this != internal_default_instance() && cylinder_ !=
nullptr;
727 return _internal_has_cylinder();
729 inline const ::ignition::msgs::CylinderGeom& Geometry::_internal_cylinder()
const {
730 const ::ignition::msgs::CylinderGeom* p = cylinder_;
736 return _internal_cylinder();
740 if (GetArenaForAllocation() ==
nullptr) {
741 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(cylinder_);
743 cylinder_ = cylinder;
755 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
756 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
757 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
758 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
760 if (GetArenaForAllocation() !=
nullptr) {
761 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
773 inline ::ignition::msgs::CylinderGeom* Geometry::_internal_mutable_cylinder() {
775 if (cylinder_ ==
nullptr) {
776 auto* p = CreateMaybeMessage<::ignition::msgs::CylinderGeom>(GetArenaForAllocation());
787 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
788 if (message_arena ==
nullptr) {
789 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(cylinder_);
792 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
793 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
794 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
795 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(cylinder));
796 if (message_arena != submessage_arena) {
797 cylinder = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
798 message_arena, cylinder, submessage_arena);
804 cylinder_ = cylinder;
809 inline bool Geometry::_internal_has_plane()
const {
810 return this != internal_default_instance() && plane_ !=
nullptr;
813 return _internal_has_plane();
815 inline const ::ignition::msgs::PlaneGeom& Geometry::_internal_plane()
const {
816 const ::ignition::msgs::PlaneGeom* p = plane_;
822 return _internal_plane();
826 if (GetArenaForAllocation() ==
nullptr) {
827 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(plane_);
841 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
842 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
843 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
844 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
846 if (GetArenaForAllocation() !=
nullptr) {
847 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
859 inline ::ignition::msgs::PlaneGeom* Geometry::_internal_mutable_plane() {
861 if (plane_ ==
nullptr) {
862 auto* p = CreateMaybeMessage<::ignition::msgs::PlaneGeom>(GetArenaForAllocation());
873 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
874 if (message_arena ==
nullptr) {
875 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(plane_);
878 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
879 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
880 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
881 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(plane));
882 if (message_arena != submessage_arena) {
883 plane = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
884 message_arena, plane, submessage_arena);
895 inline bool Geometry::_internal_has_sphere()
const {
896 return this != internal_default_instance() && sphere_ !=
nullptr;
899 return _internal_has_sphere();
901 inline const ::ignition::msgs::SphereGeom& Geometry::_internal_sphere()
const {
902 const ::ignition::msgs::SphereGeom* p = sphere_;
908 return _internal_sphere();
912 if (GetArenaForAllocation() ==
nullptr) {
913 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(sphere_);
927 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
928 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
929 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
930 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
932 if (GetArenaForAllocation() !=
nullptr) {
933 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
945 inline ::ignition::msgs::SphereGeom* Geometry::_internal_mutable_sphere() {
947 if (sphere_ ==
nullptr) {
948 auto* p = CreateMaybeMessage<::ignition::msgs::SphereGeom>(GetArenaForAllocation());
959 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
960 if (message_arena ==
nullptr) {
961 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(sphere_);
964 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
965 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
966 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
967 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(sphere));
968 if (message_arena != submessage_arena) {
969 sphere = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
970 message_arena, sphere, submessage_arena);
981 inline bool Geometry::_internal_has_image()
const {
982 return this != internal_default_instance() && image_ !=
nullptr;
985 return _internal_has_image();
987 inline const ::ignition::msgs::ImageGeom& Geometry::_internal_image()
const {
988 const ::ignition::msgs::ImageGeom* p = image_;
994 return _internal_image();
998 if (GetArenaForAllocation() ==
nullptr) {
999 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(image_);
1013 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1014 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1015 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1016 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1018 if (GetArenaForAllocation() !=
nullptr) {
1019 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1031 inline ::ignition::msgs::ImageGeom* Geometry::_internal_mutable_image() {
1033 if (image_ ==
nullptr) {
1034 auto* p = CreateMaybeMessage<::ignition::msgs::ImageGeom>(GetArenaForAllocation());
1045 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1046 if (message_arena ==
nullptr) {
1047 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(image_);
1050 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1051 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
1052 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
1053 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(image));
1054 if (message_arena != submessage_arena) {
1055 image = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1056 message_arena, image, submessage_arena);
1067 inline bool Geometry::_internal_has_heightmap()
const {
1068 return this != internal_default_instance() && heightmap_ !=
nullptr;
1071 return _internal_has_heightmap();
1073 inline const ::ignition::msgs::HeightmapGeom& Geometry::_internal_heightmap()
const {
1074 const ::ignition::msgs::HeightmapGeom* p = heightmap_;
1080 return _internal_heightmap();
1084 if (GetArenaForAllocation() ==
nullptr) {
1085 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(heightmap_);
1087 heightmap_ = heightmap;
1098 heightmap_ =
nullptr;
1099 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1100 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1101 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1102 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1104 if (GetArenaForAllocation() !=
nullptr) {
1105 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1114 heightmap_ =
nullptr;
1117 inline ::ignition::msgs::HeightmapGeom* Geometry::_internal_mutable_heightmap() {
1119 if (heightmap_ ==
nullptr) {
1120 auto* p = CreateMaybeMessage<::ignition::msgs::HeightmapGeom>(GetArenaForAllocation());
1131 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1132 if (message_arena ==
nullptr) {
1133 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(heightmap_);
1136 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1137 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
1138 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
1139 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(heightmap));
1140 if (message_arena != submessage_arena) {
1141 heightmap = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1142 message_arena, heightmap, submessage_arena);
1148 heightmap_ = heightmap;
1153 inline bool Geometry::_internal_has_mesh()
const {
1154 return this != internal_default_instance() && mesh_ !=
nullptr;
1157 return _internal_has_mesh();
1159 inline const ::ignition::msgs::MeshGeom& Geometry::_internal_mesh()
const {
1160 const ::ignition::msgs::MeshGeom* p = mesh_;
1166 return _internal_mesh();
1170 if (GetArenaForAllocation() ==
nullptr) {
1171 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(mesh_);
1185 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1186 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1187 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1188 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1190 if (GetArenaForAllocation() !=
nullptr) {
1191 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1203 inline ::ignition::msgs::MeshGeom* Geometry::_internal_mutable_mesh() {
1205 if (mesh_ ==
nullptr) {
1206 auto* p = CreateMaybeMessage<::ignition::msgs::MeshGeom>(GetArenaForAllocation());
1217 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1218 if (message_arena ==
nullptr) {
1219 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(mesh_);
1222 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1223 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
1224 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
1225 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(mesh));
1226 if (message_arena != submessage_arena) {
1227 mesh = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1228 message_arena, mesh, submessage_arena);
1239 inline int Geometry::_internal_points_size()
const {
1240 return points_.size();
1243 return _internal_points_size();
1247 return points_.Mutable(index);
1249 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
1254 inline const ::ignition::msgs::Vector3d& Geometry::_internal_points(
int index)
const {
1255 return points_.Get(index);
1259 return _internal_points(index);
1261 inline ::ignition::msgs::Vector3d* Geometry::_internal_add_points() {
1262 return points_.Add();
1269 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
1276 inline int Geometry::_internal_polyline_size()
const {
1277 return polyline_.size();
1280 return _internal_polyline_size();
1284 return polyline_.Mutable(index);
1286 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >*
1291 inline const ::ignition::msgs::Polyline& Geometry::_internal_polyline(
int index)
const {
1292 return polyline_.Get(index);
1296 return _internal_polyline(index);
1298 inline ::ignition::msgs::Polyline* Geometry::_internal_add_polyline() {
1299 return polyline_.Add();
1306 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline >&
1313 #pragma GCC diagnostic pop
1325 PROTOBUF_NAMESPACE_OPEN
1329 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Geometry_Type>() {
1333 PROTOBUF_NAMESPACE_CLOSE
1336 #pragma warning(pop)
1340 #include <google/protobuf/port_undef.inc>
Definition: boxgeom.pb.h:85
Definition: cylindergeom.pb.h:84
Definition: geometry.pb.h:128
::ignition::msgs::HeightmapGeom * unsafe_arena_release_heightmap()
Definition: geometry.pb.h:1110
void set_type(::ignition::msgs::Geometry_Type value)
Definition: geometry.pb.h:631
::ignition::msgs::SphereGeom * unsafe_arena_release_sphere()
Definition: geometry.pb.h:938
::ignition::msgs::SphereGeom * mutable_sphere()
Definition: geometry.pb.h:953
PROTOBUF_NODISCARD ::ignition::msgs::SphereGeom * release_sphere()
Definition: geometry.pb.h:923
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline > & polyline() const
Definition: geometry.pb.h:1307
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: geometry.pb.h:164
bool has_header() const
Definition: geometry.pb.h:534
static const std::string & Type_Name(T enum_t_value)
Definition: geometry.pb.h:283
void unsafe_arena_set_allocated_sphere(::ignition::msgs::SphereGeom *sphere)
Definition: geometry.pb.h:910
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Polyline > * mutable_polyline()
Definition: geometry.pb.h:1287
void unsafe_arena_set_allocated_heightmap(::ignition::msgs::HeightmapGeom *heightmap)
Definition: geometry.pb.h:1082
::ignition::msgs::Header * mutable_header()
Definition: geometry.pb.h:589
PROTOBUF_NODISCARD ::ignition::msgs::PlaneGeom * release_plane()
Definition: geometry.pb.h:837
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_NODISCARD ::ignition::msgs::MeshGeom * release_mesh()
Definition: geometry.pb.h:1181
const ::ignition::msgs::BoxGeom & box() const
Definition: geometry.pb.h:648
friend void swap(Geometry &a, Geometry &b)
Definition: geometry.pb.h:177
int polyline_size() const
Definition: geometry.pb.h:1279
void unsafe_arena_set_allocated_image(::ignition::msgs::ImageGeom *image)
Definition: geometry.pb.h:996
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: geometry.pb.h:158
void unsafe_arena_set_allocated_cylinder(::ignition::msgs::CylinderGeom *cylinder)
Definition: geometry.pb.h:738
void Swap(Geometry *other)
Definition: geometry.pb.h:180
const ::ignition::msgs::SphereGeom & sphere() const
Definition: geometry.pb.h:906
::ignition::msgs::CylinderGeom * unsafe_arena_release_cylinder()
Definition: geometry.pb.h:766
const ::ignition::msgs::MeshGeom & mesh() const
Definition: geometry.pb.h:1164
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: geometry.pb.h:279
bool has_mesh() const
Definition: geometry.pb.h:1156
bool has_image() const
Definition: geometry.pb.h:984
void MergeFrom(const Geometry &from)
::ignition::msgs::MeshGeom * unsafe_arena_release_mesh()
Definition: geometry.pb.h:1196
const ::ignition::msgs::PlaneGeom & plane() const
Definition: geometry.pb.h:820
void UnsafeArenaSwap(Geometry *other)
Definition: geometry.pb.h:193
bool has_plane() const
Definition: geometry.pb.h:812
::ignition::msgs::HeightmapGeom * mutable_heightmap()
Definition: geometry.pb.h:1125
Geometry & operator=(Geometry &&from) noexcept
Definition: geometry.pb.h:144
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: geometry.pb.h:546
void set_allocated_plane(::ignition::msgs::PlaneGeom *plane)
Definition: geometry.pb.h:872
::ignition::msgs::Geometry_Type type() const
Definition: geometry.pb.h:623
Geometry(Geometry &&from) noexcept
Definition: geometry.pb.h:135
Geometry(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_allocated_box(::ignition::msgs::BoxGeom *box)
Definition: geometry.pb.h:700
Geometry & operator=(const Geometry &from)
Definition: geometry.pb.h:140
bool has_sphere() const
Definition: geometry.pb.h:898
void unsafe_arena_set_allocated_box(::ignition::msgs::BoxGeom *box)
Definition: geometry.pb.h:652
::ignition::msgs::BoxGeom * unsafe_arena_release_box()
Definition: geometry.pb.h:680
::ignition::msgs::PlaneGeom * mutable_plane()
Definition: geometry.pb.h:867
::ignition::msgs::MeshGeom * mutable_mesh()
Definition: geometry.pb.h:1211
void set_allocated_sphere(::ignition::msgs::SphereGeom *sphere)
Definition: geometry.pb.h:958
::ignition::msgs::Polyline * add_polyline()
Definition: geometry.pb.h:1301
void set_allocated_image(::ignition::msgs::ImageGeom *image)
Definition: geometry.pb.h:1044
constexpr Geometry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
int points_size() const
Definition: geometry.pb.h:1242
static bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type *value)
Definition: geometry.pb.h:289
bool has_cylinder() const
Definition: geometry.pb.h:726
void clear_type()
Definition: geometry.pb.h:617
::ignition::msgs::ImageGeom * mutable_image()
Definition: geometry.pb.h:1039
void set_allocated_header(::ignition::msgs::Header *header)
Definition: geometry.pb.h:594
const ::ignition::msgs::HeightmapGeom & heightmap() const
Definition: geometry.pb.h:1078
void unsafe_arena_set_allocated_mesh(::ignition::msgs::MeshGeom *mesh)
Definition: geometry.pb.h:1168
const ::ignition::msgs::CylinderGeom & cylinder() const
Definition: geometry.pb.h:734
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: geometry.pb.h:559
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d > & points() const
Definition: geometry.pb.h:1270
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Geometry(const Geometry &from)
void unsafe_arena_set_allocated_plane(::ignition::msgs::PlaneGeom *plane)
Definition: geometry.pb.h:824
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: geometry.pb.h:161
void set_allocated_heightmap(::ignition::msgs::HeightmapGeom *heightmap)
Definition: geometry.pb.h:1130
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_points()
Definition: geometry.pb.h:1250
::ignition::msgs::BoxGeom * mutable_box()
Definition: geometry.pb.h:695
const ::ignition::msgs::Header & header() const
Definition: geometry.pb.h:542
void set_allocated_cylinder(::ignition::msgs::CylinderGeom *cylinder)
Definition: geometry.pb.h:786
PROTOBUF_NODISCARD ::ignition::msgs::BoxGeom * release_box()
Definition: geometry.pb.h:665
void set_allocated_mesh(::ignition::msgs::MeshGeom *mesh)
Definition: geometry.pb.h:1216
PROTOBUF_NODISCARD ::ignition::msgs::CylinderGeom * release_cylinder()
Definition: geometry.pb.h:751
static const ClassData _class_data_
Definition: geometry.pb.h:239
bool has_heightmap() const
Definition: geometry.pb.h:1070
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: geometry.pb.h:574
::ignition::msgs::ImageGeom * unsafe_arena_release_image()
Definition: geometry.pb.h:1024
Geometry()
Definition: geometry.pb.h:130
::ignition::msgs::CylinderGeom * mutable_cylinder()
Definition: geometry.pb.h:781
const ::ignition::msgs::ImageGeom & image() const
Definition: geometry.pb.h:992
PROTOBUF_NODISCARD ::ignition::msgs::HeightmapGeom * release_heightmap()
Definition: geometry.pb.h:1095
static const Geometry & default_instance()
Definition: geometry.pb.h:167
void CopyFrom(const Geometry &from)
static const Geometry * internal_default_instance()
Definition: geometry.pb.h:170
::ignition::msgs::Vector3d * add_points()
Definition: geometry.pb.h:1264
::ignition::msgs::PlaneGeom * unsafe_arena_release_plane()
Definition: geometry.pb.h:852
PROTOBUF_NODISCARD ::ignition::msgs::ImageGeom * release_image()
Definition: geometry.pb.h:1009
Geometry * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: geometry.pb.h:201
bool has_box() const
Definition: geometry.pb.h:640
Definition: heightmapgeom.pb.h:429
Definition: imagegeom.pb.h:84
Definition: meshgeom.pb.h:85
Definition: planegeom.pb.h:86
Definition: polylinegeom.pb.h:85
Definition: spheregeom.pb.h:84
Definition: vector3d.pb.h:84
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:1317
IGNITION_MSGS_VISIBLE ImageGeomDefaultTypeInternal _ImageGeom_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< Geometry > GeometrySharedPtr
Definition: geometry.pb.h:1318
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:1319
const std::string & Geometry_Type_Name(T enum_t_value)
Definition: geometry.pb.h:113
std::unique_ptr< Geometry > GeometryUniquePtr
Definition: geometry.pb.h:1316
bool Geometry_Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Geometry_Type *value)
Definition: geometry.pb.h:120
IGNITION_MSGS_VISIBLE CylinderGeomDefaultTypeInternal _CylinderGeom_default_instance_
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)