JaiaBot 2.1.1
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
feather.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/feather.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ffeather_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ffeather_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/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
34#include "nanopb.pb.h"
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
39// @@protoc_insertion_point(includes)
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2ffeather_2eproto
42PROTOBUF_NAMESPACE_OPEN
43namespace internal {
44class AnyMetadata;
45} // namespace internal
46PROTOBUF_NAMESPACE_CLOSE
47
48// Internal implementation detail -- do not use these members.
50 static const uint32_t offsets[];
51};
52extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2ffeather_2eproto;
53namespace jaiabot {
54namespace protobuf {
55class LoRaMessage;
56struct LoRaMessageDefaultTypeInternal;
57extern LoRaMessageDefaultTypeInternal _LoRaMessage_default_instance_;
58class LoRaMessage_ControlSurfaces;
59struct LoRaMessage_ControlSurfacesDefaultTypeInternal;
60extern LoRaMessage_ControlSurfacesDefaultTypeInternal _LoRaMessage_ControlSurfaces_default_instance_;
61} // namespace protobuf
62} // namespace jaiabot
63PROTOBUF_NAMESPACE_OPEN
64template<> ::jaiabot::protobuf::LoRaMessage* Arena::CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage>(Arena*);
65template<> ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* Arena::CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage_ControlSurfaces>(Arena*);
66PROTOBUF_NAMESPACE_CLOSE
67namespace jaiabot {
68namespace protobuf {
69
70enum LoRaMessage_MessageType : int {
79};
84
85const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LoRaMessage_MessageType_descriptor();
86template<typename T>
87inline const std::string& LoRaMessage_MessageType_Name(T enum_t_value) {
88 static_assert(::std::is_same<T, LoRaMessage_MessageType>::value ||
89 ::std::is_integral<T>::value,
90 "Incorrect type passed to function LoRaMessage_MessageType_Name.");
91 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
93}
95 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LoRaMessage_MessageType* value) {
96 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoRaMessage_MessageType>(
98}
105};
110
111const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LoRaMessage_ModemConfigChoice_descriptor();
112template<typename T>
113inline const std::string& LoRaMessage_ModemConfigChoice_Name(T enum_t_value) {
114 static_assert(::std::is_same<T, LoRaMessage_ModemConfigChoice>::value ||
115 ::std::is_integral<T>::value,
116 "Incorrect type passed to function LoRaMessage_ModemConfigChoice_Name.");
117 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
119}
121 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LoRaMessage_ModemConfigChoice* value) {
122 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoRaMessage_ModemConfigChoice>(
124}
125// ===================================================================
126
127class LoRaMessage_ControlSurfaces final :
128 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.LoRaMessage.ControlSurfaces) */ {
129 public:
132 explicit PROTOBUF_CONSTEXPR LoRaMessage_ControlSurfaces(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
133
137 *this = ::std::move(from);
138 }
139
141 CopyFrom(from);
142 return *this;
143 }
145 if (this == &from) return *this;
146 if (GetOwningArena() == from.GetOwningArena()
147 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
148 && GetOwningArena() != nullptr
149 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
150 ) {
151 InternalSwap(&from);
152 } else {
153 CopyFrom(from);
154 }
155 return *this;
156 }
157
158 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
159 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
160 }
161 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
162 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
163 }
164
165 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
166 return GetDescriptor();
167 }
168 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
169 return default_instance().GetMetadata().descriptor;
170 }
171 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
172 return default_instance().GetMetadata().reflection;
173 }
176 }
178 return reinterpret_cast<const LoRaMessage_ControlSurfaces*>(
180 }
181 static constexpr int kIndexInFileMessages =
182 0;
183
185 a.Swap(&b);
186 }
187 inline void Swap(LoRaMessage_ControlSurfaces* other) {
188 if (other == this) return;
189 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
190 if (GetOwningArena() != nullptr &&
191 GetOwningArena() == other->GetOwningArena()) {
192 #else // PROTOBUF_FORCE_COPY_IN_SWAP
193 if (GetOwningArena() == other->GetOwningArena()) {
194 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
195 InternalSwap(other);
196 } else {
197 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
198 }
199 }
201 if (other == this) return;
202 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
203 InternalSwap(other);
204 }
205
206 // implements Message ----------------------------------------------
207
208 LoRaMessage_ControlSurfaces* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
209 return CreateMaybeMessage<LoRaMessage_ControlSurfaces>(arena);
210 }
211 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
212 void CopyFrom(const LoRaMessage_ControlSurfaces& from);
213 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
214 void MergeFrom( const LoRaMessage_ControlSurfaces& from) {
215 LoRaMessage_ControlSurfaces::MergeImpl(*this, from);
216 }
217 private:
218 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
219 public:
220 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
221 bool IsInitialized() const final;
222
223 size_t ByteSizeLong() const final;
224 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
225 uint8_t* _InternalSerialize(
226 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
227 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
228
229 private:
230 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
231 void SharedDtor();
232 void SetCachedSize(int size) const final;
233 void InternalSwap(LoRaMessage_ControlSurfaces* other);
234
235 private:
236 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
237 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
238 return "jaiabot.protobuf.LoRaMessage.ControlSurfaces";
239 }
240 protected:
241 explicit LoRaMessage_ControlSurfaces(::PROTOBUF_NAMESPACE_ID::Arena* arena,
242 bool is_message_owned = false);
243 public:
244
245 static const ClassData _class_data_;
246 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
247
248 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
249
250 // nested types ----------------------------------------------------
251
252 // accessors -------------------------------------------------------
253
254 enum : int {
259 };
260 // required sint32 motor = 1;
261 bool has_motor() const;
262 private:
263 bool _internal_has_motor() const;
264 public:
265 void clear_motor();
266 int32_t motor() const;
267 void set_motor(int32_t value);
268 private:
269 int32_t _internal_motor() const;
270 void _internal_set_motor(int32_t value);
271 public:
272
273 // required sint32 port_elevator = 2;
274 bool has_port_elevator() const;
275 private:
276 bool _internal_has_port_elevator() const;
277 public:
278 void clear_port_elevator();
279 int32_t port_elevator() const;
280 void set_port_elevator(int32_t value);
281 private:
282 int32_t _internal_port_elevator() const;
283 void _internal_set_port_elevator(int32_t value);
284 public:
285
286 // required sint32 stbd_elevator = 3;
287 bool has_stbd_elevator() const;
288 private:
289 bool _internal_has_stbd_elevator() const;
290 public:
291 void clear_stbd_elevator();
292 int32_t stbd_elevator() const;
293 void set_stbd_elevator(int32_t value);
294 private:
295 int32_t _internal_stbd_elevator() const;
296 void _internal_set_stbd_elevator(int32_t value);
297 public:
298
299 // required sint32 rudder = 4;
300 bool has_rudder() const;
301 private:
302 bool _internal_has_rudder() const;
303 public:
304 void clear_rudder();
305 int32_t rudder() const;
306 void set_rudder(int32_t value);
307 private:
308 int32_t _internal_rudder() const;
309 void _internal_set_rudder(int32_t value);
310 public:
311
312 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.LoRaMessage.ControlSurfaces)
313 private:
314 class _Internal;
315
316 // helper for ByteSizeLong()
317 size_t RequiredFieldsByteSizeFallback() const;
318
319 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
320 typedef void InternalArenaConstructable_;
321 typedef void DestructorSkippable_;
322 struct Impl_ {
323 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
324 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
325 int32_t motor_;
326 int32_t port_elevator_;
327 int32_t stbd_elevator_;
328 int32_t rudder_;
329 };
330 union { Impl_ _impl_; };
331 friend struct ::TableStruct_jaiabot_2fmessages_2ffeather_2eproto;
332};
333// -------------------------------------------------------------------
334
335class LoRaMessage final :
336 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.LoRaMessage) */ {
337 public:
338 inline LoRaMessage() : LoRaMessage(nullptr) {}
339 ~LoRaMessage() override;
340 explicit PROTOBUF_CONSTEXPR LoRaMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
341
342 LoRaMessage(const LoRaMessage& from);
343 LoRaMessage(LoRaMessage&& from) noexcept
344 : LoRaMessage() {
345 *this = ::std::move(from);
346 }
347
348 inline LoRaMessage& operator=(const LoRaMessage& from) {
349 CopyFrom(from);
350 return *this;
351 }
352 inline LoRaMessage& operator=(LoRaMessage&& from) noexcept {
353 if (this == &from) return *this;
354 if (GetOwningArena() == from.GetOwningArena()
355 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
356 && GetOwningArena() != nullptr
357 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
358 ) {
359 InternalSwap(&from);
360 } else {
361 CopyFrom(from);
362 }
363 return *this;
364 }
365
366 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
367 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
368 }
369 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
370 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
371 }
372
373 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
374 return GetDescriptor();
375 }
376 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
377 return default_instance().GetMetadata().descriptor;
378 }
379 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
380 return default_instance().GetMetadata().reflection;
381 }
382 static const LoRaMessage& default_instance() {
383 return *internal_default_instance();
384 }
385 static inline const LoRaMessage* internal_default_instance() {
386 return reinterpret_cast<const LoRaMessage*>(
388 }
389 static constexpr int kIndexInFileMessages =
390 1;
391
392 friend void swap(LoRaMessage& a, LoRaMessage& b) {
393 a.Swap(&b);
394 }
395 inline void Swap(LoRaMessage* other) {
396 if (other == this) return;
397 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
398 if (GetOwningArena() != nullptr &&
399 GetOwningArena() == other->GetOwningArena()) {
400 #else // PROTOBUF_FORCE_COPY_IN_SWAP
401 if (GetOwningArena() == other->GetOwningArena()) {
402 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
403 InternalSwap(other);
404 } else {
405 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
406 }
407 }
408 void UnsafeArenaSwap(LoRaMessage* other) {
409 if (other == this) return;
410 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
411 InternalSwap(other);
412 }
413
414 // implements Message ----------------------------------------------
415
416 LoRaMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
417 return CreateMaybeMessage<LoRaMessage>(arena);
418 }
419 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
420 void CopyFrom(const LoRaMessage& from);
421 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
422 void MergeFrom( const LoRaMessage& from) {
423 LoRaMessage::MergeImpl(*this, from);
424 }
425 private:
426 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
427 public:
428 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
429 bool IsInitialized() const final;
430
431 size_t ByteSizeLong() const final;
432 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
433 uint8_t* _InternalSerialize(
434 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
435 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
436
437 private:
438 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
439 void SharedDtor();
440 void SetCachedSize(int size) const final;
441 void InternalSwap(LoRaMessage* other);
442
443 private:
444 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
445 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
446 return "jaiabot.protobuf.LoRaMessage";
447 }
448 protected:
449 explicit LoRaMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
450 bool is_message_owned = false);
451 public:
452
453 static const ClassData _class_data_;
454 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
455
456 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
457
458 // nested types ----------------------------------------------------
459
460 typedef LoRaMessage_ControlSurfaces ControlSurfaces;
461
462 typedef LoRaMessage_MessageType MessageType;
463 static constexpr MessageType LORA_DATA =
464 LoRaMessage_MessageType_LORA_DATA;
465 static constexpr MessageType SET_PARAMETERS =
466 LoRaMessage_MessageType_SET_PARAMETERS;
467 static constexpr MessageType PARAMETERS_ACCEPTED =
468 LoRaMessage_MessageType_PARAMETERS_ACCEPTED;
469 static constexpr MessageType PARAMETERS_REJECTED =
470 LoRaMessage_MessageType_PARAMETERS_REJECTED;
471 static constexpr MessageType FEATHER_READY =
472 LoRaMessage_MessageType_FEATHER_READY;
473 static constexpr MessageType TRANSMIT_RESULT =
474 LoRaMessage_MessageType_TRANSMIT_RESULT;
475 static constexpr MessageType LOW_CONTROL =
476 LoRaMessage_MessageType_LOW_CONTROL;
477 static constexpr MessageType DEBUG_MESSAGE =
478 LoRaMessage_MessageType_DEBUG_MESSAGE;
479 static inline bool MessageType_IsValid(int value) {
481 }
482 static constexpr MessageType MessageType_MIN =
484 static constexpr MessageType MessageType_MAX =
486 static constexpr int MessageType_ARRAYSIZE =
488 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
489 MessageType_descriptor() {
491 }
492 template<typename T>
493 static inline const std::string& MessageType_Name(T enum_t_value) {
494 static_assert(::std::is_same<T, MessageType>::value ||
495 ::std::is_integral<T>::value,
496 "Incorrect type passed to function MessageType_Name.");
497 return LoRaMessage_MessageType_Name(enum_t_value);
498 }
499 static inline bool MessageType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
500 MessageType* value) {
501 return LoRaMessage_MessageType_Parse(name, value);
502 }
503
504 typedef LoRaMessage_ModemConfigChoice ModemConfigChoice;
505 static constexpr ModemConfigChoice Bw125Cr45Sf128 =
507 static constexpr ModemConfigChoice Bw500Cr45Sf128 =
509 static constexpr ModemConfigChoice Bw31_25Cr48Sf512 =
511 static constexpr ModemConfigChoice Bw125Cr48Sf4096 =
513 static constexpr ModemConfigChoice Bw125Cr45Sf2048 =
515 static inline bool ModemConfigChoice_IsValid(int value) {
517 }
518 static constexpr ModemConfigChoice ModemConfigChoice_MIN =
520 static constexpr ModemConfigChoice ModemConfigChoice_MAX =
522 static constexpr int ModemConfigChoice_ARRAYSIZE =
524 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
525 ModemConfigChoice_descriptor() {
527 }
528 template<typename T>
529 static inline const std::string& ModemConfigChoice_Name(T enum_t_value) {
530 static_assert(::std::is_same<T, ModemConfigChoice>::value ||
531 ::std::is_integral<T>::value,
532 "Incorrect type passed to function ModemConfigChoice_Name.");
533 return LoRaMessage_ModemConfigChoice_Name(enum_t_value);
534 }
535 static inline bool ModemConfigChoice_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
536 ModemConfigChoice* value) {
537 return LoRaMessage_ModemConfigChoice_Parse(name, value);
538 }
539
540 // accessors -------------------------------------------------------
541
542 enum : int {
543 kDataFieldNumber = 3,
544 kControlFieldNumber = 30,
545 kSrcFieldNumber = 1,
546 kDestFieldNumber = 2,
547 kIdFieldNumber = 5,
548 kFlagsFieldNumber = 6,
549 kRssiFieldNumber = 7,
550 kTransmitSuccessfulFieldNumber = 10,
551 kTxPowerFieldNumber = 21,
552 kTypeFieldNumber = 4,
553 kModemConfigFieldNumber = 20,
554 };
555 // optional bytes data = 3 [(.nanopb) = {
556 bool has_data() const;
557 private:
558 bool _internal_has_data() const;
559 public:
560 void clear_data();
561 const std::string& data() const;
562 template <typename ArgT0 = const std::string&, typename... ArgT>
563 void set_data(ArgT0&& arg0, ArgT... args);
564 std::string* mutable_data();
565 PROTOBUF_NODISCARD std::string* release_data();
566 void set_allocated_data(std::string* data);
567 private:
568 const std::string& _internal_data() const;
569 inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value);
570 std::string* _internal_mutable_data();
571 public:
572
573 // optional .jaiabot.protobuf.LoRaMessage.ControlSurfaces control = 30;
574 bool has_control() const;
575 private:
576 bool _internal_has_control() const;
577 public:
578 void clear_control();
579 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& control() const;
580 PROTOBUF_NODISCARD ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* release_control();
582 void set_allocated_control(::jaiabot::protobuf::LoRaMessage_ControlSurfaces* control);
583 private:
584 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& _internal_control() const;
585 ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* _internal_mutable_control();
586 public:
587 void unsafe_arena_set_allocated_control(
589 ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* unsafe_arena_release_control();
590
591 // required int32 src = 1;
592 bool has_src() const;
593 private:
594 bool _internal_has_src() const;
595 public:
596 void clear_src();
597 int32_t src() const;
598 void set_src(int32_t value);
599 private:
600 int32_t _internal_src() const;
601 void _internal_set_src(int32_t value);
602 public:
603
604 // required int32 dest = 2;
605 bool has_dest() const;
606 private:
607 bool _internal_has_dest() const;
608 public:
609 void clear_dest();
610 int32_t dest() const;
611 void set_dest(int32_t value);
612 private:
613 int32_t _internal_dest() const;
614 void _internal_set_dest(int32_t value);
615 public:
616
617 // optional int32 id = 5;
618 bool has_id() const;
619 private:
620 bool _internal_has_id() const;
621 public:
622 void clear_id();
623 int32_t id() const;
624 void set_id(int32_t value);
625 private:
626 int32_t _internal_id() const;
627 void _internal_set_id(int32_t value);
628 public:
629
630 // optional int32 flags = 6;
631 bool has_flags() const;
632 private:
633 bool _internal_has_flags() const;
634 public:
635 void clear_flags();
636 int32_t flags() const;
637 void set_flags(int32_t value);
638 private:
639 int32_t _internal_flags() const;
640 void _internal_set_flags(int32_t value);
641 public:
642
643 // optional sint32 rssi = 7;
644 bool has_rssi() const;
645 private:
646 bool _internal_has_rssi() const;
647 public:
648 void clear_rssi();
649 int32_t rssi() const;
650 void set_rssi(int32_t value);
651 private:
652 int32_t _internal_rssi() const;
653 void _internal_set_rssi(int32_t value);
654 public:
655
656 // optional bool transmit_successful = 10;
657 bool has_transmit_successful() const;
658 private:
659 bool _internal_has_transmit_successful() const;
660 public:
661 void clear_transmit_successful();
662 bool transmit_successful() const;
663 void set_transmit_successful(bool value);
664 private:
665 bool _internal_transmit_successful() const;
666 void _internal_set_transmit_successful(bool value);
667 public:
668
669 // optional int32 tx_power = 21 [default = 13];
670 bool has_tx_power() const;
671 private:
672 bool _internal_has_tx_power() const;
673 public:
674 void clear_tx_power();
675 int32_t tx_power() const;
676 void set_tx_power(int32_t value);
677 private:
678 int32_t _internal_tx_power() const;
679 void _internal_set_tx_power(int32_t value);
680 public:
681
682 // required .jaiabot.protobuf.LoRaMessage.MessageType type = 4 [default = LORA_DATA];
683 bool has_type() const;
684 private:
685 bool _internal_has_type() const;
686 public:
687 void clear_type();
690 private:
692 void _internal_set_type(::jaiabot::protobuf::LoRaMessage_MessageType value);
693 public:
694
695 // optional .jaiabot.protobuf.LoRaMessage.ModemConfigChoice modem_config = 20 [default = Bw125Cr45Sf128];
696 bool has_modem_config() const;
697 private:
698 bool _internal_has_modem_config() const;
699 public:
700 void clear_modem_config();
702 void set_modem_config(::jaiabot::protobuf::LoRaMessage_ModemConfigChoice value);
703 private:
704 ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice _internal_modem_config() const;
705 void _internal_set_modem_config(::jaiabot::protobuf::LoRaMessage_ModemConfigChoice value);
706 public:
707
708 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.LoRaMessage)
709 private:
710 class _Internal;
711
712 // helper for ByteSizeLong()
713 size_t RequiredFieldsByteSizeFallback() const;
714
715 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
716 typedef void InternalArenaConstructable_;
717 typedef void DestructorSkippable_;
718 struct Impl_ {
719 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
720 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
721 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
723 int32_t src_;
724 int32_t dest_;
725 int32_t id_;
726 int32_t flags_;
727 int32_t rssi_;
728 bool transmit_successful_;
729 int32_t tx_power_;
730 int type_;
731 int modem_config_;
732 };
733 union { Impl_ _impl_; };
734 friend struct ::TableStruct_jaiabot_2fmessages_2ffeather_2eproto;
735};
736// ===================================================================
737
738
739// ===================================================================
740
741#ifdef __GNUC__
742 #pragma GCC diagnostic push
743 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
744#endif // __GNUC__
745// LoRaMessage_ControlSurfaces
746
747// required sint32 motor = 1;
748inline bool LoRaMessage_ControlSurfaces::_internal_has_motor() const {
749 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
750 return value;
751}
752inline bool LoRaMessage_ControlSurfaces::has_motor() const {
753 return _internal_has_motor();
754}
755inline void LoRaMessage_ControlSurfaces::clear_motor() {
756 _impl_.motor_ = 0;
757 _impl_._has_bits_[0] &= ~0x00000001u;
758}
759inline int32_t LoRaMessage_ControlSurfaces::_internal_motor() const {
760 return _impl_.motor_;
761}
762inline int32_t LoRaMessage_ControlSurfaces::motor() const {
763 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.ControlSurfaces.motor)
764 return _internal_motor();
765}
766inline void LoRaMessage_ControlSurfaces::_internal_set_motor(int32_t value) {
767 _impl_._has_bits_[0] |= 0x00000001u;
768 _impl_.motor_ = value;
769}
770inline void LoRaMessage_ControlSurfaces::set_motor(int32_t value) {
771 _internal_set_motor(value);
772 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.ControlSurfaces.motor)
773}
774
775// required sint32 port_elevator = 2;
776inline bool LoRaMessage_ControlSurfaces::_internal_has_port_elevator() const {
777 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
778 return value;
779}
780inline bool LoRaMessage_ControlSurfaces::has_port_elevator() const {
781 return _internal_has_port_elevator();
782}
783inline void LoRaMessage_ControlSurfaces::clear_port_elevator() {
784 _impl_.port_elevator_ = 0;
785 _impl_._has_bits_[0] &= ~0x00000002u;
786}
787inline int32_t LoRaMessage_ControlSurfaces::_internal_port_elevator() const {
788 return _impl_.port_elevator_;
789}
790inline int32_t LoRaMessage_ControlSurfaces::port_elevator() const {
791 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.ControlSurfaces.port_elevator)
792 return _internal_port_elevator();
793}
794inline void LoRaMessage_ControlSurfaces::_internal_set_port_elevator(int32_t value) {
795 _impl_._has_bits_[0] |= 0x00000002u;
796 _impl_.port_elevator_ = value;
797}
798inline void LoRaMessage_ControlSurfaces::set_port_elevator(int32_t value) {
799 _internal_set_port_elevator(value);
800 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.ControlSurfaces.port_elevator)
801}
802
803// required sint32 stbd_elevator = 3;
804inline bool LoRaMessage_ControlSurfaces::_internal_has_stbd_elevator() const {
805 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
806 return value;
807}
808inline bool LoRaMessage_ControlSurfaces::has_stbd_elevator() const {
809 return _internal_has_stbd_elevator();
810}
811inline void LoRaMessage_ControlSurfaces::clear_stbd_elevator() {
812 _impl_.stbd_elevator_ = 0;
813 _impl_._has_bits_[0] &= ~0x00000004u;
814}
815inline int32_t LoRaMessage_ControlSurfaces::_internal_stbd_elevator() const {
816 return _impl_.stbd_elevator_;
817}
818inline int32_t LoRaMessage_ControlSurfaces::stbd_elevator() const {
819 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.ControlSurfaces.stbd_elevator)
820 return _internal_stbd_elevator();
821}
822inline void LoRaMessage_ControlSurfaces::_internal_set_stbd_elevator(int32_t value) {
823 _impl_._has_bits_[0] |= 0x00000004u;
824 _impl_.stbd_elevator_ = value;
825}
826inline void LoRaMessage_ControlSurfaces::set_stbd_elevator(int32_t value) {
827 _internal_set_stbd_elevator(value);
828 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.ControlSurfaces.stbd_elevator)
829}
830
831// required sint32 rudder = 4;
832inline bool LoRaMessage_ControlSurfaces::_internal_has_rudder() const {
833 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
834 return value;
835}
836inline bool LoRaMessage_ControlSurfaces::has_rudder() const {
837 return _internal_has_rudder();
838}
839inline void LoRaMessage_ControlSurfaces::clear_rudder() {
840 _impl_.rudder_ = 0;
841 _impl_._has_bits_[0] &= ~0x00000008u;
842}
843inline int32_t LoRaMessage_ControlSurfaces::_internal_rudder() const {
844 return _impl_.rudder_;
845}
846inline int32_t LoRaMessage_ControlSurfaces::rudder() const {
847 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.ControlSurfaces.rudder)
848 return _internal_rudder();
849}
850inline void LoRaMessage_ControlSurfaces::_internal_set_rudder(int32_t value) {
851 _impl_._has_bits_[0] |= 0x00000008u;
852 _impl_.rudder_ = value;
853}
854inline void LoRaMessage_ControlSurfaces::set_rudder(int32_t value) {
855 _internal_set_rudder(value);
856 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.ControlSurfaces.rudder)
857}
858
859// -------------------------------------------------------------------
860
861// LoRaMessage
862
863// required int32 src = 1;
864inline bool LoRaMessage::_internal_has_src() const {
865 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
866 return value;
867}
868inline bool LoRaMessage::has_src() const {
869 return _internal_has_src();
870}
871inline void LoRaMessage::clear_src() {
872 _impl_.src_ = 0;
873 _impl_._has_bits_[0] &= ~0x00000004u;
874}
875inline int32_t LoRaMessage::_internal_src() const {
876 return _impl_.src_;
877}
878inline int32_t LoRaMessage::src() const {
879 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.src)
880 return _internal_src();
881}
882inline void LoRaMessage::_internal_set_src(int32_t value) {
883 _impl_._has_bits_[0] |= 0x00000004u;
884 _impl_.src_ = value;
885}
886inline void LoRaMessage::set_src(int32_t value) {
887 _internal_set_src(value);
888 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.src)
889}
890
891// required int32 dest = 2;
892inline bool LoRaMessage::_internal_has_dest() const {
893 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
894 return value;
895}
896inline bool LoRaMessage::has_dest() const {
897 return _internal_has_dest();
898}
899inline void LoRaMessage::clear_dest() {
900 _impl_.dest_ = 0;
901 _impl_._has_bits_[0] &= ~0x00000008u;
902}
903inline int32_t LoRaMessage::_internal_dest() const {
904 return _impl_.dest_;
905}
906inline int32_t LoRaMessage::dest() const {
907 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.dest)
908 return _internal_dest();
909}
910inline void LoRaMessage::_internal_set_dest(int32_t value) {
911 _impl_._has_bits_[0] |= 0x00000008u;
912 _impl_.dest_ = value;
913}
914inline void LoRaMessage::set_dest(int32_t value) {
915 _internal_set_dest(value);
916 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.dest)
917}
918
919// optional bytes data = 3 [(.nanopb) = {
920inline bool LoRaMessage::_internal_has_data() const {
921 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
922 return value;
923}
924inline bool LoRaMessage::has_data() const {
925 return _internal_has_data();
926}
927inline void LoRaMessage::clear_data() {
928 _impl_.data_.ClearToEmpty();
929 _impl_._has_bits_[0] &= ~0x00000001u;
930}
931inline const std::string& LoRaMessage::data() const {
932 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.data)
933 return _internal_data();
934}
935template <typename ArgT0, typename... ArgT>
936inline PROTOBUF_ALWAYS_INLINE
937void LoRaMessage::set_data(ArgT0&& arg0, ArgT... args) {
938 _impl_._has_bits_[0] |= 0x00000001u;
939 _impl_.data_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
940 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.data)
941}
942inline std::string* LoRaMessage::mutable_data() {
943 std::string* _s = _internal_mutable_data();
944 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.LoRaMessage.data)
945 return _s;
946}
947inline const std::string& LoRaMessage::_internal_data() const {
948 return _impl_.data_.Get();
949}
950inline void LoRaMessage::_internal_set_data(const std::string& value) {
951 _impl_._has_bits_[0] |= 0x00000001u;
952 _impl_.data_.Set(value, GetArenaForAllocation());
953}
954inline std::string* LoRaMessage::_internal_mutable_data() {
955 _impl_._has_bits_[0] |= 0x00000001u;
956 return _impl_.data_.Mutable(GetArenaForAllocation());
957}
958inline std::string* LoRaMessage::release_data() {
959 // @@protoc_insertion_point(field_release:jaiabot.protobuf.LoRaMessage.data)
960 if (!_internal_has_data()) {
961 return nullptr;
962 }
963 _impl_._has_bits_[0] &= ~0x00000001u;
964 auto* p = _impl_.data_.Release();
965#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
966 if (_impl_.data_.IsDefault()) {
967 _impl_.data_.Set("", GetArenaForAllocation());
968 }
969#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
970 return p;
971}
972inline void LoRaMessage::set_allocated_data(std::string* data) {
973 if (data != nullptr) {
974 _impl_._has_bits_[0] |= 0x00000001u;
975 } else {
976 _impl_._has_bits_[0] &= ~0x00000001u;
977 }
978 _impl_.data_.SetAllocated(data, GetArenaForAllocation());
979#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
980 if (_impl_.data_.IsDefault()) {
981 _impl_.data_.Set("", GetArenaForAllocation());
982 }
983#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
984 // @@protoc_insertion_point(field_set_allocated:jaiabot.protobuf.LoRaMessage.data)
985}
986
987// required .jaiabot.protobuf.LoRaMessage.MessageType type = 4 [default = LORA_DATA];
988inline bool LoRaMessage::_internal_has_type() const {
989 bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
990 return value;
991}
992inline bool LoRaMessage::has_type() const {
993 return _internal_has_type();
994}
995inline void LoRaMessage::clear_type() {
996 _impl_.type_ = 1;
997 _impl_._has_bits_[0] &= ~0x00000200u;
998}
999inline ::jaiabot::protobuf::LoRaMessage_MessageType LoRaMessage::_internal_type() const {
1000 return static_cast< ::jaiabot::protobuf::LoRaMessage_MessageType >(_impl_.type_);
1001}
1002inline ::jaiabot::protobuf::LoRaMessage_MessageType LoRaMessage::type() const {
1003 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.type)
1004 return _internal_type();
1005}
1006inline void LoRaMessage::_internal_set_type(::jaiabot::protobuf::LoRaMessage_MessageType value) {
1008 _impl_._has_bits_[0] |= 0x00000200u;
1009 _impl_.type_ = value;
1010}
1011inline void LoRaMessage::set_type(::jaiabot::protobuf::LoRaMessage_MessageType value) {
1012 _internal_set_type(value);
1013 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.type)
1014}
1015
1016// optional int32 id = 5;
1017inline bool LoRaMessage::_internal_has_id() const {
1018 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1019 return value;
1020}
1021inline bool LoRaMessage::has_id() const {
1022 return _internal_has_id();
1023}
1024inline void LoRaMessage::clear_id() {
1025 _impl_.id_ = 0;
1026 _impl_._has_bits_[0] &= ~0x00000010u;
1027}
1028inline int32_t LoRaMessage::_internal_id() const {
1029 return _impl_.id_;
1030}
1031inline int32_t LoRaMessage::id() const {
1032 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.id)
1033 return _internal_id();
1034}
1035inline void LoRaMessage::_internal_set_id(int32_t value) {
1036 _impl_._has_bits_[0] |= 0x00000010u;
1037 _impl_.id_ = value;
1038}
1039inline void LoRaMessage::set_id(int32_t value) {
1040 _internal_set_id(value);
1041 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.id)
1042}
1043
1044// optional int32 flags = 6;
1045inline bool LoRaMessage::_internal_has_flags() const {
1046 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1047 return value;
1048}
1049inline bool LoRaMessage::has_flags() const {
1050 return _internal_has_flags();
1051}
1052inline void LoRaMessage::clear_flags() {
1053 _impl_.flags_ = 0;
1054 _impl_._has_bits_[0] &= ~0x00000020u;
1055}
1056inline int32_t LoRaMessage::_internal_flags() const {
1057 return _impl_.flags_;
1058}
1059inline int32_t LoRaMessage::flags() const {
1060 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.flags)
1061 return _internal_flags();
1062}
1063inline void LoRaMessage::_internal_set_flags(int32_t value) {
1064 _impl_._has_bits_[0] |= 0x00000020u;
1065 _impl_.flags_ = value;
1066}
1067inline void LoRaMessage::set_flags(int32_t value) {
1068 _internal_set_flags(value);
1069 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.flags)
1070}
1071
1072// optional sint32 rssi = 7;
1073inline bool LoRaMessage::_internal_has_rssi() const {
1074 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
1075 return value;
1076}
1077inline bool LoRaMessage::has_rssi() const {
1078 return _internal_has_rssi();
1079}
1080inline void LoRaMessage::clear_rssi() {
1081 _impl_.rssi_ = 0;
1082 _impl_._has_bits_[0] &= ~0x00000040u;
1083}
1084inline int32_t LoRaMessage::_internal_rssi() const {
1085 return _impl_.rssi_;
1086}
1087inline int32_t LoRaMessage::rssi() const {
1088 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.rssi)
1089 return _internal_rssi();
1090}
1091inline void LoRaMessage::_internal_set_rssi(int32_t value) {
1092 _impl_._has_bits_[0] |= 0x00000040u;
1093 _impl_.rssi_ = value;
1094}
1095inline void LoRaMessage::set_rssi(int32_t value) {
1096 _internal_set_rssi(value);
1097 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.rssi)
1098}
1099
1100// optional bool transmit_successful = 10;
1101inline bool LoRaMessage::_internal_has_transmit_successful() const {
1102 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
1103 return value;
1104}
1105inline bool LoRaMessage::has_transmit_successful() const {
1106 return _internal_has_transmit_successful();
1107}
1108inline void LoRaMessage::clear_transmit_successful() {
1109 _impl_.transmit_successful_ = false;
1110 _impl_._has_bits_[0] &= ~0x00000080u;
1111}
1112inline bool LoRaMessage::_internal_transmit_successful() const {
1113 return _impl_.transmit_successful_;
1114}
1115inline bool LoRaMessage::transmit_successful() const {
1116 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.transmit_successful)
1117 return _internal_transmit_successful();
1118}
1119inline void LoRaMessage::_internal_set_transmit_successful(bool value) {
1120 _impl_._has_bits_[0] |= 0x00000080u;
1121 _impl_.transmit_successful_ = value;
1122}
1123inline void LoRaMessage::set_transmit_successful(bool value) {
1124 _internal_set_transmit_successful(value);
1125 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.transmit_successful)
1126}
1127
1128// optional .jaiabot.protobuf.LoRaMessage.ModemConfigChoice modem_config = 20 [default = Bw125Cr45Sf128];
1129inline bool LoRaMessage::_internal_has_modem_config() const {
1130 bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
1131 return value;
1132}
1133inline bool LoRaMessage::has_modem_config() const {
1134 return _internal_has_modem_config();
1135}
1136inline void LoRaMessage::clear_modem_config() {
1137 _impl_.modem_config_ = 1;
1138 _impl_._has_bits_[0] &= ~0x00000400u;
1139}
1140inline ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice LoRaMessage::_internal_modem_config() const {
1141 return static_cast< ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice >(_impl_.modem_config_);
1142}
1143inline ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice LoRaMessage::modem_config() const {
1144 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.modem_config)
1145 return _internal_modem_config();
1146}
1147inline void LoRaMessage::_internal_set_modem_config(::jaiabot::protobuf::LoRaMessage_ModemConfigChoice value) {
1149 _impl_._has_bits_[0] |= 0x00000400u;
1150 _impl_.modem_config_ = value;
1151}
1152inline void LoRaMessage::set_modem_config(::jaiabot::protobuf::LoRaMessage_ModemConfigChoice value) {
1153 _internal_set_modem_config(value);
1154 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.modem_config)
1155}
1156
1157// optional int32 tx_power = 21 [default = 13];
1158inline bool LoRaMessage::_internal_has_tx_power() const {
1159 bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
1160 return value;
1161}
1162inline bool LoRaMessage::has_tx_power() const {
1163 return _internal_has_tx_power();
1164}
1165inline void LoRaMessage::clear_tx_power() {
1166 _impl_.tx_power_ = 13;
1167 _impl_._has_bits_[0] &= ~0x00000100u;
1168}
1169inline int32_t LoRaMessage::_internal_tx_power() const {
1170 return _impl_.tx_power_;
1171}
1172inline int32_t LoRaMessage::tx_power() const {
1173 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.tx_power)
1174 return _internal_tx_power();
1175}
1176inline void LoRaMessage::_internal_set_tx_power(int32_t value) {
1177 _impl_._has_bits_[0] |= 0x00000100u;
1178 _impl_.tx_power_ = value;
1179}
1180inline void LoRaMessage::set_tx_power(int32_t value) {
1181 _internal_set_tx_power(value);
1182 // @@protoc_insertion_point(field_set:jaiabot.protobuf.LoRaMessage.tx_power)
1183}
1184
1185// optional .jaiabot.protobuf.LoRaMessage.ControlSurfaces control = 30;
1186inline bool LoRaMessage::_internal_has_control() const {
1187 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1188 PROTOBUF_ASSUME(!value || _impl_.control_ != nullptr);
1189 return value;
1190}
1191inline bool LoRaMessage::has_control() const {
1192 return _internal_has_control();
1193}
1194inline void LoRaMessage::clear_control() {
1195 if (_impl_.control_ != nullptr) _impl_.control_->Clear();
1196 _impl_._has_bits_[0] &= ~0x00000002u;
1197}
1198inline const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& LoRaMessage::_internal_control() const {
1199 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* p = _impl_.control_;
1200 return p != nullptr ? *p : reinterpret_cast<const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces&>(
1202}
1203inline const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& LoRaMessage::control() const {
1204 // @@protoc_insertion_point(field_get:jaiabot.protobuf.LoRaMessage.control)
1205 return _internal_control();
1206}
1207inline void LoRaMessage::unsafe_arena_set_allocated_control(
1209 if (GetArenaForAllocation() == nullptr) {
1210 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.control_);
1211 }
1212 _impl_.control_ = control;
1213 if (control) {
1214 _impl_._has_bits_[0] |= 0x00000002u;
1215 } else {
1216 _impl_._has_bits_[0] &= ~0x00000002u;
1217 }
1218 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.LoRaMessage.control)
1219}
1220inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::release_control() {
1221 _impl_._has_bits_[0] &= ~0x00000002u;
1223 _impl_.control_ = nullptr;
1224#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1225 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1226 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1227 if (GetArenaForAllocation() == nullptr) { delete old; }
1228#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1229 if (GetArenaForAllocation() != nullptr) {
1230 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1231 }
1232#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1233 return temp;
1234}
1235inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::unsafe_arena_release_control() {
1236 // @@protoc_insertion_point(field_release:jaiabot.protobuf.LoRaMessage.control)
1237 _impl_._has_bits_[0] &= ~0x00000002u;
1239 _impl_.control_ = nullptr;
1240 return temp;
1241}
1242inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::_internal_mutable_control() {
1243 _impl_._has_bits_[0] |= 0x00000002u;
1244 if (_impl_.control_ == nullptr) {
1246 _impl_.control_ = p;
1247 }
1248 return _impl_.control_;
1249}
1250inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::mutable_control() {
1251 ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* _msg = _internal_mutable_control();
1252 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.LoRaMessage.control)
1253 return _msg;
1254}
1255inline void LoRaMessage::set_allocated_control(::jaiabot::protobuf::LoRaMessage_ControlSurfaces* control) {
1256 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1257 if (message_arena == nullptr) {
1258 delete _impl_.control_;
1259 }
1260 if (control) {
1261 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1262 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(control);
1263 if (message_arena != submessage_arena) {
1264 control = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1265 message_arena, control, submessage_arena);
1266 }
1267 _impl_._has_bits_[0] |= 0x00000002u;
1268 } else {
1269 _impl_._has_bits_[0] &= ~0x00000002u;
1270 }
1271 _impl_.control_ = control;
1272 // @@protoc_insertion_point(field_set_allocated:jaiabot.protobuf.LoRaMessage.control)
1273}
1274
1275#ifdef __GNUC__
1276 #pragma GCC diagnostic pop
1277#endif // __GNUC__
1278// -------------------------------------------------------------------
1279
1280
1281// @@protoc_insertion_point(namespace_scope)
1282
1283} // namespace protobuf
1284} // namespace jaiabot
1285
1286PROTOBUF_NAMESPACE_OPEN
1287
1288template <> struct is_proto_enum< ::jaiabot::protobuf::LoRaMessage_MessageType> : ::std::true_type {};
1289template <>
1291 return ::jaiabot::protobuf::LoRaMessage_MessageType_descriptor();
1292}
1293template <> struct is_proto_enum< ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice> : ::std::true_type {};
1294template <>
1296 return ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice_descriptor();
1297}
1298
1299PROTOBUF_NAMESPACE_CLOSE
1300
1301// @@protoc_insertion_point(global_scope)
1302
1303#include <google/protobuf/port_undef.inc>
1304#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ffeather_2eproto
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(LoRaMessage_ControlSurfaces &a, LoRaMessage_ControlSurfaces &b)
Definition feather.pb.h:184
void Swap(LoRaMessage_ControlSurfaces *other)
Definition feather.pb.h:187
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const LoRaMessage_ControlSurfaces & default_instance()
Definition feather.pb.h:174
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition feather.pb.h:158
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition feather.pb.h:161
LoRaMessage_ControlSurfaces * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition feather.pb.h:208
static const LoRaMessage_ControlSurfaces * internal_default_instance()
Definition feather.pb.h:177
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void CopyFrom(const LoRaMessage_ControlSurfaces &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition feather.pb.h:171
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition feather.pb.h:168
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition feather.pb.h:165
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
LoRaMessage_ControlSurfaces & operator=(const LoRaMessage_ControlSurfaces &from)
Definition feather.pb.h:140
void MergeFrom(const LoRaMessage_ControlSurfaces &from)
Definition feather.pb.h:214
void UnsafeArenaSwap(LoRaMessage_ControlSurfaces *other)
Definition feather.pb.h:200
const std::string & LoRaMessage_MessageType_Name(T enum_t_value)
Definition feather.pb.h:87
@ LoRaMessage_MessageType_PARAMETERS_ACCEPTED
Definition feather.pb.h:73
@ LoRaMessage_MessageType_PARAMETERS_REJECTED
Definition feather.pb.h:74
@ LoRaMessage_MessageType_FEATHER_READY
Definition feather.pb.h:75
@ LoRaMessage_MessageType_LOW_CONTROL
Definition feather.pb.h:77
@ LoRaMessage_MessageType_DEBUG_MESSAGE
Definition feather.pb.h:78
@ LoRaMessage_MessageType_LORA_DATA
Definition feather.pb.h:71
@ LoRaMessage_MessageType_SET_PARAMETERS
Definition feather.pb.h:72
@ LoRaMessage_MessageType_TRANSMIT_RESULT
Definition feather.pb.h:76
bool LoRaMessage_ModemConfigChoice_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LoRaMessage_ModemConfigChoice *value)
Definition feather.pb.h:120
constexpr int LoRaMessage_MessageType_MessageType_ARRAYSIZE
Definition feather.pb.h:83
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LoRaMessage_ModemConfigChoice_descriptor()
bool LoRaMessage_MessageType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LoRaMessage_MessageType *value)
Definition feather.pb.h:94
@ LoRaMessage_ModemConfigChoice_Bw500Cr45Sf128
Definition feather.pb.h:101
@ LoRaMessage_ModemConfigChoice_Bw125Cr45Sf2048
Definition feather.pb.h:104
@ LoRaMessage_ModemConfigChoice_Bw31_25Cr48Sf512
Definition feather.pb.h:102
@ LoRaMessage_ModemConfigChoice_Bw125Cr45Sf128
Definition feather.pb.h:100
@ LoRaMessage_ModemConfigChoice_Bw125Cr48Sf4096
Definition feather.pb.h:103
bool LoRaMessage_MessageType_IsValid(int value)
constexpr int LoRaMessage_ModemConfigChoice_ModemConfigChoice_ARRAYSIZE
Definition feather.pb.h:109
const std::string & LoRaMessage_ModemConfigChoice_Name(T enum_t_value)
Definition feather.pb.h:113
bool LoRaMessage_ModemConfigChoice_IsValid(int value)
LoRaMessage_ControlSurfacesDefaultTypeInternal _LoRaMessage_ControlSurfaces_default_instance_
constexpr LoRaMessage_ModemConfigChoice LoRaMessage_ModemConfigChoice_ModemConfigChoice_MAX
Definition feather.pb.h:108
constexpr LoRaMessage_MessageType LoRaMessage_MessageType_MessageType_MIN
Definition feather.pb.h:81
constexpr LoRaMessage_ModemConfigChoice LoRaMessage_ModemConfigChoice_ModemConfigChoice_MIN
Definition feather.pb.h:107
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LoRaMessage_MessageType_descriptor()
LoRaMessageDefaultTypeInternal _LoRaMessage_default_instance_
constexpr LoRaMessage_MessageType LoRaMessage_MessageType_MessageType_MAX
Definition feather.pb.h:82
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2ffeather_2eproto
::jaiabot::protobuf::LoRaMessage_ControlSurfaces * Arena::CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage_ControlSurfaces >(Arena *)
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::protobuf::LoRaMessage_MessageType >()