Goby3  3.1.5
2024.05.14
amac.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/amac.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_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>
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>
37 #include "dccl/option_extensions.pb.h"
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.hpp>
43 // @@protoc_insertion_point(includes)
44 #include <google/protobuf/port_def.inc>
45 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2famac_2eproto
46 PROTOBUF_NAMESPACE_OPEN
47 namespace internal {
48 class AnyMetadata;
49 } // namespace internal
50 PROTOBUF_NAMESPACE_CLOSE
51 
52 // Internal implementation detail -- do not use these members.
54  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
55  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
61  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
63 };
64 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2famac_2eproto;
65 namespace goby {
66 namespace acomms {
67 namespace protobuf {
68 class MACUpdate;
69 class MACUpdateDefaultTypeInternal;
70 extern MACUpdateDefaultTypeInternal _MACUpdate_default_instance_;
71 } // namespace protobuf
72 } // namespace acomms
73 } // namespace goby
74 PROTOBUF_NAMESPACE_OPEN
75 template<> ::goby::acomms::protobuf::MACUpdate* Arena::CreateMaybeMessage<::goby::acomms::protobuf::MACUpdate>(Arena*);
76 PROTOBUF_NAMESPACE_CLOSE
77 namespace goby {
78 namespace acomms {
79 namespace protobuf {
80 
91 };
96 
97 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MACUpdate_UpdateType_descriptor();
98 template<typename T>
99 inline const std::string& MACUpdate_UpdateType_Name(T enum_t_value) {
100  static_assert(::std::is_same<T, MACUpdate_UpdateType>::value ||
101  ::std::is_integral<T>::value,
102  "Incorrect type passed to function MACUpdate_UpdateType_Name.");
103  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
104  MACUpdate_UpdateType_descriptor(), enum_t_value);
105 }
107  const std::string& name, MACUpdate_UpdateType* value) {
108  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MACUpdate_UpdateType>(
109  MACUpdate_UpdateType_descriptor(), name, value);
110 }
114 };
119 
120 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MACUpdate_CycleState_descriptor();
121 template<typename T>
122 inline const std::string& MACUpdate_CycleState_Name(T enum_t_value) {
123  static_assert(::std::is_same<T, MACUpdate_CycleState>::value ||
124  ::std::is_integral<T>::value,
125  "Incorrect type passed to function MACUpdate_CycleState_Name.");
126  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
127  MACUpdate_CycleState_descriptor(), enum_t_value);
128 }
130  const std::string& name, MACUpdate_CycleState* value) {
131  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MACUpdate_CycleState>(
132  MACUpdate_CycleState_descriptor(), name, value);
133 }
134 // ===================================================================
135 
136 class MACUpdate PROTOBUF_FINAL :
137  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.MACUpdate) */ {
138  public:
139  inline MACUpdate() : MACUpdate(nullptr) {};
140  virtual ~MACUpdate();
141 
142  MACUpdate(const MACUpdate& from);
143  MACUpdate(MACUpdate&& from) noexcept
144  : MACUpdate() {
145  *this = ::std::move(from);
146  }
147 
148  inline MACUpdate& operator=(const MACUpdate& from) {
149  CopyFrom(from);
150  return *this;
151  }
152  inline MACUpdate& operator=(MACUpdate&& from) noexcept {
153  if (GetArena() == from.GetArena()) {
154  if (this != &from) InternalSwap(&from);
155  } else {
156  CopyFrom(from);
157  }
158  return *this;
159  }
160 
161  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
162  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
163  }
164  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
165  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
166  }
167 
168  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
169  return GetDescriptor();
170  }
171  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
172  return GetMetadataStatic().descriptor;
173  }
174  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
175  return GetMetadataStatic().reflection;
176  }
177  static const MACUpdate& default_instance();
178 
179  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
180  static inline const MACUpdate* internal_default_instance() {
181  return reinterpret_cast<const MACUpdate*>(
183  }
184  static constexpr int kIndexInFileMessages =
185  0;
186 
187  friend void swap(MACUpdate& a, MACUpdate& b) {
188  a.Swap(&b);
189  }
190  inline void Swap(MACUpdate* other) {
191  if (other == this) return;
192  if (GetArena() == other->GetArena()) {
193  InternalSwap(other);
194  } else {
195  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
196  }
197  }
198  void UnsafeArenaSwap(MACUpdate* other) {
199  if (other == this) return;
200  GOOGLE_DCHECK(GetArena() == other->GetArena());
201  InternalSwap(other);
202  }
203 
204  // implements Message ----------------------------------------------
205 
206  inline MACUpdate* New() const final {
207  return CreateMaybeMessage<MACUpdate>(nullptr);
208  }
209 
210  MACUpdate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
211  return CreateMaybeMessage<MACUpdate>(arena);
212  }
213  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
214  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
215  void CopyFrom(const MACUpdate& from);
216  void MergeFrom(const MACUpdate& from);
217  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
218  bool IsInitialized() const final;
219 
220  size_t ByteSizeLong() const final;
221  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
222  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
223  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
224  int GetCachedSize() const final { return _cached_size_.Get(); }
225 
226  private:
227  inline void SharedCtor();
228  inline void SharedDtor();
229  void SetCachedSize(int size) const final;
230  void InternalSwap(MACUpdate* other);
231  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
232  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
233  return "goby.acomms.protobuf.MACUpdate";
234  }
235  protected:
236  explicit MACUpdate(::PROTOBUF_NAMESPACE_ID::Arena* arena);
237  private:
238  static void ArenaDtor(void* object);
239  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
240  public:
241 
242  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
243  private:
244  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
245  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2famac_2eproto);
246  return ::descriptor_table_goby_2facomms_2fprotobuf_2famac_2eproto.file_level_metadata[kIndexInFileMessages];
247  }
248 
249  public:
250 
251  // nested types ----------------------------------------------------
252 
254  static constexpr UpdateType NO_CHANGE =
256  static constexpr UpdateType ASSIGN =
258  static constexpr UpdateType PUSH_BACK =
260  static constexpr UpdateType PUSH_FRONT =
262  static constexpr UpdateType POP_BACK =
264  static constexpr UpdateType POP_FRONT =
266  static constexpr UpdateType INSERT =
268  static constexpr UpdateType ERASE =
270  static constexpr UpdateType CLEAR =
272  static inline bool UpdateType_IsValid(int value) {
273  return MACUpdate_UpdateType_IsValid(value);
274  }
275  static constexpr UpdateType UpdateType_MIN =
277  static constexpr UpdateType UpdateType_MAX =
279  static constexpr int UpdateType_ARRAYSIZE =
281  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
284  }
285  template<typename T>
286  static inline const std::string& UpdateType_Name(T enum_t_value) {
287  static_assert(::std::is_same<T, UpdateType>::value ||
288  ::std::is_integral<T>::value,
289  "Incorrect type passed to function UpdateType_Name.");
290  return MACUpdate_UpdateType_Name(enum_t_value);
291  }
292  static inline bool UpdateType_Parse(const std::string& name,
293  UpdateType* value) {
294  return MACUpdate_UpdateType_Parse(name, value);
295  }
296 
298  static constexpr CycleState STOPPED =
300  static constexpr CycleState STARTED =
302  static inline bool CycleState_IsValid(int value) {
303  return MACUpdate_CycleState_IsValid(value);
304  }
305  static constexpr CycleState CycleState_MIN =
307  static constexpr CycleState CycleState_MAX =
309  static constexpr int CycleState_ARRAYSIZE =
311  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
314  }
315  template<typename T>
316  static inline const std::string& CycleState_Name(T enum_t_value) {
317  static_assert(::std::is_same<T, CycleState>::value ||
318  ::std::is_integral<T>::value,
319  "Incorrect type passed to function CycleState_Name.");
320  return MACUpdate_CycleState_Name(enum_t_value);
321  }
322  static inline bool CycleState_Parse(const std::string& name,
323  CycleState* value) {
324  return MACUpdate_CycleState_Parse(name, value);
325  }
326 
327  // accessors -------------------------------------------------------
328 
329  enum : int {
330  kSlotFieldNumber = 4,
331  kSrcFieldNumber = 1,
332  kDestFieldNumber = 2,
333  kUpdateTypeFieldNumber = 3,
334  kFirstIteratorFieldNumber = 5,
335  kSecondIteratorFieldNumber = 6,
336  kCycleStateFieldNumber = 7,
337  };
338  // repeated .goby.acomms.protobuf.ModemTransmission slot = 4 [(.dccl.field) = {
339  int slot_size() const;
340  private:
341  int _internal_slot_size() const;
342  public:
343  void clear_slot();
344  ::goby::acomms::protobuf::ModemTransmission* mutable_slot(int index);
345  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
347  private:
348  const ::goby::acomms::protobuf::ModemTransmission& _internal_slot(int index) const;
349  ::goby::acomms::protobuf::ModemTransmission* _internal_add_slot();
350  public:
351  const ::goby::acomms::protobuf::ModemTransmission& slot(int index) const;
352  ::goby::acomms::protobuf::ModemTransmission* add_slot();
353  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
354  slot() const;
355 
356  // required int32 src = 1 [(.dccl.field) = {
357  bool has_src() const;
358  private:
359  bool _internal_has_src() const;
360  public:
361  void clear_src();
364  private:
365  ::PROTOBUF_NAMESPACE_ID::int32 _internal_src() const;
366  void _internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
367  public:
368 
369  // required int32 dest = 2 [(.dccl.field) = {
370  bool has_dest() const;
371  private:
372  bool _internal_has_dest() const;
373  public:
374  void clear_dest();
377  private:
378  ::PROTOBUF_NAMESPACE_ID::int32 _internal_dest() const;
379  void _internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
380  public:
381 
382  // optional .goby.acomms.protobuf.MACUpdate.UpdateType update_type = 3 [default = NO_CHANGE];
383  bool has_update_type() const;
384  private:
385  bool _internal_has_update_type() const;
386  public:
390  private:
391  ::goby::acomms::protobuf::MACUpdate_UpdateType _internal_update_type() const;
392  void _internal_set_update_type(::goby::acomms::protobuf::MACUpdate_UpdateType value);
393  public:
394 
395  // optional int32 first_iterator = 5 [default = 0, (.dccl.field) = {
396  bool has_first_iterator() const;
397  private:
398  bool _internal_has_first_iterator() const;
399  public:
403  private:
404  ::PROTOBUF_NAMESPACE_ID::int32 _internal_first_iterator() const;
405  void _internal_set_first_iterator(::PROTOBUF_NAMESPACE_ID::int32 value);
406  public:
407 
408  // optional int32 second_iterator = 6 [default = -1, (.dccl.field) = {
409  bool has_second_iterator() const;
410  private:
411  bool _internal_has_second_iterator() const;
412  public:
416  private:
417  ::PROTOBUF_NAMESPACE_ID::int32 _internal_second_iterator() const;
418  void _internal_set_second_iterator(::PROTOBUF_NAMESPACE_ID::int32 value);
419  public:
420 
421  // optional .goby.acomms.protobuf.MACUpdate.CycleState cycle_state = 7 [default = STARTED, (.dccl.field) = {
422  bool has_cycle_state() const;
423  private:
424  bool _internal_has_cycle_state() const;
425  public:
429  private:
430  ::goby::acomms::protobuf::MACUpdate_CycleState _internal_cycle_state() const;
431  void _internal_set_cycle_state(::goby::acomms::protobuf::MACUpdate_CycleState value);
432  public:
433 
434  enum DCCLParameters { DCCL_ID = 5, DCCL_MAX_BYTES = 64 };
435  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MACUpdate)
436  private:
437  class _Internal;
438 
439  // helper for ByteSizeLong()
440  size_t RequiredFieldsByteSizeFallback() const;
441 
442  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
443  typedef void InternalArenaConstructable_;
444  typedef void DestructorSkippable_;
445  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
446  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
447  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > slot_;
450  int update_type_;
451  ::PROTOBUF_NAMESPACE_ID::int32 first_iterator_;
452  ::PROTOBUF_NAMESPACE_ID::int32 second_iterator_;
453  int cycle_state_;
454  friend struct ::TableStruct_goby_2facomms_2fprotobuf_2famac_2eproto;
455 };
456 // ===================================================================
457 
458 
459 // ===================================================================
460 
461 #ifdef __GNUC__
462  #pragma GCC diagnostic push
463  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
464 #endif // __GNUC__
465 // MACUpdate
466 
467 // required int32 src = 1 [(.dccl.field) = {
468 inline bool MACUpdate::_internal_has_src() const {
469  bool value = (_has_bits_[0] & 0x00000001u) != 0;
470  return value;
471 }
472 inline bool MACUpdate::has_src() const {
473  return _internal_has_src();
474 }
475 inline void MACUpdate::clear_src() {
476  src_ = 0;
477  _has_bits_[0] &= ~0x00000001u;
478 }
479 inline ::PROTOBUF_NAMESPACE_ID::int32 MACUpdate::_internal_src() const {
480  return src_;
481 }
482 inline ::PROTOBUF_NAMESPACE_ID::int32 MACUpdate::src() const {
483  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.src)
484  return _internal_src();
485 }
486 inline void MACUpdate::_internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
487  _has_bits_[0] |= 0x00000001u;
488  src_ = value;
489 }
490 inline void MACUpdate::set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
491  _internal_set_src(value);
492  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.src)
493 }
494 
495 // required int32 dest = 2 [(.dccl.field) = {
496 inline bool MACUpdate::_internal_has_dest() const {
497  bool value = (_has_bits_[0] & 0x00000002u) != 0;
498  return value;
499 }
500 inline bool MACUpdate::has_dest() const {
501  return _internal_has_dest();
502 }
503 inline void MACUpdate::clear_dest() {
504  dest_ = 0;
505  _has_bits_[0] &= ~0x00000002u;
506 }
507 inline ::PROTOBUF_NAMESPACE_ID::int32 MACUpdate::_internal_dest() const {
508  return dest_;
509 }
510 inline ::PROTOBUF_NAMESPACE_ID::int32 MACUpdate::dest() const {
511  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.dest)
512  return _internal_dest();
513 }
514 inline void MACUpdate::_internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
515  _has_bits_[0] |= 0x00000002u;
516  dest_ = value;
517 }
518 inline void MACUpdate::set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
519  _internal_set_dest(value);
520  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.dest)
521 }
522 
523 // optional .goby.acomms.protobuf.MACUpdate.UpdateType update_type = 3 [default = NO_CHANGE];
524 inline bool MACUpdate::_internal_has_update_type() const {
525  bool value = (_has_bits_[0] & 0x00000004u) != 0;
526  return value;
527 }
528 inline bool MACUpdate::has_update_type() const {
529  return _internal_has_update_type();
530 }
531 inline void MACUpdate::clear_update_type() {
532  update_type_ = 0;
533  _has_bits_[0] &= ~0x00000004u;
534 }
535 inline ::goby::acomms::protobuf::MACUpdate_UpdateType MACUpdate::_internal_update_type() const {
536  return static_cast< ::goby::acomms::protobuf::MACUpdate_UpdateType >(update_type_);
537 }
538 inline ::goby::acomms::protobuf::MACUpdate_UpdateType MACUpdate::update_type() const {
539  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.update_type)
540  return _internal_update_type();
541 }
542 inline void MACUpdate::_internal_set_update_type(::goby::acomms::protobuf::MACUpdate_UpdateType value) {
544  _has_bits_[0] |= 0x00000004u;
545  update_type_ = value;
546 }
547 inline void MACUpdate::set_update_type(::goby::acomms::protobuf::MACUpdate_UpdateType value) {
548  _internal_set_update_type(value);
549  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.update_type)
550 }
551 
552 // repeated .goby.acomms.protobuf.ModemTransmission slot = 4 [(.dccl.field) = {
553 inline int MACUpdate::_internal_slot_size() const {
554  return slot_.size();
555 }
556 inline int MACUpdate::slot_size() const {
557  return _internal_slot_size();
558 }
559 inline ::goby::acomms::protobuf::ModemTransmission* MACUpdate::mutable_slot(int index) {
560  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MACUpdate.slot)
561  return slot_.Mutable(index);
562 }
563 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
564 MACUpdate::mutable_slot() {
565  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.MACUpdate.slot)
566  return &slot_;
567 }
568 inline const ::goby::acomms::protobuf::ModemTransmission& MACUpdate::_internal_slot(int index) const {
569  return slot_.Get(index);
570 }
571 inline const ::goby::acomms::protobuf::ModemTransmission& MACUpdate::slot(int index) const {
572  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.slot)
573  return _internal_slot(index);
574 }
575 inline ::goby::acomms::protobuf::ModemTransmission* MACUpdate::_internal_add_slot() {
576  return slot_.Add();
577 }
578 inline ::goby::acomms::protobuf::ModemTransmission* MACUpdate::add_slot() {
579  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.MACUpdate.slot)
580  return _internal_add_slot();
581 }
582 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
583 MACUpdate::slot() const {
584  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.MACUpdate.slot)
585  return slot_;
586 }
587 
588 // optional int32 first_iterator = 5 [default = 0, (.dccl.field) = {
589 inline bool MACUpdate::_internal_has_first_iterator() const {
590  bool value = (_has_bits_[0] & 0x00000008u) != 0;
591  return value;
592 }
593 inline bool MACUpdate::has_first_iterator() const {
594  return _internal_has_first_iterator();
595 }
596 inline void MACUpdate::clear_first_iterator() {
597  first_iterator_ = 0;
598  _has_bits_[0] &= ~0x00000008u;
599 }
600 inline ::PROTOBUF_NAMESPACE_ID::int32 MACUpdate::_internal_first_iterator() const {
601  return first_iterator_;
602 }
603 inline ::PROTOBUF_NAMESPACE_ID::int32 MACUpdate::first_iterator() const {
604  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.first_iterator)
605  return _internal_first_iterator();
606 }
607 inline void MACUpdate::_internal_set_first_iterator(::PROTOBUF_NAMESPACE_ID::int32 value) {
608  _has_bits_[0] |= 0x00000008u;
609  first_iterator_ = value;
610 }
611 inline void MACUpdate::set_first_iterator(::PROTOBUF_NAMESPACE_ID::int32 value) {
612  _internal_set_first_iterator(value);
613  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.first_iterator)
614 }
615 
616 // optional int32 second_iterator = 6 [default = -1, (.dccl.field) = {
617 inline bool MACUpdate::_internal_has_second_iterator() const {
618  bool value = (_has_bits_[0] & 0x00000010u) != 0;
619  return value;
620 }
621 inline bool MACUpdate::has_second_iterator() const {
622  return _internal_has_second_iterator();
623 }
624 inline void MACUpdate::clear_second_iterator() {
625  second_iterator_ = -1;
626  _has_bits_[0] &= ~0x00000010u;
627 }
628 inline ::PROTOBUF_NAMESPACE_ID::int32 MACUpdate::_internal_second_iterator() const {
629  return second_iterator_;
630 }
631 inline ::PROTOBUF_NAMESPACE_ID::int32 MACUpdate::second_iterator() const {
632  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.second_iterator)
633  return _internal_second_iterator();
634 }
635 inline void MACUpdate::_internal_set_second_iterator(::PROTOBUF_NAMESPACE_ID::int32 value) {
636  _has_bits_[0] |= 0x00000010u;
637  second_iterator_ = value;
638 }
639 inline void MACUpdate::set_second_iterator(::PROTOBUF_NAMESPACE_ID::int32 value) {
640  _internal_set_second_iterator(value);
641  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.second_iterator)
642 }
643 
644 // optional .goby.acomms.protobuf.MACUpdate.CycleState cycle_state = 7 [default = STARTED, (.dccl.field) = {
645 inline bool MACUpdate::_internal_has_cycle_state() const {
646  bool value = (_has_bits_[0] & 0x00000020u) != 0;
647  return value;
648 }
649 inline bool MACUpdate::has_cycle_state() const {
650  return _internal_has_cycle_state();
651 }
652 inline void MACUpdate::clear_cycle_state() {
653  cycle_state_ = 2;
654  _has_bits_[0] &= ~0x00000020u;
655 }
656 inline ::goby::acomms::protobuf::MACUpdate_CycleState MACUpdate::_internal_cycle_state() const {
657  return static_cast< ::goby::acomms::protobuf::MACUpdate_CycleState >(cycle_state_);
658 }
659 inline ::goby::acomms::protobuf::MACUpdate_CycleState MACUpdate::cycle_state() const {
660  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.cycle_state)
661  return _internal_cycle_state();
662 }
663 inline void MACUpdate::_internal_set_cycle_state(::goby::acomms::protobuf::MACUpdate_CycleState value) {
665  _has_bits_[0] |= 0x00000020u;
666  cycle_state_ = value;
667 }
668 inline void MACUpdate::set_cycle_state(::goby::acomms::protobuf::MACUpdate_CycleState value) {
669  _internal_set_cycle_state(value);
670  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.cycle_state)
671 }
672 
673 #ifdef __GNUC__
674  #pragma GCC diagnostic pop
675 #endif // __GNUC__
676 
677 // @@protoc_insertion_point(namespace_scope)
678 
679 } // namespace protobuf
680 } // namespace acomms
681 } // namespace goby
682 
683 PROTOBUF_NAMESPACE_OPEN
684 
685 template <> struct is_proto_enum< ::goby::acomms::protobuf::MACUpdate_UpdateType> : ::std::true_type {};
686 template <>
687 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACUpdate_UpdateType>() {
689 }
690 template <> struct is_proto_enum< ::goby::acomms::protobuf::MACUpdate_CycleState> : ::std::true_type {};
691 template <>
692 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACUpdate_CycleState>() {
694 }
695 
696 PROTOBUF_NAMESPACE_CLOSE
697 
698 // @@protoc_insertion_point(global_scope)
699 
700 #include <google/protobuf/port_undef.inc>
701 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2famac_2eproto
friend void swap(MACUpdate &a, MACUpdate &b)
Definition: amac.pb.h:187
::goby::acomms::protobuf::MACUpdate_UpdateType update_type() const
::PROTOBUF_NAMESPACE_ID::int32 dest() const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * UpdateType_descriptor()
Definition: amac.pb.h:282
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > & slot() const
::PROTOBUF_NAMESPACE_ID::int32 second_iterator() const
static bool UpdateType_Parse(const std::string &name, UpdateType *value)
Definition: amac.pb.h:292
static bool CycleState_IsValid(int value)
Definition: amac.pb.h:302
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: amac.pb.h:161
void UnsafeArenaSwap(MACUpdate *other)
Definition: amac.pb.h:198
MACUpdate & operator=(const MACUpdate &from)
Definition: amac.pb.h:148
MACUpdate(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const std::string & CycleState_Name(T enum_t_value)
Definition: amac.pb.h:316
static const MACUpdate * internal_default_instance()
Definition: amac.pb.h:180
void set_update_type(::goby::acomms::protobuf::MACUpdate_UpdateType value)
void set_cycle_state(::goby::acomms::protobuf::MACUpdate_CycleState value)
::goby::acomms::protobuf::ModemTransmission * add_slot()
void set_dest(::PROTOBUF_NAMESPACE_ID::int32 value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static bool UpdateType_IsValid(int value)
Definition: amac.pb.h:272
static const MACUpdate & default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
MACUpdate_UpdateType UpdateType
Definition: amac.pb.h:253
const ::goby::acomms::protobuf::ModemTransmission & slot(int index) const
static bool CycleState_Parse(const std::string &name, CycleState *value)
Definition: amac.pb.h:322
MACUpdate_CycleState CycleState
Definition: amac.pb.h:297
MACUpdate * New() const final
Definition: amac.pb.h:206
MACUpdate(MACUpdate &&from) noexcept
Definition: amac.pb.h:143
void MergeFrom(const MACUpdate &from)
::PROTOBUF_NAMESPACE_ID::int32 first_iterator() const
void set_src(::PROTOBUF_NAMESPACE_ID::int32 value)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > * mutable_slot()
::goby::acomms::protobuf::ModemTransmission * mutable_slot(int index)
void Swap(MACUpdate *other)
Definition: amac.pb.h:190
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * CycleState_descriptor()
Definition: amac.pb.h:312
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: amac.pb.h:174
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: amac.pb.h:164
static const std::string & UpdateType_Name(T enum_t_value)
Definition: amac.pb.h:286
::goby::acomms::protobuf::MACUpdate_CycleState cycle_state() const
void set_second_iterator(::PROTOBUF_NAMESPACE_ID::int32 value)
MACUpdate & operator=(MACUpdate &&from) noexcept
Definition: amac.pb.h:152
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: amac.pb.h:171
void set_first_iterator(::PROTOBUF_NAMESPACE_ID::int32 value)
::PROTOBUF_NAMESPACE_ID::int32 src() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
MACUpdate * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: amac.pb.h:210
void CopyFrom(const MACUpdate &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: amac.pb.h:168
@ value
the parser finished reading a JSON value
bool MACUpdate_UpdateType_Parse(const std::string &name, MACUpdate_UpdateType *value)
Definition: amac.pb.h:106
constexpr MACUpdate_UpdateType MACUpdate_UpdateType_UpdateType_MIN
Definition: amac.pb.h:93
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MACUpdate_CycleState_descriptor()
bool MACUpdate_CycleState_Parse(const std::string &name, MACUpdate_CycleState *value)
Definition: amac.pb.h:129
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MACUpdate_UpdateType_descriptor()
constexpr int MACUpdate_UpdateType_UpdateType_ARRAYSIZE
Definition: amac.pb.h:95
constexpr int MACUpdate_CycleState_CycleState_ARRAYSIZE
Definition: amac.pb.h:118
@ MACUpdate_UpdateType_PUSH_BACK
Definition: amac.pb.h:84
@ MACUpdate_UpdateType_PUSH_FRONT
Definition: amac.pb.h:85
@ MACUpdate_UpdateType_POP_FRONT
Definition: amac.pb.h:87
@ MACUpdate_UpdateType_NO_CHANGE
Definition: amac.pb.h:82
constexpr MACUpdate_UpdateType MACUpdate_UpdateType_UpdateType_MAX
Definition: amac.pb.h:94
MACUpdateDefaultTypeInternal _MACUpdate_default_instance_
const std::string & MACUpdate_UpdateType_Name(T enum_t_value)
Definition: amac.pb.h:99
constexpr MACUpdate_CycleState MACUpdate_CycleState_CycleState_MIN
Definition: amac.pb.h:116
constexpr MACUpdate_CycleState MACUpdate_CycleState_CycleState_MAX
Definition: amac.pb.h:117
bool MACUpdate_CycleState_IsValid(int value)
bool MACUpdate_UpdateType_IsValid(int value)
const std::string & MACUpdate_CycleState_Name(T enum_t_value)
Definition: amac.pb.h:122
The global namespace for the Goby project.
std::int32_t int32
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: amac.pb.h:62
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: amac.pb.h:60
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: amac.pb.h:61