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