Gazebo Msgs

API Reference

9.5.1
joystick.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/joystick.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fjoystick_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fjoystick_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/unknown_field_set.h>
33 #include "gz/msgs/vector3d.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fjoystick_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fjoystick_2eproto
50 namespace gz {
51 namespace msgs {
52 class Joystick;
53 class JoystickDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern JoystickDefaultTypeInternal _Joystick_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Joystick* Arena::CreateMaybeMessage<::gz::msgs::Joystick>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Joystick : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Joystick) */ {
68  public:
69  Joystick();
70  virtual ~Joystick();
71 
72  Joystick(const Joystick& from);
73 
74  inline Joystick& operator=(const Joystick& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Joystick(Joystick&& from) noexcept
80  : Joystick() {
81  *this = ::std::move(from);
82  }
83 
84  inline Joystick& operator=(Joystick&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Joystick& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Joystick* internal_default_instance() {
98  return reinterpret_cast<const Joystick*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Joystick* other);
105  friend void swap(Joystick& a, Joystick& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Joystick* New() const final {
112  return CreateMaybeMessage<Joystick>(NULL);
113  }
114 
115  Joystick* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Joystick>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const Joystick& from);
121  void MergeFrom(const Joystick& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(Joystick* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // repeated int32 buttons = 4;
155  int buttons_size() const;
156  void clear_buttons();
157  static const int kButtonsFieldNumber = 4;
158  ::google::protobuf::int32 buttons(int index) const;
159  void set_buttons(int index, ::google::protobuf::int32 value);
160  void add_buttons(::google::protobuf::int32 value);
161  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
162  buttons() const;
163  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
164  mutable_buttons();
165 
166  // .gz.msgs.Header header = 1;
167  bool has_header() const;
168  void clear_header();
169  static const int kHeaderFieldNumber = 1;
170  private:
171  const ::gz::msgs::Header& _internal_header() const;
172  public:
173  const ::gz::msgs::Header& header() const;
174  ::gz::msgs::Header* release_header();
175  ::gz::msgs::Header* mutable_header();
176  void set_allocated_header(::gz::msgs::Header* header);
177 
178  // .gz.msgs.Vector3d translation = 2;
179  bool has_translation() const;
180  void clear_translation();
181  static const int kTranslationFieldNumber = 2;
182  private:
183  const ::gz::msgs::Vector3d& _internal_translation() const;
184  public:
185  const ::gz::msgs::Vector3d& translation() const;
186  ::gz::msgs::Vector3d* release_translation();
187  ::gz::msgs::Vector3d* mutable_translation();
188  void set_allocated_translation(::gz::msgs::Vector3d* translation);
189 
190  // .gz.msgs.Vector3d rotation = 3;
191  bool has_rotation() const;
192  void clear_rotation();
193  static const int kRotationFieldNumber = 3;
194  private:
195  const ::gz::msgs::Vector3d& _internal_rotation() const;
196  public:
197  const ::gz::msgs::Vector3d& rotation() const;
198  ::gz::msgs::Vector3d* release_rotation();
199  ::gz::msgs::Vector3d* mutable_rotation();
200  void set_allocated_rotation(::gz::msgs::Vector3d* rotation);
201 
202  // @@protoc_insertion_point(class_scope:gz.msgs.Joystick)
203  private:
204 
205  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
206  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > buttons_;
207  mutable int _buttons_cached_byte_size_;
208  ::gz::msgs::Header* header_;
209  ::gz::msgs::Vector3d* translation_;
210  ::gz::msgs::Vector3d* rotation_;
211  mutable ::google::protobuf::internal::CachedSize _cached_size_;
212  friend struct ::protobuf_gz_2fmsgs_2fjoystick_2eproto::TableStruct;
213 };
214 // ===================================================================
215 
216 
217 // ===================================================================
218 
219 #ifdef __GNUC__
220  #pragma GCC diagnostic push
221  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
222 #endif // __GNUC__
223 // Joystick
224 
225 // .gz.msgs.Header header = 1;
226 inline bool Joystick::has_header() const {
227  return this != internal_default_instance() && header_ != NULL;
228 }
229 inline const ::gz::msgs::Header& Joystick::_internal_header() const {
230  return *header_;
231 }
232 inline const ::gz::msgs::Header& Joystick::header() const {
233  const ::gz::msgs::Header* p = header_;
234  // @@protoc_insertion_point(field_get:gz.msgs.Joystick.header)
235  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
237 }
238 inline ::gz::msgs::Header* Joystick::release_header() {
239  // @@protoc_insertion_point(field_release:gz.msgs.Joystick.header)
240 
241  ::gz::msgs::Header* temp = header_;
242  header_ = NULL;
243  return temp;
244 }
245 inline ::gz::msgs::Header* Joystick::mutable_header() {
246 
247  if (header_ == NULL) {
248  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
249  header_ = p;
250  }
251  // @@protoc_insertion_point(field_mutable:gz.msgs.Joystick.header)
252  return header_;
253 }
255  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
256  if (message_arena == NULL) {
257  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
258  }
259  if (header) {
260  ::google::protobuf::Arena* submessage_arena = NULL;
261  if (message_arena != submessage_arena) {
262  header = ::google::protobuf::internal::GetOwnedMessage(
263  message_arena, header, submessage_arena);
264  }
265 
266  } else {
267 
268  }
269  header_ = header;
270  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Joystick.header)
271 }
272 
273 // .gz.msgs.Vector3d translation = 2;
274 inline bool Joystick::has_translation() const {
275  return this != internal_default_instance() && translation_ != NULL;
276 }
277 inline const ::gz::msgs::Vector3d& Joystick::_internal_translation() const {
278  return *translation_;
279 }
280 inline const ::gz::msgs::Vector3d& Joystick::translation() const {
281  const ::gz::msgs::Vector3d* p = translation_;
282  // @@protoc_insertion_point(field_get:gz.msgs.Joystick.translation)
283  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
285 }
286 inline ::gz::msgs::Vector3d* Joystick::release_translation() {
287  // @@protoc_insertion_point(field_release:gz.msgs.Joystick.translation)
288 
289  ::gz::msgs::Vector3d* temp = translation_;
290  translation_ = NULL;
291  return temp;
292 }
293 inline ::gz::msgs::Vector3d* Joystick::mutable_translation() {
294 
295  if (translation_ == NULL) {
296  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
297  translation_ = p;
298  }
299  // @@protoc_insertion_point(field_mutable:gz.msgs.Joystick.translation)
300  return translation_;
301 }
303  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
304  if (message_arena == NULL) {
305  delete reinterpret_cast< ::google::protobuf::MessageLite*>(translation_);
306  }
307  if (translation) {
308  ::google::protobuf::Arena* submessage_arena = NULL;
309  if (message_arena != submessage_arena) {
310  translation = ::google::protobuf::internal::GetOwnedMessage(
311  message_arena, translation, submessage_arena);
312  }
313 
314  } else {
315 
316  }
317  translation_ = translation;
318  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Joystick.translation)
319 }
320 
321 // .gz.msgs.Vector3d rotation = 3;
322 inline bool Joystick::has_rotation() const {
323  return this != internal_default_instance() && rotation_ != NULL;
324 }
325 inline const ::gz::msgs::Vector3d& Joystick::_internal_rotation() const {
326  return *rotation_;
327 }
328 inline const ::gz::msgs::Vector3d& Joystick::rotation() const {
329  const ::gz::msgs::Vector3d* p = rotation_;
330  // @@protoc_insertion_point(field_get:gz.msgs.Joystick.rotation)
331  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
333 }
334 inline ::gz::msgs::Vector3d* Joystick::release_rotation() {
335  // @@protoc_insertion_point(field_release:gz.msgs.Joystick.rotation)
336 
337  ::gz::msgs::Vector3d* temp = rotation_;
338  rotation_ = NULL;
339  return temp;
340 }
341 inline ::gz::msgs::Vector3d* Joystick::mutable_rotation() {
342 
343  if (rotation_ == NULL) {
344  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
345  rotation_ = p;
346  }
347  // @@protoc_insertion_point(field_mutable:gz.msgs.Joystick.rotation)
348  return rotation_;
349 }
351  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
352  if (message_arena == NULL) {
353  delete reinterpret_cast< ::google::protobuf::MessageLite*>(rotation_);
354  }
355  if (rotation) {
356  ::google::protobuf::Arena* submessage_arena = NULL;
357  if (message_arena != submessage_arena) {
358  rotation = ::google::protobuf::internal::GetOwnedMessage(
359  message_arena, rotation, submessage_arena);
360  }
361 
362  } else {
363 
364  }
365  rotation_ = rotation;
366  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Joystick.rotation)
367 }
368 
369 // repeated int32 buttons = 4;
370 inline int Joystick::buttons_size() const {
371  return buttons_.size();
372 }
373 inline void Joystick::clear_buttons() {
374  buttons_.Clear();
375 }
376 inline ::google::protobuf::int32 Joystick::buttons(int index) const {
377  // @@protoc_insertion_point(field_get:gz.msgs.Joystick.buttons)
378  return buttons_.Get(index);
379 }
380 inline void Joystick::set_buttons(int index, ::google::protobuf::int32 value) {
381  buttons_.Set(index, value);
382  // @@protoc_insertion_point(field_set:gz.msgs.Joystick.buttons)
383 }
384 inline void Joystick::add_buttons(::google::protobuf::int32 value) {
385  buttons_.Add(value);
386  // @@protoc_insertion_point(field_add:gz.msgs.Joystick.buttons)
387 }
388 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
390  // @@protoc_insertion_point(field_list:gz.msgs.Joystick.buttons)
391  return buttons_;
392 }
393 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
395  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Joystick.buttons)
396  return &buttons_;
397 }
398 
399 #ifdef __GNUC__
400  #pragma GCC diagnostic pop
401 #endif // __GNUC__
402 
403 // @@protoc_insertion_point(namespace_scope)
404 
405 } // namespace msgs
406 } // namespace gz
407 
408 // @@protoc_insertion_point(global_scope)
409 
410 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fjoystick_2eproto