Gazebo Msgs

API Reference

8.7.0
build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/user_cmd.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fuser_5fcmd_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fuser_5fcmd_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "ignition/msgs/light.pb.h"
35 #include "ignition/msgs/model.pb.h"
39 #ifndef _MSC_VER
40 #pragma GCC system_header
41 #else
42 #pragma warning(push)
43 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
44 #endif
45 #ifdef __linux__
46 #include <sys/sysmacros.h>
47 #endif
48 #include <memory>
49 #include <ignition/msgs/Export.hh>
50 // @@protoc_insertion_point(includes)
51 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fuser_5fcmd_2eproto IGNITION_MSGS_VISIBLE
52 
54 // Internal implementation detail -- do not use these members.
55 struct IGNITION_MSGS_VISIBLE TableStruct {
56  static const ::google::protobuf::internal::ParseTableField entries[];
57  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
58  static const ::google::protobuf::internal::ParseTable schema[1];
59  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
60  static const ::google::protobuf::internal::SerializationTable serialization_table[];
61  static const ::google::protobuf::uint32 offsets[];
62 };
63 void IGNITION_MSGS_VISIBLE AddDescriptors();
64 } // namespace protobuf_ignition_2fmsgs_2fuser_5fcmd_2eproto
65 namespace ignition {
66 namespace msgs {
67 class UserCmd;
68 class UserCmdDefaultTypeInternal;
69 IGNITION_MSGS_VISIBLE extern UserCmdDefaultTypeInternal _UserCmd_default_instance_;
70 } // namespace msgs
71 } // namespace ignition
72 namespace google {
73 namespace protobuf {
74 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::UserCmd* Arena::CreateMaybeMessage<::ignition::msgs::UserCmd>(Arena*);
75 } // namespace protobuf
76 } // namespace google
77 namespace ignition {
78 namespace msgs {
79 
87 };
88 IGNITION_MSGS_VISIBLE bool UserCmd_Type_IsValid(int value);
92 
93 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* UserCmd_Type_descriptor();
94 inline const ::std::string& UserCmd_Type_Name(UserCmd_Type value) {
95  return ::google::protobuf::internal::NameOfEnum(
96  UserCmd_Type_descriptor(), value);
97 }
98 inline bool UserCmd_Type_Parse(
99  const ::std::string& name, UserCmd_Type* value) {
100  return ::google::protobuf::internal::ParseNamedEnum<UserCmd_Type>(
101  UserCmd_Type_descriptor(), name, value);
102 }
103 // ===================================================================
104 
105 class IGNITION_MSGS_VISIBLE UserCmd : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.UserCmd) */ {
106  public:
107  UserCmd();
108  virtual ~UserCmd();
109 
110  UserCmd(const UserCmd& from);
111 
112  inline UserCmd& operator=(const UserCmd& from) {
113  CopyFrom(from);
114  return *this;
115  }
116  #if LANG_CXX11
117  UserCmd(UserCmd&& from) noexcept
118  : UserCmd() {
119  *this = ::std::move(from);
120  }
121 
122  inline UserCmd& operator=(UserCmd&& from) noexcept {
123  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
124  if (this != &from) InternalSwap(&from);
125  } else {
126  CopyFrom(from);
127  }
128  return *this;
129  }
130  #endif
131  static const ::google::protobuf::Descriptor* descriptor();
132  static const UserCmd& default_instance();
133 
134  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
135  static inline const UserCmd* internal_default_instance() {
136  return reinterpret_cast<const UserCmd*>(
138  }
139  static constexpr int kIndexInFileMessages =
140  0;
141 
142  void Swap(UserCmd* other);
143  friend void swap(UserCmd& a, UserCmd& b) {
144  a.Swap(&b);
145  }
146 
147  // implements Message ----------------------------------------------
148 
149  inline UserCmd* New() const final {
150  return CreateMaybeMessage<UserCmd>(NULL);
151  }
152 
153  UserCmd* New(::google::protobuf::Arena* arena) const final {
154  return CreateMaybeMessage<UserCmd>(arena);
155  }
156  void CopyFrom(const ::google::protobuf::Message& from) final;
157  void MergeFrom(const ::google::protobuf::Message& from) final;
158  void CopyFrom(const UserCmd& from);
159  void MergeFrom(const UserCmd& from);
160  void Clear() final;
161  bool IsInitialized() const final;
162 
163  size_t ByteSizeLong() const final;
164  bool MergePartialFromCodedStream(
165  ::google::protobuf::io::CodedInputStream* input) final;
166  void SerializeWithCachedSizes(
167  ::google::protobuf::io::CodedOutputStream* output) const final;
168  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
169  bool deterministic, ::google::protobuf::uint8* target) const final;
170  int GetCachedSize() const final { return _cached_size_.Get(); }
171 
172  private:
173  void SharedCtor();
174  void SharedDtor();
175  void SetCachedSize(int size) const final;
176  void InternalSwap(UserCmd* other);
177  private:
178  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
179  return NULL;
180  }
181  inline void* MaybeArenaPtr() const {
182  return NULL;
183  }
184  public:
185 
186  ::google::protobuf::Metadata GetMetadata() const final;
187 
188  // nested types ----------------------------------------------------
189 
191  static const Type MOVING =
193  static const Type WORLD_CONTROL =
195  static const Type WRENCH =
197  static const Type SCALING =
199  static inline bool Type_IsValid(int value) {
200  return UserCmd_Type_IsValid(value);
201  }
202  static const Type Type_MIN =
204  static const Type Type_MAX =
206  static const int Type_ARRAYSIZE =
208  static inline const ::google::protobuf::EnumDescriptor*
210  return UserCmd_Type_descriptor();
211  }
212  static inline const ::std::string& Type_Name(Type value) {
213  return UserCmd_Type_Name(value);
214  }
215  static inline bool Type_Parse(const ::std::string& name,
216  Type* value) {
217  return UserCmd_Type_Parse(name, value);
218  }
219 
220  // accessors -------------------------------------------------------
221 
222  // repeated .ignition.msgs.Model model = 5;
223  int model_size() const;
224  void clear_model();
225  static const int kModelFieldNumber = 5;
226  ::ignition::msgs::Model* mutable_model(int index);
227  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
228  mutable_model();
229  const ::ignition::msgs::Model& model(int index) const;
230  ::ignition::msgs::Model* add_model();
231  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
232  model() const;
233 
234  // repeated .ignition.msgs.Light light = 6;
235  int light_size() const;
236  void clear_light();
237  static const int kLightFieldNumber = 6;
238  ::ignition::msgs::Light* mutable_light(int index);
239  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
240  mutable_light();
241  const ::ignition::msgs::Light& light(int index) const;
242  ::ignition::msgs::Light* add_light();
243  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
244  light() const;
245 
246  // string description = 3;
247  void clear_description();
248  static const int kDescriptionFieldNumber = 3;
249  const ::std::string& description() const;
250  void set_description(const ::std::string& value);
251  #if LANG_CXX11
252  void set_description(::std::string&& value);
253  #endif
254  void set_description(const char* value);
255  void set_description(const char* value, size_t size);
256  ::std::string* mutable_description();
257  ::std::string* release_description();
258  void set_allocated_description(::std::string* description);
259 
260  // string entity_name = 7;
261  void clear_entity_name();
262  static const int kEntityNameFieldNumber = 7;
263  const ::std::string& entity_name() const;
264  void set_entity_name(const ::std::string& value);
265  #if LANG_CXX11
266  void set_entity_name(::std::string&& value);
267  #endif
268  void set_entity_name(const char* value);
269  void set_entity_name(const char* value, size_t size);
270  ::std::string* mutable_entity_name();
271  ::std::string* release_entity_name();
272  void set_allocated_entity_name(::std::string* entity_name);
273 
274  // .ignition.msgs.Header header = 1;
275  bool has_header() const;
276  void clear_header();
277  static const int kHeaderFieldNumber = 1;
278  private:
279  const ::ignition::msgs::Header& _internal_header() const;
280  public:
281  const ::ignition::msgs::Header& header() const;
282  ::ignition::msgs::Header* release_header();
283  ::ignition::msgs::Header* mutable_header();
284  void set_allocated_header(::ignition::msgs::Header* header);
285 
286  // .ignition.msgs.WorldControl world_control = 8;
287  bool has_world_control() const;
288  void clear_world_control();
289  static const int kWorldControlFieldNumber = 8;
290  private:
291  const ::ignition::msgs::WorldControl& _internal_world_control() const;
292  public:
293  const ::ignition::msgs::WorldControl& world_control() const;
294  ::ignition::msgs::WorldControl* release_world_control();
295  ::ignition::msgs::WorldControl* mutable_world_control();
296  void set_allocated_world_control(::ignition::msgs::WorldControl* world_control);
297 
298  // .ignition.msgs.Wrench wrench = 9;
299  bool has_wrench() const;
300  void clear_wrench();
301  static const int kWrenchFieldNumber = 9;
302  private:
303  const ::ignition::msgs::Wrench& _internal_wrench() const;
304  public:
305  const ::ignition::msgs::Wrench& wrench() const;
306  ::ignition::msgs::Wrench* release_wrench();
307  ::ignition::msgs::Wrench* mutable_wrench();
308  void set_allocated_wrench(::ignition::msgs::Wrench* wrench);
309 
310  // uint32 id = 2;
311  void clear_id();
312  static const int kIdFieldNumber = 2;
313  ::google::protobuf::uint32 id() const;
314  void set_id(::google::protobuf::uint32 value);
315 
316  // .ignition.msgs.UserCmd.Type type = 4;
317  void clear_type();
318  static const int kTypeFieldNumber = 4;
319  ::ignition::msgs::UserCmd_Type type() const;
320  void set_type(::ignition::msgs::UserCmd_Type value);
321 
322  // @@protoc_insertion_point(class_scope:ignition.msgs.UserCmd)
323  private:
324 
325  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
326  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > model_;
327  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
328  ::google::protobuf::internal::ArenaStringPtr description_;
329  ::google::protobuf::internal::ArenaStringPtr entity_name_;
330  ::ignition::msgs::Header* header_;
331  ::ignition::msgs::WorldControl* world_control_;
332  ::ignition::msgs::Wrench* wrench_;
333  ::google::protobuf::uint32 id_;
334  int type_;
335  mutable ::google::protobuf::internal::CachedSize _cached_size_;
336  friend struct ::protobuf_ignition_2fmsgs_2fuser_5fcmd_2eproto::TableStruct;
337 };
338 // ===================================================================
339 
340 
341 // ===================================================================
342 
343 #ifdef __GNUC__
344  #pragma GCC diagnostic push
345  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
346 #endif // __GNUC__
347 // UserCmd
348 
349 // .ignition.msgs.Header header = 1;
350 inline bool UserCmd::has_header() const {
351  return this != internal_default_instance() && header_ != NULL;
352 }
353 inline const ::ignition::msgs::Header& UserCmd::_internal_header() const {
354  return *header_;
355 }
356 inline const ::ignition::msgs::Header& UserCmd::header() const {
357  const ::ignition::msgs::Header* p = header_;
358  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.header)
359  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
361 }
362 inline ::ignition::msgs::Header* UserCmd::release_header() {
363  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.header)
364 
365  ::ignition::msgs::Header* temp = header_;
366  header_ = NULL;
367  return temp;
368 }
369 inline ::ignition::msgs::Header* UserCmd::mutable_header() {
370 
371  if (header_ == NULL) {
372  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
373  header_ = p;
374  }
375  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.header)
376  return header_;
377 }
379  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
380  if (message_arena == NULL) {
381  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
382  }
383  if (header) {
384  ::google::protobuf::Arena* submessage_arena = NULL;
385  if (message_arena != submessage_arena) {
386  header = ::google::protobuf::internal::GetOwnedMessage(
387  message_arena, header, submessage_arena);
388  }
389 
390  } else {
391 
392  }
393  header_ = header;
394  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.header)
395 }
396 
397 // uint32 id = 2;
398 inline void UserCmd::clear_id() {
399  id_ = 0u;
400 }
401 inline ::google::protobuf::uint32 UserCmd::id() const {
402  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.id)
403  return id_;
404 }
405 inline void UserCmd::set_id(::google::protobuf::uint32 value) {
406 
407  id_ = value;
408  // @@protoc_insertion_point(field_set:ignition.msgs.UserCmd.id)
409 }
410 
411 // string description = 3;
413  description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
414 }
415 inline const ::std::string& UserCmd::description() const {
416  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.description)
417  return description_.GetNoArena();
418 }
419 inline void UserCmd::set_description(const ::std::string& value) {
420 
421  description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
422  // @@protoc_insertion_point(field_set:ignition.msgs.UserCmd.description)
423 }
424 #if LANG_CXX11
425 inline void UserCmd::set_description(::std::string&& value) {
426 
427  description_.SetNoArena(
428  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
429  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.UserCmd.description)
430 }
431 #endif
432 inline void UserCmd::set_description(const char* value) {
433  GOOGLE_DCHECK(value != NULL);
434 
435  description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
436  // @@protoc_insertion_point(field_set_char:ignition.msgs.UserCmd.description)
437 }
438 inline void UserCmd::set_description(const char* value, size_t size) {
439 
440  description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
441  ::std::string(reinterpret_cast<const char*>(value), size));
442  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.UserCmd.description)
443 }
444 inline ::std::string* UserCmd::mutable_description() {
445 
446  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.description)
447  return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
448 }
449 inline ::std::string* UserCmd::release_description() {
450  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.description)
451 
452  return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
453 }
454 inline void UserCmd::set_allocated_description(::std::string* description) {
455  if (description != NULL) {
456 
457  } else {
458 
459  }
460  description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description);
461  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.description)
462 }
463 
464 // .ignition.msgs.UserCmd.Type type = 4;
465 inline void UserCmd::clear_type() {
466  type_ = 0;
467 }
469  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.type)
470  return static_cast< ::ignition::msgs::UserCmd_Type >(type_);
471 }
473 
474  type_ = value;
475  // @@protoc_insertion_point(field_set:ignition.msgs.UserCmd.type)
476 }
477 
478 // repeated .ignition.msgs.Model model = 5;
479 inline int UserCmd::model_size() const {
480  return model_.size();
481 }
482 inline ::ignition::msgs::Model* UserCmd::mutable_model(int index) {
483  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.model)
484  return model_.Mutable(index);
485 }
486 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
488  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.UserCmd.model)
489  return &model_;
490 }
491 inline const ::ignition::msgs::Model& UserCmd::model(int index) const {
492  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.model)
493  return model_.Get(index);
494 }
495 inline ::ignition::msgs::Model* UserCmd::add_model() {
496  // @@protoc_insertion_point(field_add:ignition.msgs.UserCmd.model)
497  return model_.Add();
498 }
499 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
500 UserCmd::model() const {
501  // @@protoc_insertion_point(field_list:ignition.msgs.UserCmd.model)
502  return model_;
503 }
504 
505 // repeated .ignition.msgs.Light light = 6;
506 inline int UserCmd::light_size() const {
507  return light_.size();
508 }
509 inline ::ignition::msgs::Light* UserCmd::mutable_light(int index) {
510  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.light)
511  return light_.Mutable(index);
512 }
513 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
515  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.UserCmd.light)
516  return &light_;
517 }
518 inline const ::ignition::msgs::Light& UserCmd::light(int index) const {
519  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.light)
520  return light_.Get(index);
521 }
522 inline ::ignition::msgs::Light* UserCmd::add_light() {
523  // @@protoc_insertion_point(field_add:ignition.msgs.UserCmd.light)
524  return light_.Add();
525 }
526 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
527 UserCmd::light() const {
528  // @@protoc_insertion_point(field_list:ignition.msgs.UserCmd.light)
529  return light_;
530 }
531 
532 // string entity_name = 7;
534  entity_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
535 }
536 inline const ::std::string& UserCmd::entity_name() const {
537  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.entity_name)
538  return entity_name_.GetNoArena();
539 }
540 inline void UserCmd::set_entity_name(const ::std::string& value) {
541 
542  entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
543  // @@protoc_insertion_point(field_set:ignition.msgs.UserCmd.entity_name)
544 }
545 #if LANG_CXX11
546 inline void UserCmd::set_entity_name(::std::string&& value) {
547 
548  entity_name_.SetNoArena(
549  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
550  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.UserCmd.entity_name)
551 }
552 #endif
553 inline void UserCmd::set_entity_name(const char* value) {
554  GOOGLE_DCHECK(value != NULL);
555 
556  entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
557  // @@protoc_insertion_point(field_set_char:ignition.msgs.UserCmd.entity_name)
558 }
559 inline void UserCmd::set_entity_name(const char* value, size_t size) {
560 
561  entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
562  ::std::string(reinterpret_cast<const char*>(value), size));
563  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.UserCmd.entity_name)
564 }
565 inline ::std::string* UserCmd::mutable_entity_name() {
566 
567  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.entity_name)
568  return entity_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
569 }
570 inline ::std::string* UserCmd::release_entity_name() {
571  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.entity_name)
572 
573  return entity_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
574 }
575 inline void UserCmd::set_allocated_entity_name(::std::string* entity_name) {
576  if (entity_name != NULL) {
577 
578  } else {
579 
580  }
581  entity_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entity_name);
582  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.entity_name)
583 }
584 
585 // .ignition.msgs.WorldControl world_control = 8;
586 inline bool UserCmd::has_world_control() const {
587  return this != internal_default_instance() && world_control_ != NULL;
588 }
589 inline const ::ignition::msgs::WorldControl& UserCmd::_internal_world_control() const {
590  return *world_control_;
591 }
592 inline const ::ignition::msgs::WorldControl& UserCmd::world_control() const {
593  const ::ignition::msgs::WorldControl* p = world_control_;
594  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.world_control)
595  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::WorldControl*>(
597 }
598 inline ::ignition::msgs::WorldControl* UserCmd::release_world_control() {
599  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.world_control)
600 
601  ::ignition::msgs::WorldControl* temp = world_control_;
602  world_control_ = NULL;
603  return temp;
604 }
605 inline ::ignition::msgs::WorldControl* UserCmd::mutable_world_control() {
606 
607  if (world_control_ == NULL) {
608  auto* p = CreateMaybeMessage<::ignition::msgs::WorldControl>(GetArenaNoVirtual());
609  world_control_ = p;
610  }
611  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.world_control)
612  return world_control_;
613 }
615  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
616  if (message_arena == NULL) {
617  delete reinterpret_cast< ::google::protobuf::MessageLite*>(world_control_);
618  }
619  if (world_control) {
620  ::google::protobuf::Arena* submessage_arena = NULL;
621  if (message_arena != submessage_arena) {
622  world_control = ::google::protobuf::internal::GetOwnedMessage(
623  message_arena, world_control, submessage_arena);
624  }
625 
626  } else {
627 
628  }
629  world_control_ = world_control;
630  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.world_control)
631 }
632 
633 // .ignition.msgs.Wrench wrench = 9;
634 inline bool UserCmd::has_wrench() const {
635  return this != internal_default_instance() && wrench_ != NULL;
636 }
637 inline const ::ignition::msgs::Wrench& UserCmd::_internal_wrench() const {
638  return *wrench_;
639 }
640 inline const ::ignition::msgs::Wrench& UserCmd::wrench() const {
641  const ::ignition::msgs::Wrench* p = wrench_;
642  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.wrench)
643  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Wrench*>(
645 }
646 inline ::ignition::msgs::Wrench* UserCmd::release_wrench() {
647  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.wrench)
648 
649  ::ignition::msgs::Wrench* temp = wrench_;
650  wrench_ = NULL;
651  return temp;
652 }
653 inline ::ignition::msgs::Wrench* UserCmd::mutable_wrench() {
654 
655  if (wrench_ == NULL) {
656  auto* p = CreateMaybeMessage<::ignition::msgs::Wrench>(GetArenaNoVirtual());
657  wrench_ = p;
658  }
659  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.wrench)
660  return wrench_;
661 }
663  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
664  if (message_arena == NULL) {
665  delete reinterpret_cast< ::google::protobuf::MessageLite*>(wrench_);
666  }
667  if (wrench) {
668  ::google::protobuf::Arena* submessage_arena = NULL;
669  if (message_arena != submessage_arena) {
670  wrench = ::google::protobuf::internal::GetOwnedMessage(
671  message_arena, wrench, submessage_arena);
672  }
673 
674  } else {
675 
676  }
677  wrench_ = wrench;
678  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.wrench)
679 }
680 
681 #ifdef __GNUC__
682  #pragma GCC diagnostic pop
683 #endif // __GNUC__
684 
689 // @@protoc_insertion_point(namespace_scope)
690 
691 } // namespace msgs
692 } // namespace ignition
693 
694 namespace google {
695 namespace protobuf {
696 
697 template <> struct is_proto_enum< ::ignition::msgs::UserCmd_Type> : ::std::true_type {};
698 template <>
699 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::UserCmd_Type>() {
701 }
702 
703 } // namespace protobuf
704 } // namespace google
705 
706 #ifdef _MSC_VER
707 #pragma warning(pop)
708 #endif
709 // @@protoc_insertion_point(global_scope)
710 
711 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fuser_5fcmd_2eproto
void clear_description()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:412
@ UserCmd_Type_WORLD_CONTROL
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:82
std::unique_ptr< UserCmd > UserCmdUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:685
std::unique_ptr< const UserCmd > ConstUserCmdUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:686
const int UserCmd_Type_Type_ARRAYSIZE
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:91
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:362
STL class.
STL class.
UserCmd_Type
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:80
Definition: build/ignition-msgs8/include/ignition/msgs/world_control.pb.h:79
T move(T... args)
void set_allocated_description(::std::string *description)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:454
::std::string * release_description()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:449
const ::ignition::msgs::Wrench & wrench() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:640
void clear_entity_name()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:533
const UserCmd_Type UserCmd_Type_Type_MIN
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:89
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:356
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * UserCmd_Type_descriptor()
static const UserCmd * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:135
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > * mutable_light()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:514
void set_id(::google::protobuf::uint32 value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:405
Definition: build/ignition-msgs8/include/ignition/msgs/model.pb.h:83
IGNITION_MSGS_VISIBLE UserCmdDefaultTypeInternal _UserCmd_default_instance_
@ UserCmd_Type_WRENCH
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:83
::std::string * mutable_entity_name()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:565
const ::ignition::msgs::WorldControl & world_control() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:592
UserCmd * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:149
const ::std::string & entity_name() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:536
void clear_id()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:398
void clear_type()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:465
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > & model() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:500
void set_allocated_world_control(::ignition::msgs::WorldControl *world_control)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:614
::ignition::msgs::WorldControl * release_world_control()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:598
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:55
static const ::std::string & Type_Name(Type value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:212
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:378
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:209
std::shared_ptr< UserCmd > UserCmdSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:687
::ignition::msgs::Light * add_light()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:522
void set_allocated_entity_name(::std::string *entity_name)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:575
IGNITION_MSGS_VISIBLE WorldControlDefaultTypeInternal _WorldControl_default_instance_
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:53
::std::string * mutable_description()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:444
::google::protobuf::uint32 id() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:401
bool has_world_control() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:586
void IGNITION_MSGS_VISIBLE AddDescriptors()
std::shared_ptr< const UserCmd > ConstUserCmdSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:688
UserCmd * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:153
@ UserCmd_Type_UserCmd_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:86
::std::string * release_entity_name()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:570
::ignition::msgs::UserCmd_Type type() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:468
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:105
void set_type(::ignition::msgs::UserCmd_Type value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:472
bool UserCmd_Type_Parse(const ::std::string &name, UserCmd_Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:98
Definition: build/ignition-msgs8/include/ignition/msgs/wrench.pb.h:78
int model_size() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:479
int light_size() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:506
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void set_allocated_wrench(::ignition::msgs::Wrench *wrench)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:662
@ UserCmd_Type_SCALING
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:84
UserCmd & operator=(const UserCmd &from)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:112
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:103
const UserCmd_Type UserCmd_Type_Type_MAX
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:90
IGNITION_MSGS_VISIBLE WrenchDefaultTypeInternal _Wrench_default_instance_
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > * mutable_model()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:487
Definition: build/ignition-msgs8/include/ignition/msgs/header.pb.h:215
@ UserCmd_Type_MOVING
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:81
::ignition::msgs::Wrench * release_wrench()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:646
bool has_wrench() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:634
const ::std::string & UserCmd_Type_Name(UserCmd_Type value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:94
IGNITION_MSGS_VISIBLE bool UserCmd_Type_IsValid(int value)
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:215
::ignition::msgs::WorldControl * mutable_world_control()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:605
bool has_header() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:350
void set_entity_name(const ::std::string &value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:540
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:369
void Swap(UserCmd *other)
STL class.
@ UserCmd_Type_UserCmd_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:85
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > & light() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:527
friend void swap(UserCmd &a, UserCmd &b)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:143
::ignition::msgs::Model * add_model()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:495
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:78
::ignition::msgs::Wrench * mutable_wrench()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:653
void set_description(const ::std::string &value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:419
const ::std::string & description() const
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:415