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> 35 #pragma GCC system_header 38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 41 #include <sys/sysmacros.h> 59 class IGNITION_MSGS_VISIBLE
EntityFactory :
public ::google::protobuf::Message {
71 static const ::google::protobuf::Descriptor* descriptor();
90 void CopyFrom(const ::google::protobuf::Message& from);
91 void MergeFrom(const ::google::protobuf::Message& from);
95 bool IsInitialized()
const;
98 bool MergePartialFromCodedStream(
99 ::google::protobuf::io::CodedInputStream* input);
100 void SerializeWithCachedSizes(
101 ::google::protobuf::io::CodedOutputStream* output)
const;
102 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
103 bool deterministic, ::google::protobuf::uint8* output)
const;
105 return InternalSerializeWithCachedSizesToArray(
false, output);
111 void SetCachedSize(
int size)
const;
114 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
115 return _internal_metadata_.arena();
117 inline void* MaybeArenaPtr()
const {
118 return _internal_metadata_.raw_arena_ptr();
122 ::google::protobuf::Metadata GetMetadata()
const;
129 bool has_header()
const;
131 static const int kHeaderFieldNumber = 1;
132 const ::ignition::msgs::Header& header()
const;
139 bool has_sdf()
const;
142 static const int kSdfFieldNumber = 2;
143 const ::std::string& sdf()
const;
144 void set_sdf(const ::std::string& value);
145 void set_sdf(
const char* value);
146 void set_sdf(
const char* value,
size_t size);
153 bool has_sdf_filename()
const;
155 void clear_sdf_filename();
156 static const int kSdfFilenameFieldNumber = 3;
157 const ::std::string& sdf_filename()
const;
158 void set_sdf_filename(const ::std::string& value);
159 void set_sdf_filename(
const char* value);
160 void set_sdf_filename(
const char* value,
size_t size);
163 void set_allocated_sdf_filename(::
std::string* sdf_filename);
166 bool has_model()
const;
168 static const int kModelFieldNumber = 4;
169 const ::ignition::msgs::Model& model()
const;
175 bool has_light()
const;
177 static const int kLightFieldNumber = 5;
178 const ::ignition::msgs::Light& light()
const;
185 bool has_clone_name()
const;
187 void clear_clone_name();
188 static const int kCloneNameFieldNumber = 6;
189 const ::std::string& clone_name()
const;
190 void set_clone_name(const ::std::string& value);
191 void set_clone_name(
const char* value);
192 void set_clone_name(
const char* value,
size_t size);
195 void set_allocated_clone_name(::
std::string* clone_name);
198 bool has_pose()
const;
200 static const int kPoseFieldNumber = 7;
201 const ::ignition::msgs::Pose& pose()
const;
208 static const int kNameFieldNumber = 8;
209 const ::std::string& name()
const;
210 void set_name(const ::std::string& value);
211 void set_name(
const char* value);
212 void set_name(
const char* value,
size_t size);
218 void clear_allow_renaming();
219 static const int kAllowRenamingFieldNumber = 9;
220 bool allow_renaming()
const;
221 void set_allow_renaming(
bool value);
224 void clear_relative_to();
225 static const int kRelativeToFieldNumber = 10;
226 const ::std::string& relative_to()
const;
227 void set_relative_to(const ::std::string& value);
228 void set_relative_to(
const char* value);
229 void set_relative_to(
const char* value,
size_t size);
232 void set_allocated_relative_to(::
std::string* relative_to);
237 inline void set_has_sdf();
238 inline void set_has_sdf_filename();
239 inline void set_has_model();
240 inline void set_has_light();
241 inline void set_has_clone_name();
243 inline bool has_from()
const;
245 inline void clear_has_from();
247 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
248 bool _is_default_instance_;
251 ::google::protobuf::internal::ArenaStringPtr name_;
252 ::google::protobuf::internal::ArenaStringPtr relative_to_;
253 bool allow_renaming_;
256 ::google::protobuf::internal::ArenaStringPtr sdf_;
257 ::google::protobuf::internal::ArenaStringPtr sdf_filename_;
260 ::google::protobuf::internal::ArenaStringPtr clone_name_;
262 mutable int _cached_size_;
263 ::google::protobuf::uint32 _oneof_case_[1];
269 void InitAsDefaultInstance();
277 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 282 return !_is_default_instance_ && header_ != NULL;
285 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
290 return header_ != NULL ? *header_ : *default_instance_->header_;
294 if (header_ == NULL) {
295 header_ = new ::ignition::msgs::Header;
319 inline bool EntityFactory::has_sdf()
const {
320 return from_case() == kSdf;
322 inline void EntityFactory::set_has_sdf() {
323 _oneof_case_[0] = kSdf;
327 from_.sdf_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
334 return from_.sdf_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
336 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
343 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
345 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
352 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
362 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
364 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
365 reinterpret_cast<const char*>(value), size));
372 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
375 return from_.sdf_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
381 return from_.sdf_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
388 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
393 from_.sdf_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
400 inline bool EntityFactory::has_sdf_filename()
const {
401 return from_case() == kSdfFilename;
403 inline void EntityFactory::set_has_sdf_filename() {
404 _oneof_case_[0] = kSdfFilename;
407 if (has_sdf_filename()) {
408 from_.sdf_filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
414 if (has_sdf_filename()) {
415 return from_.sdf_filename_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
417 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
421 if (!has_sdf_filename()) {
423 set_has_sdf_filename();
424 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
426 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
430 if (!has_sdf_filename()) {
432 set_has_sdf_filename();
433 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
435 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
440 if (!has_sdf_filename()) {
442 set_has_sdf_filename();
443 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
445 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
446 reinterpret_cast<const char*>(value), size));
450 if (!has_sdf_filename()) {
452 set_has_sdf_filename();
453 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
456 return from_.sdf_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
460 if (has_sdf_filename()) {
462 return from_.sdf_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
468 if (!has_sdf_filename()) {
469 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
472 if (sdf_filename != NULL) {
473 set_has_sdf_filename();
474 from_.sdf_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
482 return from_case() == kModel;
484 inline void EntityFactory::set_has_model() {
485 _oneof_case_[0] = kModel;
503 from_.model_ = new ::ignition::msgs::Model;
523 from_.model_ = model;
530 return from_case() == kLight;
532 inline void EntityFactory::set_has_light() {
533 _oneof_case_[0] = kLight;
551 from_.light_ = new ::ignition::msgs::Light;
571 from_.light_ = light;
577 inline bool EntityFactory::has_clone_name()
const {
578 return from_case() == kCloneName;
580 inline void EntityFactory::set_has_clone_name() {
581 _oneof_case_[0] = kCloneName;
584 if (has_clone_name()) {
585 from_.clone_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
591 if (has_clone_name()) {
592 return from_.clone_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
594 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
598 if (!has_clone_name()) {
600 set_has_clone_name();
601 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
603 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
607 if (!has_clone_name()) {
609 set_has_clone_name();
610 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
612 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
617 if (!has_clone_name()) {
619 set_has_clone_name();
620 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
622 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
623 reinterpret_cast<const char*>(value), size));
627 if (!has_clone_name()) {
629 set_has_clone_name();
630 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
633 return from_.clone_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
637 if (has_clone_name()) {
639 return from_.clone_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
645 if (!has_clone_name()) {
646 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
649 if (clone_name != NULL) {
650 set_has_clone_name();
651 from_.clone_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
659 return !_is_default_instance_ && pose_ != NULL;
662 if (GetArenaNoVirtual() == NULL && pose_ != NULL)
delete pose_;
667 return pose_ != NULL ? *pose_ : *default_instance_->pose_;
672 pose_ = new ::ignition::msgs::Pose;
697 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
701 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
705 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
710 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
715 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
716 ::
std::string(reinterpret_cast<const char*>(value), size));
722 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
727 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
735 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
741 allow_renaming_ =
false;
745 return allow_renaming_;
749 allow_renaming_ = value;
755 relative_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
759 return relative_to_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
763 relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
768 relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
773 relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
774 ::
std::string(reinterpret_cast<const char*>(value), size));
780 return relative_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
785 return relative_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
788 if (relative_to != NULL) {
793 relative_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), relative_to);
797 inline bool EntityFactory::has_from()
const {
798 return from_case() != FROM_NOT_SET;
800 inline void EntityFactory::clear_has_from() {
801 _oneof_case_[0] = FROM_NOT_SET;
806 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 822 #endif // PROTOBUF_ignition_2fmsgs_2fentity_5ffactory_2eproto__INCLUDED ::std::string * mutable_name()
Definition: entity_factory.pb.h:719
void clear_relative_to()
Definition: entity_factory.pb.h:754
::ignition::msgs::Light * mutable_light()
Definition: entity_factory.pb.h:547
void clear_sdf()
Definition: entity_factory.pb.h:325
const ::std::string & sdf() const
Definition: entity_factory.pb.h:331
void set_allocated_name(::std::string *name)
Definition: entity_factory.pb.h:729
::ignition::msgs::Model * release_model()
Definition: entity_factory.pb.h:508
::ignition::msgs::Pose * release_pose()
Definition: entity_factory.pb.h:677
void set_name(const ::std::string &value)
Definition: entity_factory.pb.h:703
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: entity_factory.pb.h:684
void set_allocated_clone_name(::std::string *clone_name)
Definition: entity_factory.pb.h:644
void set_allocated_header(::ignition::msgs::Header *header)
Definition: entity_factory.pb.h:307
const ::ignition::msgs::Light & light() const
Definition: entity_factory.pb.h:541
const ::ignition::msgs::Model & model() const
Definition: entity_factory.pb.h:493
void clear_name()
Definition: entity_factory.pb.h:696
void clear_model()
Definition: entity_factory.pb.h:487
int GetCachedSize() const
Definition: entity_factory.pb.h:107
EntityFactory * New() const
Definition: entity_factory.pb.h:87
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fentity_5ffactory_2eproto()
::std::string * release_relative_to()
Definition: entity_factory.pb.h:782
Definition: light.pb.h:82
::std::string * mutable_clone_name()
Definition: entity_factory.pb.h:626
const ::ignition::msgs::Header & header() const
Definition: entity_factory.pb.h:288
::ignition::msgs::Header * release_header()
Definition: entity_factory.pb.h:300
::std::string * release_sdf()
Definition: entity_factory.pb.h:377
EntityFactory & operator=(const EntityFactory &from)
Definition: entity_factory.pb.h:66
FromCase
Definition: entity_factory.pb.h:74
bool has_light() const
Definition: entity_factory.pb.h:529
::ignition::msgs::Light * release_light()
Definition: entity_factory.pb.h:556
::std::string * release_clone_name()
Definition: entity_factory.pb.h:635
bool has_model() const
Definition: entity_factory.pb.h:481
::std::string * release_sdf_filename()
Definition: entity_factory.pb.h:458
void set_sdf(const ::std::string &value)
Definition: entity_factory.pb.h:338
void clear_header()
Definition: entity_factory.pb.h:284
::ignition::msgs::Header * mutable_header()
Definition: entity_factory.pb.h:292
FromCase from_case() const
Definition: entity_factory.pb.h:803
void clear_pose()
Definition: entity_factory.pb.h:661
bool has_header() const
Definition: entity_factory.pb.h:281
void set_sdf_filename(const ::std::string &value)
Definition: entity_factory.pb.h:419
::ignition::msgs::Pose * mutable_pose()
Definition: entity_factory.pb.h:669
void set_allocated_light(::ignition::msgs::Light *light)
Definition: entity_factory.pb.h:567
void protobuf_ShutdownFile_ignition_2fmsgs_2fentity_5ffactory_2eproto()
bool allow_renaming() const
Definition: entity_factory.pb.h:743
::ignition::msgs::Model * mutable_model()
Definition: entity_factory.pb.h:499
Definition: entity_factory.pb.h:59
void clear_clone_name()
Definition: entity_factory.pb.h:583
const ::std::string & sdf_filename() const
Definition: entity_factory.pb.h:412
const ::std::string & relative_to() const
Definition: entity_factory.pb.h:757
void set_allocated_model(::ignition::msgs::Model *model)
Definition: entity_factory.pb.h:519
void clear_light()
Definition: entity_factory.pb.h:535
void set_clone_name(const ::std::string &value)
Definition: entity_factory.pb.h:596
Definition: model.pb.h:62
std::unique_ptr< const EntityFactory > ConstEntityFactoryUniquePtr
Definition: entity_factory.pb.h:809
void set_allocated_sdf(::std::string *sdf)
Definition: entity_factory.pb.h:386
void protobuf_AssignDesc_ignition_2fmsgs_2fentity_5ffactory_2eproto()
::std::string * mutable_sdf_filename()
Definition: entity_factory.pb.h:449
::std::string * release_name()
Definition: entity_factory.pb.h:724
void set_relative_to(const ::std::string &value)
Definition: entity_factory.pb.h:761
std::unique_ptr< EntityFactory > EntityFactoryUniquePtr
Definition: entity_factory.pb.h:808
static const Model & default_instance()
std::shared_ptr< EntityFactory > EntityFactorySharedPtr
Definition: entity_factory.pb.h:810
void set_allow_renaming(bool value)
Definition: entity_factory.pb.h:747
const ::std::string & clone_name() const
Definition: entity_factory.pb.h:589
std::shared_ptr< const EntityFactory > ConstEntityFactorySharedPtr
Definition: entity_factory.pb.h:811
void clear_allow_renaming()
Definition: entity_factory.pb.h:740
void set_allocated_sdf_filename(::std::string *sdf_filename)
Definition: entity_factory.pb.h:467
bool has_pose() const
Definition: entity_factory.pb.h:658
void set_allocated_relative_to(::std::string *relative_to)
Definition: entity_factory.pb.h:787
static const Light & default_instance()
const ::ignition::msgs::Pose & pose() const
Definition: entity_factory.pb.h:665
::std::string * mutable_sdf()
Definition: entity_factory.pb.h:368
void clear_sdf_filename()
Definition: entity_factory.pb.h:406
::std::string * mutable_relative_to()
Definition: entity_factory.pb.h:777
const ::std::string & name() const
Definition: entity_factory.pb.h:699
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: entity_factory.pb.h:104