Ignition Msgs

API Reference

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