Gazebo Msgs

API Reference

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