4 #ifndef PROTOBUF_ignition_2fmsgs_2fgeometry_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fgeometry_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 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 3000000 < 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/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/generated_enum_reflection.h> 30 #include <google/protobuf/unknown_field_set.h> 42 #pragma GCC system_header 45 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 48 #include <sys/sysmacros.h> 86 return ::google::protobuf::internal::NameOfEnum(
91 return ::google::protobuf::internal::ParseNamedEnum<Geometry_Type>(
96 class IGNITION_MSGS_VISIBLE
Geometry :
public ::google::protobuf::Message {
108 static const ::google::protobuf::Descriptor* descriptor();
109 static const Geometry& default_instance();
117 Geometry* New(::google::protobuf::Arena* arena)
const;
118 void CopyFrom(const ::google::protobuf::Message& from);
119 void MergeFrom(const ::google::protobuf::Message& from);
120 void CopyFrom(
const Geometry& from);
121 void MergeFrom(
const Geometry& from);
123 bool IsInitialized()
const;
125 int ByteSize()
const;
126 bool MergePartialFromCodedStream(
127 ::google::protobuf::io::CodedInputStream* input);
128 void SerializeWithCachedSizes(
129 ::google::protobuf::io::CodedOutputStream* output)
const;
130 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131 bool deterministic, ::google::protobuf::uint8* output)
const;
133 return InternalSerializeWithCachedSizesToArray(
false, output);
139 void SetCachedSize(
int size)
const;
142 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
143 return _internal_metadata_.arena();
145 inline void* MaybeArenaPtr()
const {
146 return _internal_metadata_.raw_arena_ptr();
150 ::google::protobuf::Metadata GetMetadata()
const;
155 static const Type BOX =
157 static const Type CYLINDER =
159 static const Type SPHERE =
161 static const Type PLANE =
163 static const Type IMAGE =
165 static const Type HEIGHTMAP =
167 static const Type MESH =
169 static const Type TRIANGLE_FAN =
171 static const Type LINE_STRIP =
173 static const Type POLYLINE =
175 static const Type EMPTY =
180 static const Type Type_MIN =
182 static const Type Type_MAX =
184 static const int Type_ARRAYSIZE =
186 static inline const ::google::protobuf::EnumDescriptor*
190 static inline const ::std::string&
Type_Name(Type value) {
201 bool has_header()
const;
203 static const int kHeaderFieldNumber = 1;
204 const ::ignition::msgs::Header& header()
const;
211 static const int kTypeFieldNumber = 2;
216 bool has_box()
const;
218 static const int kBoxFieldNumber = 3;
219 const ::ignition::msgs::BoxGeom& box()
const;
225 bool has_cylinder()
const;
226 void clear_cylinder();
227 static const int kCylinderFieldNumber = 4;
228 const ::ignition::msgs::CylinderGeom& cylinder()
const;
234 bool has_plane()
const;
236 static const int kPlaneFieldNumber = 5;
237 const ::ignition::msgs::PlaneGeom& plane()
const;
243 bool has_sphere()
const;
245 static const int kSphereFieldNumber = 6;
246 const ::ignition::msgs::SphereGeom& sphere()
const;
252 bool has_image()
const;
254 static const int kImageFieldNumber = 7;
255 const ::ignition::msgs::ImageGeom& image()
const;
261 bool has_heightmap()
const;
262 void clear_heightmap();
263 static const int kHeightmapFieldNumber = 8;
264 const ::ignition::msgs::HeightmapGeom& heightmap()
const;
270 bool has_mesh()
const;
272 static const int kMeshFieldNumber = 9;
273 const ::ignition::msgs::MeshGeom& mesh()
const;
279 int points_size()
const;
281 static const int kPointsFieldNumber = 10;
282 const ::ignition::msgs::Vector3d& points(
int index)
const;
285 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
287 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
291 int polyline_size()
const;
292 void clear_polyline();
293 static const int kPolylineFieldNumber = 11;
294 const ::ignition::msgs::Polyline& polyline(
int index)
const;
297 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >*
299 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >&
305 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
306 bool _is_default_instance_;
315 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > points_;
316 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > polyline_;
318 mutable int _cached_size_;
323 void InitAsDefaultInstance();
331 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 336 return !_is_default_instance_ && header_ != NULL;
339 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
344 return header_ != NULL ? *header_ : *default_instance_->header_;
348 if (header_ == NULL) {
349 header_ = new ::ignition::msgs::Header;
388 return !_is_default_instance_ && box_ != NULL;
391 if (GetArenaNoVirtual() == NULL && box_ != NULL)
delete box_;
396 return box_ != NULL ? *box_ : *default_instance_->box_;
401 box_ = new ::ignition::msgs::BoxGeom;
426 return !_is_default_instance_ && cylinder_ != NULL;
429 if (GetArenaNoVirtual() == NULL && cylinder_ != NULL)
delete cylinder_;
434 return cylinder_ != NULL ? *cylinder_ : *default_instance_->cylinder_;
438 if (cylinder_ == NULL) {
439 cylinder_ = new ::ignition::msgs::CylinderGeom;
453 cylinder_ = cylinder;
464 return !_is_default_instance_ && plane_ != NULL;
467 if (GetArenaNoVirtual() == NULL && plane_ != NULL)
delete plane_;
472 return plane_ != NULL ? *plane_ : *default_instance_->plane_;
476 if (plane_ == NULL) {
477 plane_ = new ::ignition::msgs::PlaneGeom;
502 return !_is_default_instance_ && sphere_ != NULL;
505 if (GetArenaNoVirtual() == NULL && sphere_ != NULL)
delete sphere_;
510 return sphere_ != NULL ? *sphere_ : *default_instance_->sphere_;
514 if (sphere_ == NULL) {
515 sphere_ = new ::ignition::msgs::SphereGeom;
540 return !_is_default_instance_ && image_ != NULL;
543 if (GetArenaNoVirtual() == NULL && image_ != NULL)
delete image_;
548 return image_ != NULL ? *image_ : *default_instance_->image_;
552 if (image_ == NULL) {
553 image_ = new ::ignition::msgs::ImageGeom;
578 return !_is_default_instance_ && heightmap_ != NULL;
581 if (GetArenaNoVirtual() == NULL && heightmap_ != NULL)
delete heightmap_;
586 return heightmap_ != NULL ? *heightmap_ : *default_instance_->heightmap_;
590 if (heightmap_ == NULL) {
591 heightmap_ = new ::ignition::msgs::HeightmapGeom;
605 heightmap_ = heightmap;
616 return !_is_default_instance_ && mesh_ != NULL;
619 if (GetArenaNoVirtual() == NULL && mesh_ != NULL)
delete mesh_;
624 return mesh_ != NULL ? *mesh_ : *default_instance_->mesh_;
629 mesh_ = new ::ignition::msgs::MeshGeom;
654 return points_.size();
661 return points_.Get(index);
665 return points_.Mutable(index);
669 return points_.Add();
671 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
676 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
684 return polyline_.size();
691 return polyline_.Get(index);
695 return polyline_.Mutable(index);
699 return polyline_.Add();
701 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >*
706 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline >&
712 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 729 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Geometry_Type>() {
742 #endif // PROTOBUF_ignition_2fmsgs_2fgeometry_2eproto__INCLUDED const ::std::string & Geometry_Type_Name(Geometry_Type value)
Definition: geometry.pb.h:85
void clear_cylinder()
Definition: geometry.pb.h:428
Definition: planegeom.pb.h:58
::ignition::msgs::MeshGeom * mutable_mesh()
Definition: geometry.pb.h:626
void clear_type()
Definition: geometry.pb.h:373
void set_type(::ignition::msgs::Geometry_Type value)
Definition: geometry.pb.h:380
Definition: geometry.pb.h:67
void clear_box()
Definition: geometry.pb.h:390
::ignition::msgs::SphereGeom * release_sphere()
Definition: geometry.pb.h:520
bool has_box() const
Definition: geometry.pb.h:387
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & points() const
Definition: geometry.pb.h:677
Geometry & operator=(const Geometry &from)
Definition: geometry.pb.h:103
bool has_plane() const
Definition: geometry.pb.h:463
Definition: cylindergeom.pb.h:56
void set_allocated_heightmap(::ignition::msgs::HeightmapGeom *heightmap)
Definition: geometry.pb.h:603
void clear_image()
Definition: geometry.pb.h:542
::ignition::msgs::Header * mutable_header()
Definition: geometry.pb.h:346
::ignition::msgs::PlaneGeom * release_plane()
Definition: geometry.pb.h:482
bool has_header() const
Definition: geometry.pb.h:335
::ignition::msgs::ImageGeom * mutable_image()
Definition: geometry.pb.h:550
const ::ignition::msgs::Header & header() const
Definition: geometry.pb.h:342
std::unique_ptr< Geometry > GeometryUniquePtr
Definition: geometry.pb.h:714
const ::ignition::msgs::CylinderGeom & cylinder() const
Definition: geometry.pb.h:432
const Geometry_Type Geometry_Type_Type_MAX
Definition: geometry.pb.h:81
Geometry_Type
Definition: geometry.pb.h:64
Definition: geometry.pb.h:71
bool Geometry_Type_Parse(const ::std::string &name, Geometry_Type *value)
Definition: geometry.pb.h:89
Definition: geometry.pb.h:72
::ignition::msgs::BoxGeom * release_box()
Definition: geometry.pb.h:406
::ignition::msgs::Header * release_header()
Definition: geometry.pb.h:354
::ignition::msgs::CylinderGeom * release_cylinder()
Definition: geometry.pb.h:444
void set_allocated_plane(::ignition::msgs::PlaneGeom *plane)
Definition: geometry.pb.h:489
void set_allocated_box(::ignition::msgs::BoxGeom *box)
Definition: geometry.pb.h:413
Definition: geometry.pb.h:68
Geometry * New() const
Definition: geometry.pb.h:115
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > * mutable_polyline()
Definition: geometry.pb.h:702
bool has_sphere() const
Definition: geometry.pb.h:501
void set_allocated_image(::ignition::msgs::ImageGeom *image)
Definition: geometry.pb.h:565
void clear_plane()
Definition: geometry.pb.h:466
std::shared_ptr< Geometry > GeometrySharedPtr
Definition: geometry.pb.h:716
void protobuf_ShutdownFile_ignition_2fmsgs_2fgeometry_2eproto()
Definition: geometry.pb.h:73
const Geometry_Type Geometry_Type_Type_MIN
Definition: geometry.pb.h:80
::ignition::msgs::Polyline * add_polyline()
Definition: geometry.pb.h:697
::ignition::msgs::Geometry_Type type() const
Definition: geometry.pb.h:376
Definition: geometry.pb.h:70
const ::ignition::msgs::HeightmapGeom & heightmap() const
Definition: geometry.pb.h:584
static const ::std::string & Type_Name(Type value)
Definition: geometry.pb.h:190
std::unique_ptr< const Geometry > ConstGeometryUniquePtr
Definition: geometry.pb.h:715
void clear_polyline()
Definition: geometry.pb.h:686
const ::ignition::msgs::ImageGeom & image() const
Definition: geometry.pb.h:546
void clear_mesh()
Definition: geometry.pb.h:618
IGNITION_MSGS_VISIBLE bool Geometry_Type_IsValid(int value)
Definition: boxgeom.pb.h:57
bool has_mesh() const
Definition: geometry.pb.h:615
Definition: imagegeom.pb.h:56
int GetCachedSize() const
Definition: geometry.pb.h:135
static bool Type_IsValid(int value)
Definition: geometry.pb.h:177
::ignition::msgs::Vector3d * add_points()
Definition: geometry.pb.h:667
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Polyline > & polyline() const
Definition: geometry.pb.h:707
Definition: geometry.pb.h:65
Definition: geometry.pb.h:66
::ignition::msgs::CylinderGeom * mutable_cylinder()
Definition: geometry.pb.h:436
Definition: geometry.pb.h:96
void clear_sphere()
Definition: geometry.pb.h:504
int polyline_size() const
Definition: geometry.pb.h:683
void clear_heightmap()
Definition: geometry.pb.h:580
void protobuf_AssignDesc_ignition_2fmsgs_2fgeometry_2eproto()
Definition: geometry.pb.h:74
Geometry_Type Type
Definition: geometry.pb.h:154
Definition: geometry.pb.h:77
::ignition::msgs::SphereGeom * mutable_sphere()
Definition: geometry.pb.h:512
::ignition::msgs::ImageGeom * release_image()
Definition: geometry.pb.h:558
void clear_points()
Definition: geometry.pb.h:656
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Geometry_Type_descriptor()
const ::ignition::msgs::PlaneGeom & plane() const
Definition: geometry.pb.h:470
Definition: heightmapgeom.pb.h:255
Definition: spheregeom.pb.h:56
Definition: meshgeom.pb.h:57
::ignition::msgs::BoxGeom * mutable_box()
Definition: geometry.pb.h:398
Definition: vector3d.pb.h:56
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: geometry.pb.h:193
void clear_header()
Definition: geometry.pb.h:338
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_points()
Definition: geometry.pb.h:672
::ignition::msgs::PlaneGeom * mutable_plane()
Definition: geometry.pb.h:474
void set_allocated_mesh(::ignition::msgs::MeshGeom *mesh)
Definition: geometry.pb.h:641
void set_allocated_sphere(::ignition::msgs::SphereGeom *sphere)
Definition: geometry.pb.h:527
Definition: polylinegeom.pb.h:57
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: geometry.pb.h:132
const ::ignition::msgs::SphereGeom & sphere() const
Definition: geometry.pb.h:508
bool has_image() const
Definition: geometry.pb.h:539
::ignition::msgs::HeightmapGeom * mutable_heightmap()
Definition: geometry.pb.h:588
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fgeometry_2eproto()
std::shared_ptr< const Geometry > ConstGeometrySharedPtr
Definition: geometry.pb.h:717
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: geometry.pb.h:187
const ::ignition::msgs::BoxGeom & box() const
Definition: geometry.pb.h:394
Definition: geometry.pb.h:75
void set_allocated_header(::ignition::msgs::Header *header)
Definition: geometry.pb.h:361
int points_size() const
Definition: geometry.pb.h:653
const ::ignition::msgs::MeshGeom & mesh() const
Definition: geometry.pb.h:622
Definition: geometry.pb.h:69
bool has_heightmap() const
Definition: geometry.pb.h:577
bool has_cylinder() const
Definition: geometry.pb.h:425
::ignition::msgs::HeightmapGeom * release_heightmap()
Definition: geometry.pb.h:596
Definition: geometry.pb.h:76
const int Geometry_Type_Type_ARRAYSIZE
Definition: geometry.pb.h:82
void set_allocated_cylinder(::ignition::msgs::CylinderGeom *cylinder)
Definition: geometry.pb.h:451
::ignition::msgs::MeshGeom * release_mesh()
Definition: geometry.pb.h:634