Gazebo Msgs

API Reference

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