Goby v2
amac.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/amac.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2famac_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2famac_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
35 // @@protoc_insertion_point(includes)
36 
37 namespace goby {
38 namespace acomms {
39 namespace protobuf {
40 
41 // Internal implementation detail -- do not call these.
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();
45 
46 class MACUpdate;
47 
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
58 };
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;
63 
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);
68 }
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);
73 }
74 enum MACUpdate_CycleState {
75  MACUpdate_CycleState_STOPPED = 1,
76  MACUpdate_CycleState_STARTED = 2
77 };
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;
82 
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);
87 }
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);
92 }
93 // ===================================================================
94 
95 class MACUpdate : public ::google::protobuf::Message {
96  public:
97  MACUpdate();
98  virtual ~MACUpdate();
99 
100  MACUpdate(const MACUpdate& from);
101 
102  inline MACUpdate& operator=(const MACUpdate& from) {
103  CopyFrom(from);
104  return *this;
105  }
106 
107  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
108  return _unknown_fields_;
109  }
110 
111  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
112  return &_unknown_fields_;
113  }
114 
115  static const ::google::protobuf::Descriptor* descriptor();
116  static const MACUpdate& default_instance();
117 
118  void Swap(MACUpdate* other);
119 
120  // implements Message ----------------------------------------------
121 
122  MACUpdate* New() const;
123  void CopyFrom(const ::google::protobuf::Message& from);
124  void MergeFrom(const ::google::protobuf::Message& from);
125  void CopyFrom(const MACUpdate& from);
126  void MergeFrom(const MACUpdate& from);
127  void Clear();
128  bool IsInitialized() const;
129 
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_; }
137  private:
138  void SharedCtor();
139  void SharedDtor();
140  void SetCachedSize(int size) const;
141  public:
142  ::google::protobuf::Metadata GetMetadata() const;
143 
144  // nested types ----------------------------------------------------
145 
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);
158  }
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();
168  }
169  static inline const ::std::string& UpdateType_Name(UpdateType value) {
170  return MACUpdate_UpdateType_Name(value);
171  }
172  static inline bool UpdateType_Parse(const ::std::string& name,
173  UpdateType* value) {
174  return MACUpdate_UpdateType_Parse(name, value);
175  }
176 
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);
182  }
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();
192  }
193  static inline const ::std::string& CycleState_Name(CycleState value) {
194  return MACUpdate_CycleState_Name(value);
195  }
196  static inline bool CycleState_Parse(const ::std::string& name,
197  CycleState* value) {
198  return MACUpdate_CycleState_Parse(name, value);
199  }
200 
201  // accessors -------------------------------------------------------
202 
203  // required int32 src = 1;
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);
209 
210  // required int32 dest = 2;
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);
216 
217  // optional .goby.acomms.protobuf.MACUpdate.UpdateType update_type = 3 [default = NO_CHANGE];
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);
223 
224  // repeated .goby.acomms.protobuf.ModemTransmission slot = 4;
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 >&
232  slot() const;
233  inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
234  mutable_slot();
235 
236  // optional int32 first_iterator = 5 [default = 0];
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);
242 
243  // optional int32 second_iterator = 6 [default = -1];
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);
249 
250  // optional .goby.acomms.protobuf.MACUpdate.CycleState cycle_state = 7 [default = STARTED];
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);
256 
257  enum DCCLParameters { DCCL_ID = 5, DCCL_MAX_BYTES = 64 };
258  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MACUpdate)
259  private:
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();
272 
273  ::google::protobuf::UnknownFieldSet _unknown_fields_;
274 
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_;
280  int update_type_;
281  ::google::protobuf::int32 first_iterator_;
282  ::google::protobuf::int32 second_iterator_;
283  int cycle_state_;
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();
287 
288  void InitAsDefaultInstance();
289  static MACUpdate* default_instance_;
290 };
291 // ===================================================================
292 
293 
294 // ===================================================================
295 
296 // MACUpdate
297 
298 // required int32 src = 1;
299 inline bool MACUpdate::has_src() const {
300  return (_has_bits_[0] & 0x00000001u) != 0;
301 }
302 inline void MACUpdate::set_has_src() {
303  _has_bits_[0] |= 0x00000001u;
304 }
305 inline void MACUpdate::clear_has_src() {
306  _has_bits_[0] &= ~0x00000001u;
307 }
308 inline void MACUpdate::clear_src() {
309  src_ = 0;
310  clear_has_src();
311 }
312 inline ::google::protobuf::int32 MACUpdate::src() const {
313  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.src)
314  return src_;
315 }
316 inline void MACUpdate::set_src(::google::protobuf::int32 value) {
317  set_has_src();
318  src_ = value;
319  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.src)
320 }
321 
322 // required int32 dest = 2;
323 inline bool MACUpdate::has_dest() const {
324  return (_has_bits_[0] & 0x00000002u) != 0;
325 }
326 inline void MACUpdate::set_has_dest() {
327  _has_bits_[0] |= 0x00000002u;
328 }
329 inline void MACUpdate::clear_has_dest() {
330  _has_bits_[0] &= ~0x00000002u;
331 }
332 inline void MACUpdate::clear_dest() {
333  dest_ = 0;
334  clear_has_dest();
335 }
336 inline ::google::protobuf::int32 MACUpdate::dest() const {
337  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.dest)
338  return dest_;
339 }
340 inline void MACUpdate::set_dest(::google::protobuf::int32 value) {
341  set_has_dest();
342  dest_ = value;
343  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.dest)
344 }
345 
346 // optional .goby.acomms.protobuf.MACUpdate.UpdateType update_type = 3 [default = NO_CHANGE];
347 inline bool MACUpdate::has_update_type() const {
348  return (_has_bits_[0] & 0x00000004u) != 0;
349 }
350 inline void MACUpdate::set_has_update_type() {
351  _has_bits_[0] |= 0x00000004u;
352 }
353 inline void MACUpdate::clear_has_update_type() {
354  _has_bits_[0] &= ~0x00000004u;
355 }
356 inline void MACUpdate::clear_update_type() {
357  update_type_ = 0;
358  clear_has_update_type();
359 }
360 inline ::goby::acomms::protobuf::MACUpdate_UpdateType MACUpdate::update_type() const {
361  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.update_type)
362  return static_cast< ::goby::acomms::protobuf::MACUpdate_UpdateType >(update_type_);
363 }
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;
368  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.update_type)
369 }
370 
371 // repeated .goby.acomms.protobuf.ModemTransmission slot = 4;
372 inline int MACUpdate::slot_size() const {
373  return slot_.size();
374 }
375 inline void MACUpdate::clear_slot() {
376  slot_.Clear();
377 }
378 inline const ::goby::acomms::protobuf::ModemTransmission& MACUpdate::slot(int index) const {
379  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.slot)
380  return slot_.Get(index);
381 }
382 inline ::goby::acomms::protobuf::ModemTransmission* MACUpdate::mutable_slot(int index) {
383  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MACUpdate.slot)
384  return slot_.Mutable(index);
385 }
386 inline ::goby::acomms::protobuf::ModemTransmission* MACUpdate::add_slot() {
387  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.MACUpdate.slot)
388  return slot_.Add();
389 }
390 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
391 MACUpdate::slot() const {
392  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.MACUpdate.slot)
393  return slot_;
394 }
395 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
396 MACUpdate::mutable_slot() {
397  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.MACUpdate.slot)
398  return &slot_;
399 }
400 
401 // optional int32 first_iterator = 5 [default = 0];
402 inline bool MACUpdate::has_first_iterator() const {
403  return (_has_bits_[0] & 0x00000010u) != 0;
404 }
405 inline void MACUpdate::set_has_first_iterator() {
406  _has_bits_[0] |= 0x00000010u;
407 }
408 inline void MACUpdate::clear_has_first_iterator() {
409  _has_bits_[0] &= ~0x00000010u;
410 }
411 inline void MACUpdate::clear_first_iterator() {
412  first_iterator_ = 0;
413  clear_has_first_iterator();
414 }
415 inline ::google::protobuf::int32 MACUpdate::first_iterator() const {
416  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.first_iterator)
417  return first_iterator_;
418 }
419 inline void MACUpdate::set_first_iterator(::google::protobuf::int32 value) {
420  set_has_first_iterator();
421  first_iterator_ = value;
422  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.first_iterator)
423 }
424 
425 // optional int32 second_iterator = 6 [default = -1];
426 inline bool MACUpdate::has_second_iterator() const {
427  return (_has_bits_[0] & 0x00000020u) != 0;
428 }
429 inline void MACUpdate::set_has_second_iterator() {
430  _has_bits_[0] |= 0x00000020u;
431 }
432 inline void MACUpdate::clear_has_second_iterator() {
433  _has_bits_[0] &= ~0x00000020u;
434 }
435 inline void MACUpdate::clear_second_iterator() {
436  second_iterator_ = -1;
437  clear_has_second_iterator();
438 }
439 inline ::google::protobuf::int32 MACUpdate::second_iterator() const {
440  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.second_iterator)
441  return second_iterator_;
442 }
443 inline void MACUpdate::set_second_iterator(::google::protobuf::int32 value) {
444  set_has_second_iterator();
445  second_iterator_ = value;
446  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.second_iterator)
447 }
448 
449 // optional .goby.acomms.protobuf.MACUpdate.CycleState cycle_state = 7 [default = STARTED];
450 inline bool MACUpdate::has_cycle_state() const {
451  return (_has_bits_[0] & 0x00000040u) != 0;
452 }
453 inline void MACUpdate::set_has_cycle_state() {
454  _has_bits_[0] |= 0x00000040u;
455 }
456 inline void MACUpdate::clear_has_cycle_state() {
457  _has_bits_[0] &= ~0x00000040u;
458 }
459 inline void MACUpdate::clear_cycle_state() {
460  cycle_state_ = 2;
461  clear_has_cycle_state();
462 }
463 inline ::goby::acomms::protobuf::MACUpdate_CycleState MACUpdate::cycle_state() const {
464  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACUpdate.cycle_state)
465  return static_cast< ::goby::acomms::protobuf::MACUpdate_CycleState >(cycle_state_);
466 }
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;
471  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACUpdate.cycle_state)
472 }
473 
474 
475 // @@protoc_insertion_point(namespace_scope)
476 
477 } // namespace protobuf
478 } // namespace acomms
479 } // namespace goby
480 
481 #ifndef SWIG
482 namespace google {
483 namespace protobuf {
484 
485 template <> struct is_proto_enum< ::goby::acomms::protobuf::MACUpdate_UpdateType> : ::google::protobuf::internal::true_type {};
486 template <>
487 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACUpdate_UpdateType>() {
488  return ::goby::acomms::protobuf::MACUpdate_UpdateType_descriptor();
489 }
490 template <> struct is_proto_enum< ::goby::acomms::protobuf::MACUpdate_CycleState> : ::google::protobuf::internal::true_type {};
491 template <>
492 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACUpdate_CycleState>() {
493  return ::goby::acomms::protobuf::MACUpdate_CycleState_descriptor();
494 }
495 
496 } // namespace google
497 } // namespace protobuf
498 #endif // SWIG
499 
500 // @@protoc_insertion_point(global_scope)
501 
502 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2famac_2eproto__INCLUDED
The global namespace for the Goby project.