Gazebo Msgs

API Reference

8.7.0
build/ignition-msgs8/include/ignition/msgs/joy.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/joy.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoy_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoy_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>
34 #ifndef _MSC_VER
35 #pragma GCC system_header
36 #else
37 #pragma warning(push)
38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
39 #endif
40 #ifdef __linux__
41 #include <sys/sysmacros.h>
42 #endif
43 #include <memory>
44 #include <ignition/msgs/Export.hh>
45 // @@protoc_insertion_point(includes)
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fjoy_2eproto IGNITION_MSGS_VISIBLE
47 
49 // Internal implementation detail -- do not use these members.
50 struct IGNITION_MSGS_VISIBLE TableStruct {
51  static const ::google::protobuf::internal::ParseTableField entries[];
52  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
53  static const ::google::protobuf::internal::ParseTable schema[1];
54  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
55  static const ::google::protobuf::internal::SerializationTable serialization_table[];
56  static const ::google::protobuf::uint32 offsets[];
57 };
58 void IGNITION_MSGS_VISIBLE AddDescriptors();
59 } // namespace protobuf_ignition_2fmsgs_2fjoy_2eproto
60 namespace ignition {
61 namespace msgs {
62 class Joy;
63 class JoyDefaultTypeInternal;
64 IGNITION_MSGS_VISIBLE extern JoyDefaultTypeInternal _Joy_default_instance_;
65 } // namespace msgs
66 } // namespace ignition
67 namespace google {
68 namespace protobuf {
69 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Joy* Arena::CreateMaybeMessage<::ignition::msgs::Joy>(Arena*);
70 } // namespace protobuf
71 } // namespace google
72 namespace ignition {
73 namespace msgs {
74 
75 // ===================================================================
76 
77 class IGNITION_MSGS_VISIBLE Joy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Joy) */ {
78  public:
79  Joy();
80  virtual ~Joy();
81 
82  Joy(const Joy& from);
83 
84  inline Joy& operator=(const Joy& from) {
85  CopyFrom(from);
86  return *this;
87  }
88  #if LANG_CXX11
89  Joy(Joy&& from) noexcept
90  : Joy() {
91  *this = ::std::move(from);
92  }
93 
94  inline Joy& operator=(Joy&& from) noexcept {
95  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
96  if (this != &from) InternalSwap(&from);
97  } else {
98  CopyFrom(from);
99  }
100  return *this;
101  }
102  #endif
103  static const ::google::protobuf::Descriptor* descriptor();
104  static const Joy& default_instance();
105 
106  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
107  static inline const Joy* internal_default_instance() {
108  return reinterpret_cast<const Joy*>(
110  }
111  static constexpr int kIndexInFileMessages =
112  0;
113 
114  void Swap(Joy* other);
115  friend void swap(Joy& a, Joy& b) {
116  a.Swap(&b);
117  }
118 
119  // implements Message ----------------------------------------------
120 
121  inline Joy* New() const final {
122  return CreateMaybeMessage<Joy>(NULL);
123  }
124 
125  Joy* New(::google::protobuf::Arena* arena) const final {
126  return CreateMaybeMessage<Joy>(arena);
127  }
128  void CopyFrom(const ::google::protobuf::Message& from) final;
129  void MergeFrom(const ::google::protobuf::Message& from) final;
130  void CopyFrom(const Joy& from);
131  void MergeFrom(const Joy& from);
132  void Clear() final;
133  bool IsInitialized() const final;
134 
135  size_t ByteSizeLong() const final;
136  bool MergePartialFromCodedStream(
137  ::google::protobuf::io::CodedInputStream* input) final;
138  void SerializeWithCachedSizes(
139  ::google::protobuf::io::CodedOutputStream* output) const final;
140  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
141  bool deterministic, ::google::protobuf::uint8* target) const final;
142  int GetCachedSize() const final { return _cached_size_.Get(); }
143 
144  private:
145  void SharedCtor();
146  void SharedDtor();
147  void SetCachedSize(int size) const final;
148  void InternalSwap(Joy* other);
149  private:
150  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
151  return NULL;
152  }
153  inline void* MaybeArenaPtr() const {
154  return NULL;
155  }
156  public:
157 
158  ::google::protobuf::Metadata GetMetadata() const final;
159 
160  // nested types ----------------------------------------------------
161 
162  // accessors -------------------------------------------------------
163 
164  // repeated float axes = 2;
165  int axes_size() const;
166  void clear_axes();
167  static const int kAxesFieldNumber = 2;
168  float axes(int index) const;
169  void set_axes(int index, float value);
170  void add_axes(float value);
171  const ::google::protobuf::RepeatedField< float >&
172  axes() const;
173  ::google::protobuf::RepeatedField< float >*
174  mutable_axes();
175 
176  // repeated int32 buttons = 3;
177  int buttons_size() const;
178  void clear_buttons();
179  static const int kButtonsFieldNumber = 3;
180  ::google::protobuf::int32 buttons(int index) const;
181  void set_buttons(int index, ::google::protobuf::int32 value);
182  void add_buttons(::google::protobuf::int32 value);
183  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
184  buttons() const;
185  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
186  mutable_buttons();
187 
188  // .ignition.msgs.Header header = 1;
189  bool has_header() const;
190  void clear_header();
191  static const int kHeaderFieldNumber = 1;
192  private:
193  const ::ignition::msgs::Header& _internal_header() const;
194  public:
195  const ::ignition::msgs::Header& header() const;
196  ::ignition::msgs::Header* release_header();
197  ::ignition::msgs::Header* mutable_header();
198  void set_allocated_header(::ignition::msgs::Header* header);
199 
200  // @@protoc_insertion_point(class_scope:ignition.msgs.Joy)
201  private:
202 
203  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
204  ::google::protobuf::RepeatedField< float > axes_;
205  mutable int _axes_cached_byte_size_;
206  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > buttons_;
207  mutable int _buttons_cached_byte_size_;
208  ::ignition::msgs::Header* header_;
209  mutable ::google::protobuf::internal::CachedSize _cached_size_;
210  friend struct ::protobuf_ignition_2fmsgs_2fjoy_2eproto::TableStruct;
211 };
212 // ===================================================================
213 
214 
215 // ===================================================================
216 
217 #ifdef __GNUC__
218  #pragma GCC diagnostic push
219  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
220 #endif // __GNUC__
221 // Joy
222 
223 // .ignition.msgs.Header header = 1;
224 inline bool Joy::has_header() const {
225  return this != internal_default_instance() && header_ != NULL;
226 }
227 inline const ::ignition::msgs::Header& Joy::_internal_header() const {
228  return *header_;
229 }
230 inline const ::ignition::msgs::Header& Joy::header() const {
231  const ::ignition::msgs::Header* p = header_;
232  // @@protoc_insertion_point(field_get:ignition.msgs.Joy.header)
233  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
235 }
236 inline ::ignition::msgs::Header* Joy::release_header() {
237  // @@protoc_insertion_point(field_release:ignition.msgs.Joy.header)
238 
239  ::ignition::msgs::Header* temp = header_;
240  header_ = NULL;
241  return temp;
242 }
243 inline ::ignition::msgs::Header* Joy::mutable_header() {
244 
245  if (header_ == NULL) {
246  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
247  header_ = p;
248  }
249  // @@protoc_insertion_point(field_mutable:ignition.msgs.Joy.header)
250  return header_;
251 }
253  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
254  if (message_arena == NULL) {
255  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
256  }
257  if (header) {
258  ::google::protobuf::Arena* submessage_arena = NULL;
259  if (message_arena != submessage_arena) {
260  header = ::google::protobuf::internal::GetOwnedMessage(
261  message_arena, header, submessage_arena);
262  }
263 
264  } else {
265 
266  }
267  header_ = header;
268  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Joy.header)
269 }
270 
271 // repeated float axes = 2;
272 inline int Joy::axes_size() const {
273  return axes_.size();
274 }
275 inline void Joy::clear_axes() {
276  axes_.Clear();
277 }
278 inline float Joy::axes(int index) const {
279  // @@protoc_insertion_point(field_get:ignition.msgs.Joy.axes)
280  return axes_.Get(index);
281 }
282 inline void Joy::set_axes(int index, float value) {
283  axes_.Set(index, value);
284  // @@protoc_insertion_point(field_set:ignition.msgs.Joy.axes)
285 }
286 inline void Joy::add_axes(float value) {
287  axes_.Add(value);
288  // @@protoc_insertion_point(field_add:ignition.msgs.Joy.axes)
289 }
290 inline const ::google::protobuf::RepeatedField< float >&
291 Joy::axes() const {
292  // @@protoc_insertion_point(field_list:ignition.msgs.Joy.axes)
293  return axes_;
294 }
295 inline ::google::protobuf::RepeatedField< float >*
297  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Joy.axes)
298  return &axes_;
299 }
300 
301 // repeated int32 buttons = 3;
302 inline int Joy::buttons_size() const {
303  return buttons_.size();
304 }
305 inline void Joy::clear_buttons() {
306  buttons_.Clear();
307 }
308 inline ::google::protobuf::int32 Joy::buttons(int index) const {
309  // @@protoc_insertion_point(field_get:ignition.msgs.Joy.buttons)
310  return buttons_.Get(index);
311 }
312 inline void Joy::set_buttons(int index, ::google::protobuf::int32 value) {
313  buttons_.Set(index, value);
314  // @@protoc_insertion_point(field_set:ignition.msgs.Joy.buttons)
315 }
316 inline void Joy::add_buttons(::google::protobuf::int32 value) {
317  buttons_.Add(value);
318  // @@protoc_insertion_point(field_add:ignition.msgs.Joy.buttons)
319 }
320 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
321 Joy::buttons() const {
322  // @@protoc_insertion_point(field_list:ignition.msgs.Joy.buttons)
323  return buttons_;
324 }
325 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
327  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Joy.buttons)
328  return &buttons_;
329 }
330 
331 #ifdef __GNUC__
332  #pragma GCC diagnostic pop
333 #endif // __GNUC__
334 
339 // @@protoc_insertion_point(namespace_scope)
340 
341 } // namespace msgs
342 } // namespace ignition
343 
344 #ifdef _MSC_VER
345 #pragma warning(pop)
346 #endif
347 // @@protoc_insertion_point(global_scope)
348 
349 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoy_2eproto
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:48
STL class.
void add_axes(float value)
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:286
int buttons_size() const
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:302
std::shared_ptr< const Joy > ConstJoySharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:338
std::unique_ptr< const Joy > ConstJoyUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:336
::google::protobuf::RepeatedField< ::google::protobuf::int32 > * mutable_buttons()
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:326
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:236
void Swap(Joy *other)
void set_buttons(int index, ::google::protobuf::int32 value)
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:312
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:243
std::unique_ptr< Joy > JoyUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:335
IGNITION_MSGS_VISIBLE JoyDefaultTypeInternal _Joy_default_instance_
void set_axes(int index, float value)
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:282
Joy * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:125
Joy * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:121
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:77
void clear_axes()
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:275
friend void swap(Joy &a, Joy &b)
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:115
int axes_size() const
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:272
const ::google::protobuf::RepeatedField< float > & axes() const
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:291
std::shared_ptr< Joy > JoySharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:337
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:50
static const Joy * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:107
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void IGNITION_MSGS_VISIBLE AddDescriptors()
Definition: build/ignition-msgs8/include/ignition/msgs/header.pb.h:215
bool has_header() const
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:224
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 > & buttons() const
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:321
void clear_buttons()
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:305
void add_buttons(::google::protobuf::int32 value)
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:316
STL class.
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:230
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:78
::google::protobuf::RepeatedField< float > * mutable_axes()
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:296
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:252
Joy & operator=(const Joy &from)
Definition: build/ignition-msgs8/include/ignition/msgs/joy.pb.h:84