4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fgeometry_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fgeometry_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/boxgeom.pb.h"
35 #include "gz/msgs/capsulegeom.pb.h"
36 #include "gz/msgs/conegeom.pb.h"
37 #include "gz/msgs/cylindergeom.pb.h"
38 #include "gz/msgs/ellipsoidgeom.pb.h"
39 #include "gz/msgs/header.pb.h"
40 #include "gz/msgs/heightmapgeom.pb.h"
41 #include "gz/msgs/imagegeom.pb.h"
42 #include "gz/msgs/meshgeom.pb.h"
43 #include "gz/msgs/planegeom.pb.h"
44 #include "gz/msgs/polylinegeom.pb.h"
45 #include "gz/msgs/spheregeom.pb.h"
46 #include "gz/msgs/vector3d.pb.h"
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fgeometry_2eproto GZ_MSGS_VISIBLE
53 static const ::google::protobuf::internal::ParseTableField entries[];
54 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55 static const ::google::protobuf::internal::ParseTable schema[1];
56 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57 static const ::google::protobuf::internal::SerializationTable serialization_table[];
58 static const ::google::protobuf::uint32 offsets[];
65 class GeometryDefaultTypeInternal;
71 template<> GZ_MSGS_VISIBLE ::gz::msgs::Geometry* Arena::CreateMaybeMessage<::gz::msgs::Geometry>(Arena*);
104 return ::google::protobuf::internal::NameOfEnum(
109 return ::google::protobuf::internal::ParseNamedEnum<Geometry_Type>(
114 class GZ_MSGS_VISIBLE
Geometry :
public ::google::protobuf::Message {
128 *
this = ::std::move(from);
131 inline Geometry& operator=(Geometry&& from) noexcept {
132 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
133 if (
this != &from) InternalSwap(&from);
140 static const ::google::protobuf::Descriptor* descriptor();
141 static const Geometry& default_instance();
143 static void InitAsDefaultInstance();
145 return reinterpret_cast<const Geometry*
>(
148 static constexpr
int kIndexInFileMessages =
159 return CreateMaybeMessage<Geometry>(NULL);
163 return CreateMaybeMessage<Geometry>(arena);
165 void CopyFrom(const ::google::protobuf::Message& from)
final;
166 void MergeFrom(const ::google::protobuf::Message& from)
final;
167 void CopyFrom(
const Geometry& from);
168 void MergeFrom(
const Geometry& from);
170 bool IsInitialized() const final;
172 size_t ByteSizeLong() const final;
173 bool MergePartialFromCodedStream(
174 ::
google::protobuf::io::CodedInputStream* input) final;
175 void SerializeWithCachedSizes(
176 ::
google::protobuf::io::CodedOutputStream* output) const final;
177 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
178 bool deterministic, ::
google::protobuf::uint8* target) const final;
179 int GetCachedSize() const final {
return _cached_size_.Get(); }
184 void SetCachedSize(
int size)
const final;
187 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
190 inline void* MaybeArenaPtr()
const {
195 ::google::protobuf::Metadata GetMetadata() const final;
214 static const
Type TRIANGLE_FAN =
232 static inline
bool Type_IsValid(
int value) {
239 static const int Type_ARRAYSIZE =
241 static inline const ::google::protobuf::EnumDescriptor*
256 int points_size()
const;
258 static const int kPointsFieldNumber = 11;
260 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
262 const ::gz::msgs::Vector3d& points(
int index)
const;
264 const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
268 int polyline_size()
const;
269 void clear_polyline();
270 static const int kPolylineFieldNumber = 12;
272 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline >*
274 const ::gz::msgs::Polyline& polyline(
int index)
const;
276 const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline >&
280 bool has_header()
const;
282 static const int kHeaderFieldNumber = 1;
284 const ::gz::msgs::Header& _internal_header()
const;
286 const ::gz::msgs::Header& header()
const;
292 bool has_box()
const;
294 static const int kBoxFieldNumber = 3;
296 const ::gz::msgs::BoxGeom& _internal_box()
const;
298 const ::gz::msgs::BoxGeom& box()
const;
304 bool has_cylinder()
const;
305 void clear_cylinder();
306 static const int kCylinderFieldNumber = 4;
308 const ::gz::msgs::CylinderGeom& _internal_cylinder()
const;
310 const ::gz::msgs::CylinderGeom& cylinder()
const;
316 bool has_plane()
const;
318 static const int kPlaneFieldNumber = 5;
320 const ::gz::msgs::PlaneGeom& _internal_plane()
const;
322 const ::gz::msgs::PlaneGeom& plane()
const;
328 bool has_sphere()
const;
330 static const int kSphereFieldNumber = 6;
332 const ::gz::msgs::SphereGeom& _internal_sphere()
const;
334 const ::gz::msgs::SphereGeom& sphere()
const;
340 bool has_image()
const;
342 static const int kImageFieldNumber = 7;
344 const ::gz::msgs::ImageGeom& _internal_image()
const;
346 const ::gz::msgs::ImageGeom& image()
const;
352 bool has_heightmap()
const;
353 void clear_heightmap();
354 static const int kHeightmapFieldNumber = 8;
356 const ::gz::msgs::HeightmapGeom& _internal_heightmap()
const;
358 const ::gz::msgs::HeightmapGeom& heightmap()
const;
364 bool has_mesh()
const;
366 static const int kMeshFieldNumber = 9;
368 const ::gz::msgs::MeshGeom& _internal_mesh()
const;
370 const ::gz::msgs::MeshGeom& mesh()
const;
376 bool has_cone()
const;
378 static const int kConeFieldNumber = 10;
380 const ::gz::msgs::ConeGeom& _internal_cone()
const;
382 const ::gz::msgs::ConeGeom& cone()
const;
388 bool has_capsule()
const;
389 void clear_capsule();
390 static const int kCapsuleFieldNumber = 13;
392 const ::gz::msgs::CapsuleGeom& _internal_capsule()
const;
394 const ::gz::msgs::CapsuleGeom& capsule()
const;
400 bool has_ellipsoid()
const;
401 void clear_ellipsoid();
402 static const int kEllipsoidFieldNumber = 14;
404 const ::gz::msgs::EllipsoidGeom& _internal_ellipsoid()
const;
406 const ::gz::msgs::EllipsoidGeom& ellipsoid()
const;
413 static const int kTypeFieldNumber = 2;
420 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
421 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d > points_;
422 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline > polyline_;
435 mutable ::google::protobuf::internal::CachedSize _cached_size_;
436 friend struct ::protobuf_gz_2fmsgs_2fgeometry_2eproto::TableStruct;
444 #pragma GCC diagnostic push
445 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
453 inline const ::gz::msgs::Header& Geometry::_internal_header()
const {
457 const ::gz::msgs::Header* p = header_;
471 if (header_ == NULL) {
472 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
479 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
480 if (message_arena == NULL) {
481 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
484 ::google::protobuf::Arena* submessage_arena = NULL;
485 if (message_arena != submessage_arena) {
486 header = ::google::protobuf::internal::GetOwnedMessage(
487 message_arena,
header, submessage_arena);
515 inline const ::gz::msgs::BoxGeom& Geometry::_internal_box()
const {
519 const ::gz::msgs::BoxGeom* p = box_;
534 auto* p = CreateMaybeMessage<::gz::msgs::BoxGeom>(GetArenaNoVirtual());
541 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
542 if (message_arena == NULL) {
543 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(box_);
546 ::google::protobuf::Arena* submessage_arena = NULL;
547 if (message_arena != submessage_arena) {
548 box = ::google::protobuf::internal::GetOwnedMessage(
549 message_arena,
box, submessage_arena);
563 inline const ::gz::msgs::CylinderGeom& Geometry::_internal_cylinder()
const {
567 const ::gz::msgs::CylinderGeom* p = cylinder_;
581 if (cylinder_ == NULL) {
582 auto* p = CreateMaybeMessage<::gz::msgs::CylinderGeom>(GetArenaNoVirtual());
589 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
590 if (message_arena == NULL) {
591 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(cylinder_);
594 ::google::protobuf::Arena* submessage_arena = NULL;
595 if (message_arena != submessage_arena) {
596 cylinder = ::google::protobuf::internal::GetOwnedMessage(
597 message_arena,
cylinder, submessage_arena);
611 inline const ::gz::msgs::PlaneGeom& Geometry::_internal_plane()
const {
615 const ::gz::msgs::PlaneGeom* p = plane_;
629 if (plane_ == NULL) {
630 auto* p = CreateMaybeMessage<::gz::msgs::PlaneGeom>(GetArenaNoVirtual());
637 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
638 if (message_arena == NULL) {
639 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(plane_);
642 ::google::protobuf::Arena* submessage_arena = NULL;
643 if (message_arena != submessage_arena) {
644 plane = ::google::protobuf::internal::GetOwnedMessage(
645 message_arena,
plane, submessage_arena);
659 inline const ::gz::msgs::SphereGeom& Geometry::_internal_sphere()
const {
663 const ::gz::msgs::SphereGeom* p = sphere_;
677 if (sphere_ == NULL) {
678 auto* p = CreateMaybeMessage<::gz::msgs::SphereGeom>(GetArenaNoVirtual());
685 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
686 if (message_arena == NULL) {
687 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(sphere_);
690 ::google::protobuf::Arena* submessage_arena = NULL;
691 if (message_arena != submessage_arena) {
692 sphere = ::google::protobuf::internal::GetOwnedMessage(
693 message_arena,
sphere, submessage_arena);
707 inline const ::gz::msgs::ImageGeom& Geometry::_internal_image()
const {
711 const ::gz::msgs::ImageGeom* p = image_;
725 if (image_ == NULL) {
726 auto* p = CreateMaybeMessage<::gz::msgs::ImageGeom>(GetArenaNoVirtual());
733 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
734 if (message_arena == NULL) {
735 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(image_);
738 ::google::protobuf::Arena* submessage_arena = NULL;
739 if (message_arena != submessage_arena) {
740 image = ::google::protobuf::internal::GetOwnedMessage(
741 message_arena,
image, submessage_arena);
755 inline const ::gz::msgs::HeightmapGeom& Geometry::_internal_heightmap()
const {
759 const ::gz::msgs::HeightmapGeom* p = heightmap_;
773 if (heightmap_ == NULL) {
774 auto* p = CreateMaybeMessage<::gz::msgs::HeightmapGeom>(GetArenaNoVirtual());
781 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
782 if (message_arena == NULL) {
783 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(heightmap_);
786 ::google::protobuf::Arena* submessage_arena = NULL;
787 if (message_arena != submessage_arena) {
788 heightmap = ::google::protobuf::internal::GetOwnedMessage(
789 message_arena,
heightmap, submessage_arena);
803 inline const ::gz::msgs::MeshGeom& Geometry::_internal_mesh()
const {
807 const ::gz::msgs::MeshGeom* p = mesh_;
822 auto* p = CreateMaybeMessage<::gz::msgs::MeshGeom>(GetArenaNoVirtual());
829 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
830 if (message_arena == NULL) {
831 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(mesh_);
834 ::google::protobuf::Arena* submessage_arena = NULL;
835 if (message_arena != submessage_arena) {
836 mesh = ::google::protobuf::internal::GetOwnedMessage(
837 message_arena,
mesh, submessage_arena);
851 inline const ::gz::msgs::ConeGeom& Geometry::_internal_cone()
const {
855 const ::gz::msgs::ConeGeom* p = cone_;
870 auto* p = CreateMaybeMessage<::gz::msgs::ConeGeom>(GetArenaNoVirtual());
877 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
878 if (message_arena == NULL) {
879 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(cone_);
882 ::google::protobuf::Arena* submessage_arena = NULL;
883 if (message_arena != submessage_arena) {
884 cone = ::google::protobuf::internal::GetOwnedMessage(
885 message_arena,
cone, submessage_arena);
899 inline const ::gz::msgs::CapsuleGeom& Geometry::_internal_capsule()
const {
903 const ::gz::msgs::CapsuleGeom* p = capsule_;
917 if (capsule_ == NULL) {
918 auto* p = CreateMaybeMessage<::gz::msgs::CapsuleGeom>(GetArenaNoVirtual());
925 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
926 if (message_arena == NULL) {
927 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(capsule_);
930 ::google::protobuf::Arena* submessage_arena = NULL;
931 if (message_arena != submessage_arena) {
932 capsule = ::google::protobuf::internal::GetOwnedMessage(
933 message_arena,
capsule, submessage_arena);
947 inline const ::gz::msgs::EllipsoidGeom& Geometry::_internal_ellipsoid()
const {
951 const ::gz::msgs::EllipsoidGeom* p = ellipsoid_;
965 if (ellipsoid_ == NULL) {
966 auto* p = CreateMaybeMessage<::gz::msgs::EllipsoidGeom>(GetArenaNoVirtual());
973 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
974 if (message_arena == NULL) {
975 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(ellipsoid_);
978 ::google::protobuf::Arena* submessage_arena = NULL;
979 if (message_arena != submessage_arena) {
980 ellipsoid = ::google::protobuf::internal::GetOwnedMessage(
981 message_arena,
ellipsoid, submessage_arena);
993 return points_.size();
997 return points_.Mutable(index);
999 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
1006 return points_.Get(index);
1010 return points_.Add();
1012 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
1020 return polyline_.size();
1024 return polyline_.Mutable(index);
1026 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline >*
1033 return polyline_.Get(index);
1037 return polyline_.Add();
1039 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Polyline >&
1046 #pragma GCC diagnostic pop
1055 namespace protobuf {
1059 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Geometry_Type>() {
1068 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fgeometry_2eproto