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