Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_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>
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>
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2famac_2eproto
47 static const ::google::protobuf::internal::ParseTableField
entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
49 static const ::google::protobuf::internal::ParseTable
schema[1];
60 class MACUpdateDefaultTypeInternal;
92 return ::google::protobuf::internal::NameOfEnum(
97 return ::google::protobuf::internal::ParseNamedEnum<MACUpdate_UpdateType>(
111 return ::google::protobuf::internal::NameOfEnum(
116 return ::google::protobuf::internal::ParseNamedEnum<MACUpdate_CycleState>(
135 *
this = ::std::move(from);
139 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
140 if (
this != &from) InternalSwap(&from);
148 return _internal_metadata_.unknown_fields();
151 return _internal_metadata_.mutable_unknown_fields();
154 static const ::google::protobuf::Descriptor*
descriptor();
159 return reinterpret_cast<const MACUpdate*
>(
173 return CreateMaybeMessage<MACUpdate>(NULL);
177 return CreateMaybeMessage<MACUpdate>(arena);
179 void CopyFrom(const ::google::protobuf::Message& from)
final;
180 void MergeFrom(const ::google::protobuf::Message& from)
final;
188 ::
google::protobuf::io::CodedInputStream* input) final;
190 ::
google::protobuf::io::CodedOutputStream* output) const final;
192 bool deterministic, ::
google::protobuf::uint8* target) const final;
198 void SetCachedSize(
int size)
const final;
201 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
204 inline void* MaybeArenaPtr()
const {
241 static inline const ::google::protobuf::EnumDescriptor*
267 static inline const ::google::protobuf::EnumDescriptor*
288 const ::goby::acomms::protobuf::ModemTransmission&
slot(
int index)
const;
290 const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
339 void clear_has_src();
341 void clear_has_dest();
342 void set_has_update_type();
343 void clear_has_update_type();
344 void set_has_first_iterator();
345 void clear_has_first_iterator();
346 void set_has_second_iterator();
347 void clear_has_second_iterator();
348 void set_has_cycle_state();
349 void clear_has_cycle_state();
352 size_t RequiredFieldsByteSizeFallback()
const;
354 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
355 ::google::protobuf::internal::HasBits<1> _has_bits_;
356 mutable ::google::protobuf::internal::CachedSize _cached_size_;
364 friend struct ::protobuf_goby_2facomms_2fprotobuf_2famac_2eproto::TableStruct;
372 #pragma GCC diagnostic push
373 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
379 return (_has_bits_[0] & 0x00000001u) != 0;
381 inline void MACUpdate::set_has_src() {
382 _has_bits_[0] |= 0x00000001u;
384 inline void MACUpdate::clear_has_src() {
385 _has_bits_[0] &= ~0x00000001u;
403 return (_has_bits_[0] & 0x00000002u) != 0;
405 inline void MACUpdate::set_has_dest() {
406 _has_bits_[0] |= 0x00000002u;
408 inline void MACUpdate::clear_has_dest() {
409 _has_bits_[0] &= ~0x00000002u;
427 return (_has_bits_[0] & 0x00000004u) != 0;
429 inline void MACUpdate::set_has_update_type() {
430 _has_bits_[0] |= 0x00000004u;
432 inline void MACUpdate::clear_has_update_type() {
433 _has_bits_[0] &= ~0x00000004u;
437 clear_has_update_type();
445 set_has_update_type();
446 update_type_ = value;
456 return slot_.Mutable(index);
458 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
463 inline const ::goby::acomms::protobuf::ModemTransmission&
MACUpdate::slot(
int index)
const {
465 return slot_.Get(index);
471 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
479 return (_has_bits_[0] & 0x00000008u) != 0;
481 inline void MACUpdate::set_has_first_iterator() {
482 _has_bits_[0] |= 0x00000008u;
484 inline void MACUpdate::clear_has_first_iterator() {
485 _has_bits_[0] &= ~0x00000008u;
489 clear_has_first_iterator();
493 return first_iterator_;
496 set_has_first_iterator();
497 first_iterator_ = value;
503 return (_has_bits_[0] & 0x00000010u) != 0;
505 inline void MACUpdate::set_has_second_iterator() {
506 _has_bits_[0] |= 0x00000010u;
508 inline void MACUpdate::clear_has_second_iterator() {
509 _has_bits_[0] &= ~0x00000010u;
512 second_iterator_ = -1;
513 clear_has_second_iterator();
517 return second_iterator_;
520 set_has_second_iterator();
521 second_iterator_ = value;
527 return (_has_bits_[0] & 0x00000020u) != 0;
529 inline void MACUpdate::set_has_cycle_state() {
530 _has_bits_[0] |= 0x00000020u;
532 inline void MACUpdate::clear_has_cycle_state() {
533 _has_bits_[0] &= ~0x00000020u;
537 clear_has_cycle_state();
545 set_has_cycle_state();
546 cycle_state_ = value;
551 #pragma GCC diagnostic pop
565 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACUpdate_UpdateType>() {
570 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACUpdate_CycleState>() {
579 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2famac_2eproto
@ MACUpdate_UpdateType_PUSH_BACK
MACUpdateDefaultTypeInternal _MACUpdate_default_instance_
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::int32 src() const
const MACUpdate_UpdateType MACUpdate_UpdateType_UpdateType_MAX
MACUpdate & operator=(const MACUpdate &from)
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
@ MACUpdate_UpdateType_ERASE
::google::protobuf::Metadata GetMetadata() const final
@ MACUpdate_CycleState_STOPPED
static const ::std::string & CycleState_Name(CycleState value)
static const UpdateType UpdateType_MAX
The global namespace for the Goby project.
static const UpdateType NO_CHANGE
static bool CycleState_Parse(const ::std::string &name, CycleState *value)
static const UpdateType INSERT
static const int UpdateType_ARRAYSIZE
::google::protobuf::int32 second_iterator() const
const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > & slot() const
@ MACUpdate_UpdateType_NO_CHANGE
const ::google::protobuf::EnumDescriptor * MACUpdate_UpdateType_descriptor()
@ MACUpdate_UpdateType_ASSIGN
@ MACUpdate_UpdateType_CLEAR
void MergeFrom(const ::google::protobuf::Message &from) final
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
static const int kUpdateTypeFieldNumber
static const UpdateType ASSIGN
static bool UpdateType_Parse(const ::std::string &name, UpdateType *value)
bool MACUpdate_CycleState_Parse(const ::std::string &name, MACUpdate_CycleState *value)
static const ::google::protobuf::Descriptor * descriptor()
static bool CycleState_IsValid(int value)
::goby::acomms::protobuf::MACUpdate_UpdateType update_type() const
@ MACUpdate_UpdateType_PUSH_FRONT
static const ::google::protobuf::internal::SerializationTable serialization_table[]
static const UpdateType POP_BACK
static const int CycleState_ARRAYSIZE
const int MACUpdate_UpdateType_UpdateType_ARRAYSIZE
static const MACUpdate * internal_default_instance()
static const ::google::protobuf::EnumDescriptor * CycleState_descriptor()
static const int kSrcFieldNumber
void set_cycle_state(::goby::acomms::protobuf::MACUpdate_CycleState value)
void clear_second_iterator()
static const int kFirstIteratorFieldNumber
::google::protobuf::int32 first_iterator() const
const MACUpdate_UpdateType MACUpdate_UpdateType_UpdateType_MIN
bool has_cycle_state() const
static const CycleState CycleState_MAX
void set_dest(::google::protobuf::int32 value)
MACUpdate * New() const final
MACUpdate_CycleState CycleState
static const int kSecondIteratorFieldNumber
@ MACUpdate_CycleState_STARTED
static const int kDestFieldNumber
const ::std::string & MACUpdate_CycleState_Name(MACUpdate_CycleState value)
static const UpdateType ERASE
::google::protobuf::int32 dest() const
void set_first_iterator(::google::protobuf::int32 value)
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
const ::google::protobuf::EnumDescriptor * MACUpdate_CycleState_descriptor()
bool has_second_iterator() const
const MACUpdate_CycleState MACUpdate_CycleState_CycleState_MIN
static const UpdateType PUSH_FRONT
const int MACUpdate_CycleState_CycleState_ARRAYSIZE
@ MACUpdate_UpdateType_POP_BACK
static const UpdateType PUSH_BACK
static constexpr int kIndexInFileMessages
void set_src(::google::protobuf::int32 value)
int GetCachedSize() const final
static const ::google::protobuf::uint32 offsets[]
static const UpdateType CLEAR
void clear_first_iterator()
void CopyFrom(const ::google::protobuf::Message &from) final
MACUpdate * New(::google::protobuf::Arena *arena) const final
bool MACUpdate_CycleState_IsValid(int value)
::goby::acomms::protobuf::ModemTransmission * add_slot()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
@ MACUpdate_UpdateType_INSERT
const ::std::string & MACUpdate_UpdateType_Name(MACUpdate_UpdateType value)
::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > * mutable_slot()
bool has_update_type() const
static const CycleState STARTED
friend void swap(MACUpdate &a, MACUpdate &b)
void Swap(MACUpdate *other)
size_t ByteSizeLong() const final
void set_update_type(::goby::acomms::protobuf::MACUpdate_UpdateType value)
static const ::std::string & UpdateType_Name(UpdateType value)
static const ::google::protobuf::EnumDescriptor * UpdateType_descriptor()
bool MACUpdate_UpdateType_Parse(const ::std::string &name, MACUpdate_UpdateType *value)
static const CycleState STOPPED
static bool UpdateType_IsValid(int value)
static void InitAsDefaultInstance()
static const ::google::protobuf::internal::ParseTableField entries[]
::goby::acomms::protobuf::MACUpdate_CycleState cycle_state() const
static const int kCycleStateFieldNumber
static const CycleState CycleState_MIN
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
void set_second_iterator(::google::protobuf::int32 value)
bool MACUpdate_UpdateType_IsValid(int value)
const MACUpdate_CycleState MACUpdate_CycleState_CycleState_MAX
static const ::google::protobuf::internal::ParseTable schema[1]
bool IsInitialized() const final
static const UpdateType POP_FRONT
static const MACUpdate & default_instance()
static const UpdateType UpdateType_MIN
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
bool has_first_iterator() const
static const int kSlotFieldNumber
@ MACUpdate_UpdateType_POP_FRONT