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