Goby v2
benthos_atm900.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/benthos_atm900.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_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/driver_base.pb.h"
30 #include "goby/acomms/protobuf/modem_message.pb.h"
31 #include "dccl/option_extensions.pb.h"
32 #include <boost/units/quantity.hpp>
33 #include <boost/units/absolute.hpp>
34 #include <boost/units/dimensionless_type.hpp>
35 #include <boost/units/make_scaled_unit.hpp>
36 
37 #include <boost/units/systems/si.hpp>
38 
39 #include <boost/units/base_units/si/second.hpp>
40 // @@protoc_insertion_point(includes)
41 
42 namespace benthos {
43 namespace protobuf {
44 
45 // Internal implementation detail -- do not call these.
46 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
47 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
48 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
49 
50 class BenthosATM900DriverConfig;
51 class BenthosHeader;
52 class ReceiveStatistics;
53 class RangingReply;
54 
55 enum ReceiveStatistics_CRCState {
56  ReceiveStatistics_CRCState_CRC_PASS = 1,
57  ReceiveStatistics_CRCState_CRC_FAIL = 2
58 };
59 bool ReceiveStatistics_CRCState_IsValid(int value);
60 const ReceiveStatistics_CRCState ReceiveStatistics_CRCState_CRCState_MIN = ReceiveStatistics_CRCState_CRC_PASS;
61 const ReceiveStatistics_CRCState ReceiveStatistics_CRCState_CRCState_MAX = ReceiveStatistics_CRCState_CRC_FAIL;
62 const int ReceiveStatistics_CRCState_CRCState_ARRAYSIZE = ReceiveStatistics_CRCState_CRCState_MAX + 1;
63 
64 const ::google::protobuf::EnumDescriptor* ReceiveStatistics_CRCState_descriptor();
65 inline const ::std::string& ReceiveStatistics_CRCState_Name(ReceiveStatistics_CRCState value) {
66  return ::google::protobuf::internal::NameOfEnum(
67  ReceiveStatistics_CRCState_descriptor(), value);
68 }
69 inline bool ReceiveStatistics_CRCState_Parse(
70  const ::std::string& name, ReceiveStatistics_CRCState* value) {
71  return ::google::protobuf::internal::ParseNamedEnum<ReceiveStatistics_CRCState>(
72  ReceiveStatistics_CRCState_descriptor(), name, value);
73 }
74 enum TransmissionType {
75  BASE_TYPE = 0,
76  BENTHOS_TWO_WAY_PING = 1
77 };
78 bool TransmissionType_IsValid(int value);
79 const TransmissionType TransmissionType_MIN = BASE_TYPE;
80 const TransmissionType TransmissionType_MAX = BENTHOS_TWO_WAY_PING;
81 const int TransmissionType_ARRAYSIZE = TransmissionType_MAX + 1;
82 
83 const ::google::protobuf::EnumDescriptor* TransmissionType_descriptor();
84 inline const ::std::string& TransmissionType_Name(TransmissionType value) {
85  return ::google::protobuf::internal::NameOfEnum(
86  TransmissionType_descriptor(), value);
87 }
88 inline bool TransmissionType_Parse(
89  const ::std::string& name, TransmissionType* value) {
90  return ::google::protobuf::internal::ParseNamedEnum<TransmissionType>(
91  TransmissionType_descriptor(), name, value);
92 }
93 // ===================================================================
94 
95 class BenthosATM900DriverConfig : public ::google::protobuf::Message {
96  public:
98  virtual ~BenthosATM900DriverConfig();
99 
101 
102  inline BenthosATM900DriverConfig& operator=(const BenthosATM900DriverConfig& 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 BenthosATM900DriverConfig& default_instance();
117 
118  void Swap(BenthosATM900DriverConfig* other);
119 
120  // implements Message ----------------------------------------------
121 
122  BenthosATM900DriverConfig* New() const;
123  void CopyFrom(const ::google::protobuf::Message& from);
124  void MergeFrom(const ::google::protobuf::Message& from);
125  void CopyFrom(const BenthosATM900DriverConfig& from);
126  void MergeFrom(const BenthosATM900DriverConfig& 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  // accessors -------------------------------------------------------
147 
148  static const int kFactoryResetFieldNumber = 1441;
149  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
150  ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
151  factory_reset;
152  static const int kConfigLoadFieldNumber = 1442;
153  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
154  ::google::protobuf::internal::StringTypeTraits, 9, false >
155  config_load;
156  static const int kConfigFieldNumber = 1443;
157  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
158  ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
159  config;
160  static const int kStartTimeoutFieldNumber = 1445;
161  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
162  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
163  start_timeout;
164  static const int kMaxFrameSizeFieldNumber = 1446;
165  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
166  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
167  max_frame_size;
168  // @@protoc_insertion_point(class_scope:benthos.protobuf.BenthosATM900DriverConfig)
169  private:
170 
171  ::google::protobuf::UnknownFieldSet _unknown_fields_;
172 
173  ::google::protobuf::uint32 _has_bits_[1];
174  mutable int _cached_size_;
175  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
176  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
177  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
178 
179  void InitAsDefaultInstance();
180  static BenthosATM900DriverConfig* default_instance_;
181 };
182 // -------------------------------------------------------------------
183 
184 class BenthosHeader : public ::google::protobuf::Message {
185  public:
186  BenthosHeader();
187  virtual ~BenthosHeader();
188 
189  BenthosHeader(const BenthosHeader& from);
190 
191  inline BenthosHeader& operator=(const BenthosHeader& from) {
192  CopyFrom(from);
193  return *this;
194  }
195 
196  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
197  return _unknown_fields_;
198  }
199 
200  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
201  return &_unknown_fields_;
202  }
203 
204  static const ::google::protobuf::Descriptor* descriptor();
205  static const BenthosHeader& default_instance();
206 
207  void Swap(BenthosHeader* other);
208 
209  // implements Message ----------------------------------------------
210 
211  BenthosHeader* New() const;
212  void CopyFrom(const ::google::protobuf::Message& from);
213  void MergeFrom(const ::google::protobuf::Message& from);
214  void CopyFrom(const BenthosHeader& from);
215  void MergeFrom(const BenthosHeader& from);
216  void Clear();
217  bool IsInitialized() const;
218 
219  int ByteSize() const;
220  bool MergePartialFromCodedStream(
221  ::google::protobuf::io::CodedInputStream* input);
222  void SerializeWithCachedSizes(
223  ::google::protobuf::io::CodedOutputStream* output) const;
224  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
225  int GetCachedSize() const { return _cached_size_; }
226  private:
227  void SharedCtor();
228  void SharedDtor();
229  void SetCachedSize(int size) const;
230  public:
231  ::google::protobuf::Metadata GetMetadata() const;
232 
233  // nested types ----------------------------------------------------
234 
235  // accessors -------------------------------------------------------
236 
237  // required .goby.acomms.protobuf.ModemTransmission.TransmissionType type = 1;
238  inline bool has_type() const;
239  inline void clear_type();
240  static const int kTypeFieldNumber = 1;
241  inline ::goby::acomms::protobuf::ModemTransmission_TransmissionType type() const;
242  inline void set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value);
243 
244  // optional bool ack_requested = 3;
245  inline bool has_ack_requested() const;
246  inline void clear_ack_requested();
247  static const int kAckRequestedFieldNumber = 3;
248  inline bool ack_requested() const;
249  inline void set_ack_requested(bool value);
250 
251  // repeated int32 acked_frame = 4;
252  inline int acked_frame_size() const;
253  inline void clear_acked_frame();
254  static const int kAckedFrameFieldNumber = 4;
255  inline ::google::protobuf::int32 acked_frame(int index) const;
256  inline void set_acked_frame(int index, ::google::protobuf::int32 value);
257  inline void add_acked_frame(::google::protobuf::int32 value);
258  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
259  acked_frame() const;
260  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
261  mutable_acked_frame();
262 
263  // @@protoc_insertion_point(class_scope:benthos.protobuf.BenthosHeader)
264  private:
265  inline void set_has_type();
266  inline void clear_has_type();
267  inline void set_has_ack_requested();
268  inline void clear_has_ack_requested();
269 
270  ::google::protobuf::UnknownFieldSet _unknown_fields_;
271 
272  ::google::protobuf::uint32 _has_bits_[1];
273  mutable int _cached_size_;
274  int type_;
275  bool ack_requested_;
276  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > acked_frame_;
277  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
278  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
279  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
280 
281  void InitAsDefaultInstance();
282  static BenthosHeader* default_instance_;
283 };
284 // -------------------------------------------------------------------
285 
286 class ReceiveStatistics : public ::google::protobuf::Message {
287  public:
289  virtual ~ReceiveStatistics();
290 
292 
293  inline ReceiveStatistics& operator=(const ReceiveStatistics& from) {
294  CopyFrom(from);
295  return *this;
296  }
297 
298  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
299  return _unknown_fields_;
300  }
301 
302  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
303  return &_unknown_fields_;
304  }
305 
306  static const ::google::protobuf::Descriptor* descriptor();
307  static const ReceiveStatistics& default_instance();
308 
309  void Swap(ReceiveStatistics* other);
310 
311  // implements Message ----------------------------------------------
312 
313  ReceiveStatistics* New() const;
314  void CopyFrom(const ::google::protobuf::Message& from);
315  void MergeFrom(const ::google::protobuf::Message& from);
316  void CopyFrom(const ReceiveStatistics& from);
317  void MergeFrom(const ReceiveStatistics& from);
318  void Clear();
319  bool IsInitialized() const;
320 
321  int ByteSize() const;
322  bool MergePartialFromCodedStream(
323  ::google::protobuf::io::CodedInputStream* input);
324  void SerializeWithCachedSizes(
325  ::google::protobuf::io::CodedOutputStream* output) const;
326  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
327  int GetCachedSize() const { return _cached_size_; }
328  private:
329  void SharedCtor();
330  void SharedDtor();
331  void SetCachedSize(int size) const;
332  public:
333  ::google::protobuf::Metadata GetMetadata() const;
334 
335  // nested types ----------------------------------------------------
336 
337  typedef ReceiveStatistics_CRCState CRCState;
338  static const CRCState CRC_PASS = ReceiveStatistics_CRCState_CRC_PASS;
339  static const CRCState CRC_FAIL = ReceiveStatistics_CRCState_CRC_FAIL;
340  static inline bool CRCState_IsValid(int value) {
341  return ReceiveStatistics_CRCState_IsValid(value);
342  }
343  static const CRCState CRCState_MIN =
344  ReceiveStatistics_CRCState_CRCState_MIN;
345  static const CRCState CRCState_MAX =
346  ReceiveStatistics_CRCState_CRCState_MAX;
347  static const int CRCState_ARRAYSIZE =
348  ReceiveStatistics_CRCState_CRCState_ARRAYSIZE;
349  static inline const ::google::protobuf::EnumDescriptor*
350  CRCState_descriptor() {
351  return ReceiveStatistics_CRCState_descriptor();
352  }
353  static inline const ::std::string& CRCState_Name(CRCState value) {
354  return ReceiveStatistics_CRCState_Name(value);
355  }
356  static inline bool CRCState_Parse(const ::std::string& name,
357  CRCState* value) {
358  return ReceiveStatistics_CRCState_Parse(name, value);
359  }
360 
361  // accessors -------------------------------------------------------
362 
363  // required .benthos.protobuf.ReceiveStatistics.CRCState crc = 1;
364  inline bool has_crc() const;
365  inline void clear_crc();
366  static const int kCrcFieldNumber = 1;
367  inline ::benthos::protobuf::ReceiveStatistics_CRCState crc() const;
368  inline void set_crc(::benthos::protobuf::ReceiveStatistics_CRCState value);
369 
370  // optional float multipath_delay = 2;
371  inline bool has_multipath_delay() const;
372  inline void clear_multipath_delay();
373  static const int kMultipathDelayFieldNumber = 2;
374  inline float multipath_delay() const;
375  inline void set_multipath_delay(float value);
376 
377  // optional float snr = 3;
378  inline bool has_snr() const;
379  inline void clear_snr();
380  static const int kSnrFieldNumber = 3;
381  inline float snr() const;
382  inline void set_snr(float value);
383 
384  // optional float relative_speed = 4;
385  inline bool has_relative_speed() const;
386  inline void clear_relative_speed();
387  static const int kRelativeSpeedFieldNumber = 4;
388  inline float relative_speed() const;
389  inline void set_relative_speed(float value);
390 
391  // optional float auto_gain_control = 5;
392  inline bool has_auto_gain_control() const;
393  inline void clear_auto_gain_control();
394  static const int kAutoGainControlFieldNumber = 5;
395  inline float auto_gain_control() const;
396  inline void set_auto_gain_control(float value);
397 
398  // optional int32 corrected_channel_error = 6;
399  inline bool has_corrected_channel_error() const;
400  inline void clear_corrected_channel_error();
401  static const int kCorrectedChannelErrorFieldNumber = 6;
402  inline ::google::protobuf::int32 corrected_channel_error() const;
403  inline void set_corrected_channel_error(::google::protobuf::int32 value);
404 
405  typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type multipath_delay_dimension;
406 
407  typedef boost::units::unit<multipath_delay_dimension,boost::units::si::system> multipath_delay_unit;
408 
409  template<typename Quantity >
410  void set_multipath_delay_with_units(Quantity value_w_units)
411  { set_multipath_delay(boost::units::quantity<multipath_delay_unit,float >(value_w_units).value() ); };
412 
413  template<typename Quantity >
414  Quantity multipath_delay_with_units() const
415  { return Quantity(multipath_delay() * multipath_delay_unit()); };
416 
417  boost::units::quantity< multipath_delay_unit,float > multipath_delay_with_units() const
418  { return multipath_delay_with_units<boost::units::quantity< multipath_delay_unit,float > >(); };
419 
420  typedef boost::units::derived_dimension< boost::units::length_base_dimension,1, boost::units::time_base_dimension,-1 >::type relative_speed_dimension;
421 
422  typedef boost::units::unit<relative_speed_dimension,boost::units::si::system> relative_speed_unit;
423 
424  template<typename Quantity >
425  void set_relative_speed_with_units(Quantity value_w_units)
426  { set_relative_speed(boost::units::quantity<relative_speed_unit,float >(value_w_units).value() ); };
427 
428  template<typename Quantity >
429  Quantity relative_speed_with_units() const
430  { return Quantity(relative_speed() * relative_speed_unit()); };
431 
432  boost::units::quantity< relative_speed_unit,float > relative_speed_with_units() const
433  { return relative_speed_with_units<boost::units::quantity< relative_speed_unit,float > >(); };
434 
435  // @@protoc_insertion_point(class_scope:benthos.protobuf.ReceiveStatistics)
436  private:
437  inline void set_has_crc();
438  inline void clear_has_crc();
439  inline void set_has_multipath_delay();
440  inline void clear_has_multipath_delay();
441  inline void set_has_snr();
442  inline void clear_has_snr();
443  inline void set_has_relative_speed();
444  inline void clear_has_relative_speed();
445  inline void set_has_auto_gain_control();
446  inline void clear_has_auto_gain_control();
447  inline void set_has_corrected_channel_error();
448  inline void clear_has_corrected_channel_error();
449 
450  ::google::protobuf::UnknownFieldSet _unknown_fields_;
451 
452  ::google::protobuf::uint32 _has_bits_[1];
453  mutable int _cached_size_;
454  int crc_;
455  float multipath_delay_;
456  float snr_;
457  float relative_speed_;
458  float auto_gain_control_;
459  ::google::protobuf::int32 corrected_channel_error_;
460  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
461  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
462  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
463 
464  void InitAsDefaultInstance();
465  static ReceiveStatistics* default_instance_;
466 };
467 // -------------------------------------------------------------------
468 
469 class RangingReply : public ::google::protobuf::Message {
470  public:
471  RangingReply();
472  virtual ~RangingReply();
473 
474  RangingReply(const RangingReply& from);
475 
476  inline RangingReply& operator=(const RangingReply& from) {
477  CopyFrom(from);
478  return *this;
479  }
480 
481  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
482  return _unknown_fields_;
483  }
484 
485  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
486  return &_unknown_fields_;
487  }
488 
489  static const ::google::protobuf::Descriptor* descriptor();
490  static const RangingReply& default_instance();
491 
492  void Swap(RangingReply* other);
493 
494  // implements Message ----------------------------------------------
495 
496  RangingReply* New() const;
497  void CopyFrom(const ::google::protobuf::Message& from);
498  void MergeFrom(const ::google::protobuf::Message& from);
499  void CopyFrom(const RangingReply& from);
500  void MergeFrom(const RangingReply& from);
501  void Clear();
502  bool IsInitialized() const;
503 
504  int ByteSize() const;
505  bool MergePartialFromCodedStream(
506  ::google::protobuf::io::CodedInputStream* input);
507  void SerializeWithCachedSizes(
508  ::google::protobuf::io::CodedOutputStream* output) const;
509  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
510  int GetCachedSize() const { return _cached_size_; }
511  private:
512  void SharedCtor();
513  void SharedDtor();
514  void SetCachedSize(int size) const;
515  public:
516  ::google::protobuf::Metadata GetMetadata() const;
517 
518  // nested types ----------------------------------------------------
519 
520  // accessors -------------------------------------------------------
521 
522  // required double one_way_travel_time = 1;
523  inline bool has_one_way_travel_time() const;
524  inline void clear_one_way_travel_time();
525  static const int kOneWayTravelTimeFieldNumber = 1;
526  inline double one_way_travel_time() const;
527  inline void set_one_way_travel_time(double value);
528 
529  typedef boost::units::si::second_base_unit::unit_type one_way_travel_time_unit;
530 
531  template<typename Quantity >
532  void set_one_way_travel_time_with_units(Quantity value_w_units)
533  { set_one_way_travel_time(boost::units::quantity<one_way_travel_time_unit,double >(value_w_units).value() ); };
534 
535  template<typename Quantity >
536  Quantity one_way_travel_time_with_units() const
537  { return Quantity(one_way_travel_time() * one_way_travel_time_unit()); };
538 
539  boost::units::quantity< one_way_travel_time_unit,double > one_way_travel_time_with_units() const
540  { return one_way_travel_time_with_units<boost::units::quantity< one_way_travel_time_unit,double > >(); };
541 
542  // @@protoc_insertion_point(class_scope:benthos.protobuf.RangingReply)
543  private:
544  inline void set_has_one_way_travel_time();
545  inline void clear_has_one_way_travel_time();
546 
547  ::google::protobuf::UnknownFieldSet _unknown_fields_;
548 
549  ::google::protobuf::uint32 _has_bits_[1];
550  mutable int _cached_size_;
551  double one_way_travel_time_;
552  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
553  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
554  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
555 
556  void InitAsDefaultInstance();
557  static RangingReply* default_instance_;
558 };
559 // ===================================================================
560 
561 static const int kTypeFieldNumber = 1401;
562 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
563  ::google::protobuf::internal::EnumTypeTraits< ::benthos::protobuf::TransmissionType, ::benthos::protobuf::TransmissionType_IsValid>, 14, false >
564  type;
565 static const int kReceiveStatFieldNumber = 1402;
566 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
567  ::google::protobuf::internal::MessageTypeTraits< ::benthos::protobuf::ReceiveStatistics >, 11, false >
568  receive_stat;
569 static const int kRangingReplyFieldNumber = 1403;
570 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
571  ::google::protobuf::internal::MessageTypeTraits< ::benthos::protobuf::RangingReply >, 11, false >
572  ranging_reply;
573 
574 // ===================================================================
575 
576 // BenthosATM900DriverConfig
577 
578 // -------------------------------------------------------------------
579 
580 // BenthosHeader
581 
582 // required .goby.acomms.protobuf.ModemTransmission.TransmissionType type = 1;
583 inline bool BenthosHeader::has_type() const {
584  return (_has_bits_[0] & 0x00000001u) != 0;
585 }
586 inline void BenthosHeader::set_has_type() {
587  _has_bits_[0] |= 0x00000001u;
588 }
589 inline void BenthosHeader::clear_has_type() {
590  _has_bits_[0] &= ~0x00000001u;
591 }
592 inline void BenthosHeader::clear_type() {
593  type_ = 0;
594  clear_has_type();
595 }
596 inline ::goby::acomms::protobuf::ModemTransmission_TransmissionType BenthosHeader::type() const {
597  // @@protoc_insertion_point(field_get:benthos.protobuf.BenthosHeader.type)
598  return static_cast< ::goby::acomms::protobuf::ModemTransmission_TransmissionType >(type_);
599 }
600 inline void BenthosHeader::set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value) {
601  assert(::goby::acomms::protobuf::ModemTransmission_TransmissionType_IsValid(value));
602  set_has_type();
603  type_ = value;
604  // @@protoc_insertion_point(field_set:benthos.protobuf.BenthosHeader.type)
605 }
606 
607 // optional bool ack_requested = 3;
608 inline bool BenthosHeader::has_ack_requested() const {
609  return (_has_bits_[0] & 0x00000002u) != 0;
610 }
611 inline void BenthosHeader::set_has_ack_requested() {
612  _has_bits_[0] |= 0x00000002u;
613 }
614 inline void BenthosHeader::clear_has_ack_requested() {
615  _has_bits_[0] &= ~0x00000002u;
616 }
617 inline void BenthosHeader::clear_ack_requested() {
618  ack_requested_ = false;
619  clear_has_ack_requested();
620 }
621 inline bool BenthosHeader::ack_requested() const {
622  // @@protoc_insertion_point(field_get:benthos.protobuf.BenthosHeader.ack_requested)
623  return ack_requested_;
624 }
625 inline void BenthosHeader::set_ack_requested(bool value) {
626  set_has_ack_requested();
627  ack_requested_ = value;
628  // @@protoc_insertion_point(field_set:benthos.protobuf.BenthosHeader.ack_requested)
629 }
630 
631 // repeated int32 acked_frame = 4;
632 inline int BenthosHeader::acked_frame_size() const {
633  return acked_frame_.size();
634 }
635 inline void BenthosHeader::clear_acked_frame() {
636  acked_frame_.Clear();
637 }
638 inline ::google::protobuf::int32 BenthosHeader::acked_frame(int index) const {
639  // @@protoc_insertion_point(field_get:benthos.protobuf.BenthosHeader.acked_frame)
640  return acked_frame_.Get(index);
641 }
642 inline void BenthosHeader::set_acked_frame(int index, ::google::protobuf::int32 value) {
643  acked_frame_.Set(index, value);
644  // @@protoc_insertion_point(field_set:benthos.protobuf.BenthosHeader.acked_frame)
645 }
646 inline void BenthosHeader::add_acked_frame(::google::protobuf::int32 value) {
647  acked_frame_.Add(value);
648  // @@protoc_insertion_point(field_add:benthos.protobuf.BenthosHeader.acked_frame)
649 }
650 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
651 BenthosHeader::acked_frame() const {
652  // @@protoc_insertion_point(field_list:benthos.protobuf.BenthosHeader.acked_frame)
653  return acked_frame_;
654 }
655 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
656 BenthosHeader::mutable_acked_frame() {
657  // @@protoc_insertion_point(field_mutable_list:benthos.protobuf.BenthosHeader.acked_frame)
658  return &acked_frame_;
659 }
660 
661 // -------------------------------------------------------------------
662 
663 // ReceiveStatistics
664 
665 // required .benthos.protobuf.ReceiveStatistics.CRCState crc = 1;
666 inline bool ReceiveStatistics::has_crc() const {
667  return (_has_bits_[0] & 0x00000001u) != 0;
668 }
669 inline void ReceiveStatistics::set_has_crc() {
670  _has_bits_[0] |= 0x00000001u;
671 }
672 inline void ReceiveStatistics::clear_has_crc() {
673  _has_bits_[0] &= ~0x00000001u;
674 }
675 inline void ReceiveStatistics::clear_crc() {
676  crc_ = 1;
677  clear_has_crc();
678 }
679 inline ::benthos::protobuf::ReceiveStatistics_CRCState ReceiveStatistics::crc() const {
680  // @@protoc_insertion_point(field_get:benthos.protobuf.ReceiveStatistics.crc)
681  return static_cast< ::benthos::protobuf::ReceiveStatistics_CRCState >(crc_);
682 }
683 inline void ReceiveStatistics::set_crc(::benthos::protobuf::ReceiveStatistics_CRCState value) {
684  assert(::benthos::protobuf::ReceiveStatistics_CRCState_IsValid(value));
685  set_has_crc();
686  crc_ = value;
687  // @@protoc_insertion_point(field_set:benthos.protobuf.ReceiveStatistics.crc)
688 }
689 
690 // optional float multipath_delay = 2;
691 inline bool ReceiveStatistics::has_multipath_delay() const {
692  return (_has_bits_[0] & 0x00000002u) != 0;
693 }
694 inline void ReceiveStatistics::set_has_multipath_delay() {
695  _has_bits_[0] |= 0x00000002u;
696 }
697 inline void ReceiveStatistics::clear_has_multipath_delay() {
698  _has_bits_[0] &= ~0x00000002u;
699 }
700 inline void ReceiveStatistics::clear_multipath_delay() {
701  multipath_delay_ = 0;
702  clear_has_multipath_delay();
703 }
704 inline float ReceiveStatistics::multipath_delay() const {
705  // @@protoc_insertion_point(field_get:benthos.protobuf.ReceiveStatistics.multipath_delay)
706  return multipath_delay_;
707 }
708 inline void ReceiveStatistics::set_multipath_delay(float value) {
709  set_has_multipath_delay();
710  multipath_delay_ = value;
711  // @@protoc_insertion_point(field_set:benthos.protobuf.ReceiveStatistics.multipath_delay)
712 }
713 
714 // optional float snr = 3;
715 inline bool ReceiveStatistics::has_snr() const {
716  return (_has_bits_[0] & 0x00000004u) != 0;
717 }
718 inline void ReceiveStatistics::set_has_snr() {
719  _has_bits_[0] |= 0x00000004u;
720 }
721 inline void ReceiveStatistics::clear_has_snr() {
722  _has_bits_[0] &= ~0x00000004u;
723 }
724 inline void ReceiveStatistics::clear_snr() {
725  snr_ = 0;
726  clear_has_snr();
727 }
728 inline float ReceiveStatistics::snr() const {
729  // @@protoc_insertion_point(field_get:benthos.protobuf.ReceiveStatistics.snr)
730  return snr_;
731 }
732 inline void ReceiveStatistics::set_snr(float value) {
733  set_has_snr();
734  snr_ = value;
735  // @@protoc_insertion_point(field_set:benthos.protobuf.ReceiveStatistics.snr)
736 }
737 
738 // optional float relative_speed = 4;
739 inline bool ReceiveStatistics::has_relative_speed() const {
740  return (_has_bits_[0] & 0x00000008u) != 0;
741 }
742 inline void ReceiveStatistics::set_has_relative_speed() {
743  _has_bits_[0] |= 0x00000008u;
744 }
745 inline void ReceiveStatistics::clear_has_relative_speed() {
746  _has_bits_[0] &= ~0x00000008u;
747 }
748 inline void ReceiveStatistics::clear_relative_speed() {
749  relative_speed_ = 0;
750  clear_has_relative_speed();
751 }
752 inline float ReceiveStatistics::relative_speed() const {
753  // @@protoc_insertion_point(field_get:benthos.protobuf.ReceiveStatistics.relative_speed)
754  return relative_speed_;
755 }
756 inline void ReceiveStatistics::set_relative_speed(float value) {
757  set_has_relative_speed();
758  relative_speed_ = value;
759  // @@protoc_insertion_point(field_set:benthos.protobuf.ReceiveStatistics.relative_speed)
760 }
761 
762 // optional float auto_gain_control = 5;
763 inline bool ReceiveStatistics::has_auto_gain_control() const {
764  return (_has_bits_[0] & 0x00000010u) != 0;
765 }
766 inline void ReceiveStatistics::set_has_auto_gain_control() {
767  _has_bits_[0] |= 0x00000010u;
768 }
769 inline void ReceiveStatistics::clear_has_auto_gain_control() {
770  _has_bits_[0] &= ~0x00000010u;
771 }
772 inline void ReceiveStatistics::clear_auto_gain_control() {
773  auto_gain_control_ = 0;
774  clear_has_auto_gain_control();
775 }
776 inline float ReceiveStatistics::auto_gain_control() const {
777  // @@protoc_insertion_point(field_get:benthos.protobuf.ReceiveStatistics.auto_gain_control)
778  return auto_gain_control_;
779 }
780 inline void ReceiveStatistics::set_auto_gain_control(float value) {
781  set_has_auto_gain_control();
782  auto_gain_control_ = value;
783  // @@protoc_insertion_point(field_set:benthos.protobuf.ReceiveStatistics.auto_gain_control)
784 }
785 
786 // optional int32 corrected_channel_error = 6;
787 inline bool ReceiveStatistics::has_corrected_channel_error() const {
788  return (_has_bits_[0] & 0x00000020u) != 0;
789 }
790 inline void ReceiveStatistics::set_has_corrected_channel_error() {
791  _has_bits_[0] |= 0x00000020u;
792 }
793 inline void ReceiveStatistics::clear_has_corrected_channel_error() {
794  _has_bits_[0] &= ~0x00000020u;
795 }
796 inline void ReceiveStatistics::clear_corrected_channel_error() {
797  corrected_channel_error_ = 0;
798  clear_has_corrected_channel_error();
799 }
800 inline ::google::protobuf::int32 ReceiveStatistics::corrected_channel_error() const {
801  // @@protoc_insertion_point(field_get:benthos.protobuf.ReceiveStatistics.corrected_channel_error)
802  return corrected_channel_error_;
803 }
804 inline void ReceiveStatistics::set_corrected_channel_error(::google::protobuf::int32 value) {
805  set_has_corrected_channel_error();
806  corrected_channel_error_ = value;
807  // @@protoc_insertion_point(field_set:benthos.protobuf.ReceiveStatistics.corrected_channel_error)
808 }
809 
810 // -------------------------------------------------------------------
811 
812 // RangingReply
813 
814 // required double one_way_travel_time = 1;
815 inline bool RangingReply::has_one_way_travel_time() const {
816  return (_has_bits_[0] & 0x00000001u) != 0;
817 }
818 inline void RangingReply::set_has_one_way_travel_time() {
819  _has_bits_[0] |= 0x00000001u;
820 }
821 inline void RangingReply::clear_has_one_way_travel_time() {
822  _has_bits_[0] &= ~0x00000001u;
823 }
824 inline void RangingReply::clear_one_way_travel_time() {
825  one_way_travel_time_ = 0;
826  clear_has_one_way_travel_time();
827 }
828 inline double RangingReply::one_way_travel_time() const {
829  // @@protoc_insertion_point(field_get:benthos.protobuf.RangingReply.one_way_travel_time)
830  return one_way_travel_time_;
831 }
832 inline void RangingReply::set_one_way_travel_time(double value) {
833  set_has_one_way_travel_time();
834  one_way_travel_time_ = value;
835  // @@protoc_insertion_point(field_set:benthos.protobuf.RangingReply.one_way_travel_time)
836 }
837 
838 
839 // @@protoc_insertion_point(namespace_scope)
840 
841 } // namespace protobuf
842 } // namespace benthos
843 
844 #ifndef SWIG
845 namespace google {
846 namespace protobuf {
847 
848 template <> struct is_proto_enum< ::benthos::protobuf::ReceiveStatistics_CRCState> : ::google::protobuf::internal::true_type {};
849 template <>
850 inline const EnumDescriptor* GetEnumDescriptor< ::benthos::protobuf::ReceiveStatistics_CRCState>() {
851  return ::benthos::protobuf::ReceiveStatistics_CRCState_descriptor();
852 }
853 template <> struct is_proto_enum< ::benthos::protobuf::TransmissionType> : ::google::protobuf::internal::true_type {};
854 template <>
855 inline const EnumDescriptor* GetEnumDescriptor< ::benthos::protobuf::TransmissionType>() {
856  return ::benthos::protobuf::TransmissionType_descriptor();
857 }
858 
859 } // namespace google
860 } // namespace protobuf
861 #endif // SWIG
862 
863 // @@protoc_insertion_point(global_scope)
864 
865 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto__INCLUDED