Gazebo Msgs

API Reference

9.5.1
cessna.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/cessna.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcessna_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fcessna_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/header.pb.h"
34 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcessna_2eproto GZ_MSGS_VISIBLE
36 
38 // Internal implementation detail -- do not use these members.
39 struct GZ_MSGS_VISIBLE TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void GZ_MSGS_VISIBLE AddDescriptors();
48 } // namespace protobuf_gz_2fmsgs_2fcessna_2eproto
49 namespace gz {
50 namespace msgs {
51 class Cessna;
52 class CessnaDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern CessnaDefaultTypeInternal _Cessna_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::Cessna* Arena::CreateMaybeMessage<::gz::msgs::Cessna>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE Cessna : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Cessna) */ {
67  public:
68  Cessna();
69  virtual ~Cessna();
70 
71  Cessna(const Cessna& from);
72 
73  inline Cessna& operator=(const Cessna& from) {
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
78  Cessna(Cessna&& from) noexcept
79  : Cessna() {
80  *this = ::std::move(from);
81  }
82 
83  inline Cessna& operator=(Cessna&& from) noexcept {
84  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85  if (this != &from) InternalSwap(&from);
86  } else {
87  CopyFrom(from);
88  }
89  return *this;
90  }
91  #endif
92  static const ::google::protobuf::Descriptor* descriptor();
93  static const Cessna& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
96  static inline const Cessna* internal_default_instance() {
97  return reinterpret_cast<const Cessna*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(Cessna* other);
104  friend void swap(Cessna& a, Cessna& b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline Cessna* New() const final {
111  return CreateMaybeMessage<Cessna>(NULL);
112  }
113 
114  Cessna* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<Cessna>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const Cessna& from);
120  void MergeFrom(const Cessna& from);
121  void Clear() final;
122  bool IsInitialized() const final;
123 
124  size_t ByteSizeLong() const final;
125  bool MergePartialFromCodedStream(
126  ::google::protobuf::io::CodedInputStream* input) final;
127  void SerializeWithCachedSizes(
128  ::google::protobuf::io::CodedOutputStream* output) const final;
129  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130  bool deterministic, ::google::protobuf::uint8* target) const final;
131  int GetCachedSize() const final { return _cached_size_.Get(); }
132 
133  private:
134  void SharedCtor();
135  void SharedDtor();
136  void SetCachedSize(int size) const final;
137  void InternalSwap(Cessna* other);
138  private:
139  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
140  return NULL;
141  }
142  inline void* MaybeArenaPtr() const {
143  return NULL;
144  }
145  public:
146 
147  ::google::protobuf::Metadata GetMetadata() const final;
148 
149  // nested types ----------------------------------------------------
150 
151  // accessors -------------------------------------------------------
152 
153  // .gz.msgs.Header header = 1;
154  bool has_header() const;
155  void clear_header();
156  static const int kHeaderFieldNumber = 1;
157  private:
158  const ::gz::msgs::Header& _internal_header() const;
159  public:
160  const ::gz::msgs::Header& header() const;
161  ::gz::msgs::Header* release_header();
162  ::gz::msgs::Header* mutable_header();
163  void set_allocated_header(::gz::msgs::Header* header);
164 
165  // float propeller_speed = 2;
166  void clear_propeller_speed();
167  static const int kPropellerSpeedFieldNumber = 2;
168  float propeller_speed() const;
169  void set_propeller_speed(float value);
170 
171  // float left_aileron = 3;
172  void clear_left_aileron();
173  static const int kLeftAileronFieldNumber = 3;
174  float left_aileron() const;
175  void set_left_aileron(float value);
176 
177  // float left_flap = 4;
178  void clear_left_flap();
179  static const int kLeftFlapFieldNumber = 4;
180  float left_flap() const;
181  void set_left_flap(float value);
182 
183  // float right_aileron = 5;
184  void clear_right_aileron();
185  static const int kRightAileronFieldNumber = 5;
186  float right_aileron() const;
187  void set_right_aileron(float value);
188 
189  // float right_flap = 6;
190  void clear_right_flap();
191  static const int kRightFlapFieldNumber = 6;
192  float right_flap() const;
193  void set_right_flap(float value);
194 
195  // float elevators = 7;
196  void clear_elevators();
197  static const int kElevatorsFieldNumber = 7;
198  float elevators() const;
199  void set_elevators(float value);
200 
201  // float rudder = 8;
202  void clear_rudder();
203  static const int kRudderFieldNumber = 8;
204  float rudder() const;
205  void set_rudder(float value);
206 
207  // float cmd_propeller_speed = 9;
208  void clear_cmd_propeller_speed();
209  static const int kCmdPropellerSpeedFieldNumber = 9;
210  float cmd_propeller_speed() const;
211  void set_cmd_propeller_speed(float value);
212 
213  // float cmd_left_aileron = 10;
214  void clear_cmd_left_aileron();
215  static const int kCmdLeftAileronFieldNumber = 10;
216  float cmd_left_aileron() const;
217  void set_cmd_left_aileron(float value);
218 
219  // float cmd_left_flap = 11;
220  void clear_cmd_left_flap();
221  static const int kCmdLeftFlapFieldNumber = 11;
222  float cmd_left_flap() const;
223  void set_cmd_left_flap(float value);
224 
225  // float cmd_right_aileron = 12;
226  void clear_cmd_right_aileron();
227  static const int kCmdRightAileronFieldNumber = 12;
228  float cmd_right_aileron() const;
229  void set_cmd_right_aileron(float value);
230 
231  // float cmd_right_flap = 13;
232  void clear_cmd_right_flap();
233  static const int kCmdRightFlapFieldNumber = 13;
234  float cmd_right_flap() const;
235  void set_cmd_right_flap(float value);
236 
237  // float cmd_elevators = 14;
238  void clear_cmd_elevators();
239  static const int kCmdElevatorsFieldNumber = 14;
240  float cmd_elevators() const;
241  void set_cmd_elevators(float value);
242 
243  // float cmd_rudder = 15;
244  void clear_cmd_rudder();
245  static const int kCmdRudderFieldNumber = 15;
246  float cmd_rudder() const;
247  void set_cmd_rudder(float value);
248 
249  // @@protoc_insertion_point(class_scope:gz.msgs.Cessna)
250  private:
251 
252  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
253  ::gz::msgs::Header* header_;
254  float propeller_speed_;
255  float left_aileron_;
256  float left_flap_;
257  float right_aileron_;
258  float right_flap_;
259  float elevators_;
260  float rudder_;
261  float cmd_propeller_speed_;
262  float cmd_left_aileron_;
263  float cmd_left_flap_;
264  float cmd_right_aileron_;
265  float cmd_right_flap_;
266  float cmd_elevators_;
267  float cmd_rudder_;
268  mutable ::google::protobuf::internal::CachedSize _cached_size_;
269  friend struct ::protobuf_gz_2fmsgs_2fcessna_2eproto::TableStruct;
270 };
271 // ===================================================================
272 
273 
274 // ===================================================================
275 
276 #ifdef __GNUC__
277  #pragma GCC diagnostic push
278  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
279 #endif // __GNUC__
280 // Cessna
281 
282 // .gz.msgs.Header header = 1;
283 inline bool Cessna::has_header() const {
284  return this != internal_default_instance() && header_ != NULL;
285 }
286 inline const ::gz::msgs::Header& Cessna::_internal_header() const {
287  return *header_;
288 }
289 inline const ::gz::msgs::Header& Cessna::header() const {
290  const ::gz::msgs::Header* p = header_;
291  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.header)
292  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
294 }
295 inline ::gz::msgs::Header* Cessna::release_header() {
296  // @@protoc_insertion_point(field_release:gz.msgs.Cessna.header)
297 
298  ::gz::msgs::Header* temp = header_;
299  header_ = NULL;
300  return temp;
301 }
302 inline ::gz::msgs::Header* Cessna::mutable_header() {
303 
304  if (header_ == NULL) {
305  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
306  header_ = p;
307  }
308  // @@protoc_insertion_point(field_mutable:gz.msgs.Cessna.header)
309  return header_;
310 }
312  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
313  if (message_arena == NULL) {
314  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
315  }
316  if (header) {
317  ::google::protobuf::Arena* submessage_arena = NULL;
318  if (message_arena != submessage_arena) {
319  header = ::google::protobuf::internal::GetOwnedMessage(
320  message_arena, header, submessage_arena);
321  }
322 
323  } else {
324 
325  }
326  header_ = header;
327  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Cessna.header)
328 }
329 
330 // float propeller_speed = 2;
332  propeller_speed_ = 0;
333 }
334 inline float Cessna::propeller_speed() const {
335  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.propeller_speed)
336  return propeller_speed_;
337 }
338 inline void Cessna::set_propeller_speed(float value) {
339 
340  propeller_speed_ = value;
341  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.propeller_speed)
342 }
343 
344 // float left_aileron = 3;
346  left_aileron_ = 0;
347 }
348 inline float Cessna::left_aileron() const {
349  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.left_aileron)
350  return left_aileron_;
351 }
352 inline void Cessna::set_left_aileron(float value) {
353 
354  left_aileron_ = value;
355  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.left_aileron)
356 }
357 
358 // float left_flap = 4;
359 inline void Cessna::clear_left_flap() {
360  left_flap_ = 0;
361 }
362 inline float Cessna::left_flap() const {
363  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.left_flap)
364  return left_flap_;
365 }
366 inline void Cessna::set_left_flap(float value) {
367 
368  left_flap_ = value;
369  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.left_flap)
370 }
371 
372 // float right_aileron = 5;
374  right_aileron_ = 0;
375 }
376 inline float Cessna::right_aileron() const {
377  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.right_aileron)
378  return right_aileron_;
379 }
380 inline void Cessna::set_right_aileron(float value) {
381 
382  right_aileron_ = value;
383  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.right_aileron)
384 }
385 
386 // float right_flap = 6;
388  right_flap_ = 0;
389 }
390 inline float Cessna::right_flap() const {
391  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.right_flap)
392  return right_flap_;
393 }
394 inline void Cessna::set_right_flap(float value) {
395 
396  right_flap_ = value;
397  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.right_flap)
398 }
399 
400 // float elevators = 7;
401 inline void Cessna::clear_elevators() {
402  elevators_ = 0;
403 }
404 inline float Cessna::elevators() const {
405  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.elevators)
406  return elevators_;
407 }
408 inline void Cessna::set_elevators(float value) {
409 
410  elevators_ = value;
411  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.elevators)
412 }
413 
414 // float rudder = 8;
415 inline void Cessna::clear_rudder() {
416  rudder_ = 0;
417 }
418 inline float Cessna::rudder() const {
419  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.rudder)
420  return rudder_;
421 }
422 inline void Cessna::set_rudder(float value) {
423 
424  rudder_ = value;
425  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.rudder)
426 }
427 
428 // float cmd_propeller_speed = 9;
430  cmd_propeller_speed_ = 0;
431 }
432 inline float Cessna::cmd_propeller_speed() const {
433  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.cmd_propeller_speed)
434  return cmd_propeller_speed_;
435 }
436 inline void Cessna::set_cmd_propeller_speed(float value) {
437 
438  cmd_propeller_speed_ = value;
439  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.cmd_propeller_speed)
440 }
441 
442 // float cmd_left_aileron = 10;
444  cmd_left_aileron_ = 0;
445 }
446 inline float Cessna::cmd_left_aileron() const {
447  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.cmd_left_aileron)
448  return cmd_left_aileron_;
449 }
450 inline void Cessna::set_cmd_left_aileron(float value) {
451 
452  cmd_left_aileron_ = value;
453  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.cmd_left_aileron)
454 }
455 
456 // float cmd_left_flap = 11;
458  cmd_left_flap_ = 0;
459 }
460 inline float Cessna::cmd_left_flap() const {
461  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.cmd_left_flap)
462  return cmd_left_flap_;
463 }
464 inline void Cessna::set_cmd_left_flap(float value) {
465 
466  cmd_left_flap_ = value;
467  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.cmd_left_flap)
468 }
469 
470 // float cmd_right_aileron = 12;
472  cmd_right_aileron_ = 0;
473 }
474 inline float Cessna::cmd_right_aileron() const {
475  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.cmd_right_aileron)
476  return cmd_right_aileron_;
477 }
478 inline void Cessna::set_cmd_right_aileron(float value) {
479 
480  cmd_right_aileron_ = value;
481  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.cmd_right_aileron)
482 }
483 
484 // float cmd_right_flap = 13;
486  cmd_right_flap_ = 0;
487 }
488 inline float Cessna::cmd_right_flap() const {
489  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.cmd_right_flap)
490  return cmd_right_flap_;
491 }
492 inline void Cessna::set_cmd_right_flap(float value) {
493 
494  cmd_right_flap_ = value;
495  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.cmd_right_flap)
496 }
497 
498 // float cmd_elevators = 14;
500  cmd_elevators_ = 0;
501 }
502 inline float Cessna::cmd_elevators() const {
503  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.cmd_elevators)
504  return cmd_elevators_;
505 }
506 inline void Cessna::set_cmd_elevators(float value) {
507 
508  cmd_elevators_ = value;
509  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.cmd_elevators)
510 }
511 
512 // float cmd_rudder = 15;
514  cmd_rudder_ = 0;
515 }
516 inline float Cessna::cmd_rudder() const {
517  // @@protoc_insertion_point(field_get:gz.msgs.Cessna.cmd_rudder)
518  return cmd_rudder_;
519 }
520 inline void Cessna::set_cmd_rudder(float value) {
521 
522  cmd_rudder_ = value;
523  // @@protoc_insertion_point(field_set:gz.msgs.Cessna.cmd_rudder)
524 }
525 
526 #ifdef __GNUC__
527  #pragma GCC diagnostic pop
528 #endif // __GNUC__
529 
530 // @@protoc_insertion_point(namespace_scope)
531 
532 } // namespace msgs
533 } // namespace gz
534 
535 // @@protoc_insertion_point(global_scope)
536 
537 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcessna_2eproto