Goby v2
amac_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/amac_config.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2famac_5fconfig_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 "goby/acomms/protobuf/modem_message.pb.h"
30 #include <boost/units/quantity.hpp>
31 #include <boost/units/absolute.hpp>
32 #include <boost/units/dimensionless_type.hpp>
33 #include <boost/units/make_scaled_unit.hpp>
34 // @@protoc_insertion_point(includes)
35 
36 namespace goby {
37 namespace acomms {
38 namespace protobuf {
39 
40 // Internal implementation detail -- do not call these.
41 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
42 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
43 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
44 
45 class MACConfig;
46 
47 enum MACConfig_MACRefTime {
48  MACConfig_MACRefTime_REFERENCE_START_OF_DAY = 1,
49  MACConfig_MACRefTime_REFERENCE_FIXED = 2
50 };
51 bool MACConfig_MACRefTime_IsValid(int value);
52 const MACConfig_MACRefTime MACConfig_MACRefTime_MACRefTime_MIN = MACConfig_MACRefTime_REFERENCE_START_OF_DAY;
53 const MACConfig_MACRefTime MACConfig_MACRefTime_MACRefTime_MAX = MACConfig_MACRefTime_REFERENCE_FIXED;
54 const int MACConfig_MACRefTime_MACRefTime_ARRAYSIZE = MACConfig_MACRefTime_MACRefTime_MAX + 1;
55 
56 const ::google::protobuf::EnumDescriptor* MACConfig_MACRefTime_descriptor();
57 inline const ::std::string& MACConfig_MACRefTime_Name(MACConfig_MACRefTime value) {
58  return ::google::protobuf::internal::NameOfEnum(
59  MACConfig_MACRefTime_descriptor(), value);
60 }
61 inline bool MACConfig_MACRefTime_Parse(
62  const ::std::string& name, MACConfig_MACRefTime* value) {
63  return ::google::protobuf::internal::ParseNamedEnum<MACConfig_MACRefTime>(
64  MACConfig_MACRefTime_descriptor(), name, value);
65 }
66 enum MACType {
67  MAC_NONE = 1,
68  MAC_FIXED_DECENTRALIZED = 2,
69  MAC_POLLED = 4
70 };
71 bool MACType_IsValid(int value);
72 const MACType MACType_MIN = MAC_NONE;
73 const MACType MACType_MAX = MAC_POLLED;
74 const int MACType_ARRAYSIZE = MACType_MAX + 1;
75 
76 const ::google::protobuf::EnumDescriptor* MACType_descriptor();
77 inline const ::std::string& MACType_Name(MACType value) {
78  return ::google::protobuf::internal::NameOfEnum(
79  MACType_descriptor(), value);
80 }
81 inline bool MACType_Parse(
82  const ::std::string& name, MACType* value) {
83  return ::google::protobuf::internal::ParseNamedEnum<MACType>(
84  MACType_descriptor(), name, value);
85 }
86 // ===================================================================
87 
88 class MACConfig : public ::google::protobuf::Message {
89  public:
90  MACConfig();
91  virtual ~MACConfig();
92 
93  MACConfig(const MACConfig& from);
94 
95  inline MACConfig& operator=(const MACConfig& from) {
96  CopyFrom(from);
97  return *this;
98  }
99 
100  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
101  return _unknown_fields_;
102  }
103 
104  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
105  return &_unknown_fields_;
106  }
107 
108  static const ::google::protobuf::Descriptor* descriptor();
109  static const MACConfig& default_instance();
110 
111  void Swap(MACConfig* other);
112 
113  // implements Message ----------------------------------------------
114 
115  MACConfig* New() const;
116  void CopyFrom(const ::google::protobuf::Message& from);
117  void MergeFrom(const ::google::protobuf::Message& from);
118  void CopyFrom(const MACConfig& from);
119  void MergeFrom(const MACConfig& from);
120  void Clear();
121  bool IsInitialized() const;
122 
123  int ByteSize() const;
124  bool MergePartialFromCodedStream(
125  ::google::protobuf::io::CodedInputStream* input);
126  void SerializeWithCachedSizes(
127  ::google::protobuf::io::CodedOutputStream* output) const;
128  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
129  int GetCachedSize() const { return _cached_size_; }
130  private:
131  void SharedCtor();
132  void SharedDtor();
133  void SetCachedSize(int size) const;
134  public:
135  ::google::protobuf::Metadata GetMetadata() const;
136 
137  // nested types ----------------------------------------------------
138 
139  typedef MACConfig_MACRefTime MACRefTime;
140  static const MACRefTime REFERENCE_START_OF_DAY = MACConfig_MACRefTime_REFERENCE_START_OF_DAY;
141  static const MACRefTime REFERENCE_FIXED = MACConfig_MACRefTime_REFERENCE_FIXED;
142  static inline bool MACRefTime_IsValid(int value) {
143  return MACConfig_MACRefTime_IsValid(value);
144  }
145  static const MACRefTime MACRefTime_MIN =
146  MACConfig_MACRefTime_MACRefTime_MIN;
147  static const MACRefTime MACRefTime_MAX =
148  MACConfig_MACRefTime_MACRefTime_MAX;
149  static const int MACRefTime_ARRAYSIZE =
150  MACConfig_MACRefTime_MACRefTime_ARRAYSIZE;
151  static inline const ::google::protobuf::EnumDescriptor*
152  MACRefTime_descriptor() {
153  return MACConfig_MACRefTime_descriptor();
154  }
155  static inline const ::std::string& MACRefTime_Name(MACRefTime value) {
156  return MACConfig_MACRefTime_Name(value);
157  }
158  static inline bool MACRefTime_Parse(const ::std::string& name,
159  MACRefTime* value) {
160  return MACConfig_MACRefTime_Parse(name, value);
161  }
162 
163  // accessors -------------------------------------------------------
164 
165  // optional int32 modem_id = 1;
166  inline bool has_modem_id() const;
167  inline void clear_modem_id();
168  static const int kModemIdFieldNumber = 1;
169  inline ::google::protobuf::int32 modem_id() const;
170  inline void set_modem_id(::google::protobuf::int32 value);
171 
172  // optional .goby.acomms.protobuf.MACType type = 2 [default = MAC_NONE];
173  inline bool has_type() const;
174  inline void clear_type();
175  static const int kTypeFieldNumber = 2;
176  inline ::goby::acomms::protobuf::MACType type() const;
177  inline void set_type(::goby::acomms::protobuf::MACType value);
178 
179  // repeated .goby.acomms.protobuf.ModemTransmission slot = 3;
180  inline int slot_size() const;
181  inline void clear_slot();
182  static const int kSlotFieldNumber = 3;
183  inline const ::goby::acomms::protobuf::ModemTransmission& slot(int index) const;
184  inline ::goby::acomms::protobuf::ModemTransmission* mutable_slot(int index);
185  inline ::goby::acomms::protobuf::ModemTransmission* add_slot();
186  inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
187  slot() const;
188  inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
189  mutable_slot();
190 
191  // optional bool start_cycle_in_middle = 4 [default = true];
192  inline bool has_start_cycle_in_middle() const;
193  inline void clear_start_cycle_in_middle();
194  static const int kStartCycleInMiddleFieldNumber = 4;
195  inline bool start_cycle_in_middle() const;
196  inline void set_start_cycle_in_middle(bool value);
197 
198  // optional .goby.acomms.protobuf.MACConfig.MACRefTime ref_time_type = 5 [default = REFERENCE_START_OF_DAY];
199  inline bool has_ref_time_type() const;
200  inline void clear_ref_time_type();
201  static const int kRefTimeTypeFieldNumber = 5;
202  inline ::goby::acomms::protobuf::MACConfig_MACRefTime ref_time_type() const;
203  inline void set_ref_time_type(::goby::acomms::protobuf::MACConfig_MACRefTime value);
204 
205  // optional int32 fixed_ref_time = 6;
206  inline bool has_fixed_ref_time() const;
207  inline void clear_fixed_ref_time();
208  static const int kFixedRefTimeFieldNumber = 6;
209  inline ::google::protobuf::int32 fixed_ref_time() const;
210  inline void set_fixed_ref_time(::google::protobuf::int32 value);
211 
212  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MACConfig)
213  private:
214  inline void set_has_modem_id();
215  inline void clear_has_modem_id();
216  inline void set_has_type();
217  inline void clear_has_type();
218  inline void set_has_start_cycle_in_middle();
219  inline void clear_has_start_cycle_in_middle();
220  inline void set_has_ref_time_type();
221  inline void clear_has_ref_time_type();
222  inline void set_has_fixed_ref_time();
223  inline void clear_has_fixed_ref_time();
224 
225  ::google::protobuf::UnknownFieldSet _unknown_fields_;
226 
227  ::google::protobuf::uint32 _has_bits_[1];
228  mutable int _cached_size_;
229  ::google::protobuf::int32 modem_id_;
230  int type_;
231  ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > slot_;
232  bool start_cycle_in_middle_;
233  int ref_time_type_;
234  ::google::protobuf::int32 fixed_ref_time_;
235  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
236  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
237  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
238 
239  void InitAsDefaultInstance();
240  static MACConfig* default_instance_;
241 };
242 // ===================================================================
243 
244 
245 // ===================================================================
246 
247 // MACConfig
248 
249 // optional int32 modem_id = 1;
250 inline bool MACConfig::has_modem_id() const {
251  return (_has_bits_[0] & 0x00000001u) != 0;
252 }
253 inline void MACConfig::set_has_modem_id() {
254  _has_bits_[0] |= 0x00000001u;
255 }
256 inline void MACConfig::clear_has_modem_id() {
257  _has_bits_[0] &= ~0x00000001u;
258 }
259 inline void MACConfig::clear_modem_id() {
260  modem_id_ = 0;
261  clear_has_modem_id();
262 }
263 inline ::google::protobuf::int32 MACConfig::modem_id() const {
264  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.modem_id)
265  return modem_id_;
266 }
267 inline void MACConfig::set_modem_id(::google::protobuf::int32 value) {
268  set_has_modem_id();
269  modem_id_ = value;
270  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.modem_id)
271 }
272 
273 // optional .goby.acomms.protobuf.MACType type = 2 [default = MAC_NONE];
274 inline bool MACConfig::has_type() const {
275  return (_has_bits_[0] & 0x00000002u) != 0;
276 }
277 inline void MACConfig::set_has_type() {
278  _has_bits_[0] |= 0x00000002u;
279 }
280 inline void MACConfig::clear_has_type() {
281  _has_bits_[0] &= ~0x00000002u;
282 }
283 inline void MACConfig::clear_type() {
284  type_ = 1;
285  clear_has_type();
286 }
287 inline ::goby::acomms::protobuf::MACType MACConfig::type() const {
288  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.type)
289  return static_cast< ::goby::acomms::protobuf::MACType >(type_);
290 }
291 inline void MACConfig::set_type(::goby::acomms::protobuf::MACType value) {
292  assert(::goby::acomms::protobuf::MACType_IsValid(value));
293  set_has_type();
294  type_ = value;
295  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.type)
296 }
297 
298 // repeated .goby.acomms.protobuf.ModemTransmission slot = 3;
299 inline int MACConfig::slot_size() const {
300  return slot_.size();
301 }
302 inline void MACConfig::clear_slot() {
303  slot_.Clear();
304 }
305 inline const ::goby::acomms::protobuf::ModemTransmission& MACConfig::slot(int index) const {
306  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.slot)
307  return slot_.Get(index);
308 }
309 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::mutable_slot(int index) {
310  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MACConfig.slot)
311  return slot_.Mutable(index);
312 }
313 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::add_slot() {
314  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.MACConfig.slot)
315  return slot_.Add();
316 }
317 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
318 MACConfig::slot() const {
319  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.MACConfig.slot)
320  return slot_;
321 }
322 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
323 MACConfig::mutable_slot() {
324  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.MACConfig.slot)
325  return &slot_;
326 }
327 
328 // optional bool start_cycle_in_middle = 4 [default = true];
329 inline bool MACConfig::has_start_cycle_in_middle() const {
330  return (_has_bits_[0] & 0x00000008u) != 0;
331 }
332 inline void MACConfig::set_has_start_cycle_in_middle() {
333  _has_bits_[0] |= 0x00000008u;
334 }
335 inline void MACConfig::clear_has_start_cycle_in_middle() {
336  _has_bits_[0] &= ~0x00000008u;
337 }
338 inline void MACConfig::clear_start_cycle_in_middle() {
339  start_cycle_in_middle_ = true;
340  clear_has_start_cycle_in_middle();
341 }
342 inline bool MACConfig::start_cycle_in_middle() const {
343  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.start_cycle_in_middle)
344  return start_cycle_in_middle_;
345 }
346 inline void MACConfig::set_start_cycle_in_middle(bool value) {
347  set_has_start_cycle_in_middle();
348  start_cycle_in_middle_ = value;
349  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.start_cycle_in_middle)
350 }
351 
352 // optional .goby.acomms.protobuf.MACConfig.MACRefTime ref_time_type = 5 [default = REFERENCE_START_OF_DAY];
353 inline bool MACConfig::has_ref_time_type() const {
354  return (_has_bits_[0] & 0x00000010u) != 0;
355 }
356 inline void MACConfig::set_has_ref_time_type() {
357  _has_bits_[0] |= 0x00000010u;
358 }
359 inline void MACConfig::clear_has_ref_time_type() {
360  _has_bits_[0] &= ~0x00000010u;
361 }
362 inline void MACConfig::clear_ref_time_type() {
363  ref_time_type_ = 1;
364  clear_has_ref_time_type();
365 }
366 inline ::goby::acomms::protobuf::MACConfig_MACRefTime MACConfig::ref_time_type() const {
367  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.ref_time_type)
368  return static_cast< ::goby::acomms::protobuf::MACConfig_MACRefTime >(ref_time_type_);
369 }
370 inline void MACConfig::set_ref_time_type(::goby::acomms::protobuf::MACConfig_MACRefTime value) {
371  assert(::goby::acomms::protobuf::MACConfig_MACRefTime_IsValid(value));
372  set_has_ref_time_type();
373  ref_time_type_ = value;
374  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.ref_time_type)
375 }
376 
377 // optional int32 fixed_ref_time = 6;
378 inline bool MACConfig::has_fixed_ref_time() const {
379  return (_has_bits_[0] & 0x00000020u) != 0;
380 }
381 inline void MACConfig::set_has_fixed_ref_time() {
382  _has_bits_[0] |= 0x00000020u;
383 }
384 inline void MACConfig::clear_has_fixed_ref_time() {
385  _has_bits_[0] &= ~0x00000020u;
386 }
387 inline void MACConfig::clear_fixed_ref_time() {
388  fixed_ref_time_ = 0;
389  clear_has_fixed_ref_time();
390 }
391 inline ::google::protobuf::int32 MACConfig::fixed_ref_time() const {
392  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MACConfig.fixed_ref_time)
393  return fixed_ref_time_;
394 }
395 inline void MACConfig::set_fixed_ref_time(::google::protobuf::int32 value) {
396  set_has_fixed_ref_time();
397  fixed_ref_time_ = value;
398  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MACConfig.fixed_ref_time)
399 }
400 
401 
402 // @@protoc_insertion_point(namespace_scope)
403 
404 } // namespace protobuf
405 } // namespace acomms
406 } // namespace goby
407 
408 #ifndef SWIG
409 namespace google {
410 namespace protobuf {
411 
412 template <> struct is_proto_enum< ::goby::acomms::protobuf::MACConfig_MACRefTime> : ::google::protobuf::internal::true_type {};
413 template <>
414 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACConfig_MACRefTime>() {
415  return ::goby::acomms::protobuf::MACConfig_MACRefTime_descriptor();
416 }
417 template <> struct is_proto_enum< ::goby::acomms::protobuf::MACType> : ::google::protobuf::internal::true_type {};
418 template <>
419 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACType>() {
420  return ::goby::acomms::protobuf::MACType_descriptor();
421 }
422 
423 } // namespace google
424 } // namespace protobuf
425 #endif // SWIG
426 
427 // @@protoc_insertion_point(global_scope)
428 
429 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.