Goby v2
iridium_driver.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/iridium_driver.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2firidium_5fdriver_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/unknown_field_set.h>
27 #include "goby/common/protobuf/option_extensions.pb.h"
28 #include "goby/acomms/protobuf/driver_base.pb.h"
29 #include "goby/acomms/protobuf/modem_message.pb.h"
30 #include "dccl/option_extensions.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 // Internal implementation detail -- do not call these.
38 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
39 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
40 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
41 
44 class IridiumHeader;
45 
46 // ===================================================================
47 
48 class IridiumDriverConfig_Remote : public ::google::protobuf::Message {
49  public:
51  virtual ~IridiumDriverConfig_Remote();
52 
54 
55  inline IridiumDriverConfig_Remote& operator=(const IridiumDriverConfig_Remote& from) {
56  CopyFrom(from);
57  return *this;
58  }
59 
60  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
61  return _unknown_fields_;
62  }
63 
64  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65  return &_unknown_fields_;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const IridiumDriverConfig_Remote& default_instance();
70 
71  void Swap(IridiumDriverConfig_Remote* other);
72 
73  // implements Message ----------------------------------------------
74 
75  IridiumDriverConfig_Remote* New() const;
76  void CopyFrom(const ::google::protobuf::Message& from);
77  void MergeFrom(const ::google::protobuf::Message& from);
78  void CopyFrom(const IridiumDriverConfig_Remote& from);
79  void MergeFrom(const IridiumDriverConfig_Remote& from);
80  void Clear();
81  bool IsInitialized() const;
82 
83  int ByteSize() const;
84  bool MergePartialFromCodedStream(
85  ::google::protobuf::io::CodedInputStream* input);
86  void SerializeWithCachedSizes(
87  ::google::protobuf::io::CodedOutputStream* output) const;
88  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
89  int GetCachedSize() const { return _cached_size_; }
90  private:
91  void SharedCtor();
92  void SharedDtor();
93  void SetCachedSize(int size) const;
94  public:
95  ::google::protobuf::Metadata GetMetadata() const;
96 
97  // nested types ----------------------------------------------------
98 
99  // accessors -------------------------------------------------------
100 
101  // required string iridium_number = 1;
102  inline bool has_iridium_number() const;
103  inline void clear_iridium_number();
104  static const int kIridiumNumberFieldNumber = 1;
105  inline const ::std::string& iridium_number() const;
106  inline void set_iridium_number(const ::std::string& value);
107  inline void set_iridium_number(const char* value);
108  inline void set_iridium_number(const char* value, size_t size);
109  inline ::std::string* mutable_iridium_number();
110  inline ::std::string* release_iridium_number();
111  inline void set_allocated_iridium_number(::std::string* iridium_number);
112 
113  // required int32 modem_id = 2;
114  inline bool has_modem_id() const;
115  inline void clear_modem_id();
116  static const int kModemIdFieldNumber = 2;
117  inline ::google::protobuf::int32 modem_id() const;
118  inline void set_modem_id(::google::protobuf::int32 value);
119 
120  // @@protoc_insertion_point(class_scope:IridiumDriverConfig.Remote)
121  private:
122  inline void set_has_iridium_number();
123  inline void clear_has_iridium_number();
124  inline void set_has_modem_id();
125  inline void clear_has_modem_id();
126 
127  ::google::protobuf::UnknownFieldSet _unknown_fields_;
128 
129  ::google::protobuf::uint32 _has_bits_[1];
130  mutable int _cached_size_;
131  ::std::string* iridium_number_;
132  ::google::protobuf::int32 modem_id_;
133  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
134  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
135  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
136 
137  void InitAsDefaultInstance();
138  static IridiumDriverConfig_Remote* default_instance_;
139 };
140 // -------------------------------------------------------------------
141 
142 class IridiumDriverConfig : public ::google::protobuf::Message {
143  public:
145  virtual ~IridiumDriverConfig();
146 
148 
149  inline IridiumDriverConfig& operator=(const IridiumDriverConfig& from) {
150  CopyFrom(from);
151  return *this;
152  }
153 
154  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
155  return _unknown_fields_;
156  }
157 
158  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
159  return &_unknown_fields_;
160  }
161 
162  static const ::google::protobuf::Descriptor* descriptor();
163  static const IridiumDriverConfig& default_instance();
164 
165  void Swap(IridiumDriverConfig* other);
166 
167  // implements Message ----------------------------------------------
168 
169  IridiumDriverConfig* New() const;
170  void CopyFrom(const ::google::protobuf::Message& from);
171  void MergeFrom(const ::google::protobuf::Message& from);
172  void CopyFrom(const IridiumDriverConfig& from);
173  void MergeFrom(const IridiumDriverConfig& from);
174  void Clear();
175  bool IsInitialized() const;
176 
177  int ByteSize() const;
178  bool MergePartialFromCodedStream(
179  ::google::protobuf::io::CodedInputStream* input);
180  void SerializeWithCachedSizes(
181  ::google::protobuf::io::CodedOutputStream* output) const;
182  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
183  int GetCachedSize() const { return _cached_size_; }
184  private:
185  void SharedCtor();
186  void SharedDtor();
187  void SetCachedSize(int size) const;
188  public:
189  ::google::protobuf::Metadata GetMetadata() const;
190 
191  // nested types ----------------------------------------------------
192 
194 
195  // accessors -------------------------------------------------------
196 
197  static const int kRemoteFieldNumber = 1381;
198  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
199  ::google::protobuf::internal::MessageTypeTraits< ::IridiumDriverConfig_Remote >, 11, false >
200  remote;
201  static const int kMaxFrameSizeFieldNumber = 1382;
202  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
203  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
204  max_frame_size;
205  static const int kTargetBitRateFieldNumber = 1383;
206  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
207  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
208  target_bit_rate;
209  static const int kConfigFieldNumber = 1384;
210  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
211  ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
212  config;
213  static const int kDialAttemptsFieldNumber = 1385;
214  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
215  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
216  dial_attempts;
217  static const int kDebugClientPortFieldNumber = 1386;
218  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
219  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
220  debug_client_port;
221  static const int kHangupSecondsAfterEmptyFieldNumber = 1388;
222  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
223  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
224  hangup_seconds_after_empty;
225  static const int kStartTimeoutFieldNumber = 1389;
226  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
227  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
228  start_timeout;
229  static const int kUseDtrFieldNumber = 1390;
230  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
231  ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
232  use_dtr;
233  static const int kHandshakeHangupSecondsFieldNumber = 1392;
234  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
235  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
236  handshake_hangup_seconds;
237  static const int kIfNoDataDoMailboxCheckFieldNumber = 1381;
238  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
239  ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
240  if_no_data_do_mailbox_check;
241  // @@protoc_insertion_point(class_scope:IridiumDriverConfig)
242  private:
243 
244  ::google::protobuf::UnknownFieldSet _unknown_fields_;
245 
246  ::google::protobuf::uint32 _has_bits_[1];
247  mutable int _cached_size_;
248  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
249  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
250  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
251 
252  void InitAsDefaultInstance();
253  static IridiumDriverConfig* default_instance_;
254 };
255 // -------------------------------------------------------------------
256 
257 class IridiumHeader : public ::google::protobuf::Message {
258  public:
259  IridiumHeader();
260  virtual ~IridiumHeader();
261 
262  IridiumHeader(const IridiumHeader& from);
263 
264  inline IridiumHeader& operator=(const IridiumHeader& from) {
265  CopyFrom(from);
266  return *this;
267  }
268 
269  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
270  return _unknown_fields_;
271  }
272 
273  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
274  return &_unknown_fields_;
275  }
276 
277  static const ::google::protobuf::Descriptor* descriptor();
278  static const IridiumHeader& default_instance();
279 
280  void Swap(IridiumHeader* other);
281 
282  // implements Message ----------------------------------------------
283 
284  IridiumHeader* New() const;
285  void CopyFrom(const ::google::protobuf::Message& from);
286  void MergeFrom(const ::google::protobuf::Message& from);
287  void CopyFrom(const IridiumHeader& from);
288  void MergeFrom(const IridiumHeader& from);
289  void Clear();
290  bool IsInitialized() const;
291 
292  int ByteSize() const;
293  bool MergePartialFromCodedStream(
294  ::google::protobuf::io::CodedInputStream* input);
295  void SerializeWithCachedSizes(
296  ::google::protobuf::io::CodedOutputStream* output) const;
297  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
298  int GetCachedSize() const { return _cached_size_; }
299  private:
300  void SharedCtor();
301  void SharedDtor();
302  void SetCachedSize(int size) const;
303  public:
304  ::google::protobuf::Metadata GetMetadata() const;
305 
306  // nested types ----------------------------------------------------
307 
308  // accessors -------------------------------------------------------
309 
310  // required int32 src = 1;
311  inline bool has_src() const;
312  inline void clear_src();
313  static const int kSrcFieldNumber = 1;
314  inline ::google::protobuf::int32 src() const;
315  inline void set_src(::google::protobuf::int32 value);
316 
317  // required int32 dest = 2;
318  inline bool has_dest() const;
319  inline void clear_dest();
320  static const int kDestFieldNumber = 2;
321  inline ::google::protobuf::int32 dest() const;
322  inline void set_dest(::google::protobuf::int32 value);
323 
324  // optional int32 rate = 3;
325  inline bool has_rate() const;
326  inline void clear_rate();
327  static const int kRateFieldNumber = 3;
328  inline ::google::protobuf::int32 rate() const;
329  inline void set_rate(::google::protobuf::int32 value);
330 
331  // required .goby.acomms.protobuf.ModemTransmission.TransmissionType type = 4;
332  inline bool has_type() const;
333  inline void clear_type();
334  static const int kTypeFieldNumber = 4;
335  inline ::goby::acomms::protobuf::ModemTransmission_TransmissionType type() const;
336  inline void set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value);
337 
338  // optional bool ack_requested = 5;
339  inline bool has_ack_requested() const;
340  inline void clear_ack_requested();
341  static const int kAckRequestedFieldNumber = 5;
342  inline bool ack_requested() const;
343  inline void set_ack_requested(bool value);
344 
345  // optional uint32 frame_start = 6;
346  inline bool has_frame_start() const;
347  inline void clear_frame_start();
348  static const int kFrameStartFieldNumber = 6;
349  inline ::google::protobuf::uint32 frame_start() const;
350  inline void set_frame_start(::google::protobuf::uint32 value);
351 
352  // optional int32 acked_frame = 7;
353  inline bool has_acked_frame() const;
354  inline void clear_acked_frame();
355  static const int kAckedFrameFieldNumber = 7;
356  inline ::google::protobuf::int32 acked_frame() const;
357  inline void set_acked_frame(::google::protobuf::int32 value);
358 
359  // @@protoc_insertion_point(class_scope:IridiumHeader)
360  private:
361  inline void set_has_src();
362  inline void clear_has_src();
363  inline void set_has_dest();
364  inline void clear_has_dest();
365  inline void set_has_rate();
366  inline void clear_has_rate();
367  inline void set_has_type();
368  inline void clear_has_type();
369  inline void set_has_ack_requested();
370  inline void clear_has_ack_requested();
371  inline void set_has_frame_start();
372  inline void clear_has_frame_start();
373  inline void set_has_acked_frame();
374  inline void clear_has_acked_frame();
375 
376  ::google::protobuf::UnknownFieldSet _unknown_fields_;
377 
378  ::google::protobuf::uint32 _has_bits_[1];
379  mutable int _cached_size_;
380  ::google::protobuf::int32 src_;
381  ::google::protobuf::int32 dest_;
382  ::google::protobuf::int32 rate_;
383  int type_;
384  bool ack_requested_;
385  ::google::protobuf::uint32 frame_start_;
386  ::google::protobuf::int32 acked_frame_;
387  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
388  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
389  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto();
390 
391  void InitAsDefaultInstance();
392  static IridiumHeader* default_instance_;
393 };
394 // ===================================================================
395 
396 
397 // ===================================================================
398 
399 // IridiumDriverConfig_Remote
400 
401 // required string iridium_number = 1;
402 inline bool IridiumDriverConfig_Remote::has_iridium_number() const {
403  return (_has_bits_[0] & 0x00000001u) != 0;
404 }
405 inline void IridiumDriverConfig_Remote::set_has_iridium_number() {
406  _has_bits_[0] |= 0x00000001u;
407 }
408 inline void IridiumDriverConfig_Remote::clear_has_iridium_number() {
409  _has_bits_[0] &= ~0x00000001u;
410 }
411 inline void IridiumDriverConfig_Remote::clear_iridium_number() {
412  if (iridium_number_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
413  iridium_number_->clear();
414  }
415  clear_has_iridium_number();
416 }
417 inline const ::std::string& IridiumDriverConfig_Remote::iridium_number() const {
418  // @@protoc_insertion_point(field_get:IridiumDriverConfig.Remote.iridium_number)
419  return *iridium_number_;
420 }
421 inline void IridiumDriverConfig_Remote::set_iridium_number(const ::std::string& value) {
422  set_has_iridium_number();
423  if (iridium_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
424  iridium_number_ = new ::std::string;
425  }
426  iridium_number_->assign(value);
427  // @@protoc_insertion_point(field_set:IridiumDriverConfig.Remote.iridium_number)
428 }
429 inline void IridiumDriverConfig_Remote::set_iridium_number(const char* value) {
430  set_has_iridium_number();
431  if (iridium_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
432  iridium_number_ = new ::std::string;
433  }
434  iridium_number_->assign(value);
435  // @@protoc_insertion_point(field_set_char:IridiumDriverConfig.Remote.iridium_number)
436 }
437 inline void IridiumDriverConfig_Remote::set_iridium_number(const char* value, size_t size) {
438  set_has_iridium_number();
439  if (iridium_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
440  iridium_number_ = new ::std::string;
441  }
442  iridium_number_->assign(reinterpret_cast<const char*>(value), size);
443  // @@protoc_insertion_point(field_set_pointer:IridiumDriverConfig.Remote.iridium_number)
444 }
445 inline ::std::string* IridiumDriverConfig_Remote::mutable_iridium_number() {
446  set_has_iridium_number();
447  if (iridium_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
448  iridium_number_ = new ::std::string;
449  }
450  // @@protoc_insertion_point(field_mutable:IridiumDriverConfig.Remote.iridium_number)
451  return iridium_number_;
452 }
453 inline ::std::string* IridiumDriverConfig_Remote::release_iridium_number() {
454  clear_has_iridium_number();
455  if (iridium_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
456  return NULL;
457  } else {
458  ::std::string* temp = iridium_number_;
459  iridium_number_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
460  return temp;
461  }
462 }
463 inline void IridiumDriverConfig_Remote::set_allocated_iridium_number(::std::string* iridium_number) {
464  if (iridium_number_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
465  delete iridium_number_;
466  }
467  if (iridium_number) {
468  set_has_iridium_number();
469  iridium_number_ = iridium_number;
470  } else {
471  clear_has_iridium_number();
472  iridium_number_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
473  }
474  // @@protoc_insertion_point(field_set_allocated:IridiumDriverConfig.Remote.iridium_number)
475 }
476 
477 // required int32 modem_id = 2;
478 inline bool IridiumDriverConfig_Remote::has_modem_id() const {
479  return (_has_bits_[0] & 0x00000002u) != 0;
480 }
481 inline void IridiumDriverConfig_Remote::set_has_modem_id() {
482  _has_bits_[0] |= 0x00000002u;
483 }
484 inline void IridiumDriverConfig_Remote::clear_has_modem_id() {
485  _has_bits_[0] &= ~0x00000002u;
486 }
487 inline void IridiumDriverConfig_Remote::clear_modem_id() {
488  modem_id_ = 0;
489  clear_has_modem_id();
490 }
491 inline ::google::protobuf::int32 IridiumDriverConfig_Remote::modem_id() const {
492  // @@protoc_insertion_point(field_get:IridiumDriverConfig.Remote.modem_id)
493  return modem_id_;
494 }
495 inline void IridiumDriverConfig_Remote::set_modem_id(::google::protobuf::int32 value) {
496  set_has_modem_id();
497  modem_id_ = value;
498  // @@protoc_insertion_point(field_set:IridiumDriverConfig.Remote.modem_id)
499 }
500 
501 // -------------------------------------------------------------------
502 
503 // IridiumDriverConfig
504 
505 // -------------------------------------------------------------------
506 
507 // IridiumHeader
508 
509 // required int32 src = 1;
510 inline bool IridiumHeader::has_src() const {
511  return (_has_bits_[0] & 0x00000001u) != 0;
512 }
513 inline void IridiumHeader::set_has_src() {
514  _has_bits_[0] |= 0x00000001u;
515 }
516 inline void IridiumHeader::clear_has_src() {
517  _has_bits_[0] &= ~0x00000001u;
518 }
519 inline void IridiumHeader::clear_src() {
520  src_ = 0;
521  clear_has_src();
522 }
523 inline ::google::protobuf::int32 IridiumHeader::src() const {
524  // @@protoc_insertion_point(field_get:IridiumHeader.src)
525  return src_;
526 }
527 inline void IridiumHeader::set_src(::google::protobuf::int32 value) {
528  set_has_src();
529  src_ = value;
530  // @@protoc_insertion_point(field_set:IridiumHeader.src)
531 }
532 
533 // required int32 dest = 2;
534 inline bool IridiumHeader::has_dest() const {
535  return (_has_bits_[0] & 0x00000002u) != 0;
536 }
537 inline void IridiumHeader::set_has_dest() {
538  _has_bits_[0] |= 0x00000002u;
539 }
540 inline void IridiumHeader::clear_has_dest() {
541  _has_bits_[0] &= ~0x00000002u;
542 }
543 inline void IridiumHeader::clear_dest() {
544  dest_ = 0;
545  clear_has_dest();
546 }
547 inline ::google::protobuf::int32 IridiumHeader::dest() const {
548  // @@protoc_insertion_point(field_get:IridiumHeader.dest)
549  return dest_;
550 }
551 inline void IridiumHeader::set_dest(::google::protobuf::int32 value) {
552  set_has_dest();
553  dest_ = value;
554  // @@protoc_insertion_point(field_set:IridiumHeader.dest)
555 }
556 
557 // optional int32 rate = 3;
558 inline bool IridiumHeader::has_rate() const {
559  return (_has_bits_[0] & 0x00000004u) != 0;
560 }
561 inline void IridiumHeader::set_has_rate() {
562  _has_bits_[0] |= 0x00000004u;
563 }
564 inline void IridiumHeader::clear_has_rate() {
565  _has_bits_[0] &= ~0x00000004u;
566 }
567 inline void IridiumHeader::clear_rate() {
568  rate_ = 0;
569  clear_has_rate();
570 }
571 inline ::google::protobuf::int32 IridiumHeader::rate() const {
572  // @@protoc_insertion_point(field_get:IridiumHeader.rate)
573  return rate_;
574 }
575 inline void IridiumHeader::set_rate(::google::protobuf::int32 value) {
576  set_has_rate();
577  rate_ = value;
578  // @@protoc_insertion_point(field_set:IridiumHeader.rate)
579 }
580 
581 // required .goby.acomms.protobuf.ModemTransmission.TransmissionType type = 4;
582 inline bool IridiumHeader::has_type() const {
583  return (_has_bits_[0] & 0x00000008u) != 0;
584 }
585 inline void IridiumHeader::set_has_type() {
586  _has_bits_[0] |= 0x00000008u;
587 }
588 inline void IridiumHeader::clear_has_type() {
589  _has_bits_[0] &= ~0x00000008u;
590 }
591 inline void IridiumHeader::clear_type() {
592  type_ = 0;
593  clear_has_type();
594 }
595 inline ::goby::acomms::protobuf::ModemTransmission_TransmissionType IridiumHeader::type() const {
596  // @@protoc_insertion_point(field_get:IridiumHeader.type)
597  return static_cast< ::goby::acomms::protobuf::ModemTransmission_TransmissionType >(type_);
598 }
599 inline void IridiumHeader::set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value) {
600  assert(::goby::acomms::protobuf::ModemTransmission_TransmissionType_IsValid(value));
601  set_has_type();
602  type_ = value;
603  // @@protoc_insertion_point(field_set:IridiumHeader.type)
604 }
605 
606 // optional bool ack_requested = 5;
607 inline bool IridiumHeader::has_ack_requested() const {
608  return (_has_bits_[0] & 0x00000010u) != 0;
609 }
610 inline void IridiumHeader::set_has_ack_requested() {
611  _has_bits_[0] |= 0x00000010u;
612 }
613 inline void IridiumHeader::clear_has_ack_requested() {
614  _has_bits_[0] &= ~0x00000010u;
615 }
616 inline void IridiumHeader::clear_ack_requested() {
617  ack_requested_ = false;
618  clear_has_ack_requested();
619 }
620 inline bool IridiumHeader::ack_requested() const {
621  // @@protoc_insertion_point(field_get:IridiumHeader.ack_requested)
622  return ack_requested_;
623 }
624 inline void IridiumHeader::set_ack_requested(bool value) {
625  set_has_ack_requested();
626  ack_requested_ = value;
627  // @@protoc_insertion_point(field_set:IridiumHeader.ack_requested)
628 }
629 
630 // optional uint32 frame_start = 6;
631 inline bool IridiumHeader::has_frame_start() const {
632  return (_has_bits_[0] & 0x00000020u) != 0;
633 }
634 inline void IridiumHeader::set_has_frame_start() {
635  _has_bits_[0] |= 0x00000020u;
636 }
637 inline void IridiumHeader::clear_has_frame_start() {
638  _has_bits_[0] &= ~0x00000020u;
639 }
640 inline void IridiumHeader::clear_frame_start() {
641  frame_start_ = 0u;
642  clear_has_frame_start();
643 }
644 inline ::google::protobuf::uint32 IridiumHeader::frame_start() const {
645  // @@protoc_insertion_point(field_get:IridiumHeader.frame_start)
646  return frame_start_;
647 }
648 inline void IridiumHeader::set_frame_start(::google::protobuf::uint32 value) {
649  set_has_frame_start();
650  frame_start_ = value;
651  // @@protoc_insertion_point(field_set:IridiumHeader.frame_start)
652 }
653 
654 // optional int32 acked_frame = 7;
655 inline bool IridiumHeader::has_acked_frame() const {
656  return (_has_bits_[0] & 0x00000040u) != 0;
657 }
658 inline void IridiumHeader::set_has_acked_frame() {
659  _has_bits_[0] |= 0x00000040u;
660 }
661 inline void IridiumHeader::clear_has_acked_frame() {
662  _has_bits_[0] &= ~0x00000040u;
663 }
664 inline void IridiumHeader::clear_acked_frame() {
665  acked_frame_ = 0;
666  clear_has_acked_frame();
667 }
668 inline ::google::protobuf::int32 IridiumHeader::acked_frame() const {
669  // @@protoc_insertion_point(field_get:IridiumHeader.acked_frame)
670  return acked_frame_;
671 }
672 inline void IridiumHeader::set_acked_frame(::google::protobuf::int32 value) {
673  set_has_acked_frame();
674  acked_frame_ = value;
675  // @@protoc_insertion_point(field_set:IridiumHeader.acked_frame)
676 }
677 
678 
679 // @@protoc_insertion_point(namespace_scope)
680 
681 #ifndef SWIG
682 namespace google {
683 namespace protobuf {
684 
685 
686 } // namespace google
687 } // namespace protobuf
688 #endif // SWIG
689 
690 // @@protoc_insertion_point(global_scope)
691 
692 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto__INCLUDED