Ignition Msgs

API Reference

5.8.1
joystick.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/joystick.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoystick_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoystick_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/unknown_field_set.h>
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fjoystick_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
51 namespace internal {
52 class AnyMetadata;
53 } // namespace internal
54 PROTOBUF_NAMESPACE_CLOSE
55 
56 // Internal implementation detail -- do not use these members.
57 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fjoystick_2eproto {
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
63  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
64  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66  static const uint32_t offsets[];
67 };
68 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fjoystick_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class Joystick;
72 struct JoystickDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern JoystickDefaultTypeInternal _Joystick_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Joystick* Arena::CreateMaybeMessage<::ignition::msgs::Joystick>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace ignition {
80 namespace msgs {
81 
82 // ===================================================================
83 
84 class IGNITION_MSGS_VISIBLE Joystick final :
85  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Joystick) */ {
86  public:
87  inline Joystick() : Joystick(nullptr) {}
88  ~Joystick() override;
89  explicit constexpr Joystick(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
90 
91  Joystick(const Joystick& from);
92  Joystick(Joystick&& from) noexcept
93  : Joystick() {
94  *this = ::std::move(from);
95  }
96 
97  inline Joystick& operator=(const Joystick& from) {
98  CopyFrom(from);
99  return *this;
100  }
101  inline Joystick& operator=(Joystick&& from) noexcept {
102  if (this == &from) return *this;
103  if (GetOwningArena() == from.GetOwningArena()
104  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
105  && GetOwningArena() != nullptr
106  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
107  ) {
108  InternalSwap(&from);
109  } else {
110  CopyFrom(from);
111  }
112  return *this;
113  }
114 
115  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
116  return GetDescriptor();
117  }
118  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
119  return default_instance().GetMetadata().descriptor;
120  }
121  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
122  return default_instance().GetMetadata().reflection;
123  }
124  static const Joystick& default_instance() {
125  return *internal_default_instance();
126  }
127  static inline const Joystick* internal_default_instance() {
128  return reinterpret_cast<const Joystick*>(
130  }
131  static constexpr int kIndexInFileMessages =
132  0;
133 
134  friend void swap(Joystick& a, Joystick& b) {
135  a.Swap(&b);
136  }
137  inline void Swap(Joystick* other) {
138  if (other == this) return;
139  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140  if (GetOwningArena() != nullptr &&
141  GetOwningArena() == other->GetOwningArena()) {
142  #else // PROTOBUF_FORCE_COPY_IN_SWAP
143  if (GetOwningArena() == other->GetOwningArena()) {
144  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
145  InternalSwap(other);
146  } else {
147  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148  }
149  }
150  void UnsafeArenaSwap(Joystick* other) {
151  if (other == this) return;
152  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
153  InternalSwap(other);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  Joystick* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
159  return CreateMaybeMessage<Joystick>(arena);
160  }
161  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162  void CopyFrom(const Joystick& from);
163  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164  void MergeFrom(const Joystick& from);
165  private:
166  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
167  public:
168  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
169  bool IsInitialized() const final;
170 
171  size_t ByteSizeLong() const final;
172  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
173  uint8_t* _InternalSerialize(
174  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175  int GetCachedSize() const final { return _cached_size_.Get(); }
176 
177  private:
178  void SharedCtor();
179  void SharedDtor();
180  void SetCachedSize(int size) const final;
181  void InternalSwap(Joystick* other);
182 
183  private:
184  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186  return "ignition.msgs.Joystick";
187  }
188  protected:
189  explicit Joystick(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190  bool is_message_owned = false);
191  private:
192  static void ArenaDtor(void* object);
193  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
194  public:
195 
196  static const ClassData _class_data_;
197  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
198 
199  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
200 
201  // nested types ----------------------------------------------------
202 
203  // accessors -------------------------------------------------------
204 
205  enum : int {
206  kButtonsFieldNumber = 4,
207  kHeaderFieldNumber = 1,
208  kTranslationFieldNumber = 2,
209  kRotationFieldNumber = 3,
210  };
211  // repeated int32 buttons = 4;
212  int buttons_size() const;
213  private:
214  int _internal_buttons_size() const;
215  public:
216  void clear_buttons();
217  private:
218  int32_t _internal_buttons(int index) const;
219  const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
220  _internal_buttons() const;
221  void _internal_add_buttons(int32_t value);
222  ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
223  _internal_mutable_buttons();
224  public:
225  int32_t buttons(int index) const;
226  void set_buttons(int index, int32_t value);
227  void add_buttons(int32_t value);
228  const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
229  buttons() const;
230  ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
231  mutable_buttons();
232 
233  // .ignition.msgs.Header header = 1;
234  bool has_header() const;
235  private:
236  bool _internal_has_header() const;
237  public:
238  void clear_header();
239  const ::ignition::msgs::Header& header() const;
240  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
241  ::ignition::msgs::Header* mutable_header();
242  void set_allocated_header(::ignition::msgs::Header* header);
243  private:
244  const ::ignition::msgs::Header& _internal_header() const;
245  ::ignition::msgs::Header* _internal_mutable_header();
246  public:
247  void unsafe_arena_set_allocated_header(
248  ::ignition::msgs::Header* header);
249  ::ignition::msgs::Header* unsafe_arena_release_header();
250 
251  // .ignition.msgs.Vector3d translation = 2;
252  bool has_translation() const;
253  private:
254  bool _internal_has_translation() const;
255  public:
257  const ::ignition::msgs::Vector3d& translation() const;
258  PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_translation();
259  ::ignition::msgs::Vector3d* mutable_translation();
260  void set_allocated_translation(::ignition::msgs::Vector3d* translation);
261  private:
262  const ::ignition::msgs::Vector3d& _internal_translation() const;
263  ::ignition::msgs::Vector3d* _internal_mutable_translation();
264  public:
265  void unsafe_arena_set_allocated_translation(
266  ::ignition::msgs::Vector3d* translation);
267  ::ignition::msgs::Vector3d* unsafe_arena_release_translation();
268 
269  // .ignition.msgs.Vector3d rotation = 3;
270  bool has_rotation() const;
271  private:
272  bool _internal_has_rotation() const;
273  public:
275  const ::ignition::msgs::Vector3d& rotation() const;
276  PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_rotation();
277  ::ignition::msgs::Vector3d* mutable_rotation();
278  void set_allocated_rotation(::ignition::msgs::Vector3d* rotation);
279  private:
280  const ::ignition::msgs::Vector3d& _internal_rotation() const;
281  ::ignition::msgs::Vector3d* _internal_mutable_rotation();
282  public:
283  void unsafe_arena_set_allocated_rotation(
284  ::ignition::msgs::Vector3d* rotation);
285  ::ignition::msgs::Vector3d* unsafe_arena_release_rotation();
286 
287  // @@protoc_insertion_point(class_scope:ignition.msgs.Joystick)
288  private:
289  class _Internal;
290 
291  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
292  typedef void InternalArenaConstructable_;
293  typedef void DestructorSkippable_;
294  ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > buttons_;
295  mutable std::atomic<int> _buttons_cached_byte_size_;
296  ::ignition::msgs::Header* header_;
297  ::ignition::msgs::Vector3d* translation_;
298  ::ignition::msgs::Vector3d* rotation_;
299  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
300  friend struct ::TableStruct_ignition_2fmsgs_2fjoystick_2eproto;
301 };
302 // ===================================================================
303 
304 
305 // ===================================================================
306 
307 #ifdef __GNUC__
308  #pragma GCC diagnostic push
309  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
310 #endif // __GNUC__
311 // Joystick
312 
313 // .ignition.msgs.Header header = 1;
314 inline bool Joystick::_internal_has_header() const {
315  return this != internal_default_instance() && header_ != nullptr;
316 }
317 inline bool Joystick::has_header() const {
318  return _internal_has_header();
319 }
320 inline const ::ignition::msgs::Header& Joystick::_internal_header() const {
321  const ::ignition::msgs::Header* p = header_;
322  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
324 }
325 inline const ::ignition::msgs::Header& Joystick::header() const {
326  // @@protoc_insertion_point(field_get:ignition.msgs.Joystick.header)
327  return _internal_header();
328 }
330  ::ignition::msgs::Header* header) {
331  if (GetArenaForAllocation() == nullptr) {
332  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
333  }
334  header_ = header;
335  if (header) {
336 
337  } else {
338 
339  }
340  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Joystick.header)
341 }
342 inline ::ignition::msgs::Header* Joystick::release_header() {
343 
344  ::ignition::msgs::Header* temp = header_;
345  header_ = nullptr;
346 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
347  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
348  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
349  if (GetArenaForAllocation() == nullptr) { delete old; }
350 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
351  if (GetArenaForAllocation() != nullptr) {
352  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
353  }
354 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
355  return temp;
356 }
357 inline ::ignition::msgs::Header* Joystick::unsafe_arena_release_header() {
358  // @@protoc_insertion_point(field_release:ignition.msgs.Joystick.header)
359 
360  ::ignition::msgs::Header* temp = header_;
361  header_ = nullptr;
362  return temp;
363 }
364 inline ::ignition::msgs::Header* Joystick::_internal_mutable_header() {
365 
366  if (header_ == nullptr) {
367  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
368  header_ = p;
369  }
370  return header_;
371 }
372 inline ::ignition::msgs::Header* Joystick::mutable_header() {
373  ::ignition::msgs::Header* _msg = _internal_mutable_header();
374  // @@protoc_insertion_point(field_mutable:ignition.msgs.Joystick.header)
375  return _msg;
376 }
378  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
379  if (message_arena == nullptr) {
380  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
381  }
382  if (header) {
383  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
384  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
385  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
386  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
387  if (message_arena != submessage_arena) {
388  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
389  message_arena, header, submessage_arena);
390  }
391 
392  } else {
393 
394  }
395  header_ = header;
396  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Joystick.header)
397 }
398 
399 // .ignition.msgs.Vector3d translation = 2;
400 inline bool Joystick::_internal_has_translation() const {
401  return this != internal_default_instance() && translation_ != nullptr;
402 }
403 inline bool Joystick::has_translation() const {
404  return _internal_has_translation();
405 }
406 inline const ::ignition::msgs::Vector3d& Joystick::_internal_translation() const {
407  const ::ignition::msgs::Vector3d* p = translation_;
408  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Vector3d&>(
410 }
411 inline const ::ignition::msgs::Vector3d& Joystick::translation() const {
412  // @@protoc_insertion_point(field_get:ignition.msgs.Joystick.translation)
413  return _internal_translation();
414 }
416  ::ignition::msgs::Vector3d* translation) {
417  if (GetArenaForAllocation() == nullptr) {
418  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(translation_);
419  }
420  translation_ = translation;
421  if (translation) {
422 
423  } else {
424 
425  }
426  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Joystick.translation)
427 }
428 inline ::ignition::msgs::Vector3d* Joystick::release_translation() {
429 
430  ::ignition::msgs::Vector3d* temp = translation_;
431  translation_ = nullptr;
432 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
433  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
434  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
435  if (GetArenaForAllocation() == nullptr) { delete old; }
436 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
437  if (GetArenaForAllocation() != nullptr) {
438  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
439  }
440 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
441  return temp;
442 }
443 inline ::ignition::msgs::Vector3d* Joystick::unsafe_arena_release_translation() {
444  // @@protoc_insertion_point(field_release:ignition.msgs.Joystick.translation)
445 
446  ::ignition::msgs::Vector3d* temp = translation_;
447  translation_ = nullptr;
448  return temp;
449 }
450 inline ::ignition::msgs::Vector3d* Joystick::_internal_mutable_translation() {
451 
452  if (translation_ == nullptr) {
453  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
454  translation_ = p;
455  }
456  return translation_;
457 }
458 inline ::ignition::msgs::Vector3d* Joystick::mutable_translation() {
459  ::ignition::msgs::Vector3d* _msg = _internal_mutable_translation();
460  // @@protoc_insertion_point(field_mutable:ignition.msgs.Joystick.translation)
461  return _msg;
462 }
464  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
465  if (message_arena == nullptr) {
466  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(translation_);
467  }
468  if (translation) {
469  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
470  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
471  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
472  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(translation));
473  if (message_arena != submessage_arena) {
474  translation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
475  message_arena, translation, submessage_arena);
476  }
477 
478  } else {
479 
480  }
481  translation_ = translation;
482  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Joystick.translation)
483 }
484 
485 // .ignition.msgs.Vector3d rotation = 3;
486 inline bool Joystick::_internal_has_rotation() const {
487  return this != internal_default_instance() && rotation_ != nullptr;
488 }
489 inline bool Joystick::has_rotation() const {
490  return _internal_has_rotation();
491 }
492 inline const ::ignition::msgs::Vector3d& Joystick::_internal_rotation() const {
493  const ::ignition::msgs::Vector3d* p = rotation_;
494  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Vector3d&>(
496 }
497 inline const ::ignition::msgs::Vector3d& Joystick::rotation() const {
498  // @@protoc_insertion_point(field_get:ignition.msgs.Joystick.rotation)
499  return _internal_rotation();
500 }
502  ::ignition::msgs::Vector3d* rotation) {
503  if (GetArenaForAllocation() == nullptr) {
504  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rotation_);
505  }
506  rotation_ = rotation;
507  if (rotation) {
508 
509  } else {
510 
511  }
512  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Joystick.rotation)
513 }
514 inline ::ignition::msgs::Vector3d* Joystick::release_rotation() {
515 
516  ::ignition::msgs::Vector3d* temp = rotation_;
517  rotation_ = nullptr;
518 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
519  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
520  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
521  if (GetArenaForAllocation() == nullptr) { delete old; }
522 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
523  if (GetArenaForAllocation() != nullptr) {
524  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
525  }
526 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
527  return temp;
528 }
529 inline ::ignition::msgs::Vector3d* Joystick::unsafe_arena_release_rotation() {
530  // @@protoc_insertion_point(field_release:ignition.msgs.Joystick.rotation)
531 
532  ::ignition::msgs::Vector3d* temp = rotation_;
533  rotation_ = nullptr;
534  return temp;
535 }
536 inline ::ignition::msgs::Vector3d* Joystick::_internal_mutable_rotation() {
537 
538  if (rotation_ == nullptr) {
539  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
540  rotation_ = p;
541  }
542  return rotation_;
543 }
544 inline ::ignition::msgs::Vector3d* Joystick::mutable_rotation() {
545  ::ignition::msgs::Vector3d* _msg = _internal_mutable_rotation();
546  // @@protoc_insertion_point(field_mutable:ignition.msgs.Joystick.rotation)
547  return _msg;
548 }
550  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
551  if (message_arena == nullptr) {
552  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(rotation_);
553  }
554  if (rotation) {
555  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
556  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
557  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
558  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rotation));
559  if (message_arena != submessage_arena) {
560  rotation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
561  message_arena, rotation, submessage_arena);
562  }
563 
564  } else {
565 
566  }
567  rotation_ = rotation;
568  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Joystick.rotation)
569 }
570 
571 // repeated int32 buttons = 4;
572 inline int Joystick::_internal_buttons_size() const {
573  return buttons_.size();
574 }
575 inline int Joystick::buttons_size() const {
576  return _internal_buttons_size();
577 }
578 inline void Joystick::clear_buttons() {
579  buttons_.Clear();
580 }
581 inline int32_t Joystick::_internal_buttons(int index) const {
582  return buttons_.Get(index);
583 }
584 inline int32_t Joystick::buttons(int index) const {
585  // @@protoc_insertion_point(field_get:ignition.msgs.Joystick.buttons)
586  return _internal_buttons(index);
587 }
588 inline void Joystick::set_buttons(int index, int32_t value) {
589  buttons_.Set(index, value);
590  // @@protoc_insertion_point(field_set:ignition.msgs.Joystick.buttons)
591 }
592 inline void Joystick::_internal_add_buttons(int32_t value) {
593  buttons_.Add(value);
594 }
595 inline void Joystick::add_buttons(int32_t value) {
596  _internal_add_buttons(value);
597  // @@protoc_insertion_point(field_add:ignition.msgs.Joystick.buttons)
598 }
599 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
600 Joystick::_internal_buttons() const {
601  return buttons_;
602 }
603 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
605  // @@protoc_insertion_point(field_list:ignition.msgs.Joystick.buttons)
606  return _internal_buttons();
607 }
608 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
609 Joystick::_internal_mutable_buttons() {
610  return &buttons_;
611 }
612 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
614  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Joystick.buttons)
615  return _internal_mutable_buttons();
616 }
617 
618 #ifdef __GNUC__
619  #pragma GCC diagnostic pop
620 #endif // __GNUC__
621 
626 // @@protoc_insertion_point(namespace_scope)
627 
628 } // namespace msgs
629 } // namespace ignition
630 
631 #ifdef _MSC_VER
632 #pragma warning(pop)
633 #endif
634 // @@protoc_insertion_point(global_scope)
635 
636 #include <google/protobuf/port_undef.inc>
637 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoystick_2eproto
Definition: header.pb.h:265
Definition: joystick.pb.h:85
::ignition::msgs::Vector3d * mutable_rotation()
Definition: joystick.pb.h:544
void CopyFrom(const Joystick &from)
const ::ignition::msgs::Vector3d & rotation() const
Definition: joystick.pb.h:497
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: joystick.pb.h:121
void Swap(Joystick *other)
Definition: joystick.pb.h:137
bool has_header() const
Definition: joystick.pb.h:317
int buttons_size() const
Definition: joystick.pb.h:575
::ignition::msgs::Header * mutable_header()
Definition: joystick.pb.h:372
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Joystick(const Joystick &from)
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > * mutable_buttons()
Definition: joystick.pb.h:613
Joystick & operator=(const Joystick &from)
Definition: joystick.pb.h:97
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: joystick.pb.h:115
void unsafe_arena_set_allocated_rotation(::ignition::msgs::Vector3d *rotation)
Definition: joystick.pb.h:501
::ignition::msgs::Vector3d * mutable_translation()
Definition: joystick.pb.h:458
Joystick & operator=(Joystick &&from) noexcept
Definition: joystick.pb.h:101
::ignition::msgs::Vector3d * unsafe_arena_release_rotation()
Definition: joystick.pb.h:529
void MergeFrom(const Joystick &from)
void UnsafeArenaSwap(Joystick *other)
Definition: joystick.pb.h:150
bool has_rotation() const
Definition: joystick.pb.h:489
Joystick * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: joystick.pb.h:158
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: joystick.pb.h:329
void set_allocated_translation(::ignition::msgs::Vector3d *translation)
Definition: joystick.pb.h:463
Joystick(Joystick &&from) noexcept
Definition: joystick.pb.h:92
void set_allocated_rotation(::ignition::msgs::Vector3d *rotation)
Definition: joystick.pb.h:549
static const Joystick * internal_default_instance()
Definition: joystick.pb.h:127
::ignition::msgs::Vector3d * unsafe_arena_release_translation()
Definition: joystick.pb.h:443
constexpr Joystick(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void set_buttons(int index, int32_t value)
Definition: joystick.pb.h:588
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_translation()
Definition: joystick.pb.h:428
void set_allocated_header(::ignition::msgs::Header *header)
Definition: joystick.pb.h:377
static const Joystick & default_instance()
Definition: joystick.pb.h:124
Joystick(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: joystick.pb.h:342
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > & buttons() const
Definition: joystick.pb.h:604
void clear_buttons()
Definition: joystick.pb.h:578
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: joystick.pb.h:118
void add_buttons(int32_t value)
Definition: joystick.pb.h:595
const ::ignition::msgs::Header & header() const
Definition: joystick.pb.h:325
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_rotation()
Definition: joystick.pb.h:514
static const ClassData _class_data_
Definition: joystick.pb.h:196
Joystick()
Definition: joystick.pb.h:87
const ::ignition::msgs::Vector3d & translation() const
Definition: joystick.pb.h:411
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: joystick.pb.h:357
void unsafe_arena_set_allocated_translation(::ignition::msgs::Vector3d *translation)
Definition: joystick.pb.h:415
friend void swap(Joystick &a, Joystick &b)
Definition: joystick.pb.h:134
bool has_translation() const
Definition: joystick.pb.h:403
Definition: vector3d.pb.h:84
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fjoystick_2eproto
std::unique_ptr< Joystick > JoystickUniquePtr
Definition: joystick.pb.h:622
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
std::shared_ptr< Joystick > JoystickSharedPtr
Definition: joystick.pb.h:624
std::unique_ptr< const Joystick > ConstJoystickUniquePtr
Definition: joystick.pb.h:623
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const Joystick > ConstJoystickSharedPtr
Definition: joystick.pb.h:625
IGNITION_MSGS_VISIBLE JoystickDefaultTypeInternal _Joystick_default_instance_
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)