4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 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();
60 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
61 return _unknown_fields_;
64 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65 return &_unknown_fields_;
68 static const ::google::protobuf::Descriptor* descriptor();
76 void CopyFrom(const ::google::protobuf::Message& from);
77 void MergeFrom(const ::google::protobuf::Message& from);
81 bool IsInitialized()
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_; }
93 void SetCachedSize(
int size)
const;
95 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
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();
127 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
137 void InitAsDefaultInstance();
154 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
155 return _unknown_fields_;
158 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
159 return &_unknown_fields_;
162 static const ::google::protobuf::Descriptor* descriptor();
170 void CopyFrom(const ::google::protobuf::Message& from);
171 void MergeFrom(const ::google::protobuf::Message& from);
175 bool IsInitialized()
const;
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_; }
187 void SetCachedSize(
int size)
const;
189 ::google::protobuf::Metadata GetMetadata()
const;
197 static const int kRemoteFieldNumber = 1381;
199 ::google::protobuf::internal::MessageTypeTraits< ::IridiumDriverConfig_Remote >, 11,
false >
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 >
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 >
209 static const int kConfigFieldNumber = 1384;
210 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
211 ::google::protobuf::internal::RepeatedStringTypeTraits, 9,
false >
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 >
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 >
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 >
229 static const int kUseDtrFieldNumber = 1390;
230 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
231 ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8,
false >
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;
239 ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8,
false >
240 if_no_data_do_mailbox_check;
244 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
252 void InitAsDefaultInstance();
269 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
270 return _unknown_fields_;
273 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
274 return &_unknown_fields_;
277 static const ::google::protobuf::Descriptor* descriptor();
285 void CopyFrom(const ::google::protobuf::Message& from);
286 void MergeFrom(const ::google::protobuf::Message& from);
290 bool IsInitialized()
const;
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_; }
302 void SetCachedSize(
int size)
const;
304 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
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);
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);
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);
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);
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);
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();
376 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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_;
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();
391 void InitAsDefaultInstance();
402 inline bool IridiumDriverConfig_Remote::has_iridium_number()
const {
403 return (_has_bits_[0] & 0x00000001u) != 0;
405 inline void IridiumDriverConfig_Remote::set_has_iridium_number() {
406 _has_bits_[0] |= 0x00000001u;
408 inline void IridiumDriverConfig_Remote::clear_has_iridium_number() {
409 _has_bits_[0] &= ~0x00000001u;
411 inline void IridiumDriverConfig_Remote::clear_iridium_number() {
412 if (iridium_number_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
413 iridium_number_->clear();
415 clear_has_iridium_number();
417 inline const ::std::string& IridiumDriverConfig_Remote::iridium_number()
const {
419 return *iridium_number_;
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;
426 iridium_number_->assign(value);
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;
434 iridium_number_->assign(value);
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;
442 iridium_number_->assign(reinterpret_cast<const char*>(value), size);
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;
451 return iridium_number_;
453 inline ::std::string* IridiumDriverConfig_Remote::release_iridium_number() {
454 clear_has_iridium_number();
455 if (iridium_number_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
458 ::std::string* temp = iridium_number_;
459 iridium_number_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
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_;
467 if (iridium_number) {
468 set_has_iridium_number();
469 iridium_number_ = iridium_number;
471 clear_has_iridium_number();
472 iridium_number_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
478 inline bool IridiumDriverConfig_Remote::has_modem_id()
const {
479 return (_has_bits_[0] & 0x00000002u) != 0;
481 inline void IridiumDriverConfig_Remote::set_has_modem_id() {
482 _has_bits_[0] |= 0x00000002u;
484 inline void IridiumDriverConfig_Remote::clear_has_modem_id() {
485 _has_bits_[0] &= ~0x00000002u;
487 inline void IridiumDriverConfig_Remote::clear_modem_id() {
489 clear_has_modem_id();
491 inline ::google::protobuf::int32 IridiumDriverConfig_Remote::modem_id()
const {
495 inline void IridiumDriverConfig_Remote::set_modem_id(::google::protobuf::int32 value) {
510 inline bool IridiumHeader::has_src()
const {
511 return (_has_bits_[0] & 0x00000001u) != 0;
513 inline void IridiumHeader::set_has_src() {
514 _has_bits_[0] |= 0x00000001u;
516 inline void IridiumHeader::clear_has_src() {
517 _has_bits_[0] &= ~0x00000001u;
519 inline void IridiumHeader::clear_src() {
523 inline ::google::protobuf::int32 IridiumHeader::src()
const {
527 inline void IridiumHeader::set_src(::google::protobuf::int32 value) {
534 inline bool IridiumHeader::has_dest()
const {
535 return (_has_bits_[0] & 0x00000002u) != 0;
537 inline void IridiumHeader::set_has_dest() {
538 _has_bits_[0] |= 0x00000002u;
540 inline void IridiumHeader::clear_has_dest() {
541 _has_bits_[0] &= ~0x00000002u;
543 inline void IridiumHeader::clear_dest() {
547 inline ::google::protobuf::int32 IridiumHeader::dest()
const {
551 inline void IridiumHeader::set_dest(::google::protobuf::int32 value) {
558 inline bool IridiumHeader::has_rate()
const {
559 return (_has_bits_[0] & 0x00000004u) != 0;
561 inline void IridiumHeader::set_has_rate() {
562 _has_bits_[0] |= 0x00000004u;
564 inline void IridiumHeader::clear_has_rate() {
565 _has_bits_[0] &= ~0x00000004u;
567 inline void IridiumHeader::clear_rate() {
571 inline ::google::protobuf::int32 IridiumHeader::rate()
const {
575 inline void IridiumHeader::set_rate(::google::protobuf::int32 value) {
582 inline bool IridiumHeader::has_type()
const {
583 return (_has_bits_[0] & 0x00000008u) != 0;
585 inline void IridiumHeader::set_has_type() {
586 _has_bits_[0] |= 0x00000008u;
588 inline void IridiumHeader::clear_has_type() {
589 _has_bits_[0] &= ~0x00000008u;
591 inline void IridiumHeader::clear_type() {
595 inline ::goby::acomms::protobuf::ModemTransmission_TransmissionType IridiumHeader::type()
const {
597 return static_cast< ::goby::acomms::protobuf::ModemTransmission_TransmissionType
>(type_);
599 inline void IridiumHeader::set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value) {
600 assert(::goby::acomms::protobuf::ModemTransmission_TransmissionType_IsValid(value));
607 inline bool IridiumHeader::has_ack_requested()
const {
608 return (_has_bits_[0] & 0x00000010u) != 0;
610 inline void IridiumHeader::set_has_ack_requested() {
611 _has_bits_[0] |= 0x00000010u;
613 inline void IridiumHeader::clear_has_ack_requested() {
614 _has_bits_[0] &= ~0x00000010u;
616 inline void IridiumHeader::clear_ack_requested() {
617 ack_requested_ =
false;
618 clear_has_ack_requested();
620 inline bool IridiumHeader::ack_requested()
const {
622 return ack_requested_;
624 inline void IridiumHeader::set_ack_requested(
bool value) {
625 set_has_ack_requested();
626 ack_requested_ = value;
631 inline bool IridiumHeader::has_frame_start()
const {
632 return (_has_bits_[0] & 0x00000020u) != 0;
634 inline void IridiumHeader::set_has_frame_start() {
635 _has_bits_[0] |= 0x00000020u;
637 inline void IridiumHeader::clear_has_frame_start() {
638 _has_bits_[0] &= ~0x00000020u;
640 inline void IridiumHeader::clear_frame_start() {
642 clear_has_frame_start();
644 inline ::google::protobuf::uint32 IridiumHeader::frame_start()
const {
648 inline void IridiumHeader::set_frame_start(::google::protobuf::uint32 value) {
649 set_has_frame_start();
650 frame_start_ = value;
655 inline bool IridiumHeader::has_acked_frame()
const {
656 return (_has_bits_[0] & 0x00000040u) != 0;
658 inline void IridiumHeader::set_has_acked_frame() {
659 _has_bits_[0] |= 0x00000040u;
661 inline void IridiumHeader::clear_has_acked_frame() {
662 _has_bits_[0] &= ~0x00000040u;
664 inline void IridiumHeader::clear_acked_frame() {
666 clear_has_acked_frame();
668 inline ::google::protobuf::int32 IridiumHeader::acked_frame()
const {
672 inline void IridiumHeader::set_acked_frame(::google::protobuf::int32 value) {
673 set_has_acked_frame();
674 acked_frame_ = value;
692 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2firidium_5fdriver_2eproto__INCLUDED