Ignition Msgs

API Reference

5.8.1
entity_factory.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/entity_factory.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_5ffactory_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_5ffactory_2eproto
6 
7 #include <limits>
8 #include <string>
9 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
34 #include "ignition/msgs/pose.pb.h"
35 #include "ignition/msgs/light.pb.h"
36 #include "ignition/msgs/model.pb.h"
38 #ifndef _MSC_VER
39 #pragma GCC system_header
40 #else
41 #pragma warning(push)
42 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #endif
44 #ifdef __linux__
45 #include <sys/sysmacros.h>
46 #endif
47 #include <memory>
48 #include <ignition/msgs/Export.hh>
49 // @@protoc_insertion_point(includes)
50 #include <google/protobuf/port_def.inc>
51 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fentity_5ffactory_2eproto IGNITION_MSGS_VISIBLE
52 PROTOBUF_NAMESPACE_OPEN
53 namespace internal {
54 class AnyMetadata;
55 } // namespace internal
56 PROTOBUF_NAMESPACE_CLOSE
57 
58 // Internal implementation detail -- do not use these members.
60  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
63  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
64  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
65  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
66  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
67  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
68  static const uint32_t offsets[];
69 };
70 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fentity_5ffactory_2eproto;
71 namespace ignition {
72 namespace msgs {
73 class EntityFactory;
74 struct EntityFactoryDefaultTypeInternal;
75 IGNITION_MSGS_VISIBLE extern EntityFactoryDefaultTypeInternal _EntityFactory_default_instance_;
76 } // namespace msgs
77 } // namespace ignition
78 PROTOBUF_NAMESPACE_OPEN
79 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::EntityFactory* Arena::CreateMaybeMessage<::ignition::msgs::EntityFactory>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
81 namespace ignition {
82 namespace msgs {
83 
84 // ===================================================================
85 
86 class IGNITION_MSGS_VISIBLE EntityFactory final :
87  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.EntityFactory) */ {
88  public:
89  inline EntityFactory() : EntityFactory(nullptr) {}
90  ~EntityFactory() override;
91  explicit constexpr EntityFactory(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
92 
94  EntityFactory(EntityFactory&& from) noexcept
95  : EntityFactory() {
96  *this = ::std::move(from);
97  }
98 
99  inline EntityFactory& operator=(const EntityFactory& from) {
100  CopyFrom(from);
101  return *this;
102  }
103  inline EntityFactory& operator=(EntityFactory&& from) noexcept {
104  if (this == &from) return *this;
105  if (GetOwningArena() == from.GetOwningArena()
106  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
107  && GetOwningArena() != nullptr
108  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
109  ) {
110  InternalSwap(&from);
111  } else {
112  CopyFrom(from);
113  }
114  return *this;
115  }
116 
117  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
118  return GetDescriptor();
119  }
120  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
121  return default_instance().GetMetadata().descriptor;
122  }
123  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
124  return default_instance().GetMetadata().reflection;
125  }
126  static const EntityFactory& default_instance() {
127  return *internal_default_instance();
128  }
129  enum FromCase {
130  kSdf = 2,
131  kSdfFilename = 3,
132  kModel = 4,
133  kLight = 5,
134  kCloneName = 6,
135  FROM_NOT_SET = 0,
136  };
137 
138  static inline const EntityFactory* internal_default_instance() {
139  return reinterpret_cast<const EntityFactory*>(
141  }
142  static constexpr int kIndexInFileMessages =
143  0;
144 
145  friend void swap(EntityFactory& a, EntityFactory& b) {
146  a.Swap(&b);
147  }
148  inline void Swap(EntityFactory* other) {
149  if (other == this) return;
150  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
151  if (GetOwningArena() != nullptr &&
152  GetOwningArena() == other->GetOwningArena()) {
153  #else // PROTOBUF_FORCE_COPY_IN_SWAP
154  if (GetOwningArena() == other->GetOwningArena()) {
155  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
156  InternalSwap(other);
157  } else {
158  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
159  }
160  }
162  if (other == this) return;
163  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
164  InternalSwap(other);
165  }
166 
167  // implements Message ----------------------------------------------
168 
169  EntityFactory* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
170  return CreateMaybeMessage<EntityFactory>(arena);
171  }
172  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
173  void CopyFrom(const EntityFactory& from);
174  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
175  void MergeFrom(const EntityFactory& from);
176  private:
177  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
178  public:
179  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
180  bool IsInitialized() const final;
181 
182  size_t ByteSizeLong() const final;
183  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
184  uint8_t* _InternalSerialize(
185  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
186  int GetCachedSize() const final { return _cached_size_.Get(); }
187 
188  private:
189  void SharedCtor();
190  void SharedDtor();
191  void SetCachedSize(int size) const final;
192  void InternalSwap(EntityFactory* other);
193 
194  private:
195  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
196  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
197  return "ignition.msgs.EntityFactory";
198  }
199  protected:
200  explicit EntityFactory(::PROTOBUF_NAMESPACE_ID::Arena* arena,
201  bool is_message_owned = false);
202  private:
203  static void ArenaDtor(void* object);
204  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
205  public:
206 
207  static const ClassData _class_data_;
208  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
209 
210  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
211 
212  // nested types ----------------------------------------------------
213 
214  // accessors -------------------------------------------------------
215 
216  enum : int {
217  kNameFieldNumber = 8,
218  kRelativeToFieldNumber = 10,
219  kHeaderFieldNumber = 1,
220  kPoseFieldNumber = 7,
221  kAllowRenamingFieldNumber = 9,
222  kSdfFieldNumber = 2,
223  kSdfFilenameFieldNumber = 3,
224  kModelFieldNumber = 4,
225  kLightFieldNumber = 5,
226  kCloneNameFieldNumber = 6,
227  };
228  // string name = 8;
229  void clear_name();
230  const std::string& name() const;
231  template <typename ArgT0 = const std::string&, typename... ArgT>
232  void set_name(ArgT0&& arg0, ArgT... args);
233  std::string* mutable_name();
234  PROTOBUF_NODISCARD std::string* release_name();
235  void set_allocated_name(std::string* name);
236  private:
237  const std::string& _internal_name() const;
238  inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
239  std::string* _internal_mutable_name();
240  public:
241 
242  // string relative_to = 10;
243  void clear_relative_to();
244  const std::string& relative_to() const;
245  template <typename ArgT0 = const std::string&, typename... ArgT>
246  void set_relative_to(ArgT0&& arg0, ArgT... args);
247  std::string* mutable_relative_to();
248  PROTOBUF_NODISCARD std::string* release_relative_to();
249  void set_allocated_relative_to(std::string* relative_to);
250  private:
251  const std::string& _internal_relative_to() const;
252  inline PROTOBUF_ALWAYS_INLINE void _internal_set_relative_to(const std::string& value);
253  std::string* _internal_mutable_relative_to();
254  public:
255 
256  // .ignition.msgs.Header header = 1;
257  bool has_header() const;
258  private:
259  bool _internal_has_header() const;
260  public:
261  void clear_header();
262  const ::ignition::msgs::Header& header() const;
263  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
264  ::ignition::msgs::Header* mutable_header();
265  void set_allocated_header(::ignition::msgs::Header* header);
266  private:
267  const ::ignition::msgs::Header& _internal_header() const;
268  ::ignition::msgs::Header* _internal_mutable_header();
269  public:
270  void unsafe_arena_set_allocated_header(
271  ::ignition::msgs::Header* header);
272  ::ignition::msgs::Header* unsafe_arena_release_header();
273 
274  // .ignition.msgs.Pose pose = 7;
275  bool has_pose() const;
276  private:
277  bool _internal_has_pose() const;
278  public:
279  void clear_pose();
280  const ::ignition::msgs::Pose& pose() const;
281  PROTOBUF_NODISCARD ::ignition::msgs::Pose* release_pose();
282  ::ignition::msgs::Pose* mutable_pose();
283  void set_allocated_pose(::ignition::msgs::Pose* pose);
284  private:
285  const ::ignition::msgs::Pose& _internal_pose() const;
286  ::ignition::msgs::Pose* _internal_mutable_pose();
287  public:
288  void unsafe_arena_set_allocated_pose(
289  ::ignition::msgs::Pose* pose);
290  ::ignition::msgs::Pose* unsafe_arena_release_pose();
291 
292  // bool allow_renaming = 9;
293  void clear_allow_renaming();
294  bool allow_renaming() const;
295  void set_allow_renaming(bool value);
296  private:
297  bool _internal_allow_renaming() const;
298  void _internal_set_allow_renaming(bool value);
299  public:
300 
301  // string sdf = 2;
302  bool has_sdf() const;
303  private:
304  bool _internal_has_sdf() const;
305  public:
306  void clear_sdf();
307  const std::string& sdf() const;
308  template <typename ArgT0 = const std::string&, typename... ArgT>
309  void set_sdf(ArgT0&& arg0, ArgT... args);
310  std::string* mutable_sdf();
311  PROTOBUF_NODISCARD std::string* release_sdf();
312  void set_allocated_sdf(std::string* sdf);
313  private:
314  const std::string& _internal_sdf() const;
315  inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdf(const std::string& value);
316  std::string* _internal_mutable_sdf();
317  public:
318 
319  // string sdf_filename = 3;
320  bool has_sdf_filename() const;
321  private:
322  bool _internal_has_sdf_filename() const;
323  public:
324  void clear_sdf_filename();
325  const std::string& sdf_filename() const;
326  template <typename ArgT0 = const std::string&, typename... ArgT>
327  void set_sdf_filename(ArgT0&& arg0, ArgT... args);
328  std::string* mutable_sdf_filename();
329  PROTOBUF_NODISCARD std::string* release_sdf_filename();
330  void set_allocated_sdf_filename(std::string* sdf_filename);
331  private:
332  const std::string& _internal_sdf_filename() const;
333  inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdf_filename(const std::string& value);
334  std::string* _internal_mutable_sdf_filename();
335  public:
336 
337  // .ignition.msgs.Model model = 4;
338  bool has_model() const;
339  private:
340  bool _internal_has_model() const;
341  public:
342  void clear_model();
343  const ::ignition::msgs::Model& model() const;
344  PROTOBUF_NODISCARD ::ignition::msgs::Model* release_model();
345  ::ignition::msgs::Model* mutable_model();
347  private:
348  const ::ignition::msgs::Model& _internal_model() const;
349  ::ignition::msgs::Model* _internal_mutable_model();
350  public:
351  void unsafe_arena_set_allocated_model(
352  ::ignition::msgs::Model* model);
353  ::ignition::msgs::Model* unsafe_arena_release_model();
354 
355  // .ignition.msgs.Light light = 5;
356  bool has_light() const;
357  private:
358  bool _internal_has_light() const;
359  public:
360  void clear_light();
361  const ::ignition::msgs::Light& light() const;
362  PROTOBUF_NODISCARD ::ignition::msgs::Light* release_light();
363  ::ignition::msgs::Light* mutable_light();
365  private:
366  const ::ignition::msgs::Light& _internal_light() const;
367  ::ignition::msgs::Light* _internal_mutable_light();
368  public:
369  void unsafe_arena_set_allocated_light(
370  ::ignition::msgs::Light* light);
371  ::ignition::msgs::Light* unsafe_arena_release_light();
372 
373  // string clone_name = 6;
374  bool has_clone_name() const;
375  private:
376  bool _internal_has_clone_name() const;
377  public:
378  void clear_clone_name();
379  const std::string& clone_name() const;
380  template <typename ArgT0 = const std::string&, typename... ArgT>
381  void set_clone_name(ArgT0&& arg0, ArgT... args);
382  std::string* mutable_clone_name();
383  PROTOBUF_NODISCARD std::string* release_clone_name();
384  void set_allocated_clone_name(std::string* clone_name);
385  private:
386  const std::string& _internal_clone_name() const;
387  inline PROTOBUF_ALWAYS_INLINE void _internal_set_clone_name(const std::string& value);
388  std::string* _internal_mutable_clone_name();
389  public:
390 
391  void clear_from();
392  FromCase from_case() const;
393  // @@protoc_insertion_point(class_scope:ignition.msgs.EntityFactory)
394  private:
395  class _Internal;
396  void set_has_sdf();
397  void set_has_sdf_filename();
398  void set_has_model();
399  void set_has_light();
400  void set_has_clone_name();
401 
402  inline bool has_from() const;
403  inline void clear_has_from();
404 
405  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
406  typedef void InternalArenaConstructable_;
407  typedef void DestructorSkippable_;
408  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
409  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr relative_to_;
410  ::ignition::msgs::Header* header_;
411  ::ignition::msgs::Pose* pose_;
412  bool allow_renaming_;
413  union FromUnion {
414  constexpr FromUnion() : _constinit_{} {}
415  ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
416  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sdf_;
417  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sdf_filename_;
418  ::ignition::msgs::Model* model_;
419  ::ignition::msgs::Light* light_;
420  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr clone_name_;
421  } from_;
422  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
423  uint32_t _oneof_case_[1];
424 
425  friend struct ::TableStruct_ignition_2fmsgs_2fentity_5ffactory_2eproto;
426 };
427 // ===================================================================
428 
429 
430 // ===================================================================
431 
432 #ifdef __GNUC__
433  #pragma GCC diagnostic push
434  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
435 #endif // __GNUC__
436 // EntityFactory
437 
438 // .ignition.msgs.Header header = 1;
439 inline bool EntityFactory::_internal_has_header() const {
440  return this != internal_default_instance() && header_ != nullptr;
441 }
442 inline bool EntityFactory::has_header() const {
443  return _internal_has_header();
444 }
445 inline const ::ignition::msgs::Header& EntityFactory::_internal_header() const {
446  const ::ignition::msgs::Header* p = header_;
447  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
449 }
450 inline const ::ignition::msgs::Header& EntityFactory::header() const {
451  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.header)
452  return _internal_header();
453 }
455  ::ignition::msgs::Header* header) {
456  if (GetArenaForAllocation() == nullptr) {
457  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
458  }
459  header_ = header;
460  if (header) {
461 
462  } else {
463 
464  }
465  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.EntityFactory.header)
466 }
467 inline ::ignition::msgs::Header* EntityFactory::release_header() {
468 
469  ::ignition::msgs::Header* temp = header_;
470  header_ = nullptr;
471 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
472  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
473  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
474  if (GetArenaForAllocation() == nullptr) { delete old; }
475 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
476  if (GetArenaForAllocation() != nullptr) {
477  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
478  }
479 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
480  return temp;
481 }
482 inline ::ignition::msgs::Header* EntityFactory::unsafe_arena_release_header() {
483  // @@protoc_insertion_point(field_release:ignition.msgs.EntityFactory.header)
484 
485  ::ignition::msgs::Header* temp = header_;
486  header_ = nullptr;
487  return temp;
488 }
489 inline ::ignition::msgs::Header* EntityFactory::_internal_mutable_header() {
490 
491  if (header_ == nullptr) {
492  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
493  header_ = p;
494  }
495  return header_;
496 }
497 inline ::ignition::msgs::Header* EntityFactory::mutable_header() {
498  ::ignition::msgs::Header* _msg = _internal_mutable_header();
499  // @@protoc_insertion_point(field_mutable:ignition.msgs.EntityFactory.header)
500  return _msg;
501 }
503  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
504  if (message_arena == nullptr) {
505  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
506  }
507  if (header) {
508  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
509  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
510  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
511  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
512  if (message_arena != submessage_arena) {
513  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
514  message_arena, header, submessage_arena);
515  }
516 
517  } else {
518 
519  }
520  header_ = header;
521  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.EntityFactory.header)
522 }
523 
524 // string sdf = 2;
525 inline bool EntityFactory::_internal_has_sdf() const {
526  return from_case() == kSdf;
527 }
528 inline bool EntityFactory::has_sdf() const {
529  return _internal_has_sdf();
530 }
531 inline void EntityFactory::set_has_sdf() {
532  _oneof_case_[0] = kSdf;
533 }
535  if (_internal_has_sdf()) {
536  from_.sdf_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
537  clear_has_from();
538  }
539 }
540 inline const std::string& EntityFactory::sdf() const {
541  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.sdf)
542  return _internal_sdf();
543 }
544 template <typename ArgT0, typename... ArgT>
545 inline void EntityFactory::set_sdf(ArgT0&& arg0, ArgT... args) {
546  if (!_internal_has_sdf()) {
547  clear_from();
548  set_has_sdf();
549  from_.sdf_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
550  }
551  from_.sdf_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
552  // @@protoc_insertion_point(field_set:ignition.msgs.EntityFactory.sdf)
553 }
555  std::string* _s = _internal_mutable_sdf();
556  // @@protoc_insertion_point(field_mutable:ignition.msgs.EntityFactory.sdf)
557  return _s;
558 }
559 inline const std::string& EntityFactory::_internal_sdf() const {
560  if (_internal_has_sdf()) {
561  return from_.sdf_.Get();
562  }
563  return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
564 }
565 inline void EntityFactory::_internal_set_sdf(const std::string& value) {
566  if (!_internal_has_sdf()) {
567  clear_from();
568  set_has_sdf();
569  from_.sdf_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
570  }
571  from_.sdf_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
572 }
573 inline std::string* EntityFactory::_internal_mutable_sdf() {
574  if (!_internal_has_sdf()) {
575  clear_from();
576  set_has_sdf();
577  from_.sdf_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
578  }
579  return from_.sdf_.Mutable(
580  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
581 }
583  // @@protoc_insertion_point(field_release:ignition.msgs.EntityFactory.sdf)
584  if (_internal_has_sdf()) {
585  clear_has_from();
586  return from_.sdf_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
587  } else {
588  return nullptr;
589  }
590 }
592  if (has_from()) {
593  clear_from();
594  }
595  if (sdf != nullptr) {
596  set_has_sdf();
597  from_.sdf_.UnsafeSetDefault(sdf);
598  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
599  if (arena != nullptr) {
600  arena->Own(sdf);
601  }
602  }
603  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.EntityFactory.sdf)
604 }
605 
606 // string sdf_filename = 3;
607 inline bool EntityFactory::_internal_has_sdf_filename() const {
608  return from_case() == kSdfFilename;
609 }
610 inline bool EntityFactory::has_sdf_filename() const {
611  return _internal_has_sdf_filename();
612 }
613 inline void EntityFactory::set_has_sdf_filename() {
614  _oneof_case_[0] = kSdfFilename;
615 }
617  if (_internal_has_sdf_filename()) {
618  from_.sdf_filename_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
619  clear_has_from();
620  }
621 }
623  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.sdf_filename)
624  return _internal_sdf_filename();
625 }
626 template <typename ArgT0, typename... ArgT>
627 inline void EntityFactory::set_sdf_filename(ArgT0&& arg0, ArgT... args) {
628  if (!_internal_has_sdf_filename()) {
629  clear_from();
630  set_has_sdf_filename();
631  from_.sdf_filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
632  }
633  from_.sdf_filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
634  // @@protoc_insertion_point(field_set:ignition.msgs.EntityFactory.sdf_filename)
635 }
637  std::string* _s = _internal_mutable_sdf_filename();
638  // @@protoc_insertion_point(field_mutable:ignition.msgs.EntityFactory.sdf_filename)
639  return _s;
640 }
641 inline const std::string& EntityFactory::_internal_sdf_filename() const {
642  if (_internal_has_sdf_filename()) {
643  return from_.sdf_filename_.Get();
644  }
645  return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
646 }
647 inline void EntityFactory::_internal_set_sdf_filename(const std::string& value) {
648  if (!_internal_has_sdf_filename()) {
649  clear_from();
650  set_has_sdf_filename();
651  from_.sdf_filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
652  }
653  from_.sdf_filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
654 }
655 inline std::string* EntityFactory::_internal_mutable_sdf_filename() {
656  if (!_internal_has_sdf_filename()) {
657  clear_from();
658  set_has_sdf_filename();
659  from_.sdf_filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
660  }
661  return from_.sdf_filename_.Mutable(
662  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
663 }
665  // @@protoc_insertion_point(field_release:ignition.msgs.EntityFactory.sdf_filename)
666  if (_internal_has_sdf_filename()) {
667  clear_has_from();
668  return from_.sdf_filename_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
669  } else {
670  return nullptr;
671  }
672 }
674  if (has_from()) {
675  clear_from();
676  }
677  if (sdf_filename != nullptr) {
678  set_has_sdf_filename();
679  from_.sdf_filename_.UnsafeSetDefault(sdf_filename);
680  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
681  if (arena != nullptr) {
682  arena->Own(sdf_filename);
683  }
684  }
685  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.EntityFactory.sdf_filename)
686 }
687 
688 // .ignition.msgs.Model model = 4;
689 inline bool EntityFactory::_internal_has_model() const {
690  return from_case() == kModel;
691 }
692 inline bool EntityFactory::has_model() const {
693  return _internal_has_model();
694 }
695 inline void EntityFactory::set_has_model() {
696  _oneof_case_[0] = kModel;
697 }
698 inline ::ignition::msgs::Model* EntityFactory::release_model() {
699  // @@protoc_insertion_point(field_release:ignition.msgs.EntityFactory.model)
700  if (_internal_has_model()) {
701  clear_has_from();
702  ::ignition::msgs::Model* temp = from_.model_;
703  if (GetArenaForAllocation() != nullptr) {
704  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
705  }
706  from_.model_ = nullptr;
707  return temp;
708  } else {
709  return nullptr;
710  }
711 }
712 inline const ::ignition::msgs::Model& EntityFactory::_internal_model() const {
713  return _internal_has_model()
714  ? *from_.model_
716 }
717 inline const ::ignition::msgs::Model& EntityFactory::model() const {
718  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.model)
719  return _internal_model();
720 }
721 inline ::ignition::msgs::Model* EntityFactory::unsafe_arena_release_model() {
722  // @@protoc_insertion_point(field_unsafe_arena_release:ignition.msgs.EntityFactory.model)
723  if (_internal_has_model()) {
724  clear_has_from();
725  ::ignition::msgs::Model* temp = from_.model_;
726  from_.model_ = nullptr;
727  return temp;
728  } else {
729  return nullptr;
730  }
731 }
733  clear_from();
734  if (model) {
735  set_has_model();
736  from_.model_ = model;
737  }
738  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.EntityFactory.model)
739 }
740 inline ::ignition::msgs::Model* EntityFactory::_internal_mutable_model() {
741  if (!_internal_has_model()) {
742  clear_from();
743  set_has_model();
744  from_.model_ = CreateMaybeMessage< ::ignition::msgs::Model >(GetArenaForAllocation());
745  }
746  return from_.model_;
747 }
748 inline ::ignition::msgs::Model* EntityFactory::mutable_model() {
749  ::ignition::msgs::Model* _msg = _internal_mutable_model();
750  // @@protoc_insertion_point(field_mutable:ignition.msgs.EntityFactory.model)
751  return _msg;
752 }
753 
754 // .ignition.msgs.Light light = 5;
755 inline bool EntityFactory::_internal_has_light() const {
756  return from_case() == kLight;
757 }
758 inline bool EntityFactory::has_light() const {
759  return _internal_has_light();
760 }
761 inline void EntityFactory::set_has_light() {
762  _oneof_case_[0] = kLight;
763 }
764 inline ::ignition::msgs::Light* EntityFactory::release_light() {
765  // @@protoc_insertion_point(field_release:ignition.msgs.EntityFactory.light)
766  if (_internal_has_light()) {
767  clear_has_from();
768  ::ignition::msgs::Light* temp = from_.light_;
769  if (GetArenaForAllocation() != nullptr) {
770  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
771  }
772  from_.light_ = nullptr;
773  return temp;
774  } else {
775  return nullptr;
776  }
777 }
778 inline const ::ignition::msgs::Light& EntityFactory::_internal_light() const {
779  return _internal_has_light()
780  ? *from_.light_
782 }
783 inline const ::ignition::msgs::Light& EntityFactory::light() const {
784  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.light)
785  return _internal_light();
786 }
787 inline ::ignition::msgs::Light* EntityFactory::unsafe_arena_release_light() {
788  // @@protoc_insertion_point(field_unsafe_arena_release:ignition.msgs.EntityFactory.light)
789  if (_internal_has_light()) {
790  clear_has_from();
791  ::ignition::msgs::Light* temp = from_.light_;
792  from_.light_ = nullptr;
793  return temp;
794  } else {
795  return nullptr;
796  }
797 }
799  clear_from();
800  if (light) {
801  set_has_light();
802  from_.light_ = light;
803  }
804  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.EntityFactory.light)
805 }
806 inline ::ignition::msgs::Light* EntityFactory::_internal_mutable_light() {
807  if (!_internal_has_light()) {
808  clear_from();
809  set_has_light();
810  from_.light_ = CreateMaybeMessage< ::ignition::msgs::Light >(GetArenaForAllocation());
811  }
812  return from_.light_;
813 }
814 inline ::ignition::msgs::Light* EntityFactory::mutable_light() {
815  ::ignition::msgs::Light* _msg = _internal_mutable_light();
816  // @@protoc_insertion_point(field_mutable:ignition.msgs.EntityFactory.light)
817  return _msg;
818 }
819 
820 // string clone_name = 6;
821 inline bool EntityFactory::_internal_has_clone_name() const {
822  return from_case() == kCloneName;
823 }
824 inline bool EntityFactory::has_clone_name() const {
825  return _internal_has_clone_name();
826 }
827 inline void EntityFactory::set_has_clone_name() {
828  _oneof_case_[0] = kCloneName;
829 }
831  if (_internal_has_clone_name()) {
832  from_.clone_name_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
833  clear_has_from();
834  }
835 }
836 inline const std::string& EntityFactory::clone_name() const {
837  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.clone_name)
838  return _internal_clone_name();
839 }
840 template <typename ArgT0, typename... ArgT>
841 inline void EntityFactory::set_clone_name(ArgT0&& arg0, ArgT... args) {
842  if (!_internal_has_clone_name()) {
843  clear_from();
844  set_has_clone_name();
845  from_.clone_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
846  }
847  from_.clone_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
848  // @@protoc_insertion_point(field_set:ignition.msgs.EntityFactory.clone_name)
849 }
851  std::string* _s = _internal_mutable_clone_name();
852  // @@protoc_insertion_point(field_mutable:ignition.msgs.EntityFactory.clone_name)
853  return _s;
854 }
855 inline const std::string& EntityFactory::_internal_clone_name() const {
856  if (_internal_has_clone_name()) {
857  return from_.clone_name_.Get();
858  }
859  return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
860 }
861 inline void EntityFactory::_internal_set_clone_name(const std::string& value) {
862  if (!_internal_has_clone_name()) {
863  clear_from();
864  set_has_clone_name();
865  from_.clone_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
866  }
867  from_.clone_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
868 }
869 inline std::string* EntityFactory::_internal_mutable_clone_name() {
870  if (!_internal_has_clone_name()) {
871  clear_from();
872  set_has_clone_name();
873  from_.clone_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
874  }
875  return from_.clone_name_.Mutable(
876  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
877 }
879  // @@protoc_insertion_point(field_release:ignition.msgs.EntityFactory.clone_name)
880  if (_internal_has_clone_name()) {
881  clear_has_from();
882  return from_.clone_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
883  } else {
884  return nullptr;
885  }
886 }
888  if (has_from()) {
889  clear_from();
890  }
891  if (clone_name != nullptr) {
892  set_has_clone_name();
893  from_.clone_name_.UnsafeSetDefault(clone_name);
894  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
895  if (arena != nullptr) {
896  arena->Own(clone_name);
897  }
898  }
899  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.EntityFactory.clone_name)
900 }
901 
902 // .ignition.msgs.Pose pose = 7;
903 inline bool EntityFactory::_internal_has_pose() const {
904  return this != internal_default_instance() && pose_ != nullptr;
905 }
906 inline bool EntityFactory::has_pose() const {
907  return _internal_has_pose();
908 }
909 inline const ::ignition::msgs::Pose& EntityFactory::_internal_pose() const {
910  const ::ignition::msgs::Pose* p = pose_;
911  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Pose&>(
913 }
914 inline const ::ignition::msgs::Pose& EntityFactory::pose() const {
915  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.pose)
916  return _internal_pose();
917 }
919  ::ignition::msgs::Pose* pose) {
920  if (GetArenaForAllocation() == nullptr) {
921  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_);
922  }
923  pose_ = pose;
924  if (pose) {
925 
926  } else {
927 
928  }
929  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.EntityFactory.pose)
930 }
931 inline ::ignition::msgs::Pose* EntityFactory::release_pose() {
932 
933  ::ignition::msgs::Pose* temp = pose_;
934  pose_ = nullptr;
935 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
936  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
937  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
938  if (GetArenaForAllocation() == nullptr) { delete old; }
939 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
940  if (GetArenaForAllocation() != nullptr) {
941  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
942  }
943 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
944  return temp;
945 }
946 inline ::ignition::msgs::Pose* EntityFactory::unsafe_arena_release_pose() {
947  // @@protoc_insertion_point(field_release:ignition.msgs.EntityFactory.pose)
948 
949  ::ignition::msgs::Pose* temp = pose_;
950  pose_ = nullptr;
951  return temp;
952 }
953 inline ::ignition::msgs::Pose* EntityFactory::_internal_mutable_pose() {
954 
955  if (pose_ == nullptr) {
956  auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaForAllocation());
957  pose_ = p;
958  }
959  return pose_;
960 }
961 inline ::ignition::msgs::Pose* EntityFactory::mutable_pose() {
962  ::ignition::msgs::Pose* _msg = _internal_mutable_pose();
963  // @@protoc_insertion_point(field_mutable:ignition.msgs.EntityFactory.pose)
964  return _msg;
965 }
967  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
968  if (message_arena == nullptr) {
969  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_);
970  }
971  if (pose) {
972  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
973  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
974  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
975  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose));
976  if (message_arena != submessage_arena) {
977  pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
978  message_arena, pose, submessage_arena);
979  }
980 
981  } else {
982 
983  }
984  pose_ = pose;
985  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.EntityFactory.pose)
986 }
987 
988 // string name = 8;
990  name_.ClearToEmpty();
991 }
992 inline const std::string& EntityFactory::name() const {
993  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.name)
994  return _internal_name();
995 }
996 template <typename ArgT0, typename... ArgT>
997 inline PROTOBUF_ALWAYS_INLINE
998 void EntityFactory::set_name(ArgT0&& arg0, ArgT... args) {
999 
1000  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1001  // @@protoc_insertion_point(field_set:ignition.msgs.EntityFactory.name)
1002 }
1004  std::string* _s = _internal_mutable_name();
1005  // @@protoc_insertion_point(field_mutable:ignition.msgs.EntityFactory.name)
1006  return _s;
1007 }
1008 inline const std::string& EntityFactory::_internal_name() const {
1009  return name_.Get();
1010 }
1011 inline void EntityFactory::_internal_set_name(const std::string& value) {
1012 
1013  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
1014 }
1015 inline std::string* EntityFactory::_internal_mutable_name() {
1016 
1017  return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
1018 }
1020  // @@protoc_insertion_point(field_release:ignition.msgs.EntityFactory.name)
1021  return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
1022 }
1024  if (name != nullptr) {
1025 
1026  } else {
1027 
1028  }
1029  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
1030  GetArenaForAllocation());
1031 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1032  if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
1033  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
1034  }
1035 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1036  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.EntityFactory.name)
1037 }
1038 
1039 // bool allow_renaming = 9;
1041  allow_renaming_ = false;
1042 }
1043 inline bool EntityFactory::_internal_allow_renaming() const {
1044  return allow_renaming_;
1045 }
1046 inline bool EntityFactory::allow_renaming() const {
1047  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.allow_renaming)
1048  return _internal_allow_renaming();
1049 }
1050 inline void EntityFactory::_internal_set_allow_renaming(bool value) {
1051 
1052  allow_renaming_ = value;
1053 }
1054 inline void EntityFactory::set_allow_renaming(bool value) {
1055  _internal_set_allow_renaming(value);
1056  // @@protoc_insertion_point(field_set:ignition.msgs.EntityFactory.allow_renaming)
1057 }
1058 
1059 // string relative_to = 10;
1061  relative_to_.ClearToEmpty();
1062 }
1064  // @@protoc_insertion_point(field_get:ignition.msgs.EntityFactory.relative_to)
1065  return _internal_relative_to();
1066 }
1067 template <typename ArgT0, typename... ArgT>
1068 inline PROTOBUF_ALWAYS_INLINE
1069 void EntityFactory::set_relative_to(ArgT0&& arg0, ArgT... args) {
1070 
1071  relative_to_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1072  // @@protoc_insertion_point(field_set:ignition.msgs.EntityFactory.relative_to)
1073 }
1075  std::string* _s = _internal_mutable_relative_to();
1076  // @@protoc_insertion_point(field_mutable:ignition.msgs.EntityFactory.relative_to)
1077  return _s;
1078 }
1079 inline const std::string& EntityFactory::_internal_relative_to() const {
1080  return relative_to_.Get();
1081 }
1082 inline void EntityFactory::_internal_set_relative_to(const std::string& value) {
1083 
1084  relative_to_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
1085 }
1086 inline std::string* EntityFactory::_internal_mutable_relative_to() {
1087 
1088  return relative_to_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
1089 }
1091  // @@protoc_insertion_point(field_release:ignition.msgs.EntityFactory.relative_to)
1092  return relative_to_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
1093 }
1095  if (relative_to != nullptr) {
1096 
1097  } else {
1098 
1099  }
1100  relative_to_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), relative_to,
1101  GetArenaForAllocation());
1102 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1103  if (relative_to_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
1104  relative_to_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
1105  }
1106 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1107  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.EntityFactory.relative_to)
1108 }
1109 
1110 inline bool EntityFactory::has_from() const {
1111  return from_case() != FROM_NOT_SET;
1112 }
1113 inline void EntityFactory::clear_has_from() {
1114  _oneof_case_[0] = FROM_NOT_SET;
1115 }
1117  return EntityFactory::FromCase(_oneof_case_[0]);
1118 }
1119 #ifdef __GNUC__
1120  #pragma GCC diagnostic pop
1121 #endif // __GNUC__
1122 
1127 // @@protoc_insertion_point(namespace_scope)
1128 
1129 } // namespace msgs
1130 } // namespace ignition
1131 
1132 #ifdef _MSC_VER
1133 #pragma warning(pop)
1134 #endif
1135 // @@protoc_insertion_point(global_scope)
1136 
1137 #include <google/protobuf/port_undef.inc>
1138 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_5ffactory_2eproto
Definition: entity_factory.pb.h:87
void clear_clone_name()
Definition: entity_factory.pb.h:830
bool has_light() const
Definition: entity_factory.pb.h:758
const ::ignition::msgs::Pose & pose() const
Definition: entity_factory.pb.h:914
void unsafe_arena_set_allocated_model(::ignition::msgs::Model *model)
Definition: entity_factory.pb.h:732
void set_clone_name(ArgT0 &&arg0, ArgT... args)
Definition: entity_factory.pb.h:841
void clear_relative_to()
Definition: entity_factory.pb.h:1060
const std::string & sdf_filename() const
Definition: entity_factory.pb.h:622
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: entity_factory.pb.h:123
EntityFactory(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
bool has_header() const
Definition: entity_factory.pb.h:442
::ignition::msgs::Pose * unsafe_arena_release_pose()
Definition: entity_factory.pb.h:946
EntityFactory(EntityFactory &&from) noexcept
Definition: entity_factory.pb.h:94
void clear_allow_renaming()
Definition: entity_factory.pb.h:1040
::ignition::msgs::Header * mutable_header()
Definition: entity_factory.pb.h:497
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_NODISCARD std::string * release_name()
Definition: entity_factory.pb.h:1019
PROTOBUF_NODISCARD std::string * release_clone_name()
Definition: entity_factory.pb.h:878
void unsafe_arena_set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: entity_factory.pb.h:918
const std::string & name() const
Definition: entity_factory.pb.h:992
::ignition::msgs::Light * mutable_light()
Definition: entity_factory.pb.h:814
void set_sdf_filename(ArgT0 &&arg0, ArgT... args)
Definition: entity_factory.pb.h:627
PROTOBUF_NODISCARD ::ignition::msgs::Model * release_model()
Definition: entity_factory.pb.h:698
::ignition::msgs::Model * mutable_model()
Definition: entity_factory.pb.h:748
const std::string & sdf() const
Definition: entity_factory.pb.h:540
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: entity_factory.pb.h:117
std::string * mutable_sdf()
Definition: entity_factory.pb.h:554
PROTOBUF_NODISCARD std::string * release_sdf()
Definition: entity_factory.pb.h:582
PROTOBUF_NODISCARD std::string * release_sdf_filename()
Definition: entity_factory.pb.h:664
EntityFactory & operator=(const EntityFactory &from)
Definition: entity_factory.pb.h:99
bool has_sdf_filename() const
Definition: entity_factory.pb.h:610
PROTOBUF_NODISCARD std::string * release_relative_to()
Definition: entity_factory.pb.h:1090
void set_allocated_sdf_filename(std::string *sdf_filename)
Definition: entity_factory.pb.h:673
friend void swap(EntityFactory &a, EntityFactory &b)
Definition: entity_factory.pb.h:145
void clear_name()
Definition: entity_factory.pb.h:989
bool has_model() const
Definition: entity_factory.pb.h:692
std::string * mutable_sdf_filename()
Definition: entity_factory.pb.h:636
const ::ignition::msgs::Model & model() const
Definition: entity_factory.pb.h:717
const ::ignition::msgs::Light & light() const
Definition: entity_factory.pb.h:783
void set_allow_renaming(bool value)
Definition: entity_factory.pb.h:1054
FromCase
Definition: entity_factory.pb.h:129
bool has_sdf() const
Definition: entity_factory.pb.h:528
constexpr EntityFactory(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void UnsafeArenaSwap(EntityFactory *other)
Definition: entity_factory.pb.h:161
void set_sdf(ArgT0 &&arg0, ArgT... args)
Definition: entity_factory.pb.h:545
const std::string & relative_to() const
Definition: entity_factory.pb.h:1063
bool has_clone_name() const
Definition: entity_factory.pb.h:824
void Swap(EntityFactory *other)
Definition: entity_factory.pb.h:148
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: entity_factory.pb.h:454
void set_allocated_sdf(std::string *sdf)
Definition: entity_factory.pb.h:591
void set_name(ArgT0 &&arg0, ArgT... args)
bool has_pose() const
Definition: entity_factory.pb.h:906
static const EntityFactory * internal_default_instance()
Definition: entity_factory.pb.h:138
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: entity_factory.pb.h:966
void clear_sdf_filename()
Definition: entity_factory.pb.h:616
const std::string & clone_name() const
Definition: entity_factory.pb.h:836
::ignition::msgs::Light * unsafe_arena_release_light()
Definition: entity_factory.pb.h:787
static const EntityFactory & default_instance()
Definition: entity_factory.pb.h:126
void set_allocated_relative_to(std::string *relative_to)
Definition: entity_factory.pb.h:1094
EntityFactory()
Definition: entity_factory.pb.h:89
bool allow_renaming() const
Definition: entity_factory.pb.h:1046
void CopyFrom(const EntityFactory &from)
FromCase from_case() const
Definition: entity_factory.pb.h:1116
void set_allocated_header(::ignition::msgs::Header *header)
Definition: entity_factory.pb.h:502
::ignition::msgs::Model * unsafe_arena_release_model()
Definition: entity_factory.pb.h:721
::ignition::msgs::Pose * mutable_pose()
Definition: entity_factory.pb.h:961
EntityFactory & operator=(EntityFactory &&from) noexcept
Definition: entity_factory.pb.h:103
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: entity_factory.pb.h:467
void set_allocated_light(::ignition::msgs::Light *light)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
std::string * mutable_relative_to()
Definition: entity_factory.pb.h:1074
void MergeFrom(const EntityFactory &from)
EntityFactory(const EntityFactory &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: entity_factory.pb.h:120
void set_allocated_clone_name(std::string *clone_name)
Definition: entity_factory.pb.h:887
void unsafe_arena_set_allocated_light(::ignition::msgs::Light *light)
Definition: entity_factory.pb.h:798
const ::ignition::msgs::Header & header() const
Definition: entity_factory.pb.h:450
std::string * mutable_name()
Definition: entity_factory.pb.h:1003
PROTOBUF_NODISCARD ::ignition::msgs::Pose * release_pose()
Definition: entity_factory.pb.h:931
static const ClassData _class_data_
Definition: entity_factory.pb.h:207
void set_relative_to(ArgT0 &&arg0, ArgT... args)
void set_allocated_model(::ignition::msgs::Model *model)
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: entity_factory.pb.h:482
std::string * mutable_clone_name()
Definition: entity_factory.pb.h:850
void set_allocated_name(std::string *name)
Definition: entity_factory.pb.h:1023
EntityFactory * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: entity_factory.pb.h:169
void clear_sdf()
Definition: entity_factory.pb.h:534
PROTOBUF_NODISCARD ::ignition::msgs::Light * release_light()
Definition: entity_factory.pb.h:764
Definition: header.pb.h:265
Definition: light.pb.h:114
Definition: model.pb.h:90
Definition: pose.pb.h:86
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fentity_5ffactory_2eproto
std::unique_ptr< const EntityFactory > ConstEntityFactoryUniquePtr
Definition: entity_factory.pb.h:1124
IGNITION_MSGS_VISIBLE ModelDefaultTypeInternal _Model_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< EntityFactory > EntityFactorySharedPtr
Definition: entity_factory.pb.h:1125
IGNITION_MSGS_VISIBLE LightDefaultTypeInternal _Light_default_instance_
std::unique_ptr< EntityFactory > EntityFactoryUniquePtr
Definition: entity_factory.pb.h:1123
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
IGNITION_MSGS_VISIBLE EntityFactoryDefaultTypeInternal _EntityFactory_default_instance_
std::shared_ptr< const EntityFactory > ConstEntityFactorySharedPtr
Definition: entity_factory.pb.h:1126
Definition: actor.pb.h:52
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)