4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2famac_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2famac_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 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 2006001 < 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/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "goby/common/protobuf/option_extensions.pb.h" 29 #include "dccl/option_extensions.pb.h" 30 #include "goby/acomms/protobuf/modem_message.pb.h" 31 #include <boost/units/quantity.hpp> 32 #include <boost/units/absolute.hpp> 33 #include <boost/units/dimensionless_type.hpp> 34 #include <boost/units/make_scaled_unit.hpp> 42 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2famac_2eproto();
43 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2famac_2eproto();
44 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2famac_2eproto();
48 enum MACUpdate_UpdateType {
49 MACUpdate_UpdateType_NO_CHANGE = 0,
50 MACUpdate_UpdateType_ASSIGN = 1,
51 MACUpdate_UpdateType_PUSH_BACK = 2,
52 MACUpdate_UpdateType_PUSH_FRONT = 3,
53 MACUpdate_UpdateType_POP_BACK = 4,
54 MACUpdate_UpdateType_POP_FRONT = 5,
55 MACUpdate_UpdateType_INSERT = 6,
56 MACUpdate_UpdateType_ERASE = 7,
57 MACUpdate_UpdateType_CLEAR = 8
59 bool MACUpdate_UpdateType_IsValid(
int value);
60 const MACUpdate_UpdateType MACUpdate_UpdateType_UpdateType_MIN = MACUpdate_UpdateType_NO_CHANGE;
61 const MACUpdate_UpdateType MACUpdate_UpdateType_UpdateType_MAX = MACUpdate_UpdateType_CLEAR;
62 const int MACUpdate_UpdateType_UpdateType_ARRAYSIZE = MACUpdate_UpdateType_UpdateType_MAX + 1;
64 const ::google::protobuf::EnumDescriptor* MACUpdate_UpdateType_descriptor();
65 inline const ::std::string& MACUpdate_UpdateType_Name(MACUpdate_UpdateType value) {
66 return ::google::protobuf::internal::NameOfEnum(
67 MACUpdate_UpdateType_descriptor(), value);
69 inline bool MACUpdate_UpdateType_Parse(
70 const ::std::string& name, MACUpdate_UpdateType* value) {
71 return ::google::protobuf::internal::ParseNamedEnum<MACUpdate_UpdateType>(
72 MACUpdate_UpdateType_descriptor(), name, value);
74 enum MACUpdate_CycleState {
75 MACUpdate_CycleState_STOPPED = 1,
76 MACUpdate_CycleState_STARTED = 2
78 bool MACUpdate_CycleState_IsValid(
int value);
79 const MACUpdate_CycleState MACUpdate_CycleState_CycleState_MIN = MACUpdate_CycleState_STOPPED;
80 const MACUpdate_CycleState MACUpdate_CycleState_CycleState_MAX = MACUpdate_CycleState_STARTED;
81 const int MACUpdate_CycleState_CycleState_ARRAYSIZE = MACUpdate_CycleState_CycleState_MAX + 1;
83 const ::google::protobuf::EnumDescriptor* MACUpdate_CycleState_descriptor();
84 inline const ::std::string& MACUpdate_CycleState_Name(MACUpdate_CycleState value) {
85 return ::google::protobuf::internal::NameOfEnum(
86 MACUpdate_CycleState_descriptor(), value);
88 inline bool MACUpdate_CycleState_Parse(
89 const ::std::string& name, MACUpdate_CycleState* value) {
90 return ::google::protobuf::internal::ParseNamedEnum<MACUpdate_CycleState>(
91 MACUpdate_CycleState_descriptor(), name, value);
95 class MACUpdate :
public ::google::protobuf::Message {
107 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
108 return _unknown_fields_;
111 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
112 return &_unknown_fields_;
115 static const ::google::protobuf::Descriptor* descriptor();
116 static const MACUpdate& default_instance();
123 void CopyFrom(const ::google::protobuf::Message& from);
124 void MergeFrom(const ::google::protobuf::Message& from);
128 bool IsInitialized()
const;
130 int ByteSize()
const;
131 bool MergePartialFromCodedStream(
132 ::google::protobuf::io::CodedInputStream* input);
133 void SerializeWithCachedSizes(
134 ::google::protobuf::io::CodedOutputStream* output)
const;
135 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
136 int GetCachedSize()
const {
return _cached_size_; }
140 void SetCachedSize(
int size)
const;
142 ::google::protobuf::Metadata GetMetadata()
const;
146 typedef MACUpdate_UpdateType UpdateType;
147 static const UpdateType NO_CHANGE = MACUpdate_UpdateType_NO_CHANGE;
148 static const UpdateType ASSIGN = MACUpdate_UpdateType_ASSIGN;
149 static const UpdateType PUSH_BACK = MACUpdate_UpdateType_PUSH_BACK;
150 static const UpdateType PUSH_FRONT = MACUpdate_UpdateType_PUSH_FRONT;
151 static const UpdateType POP_BACK = MACUpdate_UpdateType_POP_BACK;
152 static const UpdateType POP_FRONT = MACUpdate_UpdateType_POP_FRONT;
153 static const UpdateType INSERT = MACUpdate_UpdateType_INSERT;
154 static const UpdateType ERASE = MACUpdate_UpdateType_ERASE;
155 static const UpdateType CLEAR = MACUpdate_UpdateType_CLEAR;
156 static inline bool UpdateType_IsValid(
int value) {
157 return MACUpdate_UpdateType_IsValid(value);
159 static const UpdateType UpdateType_MIN =
160 MACUpdate_UpdateType_UpdateType_MIN;
161 static const UpdateType UpdateType_MAX =
162 MACUpdate_UpdateType_UpdateType_MAX;
163 static const int UpdateType_ARRAYSIZE =
164 MACUpdate_UpdateType_UpdateType_ARRAYSIZE;
165 static inline const ::google::protobuf::EnumDescriptor*
166 UpdateType_descriptor() {
167 return MACUpdate_UpdateType_descriptor();
169 static inline const ::std::string& UpdateType_Name(UpdateType value) {
170 return MACUpdate_UpdateType_Name(value);
172 static inline bool UpdateType_Parse(const ::std::string& name,
174 return MACUpdate_UpdateType_Parse(name, value);
177 typedef MACUpdate_CycleState CycleState;
178 static const CycleState STOPPED = MACUpdate_CycleState_STOPPED;
179 static const CycleState STARTED = MACUpdate_CycleState_STARTED;
180 static inline bool CycleState_IsValid(
int value) {
181 return MACUpdate_CycleState_IsValid(value);
183 static const CycleState CycleState_MIN =
184 MACUpdate_CycleState_CycleState_MIN;
185 static const CycleState CycleState_MAX =
186 MACUpdate_CycleState_CycleState_MAX;
187 static const int CycleState_ARRAYSIZE =
188 MACUpdate_CycleState_CycleState_ARRAYSIZE;
189 static inline const ::google::protobuf::EnumDescriptor*
190 CycleState_descriptor() {
191 return MACUpdate_CycleState_descriptor();
193 static inline const ::std::string& CycleState_Name(CycleState value) {
194 return MACUpdate_CycleState_Name(value);
196 static inline bool CycleState_Parse(const ::std::string& name,
198 return MACUpdate_CycleState_Parse(name, value);
204 inline bool has_src()
const;
205 inline void clear_src();
206 static const int kSrcFieldNumber = 1;
207 inline ::google::protobuf::int32 src()
const;
208 inline void set_src(::google::protobuf::int32 value);
211 inline bool has_dest()
const;
212 inline void clear_dest();
213 static const int kDestFieldNumber = 2;
214 inline ::google::protobuf::int32 dest()
const;
215 inline void set_dest(::google::protobuf::int32 value);
218 inline bool has_update_type()
const;
219 inline void clear_update_type();
220 static const int kUpdateTypeFieldNumber = 3;
221 inline ::goby::acomms::protobuf::MACUpdate_UpdateType update_type()
const;
222 inline void set_update_type(::goby::acomms::protobuf::MACUpdate_UpdateType value);
225 inline int slot_size()
const;
226 inline void clear_slot();
227 static const int kSlotFieldNumber = 4;
228 inline const ::goby::acomms::protobuf::ModemTransmission& slot(
int index)
const;
229 inline ::goby::acomms::protobuf::ModemTransmission* mutable_slot(
int index);
230 inline ::goby::acomms::protobuf::ModemTransmission* add_slot();
231 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
233 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
237 inline bool has_first_iterator()
const;
238 inline void clear_first_iterator();
239 static const int kFirstIteratorFieldNumber = 5;
240 inline ::google::protobuf::int32 first_iterator()
const;
241 inline void set_first_iterator(::google::protobuf::int32 value);
244 inline bool has_second_iterator()
const;
245 inline void clear_second_iterator();
246 static const int kSecondIteratorFieldNumber = 6;
247 inline ::google::protobuf::int32 second_iterator()
const;
248 inline void set_second_iterator(::google::protobuf::int32 value);
251 inline bool has_cycle_state()
const;
252 inline void clear_cycle_state();
253 static const int kCycleStateFieldNumber = 7;
254 inline ::goby::acomms::protobuf::MACUpdate_CycleState cycle_state()
const;
255 inline void set_cycle_state(::goby::acomms::protobuf::MACUpdate_CycleState value);
257 enum DCCLParameters { DCCL_ID = 5, DCCL_MAX_BYTES = 64 };
260 inline void set_has_src();
261 inline void clear_has_src();
262 inline void set_has_dest();
263 inline void clear_has_dest();
264 inline void set_has_update_type();
265 inline void clear_has_update_type();
266 inline void set_has_first_iterator();
267 inline void clear_has_first_iterator();
268 inline void set_has_second_iterator();
269 inline void clear_has_second_iterator();
270 inline void set_has_cycle_state();
271 inline void clear_has_cycle_state();
273 ::google::protobuf::UnknownFieldSet _unknown_fields_;
275 ::google::protobuf::uint32 _has_bits_[1];
276 mutable int _cached_size_;
277 ::google::protobuf::int32 src_;
278 ::google::protobuf::int32 dest_;
279 ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > slot_;
281 ::google::protobuf::int32 first_iterator_;
282 ::google::protobuf::int32 second_iterator_;
284 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2famac_2eproto();
285 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2famac_2eproto();
286 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2famac_2eproto();
288 void InitAsDefaultInstance();
299 inline bool MACUpdate::has_src()
const {
300 return (_has_bits_[0] & 0x00000001u) != 0;
302 inline void MACUpdate::set_has_src() {
303 _has_bits_[0] |= 0x00000001u;
305 inline void MACUpdate::clear_has_src() {
306 _has_bits_[0] &= ~0x00000001u;
308 inline void MACUpdate::clear_src() {
312 inline ::google::protobuf::int32 MACUpdate::src()
const {
316 inline void MACUpdate::set_src(::google::protobuf::int32 value) {
323 inline bool MACUpdate::has_dest()
const {
324 return (_has_bits_[0] & 0x00000002u) != 0;
326 inline void MACUpdate::set_has_dest() {
327 _has_bits_[0] |= 0x00000002u;
329 inline void MACUpdate::clear_has_dest() {
330 _has_bits_[0] &= ~0x00000002u;
332 inline void MACUpdate::clear_dest() {
336 inline ::google::protobuf::int32 MACUpdate::dest()
const {
340 inline void MACUpdate::set_dest(::google::protobuf::int32 value) {
347 inline bool MACUpdate::has_update_type()
const {
348 return (_has_bits_[0] & 0x00000004u) != 0;
350 inline void MACUpdate::set_has_update_type() {
351 _has_bits_[0] |= 0x00000004u;
353 inline void MACUpdate::clear_has_update_type() {
354 _has_bits_[0] &= ~0x00000004u;
356 inline void MACUpdate::clear_update_type() {
358 clear_has_update_type();
360 inline ::goby::acomms::protobuf::MACUpdate_UpdateType MACUpdate::update_type()
const {
362 return static_cast< ::goby::acomms::protobuf::MACUpdate_UpdateType
>(update_type_);
364 inline void MACUpdate::set_update_type(::goby::acomms::protobuf::MACUpdate_UpdateType value) {
365 assert(::goby::acomms::protobuf::MACUpdate_UpdateType_IsValid(value));
366 set_has_update_type();
367 update_type_ = value;
372 inline int MACUpdate::slot_size()
const {
375 inline void MACUpdate::clear_slot() {
378 inline const ::goby::acomms::protobuf::ModemTransmission& MACUpdate::slot(
int index)
const {
380 return slot_.Get(index);
382 inline ::goby::acomms::protobuf::ModemTransmission* MACUpdate::mutable_slot(
int index) {
384 return slot_.Mutable(index);
386 inline ::goby::acomms::protobuf::ModemTransmission* MACUpdate::add_slot() {
390 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
391 MACUpdate::slot()
const {
395 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
396 MACUpdate::mutable_slot() {
402 inline bool MACUpdate::has_first_iterator()
const {
403 return (_has_bits_[0] & 0x00000010u) != 0;
405 inline void MACUpdate::set_has_first_iterator() {
406 _has_bits_[0] |= 0x00000010u;
408 inline void MACUpdate::clear_has_first_iterator() {
409 _has_bits_[0] &= ~0x00000010u;
411 inline void MACUpdate::clear_first_iterator() {
413 clear_has_first_iterator();
415 inline ::google::protobuf::int32 MACUpdate::first_iterator()
const {
417 return first_iterator_;
419 inline void MACUpdate::set_first_iterator(::google::protobuf::int32 value) {
420 set_has_first_iterator();
421 first_iterator_ = value;
426 inline bool MACUpdate::has_second_iterator()
const {
427 return (_has_bits_[0] & 0x00000020u) != 0;
429 inline void MACUpdate::set_has_second_iterator() {
430 _has_bits_[0] |= 0x00000020u;
432 inline void MACUpdate::clear_has_second_iterator() {
433 _has_bits_[0] &= ~0x00000020u;
435 inline void MACUpdate::clear_second_iterator() {
436 second_iterator_ = -1;
437 clear_has_second_iterator();
439 inline ::google::protobuf::int32 MACUpdate::second_iterator()
const {
441 return second_iterator_;
443 inline void MACUpdate::set_second_iterator(::google::protobuf::int32 value) {
444 set_has_second_iterator();
445 second_iterator_ = value;
450 inline bool MACUpdate::has_cycle_state()
const {
451 return (_has_bits_[0] & 0x00000040u) != 0;
453 inline void MACUpdate::set_has_cycle_state() {
454 _has_bits_[0] |= 0x00000040u;
456 inline void MACUpdate::clear_has_cycle_state() {
457 _has_bits_[0] &= ~0x00000040u;
459 inline void MACUpdate::clear_cycle_state() {
461 clear_has_cycle_state();
463 inline ::goby::acomms::protobuf::MACUpdate_CycleState MACUpdate::cycle_state()
const {
465 return static_cast< ::goby::acomms::protobuf::MACUpdate_CycleState
>(cycle_state_);
467 inline void MACUpdate::set_cycle_state(::goby::acomms::protobuf::MACUpdate_CycleState value) {
468 assert(::goby::acomms::protobuf::MACUpdate_CycleState_IsValid(value));
469 set_has_cycle_state();
470 cycle_state_ = value;
485 template <>
struct is_proto_enum< ::goby::acomms::protobuf::MACUpdate_UpdateType> : ::google::protobuf::internal::true_type {};
487 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACUpdate_UpdateType>() {
488 return ::goby::acomms::protobuf::MACUpdate_UpdateType_descriptor();
490 template <>
struct is_proto_enum< ::goby::acomms::protobuf::MACUpdate_CycleState> : ::google::protobuf::internal::true_type {};
492 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACUpdate_CycleState>() {
493 return ::goby::acomms::protobuf::MACUpdate_CycleState_descriptor();
502 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2famac_2eproto__INCLUDED
The global namespace for the Goby project.