Gazebo Msgs

API Reference

9.5.0
entity_factory.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/entity_factory.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5ffactory_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5ffactory_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/header.pb.h"
34 #include "gz/msgs/light.pb.h"
35 #include "gz/msgs/model.pb.h"
36 #include "gz/msgs/pose.pb.h"
37 #include "gz/msgs/spherical_coordinates.pb.h"
38 // @@protoc_insertion_point(includes)
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fentity_5ffactory_2eproto GZ_MSGS_VISIBLE
40 
42 // Internal implementation detail -- do not use these members.
43 struct GZ_MSGS_VISIBLE TableStruct {
44  static const ::google::protobuf::internal::ParseTableField entries[];
45  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
46  static const ::google::protobuf::internal::ParseTable schema[1];
47  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
48  static const ::google::protobuf::internal::SerializationTable serialization_table[];
49  static const ::google::protobuf::uint32 offsets[];
50 };
51 void GZ_MSGS_VISIBLE AddDescriptors();
52 } // namespace protobuf_gz_2fmsgs_2fentity_5ffactory_2eproto
53 namespace gz {
54 namespace msgs {
55 class EntityFactory;
56 class EntityFactoryDefaultTypeInternal;
57 GZ_MSGS_VISIBLE extern EntityFactoryDefaultTypeInternal _EntityFactory_default_instance_;
58 } // namespace msgs
59 } // namespace gz
60 namespace google {
61 namespace protobuf {
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::EntityFactory* Arena::CreateMaybeMessage<::gz::msgs::EntityFactory>(Arena*);
63 } // namespace protobuf
64 } // namespace google
65 namespace gz {
66 namespace msgs {
67 
68 // ===================================================================
69 
70 class GZ_MSGS_VISIBLE EntityFactory : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.EntityFactory) */ {
71  public:
72  EntityFactory();
73  virtual ~EntityFactory();
74 
75  EntityFactory(const EntityFactory& from);
76 
77  inline EntityFactory& operator=(const EntityFactory& from) {
78  CopyFrom(from);
79  return *this;
80  }
81  #if LANG_CXX11
82  EntityFactory(EntityFactory&& from) noexcept
83  : EntityFactory() {
84  *this = ::std::move(from);
85  }
86 
87  inline EntityFactory& operator=(EntityFactory&& from) noexcept {
88  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
89  if (this != &from) InternalSwap(&from);
90  } else {
91  CopyFrom(from);
92  }
93  return *this;
94  }
95  #endif
96  static const ::google::protobuf::Descriptor* descriptor();
97  static const EntityFactory& default_instance();
98 
99  enum FromCase {
100  kSdf = 2,
101  kSdfFilename = 3,
102  kModel = 4,
103  kLight = 5,
104  kCloneName = 6,
105  FROM_NOT_SET = 0,
106  };
107 
108  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
109  static inline const EntityFactory* internal_default_instance() {
110  return reinterpret_cast<const EntityFactory*>(
112  }
113  static constexpr int kIndexInFileMessages =
114  0;
115 
116  void Swap(EntityFactory* other);
117  friend void swap(EntityFactory& a, EntityFactory& b) {
118  a.Swap(&b);
119  }
120 
121  // implements Message ----------------------------------------------
122 
123  inline EntityFactory* New() const final {
124  return CreateMaybeMessage<EntityFactory>(NULL);
125  }
126 
127  EntityFactory* New(::google::protobuf::Arena* arena) const final {
128  return CreateMaybeMessage<EntityFactory>(arena);
129  }
130  void CopyFrom(const ::google::protobuf::Message& from) final;
131  void MergeFrom(const ::google::protobuf::Message& from) final;
132  void CopyFrom(const EntityFactory& from);
133  void MergeFrom(const EntityFactory& from);
134  void Clear() final;
135  bool IsInitialized() const final;
136 
137  size_t ByteSizeLong() const final;
138  bool MergePartialFromCodedStream(
139  ::google::protobuf::io::CodedInputStream* input) final;
140  void SerializeWithCachedSizes(
141  ::google::protobuf::io::CodedOutputStream* output) const final;
142  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
143  bool deterministic, ::google::protobuf::uint8* target) const final;
144  int GetCachedSize() const final { return _cached_size_.Get(); }
145 
146  private:
147  void SharedCtor();
148  void SharedDtor();
149  void SetCachedSize(int size) const final;
150  void InternalSwap(EntityFactory* other);
151  private:
152  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
153  return NULL;
154  }
155  inline void* MaybeArenaPtr() const {
156  return NULL;
157  }
158  public:
159 
160  ::google::protobuf::Metadata GetMetadata() const final;
161 
162  // nested types ----------------------------------------------------
163 
164  // accessors -------------------------------------------------------
165 
166  // string name = 8;
167  void clear_name();
168  static const int kNameFieldNumber = 8;
169  const ::std::string& name() const;
170  void set_name(const ::std::string& value);
171  #if LANG_CXX11
172  void set_name(::std::string&& value);
173  #endif
174  void set_name(const char* value);
175  void set_name(const char* value, size_t size);
176  ::std::string* mutable_name();
177  ::std::string* release_name();
178  void set_allocated_name(::std::string* name);
179 
180  // string relative_to = 10;
181  void clear_relative_to();
182  static const int kRelativeToFieldNumber = 10;
183  const ::std::string& relative_to() const;
184  void set_relative_to(const ::std::string& value);
185  #if LANG_CXX11
186  void set_relative_to(::std::string&& value);
187  #endif
188  void set_relative_to(const char* value);
189  void set_relative_to(const char* value, size_t size);
190  ::std::string* mutable_relative_to();
191  ::std::string* release_relative_to();
192  void set_allocated_relative_to(::std::string* relative_to);
193 
194  // .gz.msgs.Header header = 1;
195  bool has_header() const;
196  void clear_header();
197  static const int kHeaderFieldNumber = 1;
198  private:
199  const ::gz::msgs::Header& _internal_header() const;
200  public:
201  const ::gz::msgs::Header& header() const;
202  ::gz::msgs::Header* release_header();
203  ::gz::msgs::Header* mutable_header();
204  void set_allocated_header(::gz::msgs::Header* header);
205 
206  // .gz.msgs.Pose pose = 7;
207  bool has_pose() const;
208  void clear_pose();
209  static const int kPoseFieldNumber = 7;
210  private:
211  const ::gz::msgs::Pose& _internal_pose() const;
212  public:
213  const ::gz::msgs::Pose& pose() const;
214  ::gz::msgs::Pose* release_pose();
215  ::gz::msgs::Pose* mutable_pose();
216  void set_allocated_pose(::gz::msgs::Pose* pose);
217 
218  // .gz.msgs.SphericalCoordinates spherical_coordinates = 11;
219  bool has_spherical_coordinates() const;
220  void clear_spherical_coordinates();
221  static const int kSphericalCoordinatesFieldNumber = 11;
222  private:
223  const ::gz::msgs::SphericalCoordinates& _internal_spherical_coordinates() const;
224  public:
225  const ::gz::msgs::SphericalCoordinates& spherical_coordinates() const;
226  ::gz::msgs::SphericalCoordinates* release_spherical_coordinates();
227  ::gz::msgs::SphericalCoordinates* mutable_spherical_coordinates();
228  void set_allocated_spherical_coordinates(::gz::msgs::SphericalCoordinates* spherical_coordinates);
229 
230  // bool allow_renaming = 9;
231  void clear_allow_renaming();
232  static const int kAllowRenamingFieldNumber = 9;
233  bool allow_renaming() const;
234  void set_allow_renaming(bool value);
235 
236  // string sdf = 2;
237  private:
238  bool has_sdf() const;
239  public:
240  void clear_sdf();
241  static const int kSdfFieldNumber = 2;
242  const ::std::string& sdf() const;
243  void set_sdf(const ::std::string& value);
244  #if LANG_CXX11
245  void set_sdf(::std::string&& value);
246  #endif
247  void set_sdf(const char* value);
248  void set_sdf(const char* value, size_t size);
249  ::std::string* mutable_sdf();
250  ::std::string* release_sdf();
251  void set_allocated_sdf(::std::string* sdf);
252 
253  // string sdf_filename = 3;
254  private:
255  bool has_sdf_filename() const;
256  public:
257  void clear_sdf_filename();
258  static const int kSdfFilenameFieldNumber = 3;
259  const ::std::string& sdf_filename() const;
260  void set_sdf_filename(const ::std::string& value);
261  #if LANG_CXX11
262  void set_sdf_filename(::std::string&& value);
263  #endif
264  void set_sdf_filename(const char* value);
265  void set_sdf_filename(const char* value, size_t size);
266  ::std::string* mutable_sdf_filename();
267  ::std::string* release_sdf_filename();
268  void set_allocated_sdf_filename(::std::string* sdf_filename);
269 
270  // .gz.msgs.Model model = 4;
271  bool has_model() const;
272  void clear_model();
273  static const int kModelFieldNumber = 4;
274  private:
275  const ::gz::msgs::Model& _internal_model() const;
276  public:
277  const ::gz::msgs::Model& model() const;
278  ::gz::msgs::Model* release_model();
279  ::gz::msgs::Model* mutable_model();
280  void set_allocated_model(::gz::msgs::Model* model);
281 
282  // .gz.msgs.Light light = 5;
283  bool has_light() const;
284  void clear_light();
285  static const int kLightFieldNumber = 5;
286  private:
287  const ::gz::msgs::Light& _internal_light() const;
288  public:
289  const ::gz::msgs::Light& light() const;
290  ::gz::msgs::Light* release_light();
291  ::gz::msgs::Light* mutable_light();
292  void set_allocated_light(::gz::msgs::Light* light);
293 
294  // string clone_name = 6;
295  private:
296  bool has_clone_name() const;
297  public:
298  void clear_clone_name();
299  static const int kCloneNameFieldNumber = 6;
300  const ::std::string& clone_name() const;
301  void set_clone_name(const ::std::string& value);
302  #if LANG_CXX11
303  void set_clone_name(::std::string&& value);
304  #endif
305  void set_clone_name(const char* value);
306  void set_clone_name(const char* value, size_t size);
307  ::std::string* mutable_clone_name();
308  ::std::string* release_clone_name();
309  void set_allocated_clone_name(::std::string* clone_name);
310 
311  void clear_from();
312  FromCase from_case() const;
313  // @@protoc_insertion_point(class_scope:gz.msgs.EntityFactory)
314  private:
315  void set_has_sdf();
316  void set_has_sdf_filename();
317  void set_has_model();
318  void set_has_light();
319  void set_has_clone_name();
320 
321  inline bool has_from() const;
322  inline void clear_has_from();
323 
324  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
325  ::google::protobuf::internal::ArenaStringPtr name_;
326  ::google::protobuf::internal::ArenaStringPtr relative_to_;
327  ::gz::msgs::Header* header_;
328  ::gz::msgs::Pose* pose_;
329  ::gz::msgs::SphericalCoordinates* spherical_coordinates_;
330  bool allow_renaming_;
331  union FromUnion {
332  FromUnion() {}
333  ::google::protobuf::internal::ArenaStringPtr sdf_;
334  ::google::protobuf::internal::ArenaStringPtr sdf_filename_;
335  ::gz::msgs::Model* model_;
336  ::gz::msgs::Light* light_;
337  ::google::protobuf::internal::ArenaStringPtr clone_name_;
338  } from_;
339  mutable ::google::protobuf::internal::CachedSize _cached_size_;
340  ::google::protobuf::uint32 _oneof_case_[1];
341 
342  friend struct ::protobuf_gz_2fmsgs_2fentity_5ffactory_2eproto::TableStruct;
343 };
344 // ===================================================================
345 
346 
347 // ===================================================================
348 
349 #ifdef __GNUC__
350  #pragma GCC diagnostic push
351  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
352 #endif // __GNUC__
353 // EntityFactory
354 
355 // .gz.msgs.Header header = 1;
356 inline bool EntityFactory::has_header() const {
357  return this != internal_default_instance() && header_ != NULL;
358 }
359 inline const ::gz::msgs::Header& EntityFactory::_internal_header() const {
360  return *header_;
361 }
362 inline const ::gz::msgs::Header& EntityFactory::header() const {
363  const ::gz::msgs::Header* p = header_;
364  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.header)
365  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
367 }
368 inline ::gz::msgs::Header* EntityFactory::release_header() {
369  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.header)
370 
371  ::gz::msgs::Header* temp = header_;
372  header_ = NULL;
373  return temp;
374 }
375 inline ::gz::msgs::Header* EntityFactory::mutable_header() {
376 
377  if (header_ == NULL) {
378  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
379  header_ = p;
380  }
381  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.header)
382  return header_;
383 }
385  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
386  if (message_arena == NULL) {
387  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
388  }
389  if (header) {
390  ::google::protobuf::Arena* submessage_arena = NULL;
391  if (message_arena != submessage_arena) {
392  header = ::google::protobuf::internal::GetOwnedMessage(
393  message_arena, header, submessage_arena);
394  }
395 
396  } else {
397 
398  }
399  header_ = header;
400  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityFactory.header)
401 }
402 
403 // string sdf = 2;
404 inline bool EntityFactory::has_sdf() const {
405  return from_case() == kSdf;
406 }
407 inline void EntityFactory::set_has_sdf() {
408  _oneof_case_[0] = kSdf;
409 }
411  if (has_sdf()) {
412  from_.sdf_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
413  clear_has_from();
414  }
415 }
416 inline const ::std::string& EntityFactory::sdf() const {
417  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.sdf)
418  if (has_sdf()) {
419  return from_.sdf_.GetNoArena();
420  }
421  return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
422 }
423 inline void EntityFactory::set_sdf(const ::std::string& value) {
424  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.sdf)
425  if (!has_sdf()) {
426  clear_from();
427  set_has_sdf();
428  from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
429  }
430  from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
431  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.sdf)
432 }
433 #if LANG_CXX11
434 inline void EntityFactory::set_sdf(::std::string&& value) {
435  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.sdf)
436  if (!has_sdf()) {
437  clear_from();
438  set_has_sdf();
439  from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
440  }
441  from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
442  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.EntityFactory.sdf)
443 }
444 #endif
445 inline void EntityFactory::set_sdf(const char* value) {
446  GOOGLE_DCHECK(value != NULL);
447  if (!has_sdf()) {
448  clear_from();
449  set_has_sdf();
450  from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
451  }
452  from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
453  ::std::string(value));
454  // @@protoc_insertion_point(field_set_char:gz.msgs.EntityFactory.sdf)
455 }
456 inline void EntityFactory::set_sdf(const char* value, size_t size) {
457  if (!has_sdf()) {
458  clear_from();
459  set_has_sdf();
460  from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
461  }
462  from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
463  reinterpret_cast<const char*>(value), size));
464  // @@protoc_insertion_point(field_set_pointer:gz.msgs.EntityFactory.sdf)
465 }
466 inline ::std::string* EntityFactory::mutable_sdf() {
467  if (!has_sdf()) {
468  clear_from();
469  set_has_sdf();
470  from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
471  }
472  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.sdf)
473  return from_.sdf_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
474 }
475 inline ::std::string* EntityFactory::release_sdf() {
476  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.sdf)
477  if (has_sdf()) {
478  clear_has_from();
479  return from_.sdf_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
480  } else {
481  return NULL;
482  }
483 }
485  if (!has_sdf()) {
486  from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
487  }
488  clear_from();
489  if (sdf != NULL) {
490  set_has_sdf();
491  from_.sdf_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sdf);
492  }
493  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityFactory.sdf)
494 }
495 
496 // string sdf_filename = 3;
497 inline bool EntityFactory::has_sdf_filename() const {
498  return from_case() == kSdfFilename;
499 }
500 inline void EntityFactory::set_has_sdf_filename() {
501  _oneof_case_[0] = kSdfFilename;
502 }
504  if (has_sdf_filename()) {
505  from_.sdf_filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
506  clear_has_from();
507  }
508 }
509 inline const ::std::string& EntityFactory::sdf_filename() const {
510  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.sdf_filename)
511  if (has_sdf_filename()) {
512  return from_.sdf_filename_.GetNoArena();
513  }
514  return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
515 }
516 inline void EntityFactory::set_sdf_filename(const ::std::string& value) {
517  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.sdf_filename)
518  if (!has_sdf_filename()) {
519  clear_from();
520  set_has_sdf_filename();
521  from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
522  }
523  from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
524  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.sdf_filename)
525 }
526 #if LANG_CXX11
527 inline void EntityFactory::set_sdf_filename(::std::string&& value) {
528  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.sdf_filename)
529  if (!has_sdf_filename()) {
530  clear_from();
531  set_has_sdf_filename();
532  from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
533  }
534  from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
535  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.EntityFactory.sdf_filename)
536 }
537 #endif
538 inline void EntityFactory::set_sdf_filename(const char* value) {
539  GOOGLE_DCHECK(value != NULL);
540  if (!has_sdf_filename()) {
541  clear_from();
542  set_has_sdf_filename();
543  from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
544  }
545  from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
546  ::std::string(value));
547  // @@protoc_insertion_point(field_set_char:gz.msgs.EntityFactory.sdf_filename)
548 }
549 inline void EntityFactory::set_sdf_filename(const char* value, size_t size) {
550  if (!has_sdf_filename()) {
551  clear_from();
552  set_has_sdf_filename();
553  from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
554  }
555  from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
556  reinterpret_cast<const char*>(value), size));
557  // @@protoc_insertion_point(field_set_pointer:gz.msgs.EntityFactory.sdf_filename)
558 }
559 inline ::std::string* EntityFactory::mutable_sdf_filename() {
560  if (!has_sdf_filename()) {
561  clear_from();
562  set_has_sdf_filename();
563  from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
564  }
565  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.sdf_filename)
566  return from_.sdf_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
567 }
568 inline ::std::string* EntityFactory::release_sdf_filename() {
569  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.sdf_filename)
570  if (has_sdf_filename()) {
571  clear_has_from();
572  return from_.sdf_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
573  } else {
574  return NULL;
575  }
576 }
578  if (!has_sdf_filename()) {
579  from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
580  }
581  clear_from();
582  if (sdf_filename != NULL) {
583  set_has_sdf_filename();
584  from_.sdf_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sdf_filename);
585  }
586  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityFactory.sdf_filename)
587 }
588 
589 // .gz.msgs.Model model = 4;
590 inline bool EntityFactory::has_model() const {
591  return from_case() == kModel;
592 }
593 inline void EntityFactory::set_has_model() {
594  _oneof_case_[0] = kModel;
595 }
596 inline const ::gz::msgs::Model& EntityFactory::_internal_model() const {
597  return *from_.model_;
598 }
599 inline ::gz::msgs::Model* EntityFactory::release_model() {
600  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.model)
601  if (has_model()) {
602  clear_has_from();
603  ::gz::msgs::Model* temp = from_.model_;
604  from_.model_ = NULL;
605  return temp;
606  } else {
607  return NULL;
608  }
609 }
610 inline const ::gz::msgs::Model& EntityFactory::model() const {
611  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.model)
612  return has_model()
613  ? *from_.model_
614  : *reinterpret_cast< ::gz::msgs::Model*>(&::gz::msgs::_Model_default_instance_);
615 }
616 inline ::gz::msgs::Model* EntityFactory::mutable_model() {
617  if (!has_model()) {
618  clear_from();
619  set_has_model();
620  from_.model_ = CreateMaybeMessage< ::gz::msgs::Model >(
621  GetArenaNoVirtual());
622  }
623  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.model)
624  return from_.model_;
625 }
626 
627 // .gz.msgs.Light light = 5;
628 inline bool EntityFactory::has_light() const {
629  return from_case() == kLight;
630 }
631 inline void EntityFactory::set_has_light() {
632  _oneof_case_[0] = kLight;
633 }
634 inline const ::gz::msgs::Light& EntityFactory::_internal_light() const {
635  return *from_.light_;
636 }
637 inline ::gz::msgs::Light* EntityFactory::release_light() {
638  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.light)
639  if (has_light()) {
640  clear_has_from();
641  ::gz::msgs::Light* temp = from_.light_;
642  from_.light_ = NULL;
643  return temp;
644  } else {
645  return NULL;
646  }
647 }
648 inline const ::gz::msgs::Light& EntityFactory::light() const {
649  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.light)
650  return has_light()
651  ? *from_.light_
652  : *reinterpret_cast< ::gz::msgs::Light*>(&::gz::msgs::_Light_default_instance_);
653 }
654 inline ::gz::msgs::Light* EntityFactory::mutable_light() {
655  if (!has_light()) {
656  clear_from();
657  set_has_light();
658  from_.light_ = CreateMaybeMessage< ::gz::msgs::Light >(
659  GetArenaNoVirtual());
660  }
661  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.light)
662  return from_.light_;
663 }
664 
665 // string clone_name = 6;
666 inline bool EntityFactory::has_clone_name() const {
667  return from_case() == kCloneName;
668 }
669 inline void EntityFactory::set_has_clone_name() {
670  _oneof_case_[0] = kCloneName;
671 }
673  if (has_clone_name()) {
674  from_.clone_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
675  clear_has_from();
676  }
677 }
678 inline const ::std::string& EntityFactory::clone_name() const {
679  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.clone_name)
680  if (has_clone_name()) {
681  return from_.clone_name_.GetNoArena();
682  }
683  return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
684 }
685 inline void EntityFactory::set_clone_name(const ::std::string& value) {
686  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.clone_name)
687  if (!has_clone_name()) {
688  clear_from();
689  set_has_clone_name();
690  from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
691  }
692  from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
693  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.clone_name)
694 }
695 #if LANG_CXX11
696 inline void EntityFactory::set_clone_name(::std::string&& value) {
697  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.clone_name)
698  if (!has_clone_name()) {
699  clear_from();
700  set_has_clone_name();
701  from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
702  }
703  from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
704  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.EntityFactory.clone_name)
705 }
706 #endif
707 inline void EntityFactory::set_clone_name(const char* value) {
708  GOOGLE_DCHECK(value != NULL);
709  if (!has_clone_name()) {
710  clear_from();
711  set_has_clone_name();
712  from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
713  }
714  from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
715  ::std::string(value));
716  // @@protoc_insertion_point(field_set_char:gz.msgs.EntityFactory.clone_name)
717 }
718 inline void EntityFactory::set_clone_name(const char* value, size_t size) {
719  if (!has_clone_name()) {
720  clear_from();
721  set_has_clone_name();
722  from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
723  }
724  from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
725  reinterpret_cast<const char*>(value), size));
726  // @@protoc_insertion_point(field_set_pointer:gz.msgs.EntityFactory.clone_name)
727 }
728 inline ::std::string* EntityFactory::mutable_clone_name() {
729  if (!has_clone_name()) {
730  clear_from();
731  set_has_clone_name();
732  from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
733  }
734  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.clone_name)
735  return from_.clone_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
736 }
737 inline ::std::string* EntityFactory::release_clone_name() {
738  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.clone_name)
739  if (has_clone_name()) {
740  clear_has_from();
741  return from_.clone_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
742  } else {
743  return NULL;
744  }
745 }
747  if (!has_clone_name()) {
748  from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
749  }
750  clear_from();
751  if (clone_name != NULL) {
752  set_has_clone_name();
753  from_.clone_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), clone_name);
754  }
755  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityFactory.clone_name)
756 }
757 
758 // .gz.msgs.Pose pose = 7;
759 inline bool EntityFactory::has_pose() const {
760  return this != internal_default_instance() && pose_ != NULL;
761 }
762 inline const ::gz::msgs::Pose& EntityFactory::_internal_pose() const {
763  return *pose_;
764 }
765 inline const ::gz::msgs::Pose& EntityFactory::pose() const {
766  const ::gz::msgs::Pose* p = pose_;
767  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.pose)
768  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Pose*>(
770 }
771 inline ::gz::msgs::Pose* EntityFactory::release_pose() {
772  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.pose)
773 
774  ::gz::msgs::Pose* temp = pose_;
775  pose_ = NULL;
776  return temp;
777 }
778 inline ::gz::msgs::Pose* EntityFactory::mutable_pose() {
779 
780  if (pose_ == NULL) {
781  auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
782  pose_ = p;
783  }
784  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.pose)
785  return pose_;
786 }
788  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
789  if (message_arena == NULL) {
790  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
791  }
792  if (pose) {
793  ::google::protobuf::Arena* submessage_arena = NULL;
794  if (message_arena != submessage_arena) {
795  pose = ::google::protobuf::internal::GetOwnedMessage(
796  message_arena, pose, submessage_arena);
797  }
798 
799  } else {
800 
801  }
802  pose_ = pose;
803  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityFactory.pose)
804 }
805 
806 // string name = 8;
808  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
809 }
810 inline const ::std::string& EntityFactory::name() const {
811  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.name)
812  return name_.GetNoArena();
813 }
814 inline void EntityFactory::set_name(const ::std::string& value) {
815 
816  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
817  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.name)
818 }
819 #if LANG_CXX11
820 inline void EntityFactory::set_name(::std::string&& value) {
821 
822  name_.SetNoArena(
823  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
824  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.EntityFactory.name)
825 }
826 #endif
827 inline void EntityFactory::set_name(const char* value) {
828  GOOGLE_DCHECK(value != NULL);
829 
830  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
831  // @@protoc_insertion_point(field_set_char:gz.msgs.EntityFactory.name)
832 }
833 inline void EntityFactory::set_name(const char* value, size_t size) {
834 
835  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
836  ::std::string(reinterpret_cast<const char*>(value), size));
837  // @@protoc_insertion_point(field_set_pointer:gz.msgs.EntityFactory.name)
838 }
839 inline ::std::string* EntityFactory::mutable_name() {
840 
841  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.name)
842  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
843 }
844 inline ::std::string* EntityFactory::release_name() {
845  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.name)
846 
847  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
848 }
850  if (name != NULL) {
851 
852  } else {
853 
854  }
855  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
856  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityFactory.name)
857 }
858 
859 // bool allow_renaming = 9;
861  allow_renaming_ = false;
862 }
863 inline bool EntityFactory::allow_renaming() const {
864  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.allow_renaming)
865  return allow_renaming_;
866 }
867 inline void EntityFactory::set_allow_renaming(bool value) {
868 
869  allow_renaming_ = value;
870  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.allow_renaming)
871 }
872 
873 // string relative_to = 10;
875  relative_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
876 }
877 inline const ::std::string& EntityFactory::relative_to() const {
878  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.relative_to)
879  return relative_to_.GetNoArena();
880 }
881 inline void EntityFactory::set_relative_to(const ::std::string& value) {
882 
883  relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
884  // @@protoc_insertion_point(field_set:gz.msgs.EntityFactory.relative_to)
885 }
886 #if LANG_CXX11
887 inline void EntityFactory::set_relative_to(::std::string&& value) {
888 
889  relative_to_.SetNoArena(
890  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
891  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.EntityFactory.relative_to)
892 }
893 #endif
894 inline void EntityFactory::set_relative_to(const char* value) {
895  GOOGLE_DCHECK(value != NULL);
896 
897  relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
898  // @@protoc_insertion_point(field_set_char:gz.msgs.EntityFactory.relative_to)
899 }
900 inline void EntityFactory::set_relative_to(const char* value, size_t size) {
901 
902  relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
903  ::std::string(reinterpret_cast<const char*>(value), size));
904  // @@protoc_insertion_point(field_set_pointer:gz.msgs.EntityFactory.relative_to)
905 }
906 inline ::std::string* EntityFactory::mutable_relative_to() {
907 
908  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.relative_to)
909  return relative_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
910 }
911 inline ::std::string* EntityFactory::release_relative_to() {
912  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.relative_to)
913 
914  return relative_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
915 }
917  if (relative_to != NULL) {
918 
919  } else {
920 
921  }
922  relative_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), relative_to);
923  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityFactory.relative_to)
924 }
925 
926 // .gz.msgs.SphericalCoordinates spherical_coordinates = 11;
928  return this != internal_default_instance() && spherical_coordinates_ != NULL;
929 }
930 inline const ::gz::msgs::SphericalCoordinates& EntityFactory::_internal_spherical_coordinates() const {
931  return *spherical_coordinates_;
932 }
933 inline const ::gz::msgs::SphericalCoordinates& EntityFactory::spherical_coordinates() const {
934  const ::gz::msgs::SphericalCoordinates* p = spherical_coordinates_;
935  // @@protoc_insertion_point(field_get:gz.msgs.EntityFactory.spherical_coordinates)
936  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::SphericalCoordinates*>(
938 }
939 inline ::gz::msgs::SphericalCoordinates* EntityFactory::release_spherical_coordinates() {
940  // @@protoc_insertion_point(field_release:gz.msgs.EntityFactory.spherical_coordinates)
941 
942  ::gz::msgs::SphericalCoordinates* temp = spherical_coordinates_;
943  spherical_coordinates_ = NULL;
944  return temp;
945 }
946 inline ::gz::msgs::SphericalCoordinates* EntityFactory::mutable_spherical_coordinates() {
947 
948  if (spherical_coordinates_ == NULL) {
949  auto* p = CreateMaybeMessage<::gz::msgs::SphericalCoordinates>(GetArenaNoVirtual());
950  spherical_coordinates_ = p;
951  }
952  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityFactory.spherical_coordinates)
953  return spherical_coordinates_;
954 }
956  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
957  if (message_arena == NULL) {
958  delete reinterpret_cast< ::google::protobuf::MessageLite*>(spherical_coordinates_);
959  }
960  if (spherical_coordinates) {
961  ::google::protobuf::Arena* submessage_arena = NULL;
962  if (message_arena != submessage_arena) {
963  spherical_coordinates = ::google::protobuf::internal::GetOwnedMessage(
964  message_arena, spherical_coordinates, submessage_arena);
965  }
966 
967  } else {
968 
969  }
970  spherical_coordinates_ = spherical_coordinates;
971  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityFactory.spherical_coordinates)
972 }
973 
974 inline bool EntityFactory::has_from() const {
975  return from_case() != FROM_NOT_SET;
976 }
977 inline void EntityFactory::clear_has_from() {
978  _oneof_case_[0] = FROM_NOT_SET;
979 }
981  return EntityFactory::FromCase(_oneof_case_[0]);
982 }
983 #ifdef __GNUC__
984  #pragma GCC diagnostic pop
985 #endif // __GNUC__
986 
987 // @@protoc_insertion_point(namespace_scope)
988 
989 } // namespace msgs
990 } // namespace gz
991 
992 // @@protoc_insertion_point(global_scope)
993 
994 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5ffactory_2eproto