Ignition Msgs

API Reference

8.2.0
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_ignition_2fmsgs_2fjoy_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fjoy_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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
48 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoy_2eproto();
51 
52 class Joy;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Joy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Joy) */ {
57  public:
58  Joy();
59  virtual ~Joy();
60 
61  Joy(const Joy& from);
62 
63  inline Joy& operator=(const Joy& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Joy& default_instance();
70 
71  void Swap(Joy* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Joy* New() const { return New(NULL); }
76 
77  Joy* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const Joy& from);
81  void MergeFrom(const Joy& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(Joy* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // repeated float axes = 2;
126  int axes_size() const;
127  void clear_axes();
128  static const int kAxesFieldNumber = 2;
129  float axes(int index) const;
130  void set_axes(int index, float value);
131  void add_axes(float value);
132  const ::google::protobuf::RepeatedField< float >&
133  axes() const;
134  ::google::protobuf::RepeatedField< float >*
135  mutable_axes();
136 
137  // repeated int32 buttons = 3;
138  int buttons_size() const;
139  void clear_buttons();
140  static const int kButtonsFieldNumber = 3;
141  ::google::protobuf::int32 buttons(int index) const;
142  void set_buttons(int index, ::google::protobuf::int32 value);
143  void add_buttons(::google::protobuf::int32 value);
144  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
145  buttons() const;
146  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
147  mutable_buttons();
148 
149  // @@protoc_insertion_point(class_scope:ignition.msgs.Joy)
150  private:
151 
152  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
153  bool _is_default_instance_;
154  ::ignition::msgs::Header* header_;
155  ::google::protobuf::RepeatedField< float > axes_;
156  mutable int _axes_cached_byte_size_;
157  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > buttons_;
158  mutable int _buttons_cached_byte_size_;
159  mutable int _cached_size_;
160  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoy_2eproto();
163 
164  void InitAsDefaultInstance();
165  static Joy* default_instance_;
166 };
167 // ===================================================================
168 
169 
170 // ===================================================================
171 
172 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
173 // Joy
174 
175 // optional .ignition.msgs.Header header = 1;
176 inline bool Joy::has_header() const {
177  return !_is_default_instance_ && header_ != NULL;
178 }
179 inline void Joy::clear_header() {
180  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
181  header_ = NULL;
182 }
183 inline const ::ignition::msgs::Header& Joy::header() const {
184  // @@protoc_insertion_point(field_get:ignition.msgs.Joy.header)
185  return header_ != NULL ? *header_ : *default_instance_->header_;
186 }
187 inline ::ignition::msgs::Header* Joy::mutable_header() {
188 
189  if (header_ == NULL) {
190  header_ = new ::ignition::msgs::Header;
191  }
192  // @@protoc_insertion_point(field_mutable:ignition.msgs.Joy.header)
193  return header_;
194 }
195 inline ::ignition::msgs::Header* Joy::release_header() {
196  // @@protoc_insertion_point(field_release:ignition.msgs.Joy.header)
197 
198  ::ignition::msgs::Header* temp = header_;
199  header_ = NULL;
200  return temp;
201 }
203  delete header_;
204  header_ = header;
205  if (header) {
206 
207  } else {
208 
209  }
210  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Joy.header)
211 }
212 
213 // repeated float axes = 2;
214 inline int Joy::axes_size() const {
215  return axes_.size();
216 }
217 inline void Joy::clear_axes() {
218  axes_.Clear();
219 }
220 inline float Joy::axes(int index) const {
221  // @@protoc_insertion_point(field_get:ignition.msgs.Joy.axes)
222  return axes_.Get(index);
223 }
224 inline void Joy::set_axes(int index, float value) {
225  axes_.Set(index, value);
226  // @@protoc_insertion_point(field_set:ignition.msgs.Joy.axes)
227 }
228 inline void Joy::add_axes(float value) {
229  axes_.Add(value);
230  // @@protoc_insertion_point(field_add:ignition.msgs.Joy.axes)
231 }
232 inline const ::google::protobuf::RepeatedField< float >&
233 Joy::axes() const {
234  // @@protoc_insertion_point(field_list:ignition.msgs.Joy.axes)
235  return axes_;
236 }
237 inline ::google::protobuf::RepeatedField< float >*
239  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Joy.axes)
240  return &axes_;
241 }
242 
243 // repeated int32 buttons = 3;
244 inline int Joy::buttons_size() const {
245  return buttons_.size();
246 }
247 inline void Joy::clear_buttons() {
248  buttons_.Clear();
249 }
250 inline ::google::protobuf::int32 Joy::buttons(int index) const {
251  // @@protoc_insertion_point(field_get:ignition.msgs.Joy.buttons)
252  return buttons_.Get(index);
253 }
254 inline void Joy::set_buttons(int index, ::google::protobuf::int32 value) {
255  buttons_.Set(index, value);
256  // @@protoc_insertion_point(field_set:ignition.msgs.Joy.buttons)
257 }
258 inline void Joy::add_buttons(::google::protobuf::int32 value) {
259  buttons_.Add(value);
260  // @@protoc_insertion_point(field_add:ignition.msgs.Joy.buttons)
261 }
262 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
263 Joy::buttons() const {
264  // @@protoc_insertion_point(field_list:ignition.msgs.Joy.buttons)
265  return buttons_;
266 }
267 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
269  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Joy.buttons)
270  return &buttons_;
271 }
272 
273 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
274 
279 // @@protoc_insertion_point(namespace_scope)
280 
281 } // namespace msgs
282 } // namespace ignition
283 
284 #ifdef _MSC_VER
285 #pragma warning(pop)
286 #endif
287 // @@protoc_insertion_point(global_scope)
288 
289 #endif // PROTOBUF_ignition_2fmsgs_2fjoy_2eproto__INCLUDED
Joy * New() const
Definition: joy.pb.h:75
bool has_header() const
Definition: joy.pb.h:176
int buttons_size() const
Definition: joy.pb.h:244
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoy_2eproto()
::google::protobuf::RepeatedField< ::google::protobuf::int32 > * mutable_buttons()
Definition: joy.pb.h:268
void set_allocated_header(::ignition::msgs::Header *header)
Definition: joy.pb.h:202
::ignition::msgs::Header * mutable_header()
Definition: joy.pb.h:187
void clear_header()
Definition: joy.pb.h:179
std::unique_ptr< const Joy > ConstJoyUniquePtr
Definition: joy.pb.h:276
int GetCachedSize() const
Definition: joy.pb.h:95
int axes_size() const
Definition: joy.pb.h:214
void clear_axes()
Definition: joy.pb.h:217
Definition: header.pb.h:161
std::shared_ptr< Joy > JoySharedPtr
Definition: joy.pb.h:277
void protobuf_ShutdownFile_ignition_2fmsgs_2fjoy_2eproto()
::ignition::msgs::Header * release_header()
Definition: joy.pb.h:195
std::unique_ptr< Joy > JoyUniquePtr
Definition: joy.pb.h:275
void set_buttons(int index, ::google::protobuf::int32 value)
Definition: joy.pb.h:254
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: joy.pb.h:92
void protobuf_AssignDesc_ignition_2fmsgs_2fjoy_2eproto()
Definition: joy.pb.h:56
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 > & buttons() const
Definition: joy.pb.h:263
std::shared_ptr< const Joy > ConstJoySharedPtr
Definition: joy.pb.h:278
void set_axes(int index, float value)
Definition: joy.pb.h:224
void clear_buttons()
Definition: joy.pb.h:247
void add_buttons(::google::protobuf::int32 value)
Definition: joy.pb.h:258
STL class.
::google::protobuf::RepeatedField< float > * mutable_axes()
Definition: joy.pb.h:238
Joy & operator=(const Joy &from)
Definition: joy.pb.h:63
const ::google::protobuf::RepeatedField< float > & axes() const
Definition: joy.pb.h:233
const ::ignition::msgs::Header & header() const
Definition: joy.pb.h:183
void add_axes(float value)
Definition: joy.pb.h:228