Goby3  3.1.5
2024.05.14
amac_config.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_config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_5fconfig_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>
36 #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 
44 #include <boost/units/systems/si.hpp>
45 // @@protoc_insertion_point(includes)
46 #include <google/protobuf/port_def.inc>
47 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
48 PROTOBUF_NAMESPACE_OPEN
49 namespace internal {
50 class AnyMetadata;
51 } // namespace internal
52 PROTOBUF_NAMESPACE_CLOSE
53 
54 // Internal implementation detail -- do not use these members.
56  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
63  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65 };
66 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto;
67 namespace goby {
68 namespace acomms {
69 namespace protobuf {
70 class MACConfig;
71 class MACConfigDefaultTypeInternal;
72 extern MACConfigDefaultTypeInternal _MACConfig_default_instance_;
73 } // namespace protobuf
74 } // namespace acomms
75 } // namespace goby
76 PROTOBUF_NAMESPACE_OPEN
77 template<> ::goby::acomms::protobuf::MACConfig* Arena::CreateMaybeMessage<::goby::acomms::protobuf::MACConfig>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace goby {
80 namespace acomms {
81 namespace protobuf {
82 
86 };
91 
92 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MACConfig_MACRefTime_descriptor();
93 template<typename T>
94 inline const std::string& MACConfig_MACRefTime_Name(T enum_t_value) {
95  static_assert(::std::is_same<T, MACConfig_MACRefTime>::value ||
96  ::std::is_integral<T>::value,
97  "Incorrect type passed to function MACConfig_MACRefTime_Name.");
98  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
99  MACConfig_MACRefTime_descriptor(), enum_t_value);
100 }
102  const std::string& name, MACConfig_MACRefTime* value) {
103  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MACConfig_MACRefTime>(
104  MACConfig_MACRefTime_descriptor(), name, value);
105 }
106 enum MACType : int {
107  MAC_NONE = 1,
109  MAC_POLLED = 4
110 };
111 bool MACType_IsValid(int value);
114 constexpr int MACType_ARRAYSIZE = MACType_MAX + 1;
115 
116 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MACType_descriptor();
117 template<typename T>
118 inline const std::string& MACType_Name(T enum_t_value) {
119  static_assert(::std::is_same<T, MACType>::value ||
120  ::std::is_integral<T>::value,
121  "Incorrect type passed to function MACType_Name.");
122  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
123  MACType_descriptor(), enum_t_value);
124 }
125 inline bool MACType_Parse(
126  const std::string& name, MACType* value) {
127  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MACType>(
128  MACType_descriptor(), name, value);
129 }
130 // ===================================================================
131 
132 class MACConfig PROTOBUF_FINAL :
133  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.MACConfig) */ {
134  public:
135  inline MACConfig() : MACConfig(nullptr) {};
136  virtual ~MACConfig();
137 
138  MACConfig(const MACConfig& from);
139  MACConfig(MACConfig&& from) noexcept
140  : MACConfig() {
141  *this = ::std::move(from);
142  }
143 
144  inline MACConfig& operator=(const MACConfig& from) {
145  CopyFrom(from);
146  return *this;
147  }
148  inline MACConfig& operator=(MACConfig&& from) noexcept {
149  if (GetArena() == from.GetArena()) {
150  if (this != &from) 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 GetMetadataStatic().descriptor;
169  }
170  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
171  return GetMetadataStatic().reflection;
172  }
173  static const MACConfig& default_instance();
174 
175  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
176  static inline const MACConfig* internal_default_instance() {
177  return reinterpret_cast<const MACConfig*>(
179  }
180  static constexpr int kIndexInFileMessages =
181  0;
182 
183  friend void swap(MACConfig& a, MACConfig& b) {
184  a.Swap(&b);
185  }
186  inline void Swap(MACConfig* other) {
187  if (other == this) return;
188  if (GetArena() == other->GetArena()) {
189  InternalSwap(other);
190  } else {
191  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
192  }
193  }
194  void UnsafeArenaSwap(MACConfig* other) {
195  if (other == this) return;
196  GOOGLE_DCHECK(GetArena() == other->GetArena());
197  InternalSwap(other);
198  }
199 
200  // implements Message ----------------------------------------------
201 
202  inline MACConfig* New() const final {
203  return CreateMaybeMessage<MACConfig>(nullptr);
204  }
205 
206  MACConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
207  return CreateMaybeMessage<MACConfig>(arena);
208  }
209  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
210  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
211  void CopyFrom(const MACConfig& from);
212  void MergeFrom(const MACConfig& from);
213  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
214  bool IsInitialized() const final;
215 
216  size_t ByteSizeLong() const final;
217  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
218  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
219  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
220  int GetCachedSize() const final { return _cached_size_.Get(); }
221 
222  private:
223  inline void SharedCtor();
224  inline void SharedDtor();
225  void SetCachedSize(int size) const final;
226  void InternalSwap(MACConfig* other);
227  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
228  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
229  return "goby.acomms.protobuf.MACConfig";
230  }
231  protected:
232  explicit MACConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
233  private:
234  static void ArenaDtor(void* object);
235  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
236  public:
237 
238  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
239  private:
240  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
241  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto);
242  return ::descriptor_table_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto.file_level_metadata[kIndexInFileMessages];
243  }
244 
245  public:
246 
247  // nested types ----------------------------------------------------
248 
250  static constexpr MACRefTime REFERENCE_START_OF_DAY =
252  static constexpr MACRefTime REFERENCE_FIXED =
254  static inline bool MACRefTime_IsValid(int value) {
255  return MACConfig_MACRefTime_IsValid(value);
256  }
257  static constexpr MACRefTime MACRefTime_MIN =
259  static constexpr MACRefTime MACRefTime_MAX =
261  static constexpr int MACRefTime_ARRAYSIZE =
263  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
266  }
267  template<typename T>
268  static inline const std::string& MACRefTime_Name(T enum_t_value) {
269  static_assert(::std::is_same<T, MACRefTime>::value ||
270  ::std::is_integral<T>::value,
271  "Incorrect type passed to function MACRefTime_Name.");
272  return MACConfig_MACRefTime_Name(enum_t_value);
273  }
274  static inline bool MACRefTime_Parse(const std::string& name,
275  MACRefTime* value) {
276  return MACConfig_MACRefTime_Parse(name, value);
277  }
278 
279  // accessors -------------------------------------------------------
280 
281  enum : int {
282  kSlotFieldNumber = 3,
283  kModemIdFieldNumber = 1,
284  kFixedRefTimeFieldNumber = 6,
285  kRefTimeTypeFieldNumber = 5,
286  kTypeFieldNumber = 2,
287  kStartCycleInMiddleFieldNumber = 4,
288  };
289  // repeated .goby.acomms.protobuf.ModemTransmission slot = 3 [(.goby.field) = {
290  int slot_size() const;
291  private:
292  int _internal_slot_size() const;
293  public:
294  void clear_slot();
295  ::goby::acomms::protobuf::ModemTransmission* mutable_slot(int index);
296  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
298  private:
299  const ::goby::acomms::protobuf::ModemTransmission& _internal_slot(int index) const;
300  ::goby::acomms::protobuf::ModemTransmission* _internal_add_slot();
301  public:
302  const ::goby::acomms::protobuf::ModemTransmission& slot(int index) const;
303  ::goby::acomms::protobuf::ModemTransmission* add_slot();
304  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
305  slot() const;
306 
307  // optional int32 modem_id = 1 [(.goby.field) = {
308  bool has_modem_id() const;
309  private:
310  bool _internal_has_modem_id() const;
311  public:
315  private:
316  ::PROTOBUF_NAMESPACE_ID::int32 _internal_modem_id() const;
317  void _internal_set_modem_id(::PROTOBUF_NAMESPACE_ID::int32 value);
318  public:
319 
320  // optional int32 fixed_ref_time = 6 [(.goby.field) = {
321  bool has_fixed_ref_time() const;
322  private:
323  bool _internal_has_fixed_ref_time() const;
324  public:
328  private:
329  ::PROTOBUF_NAMESPACE_ID::int32 _internal_fixed_ref_time() const;
330  void _internal_set_fixed_ref_time(::PROTOBUF_NAMESPACE_ID::int32 value);
331  public:
332 
333  // optional .goby.acomms.protobuf.MACConfig.MACRefTime ref_time_type = 5 [default = REFERENCE_START_OF_DAY];
334  bool has_ref_time_type() const;
335  private:
336  bool _internal_has_ref_time_type() const;
337  public:
341  private:
342  ::goby::acomms::protobuf::MACConfig_MACRefTime _internal_ref_time_type() const;
343  void _internal_set_ref_time_type(::goby::acomms::protobuf::MACConfig_MACRefTime value);
344  public:
345 
346  // optional .goby.acomms.protobuf.MACType type = 2 [default = MAC_NONE, (.goby.field) = {
347  bool has_type() const;
348  private:
349  bool _internal_has_type() const;
350  public:
351  void clear_type();
354  private:
355  ::goby::acomms::protobuf::MACType _internal_type() const;
356  void _internal_set_type(::goby::acomms::protobuf::MACType value);
357  public:
358 
359  // optional bool start_cycle_in_middle = 4 [default = true, (.goby.field) = {
361  private:
362  bool _internal_has_start_cycle_in_middle() const;
363  public:
365  bool start_cycle_in_middle() const;
366  void set_start_cycle_in_middle(bool value);
367  private:
368  bool _internal_start_cycle_in_middle() const;
369  void _internal_set_start_cycle_in_middle(bool value);
370  public:
371 
373 
374  typedef boost::units::unit<fixed_ref_time_dimension,boost::units::si::system> fixed_ref_time_unit;
375 
376  template<typename Quantity >
377  void set_fixed_ref_time_with_units(Quantity value_w_units)
378  { set_fixed_ref_time(boost::units::quantity<fixed_ref_time_unit,google::protobuf::int32 >(value_w_units).value() ); };
379 
380  template<typename Quantity >
381  Quantity fixed_ref_time_with_units() const
382  { return Quantity(fixed_ref_time() * fixed_ref_time_unit()); };
383 
384  boost::units::quantity< fixed_ref_time_unit,google::protobuf::int32 > fixed_ref_time_with_units() const
385  { return fixed_ref_time_with_units<boost::units::quantity< fixed_ref_time_unit,google::protobuf::int32 > >(); };
386 
387  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MACConfig)
388  private:
389  class _Internal;
390 
391  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
392  typedef void InternalArenaConstructable_;
393  typedef void DestructorSkippable_;
394  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
395  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
396  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > slot_;
398  ::PROTOBUF_NAMESPACE_ID::int32 fixed_ref_time_;
399  int ref_time_type_;
400  int type_;
401  bool start_cycle_in_middle_;
402  friend struct ::TableStruct_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto;
403 };
404 // ===================================================================
405 
406 
407 // ===================================================================
408 
409 #ifdef __GNUC__
410  #pragma GCC diagnostic push
411  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
412 #endif // __GNUC__
413 // MACConfig
414 
415 // optional int32 modem_id = 1 [(.goby.field) = {
416 inline bool MACConfig::_internal_has_modem_id() const {
417  bool value = (_has_bits_[0] & 0x00000001u) != 0;
418  return value;
419 }
420 inline bool MACConfig::has_modem_id() const {
421  return _internal_has_modem_id();
422 }
423 inline void MACConfig::clear_modem_id() {
424  modem_id_ = 0;
425  _has_bits_[0] &= ~0x00000001u;
426 }
427 inline ::PROTOBUF_NAMESPACE_ID::int32 MACConfig::_internal_modem_id() const {
428  return modem_id_;
429 }
430 inline ::PROTOBUF_NAMESPACE_ID::int32 MACConfig::modem_id() const {
431  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.modem_id)
432  return _internal_modem_id();
433 }
434 inline void MACConfig::_internal_set_modem_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
435  _has_bits_[0] |= 0x00000001u;
436  modem_id_ = value;
437 }
438 inline void MACConfig::set_modem_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
439  _internal_set_modem_id(value);
440  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.modem_id)
441 }
442 
443 // optional .goby.acomms.protobuf.MACType type = 2 [default = MAC_NONE, (.goby.field) = {
444 inline bool MACConfig::_internal_has_type() const {
445  bool value = (_has_bits_[0] & 0x00000008u) != 0;
446  return value;
447 }
448 inline bool MACConfig::has_type() const {
449  return _internal_has_type();
450 }
451 inline void MACConfig::clear_type() {
452  type_ = 1;
453  _has_bits_[0] &= ~0x00000008u;
454 }
455 inline ::goby::acomms::protobuf::MACType MACConfig::_internal_type() const {
456  return static_cast< ::goby::acomms::protobuf::MACType >(type_);
457 }
459  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.type)
460  return _internal_type();
461 }
462 inline void MACConfig::_internal_set_type(::goby::acomms::protobuf::MACType value) {
464  _has_bits_[0] |= 0x00000008u;
465  type_ = value;
466 }
467 inline void MACConfig::set_type(::goby::acomms::protobuf::MACType value) {
468  _internal_set_type(value);
469  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.type)
470 }
471 
472 // repeated .goby.acomms.protobuf.ModemTransmission slot = 3 [(.goby.field) = {
473 inline int MACConfig::_internal_slot_size() const {
474  return slot_.size();
475 }
476 inline int MACConfig::slot_size() const {
477  return _internal_slot_size();
478 }
479 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::mutable_slot(int index) {
480  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MACConfig.slot)
481  return slot_.Mutable(index);
482 }
483 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
484 MACConfig::mutable_slot() {
485  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.MACConfig.slot)
486  return &slot_;
487 }
488 inline const ::goby::acomms::protobuf::ModemTransmission& MACConfig::_internal_slot(int index) const {
489  return slot_.Get(index);
490 }
491 inline const ::goby::acomms::protobuf::ModemTransmission& MACConfig::slot(int index) const {
492  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.slot)
493  return _internal_slot(index);
494 }
495 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::_internal_add_slot() {
496  return slot_.Add();
497 }
498 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::add_slot() {
499  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.MACConfig.slot)
500  return _internal_add_slot();
501 }
502 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
503 MACConfig::slot() const {
504  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.MACConfig.slot)
505  return slot_;
506 }
507 
508 // optional bool start_cycle_in_middle = 4 [default = true, (.goby.field) = {
509 inline bool MACConfig::_internal_has_start_cycle_in_middle() const {
510  bool value = (_has_bits_[0] & 0x00000010u) != 0;
511  return value;
512 }
513 inline bool MACConfig::has_start_cycle_in_middle() const {
514  return _internal_has_start_cycle_in_middle();
515 }
516 inline void MACConfig::clear_start_cycle_in_middle() {
517  start_cycle_in_middle_ = true;
518  _has_bits_[0] &= ~0x00000010u;
519 }
520 inline bool MACConfig::_internal_start_cycle_in_middle() const {
521  return start_cycle_in_middle_;
522 }
523 inline bool MACConfig::start_cycle_in_middle() const {
524  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.start_cycle_in_middle)
525  return _internal_start_cycle_in_middle();
526 }
527 inline void MACConfig::_internal_set_start_cycle_in_middle(bool value) {
528  _has_bits_[0] |= 0x00000010u;
529  start_cycle_in_middle_ = value;
530 }
531 inline void MACConfig::set_start_cycle_in_middle(bool value) {
532  _internal_set_start_cycle_in_middle(value);
533  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.start_cycle_in_middle)
534 }
535 
536 // optional .goby.acomms.protobuf.MACConfig.MACRefTime ref_time_type = 5 [default = REFERENCE_START_OF_DAY];
537 inline bool MACConfig::_internal_has_ref_time_type() const {
538  bool value = (_has_bits_[0] & 0x00000004u) != 0;
539  return value;
540 }
541 inline bool MACConfig::has_ref_time_type() const {
542  return _internal_has_ref_time_type();
543 }
544 inline void MACConfig::clear_ref_time_type() {
545  ref_time_type_ = 1;
546  _has_bits_[0] &= ~0x00000004u;
547 }
548 inline ::goby::acomms::protobuf::MACConfig_MACRefTime MACConfig::_internal_ref_time_type() const {
549  return static_cast< ::goby::acomms::protobuf::MACConfig_MACRefTime >(ref_time_type_);
550 }
551 inline ::goby::acomms::protobuf::MACConfig_MACRefTime MACConfig::ref_time_type() const {
552  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.ref_time_type)
553  return _internal_ref_time_type();
554 }
555 inline void MACConfig::_internal_set_ref_time_type(::goby::acomms::protobuf::MACConfig_MACRefTime value) {
557  _has_bits_[0] |= 0x00000004u;
558  ref_time_type_ = value;
559 }
560 inline void MACConfig::set_ref_time_type(::goby::acomms::protobuf::MACConfig_MACRefTime value) {
561  _internal_set_ref_time_type(value);
562  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.ref_time_type)
563 }
564 
565 // optional int32 fixed_ref_time = 6 [(.goby.field) = {
566 inline bool MACConfig::_internal_has_fixed_ref_time() const {
567  bool value = (_has_bits_[0] & 0x00000002u) != 0;
568  return value;
569 }
570 inline bool MACConfig::has_fixed_ref_time() const {
571  return _internal_has_fixed_ref_time();
572 }
573 inline void MACConfig::clear_fixed_ref_time() {
574  fixed_ref_time_ = 0;
575  _has_bits_[0] &= ~0x00000002u;
576 }
577 inline ::PROTOBUF_NAMESPACE_ID::int32 MACConfig::_internal_fixed_ref_time() const {
578  return fixed_ref_time_;
579 }
580 inline ::PROTOBUF_NAMESPACE_ID::int32 MACConfig::fixed_ref_time() const {
581  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.fixed_ref_time)
582  return _internal_fixed_ref_time();
583 }
584 inline void MACConfig::_internal_set_fixed_ref_time(::PROTOBUF_NAMESPACE_ID::int32 value) {
585  _has_bits_[0] |= 0x00000002u;
586  fixed_ref_time_ = value;
587 }
588 inline void MACConfig::set_fixed_ref_time(::PROTOBUF_NAMESPACE_ID::int32 value) {
589  _internal_set_fixed_ref_time(value);
590  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.fixed_ref_time)
591 }
592 
593 #ifdef __GNUC__
594  #pragma GCC diagnostic pop
595 #endif // __GNUC__
596 
597 // @@protoc_insertion_point(namespace_scope)
598 
599 } // namespace protobuf
600 } // namespace acomms
601 } // namespace goby
602 
603 PROTOBUF_NAMESPACE_OPEN
604 
605 template <> struct is_proto_enum< ::goby::acomms::protobuf::MACConfig_MACRefTime> : ::std::true_type {};
606 template <>
607 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACConfig_MACRefTime>() {
609 }
610 template <> struct is_proto_enum< ::goby::acomms::protobuf::MACType> : ::std::true_type {};
611 template <>
612 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACType>() {
614 }
615 
616 PROTOBUF_NAMESPACE_CLOSE
617 
618 // @@protoc_insertion_point(global_scope)
619 
620 #include <google/protobuf/port_undef.inc>
621 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
::goby::acomms::protobuf::MACConfig_MACRefTime ref_time_type() const
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > & slot() const
void set_type(::goby::acomms::protobuf::MACType value)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::int32 fixed_ref_time() const
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::goby::acomms::protobuf::ModemTransmission * add_slot()
MACConfig(MACConfig &&from) noexcept
::PROTOBUF_NAMESPACE_ID::int32 modem_id() const
boost::units::unit< fixed_ref_time_dimension, boost::units::si::system > fixed_ref_time_unit
void set_ref_time_type(::goby::acomms::protobuf::MACConfig_MACRefTime value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const MACConfig & default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
const ::goby::acomms::protobuf::ModemTransmission & slot(int index) const
void UnsafeArenaSwap(MACConfig *other)
::goby::acomms::protobuf::MACType type() const
static const std::string & MACRefTime_Name(T enum_t_value)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MACRefTime_descriptor()
MACConfig & operator=(const MACConfig &from)
void MergeFrom(const MACConfig &from)
void set_fixed_ref_time_with_units(Quantity value_w_units)
static bool MACRefTime_Parse(const std::string &name, MACRefTime *value)
boost::units::quantity< fixed_ref_time_unit, google::protobuf::int32 > fixed_ref_time_with_units() const
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > * mutable_slot()
::goby::acomms::protobuf::ModemTransmission * mutable_slot(int index)
static bool MACRefTime_IsValid(int value)
friend void swap(MACConfig &a, MACConfig &b)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void CopyFrom(const MACConfig &from)
MACConfig & operator=(MACConfig &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
MACConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_fixed_ref_time(::PROTOBUF_NAMESPACE_ID::int32 value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
MACConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const MACConfig * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type fixed_ref_time_dimension
void set_modem_id(::PROTOBUF_NAMESPACE_ID::int32 value)
@ value
the parser finished reading a JSON value
constexpr MACType MACType_MAX
bool MACConfig_MACRefTime_Parse(const std::string &name, MACConfig_MACRefTime *value)
constexpr MACConfig_MACRefTime MACConfig_MACRefTime_MACRefTime_MIN
bool MACConfig_MACRefTime_IsValid(int value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MACConfig_MACRefTime_descriptor()
bool MACType_IsValid(int value)
constexpr int MACConfig_MACRefTime_MACRefTime_ARRAYSIZE
const std::string & MACConfig_MACRefTime_Name(T enum_t_value)
const std::string & MACType_Name(T enum_t_value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MACType_descriptor()
bool MACType_Parse(const std::string &name, MACType *value)
MACConfigDefaultTypeInternal _MACConfig_default_instance_
constexpr int MACType_ARRAYSIZE
constexpr MACConfig_MACRefTime MACConfig_MACRefTime_MACRefTime_MAX
constexpr MACType MACType_MIN
The global namespace for the Goby project.
std::int32_t int32
std::uint32_t uint32
type
Generic JSON types used in JWTs.
Definition: jwt.h:2072
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)