Ignition Msgs

API Reference

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