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 < 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
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.
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_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>
33 #include <google/protobuf/extension_set.h>
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>
44 #include <boost/units/systems/si.hpp>
46 #include <google/protobuf/port_def.inc>
47 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
48 PROTOBUF_NAMESPACE_OPEN
52 PROTOBUF_NAMESPACE_CLOSE
56 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
71 class MACConfigDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> ::goby::acomms::protobuf::MACConfig* Arena::CreateMaybeMessage<::goby::acomms::protobuf::MACConfig>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
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(
103 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MACConfig_MACRefTime>(
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(
126 const std::string& name,
MACType* value) {
127 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MACType>(
133 public ::PROTOBUF_NAMESPACE_ID::Message {
141 *
this = ::std::move(from);
148 inline MACConfig&
operator=(MACConfig&& from) noexcept {
149 if (GetArena() == from.GetArena()) {
150 if (
this != &from) InternalSwap(&from);
158 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
161 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
164 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
165 return GetDescriptor();
168 return GetMetadataStatic().descriptor;
171 return GetMetadataStatic().reflection;
177 return reinterpret_cast<const MACConfig*
>(
180 static constexpr
int kIndexInFileMessages =
183 friend void swap(MACConfig& a, MACConfig& b) {
186 inline void Swap(MACConfig* other) {
187 if (other ==
this)
return;
188 if (GetArena() == other->GetArena()) {
191 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
195 if (other ==
this)
return;
196 GOOGLE_DCHECK(GetArena() == other->GetArena());
202 inline MACConfig*
New() const final {
203 return CreateMaybeMessage<MACConfig>(
nullptr);
206 MACConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
207 return CreateMaybeMessage<MACConfig>(arena);
209 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
210 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
213 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
214 bool IsInitialized() 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(); }
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";
232 explicit MACConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
234 static void ArenaDtor(
void*
object);
235 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
240 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
261 static constexpr
int MACRefTime_ARRAYSIZE =
263 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
269 static_assert(::std::is_same<T, MACRefTime>::value ||
270 ::std::is_integral<T>::value,
271 "Incorrect type passed to function MACRefTime_Name.");
282 kSlotFieldNumber = 3,
283 kModemIdFieldNumber = 1,
284 kFixedRefTimeFieldNumber = 6,
285 kRefTimeTypeFieldNumber = 5,
286 kTypeFieldNumber = 2,
287 kStartCycleInMiddleFieldNumber = 4,
292 int _internal_slot_size()
const;
296 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
299 const ::goby::acomms::protobuf::ModemTransmission& _internal_slot(
int index)
const;
300 ::goby::acomms::protobuf::ModemTransmission* _internal_add_slot();
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 >&
310 bool _internal_has_modem_id()
const;
323 bool _internal_has_fixed_ref_time()
const;
336 bool _internal_has_ref_time_type()
const;
349 bool _internal_has_type()
const;
362 bool _internal_has_start_cycle_in_middle()
const;
368 bool _internal_start_cycle_in_middle()
const;
369 void _internal_set_start_cycle_in_middle(
bool value);
376 template<
typename Quantity >
378 { set_fixed_ref_time(boost::units::quantity<fixed_ref_time_unit,google::protobuf::int32 >(value_w_units).value() ); };
380 template<
typename Quantity >
385 {
return fixed_ref_time_with_units<boost::units::quantity< fixed_ref_time_unit,google::protobuf::int32 > >(); };
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_;
401 bool start_cycle_in_middle_;
402 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto;
410 #pragma GCC diagnostic push
411 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
416 inline bool MACConfig::_internal_has_modem_id()
const {
417 bool value = (_has_bits_[0] & 0x00000001u) != 0;
420 inline bool MACConfig::has_modem_id()
const {
421 return _internal_has_modem_id();
423 inline void MACConfig::clear_modem_id() {
425 _has_bits_[0] &= ~0x00000001u;
432 return _internal_modem_id();
435 _has_bits_[0] |= 0x00000001u;
439 _internal_set_modem_id(value);
444 inline bool MACConfig::_internal_has_type()
const {
445 bool value = (_has_bits_[0] & 0x00000008u) != 0;
448 inline bool MACConfig::has_type()
const {
449 return _internal_has_type();
451 inline void MACConfig::clear_type() {
453 _has_bits_[0] &= ~0x00000008u;
460 return _internal_type();
464 _has_bits_[0] |= 0x00000008u;
468 _internal_set_type(value);
473 inline int MACConfig::_internal_slot_size()
const {
476 inline int MACConfig::slot_size()
const {
477 return _internal_slot_size();
479 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::mutable_slot(
int index) {
481 return slot_.Mutable(index);
483 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
484 MACConfig::mutable_slot() {
488 inline const ::goby::acomms::protobuf::ModemTransmission& MACConfig::_internal_slot(
int index)
const {
489 return slot_.Get(index);
491 inline const ::goby::acomms::protobuf::ModemTransmission& MACConfig::slot(
int index)
const {
493 return _internal_slot(index);
495 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::_internal_add_slot() {
498 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::add_slot() {
500 return _internal_add_slot();
502 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
503 MACConfig::slot()
const {
509 inline bool MACConfig::_internal_has_start_cycle_in_middle()
const {
510 bool value = (_has_bits_[0] & 0x00000010u) != 0;
513 inline bool MACConfig::has_start_cycle_in_middle()
const {
514 return _internal_has_start_cycle_in_middle();
516 inline void MACConfig::clear_start_cycle_in_middle() {
517 start_cycle_in_middle_ =
true;
518 _has_bits_[0] &= ~0x00000010u;
520 inline bool MACConfig::_internal_start_cycle_in_middle()
const {
521 return start_cycle_in_middle_;
523 inline bool MACConfig::start_cycle_in_middle()
const {
525 return _internal_start_cycle_in_middle();
527 inline void MACConfig::_internal_set_start_cycle_in_middle(
bool value) {
528 _has_bits_[0] |= 0x00000010u;
529 start_cycle_in_middle_ =
value;
531 inline void MACConfig::set_start_cycle_in_middle(
bool value) {
532 _internal_set_start_cycle_in_middle(value);
537 inline bool MACConfig::_internal_has_ref_time_type()
const {
538 bool value = (_has_bits_[0] & 0x00000004u) != 0;
541 inline bool MACConfig::has_ref_time_type()
const {
542 return _internal_has_ref_time_type();
544 inline void MACConfig::clear_ref_time_type() {
546 _has_bits_[0] &= ~0x00000004u;
553 return _internal_ref_time_type();
557 _has_bits_[0] |= 0x00000004u;
558 ref_time_type_ =
value;
561 _internal_set_ref_time_type(value);
566 inline bool MACConfig::_internal_has_fixed_ref_time()
const {
567 bool value = (_has_bits_[0] & 0x00000002u) != 0;
570 inline bool MACConfig::has_fixed_ref_time()
const {
571 return _internal_has_fixed_ref_time();
573 inline void MACConfig::clear_fixed_ref_time() {
575 _has_bits_[0] &= ~0x00000002u;
578 return fixed_ref_time_;
582 return _internal_fixed_ref_time();
585 _has_bits_[0] |= 0x00000002u;
586 fixed_ref_time_ =
value;
589 _internal_set_fixed_ref_time(value);
594 #pragma GCC diagnostic pop
603 PROTOBUF_NAMESPACE_OPEN
607 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACConfig_MACRefTime>() {
612 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACType>() {
616 PROTOBUF_NAMESPACE_CLOSE
620 #include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
::goby::acomms::protobuf::MACConfig_MACRefTime ref_time_type() const
void set_start_cycle_in_middle(bool value)
bool has_start_cycle_in_middle() 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
MACConfig_MACRefTime MACRefTime
Quantity fixed_ref_time_with_units() const
::goby::acomms::protobuf::ModemTransmission * add_slot()
MACConfig(MACConfig &&from) noexcept
MACConfig(const MACConfig &from)
::PROTOBUF_NAMESPACE_ID::int32 modem_id() const
void clear_fixed_ref_time()
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
static void InitAsDefaultInstance()
const ::goby::acomms::protobuf::ModemTransmission & slot(int index) const
void UnsafeArenaSwap(MACConfig *other)
bool has_modem_id() const
::goby::acomms::protobuf::MACType type() const
MACConfig * New() const final
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()
bool has_ref_time_type() const
::goby::acomms::protobuf::ModemTransmission * mutable_slot(int index)
static bool MACRefTime_IsValid(int value)
void Swap(MACConfig *other)
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
void clear_start_cycle_in_middle()
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
bool start_cycle_in_middle() const
static const MACConfig * internal_default_instance()
void clear_ref_time_type()
bool has_fixed_ref_time() const
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)
@ MACConfig_MACRefTime_REFERENCE_START_OF_DAY
@ MACConfig_MACRefTime_REFERENCE_FIXED
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)
@ MAC_FIXED_DECENTRALIZED
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.
type
Generic JSON types used in JWTs.
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)