Ignition Msgs

API Reference

5.8.1
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 GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fuser_5fcmd_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fuser_5fcmd_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3014000 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "ignition/msgs/light.pb.h"
36 #include "ignition/msgs/model.pb.h"
40 #ifndef _MSC_VER
41 #pragma GCC system_header
42 #else
43 #pragma warning(push)
44 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
45 #endif
46 #ifdef __linux__
47 #include <sys/sysmacros.h>
48 #endif
49 #include <memory>
50 #include <ignition/msgs/Export.hh>
51 // @@protoc_insertion_point(includes)
52 #include <google/protobuf/port_def.inc>
53 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fuser_5fcmd_2eproto IGNITION_MSGS_VISIBLE
54 PROTOBUF_NAMESPACE_OPEN
55 namespace internal {
56 class AnyMetadata;
57 } // namespace internal
58 PROTOBUF_NAMESPACE_CLOSE
59 
60 // Internal implementation detail -- do not use these members.
62  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
63  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
64  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
65  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
66  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
67  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
68  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
69  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
70  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
71 };
72 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fuser_5fcmd_2eproto;
73 namespace ignition {
74 namespace msgs {
75 class UserCmd;
76 class UserCmdDefaultTypeInternal;
77 IGNITION_MSGS_VISIBLE extern UserCmdDefaultTypeInternal _UserCmd_default_instance_;
78 } // namespace msgs
79 } // namespace ignition
80 PROTOBUF_NAMESPACE_OPEN
81 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::UserCmd* Arena::CreateMaybeMessage<::ignition::msgs::UserCmd>(Arena*);
82 PROTOBUF_NAMESPACE_CLOSE
83 namespace ignition {
84 namespace msgs {
85 
86 enum UserCmd_Type : int {
93 };
94 IGNITION_MSGS_VISIBLE bool UserCmd_Type_IsValid(int value);
98 
99 IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UserCmd_Type_descriptor();
100 template<typename T>
101 inline const std::string& UserCmd_Type_Name(T enum_t_value) {
102  static_assert(::std::is_same<T, UserCmd_Type>::value ||
104  "Incorrect type passed to function UserCmd_Type_Name.");
105  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
106  UserCmd_Type_descriptor(), enum_t_value);
107 }
108 inline bool UserCmd_Type_Parse(
109  ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UserCmd_Type* value) {
110  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<UserCmd_Type>(
111  UserCmd_Type_descriptor(), name, value);
112 }
113 // ===================================================================
114 
115 class IGNITION_MSGS_VISIBLE UserCmd PROTOBUF_FINAL :
116  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.UserCmd) */ {
117  public:
118  inline UserCmd() : UserCmd(nullptr) {}
119  virtual ~UserCmd();
120 
121  UserCmd(const UserCmd& from);
122  UserCmd(UserCmd&& from) noexcept
123  : UserCmd() {
124  *this = ::std::move(from);
125  }
126 
127  inline UserCmd& operator=(const UserCmd& from) {
128  CopyFrom(from);
129  return *this;
130  }
131  inline UserCmd& operator=(UserCmd&& from) noexcept {
132  if (GetArena() == from.GetArena()) {
133  if (this != &from) InternalSwap(&from);
134  } else {
135  CopyFrom(from);
136  }
137  return *this;
138  }
139 
140  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
141  return GetDescriptor();
142  }
143  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
144  return GetMetadataStatic().descriptor;
145  }
146  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
147  return GetMetadataStatic().reflection;
148  }
149  static const UserCmd& default_instance();
150 
151  static inline const UserCmd* internal_default_instance() {
152  return reinterpret_cast<const UserCmd*>(
154  }
155  static constexpr int kIndexInFileMessages =
156  0;
157 
158  friend void swap(UserCmd& a, UserCmd& b) {
159  a.Swap(&b);
160  }
161  inline void Swap(UserCmd* other) {
162  if (other == this) return;
163  if (GetArena() == other->GetArena()) {
164  InternalSwap(other);
165  } else {
166  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
167  }
168  }
169  void UnsafeArenaSwap(UserCmd* other) {
170  if (other == this) return;
171  GOOGLE_DCHECK(GetArena() == other->GetArena());
172  InternalSwap(other);
173  }
174 
175  // implements Message ----------------------------------------------
176 
177  inline UserCmd* New() const final {
178  return CreateMaybeMessage<UserCmd>(nullptr);
179  }
180 
181  UserCmd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
182  return CreateMaybeMessage<UserCmd>(arena);
183  }
184  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
185  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
186  void CopyFrom(const UserCmd& from);
187  void MergeFrom(const UserCmd& from);
188  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
189  bool IsInitialized() const final;
190 
191  size_t ByteSizeLong() const final;
192  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
193  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
194  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
195  int GetCachedSize() const final { return _cached_size_.Get(); }
196 
197  private:
198  inline void SharedCtor();
199  inline void SharedDtor();
200  void SetCachedSize(int size) const final;
201  void InternalSwap(UserCmd* other);
202  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
203  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
204  return "ignition.msgs.UserCmd";
205  }
206  protected:
207  explicit UserCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena);
208  private:
209  static void ArenaDtor(void* object);
210  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
211  public:
212 
213  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
214  private:
215  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
216  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fuser_5fcmd_2eproto);
217  return ::descriptor_table_ignition_2fmsgs_2fuser_5fcmd_2eproto.file_level_metadata[kIndexInFileMessages];
218  }
219 
220  public:
221 
222  // nested types ----------------------------------------------------
223 
225  static constexpr Type MOVING =
227  static constexpr Type WORLD_CONTROL =
229  static constexpr Type WRENCH =
231  static constexpr Type SCALING =
233  static inline bool Type_IsValid(int value) {
234  return UserCmd_Type_IsValid(value);
235  }
236  static constexpr Type Type_MIN =
238  static constexpr Type Type_MAX =
240  static constexpr int Type_ARRAYSIZE =
242  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
244  return UserCmd_Type_descriptor();
245  }
246  template<typename T>
247  static inline const std::string& Type_Name(T enum_t_value) {
248  static_assert(::std::is_same<T, Type>::value ||
250  "Incorrect type passed to function Type_Name.");
251  return UserCmd_Type_Name(enum_t_value);
252  }
253  static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
254  Type* value) {
255  return UserCmd_Type_Parse(name, value);
256  }
257 
258  // accessors -------------------------------------------------------
259 
260  enum : int {
261  kModelFieldNumber = 5,
262  kLightFieldNumber = 6,
263  kDescriptionFieldNumber = 3,
264  kEntityNameFieldNumber = 7,
265  kHeaderFieldNumber = 1,
266  kWorldControlFieldNumber = 8,
267  kWrenchFieldNumber = 9,
268  kIdFieldNumber = 2,
269  kTypeFieldNumber = 4,
270  };
271  // repeated .ignition.msgs.Model model = 5;
272  int model_size() const;
273  private:
274  int _internal_model_size() const;
275  public:
276  void clear_model();
277  ::ignition::msgs::Model* mutable_model(int index);
278  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >*
280  private:
281  const ::ignition::msgs::Model& _internal_model(int index) const;
282  ::ignition::msgs::Model* _internal_add_model();
283  public:
284  const ::ignition::msgs::Model& model(int index) const;
285  ::ignition::msgs::Model* add_model();
286  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >&
287  model() const;
288 
289  // repeated .ignition.msgs.Light light = 6;
290  int light_size() const;
291  private:
292  int _internal_light_size() const;
293  public:
294  void clear_light();
295  ::ignition::msgs::Light* mutable_light(int index);
296  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >*
298  private:
299  const ::ignition::msgs::Light& _internal_light(int index) const;
300  ::ignition::msgs::Light* _internal_add_light();
301  public:
302  const ::ignition::msgs::Light& light(int index) const;
303  ::ignition::msgs::Light* add_light();
304  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >&
305  light() const;
306 
307  // string description = 3;
309  const std::string& description() const;
310  void set_description(const std::string& value);
312  void set_description(const char* value);
313  void set_description(const char* value, size_t size);
317  private:
318  const std::string& _internal_description() const;
319  void _internal_set_description(const std::string& value);
320  std::string* _internal_mutable_description();
321  public:
322 
323  // string entity_name = 7;
325  const std::string& entity_name() const;
326  void set_entity_name(const std::string& value);
328  void set_entity_name(const char* value);
329  void set_entity_name(const char* value, size_t size);
333  private:
334  const std::string& _internal_entity_name() const;
335  void _internal_set_entity_name(const std::string& value);
336  std::string* _internal_mutable_entity_name();
337  public:
338 
339  // .ignition.msgs.Header header = 1;
340  bool has_header() const;
341  private:
342  bool _internal_has_header() const;
343  public:
344  void clear_header();
345  const ::ignition::msgs::Header& header() const;
346  ::ignition::msgs::Header* release_header();
347  ::ignition::msgs::Header* mutable_header();
348  void set_allocated_header(::ignition::msgs::Header* header);
349  private:
350  const ::ignition::msgs::Header& _internal_header() const;
351  ::ignition::msgs::Header* _internal_mutable_header();
352  public:
354  ::ignition::msgs::Header* header);
355  ::ignition::msgs::Header* unsafe_arena_release_header();
356 
357  // .ignition.msgs.WorldControl world_control = 8;
358  bool has_world_control() const;
359  private:
360  bool _internal_has_world_control() const;
361  public:
363  const ::ignition::msgs::WorldControl& world_control() const;
364  ::ignition::msgs::WorldControl* release_world_control();
365  ::ignition::msgs::WorldControl* mutable_world_control();
366  void set_allocated_world_control(::ignition::msgs::WorldControl* world_control);
367  private:
368  const ::ignition::msgs::WorldControl& _internal_world_control() const;
369  ::ignition::msgs::WorldControl* _internal_mutable_world_control();
370  public:
372  ::ignition::msgs::WorldControl* world_control);
373  ::ignition::msgs::WorldControl* unsafe_arena_release_world_control();
374 
375  // .ignition.msgs.Wrench wrench = 9;
376  bool has_wrench() const;
377  private:
378  bool _internal_has_wrench() const;
379  public:
380  void clear_wrench();
381  const ::ignition::msgs::Wrench& wrench() const;
382  ::ignition::msgs::Wrench* release_wrench();
383  ::ignition::msgs::Wrench* mutable_wrench();
384  void set_allocated_wrench(::ignition::msgs::Wrench* wrench);
385  private:
386  const ::ignition::msgs::Wrench& _internal_wrench() const;
387  ::ignition::msgs::Wrench* _internal_mutable_wrench();
388  public:
390  ::ignition::msgs::Wrench* wrench);
391  ::ignition::msgs::Wrench* unsafe_arena_release_wrench();
392 
393  // uint32 id = 2;
394  void clear_id();
395  ::PROTOBUF_NAMESPACE_ID::uint32 id() const;
396  void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
397  private:
398  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id() const;
399  void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
400  public:
401 
402  // .ignition.msgs.UserCmd.Type type = 4;
403  void clear_type();
406  private:
407  ::ignition::msgs::UserCmd_Type _internal_type() const;
408  void _internal_set_type(::ignition::msgs::UserCmd_Type value);
409  public:
410 
411  // @@protoc_insertion_point(class_scope:ignition.msgs.UserCmd)
412  private:
413  class _Internal;
414 
415  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
416  typedef void InternalArenaConstructable_;
417  typedef void DestructorSkippable_;
418  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model > model_;
419  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light > light_;
420  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_;
421  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entity_name_;
422  ::ignition::msgs::Header* header_;
423  ::ignition::msgs::WorldControl* world_control_;
424  ::ignition::msgs::Wrench* wrench_;
425  ::PROTOBUF_NAMESPACE_ID::uint32 id_;
426  int type_;
427  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
428  friend struct ::TableStruct_ignition_2fmsgs_2fuser_5fcmd_2eproto;
429 };
430 // ===================================================================
431 
432 
433 // ===================================================================
434 
435 #ifdef __GNUC__
436  #pragma GCC diagnostic push
437  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
438 #endif // __GNUC__
439 // UserCmd
440 
441 // .ignition.msgs.Header header = 1;
442 inline bool UserCmd::_internal_has_header() const {
443  return this != internal_default_instance() && header_ != nullptr;
444 }
445 inline bool UserCmd::has_header() const {
446  return _internal_has_header();
447 }
448 inline const ::ignition::msgs::Header& UserCmd::_internal_header() const {
449  const ::ignition::msgs::Header* p = header_;
450  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
452 }
453 inline const ::ignition::msgs::Header& UserCmd::header() const {
454  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.header)
455  return _internal_header();
456 }
457 inline void UserCmd::unsafe_arena_set_allocated_header(
458  ::ignition::msgs::Header* header) {
459  if (GetArena() == nullptr) {
460  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
461  }
462  header_ = header;
463  if (header) {
464 
465  } else {
466 
467  }
468  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.UserCmd.header)
469 }
470 inline ::ignition::msgs::Header* UserCmd::release_header() {
471 
472  ::ignition::msgs::Header* temp = header_;
473  header_ = nullptr;
474  if (GetArena() != nullptr) {
475  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
476  }
477  return temp;
478 }
479 inline ::ignition::msgs::Header* UserCmd::unsafe_arena_release_header() {
480  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.header)
481 
482  ::ignition::msgs::Header* temp = header_;
483  header_ = nullptr;
484  return temp;
485 }
486 inline ::ignition::msgs::Header* UserCmd::_internal_mutable_header() {
487 
488  if (header_ == nullptr) {
489  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
490  header_ = p;
491  }
492  return header_;
493 }
494 inline ::ignition::msgs::Header* UserCmd::mutable_header() {
495  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.header)
496  return _internal_mutable_header();
497 }
498 inline void UserCmd::set_allocated_header(::ignition::msgs::Header* header) {
499  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
500  if (message_arena == nullptr) {
501  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
502  }
503  if (header) {
504  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
505  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
506  if (message_arena != submessage_arena) {
507  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
508  message_arena, header, submessage_arena);
509  }
510 
511  } else {
512 
513  }
514  header_ = header;
515  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.header)
516 }
517 
518 // uint32 id = 2;
519 inline void UserCmd::clear_id() {
520  id_ = 0u;
521 }
522 inline ::PROTOBUF_NAMESPACE_ID::uint32 UserCmd::_internal_id() const {
523  return id_;
524 }
525 inline ::PROTOBUF_NAMESPACE_ID::uint32 UserCmd::id() const {
526  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.id)
527  return _internal_id();
528 }
529 inline void UserCmd::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
530 
531  id_ = value;
532 }
533 inline void UserCmd::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
534  _internal_set_id(value);
535  // @@protoc_insertion_point(field_set:ignition.msgs.UserCmd.id)
536 }
537 
538 // string description = 3;
539 inline void UserCmd::clear_description() {
540  description_.ClearToEmpty();
541 }
542 inline const std::string& UserCmd::description() const {
543  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.description)
544  return _internal_description();
545 }
546 inline void UserCmd::set_description(const std::string& value) {
547  _internal_set_description(value);
548  // @@protoc_insertion_point(field_set:ignition.msgs.UserCmd.description)
549 }
550 inline std::string* UserCmd::mutable_description() {
551  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.description)
552  return _internal_mutable_description();
553 }
554 inline const std::string& UserCmd::_internal_description() const {
555  return description_.Get();
556 }
557 inline void UserCmd::_internal_set_description(const std::string& value) {
558 
559  description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
560 }
561 inline void UserCmd::set_description(std::string&& value) {
562 
563  description_.Set(
564  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
565  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.UserCmd.description)
566 }
567 inline void UserCmd::set_description(const char* value) {
568  GOOGLE_DCHECK(value != nullptr);
569 
570  description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
571  // @@protoc_insertion_point(field_set_char:ignition.msgs.UserCmd.description)
572 }
573 inline void UserCmd::set_description(const char* value,
574  size_t size) {
575 
576  description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
577  reinterpret_cast<const char*>(value), size), GetArena());
578  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.UserCmd.description)
579 }
580 inline std::string* UserCmd::_internal_mutable_description() {
581 
582  return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
583 }
584 inline std::string* UserCmd::release_description() {
585  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.description)
586  return description_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
587 }
588 inline void UserCmd::set_allocated_description(std::string* description) {
589  if (description != nullptr) {
590 
591  } else {
592 
593  }
594  description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description,
595  GetArena());
596  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.description)
597 }
598 
599 // .ignition.msgs.UserCmd.Type type = 4;
600 inline void UserCmd::clear_type() {
601  type_ = 0;
602 }
603 inline ::ignition::msgs::UserCmd_Type UserCmd::_internal_type() const {
604  return static_cast< ::ignition::msgs::UserCmd_Type >(type_);
605 }
606 inline ::ignition::msgs::UserCmd_Type UserCmd::type() const {
607  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.type)
608  return _internal_type();
609 }
610 inline void UserCmd::_internal_set_type(::ignition::msgs::UserCmd_Type value) {
611 
612  type_ = value;
613 }
614 inline void UserCmd::set_type(::ignition::msgs::UserCmd_Type value) {
615  _internal_set_type(value);
616  // @@protoc_insertion_point(field_set:ignition.msgs.UserCmd.type)
617 }
618 
619 // repeated .ignition.msgs.Model model = 5;
620 inline int UserCmd::_internal_model_size() const {
621  return model_.size();
622 }
623 inline int UserCmd::model_size() const {
624  return _internal_model_size();
625 }
626 inline ::ignition::msgs::Model* UserCmd::mutable_model(int index) {
627  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.model)
628  return model_.Mutable(index);
629 }
630 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >*
631 UserCmd::mutable_model() {
632  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.UserCmd.model)
633  return &model_;
634 }
635 inline const ::ignition::msgs::Model& UserCmd::_internal_model(int index) const {
636  return model_.Get(index);
637 }
638 inline const ::ignition::msgs::Model& UserCmd::model(int index) const {
639  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.model)
640  return _internal_model(index);
641 }
642 inline ::ignition::msgs::Model* UserCmd::_internal_add_model() {
643  return model_.Add();
644 }
645 inline ::ignition::msgs::Model* UserCmd::add_model() {
646  // @@protoc_insertion_point(field_add:ignition.msgs.UserCmd.model)
647  return _internal_add_model();
648 }
649 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >&
650 UserCmd::model() const {
651  // @@protoc_insertion_point(field_list:ignition.msgs.UserCmd.model)
652  return model_;
653 }
654 
655 // repeated .ignition.msgs.Light light = 6;
656 inline int UserCmd::_internal_light_size() const {
657  return light_.size();
658 }
659 inline int UserCmd::light_size() const {
660  return _internal_light_size();
661 }
662 inline ::ignition::msgs::Light* UserCmd::mutable_light(int index) {
663  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.light)
664  return light_.Mutable(index);
665 }
666 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >*
667 UserCmd::mutable_light() {
668  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.UserCmd.light)
669  return &light_;
670 }
671 inline const ::ignition::msgs::Light& UserCmd::_internal_light(int index) const {
672  return light_.Get(index);
673 }
674 inline const ::ignition::msgs::Light& UserCmd::light(int index) const {
675  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.light)
676  return _internal_light(index);
677 }
678 inline ::ignition::msgs::Light* UserCmd::_internal_add_light() {
679  return light_.Add();
680 }
681 inline ::ignition::msgs::Light* UserCmd::add_light() {
682  // @@protoc_insertion_point(field_add:ignition.msgs.UserCmd.light)
683  return _internal_add_light();
684 }
685 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >&
686 UserCmd::light() const {
687  // @@protoc_insertion_point(field_list:ignition.msgs.UserCmd.light)
688  return light_;
689 }
690 
691 // string entity_name = 7;
692 inline void UserCmd::clear_entity_name() {
693  entity_name_.ClearToEmpty();
694 }
695 inline const std::string& UserCmd::entity_name() const {
696  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.entity_name)
697  return _internal_entity_name();
698 }
699 inline void UserCmd::set_entity_name(const std::string& value) {
700  _internal_set_entity_name(value);
701  // @@protoc_insertion_point(field_set:ignition.msgs.UserCmd.entity_name)
702 }
703 inline std::string* UserCmd::mutable_entity_name() {
704  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.entity_name)
705  return _internal_mutable_entity_name();
706 }
707 inline const std::string& UserCmd::_internal_entity_name() const {
708  return entity_name_.Get();
709 }
710 inline void UserCmd::_internal_set_entity_name(const std::string& value) {
711 
712  entity_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
713 }
714 inline void UserCmd::set_entity_name(std::string&& value) {
715 
716  entity_name_.Set(
717  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
718  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.UserCmd.entity_name)
719 }
720 inline void UserCmd::set_entity_name(const char* value) {
721  GOOGLE_DCHECK(value != nullptr);
722 
723  entity_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
724  // @@protoc_insertion_point(field_set_char:ignition.msgs.UserCmd.entity_name)
725 }
726 inline void UserCmd::set_entity_name(const char* value,
727  size_t size) {
728 
729  entity_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
730  reinterpret_cast<const char*>(value), size), GetArena());
731  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.UserCmd.entity_name)
732 }
733 inline std::string* UserCmd::_internal_mutable_entity_name() {
734 
735  return entity_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
736 }
737 inline std::string* UserCmd::release_entity_name() {
738  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.entity_name)
739  return entity_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
740 }
741 inline void UserCmd::set_allocated_entity_name(std::string* entity_name) {
742  if (entity_name != nullptr) {
743 
744  } else {
745 
746  }
747  entity_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), entity_name,
748  GetArena());
749  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.entity_name)
750 }
751 
752 // .ignition.msgs.WorldControl world_control = 8;
753 inline bool UserCmd::_internal_has_world_control() const {
754  return this != internal_default_instance() && world_control_ != nullptr;
755 }
756 inline bool UserCmd::has_world_control() const {
757  return _internal_has_world_control();
758 }
759 inline const ::ignition::msgs::WorldControl& UserCmd::_internal_world_control() const {
760  const ::ignition::msgs::WorldControl* p = world_control_;
761  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::WorldControl&>(
763 }
764 inline const ::ignition::msgs::WorldControl& UserCmd::world_control() const {
765  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.world_control)
766  return _internal_world_control();
767 }
768 inline void UserCmd::unsafe_arena_set_allocated_world_control(
769  ::ignition::msgs::WorldControl* world_control) {
770  if (GetArena() == nullptr) {
771  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_control_);
772  }
773  world_control_ = world_control;
774  if (world_control) {
775 
776  } else {
777 
778  }
779  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.UserCmd.world_control)
780 }
781 inline ::ignition::msgs::WorldControl* UserCmd::release_world_control() {
782 
783  ::ignition::msgs::WorldControl* temp = world_control_;
784  world_control_ = nullptr;
785  if (GetArena() != nullptr) {
786  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
787  }
788  return temp;
789 }
790 inline ::ignition::msgs::WorldControl* UserCmd::unsafe_arena_release_world_control() {
791  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.world_control)
792 
793  ::ignition::msgs::WorldControl* temp = world_control_;
794  world_control_ = nullptr;
795  return temp;
796 }
797 inline ::ignition::msgs::WorldControl* UserCmd::_internal_mutable_world_control() {
798 
799  if (world_control_ == nullptr) {
800  auto* p = CreateMaybeMessage<::ignition::msgs::WorldControl>(GetArena());
801  world_control_ = p;
802  }
803  return world_control_;
804 }
805 inline ::ignition::msgs::WorldControl* UserCmd::mutable_world_control() {
806  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.world_control)
807  return _internal_mutable_world_control();
808 }
809 inline void UserCmd::set_allocated_world_control(::ignition::msgs::WorldControl* world_control) {
810  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
811  if (message_arena == nullptr) {
812  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_control_);
813  }
814  if (world_control) {
815  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
816  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_control)->GetArena();
817  if (message_arena != submessage_arena) {
818  world_control = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
819  message_arena, world_control, submessage_arena);
820  }
821 
822  } else {
823 
824  }
825  world_control_ = world_control;
826  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.world_control)
827 }
828 
829 // .ignition.msgs.Wrench wrench = 9;
830 inline bool UserCmd::_internal_has_wrench() const {
831  return this != internal_default_instance() && wrench_ != nullptr;
832 }
833 inline bool UserCmd::has_wrench() const {
834  return _internal_has_wrench();
835 }
836 inline const ::ignition::msgs::Wrench& UserCmd::_internal_wrench() const {
837  const ::ignition::msgs::Wrench* p = wrench_;
838  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Wrench&>(
840 }
841 inline const ::ignition::msgs::Wrench& UserCmd::wrench() const {
842  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmd.wrench)
843  return _internal_wrench();
844 }
845 inline void UserCmd::unsafe_arena_set_allocated_wrench(
846  ::ignition::msgs::Wrench* wrench) {
847  if (GetArena() == nullptr) {
848  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wrench_);
849  }
850  wrench_ = wrench;
851  if (wrench) {
852 
853  } else {
854 
855  }
856  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.UserCmd.wrench)
857 }
858 inline ::ignition::msgs::Wrench* UserCmd::release_wrench() {
859 
860  ::ignition::msgs::Wrench* temp = wrench_;
861  wrench_ = nullptr;
862  if (GetArena() != nullptr) {
863  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
864  }
865  return temp;
866 }
867 inline ::ignition::msgs::Wrench* UserCmd::unsafe_arena_release_wrench() {
868  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmd.wrench)
869 
870  ::ignition::msgs::Wrench* temp = wrench_;
871  wrench_ = nullptr;
872  return temp;
873 }
874 inline ::ignition::msgs::Wrench* UserCmd::_internal_mutable_wrench() {
875 
876  if (wrench_ == nullptr) {
877  auto* p = CreateMaybeMessage<::ignition::msgs::Wrench>(GetArena());
878  wrench_ = p;
879  }
880  return wrench_;
881 }
882 inline ::ignition::msgs::Wrench* UserCmd::mutable_wrench() {
883  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmd.wrench)
884  return _internal_mutable_wrench();
885 }
886 inline void UserCmd::set_allocated_wrench(::ignition::msgs::Wrench* wrench) {
887  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
888  if (message_arena == nullptr) {
889  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(wrench_);
890  }
891  if (wrench) {
892  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
893  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wrench)->GetArena();
894  if (message_arena != submessage_arena) {
895  wrench = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
896  message_arena, wrench, submessage_arena);
897  }
898 
899  } else {
900 
901  }
902  wrench_ = wrench;
903  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmd.wrench)
904 }
905 
906 #ifdef __GNUC__
907  #pragma GCC diagnostic pop
908 #endif // __GNUC__
909 
914 // @@protoc_insertion_point(namespace_scope)
915 
916 } // namespace msgs
917 } // namespace ignition
918 
919 PROTOBUF_NAMESPACE_OPEN
920 
921 template <> struct is_proto_enum< ::ignition::msgs::UserCmd_Type> : ::std::true_type {};
922 template <>
923 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::UserCmd_Type>() {
925 }
926 
927 PROTOBUF_NAMESPACE_CLOSE
928 
929 #ifdef _MSC_VER
930 #pragma warning(pop)
931 #endif
932 // @@protoc_insertion_point(global_scope)
933 
934 #include <google/protobuf/port_undef.inc>
935 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fuser_5fcmd_2eproto
UserCmd & operator=(UserCmd &&from) noexcept
Definition: user_cmd.pb.h:131
const ::ignition::msgs::Model & model(int index) const
void set_entity_name(std::string &&value)
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model > & model() const
::ignition::msgs::Model * add_model()
void set_description(const std::string &value)
void set_allocated_world_control(::ignition::msgs::WorldControl *world_control)
void set_type(::ignition::msgs::UserCmd_Type value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: user_cmd.pb.h:146
static const std::string & Type_Name(T enum_t_value)
Definition: user_cmd.pb.h:247
void set_allocated_entity_name(std::string *entity_name)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void set_description(const char *value, size_t size)
::ignition::msgs::Header * mutable_header()
void set_entity_name(const char *value, size_t size)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: user_cmd.pb.h:140
void unsafe_arena_set_allocated_wrench(::ignition::msgs::Wrench *wrench)
void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: user_cmd.pb.h:243
::ignition::msgs::Model * mutable_model(int index)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * release_entity_name()
void set_entity_name(const std::string &value)
void MergeFrom(const UserCmd &from)
UserCmd()
Definition: user_cmd.pb.h:118
static bool Type_IsValid(int value)
Definition: user_cmd.pb.h:233
::ignition::msgs::Wrench * unsafe_arena_release_wrench()
void unsafe_arena_set_allocated_world_control(::ignition::msgs::WorldControl *world_control)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void set_entity_name(const char *value)
const std::string & description() const
void UnsafeArenaSwap(UserCmd *other)
Definition: user_cmd.pb.h:169
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
UserCmd(const UserCmd &from)
std::string * release_description()
::ignition::msgs::Light * mutable_light(int index)
std::string * mutable_entity_name()
::ignition::msgs::Light * add_light()
::ignition::msgs::WorldControl * release_world_control()
void set_description(std::string &&value)
static const UserCmd * internal_default_instance()
Definition: user_cmd.pb.h:151
UserCmd & operator=(const UserCmd &from)
Definition: user_cmd.pb.h:127
const ::ignition::msgs::WorldControl & world_control() const
static bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type *value)
Definition: user_cmd.pb.h:253
void set_allocated_header(::ignition::msgs::Header *header)
UserCmd(UserCmd &&from) noexcept
Definition: user_cmd.pb.h:122
static const UserCmd & default_instance()
const ::ignition::msgs::Wrench & wrench() const
UserCmd_Type Type
Definition: user_cmd.pb.h:224
void set_allocated_wrench(::ignition::msgs::Wrench *wrench)
void Swap(UserCmd *other)
Definition: user_cmd.pb.h:161
::ignition::msgs::WorldControl * mutable_world_control()
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light > * mutable_light()
::ignition::msgs::Wrench * release_wrench()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
UserCmd * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: user_cmd.pb.h:181
::PROTOBUF_NAMESPACE_ID::uint32 id() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: user_cmd.pb.h:143
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model > * mutable_model()
void CopyFrom(const UserCmd &from)
void set_description(const char *value)
const ::ignition::msgs::Light & light(int index) const
std::string * mutable_description()
::ignition::msgs::Wrench * mutable_wrench()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light > & light() const
::ignition::msgs::WorldControl * unsafe_arena_release_world_control()
UserCmd(::PROTOBUF_NAMESPACE_ID::Arena *arena)
UserCmd * New() const final
Definition: user_cmd.pb.h:177
void set_allocated_description(std::string *description)
friend void swap(UserCmd &a, UserCmd &b)
Definition: user_cmd.pb.h:158
const ::ignition::msgs::Header & header() const
const std::string & entity_name() const
::ignition::msgs::UserCmd_Type type() const
T max(T... args)
T min(T... args)
std::unique_ptr< const UserCmd > ConstUserCmdUniquePtr
Definition: user_cmd.pb.h:911
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * UserCmd_Type_descriptor()
IGNITION_MSGS_VISIBLE WorldControlDefaultTypeInternal _WorldControl_default_instance_
constexpr int UserCmd_Type_Type_ARRAYSIZE
Definition: user_cmd.pb.h:97
const std::string & UserCmd_Type_Name(T enum_t_value)
Definition: user_cmd.pb.h:101
bool UserCmd_Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UserCmd_Type *value)
Definition: user_cmd.pb.h:108
std::unique_ptr< UserCmd > UserCmdUniquePtr
Definition: user_cmd.pb.h:910
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
constexpr UserCmd_Type UserCmd_Type_Type_MAX
Definition: user_cmd.pb.h:96
IGNITION_MSGS_VISIBLE UserCmdDefaultTypeInternal _UserCmd_default_instance_
IGNITION_MSGS_VISIBLE bool UserCmd_Type_IsValid(int value)
std::shared_ptr< const UserCmd > ConstUserCmdSharedPtr
Definition: user_cmd.pb.h:913
UserCmd_Type
Definition: user_cmd.pb.h:86
@ UserCmd_Type_WORLD_CONTROL
Definition: user_cmd.pb.h:88
@ UserCmd_Type_WRENCH
Definition: user_cmd.pb.h:89
@ UserCmd_Type_MOVING
Definition: user_cmd.pb.h:87
@ UserCmd_Type_SCALING
Definition: user_cmd.pb.h:90
@ UserCmd_Type_UserCmd_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: user_cmd.pb.h:92
@ UserCmd_Type_UserCmd_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: user_cmd.pb.h:91
Atmosphere_Type
Definition: atmosphere.pb.h:82
std::shared_ptr< UserCmd > UserCmdSharedPtr
Definition: user_cmd.pb.h:912
IGNITION_MSGS_VISIBLE WrenchDefaultTypeInternal _Wrench_default_instance_
constexpr UserCmd_Type UserCmd_Type_Type_MIN
Definition: user_cmd.pb.h:95
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fuser_5fcmd_2eproto