JaiaBot 2.1.1
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
control_surfaces.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/control_surfaces.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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 <boost/units/quantity.hpp>
34#include <boost/units/absolute.hpp>
35#include <boost/units/dimensionless_type.hpp>
36#include <boost/units/make_scaled_unit.hpp>
37// @@protoc_insertion_point(includes)
38#include <google/protobuf/port_def.inc>
39#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
40PROTOBUF_NAMESPACE_OPEN
41namespace internal {
42class AnyMetadata;
43} // namespace internal
44PROTOBUF_NAMESPACE_CLOSE
45
46// Internal implementation detail -- do not use these members.
50extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto;
51namespace jaiabot {
52namespace protobuf {
53class ControlSurfaces;
54struct ControlSurfacesDefaultTypeInternal;
55extern ControlSurfacesDefaultTypeInternal _ControlSurfaces_default_instance_;
56} // namespace protobuf
57} // namespace jaiabot
58PROTOBUF_NAMESPACE_OPEN
59template<> ::jaiabot::protobuf::ControlSurfaces* Arena::CreateMaybeMessage<::jaiabot::protobuf::ControlSurfaces>(Arena*);
60PROTOBUF_NAMESPACE_CLOSE
61namespace jaiabot {
62namespace protobuf {
63
64// ===================================================================
65
66class ControlSurfaces final :
67 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.ControlSurfaces) */ {
68 public:
69 inline ControlSurfaces() : ControlSurfaces(nullptr) {}
70 ~ControlSurfaces() override;
71 explicit PROTOBUF_CONSTEXPR ControlSurfaces(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
72
75 : ControlSurfaces() {
76 *this = ::std::move(from);
77 }
78
80 CopyFrom(from);
81 return *this;
82 }
83 inline ControlSurfaces& operator=(ControlSurfaces&& from) noexcept {
84 if (this == &from) return *this;
85 if (GetOwningArena() == from.GetOwningArena()
86 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
87 && GetOwningArena() != nullptr
88 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
89 ) {
90 InternalSwap(&from);
91 } else {
92 CopyFrom(from);
93 }
94 return *this;
95 }
96
97 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
98 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
99 }
100 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
101 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
102 }
103
104 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
105 return GetDescriptor();
106 }
107 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
108 return default_instance().GetMetadata().descriptor;
109 }
110 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
111 return default_instance().GetMetadata().reflection;
112 }
115 }
117 return reinterpret_cast<const ControlSurfaces*>(
119 }
120 static constexpr int kIndexInFileMessages =
121 0;
122
124 a.Swap(&b);
125 }
126 inline void Swap(ControlSurfaces* other) {
127 if (other == this) return;
128 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
129 if (GetOwningArena() != nullptr &&
130 GetOwningArena() == other->GetOwningArena()) {
131 #else // PROTOBUF_FORCE_COPY_IN_SWAP
132 if (GetOwningArena() == other->GetOwningArena()) {
133 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
134 InternalSwap(other);
135 } else {
136 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
137 }
138 }
140 if (other == this) return;
141 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
142 InternalSwap(other);
143 }
144
145 // implements Message ----------------------------------------------
146
147 ControlSurfaces* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
148 return CreateMaybeMessage<ControlSurfaces>(arena);
149 }
150 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
151 void CopyFrom(const ControlSurfaces& from);
152 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
153 void MergeFrom( const ControlSurfaces& from) {
154 ControlSurfaces::MergeImpl(*this, from);
155 }
156 private:
157 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
158 public:
159 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
160 bool IsInitialized() const final;
161
162 size_t ByteSizeLong() const final;
163 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
165 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
166 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
167
168 private:
169 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
170 void SharedDtor();
171 void SetCachedSize(int size) const final;
172 void InternalSwap(ControlSurfaces* other);
173
174 private:
175 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
176 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
177 return "jaiabot.protobuf.ControlSurfaces";
178 }
179 protected:
180 explicit ControlSurfaces(::PROTOBUF_NAMESPACE_ID::Arena* arena,
181 bool is_message_owned = false);
182 public:
183
184 static const ClassData _class_data_;
185 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
186
187 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
188
189 // nested types ----------------------------------------------------
190
191 // accessors -------------------------------------------------------
192
193 enum : int {
200 };
201 // required sint32 motor = 1;
202 bool has_motor() const;
203 private:
204 bool _internal_has_motor() const;
205 public:
206 void clear_motor();
207 int32_t motor() const;
208 void set_motor(int32_t value);
209 private:
210 int32_t _internal_motor() const;
211 void _internal_set_motor(int32_t value);
212 public:
213
214 // required sint32 port_elevator = 2;
215 bool has_port_elevator() const;
216 private:
217 bool _internal_has_port_elevator() const;
218 public:
219 void clear_port_elevator();
220 int32_t port_elevator() const;
221 void set_port_elevator(int32_t value);
222 private:
223 int32_t _internal_port_elevator() const;
224 void _internal_set_port_elevator(int32_t value);
225 public:
226
227 // required sint32 stbd_elevator = 3;
228 bool has_stbd_elevator() const;
229 private:
230 bool _internal_has_stbd_elevator() const;
231 public:
232 void clear_stbd_elevator();
233 int32_t stbd_elevator() const;
234 void set_stbd_elevator(int32_t value);
235 private:
236 int32_t _internal_stbd_elevator() const;
237 void _internal_set_stbd_elevator(int32_t value);
238 public:
239
240 // required sint32 rudder = 4;
241 bool has_rudder() const;
242 private:
243 bool _internal_has_rudder() const;
244 public:
245 void clear_rudder();
246 int32_t rudder() const;
247 void set_rudder(int32_t value);
248 private:
249 int32_t _internal_rudder() const;
250 void _internal_set_rudder(int32_t value);
251 public:
252
253 // required sint32 timeout = 5;
254 bool has_timeout() const;
255 private:
256 bool _internal_has_timeout() const;
257 public:
258 void clear_timeout();
259 int32_t timeout() const;
260 void set_timeout(int32_t value);
261 private:
262 int32_t _internal_timeout() const;
263 void _internal_set_timeout(int32_t value);
264 public:
265
266 // required bool led_switch_on = 6;
267 bool has_led_switch_on() const;
268 private:
269 bool _internal_has_led_switch_on() const;
270 public:
271 void clear_led_switch_on();
272 bool led_switch_on() const;
273 void set_led_switch_on(bool value);
274 private:
275 bool _internal_led_switch_on() const;
276 void _internal_set_led_switch_on(bool value);
277 public:
278
279 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.ControlSurfaces)
280 private:
281 class _Internal;
282
283 // helper for ByteSizeLong()
284 size_t RequiredFieldsByteSizeFallback() const;
285
286 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
287 typedef void InternalArenaConstructable_;
288 typedef void DestructorSkippable_;
289 struct Impl_ {
290 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
291 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
292 int32_t motor_;
293 int32_t port_elevator_;
294 int32_t stbd_elevator_;
295 int32_t rudder_;
296 int32_t timeout_;
297 bool led_switch_on_;
298 };
299 union { Impl_ _impl_; };
300 friend struct ::TableStruct_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto;
301};
302// ===================================================================
303
304
305// ===================================================================
306
307#ifdef __GNUC__
308 #pragma GCC diagnostic push
309 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
310#endif // __GNUC__
311// ControlSurfaces
312
313// required sint32 motor = 1;
314inline bool ControlSurfaces::_internal_has_motor() const {
315 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
316 return value;
317}
318inline bool ControlSurfaces::has_motor() const {
319 return _internal_has_motor();
320}
322 _impl_.motor_ = 0;
323 _impl_._has_bits_[0] &= ~0x00000001u;
324}
325inline int32_t ControlSurfaces::_internal_motor() const {
326 return _impl_.motor_;
327}
328inline int32_t ControlSurfaces::motor() const {
329 // @@protoc_insertion_point(field_get:jaiabot.protobuf.ControlSurfaces.motor)
330 return _internal_motor();
331}
332inline void ControlSurfaces::_internal_set_motor(int32_t value) {
333 _impl_._has_bits_[0] |= 0x00000001u;
334 _impl_.motor_ = value;
335}
336inline void ControlSurfaces::set_motor(int32_t value) {
337 _internal_set_motor(value);
338 // @@protoc_insertion_point(field_set:jaiabot.protobuf.ControlSurfaces.motor)
339}
340
341// required sint32 port_elevator = 2;
342inline bool ControlSurfaces::_internal_has_port_elevator() const {
343 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
344 return value;
345}
347 return _internal_has_port_elevator();
348}
350 _impl_.port_elevator_ = 0;
351 _impl_._has_bits_[0] &= ~0x00000002u;
352}
353inline int32_t ControlSurfaces::_internal_port_elevator() const {
354 return _impl_.port_elevator_;
355}
356inline int32_t ControlSurfaces::port_elevator() const {
357 // @@protoc_insertion_point(field_get:jaiabot.protobuf.ControlSurfaces.port_elevator)
358 return _internal_port_elevator();
359}
360inline void ControlSurfaces::_internal_set_port_elevator(int32_t value) {
361 _impl_._has_bits_[0] |= 0x00000002u;
362 _impl_.port_elevator_ = value;
363}
364inline void ControlSurfaces::set_port_elevator(int32_t value) {
365 _internal_set_port_elevator(value);
366 // @@protoc_insertion_point(field_set:jaiabot.protobuf.ControlSurfaces.port_elevator)
367}
368
369// required sint32 stbd_elevator = 3;
370inline bool ControlSurfaces::_internal_has_stbd_elevator() const {
371 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
372 return value;
373}
375 return _internal_has_stbd_elevator();
376}
378 _impl_.stbd_elevator_ = 0;
379 _impl_._has_bits_[0] &= ~0x00000004u;
380}
381inline int32_t ControlSurfaces::_internal_stbd_elevator() const {
382 return _impl_.stbd_elevator_;
383}
384inline int32_t ControlSurfaces::stbd_elevator() const {
385 // @@protoc_insertion_point(field_get:jaiabot.protobuf.ControlSurfaces.stbd_elevator)
386 return _internal_stbd_elevator();
387}
388inline void ControlSurfaces::_internal_set_stbd_elevator(int32_t value) {
389 _impl_._has_bits_[0] |= 0x00000004u;
390 _impl_.stbd_elevator_ = value;
391}
392inline void ControlSurfaces::set_stbd_elevator(int32_t value) {
393 _internal_set_stbd_elevator(value);
394 // @@protoc_insertion_point(field_set:jaiabot.protobuf.ControlSurfaces.stbd_elevator)
395}
396
397// required sint32 rudder = 4;
398inline bool ControlSurfaces::_internal_has_rudder() const {
399 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
400 return value;
401}
402inline bool ControlSurfaces::has_rudder() const {
403 return _internal_has_rudder();
404}
406 _impl_.rudder_ = 0;
407 _impl_._has_bits_[0] &= ~0x00000008u;
408}
409inline int32_t ControlSurfaces::_internal_rudder() const {
410 return _impl_.rudder_;
411}
412inline int32_t ControlSurfaces::rudder() const {
413 // @@protoc_insertion_point(field_get:jaiabot.protobuf.ControlSurfaces.rudder)
414 return _internal_rudder();
415}
416inline void ControlSurfaces::_internal_set_rudder(int32_t value) {
417 _impl_._has_bits_[0] |= 0x00000008u;
418 _impl_.rudder_ = value;
419}
420inline void ControlSurfaces::set_rudder(int32_t value) {
421 _internal_set_rudder(value);
422 // @@protoc_insertion_point(field_set:jaiabot.protobuf.ControlSurfaces.rudder)
423}
424
425// required sint32 timeout = 5;
426inline bool ControlSurfaces::_internal_has_timeout() const {
427 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
428 return value;
429}
430inline bool ControlSurfaces::has_timeout() const {
431 return _internal_has_timeout();
432}
434 _impl_.timeout_ = 0;
435 _impl_._has_bits_[0] &= ~0x00000010u;
436}
437inline int32_t ControlSurfaces::_internal_timeout() const {
438 return _impl_.timeout_;
439}
440inline int32_t ControlSurfaces::timeout() const {
441 // @@protoc_insertion_point(field_get:jaiabot.protobuf.ControlSurfaces.timeout)
442 return _internal_timeout();
443}
444inline void ControlSurfaces::_internal_set_timeout(int32_t value) {
445 _impl_._has_bits_[0] |= 0x00000010u;
446 _impl_.timeout_ = value;
447}
448inline void ControlSurfaces::set_timeout(int32_t value) {
449 _internal_set_timeout(value);
450 // @@protoc_insertion_point(field_set:jaiabot.protobuf.ControlSurfaces.timeout)
451}
452
453// required bool led_switch_on = 6;
454inline bool ControlSurfaces::_internal_has_led_switch_on() const {
455 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
456 return value;
457}
459 return _internal_has_led_switch_on();
460}
462 _impl_.led_switch_on_ = false;
463 _impl_._has_bits_[0] &= ~0x00000020u;
464}
465inline bool ControlSurfaces::_internal_led_switch_on() const {
466 return _impl_.led_switch_on_;
467}
469 // @@protoc_insertion_point(field_get:jaiabot.protobuf.ControlSurfaces.led_switch_on)
470 return _internal_led_switch_on();
471}
472inline void ControlSurfaces::_internal_set_led_switch_on(bool value) {
473 _impl_._has_bits_[0] |= 0x00000020u;
474 _impl_.led_switch_on_ = value;
475}
476inline void ControlSurfaces::set_led_switch_on(bool value) {
477 _internal_set_led_switch_on(value);
478 // @@protoc_insertion_point(field_set:jaiabot.protobuf.ControlSurfaces.led_switch_on)
479}
480
481#ifdef __GNUC__
482 #pragma GCC diagnostic pop
483#endif // __GNUC__
484
485// @@protoc_insertion_point(namespace_scope)
486
487} // namespace protobuf
488} // namespace jaiabot
489
490// @@protoc_insertion_point(global_scope)
491
492#include <google/protobuf/port_undef.inc>
493#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
ControlSurfaces(ControlSurfaces &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void Swap(ControlSurfaces *other)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
ControlSurfaces(const ControlSurfaces &from)
friend void swap(ControlSurfaces &a, ControlSurfaces &b)
ControlSurfaces(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void CopyFrom(const ControlSurfaces &from)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void MergeFrom(const ControlSurfaces &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
size_t ByteSizeLong() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
ControlSurfaces & operator=(ControlSurfaces &&from) noexcept
PROTOBUF_CONSTEXPR ControlSurfaces(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
ControlSurfaces & operator=(const ControlSurfaces &from)
static const ControlSurfaces * internal_default_instance()
ControlSurfaces * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static const ControlSurfaces & default_instance()
void UnsafeArenaSwap(ControlSurfaces *other)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
ControlSurfacesDefaultTypeInternal _ControlSurfaces_default_instance_