Ignition Msgs

API Reference

6.4.0
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_ignition_2fmsgs_2fjoystick_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fjoystick_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoystick_2eproto();
52 
53 class Joystick;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Joystick : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Joystick) */ {
58  public:
59  Joystick();
60  virtual ~Joystick();
61 
62  Joystick(const Joystick& from);
63 
64  inline Joystick& operator=(const Joystick& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Joystick& default_instance();
71 
72  void Swap(Joystick* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Joystick* New() const { return New(NULL); }
77 
78  Joystick* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const Joystick& from);
82  void MergeFrom(const Joystick& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(Joystick* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional .ignition.msgs.Vector3d translation = 2;
127  bool has_translation() const;
128  void clear_translation();
129  static const int kTranslationFieldNumber = 2;
130  const ::ignition::msgs::Vector3d& translation() const;
131  ::ignition::msgs::Vector3d* mutable_translation();
132  ::ignition::msgs::Vector3d* release_translation();
133  void set_allocated_translation(::ignition::msgs::Vector3d* translation);
134 
135  // optional .ignition.msgs.Vector3d rotation = 3;
136  bool has_rotation() const;
137  void clear_rotation();
138  static const int kRotationFieldNumber = 3;
139  const ::ignition::msgs::Vector3d& rotation() const;
140  ::ignition::msgs::Vector3d* mutable_rotation();
141  ::ignition::msgs::Vector3d* release_rotation();
142  void set_allocated_rotation(::ignition::msgs::Vector3d* rotation);
143 
144  // repeated int32 buttons = 4;
145  int buttons_size() const;
146  void clear_buttons();
147  static const int kButtonsFieldNumber = 4;
148  ::google::protobuf::int32 buttons(int index) const;
149  void set_buttons(int index, ::google::protobuf::int32 value);
150  void add_buttons(::google::protobuf::int32 value);
151  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
152  buttons() const;
153  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
154  mutable_buttons();
155 
156  // @@protoc_insertion_point(class_scope:ignition.msgs.Joystick)
157  private:
158 
159  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
160  bool _is_default_instance_;
161  ::ignition::msgs::Header* header_;
162  ::ignition::msgs::Vector3d* translation_;
163  ::ignition::msgs::Vector3d* rotation_;
164  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > buttons_;
165  mutable int _buttons_cached_byte_size_;
166  mutable int _cached_size_;
167  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoystick_2eproto();
170 
171  void InitAsDefaultInstance();
172  static Joystick* default_instance_;
173 };
174 // ===================================================================
175 
176 
177 // ===================================================================
178 
179 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
180 // Joystick
181 
182 // optional .ignition.msgs.Header header = 1;
183 inline bool Joystick::has_header() const {
184  return !_is_default_instance_ && header_ != NULL;
185 }
186 inline void Joystick::clear_header() {
187  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
188  header_ = NULL;
189 }
190 inline const ::ignition::msgs::Header& Joystick::header() const {
191  // @@protoc_insertion_point(field_get:ignition.msgs.Joystick.header)
192  return header_ != NULL ? *header_ : *default_instance_->header_;
193 }
194 inline ::ignition::msgs::Header* Joystick::mutable_header() {
195 
196  if (header_ == NULL) {
197  header_ = new ::ignition::msgs::Header;
198  }
199  // @@protoc_insertion_point(field_mutable:ignition.msgs.Joystick.header)
200  return header_;
201 }
202 inline ::ignition::msgs::Header* Joystick::release_header() {
203  // @@protoc_insertion_point(field_release:ignition.msgs.Joystick.header)
204 
205  ::ignition::msgs::Header* temp = header_;
206  header_ = NULL;
207  return temp;
208 }
210  delete header_;
211  header_ = header;
212  if (header) {
213 
214  } else {
215 
216  }
217  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Joystick.header)
218 }
219 
220 // optional .ignition.msgs.Vector3d translation = 2;
221 inline bool Joystick::has_translation() const {
222  return !_is_default_instance_ && translation_ != NULL;
223 }
225  if (GetArenaNoVirtual() == NULL && translation_ != NULL) delete translation_;
226  translation_ = NULL;
227 }
228 inline const ::ignition::msgs::Vector3d& Joystick::translation() const {
229  // @@protoc_insertion_point(field_get:ignition.msgs.Joystick.translation)
230  return translation_ != NULL ? *translation_ : *default_instance_->translation_;
231 }
232 inline ::ignition::msgs::Vector3d* Joystick::mutable_translation() {
233 
234  if (translation_ == NULL) {
235  translation_ = new ::ignition::msgs::Vector3d;
236  }
237  // @@protoc_insertion_point(field_mutable:ignition.msgs.Joystick.translation)
238  return translation_;
239 }
240 inline ::ignition::msgs::Vector3d* Joystick::release_translation() {
241  // @@protoc_insertion_point(field_release:ignition.msgs.Joystick.translation)
242 
243  ::ignition::msgs::Vector3d* temp = translation_;
244  translation_ = NULL;
245  return temp;
246 }
248  delete translation_;
249  translation_ = translation;
250  if (translation) {
251 
252  } else {
253 
254  }
255  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Joystick.translation)
256 }
257 
258 // optional .ignition.msgs.Vector3d rotation = 3;
259 inline bool Joystick::has_rotation() const {
260  return !_is_default_instance_ && rotation_ != NULL;
261 }
263  if (GetArenaNoVirtual() == NULL && rotation_ != NULL) delete rotation_;
264  rotation_ = NULL;
265 }
266 inline const ::ignition::msgs::Vector3d& Joystick::rotation() const {
267  // @@protoc_insertion_point(field_get:ignition.msgs.Joystick.rotation)
268  return rotation_ != NULL ? *rotation_ : *default_instance_->rotation_;
269 }
270 inline ::ignition::msgs::Vector3d* Joystick::mutable_rotation() {
271 
272  if (rotation_ == NULL) {
273  rotation_ = new ::ignition::msgs::Vector3d;
274  }
275  // @@protoc_insertion_point(field_mutable:ignition.msgs.Joystick.rotation)
276  return rotation_;
277 }
278 inline ::ignition::msgs::Vector3d* Joystick::release_rotation() {
279  // @@protoc_insertion_point(field_release:ignition.msgs.Joystick.rotation)
280 
281  ::ignition::msgs::Vector3d* temp = rotation_;
282  rotation_ = NULL;
283  return temp;
284 }
286  delete rotation_;
287  rotation_ = rotation;
288  if (rotation) {
289 
290  } else {
291 
292  }
293  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Joystick.rotation)
294 }
295 
296 // repeated int32 buttons = 4;
297 inline int Joystick::buttons_size() const {
298  return buttons_.size();
299 }
300 inline void Joystick::clear_buttons() {
301  buttons_.Clear();
302 }
303 inline ::google::protobuf::int32 Joystick::buttons(int index) const {
304  // @@protoc_insertion_point(field_get:ignition.msgs.Joystick.buttons)
305  return buttons_.Get(index);
306 }
307 inline void Joystick::set_buttons(int index, ::google::protobuf::int32 value) {
308  buttons_.Set(index, value);
309  // @@protoc_insertion_point(field_set:ignition.msgs.Joystick.buttons)
310 }
311 inline void Joystick::add_buttons(::google::protobuf::int32 value) {
312  buttons_.Add(value);
313  // @@protoc_insertion_point(field_add:ignition.msgs.Joystick.buttons)
314 }
315 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
317  // @@protoc_insertion_point(field_list:ignition.msgs.Joystick.buttons)
318  return buttons_;
319 }
320 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
322  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Joystick.buttons)
323  return &buttons_;
324 }
325 
326 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
327 
332 // @@protoc_insertion_point(namespace_scope)
333 
334 } // namespace msgs
335 } // namespace ignition
336 
337 #ifdef _MSC_VER
338 #pragma warning(pop)
339 #endif
340 // @@protoc_insertion_point(global_scope)
341 
342 #endif // PROTOBUF_ignition_2fmsgs_2fjoystick_2eproto__INCLUDED
::ignition::msgs::Header * mutable_header()
Definition: joystick.pb.h:194
void set_allocated_rotation(::ignition::msgs::Vector3d *rotation)
Definition: joystick.pb.h:285
std::unique_ptr< Joystick > JoystickUniquePtr
Definition: joystick.pb.h:328
void set_buttons(int index, ::google::protobuf::int32 value)
Definition: joystick.pb.h:307
int buttons_size() const
Definition: joystick.pb.h:297
::ignition::msgs::Header * release_header()
Definition: joystick.pb.h:202
std::shared_ptr< const Joystick > ConstJoystickSharedPtr
Definition: joystick.pb.h:331
Definition: joystick.pb.h:57
std::unique_ptr< const Joystick > ConstJoystickUniquePtr
Definition: joystick.pb.h:329
void clear_rotation()
Definition: joystick.pb.h:262
void protobuf_AssignDesc_ignition_2fmsgs_2fjoystick_2eproto()
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 > & buttons() const
Definition: joystick.pb.h:316
void clear_buttons()
Definition: joystick.pb.h:300
bool has_header() const
Definition: joystick.pb.h:183
bool has_translation() const
Definition: joystick.pb.h:221
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: joystick.pb.h:93
Definition: header.pb.h:161
void protobuf_ShutdownFile_ignition_2fmsgs_2fjoystick_2eproto()
std::shared_ptr< Joystick > JoystickSharedPtr
Definition: joystick.pb.h:330
::ignition::msgs::Vector3d * mutable_rotation()
Definition: joystick.pb.h:270
Joystick * New() const
Definition: joystick.pb.h:76
::ignition::msgs::Vector3d * release_rotation()
Definition: joystick.pb.h:278
const ::ignition::msgs::Header & header() const
Definition: joystick.pb.h:190
::ignition::msgs::Vector3d * release_translation()
Definition: joystick.pb.h:240
::ignition::msgs::Vector3d * mutable_translation()
Definition: joystick.pb.h:232
void clear_header()
Definition: joystick.pb.h:186
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoystick_2eproto()
void set_allocated_translation(::ignition::msgs::Vector3d *translation)
Definition: joystick.pb.h:247
bool has_rotation() const
Definition: joystick.pb.h:259
Definition: vector3d.pb.h:56
void clear_translation()
Definition: joystick.pb.h:224
STL class.
void add_buttons(::google::protobuf::int32 value)
Definition: joystick.pb.h:311
void set_allocated_header(::ignition::msgs::Header *header)
Definition: joystick.pb.h:209
const ::ignition::msgs::Vector3d & rotation() const
Definition: joystick.pb.h:266
const ::ignition::msgs::Vector3d & translation() const
Definition: joystick.pb.h:228
::google::protobuf::RepeatedField< ::google::protobuf::int32 > * mutable_buttons()
Definition: joystick.pb.h:321
int GetCachedSize() const
Definition: joystick.pb.h:96
Joystick & operator=(const Joystick &from)
Definition: joystick.pb.h:64