4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
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
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.
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>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
34#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>
42#include <boost/units/systems/si.hpp>
44#include <google/protobuf/port_def.inc>
45#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
46PROTOBUF_NAMESPACE_OPEN
50PROTOBUF_NAMESPACE_CLOSE
61struct MACConfigDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
85 static_assert(::std::is_same<T, MACConfig_MACRefTime>::value ||
86 ::std::is_integral<T>::value,
87 "Incorrect type passed to function MACConfig_MACRefTime_Name.");
88 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
93 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MACConfig_MACRefTime>(
109 static_assert(::std::is_same<T, MACType>::value ||
110 ::std::is_integral<T>::value,
111 "Incorrect type passed to function MACType_Name.");
112 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
116 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
MACType* value) {
117 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MACType>(
123 public ::PROTOBUF_NAMESPACE_ID::Message {
127 explicit PROTOBUF_CONSTEXPR
MACConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
132 *
this = ::std::move(from);
140 if (
this == &from)
return *
this;
141 if (GetOwningArena() == from.GetOwningArena()
142 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
143 && GetOwningArena() !=
nullptr
154 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
157 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
160 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
173 return reinterpret_cast<const MACConfig*
>(
183 if (other ==
this)
return;
184 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
185 if (GetOwningArena() !=
nullptr &&
186 GetOwningArena() == other->GetOwningArena()) {
188 if (GetOwningArena() == other->GetOwningArena()) {
192 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
196 if (other ==
this)
return;
197 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
203 MACConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
204 return CreateMaybeMessage<MACConfig>(arena);
206 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
208 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
210 MACConfig::MergeImpl(*
this, from);
213 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
215 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
221 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
225 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
227 void SetCachedSize(
int size)
const final;
231 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
232 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
233 return "goby.acomms.protobuf.MACConfig";
236 explicit MACConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
237 bool is_message_owned =
false);
241 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
261 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
267 static_assert(::std::is_same<T, MACRefTime>::value ||
268 ::std::is_integral<T>::value,
269 "Incorrect type passed to function MACRefTime_Name.");
290 int _internal_slot_size()
const;
294 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
297 const ::goby::acomms::protobuf::ModemTransmission& _internal_slot(
int index)
const;
300 const ::goby::acomms::protobuf::ModemTransmission&
slot(
int index)
const;
302 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
308 bool _internal_has_modem_id()
const;
314 int32_t _internal_modem_id()
const;
315 void _internal_set_modem_id(int32_t value);
321 bool _internal_has_fixed_ref_time()
const;
327 int32_t _internal_fixed_ref_time()
const;
328 void _internal_set_fixed_ref_time(int32_t value);
334 bool _internal_has_ref_time_type()
const;
347 bool _internal_has_type()
const;
360 bool _internal_has_start_cycle_in_middle()
const;
366 bool _internal_start_cycle_in_middle()
const;
367 void _internal_set_start_cycle_in_middle(
bool value);
374 template<
typename Quantity >
376 {
set_fixed_ref_time(boost::units::quantity<fixed_ref_time_unit,google::protobuf::int32 >(value_w_units).value() ); };
378 template<
typename Quantity >
383 {
return fixed_ref_time_with_units<boost::units::quantity< fixed_ref_time_unit,google::protobuf::int32 > >(); };
389 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
390 typedef void InternalArenaConstructable_;
391 typedef void DestructorSkippable_;
393 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
394 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
395 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > slot_;
397 int32_t fixed_ref_time_;
400 bool start_cycle_in_middle_;
403 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto;
411 #pragma GCC diagnostic push
412 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
417inline bool MACConfig::_internal_has_modem_id()
const {
418 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
422 return _internal_has_modem_id();
426 _impl_._has_bits_[0] &= ~0x00000001u;
428inline int32_t MACConfig::_internal_modem_id()
const {
433 return _internal_modem_id();
435inline void MACConfig::_internal_set_modem_id(int32_t value) {
436 _impl_._has_bits_[0] |= 0x00000001u;
440 _internal_set_modem_id(value);
445inline bool MACConfig::_internal_has_type()
const {
446 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
450 return _internal_has_type();
454 _impl_._has_bits_[0] &= ~0x00000008u;
456inline ::goby::acomms::protobuf::MACType MACConfig::_internal_type()
const {
461 return _internal_type();
465 _impl_._has_bits_[0] |= 0x00000008u;
469 _internal_set_type(value);
474inline int MACConfig::_internal_slot_size()
const {
475 return _impl_.slot_.size();
478 return _internal_slot_size();
482 return _impl_.slot_.Mutable(index);
484inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
489inline const ::goby::acomms::protobuf::ModemTransmission& MACConfig::_internal_slot(
int index)
const {
490 return _impl_.slot_.Get(index);
492inline const ::goby::acomms::protobuf::ModemTransmission&
MACConfig::slot(
int index)
const {
494 return _internal_slot(index);
496inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::_internal_add_slot() {
497 return _impl_.slot_.Add();
504inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
511inline bool MACConfig::_internal_has_start_cycle_in_middle()
const {
512 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
516 return _internal_has_start_cycle_in_middle();
519 _impl_.start_cycle_in_middle_ =
true;
520 _impl_._has_bits_[0] &= ~0x00000010u;
522inline bool MACConfig::_internal_start_cycle_in_middle()
const {
523 return _impl_.start_cycle_in_middle_;
527 return _internal_start_cycle_in_middle();
529inline void MACConfig::_internal_set_start_cycle_in_middle(
bool value) {
530 _impl_._has_bits_[0] |= 0x00000010u;
531 _impl_.start_cycle_in_middle_ = value;
534 _internal_set_start_cycle_in_middle(value);
539inline bool MACConfig::_internal_has_ref_time_type()
const {
540 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
544 return _internal_has_ref_time_type();
547 _impl_.ref_time_type_ = 1;
548 _impl_._has_bits_[0] &= ~0x00000004u;
550inline ::goby::acomms::protobuf::MACConfig_MACRefTime MACConfig::_internal_ref_time_type()
const {
555 return _internal_ref_time_type();
559 _impl_._has_bits_[0] |= 0x00000004u;
560 _impl_.ref_time_type_ = value;
563 _internal_set_ref_time_type(value);
568inline bool MACConfig::_internal_has_fixed_ref_time()
const {
569 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
573 return _internal_has_fixed_ref_time();
576 _impl_.fixed_ref_time_ = 0;
577 _impl_._has_bits_[0] &= ~0x00000002u;
579inline int32_t MACConfig::_internal_fixed_ref_time()
const {
580 return _impl_.fixed_ref_time_;
584 return _internal_fixed_ref_time();
586inline void MACConfig::_internal_set_fixed_ref_time(int32_t value) {
587 _impl_._has_bits_[0] |= 0x00000002u;
588 _impl_.fixed_ref_time_ = value;
591 _internal_set_fixed_ref_time(value);
596 #pragma GCC diagnostic pop
605PROTOBUF_NAMESPACE_OPEN
610 return ::goby::acomms::protobuf::MACConfig_MACRefTime_descriptor();
615 return ::goby::acomms::protobuf::MACType_descriptor();
618PROTOBUF_NAMESPACE_CLOSE
622#include <google/protobuf/port_undef.inc>
const EnumDescriptor * GetEnumDescriptor< ::goby::acomms::protobuf::MACConfig_MACRefTime >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
const EnumDescriptor * GetEnumDescriptor< ::goby::acomms::protobuf::MACType >()
::goby::acomms::protobuf::MACConfig_MACRefTime ref_time_type() const
bool has_fixed_ref_time() const
void set_ref_time_type(::goby::acomms::protobuf::MACConfig_MACRefTime value)
size_t ByteSizeLong() const final
void UnsafeArenaSwap(MACConfig *other)
static constexpr MACRefTime REFERENCE_FIXED
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type fixed_ref_time_dimension
PROTOBUF_CONSTEXPR MACConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void clear_start_cycle_in_middle()
int32_t fixed_ref_time() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > & slot() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
bool has_ref_time_type() const
static const MACConfig & default_instance()
void MergeFrom(const MACConfig &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_modem_id(int32_t value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static bool MACRefTime_IsValid(int value)
void set_fixed_ref_time(int32_t value)
bool IsInitialized() const final
bool has_modem_id() const
void set_start_cycle_in_middle(bool value)
static constexpr int kIndexInFileMessages
@ kFixedRefTimeFieldNumber
@ kRefTimeTypeFieldNumber
@ kStartCycleInMiddleFieldNumber
MACConfig & operator=(MACConfig &&from) noexcept
void clear_ref_time_type()
MACConfig(MACConfig &&from) noexcept
static constexpr int MACRefTime_ARRAYSIZE
static const MACConfig * internal_default_instance()
void CopyFrom(const MACConfig &from)
static constexpr MACRefTime REFERENCE_START_OF_DAY
bool start_cycle_in_middle() const
static constexpr MACRefTime MACRefTime_MIN
bool has_start_cycle_in_middle() const
boost::units::unit< fixed_ref_time_dimension, boost::units::si::system > fixed_ref_time_unit
boost::units::quantity< fixed_ref_time_unit, google::protobuf::int32 > fixed_ref_time_with_units() const
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static bool MACRefTime_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MACRefTime *value)
MACConfig & operator=(const MACConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
friend void swap(MACConfig &a, MACConfig &b)
MACConfig(const MACConfig &from)
int GetCachedSize() const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void clear_fixed_ref_time()
void Swap(MACConfig *other)
MACConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_type(::goby::acomms::protobuf::MACType value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
::goby::acomms::protobuf::ModemTransmission * add_slot()
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MACRefTime_descriptor()
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > * mutable_slot()
static constexpr MACRefTime MACRefTime_MAX
void set_fixed_ref_time_with_units(Quantity value_w_units)
static const ClassData _class_data_
MACConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
::goby::acomms::protobuf::MACType type() const
Quantity fixed_ref_time_with_units() const
static const std::string & MACRefTime_Name(T enum_t_value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
constexpr MACType MACType_MAX
constexpr MACConfig_MACRefTime MACConfig_MACRefTime_MACRefTime_MIN
const std::string & MACConfig_MACRefTime_Name(T enum_t_value)
bool MACConfig_MACRefTime_IsValid(int value)
@ MACConfig_MACRefTime_REFERENCE_START_OF_DAY
@ MACConfig_MACRefTime_REFERENCE_FIXED
bool MACType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MACType *value)
bool MACType_IsValid(int value)
constexpr int MACConfig_MACRefTime_MACRefTime_ARRAYSIZE
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MACConfig_MACRefTime_descriptor()
const std::string & MACType_Name(T enum_t_value)
@ MAC_FIXED_DECENTRALIZED
MACConfigDefaultTypeInternal _MACConfig_default_instance_
constexpr int MACType_ARRAYSIZE
bool MACConfig_MACRefTime_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MACConfig_MACRefTime *value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MACType_descriptor()
constexpr MACConfig_MACRefTime MACConfig_MACRefTime_MACRefTime_MAX
constexpr MACType MACType_MIN
The global namespace for the Goby project.
static const uint32_t offsets[]