4 #ifndef PROTOBUF_ignition_2fmsgs_2fentity_5ffactory_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fentity_5ffactory_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/unknown_field_set.h> 36 #pragma GCC system_header 39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 42 #include <sys/sysmacros.h> 60 class IGNITION_MSGS_VISIBLE
EntityFactory :
public ::google::protobuf::Message {
72 static const ::google::protobuf::Descriptor* descriptor();
91 void CopyFrom(const ::google::protobuf::Message& from);
92 void MergeFrom(const ::google::protobuf::Message& from);
96 bool IsInitialized()
const;
99 bool MergePartialFromCodedStream(
100 ::google::protobuf::io::CodedInputStream* input);
101 void SerializeWithCachedSizes(
102 ::google::protobuf::io::CodedOutputStream* output)
const;
103 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
104 bool deterministic, ::google::protobuf::uint8* output)
const;
106 return InternalSerializeWithCachedSizesToArray(
false, output);
112 void SetCachedSize(
int size)
const;
115 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
116 return _internal_metadata_.arena();
118 inline void* MaybeArenaPtr()
const {
119 return _internal_metadata_.raw_arena_ptr();
123 ::google::protobuf::Metadata GetMetadata()
const;
130 bool has_header()
const;
132 static const int kHeaderFieldNumber = 1;
133 const ::ignition::msgs::Header& header()
const;
140 bool has_sdf()
const;
143 static const int kSdfFieldNumber = 2;
144 const ::std::string& sdf()
const;
145 void set_sdf(const ::std::string& value);
146 void set_sdf(
const char* value);
147 void set_sdf(
const char* value,
size_t size);
154 bool has_sdf_filename()
const;
156 void clear_sdf_filename();
157 static const int kSdfFilenameFieldNumber = 3;
158 const ::std::string& sdf_filename()
const;
159 void set_sdf_filename(const ::std::string& value);
160 void set_sdf_filename(
const char* value);
161 void set_sdf_filename(
const char* value,
size_t size);
164 void set_allocated_sdf_filename(::
std::string* sdf_filename);
167 bool has_model()
const;
169 static const int kModelFieldNumber = 4;
170 const ::ignition::msgs::Model& model()
const;
176 bool has_light()
const;
178 static const int kLightFieldNumber = 5;
179 const ::ignition::msgs::Light& light()
const;
186 bool has_clone_name()
const;
188 void clear_clone_name();
189 static const int kCloneNameFieldNumber = 6;
190 const ::std::string& clone_name()
const;
191 void set_clone_name(const ::std::string& value);
192 void set_clone_name(
const char* value);
193 void set_clone_name(
const char* value,
size_t size);
196 void set_allocated_clone_name(::
std::string* clone_name);
199 bool has_pose()
const;
201 static const int kPoseFieldNumber = 7;
202 const ::ignition::msgs::Pose& pose()
const;
209 static const int kNameFieldNumber = 8;
210 const ::std::string& name()
const;
211 void set_name(const ::std::string& value);
212 void set_name(
const char* value);
213 void set_name(
const char* value,
size_t size);
219 void clear_allow_renaming();
220 static const int kAllowRenamingFieldNumber = 9;
221 bool allow_renaming()
const;
222 void set_allow_renaming(
bool value);
225 void clear_relative_to();
226 static const int kRelativeToFieldNumber = 10;
227 const ::std::string& relative_to()
const;
228 void set_relative_to(const ::std::string& value);
229 void set_relative_to(
const char* value);
230 void set_relative_to(
const char* value,
size_t size);
233 void set_allocated_relative_to(::
std::string* relative_to);
236 bool has_spherical_coordinates()
const;
237 void clear_spherical_coordinates();
238 static const int kSphericalCoordinatesFieldNumber = 11;
239 const ::ignition::msgs::SphericalCoordinates& spherical_coordinates()
const;
247 inline void set_has_sdf();
248 inline void set_has_sdf_filename();
249 inline void set_has_model();
250 inline void set_has_light();
251 inline void set_has_clone_name();
253 inline bool has_from()
const;
255 inline void clear_has_from();
257 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
258 bool _is_default_instance_;
261 ::google::protobuf::internal::ArenaStringPtr name_;
262 ::google::protobuf::internal::ArenaStringPtr relative_to_;
264 bool allow_renaming_;
267 ::google::protobuf::internal::ArenaStringPtr sdf_;
268 ::google::protobuf::internal::ArenaStringPtr sdf_filename_;
271 ::google::protobuf::internal::ArenaStringPtr clone_name_;
273 mutable int _cached_size_;
274 ::google::protobuf::uint32 _oneof_case_[1];
280 void InitAsDefaultInstance();
288 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 293 return !_is_default_instance_ && header_ != NULL;
296 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
301 return header_ != NULL ? *header_ : *default_instance_->header_;
305 if (header_ == NULL) {
306 header_ = new ::ignition::msgs::Header;
330 inline bool EntityFactory::has_sdf()
const {
331 return from_case() == kSdf;
333 inline void EntityFactory::set_has_sdf() {
334 _oneof_case_[0] = kSdf;
338 from_.sdf_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
345 return from_.sdf_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
347 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
354 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
356 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
363 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
365 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
373 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
375 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
376 reinterpret_cast<const char*>(value), size));
383 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
386 return from_.sdf_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
392 return from_.sdf_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
399 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
404 from_.sdf_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
411 inline bool EntityFactory::has_sdf_filename()
const {
412 return from_case() == kSdfFilename;
414 inline void EntityFactory::set_has_sdf_filename() {
415 _oneof_case_[0] = kSdfFilename;
418 if (has_sdf_filename()) {
419 from_.sdf_filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
425 if (has_sdf_filename()) {
426 return from_.sdf_filename_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
428 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
432 if (!has_sdf_filename()) {
434 set_has_sdf_filename();
435 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
437 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
441 if (!has_sdf_filename()) {
443 set_has_sdf_filename();
444 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
446 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
451 if (!has_sdf_filename()) {
453 set_has_sdf_filename();
454 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
456 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
457 reinterpret_cast<const char*>(value), size));
461 if (!has_sdf_filename()) {
463 set_has_sdf_filename();
464 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
467 return from_.sdf_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
471 if (has_sdf_filename()) {
473 return from_.sdf_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
479 if (!has_sdf_filename()) {
480 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
483 if (sdf_filename != NULL) {
484 set_has_sdf_filename();
485 from_.sdf_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
493 return from_case() == kModel;
495 inline void EntityFactory::set_has_model() {
496 _oneof_case_[0] = kModel;
514 from_.model_ = new ::ignition::msgs::Model;
534 from_.model_ = model;
541 return from_case() == kLight;
543 inline void EntityFactory::set_has_light() {
544 _oneof_case_[0] = kLight;
562 from_.light_ = new ::ignition::msgs::Light;
582 from_.light_ = light;
588 inline bool EntityFactory::has_clone_name()
const {
589 return from_case() == kCloneName;
591 inline void EntityFactory::set_has_clone_name() {
592 _oneof_case_[0] = kCloneName;
595 if (has_clone_name()) {
596 from_.clone_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
602 if (has_clone_name()) {
603 return from_.clone_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
605 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
609 if (!has_clone_name()) {
611 set_has_clone_name();
612 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
614 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
618 if (!has_clone_name()) {
620 set_has_clone_name();
621 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
623 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
628 if (!has_clone_name()) {
630 set_has_clone_name();
631 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
633 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
634 reinterpret_cast<const char*>(value), size));
638 if (!has_clone_name()) {
640 set_has_clone_name();
641 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
644 return from_.clone_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
648 if (has_clone_name()) {
650 return from_.clone_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
656 if (!has_clone_name()) {
657 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
660 if (clone_name != NULL) {
661 set_has_clone_name();
662 from_.clone_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
670 return !_is_default_instance_ && pose_ != NULL;
673 if (GetArenaNoVirtual() == NULL && pose_ != NULL)
delete pose_;
678 return pose_ != NULL ? *pose_ : *default_instance_->pose_;
683 pose_ = new ::ignition::msgs::Pose;
708 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
712 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
716 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
721 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
726 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
727 ::
std::string(reinterpret_cast<const char*>(value), size));
733 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
738 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
746 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
752 allow_renaming_ =
false;
756 return allow_renaming_;
760 allow_renaming_ = value;
766 relative_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
770 return relative_to_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
774 relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
779 relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
784 relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
785 ::
std::string(reinterpret_cast<const char*>(value), size));
791 return relative_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
796 return relative_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
799 if (relative_to != NULL) {
804 relative_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), relative_to);
810 return !_is_default_instance_ && spherical_coordinates_ != NULL;
813 if (GetArenaNoVirtual() == NULL && spherical_coordinates_ != NULL)
delete spherical_coordinates_;
814 spherical_coordinates_ = NULL;
818 return spherical_coordinates_ != NULL ? *spherical_coordinates_ : *default_instance_->spherical_coordinates_;
822 if (spherical_coordinates_ == NULL) {
823 spherical_coordinates_ = new ::ignition::msgs::SphericalCoordinates;
826 return spherical_coordinates_;
832 spherical_coordinates_ = NULL;
836 delete spherical_coordinates_;
837 spherical_coordinates_ = spherical_coordinates;
838 if (spherical_coordinates) {
846 inline bool EntityFactory::has_from()
const {
847 return from_case() != FROM_NOT_SET;
849 inline void EntityFactory::clear_has_from() {
850 _oneof_case_[0] = FROM_NOT_SET;
855 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 871 #endif // PROTOBUF_ignition_2fmsgs_2fentity_5ffactory_2eproto__INCLUDED ::std::string * mutable_name()
Definition: entity_factory.pb.h:730
const ::ignition::msgs::SphericalCoordinates & spherical_coordinates() const
Definition: entity_factory.pb.h:816
void clear_relative_to()
Definition: entity_factory.pb.h:765
::ignition::msgs::Light * mutable_light()
Definition: entity_factory.pb.h:558
::ignition::msgs::SphericalCoordinates * mutable_spherical_coordinates()
Definition: entity_factory.pb.h:820
void clear_sdf()
Definition: entity_factory.pb.h:336
const ::std::string & sdf() const
Definition: entity_factory.pb.h:342
void set_allocated_name(::std::string *name)
Definition: entity_factory.pb.h:740
::ignition::msgs::Model * release_model()
Definition: entity_factory.pb.h:519
::ignition::msgs::Pose * release_pose()
Definition: entity_factory.pb.h:688
void set_name(const ::std::string &value)
Definition: entity_factory.pb.h:714
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: entity_factory.pb.h:695
void set_allocated_clone_name(::std::string *clone_name)
Definition: entity_factory.pb.h:655
void set_allocated_header(::ignition::msgs::Header *header)
Definition: entity_factory.pb.h:318
const ::ignition::msgs::Light & light() const
Definition: entity_factory.pb.h:552
const ::ignition::msgs::Model & model() const
Definition: entity_factory.pb.h:504
void clear_name()
Definition: entity_factory.pb.h:707
void clear_model()
Definition: entity_factory.pb.h:498
int GetCachedSize() const
Definition: entity_factory.pb.h:108
EntityFactory * New() const
Definition: entity_factory.pb.h:88
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fentity_5ffactory_2eproto()
::std::string * release_relative_to()
Definition: entity_factory.pb.h:793
Definition: light.pb.h:82
::std::string * mutable_clone_name()
Definition: entity_factory.pb.h:637
const ::ignition::msgs::Header & header() const
Definition: entity_factory.pb.h:299
::ignition::msgs::Header * release_header()
Definition: entity_factory.pb.h:311
::std::string * release_sdf()
Definition: entity_factory.pb.h:388
EntityFactory & operator=(const EntityFactory &from)
Definition: entity_factory.pb.h:67
void clear_spherical_coordinates()
Definition: entity_factory.pb.h:812
FromCase
Definition: entity_factory.pb.h:75
bool has_light() const
Definition: entity_factory.pb.h:540
::ignition::msgs::Light * release_light()
Definition: entity_factory.pb.h:567
::std::string * release_clone_name()
Definition: entity_factory.pb.h:646
bool has_model() const
Definition: entity_factory.pb.h:492
::std::string * release_sdf_filename()
Definition: entity_factory.pb.h:469
void set_sdf(const ::std::string &value)
Definition: entity_factory.pb.h:349
void clear_header()
Definition: entity_factory.pb.h:295
::ignition::msgs::Header * mutable_header()
Definition: entity_factory.pb.h:303
FromCase from_case() const
Definition: entity_factory.pb.h:852
void clear_pose()
Definition: entity_factory.pb.h:672
bool has_header() const
Definition: entity_factory.pb.h:292
void set_sdf_filename(const ::std::string &value)
Definition: entity_factory.pb.h:430
::ignition::msgs::Pose * mutable_pose()
Definition: entity_factory.pb.h:680
void set_allocated_light(::ignition::msgs::Light *light)
Definition: entity_factory.pb.h:578
void protobuf_ShutdownFile_ignition_2fmsgs_2fentity_5ffactory_2eproto()
bool allow_renaming() const
Definition: entity_factory.pb.h:754
::ignition::msgs::Model * mutable_model()
Definition: entity_factory.pb.h:510
Definition: entity_factory.pb.h:60
bool has_spherical_coordinates() const
Definition: entity_factory.pb.h:809
void clear_clone_name()
Definition: entity_factory.pb.h:594
const ::std::string & sdf_filename() const
Definition: entity_factory.pb.h:423
const ::std::string & relative_to() const
Definition: entity_factory.pb.h:768
void set_allocated_model(::ignition::msgs::Model *model)
Definition: entity_factory.pb.h:530
void clear_light()
Definition: entity_factory.pb.h:546
void set_clone_name(const ::std::string &value)
Definition: entity_factory.pb.h:607
Definition: spherical_coordinates.pb.h:78
Definition: model.pb.h:62
std::unique_ptr< const EntityFactory > ConstEntityFactoryUniquePtr
Definition: entity_factory.pb.h:858
void set_allocated_sdf(::std::string *sdf)
Definition: entity_factory.pb.h:397
void protobuf_AssignDesc_ignition_2fmsgs_2fentity_5ffactory_2eproto()
::std::string * mutable_sdf_filename()
Definition: entity_factory.pb.h:460
::std::string * release_name()
Definition: entity_factory.pb.h:735
void set_relative_to(const ::std::string &value)
Definition: entity_factory.pb.h:772
void set_allocated_spherical_coordinates(::ignition::msgs::SphericalCoordinates *spherical_coordinates)
Definition: entity_factory.pb.h:835
std::unique_ptr< EntityFactory > EntityFactoryUniquePtr
Definition: entity_factory.pb.h:857
static const Model & default_instance()
std::shared_ptr< EntityFactory > EntityFactorySharedPtr
Definition: entity_factory.pb.h:859
::ignition::msgs::SphericalCoordinates * release_spherical_coordinates()
Definition: entity_factory.pb.h:828
void set_allow_renaming(bool value)
Definition: entity_factory.pb.h:758
const ::std::string & clone_name() const
Definition: entity_factory.pb.h:600
std::shared_ptr< const EntityFactory > ConstEntityFactorySharedPtr
Definition: entity_factory.pb.h:860
void clear_allow_renaming()
Definition: entity_factory.pb.h:751
void set_allocated_sdf_filename(::std::string *sdf_filename)
Definition: entity_factory.pb.h:478
bool has_pose() const
Definition: entity_factory.pb.h:669
void set_allocated_relative_to(::std::string *relative_to)
Definition: entity_factory.pb.h:798
static const Light & default_instance()
const ::ignition::msgs::Pose & pose() const
Definition: entity_factory.pb.h:676
::std::string * mutable_sdf()
Definition: entity_factory.pb.h:379
void clear_sdf_filename()
Definition: entity_factory.pb.h:417
::std::string * mutable_relative_to()
Definition: entity_factory.pb.h:788
const ::std::string & name() const
Definition: entity_factory.pb.h:710
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: entity_factory.pb.h:105