4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto
49 static const ::google::protobuf::internal::ParseTableField
entries[];
50 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
51 static const ::google::protobuf::internal::ParseTable
schema[1];
62 class MACConfigDefaultTypeInternal;
87 return ::google::protobuf::internal::NameOfEnum(
92 return ::google::protobuf::internal::ParseNamedEnum<MACConfig_MACRefTime>(
107 return ::google::protobuf::internal::NameOfEnum(
111 const ::std::string& name,
MACType* value) {
112 return ::google::protobuf::internal::ParseNamedEnum<MACType>(
131 *
this = ::std::move(from);
135 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
136 if (
this != &from) InternalSwap(&from);
144 return _internal_metadata_.unknown_fields();
147 return _internal_metadata_.mutable_unknown_fields();
150 static const ::google::protobuf::Descriptor*
descriptor();
155 return reinterpret_cast<const MACConfig*
>(
169 return CreateMaybeMessage<MACConfig>(NULL);
173 return CreateMaybeMessage<MACConfig>(arena);
175 void CopyFrom(const ::google::protobuf::Message& from)
final;
176 void MergeFrom(const ::google::protobuf::Message& from)
final;
184 ::
google::protobuf::io::CodedInputStream* input) final;
186 ::
google::protobuf::io::CodedOutputStream* output) const final;
188 bool deterministic, ::
google::protobuf::uint8* target) const final;
194 void SetCachedSize(
int size)
const final;
197 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
200 inline void* MaybeArenaPtr()
const {
223 static inline const ::google::protobuf::EnumDescriptor*
244 const ::goby::acomms::protobuf::ModemTransmission&
slot(
int index)
const;
246 const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
288 template<
typename Quantity >
290 {
set_fixed_ref_time(boost::units::quantity<fixed_ref_time_unit,google::protobuf::int32 >(value_w_units).value() ); };
292 template<
typename Quantity >
297 {
return fixed_ref_time_with_units<boost::units::quantity< fixed_ref_time_unit,google::protobuf::int32 > >(); };
301 void set_has_modem_id();
302 void clear_has_modem_id();
304 void clear_has_type();
305 void set_has_start_cycle_in_middle();
306 void clear_has_start_cycle_in_middle();
307 void set_has_ref_time_type();
308 void clear_has_ref_time_type();
309 void set_has_fixed_ref_time();
310 void clear_has_fixed_ref_time();
312 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
313 ::google::protobuf::internal::HasBits<1> _has_bits_;
314 mutable ::google::protobuf::internal::CachedSize _cached_size_;
320 bool start_cycle_in_middle_;
321 friend struct ::protobuf_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto::TableStruct;
329 #pragma GCC diagnostic push
330 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
336 return (_has_bits_[0] & 0x00000001u) != 0;
338 inline void MACConfig::set_has_modem_id() {
339 _has_bits_[0] |= 0x00000001u;
341 inline void MACConfig::clear_has_modem_id() {
342 _has_bits_[0] &= ~0x00000001u;
346 clear_has_modem_id();
360 return (_has_bits_[0] & 0x00000008u) != 0;
362 inline void MACConfig::set_has_type() {
363 _has_bits_[0] |= 0x00000008u;
365 inline void MACConfig::clear_has_type() {
366 _has_bits_[0] &= ~0x00000008u;
389 return slot_.Mutable(index);
391 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
396 inline const ::goby::acomms::protobuf::ModemTransmission&
MACConfig::slot(
int index)
const {
398 return slot_.Get(index);
404 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
412 return (_has_bits_[0] & 0x00000010u) != 0;
414 inline void MACConfig::set_has_start_cycle_in_middle() {
415 _has_bits_[0] |= 0x00000010u;
417 inline void MACConfig::clear_has_start_cycle_in_middle() {
418 _has_bits_[0] &= ~0x00000010u;
421 start_cycle_in_middle_ =
true;
422 clear_has_start_cycle_in_middle();
426 return start_cycle_in_middle_;
429 set_has_start_cycle_in_middle();
430 start_cycle_in_middle_ = value;
436 return (_has_bits_[0] & 0x00000004u) != 0;
438 inline void MACConfig::set_has_ref_time_type() {
439 _has_bits_[0] |= 0x00000004u;
441 inline void MACConfig::clear_has_ref_time_type() {
442 _has_bits_[0] &= ~0x00000004u;
446 clear_has_ref_time_type();
454 set_has_ref_time_type();
455 ref_time_type_ = value;
461 return (_has_bits_[0] & 0x00000002u) != 0;
463 inline void MACConfig::set_has_fixed_ref_time() {
464 _has_bits_[0] |= 0x00000002u;
466 inline void MACConfig::clear_has_fixed_ref_time() {
467 _has_bits_[0] &= ~0x00000002u;
471 clear_has_fixed_ref_time();
475 return fixed_ref_time_;
478 set_has_fixed_ref_time();
479 fixed_ref_time_ = value;
484 #pragma GCC diagnostic pop
498 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACConfig_MACRefTime>() {
503 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACType>() {
512 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto