Goby v2
bluefin_driver.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/moos/protobuf/bluefin_driver.proto
3 
4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2fbluefin_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/acomms/protobuf/driver_base.pb.h"
28 #include "goby/acomms/protobuf/modem_message.pb.h"
29 #include "dccl/option_extensions.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 moos {
38 namespace protobuf {
39 
40 // Internal implementation detail -- do not call these.
41 void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
42 void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
43 void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
44 
45 class HardwareRatePair;
46 class BluefinModemIdLookUp;
47 class BluefinConfig;
48 
49 // ===================================================================
50 
51 class HardwareRatePair : public ::google::protobuf::Message {
52  public:
54  virtual ~HardwareRatePair();
55 
57 
58  inline HardwareRatePair& operator=(const HardwareRatePair& from) {
59  CopyFrom(from);
60  return *this;
61  }
62 
63  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
64  return _unknown_fields_;
65  }
66 
67  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
68  return &_unknown_fields_;
69  }
70 
71  static const ::google::protobuf::Descriptor* descriptor();
72  static const HardwareRatePair& default_instance();
73 
74  void Swap(HardwareRatePair* other);
75 
76  // implements Message ----------------------------------------------
77 
78  HardwareRatePair* New() const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const HardwareRatePair& from);
82  void MergeFrom(const HardwareRatePair& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
92  int GetCachedSize() const { return _cached_size_; }
93  private:
94  void SharedCtor();
95  void SharedDtor();
96  void SetCachedSize(int size) const;
97  public:
98  ::google::protobuf::Metadata GetMetadata() const;
99 
100  // nested types ----------------------------------------------------
101 
102  // accessors -------------------------------------------------------
103 
104  // required string hardware_name = 1;
105  inline bool has_hardware_name() const;
106  inline void clear_hardware_name();
107  static const int kHardwareNameFieldNumber = 1;
108  inline const ::std::string& hardware_name() const;
109  inline void set_hardware_name(const ::std::string& value);
110  inline void set_hardware_name(const char* value);
111  inline void set_hardware_name(const char* value, size_t size);
112  inline ::std::string* mutable_hardware_name();
113  inline ::std::string* release_hardware_name();
114  inline void set_allocated_hardware_name(::std::string* hardware_name);
115 
116  // required int32 rate = 2;
117  inline bool has_rate() const;
118  inline void clear_rate();
119  static const int kRateFieldNumber = 2;
120  inline ::google::protobuf::int32 rate() const;
121  inline void set_rate(::google::protobuf::int32 value);
122 
123  // required int32 packet_bytes = 3;
124  inline bool has_packet_bytes() const;
125  inline void clear_packet_bytes();
126  static const int kPacketBytesFieldNumber = 3;
127  inline ::google::protobuf::int32 packet_bytes() const;
128  inline void set_packet_bytes(::google::protobuf::int32 value);
129 
130  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.HardwareRatePair)
131  private:
132  inline void set_has_hardware_name();
133  inline void clear_has_hardware_name();
134  inline void set_has_rate();
135  inline void clear_has_rate();
136  inline void set_has_packet_bytes();
137  inline void clear_has_packet_bytes();
138 
139  ::google::protobuf::UnknownFieldSet _unknown_fields_;
140 
141  ::google::protobuf::uint32 _has_bits_[1];
142  mutable int _cached_size_;
143  ::std::string* hardware_name_;
144  ::google::protobuf::int32 rate_;
145  ::google::protobuf::int32 packet_bytes_;
146  friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
147  friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
148  friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
149 
150  void InitAsDefaultInstance();
151  static HardwareRatePair* default_instance_;
152 };
153 // -------------------------------------------------------------------
154 
155 class BluefinModemIdLookUp : public ::google::protobuf::Message {
156  public:
158  virtual ~BluefinModemIdLookUp();
159 
161 
162  inline BluefinModemIdLookUp& operator=(const BluefinModemIdLookUp& from) {
163  CopyFrom(from);
164  return *this;
165  }
166 
167  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
168  return _unknown_fields_;
169  }
170 
171  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
172  return &_unknown_fields_;
173  }
174 
175  static const ::google::protobuf::Descriptor* descriptor();
176  static const BluefinModemIdLookUp& default_instance();
177 
178  void Swap(BluefinModemIdLookUp* other);
179 
180  // implements Message ----------------------------------------------
181 
182  BluefinModemIdLookUp* New() const;
183  void CopyFrom(const ::google::protobuf::Message& from);
184  void MergeFrom(const ::google::protobuf::Message& from);
185  void CopyFrom(const BluefinModemIdLookUp& from);
186  void MergeFrom(const BluefinModemIdLookUp& from);
187  void Clear();
188  bool IsInitialized() const;
189 
190  int ByteSize() const;
191  bool MergePartialFromCodedStream(
192  ::google::protobuf::io::CodedInputStream* input);
193  void SerializeWithCachedSizes(
194  ::google::protobuf::io::CodedOutputStream* output) const;
195  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
196  int GetCachedSize() const { return _cached_size_; }
197  private:
198  void SharedCtor();
199  void SharedDtor();
200  void SetCachedSize(int size) const;
201  public:
202  ::google::protobuf::Metadata GetMetadata() const;
203 
204  // nested types ----------------------------------------------------
205 
206  // accessors -------------------------------------------------------
207 
208  // required int32 goby_id = 1;
209  inline bool has_goby_id() const;
210  inline void clear_goby_id();
211  static const int kGobyIdFieldNumber = 1;
212  inline ::google::protobuf::int32 goby_id() const;
213  inline void set_goby_id(::google::protobuf::int32 value);
214 
215  // required int32 bluefin_id = 2;
216  inline bool has_bluefin_id() const;
217  inline void clear_bluefin_id();
218  static const int kBluefinIdFieldNumber = 2;
219  inline ::google::protobuf::int32 bluefin_id() const;
220  inline void set_bluefin_id(::google::protobuf::int32 value);
221 
222  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.BluefinModemIdLookUp)
223  private:
224  inline void set_has_goby_id();
225  inline void clear_has_goby_id();
226  inline void set_has_bluefin_id();
227  inline void clear_has_bluefin_id();
228 
229  ::google::protobuf::UnknownFieldSet _unknown_fields_;
230 
231  ::google::protobuf::uint32 _has_bits_[1];
232  mutable int _cached_size_;
233  ::google::protobuf::int32 goby_id_;
234  ::google::protobuf::int32 bluefin_id_;
235  friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
236  friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
237  friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
238 
239  void InitAsDefaultInstance();
240  static BluefinModemIdLookUp* default_instance_;
241 };
242 // -------------------------------------------------------------------
243 
244 class BluefinConfig : public ::google::protobuf::Message {
245  public:
246  BluefinConfig();
247  virtual ~BluefinConfig();
248 
249  BluefinConfig(const BluefinConfig& from);
250 
251  inline BluefinConfig& operator=(const BluefinConfig& from) {
252  CopyFrom(from);
253  return *this;
254  }
255 
256  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
257  return _unknown_fields_;
258  }
259 
260  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
261  return &_unknown_fields_;
262  }
263 
264  static const ::google::protobuf::Descriptor* descriptor();
265  static const BluefinConfig& default_instance();
266 
267  void Swap(BluefinConfig* other);
268 
269  // implements Message ----------------------------------------------
270 
271  BluefinConfig* New() const;
272  void CopyFrom(const ::google::protobuf::Message& from);
273  void MergeFrom(const ::google::protobuf::Message& from);
274  void CopyFrom(const BluefinConfig& from);
275  void MergeFrom(const BluefinConfig& from);
276  void Clear();
277  bool IsInitialized() const;
278 
279  int ByteSize() const;
280  bool MergePartialFromCodedStream(
281  ::google::protobuf::io::CodedInputStream* input);
282  void SerializeWithCachedSizes(
283  ::google::protobuf::io::CodedOutputStream* output) const;
284  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
285  int GetCachedSize() const { return _cached_size_; }
286  private:
287  void SharedCtor();
288  void SharedDtor();
289  void SetCachedSize(int size) const;
290  public:
291  ::google::protobuf::Metadata GetMetadata() const;
292 
293  // nested types ----------------------------------------------------
294 
295  // accessors -------------------------------------------------------
296 
297  static const int kMoosServerFieldNumber = 1361;
298  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
299  ::google::protobuf::internal::StringTypeTraits, 9, false >
300  moos_server;
301  static const int kMoosPortFieldNumber = 1362;
302  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
303  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
304  moos_port;
305  static const int kNmeaInMoosVarFieldNumber = 1363;
306  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
307  ::google::protobuf::internal::StringTypeTraits, 9, false >
308  nmea_in_moos_var;
309  static const int kNmeaOutMoosVarFieldNumber = 1364;
310  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
311  ::google::protobuf::internal::StringTypeTraits, 9, false >
312  nmea_out_moos_var;
313  static const int kHardwareToRateFieldNumber = 1365;
314  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
315  ::google::protobuf::internal::RepeatedMessageTypeTraits< ::goby::moos::protobuf::HardwareRatePair >, 11, false >
316  hardware_to_rate;
317  static const int kModemLookupFieldNumber = 1366;
318  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
319  ::google::protobuf::internal::RepeatedMessageTypeTraits< ::goby::moos::protobuf::BluefinModemIdLookUp >, 11, false >
320  modem_lookup;
321  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.BluefinConfig)
322  private:
323 
324  ::google::protobuf::UnknownFieldSet _unknown_fields_;
325 
326  ::google::protobuf::uint32 _has_bits_[1];
327  mutable int _cached_size_;
328  friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
329  friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
330  friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto();
331 
332  void InitAsDefaultInstance();
333  static BluefinConfig* default_instance_;
334 };
335 // ===================================================================
336 
337 
338 // ===================================================================
339 
340 // HardwareRatePair
341 
342 // required string hardware_name = 1;
343 inline bool HardwareRatePair::has_hardware_name() const {
344  return (_has_bits_[0] & 0x00000001u) != 0;
345 }
346 inline void HardwareRatePair::set_has_hardware_name() {
347  _has_bits_[0] |= 0x00000001u;
348 }
349 inline void HardwareRatePair::clear_has_hardware_name() {
350  _has_bits_[0] &= ~0x00000001u;
351 }
352 inline void HardwareRatePair::clear_hardware_name() {
353  if (hardware_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
354  hardware_name_->clear();
355  }
356  clear_has_hardware_name();
357 }
358 inline const ::std::string& HardwareRatePair::hardware_name() const {
359  // @@protoc_insertion_point(field_get:goby.moos.protobuf.HardwareRatePair.hardware_name)
360  return *hardware_name_;
361 }
362 inline void HardwareRatePair::set_hardware_name(const ::std::string& value) {
363  set_has_hardware_name();
364  if (hardware_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
365  hardware_name_ = new ::std::string;
366  }
367  hardware_name_->assign(value);
368  // @@protoc_insertion_point(field_set:goby.moos.protobuf.HardwareRatePair.hardware_name)
369 }
370 inline void HardwareRatePair::set_hardware_name(const char* value) {
371  set_has_hardware_name();
372  if (hardware_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
373  hardware_name_ = new ::std::string;
374  }
375  hardware_name_->assign(value);
376  // @@protoc_insertion_point(field_set_char:goby.moos.protobuf.HardwareRatePair.hardware_name)
377 }
378 inline void HardwareRatePair::set_hardware_name(const char* value, size_t size) {
379  set_has_hardware_name();
380  if (hardware_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
381  hardware_name_ = new ::std::string;
382  }
383  hardware_name_->assign(reinterpret_cast<const char*>(value), size);
384  // @@protoc_insertion_point(field_set_pointer:goby.moos.protobuf.HardwareRatePair.hardware_name)
385 }
386 inline ::std::string* HardwareRatePair::mutable_hardware_name() {
387  set_has_hardware_name();
388  if (hardware_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
389  hardware_name_ = new ::std::string;
390  }
391  // @@protoc_insertion_point(field_mutable:goby.moos.protobuf.HardwareRatePair.hardware_name)
392  return hardware_name_;
393 }
394 inline ::std::string* HardwareRatePair::release_hardware_name() {
395  clear_has_hardware_name();
396  if (hardware_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
397  return NULL;
398  } else {
399  ::std::string* temp = hardware_name_;
400  hardware_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
401  return temp;
402  }
403 }
404 inline void HardwareRatePair::set_allocated_hardware_name(::std::string* hardware_name) {
405  if (hardware_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
406  delete hardware_name_;
407  }
408  if (hardware_name) {
409  set_has_hardware_name();
410  hardware_name_ = hardware_name;
411  } else {
412  clear_has_hardware_name();
413  hardware_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
414  }
415  // @@protoc_insertion_point(field_set_allocated:goby.moos.protobuf.HardwareRatePair.hardware_name)
416 }
417 
418 // required int32 rate = 2;
419 inline bool HardwareRatePair::has_rate() const {
420  return (_has_bits_[0] & 0x00000002u) != 0;
421 }
422 inline void HardwareRatePair::set_has_rate() {
423  _has_bits_[0] |= 0x00000002u;
424 }
425 inline void HardwareRatePair::clear_has_rate() {
426  _has_bits_[0] &= ~0x00000002u;
427 }
428 inline void HardwareRatePair::clear_rate() {
429  rate_ = 0;
430  clear_has_rate();
431 }
432 inline ::google::protobuf::int32 HardwareRatePair::rate() const {
433  // @@protoc_insertion_point(field_get:goby.moos.protobuf.HardwareRatePair.rate)
434  return rate_;
435 }
436 inline void HardwareRatePair::set_rate(::google::protobuf::int32 value) {
437  set_has_rate();
438  rate_ = value;
439  // @@protoc_insertion_point(field_set:goby.moos.protobuf.HardwareRatePair.rate)
440 }
441 
442 // required int32 packet_bytes = 3;
443 inline bool HardwareRatePair::has_packet_bytes() const {
444  return (_has_bits_[0] & 0x00000004u) != 0;
445 }
446 inline void HardwareRatePair::set_has_packet_bytes() {
447  _has_bits_[0] |= 0x00000004u;
448 }
449 inline void HardwareRatePair::clear_has_packet_bytes() {
450  _has_bits_[0] &= ~0x00000004u;
451 }
452 inline void HardwareRatePair::clear_packet_bytes() {
453  packet_bytes_ = 0;
454  clear_has_packet_bytes();
455 }
456 inline ::google::protobuf::int32 HardwareRatePair::packet_bytes() const {
457  // @@protoc_insertion_point(field_get:goby.moos.protobuf.HardwareRatePair.packet_bytes)
458  return packet_bytes_;
459 }
460 inline void HardwareRatePair::set_packet_bytes(::google::protobuf::int32 value) {
461  set_has_packet_bytes();
462  packet_bytes_ = value;
463  // @@protoc_insertion_point(field_set:goby.moos.protobuf.HardwareRatePair.packet_bytes)
464 }
465 
466 // -------------------------------------------------------------------
467 
468 // BluefinModemIdLookUp
469 
470 // required int32 goby_id = 1;
471 inline bool BluefinModemIdLookUp::has_goby_id() const {
472  return (_has_bits_[0] & 0x00000001u) != 0;
473 }
474 inline void BluefinModemIdLookUp::set_has_goby_id() {
475  _has_bits_[0] |= 0x00000001u;
476 }
477 inline void BluefinModemIdLookUp::clear_has_goby_id() {
478  _has_bits_[0] &= ~0x00000001u;
479 }
480 inline void BluefinModemIdLookUp::clear_goby_id() {
481  goby_id_ = 0;
482  clear_has_goby_id();
483 }
484 inline ::google::protobuf::int32 BluefinModemIdLookUp::goby_id() const {
485  // @@protoc_insertion_point(field_get:goby.moos.protobuf.BluefinModemIdLookUp.goby_id)
486  return goby_id_;
487 }
488 inline void BluefinModemIdLookUp::set_goby_id(::google::protobuf::int32 value) {
489  set_has_goby_id();
490  goby_id_ = value;
491  // @@protoc_insertion_point(field_set:goby.moos.protobuf.BluefinModemIdLookUp.goby_id)
492 }
493 
494 // required int32 bluefin_id = 2;
495 inline bool BluefinModemIdLookUp::has_bluefin_id() const {
496  return (_has_bits_[0] & 0x00000002u) != 0;
497 }
498 inline void BluefinModemIdLookUp::set_has_bluefin_id() {
499  _has_bits_[0] |= 0x00000002u;
500 }
501 inline void BluefinModemIdLookUp::clear_has_bluefin_id() {
502  _has_bits_[0] &= ~0x00000002u;
503 }
504 inline void BluefinModemIdLookUp::clear_bluefin_id() {
505  bluefin_id_ = 0;
506  clear_has_bluefin_id();
507 }
508 inline ::google::protobuf::int32 BluefinModemIdLookUp::bluefin_id() const {
509  // @@protoc_insertion_point(field_get:goby.moos.protobuf.BluefinModemIdLookUp.bluefin_id)
510  return bluefin_id_;
511 }
512 inline void BluefinModemIdLookUp::set_bluefin_id(::google::protobuf::int32 value) {
513  set_has_bluefin_id();
514  bluefin_id_ = value;
515  // @@protoc_insertion_point(field_set:goby.moos.protobuf.BluefinModemIdLookUp.bluefin_id)
516 }
517 
518 // -------------------------------------------------------------------
519 
520 // BluefinConfig
521 
522 
523 // @@protoc_insertion_point(namespace_scope)
524 
525 } // namespace protobuf
526 } // namespace moos
527 } // namespace goby
528 
529 #ifndef SWIG
530 namespace google {
531 namespace protobuf {
532 
533 
534 } // namespace google
535 } // namespace protobuf
536 #endif // SWIG
537 
538 // @@protoc_insertion_point(global_scope)
539 
540 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2fbluefin_5fdriver_2eproto__INCLUDED
The global namespace for the Goby project.