4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2frudics_5fshore_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/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "goby/acomms/protobuf/modem_message.pb.h" 29 #include <boost/units/quantity.hpp> 30 #include <boost/units/absolute.hpp> 31 #include <boost/units/dimensionless_type.hpp> 32 #include <boost/units/make_scaled_unit.hpp> 40 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
41 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
42 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
45 class MTDataRequest_Command;
47 class MODataAsyncReceive;
49 enum MTDataRequest_Command_CommandType {
50 MTDataRequest_Command_CommandType_SEND_BYE = 1,
51 MTDataRequest_Command_CommandType_HANGUP = 2
53 bool MTDataRequest_Command_CommandType_IsValid(
int value);
54 const MTDataRequest_Command_CommandType MTDataRequest_Command_CommandType_CommandType_MIN = MTDataRequest_Command_CommandType_SEND_BYE;
55 const MTDataRequest_Command_CommandType MTDataRequest_Command_CommandType_CommandType_MAX = MTDataRequest_Command_CommandType_HANGUP;
56 const int MTDataRequest_Command_CommandType_CommandType_ARRAYSIZE = MTDataRequest_Command_CommandType_CommandType_MAX + 1;
58 const ::google::protobuf::EnumDescriptor* MTDataRequest_Command_CommandType_descriptor();
59 inline const ::std::string& MTDataRequest_Command_CommandType_Name(MTDataRequest_Command_CommandType value) {
60 return ::google::protobuf::internal::NameOfEnum(
61 MTDataRequest_Command_CommandType_descriptor(), value);
63 inline bool MTDataRequest_Command_CommandType_Parse(
64 const ::std::string& name, MTDataRequest_Command_CommandType* value) {
65 return ::google::protobuf::internal::ParseNamedEnum<MTDataRequest_Command_CommandType>(
66 MTDataRequest_Command_CommandType_descriptor(), name, value);
82 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
83 return _unknown_fields_;
86 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
87 return &_unknown_fields_;
90 static const ::google::protobuf::Descriptor* descriptor();
98 void CopyFrom(const ::google::protobuf::Message& from);
99 void MergeFrom(const ::google::protobuf::Message& from);
103 bool IsInitialized()
const;
105 int ByteSize()
const;
106 bool MergePartialFromCodedStream(
107 ::google::protobuf::io::CodedInputStream* input);
108 void SerializeWithCachedSizes(
109 ::google::protobuf::io::CodedOutputStream* output)
const;
110 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
111 int GetCachedSize()
const {
return _cached_size_; }
115 void SetCachedSize(
int size)
const;
117 ::google::protobuf::Metadata GetMetadata()
const;
121 typedef MTDataRequest_Command_CommandType CommandType;
122 static const CommandType SEND_BYE = MTDataRequest_Command_CommandType_SEND_BYE;
123 static const CommandType HANGUP = MTDataRequest_Command_CommandType_HANGUP;
124 static inline bool CommandType_IsValid(
int value) {
125 return MTDataRequest_Command_CommandType_IsValid(value);
127 static const CommandType CommandType_MIN =
128 MTDataRequest_Command_CommandType_CommandType_MIN;
129 static const CommandType CommandType_MAX =
130 MTDataRequest_Command_CommandType_CommandType_MAX;
131 static const int CommandType_ARRAYSIZE =
132 MTDataRequest_Command_CommandType_CommandType_ARRAYSIZE;
133 static inline const ::google::protobuf::EnumDescriptor*
134 CommandType_descriptor() {
135 return MTDataRequest_Command_CommandType_descriptor();
137 static inline const ::std::string& CommandType_Name(CommandType value) {
138 return MTDataRequest_Command_CommandType_Name(value);
140 static inline bool CommandType_Parse(const ::std::string& name,
141 CommandType* value) {
142 return MTDataRequest_Command_CommandType_Parse(name, value);
148 inline bool has_modem_id()
const;
149 inline void clear_modem_id();
150 static const int kModemIdFieldNumber = 1;
151 inline ::google::protobuf::int32 modem_id()
const;
152 inline void set_modem_id(::google::protobuf::int32 value);
155 inline bool has_type()
const;
156 inline void clear_type();
157 static const int kTypeFieldNumber = 2;
158 inline ::goby::acomms::protobuf::MTDataRequest_Command_CommandType type()
const;
159 inline void set_type(::goby::acomms::protobuf::MTDataRequest_Command_CommandType value);
163 inline void set_has_modem_id();
164 inline void clear_has_modem_id();
165 inline void set_has_type();
166 inline void clear_has_type();
168 ::google::protobuf::UnknownFieldSet _unknown_fields_;
170 ::google::protobuf::uint32 _has_bits_[1];
171 mutable int _cached_size_;
172 ::google::protobuf::int32 modem_id_;
174 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
175 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
176 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
178 void InitAsDefaultInstance();
195 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
196 return _unknown_fields_;
199 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
200 return &_unknown_fields_;
203 static const ::google::protobuf::Descriptor* descriptor();
211 void CopyFrom(const ::google::protobuf::Message& from);
212 void MergeFrom(const ::google::protobuf::Message& from);
216 bool IsInitialized()
const;
218 int ByteSize()
const;
219 bool MergePartialFromCodedStream(
220 ::google::protobuf::io::CodedInputStream* input);
221 void SerializeWithCachedSizes(
222 ::google::protobuf::io::CodedOutputStream* output)
const;
223 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
224 int GetCachedSize()
const {
return _cached_size_; }
228 void SetCachedSize(
int size)
const;
230 ::google::protobuf::Metadata GetMetadata()
const;
239 inline int outbox_size()
const;
240 inline void clear_outbox();
241 static const int kOutboxFieldNumber = 2;
242 inline const ::goby::acomms::protobuf::ModemTransmission& outbox(
int index)
const;
243 inline ::goby::acomms::protobuf::ModemTransmission* mutable_outbox(
int index);
244 inline ::goby::acomms::protobuf::ModemTransmission* add_outbox();
245 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
247 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
251 inline bool has_request_id()
const;
252 inline void clear_request_id();
253 static const int kRequestIdFieldNumber = 3;
254 inline ::google::protobuf::uint64 request_id()
const;
255 inline void set_request_id(::google::protobuf::uint64 value);
258 inline int command_size()
const;
259 inline void clear_command();
260 static const int kCommandFieldNumber = 4;
261 inline const ::goby::acomms::protobuf::MTDataRequest_Command& command(
int index)
const;
262 inline ::goby::acomms::protobuf::MTDataRequest_Command* mutable_command(
int index);
263 inline ::goby::acomms::protobuf::MTDataRequest_Command* add_command();
264 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::MTDataRequest_Command >&
266 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::MTDataRequest_Command >*
271 inline void set_has_request_id();
272 inline void clear_has_request_id();
274 ::google::protobuf::UnknownFieldSet _unknown_fields_;
276 ::google::protobuf::uint32 _has_bits_[1];
277 mutable int _cached_size_;
278 ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > outbox_;
279 ::google::protobuf::uint64 request_id_;
280 ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::MTDataRequest_Command > command_;
281 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
282 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
283 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
285 void InitAsDefaultInstance();
302 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
303 return _unknown_fields_;
306 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
307 return &_unknown_fields_;
310 static const ::google::protobuf::Descriptor* descriptor();
318 void CopyFrom(const ::google::protobuf::Message& from);
319 void MergeFrom(const ::google::protobuf::Message& from);
323 bool IsInitialized()
const;
325 int ByteSize()
const;
326 bool MergePartialFromCodedStream(
327 ::google::protobuf::io::CodedInputStream* input);
328 void SerializeWithCachedSizes(
329 ::google::protobuf::io::CodedOutputStream* output)
const;
330 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
331 int GetCachedSize()
const {
return _cached_size_; }
335 void SetCachedSize(
int size)
const;
337 ::google::protobuf::Metadata GetMetadata()
const;
344 inline int modem_id_connected_size()
const;
345 inline void clear_modem_id_connected();
346 static const int kModemIdConnectedFieldNumber = 1;
347 inline ::google::protobuf::int32 modem_id_connected(
int index)
const;
348 inline void set_modem_id_connected(
int index, ::google::protobuf::int32 value);
349 inline void add_modem_id_connected(::google::protobuf::int32 value);
350 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
351 modem_id_connected()
const;
352 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
353 mutable_modem_id_connected();
356 inline bool has_request_id()
const;
357 inline void clear_request_id();
358 static const int kRequestIdFieldNumber = 4;
359 inline ::google::protobuf::uint64 request_id()
const;
360 inline void set_request_id(::google::protobuf::uint64 value);
364 inline void set_has_request_id();
365 inline void clear_has_request_id();
367 ::google::protobuf::UnknownFieldSet _unknown_fields_;
369 ::google::protobuf::uint32 _has_bits_[1];
370 mutable int _cached_size_;
371 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > modem_id_connected_;
372 ::google::protobuf::uint64 request_id_;
373 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
374 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
375 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
377 void InitAsDefaultInstance();
394 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
395 return _unknown_fields_;
398 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
399 return &_unknown_fields_;
402 static const ::google::protobuf::Descriptor* descriptor();
410 void CopyFrom(const ::google::protobuf::Message& from);
411 void MergeFrom(const ::google::protobuf::Message& from);
415 bool IsInitialized()
const;
417 int ByteSize()
const;
418 bool MergePartialFromCodedStream(
419 ::google::protobuf::io::CodedInputStream* input);
420 void SerializeWithCachedSizes(
421 ::google::protobuf::io::CodedOutputStream* output)
const;
422 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
423 int GetCachedSize()
const {
return _cached_size_; }
427 void SetCachedSize(
int size)
const;
429 ::google::protobuf::Metadata GetMetadata()
const;
436 inline bool has_inbox()
const;
437 inline void clear_inbox();
438 static const int kInboxFieldNumber = 2;
439 inline const ::goby::acomms::protobuf::ModemTransmission& inbox()
const;
440 inline ::goby::acomms::protobuf::ModemTransmission* mutable_inbox();
441 inline ::goby::acomms::protobuf::ModemTransmission* release_inbox();
446 inline void set_has_inbox();
447 inline void clear_has_inbox();
449 ::google::protobuf::UnknownFieldSet _unknown_fields_;
451 ::google::protobuf::uint32 _has_bits_[1];
452 mutable int _cached_size_;
454 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
455 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
456 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto();
458 void InitAsDefaultInstance();
469 inline bool MTDataRequest_Command::has_modem_id()
const {
470 return (_has_bits_[0] & 0x00000001u) != 0;
472 inline void MTDataRequest_Command::set_has_modem_id() {
473 _has_bits_[0] |= 0x00000001u;
475 inline void MTDataRequest_Command::clear_has_modem_id() {
476 _has_bits_[0] &= ~0x00000001u;
478 inline void MTDataRequest_Command::clear_modem_id() {
480 clear_has_modem_id();
482 inline ::google::protobuf::int32 MTDataRequest_Command::modem_id()
const {
486 inline void MTDataRequest_Command::set_modem_id(::google::protobuf::int32 value) {
493 inline bool MTDataRequest_Command::has_type()
const {
494 return (_has_bits_[0] & 0x00000002u) != 0;
496 inline void MTDataRequest_Command::set_has_type() {
497 _has_bits_[0] |= 0x00000002u;
499 inline void MTDataRequest_Command::clear_has_type() {
500 _has_bits_[0] &= ~0x00000002u;
502 inline void MTDataRequest_Command::clear_type() {
506 inline ::goby::acomms::protobuf::MTDataRequest_Command_CommandType MTDataRequest_Command::type()
const {
508 return static_cast< ::goby::acomms::protobuf::MTDataRequest_Command_CommandType
>(type_);
510 inline void MTDataRequest_Command::set_type(::goby::acomms::protobuf::MTDataRequest_Command_CommandType value) {
511 assert(::goby::acomms::protobuf::MTDataRequest_Command_CommandType_IsValid(value));
522 inline int MTDataRequest::outbox_size()
const {
523 return outbox_.size();
525 inline void MTDataRequest::clear_outbox() {
528 inline const ::goby::acomms::protobuf::ModemTransmission& MTDataRequest::outbox(
int index)
const {
530 return outbox_.Get(index);
532 inline ::goby::acomms::protobuf::ModemTransmission* MTDataRequest::mutable_outbox(
int index) {
534 return outbox_.Mutable(index);
536 inline ::goby::acomms::protobuf::ModemTransmission* MTDataRequest::add_outbox() {
538 return outbox_.Add();
540 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
541 MTDataRequest::outbox()
const {
545 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
546 MTDataRequest::mutable_outbox() {
552 inline bool MTDataRequest::has_request_id()
const {
553 return (_has_bits_[0] & 0x00000002u) != 0;
555 inline void MTDataRequest::set_has_request_id() {
556 _has_bits_[0] |= 0x00000002u;
558 inline void MTDataRequest::clear_has_request_id() {
559 _has_bits_[0] &= ~0x00000002u;
561 inline void MTDataRequest::clear_request_id() {
562 request_id_ = GOOGLE_ULONGLONG(0);
563 clear_has_request_id();
565 inline ::google::protobuf::uint64 MTDataRequest::request_id()
const {
569 inline void MTDataRequest::set_request_id(::google::protobuf::uint64 value) {
570 set_has_request_id();
576 inline int MTDataRequest::command_size()
const {
577 return command_.size();
579 inline void MTDataRequest::clear_command() {
582 inline const ::goby::acomms::protobuf::MTDataRequest_Command& MTDataRequest::command(
int index)
const {
584 return command_.Get(index);
586 inline ::goby::acomms::protobuf::MTDataRequest_Command* MTDataRequest::mutable_command(
int index) {
588 return command_.Mutable(index);
590 inline ::goby::acomms::protobuf::MTDataRequest_Command* MTDataRequest::add_command() {
592 return command_.Add();
594 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::MTDataRequest_Command >&
595 MTDataRequest::command()
const {
599 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::MTDataRequest_Command >*
600 MTDataRequest::mutable_command() {
610 inline int MTDataResponse::modem_id_connected_size()
const {
611 return modem_id_connected_.size();
613 inline void MTDataResponse::clear_modem_id_connected() {
614 modem_id_connected_.Clear();
616 inline ::google::protobuf::int32 MTDataResponse::modem_id_connected(
int index)
const {
618 return modem_id_connected_.Get(index);
620 inline void MTDataResponse::set_modem_id_connected(
int index, ::google::protobuf::int32 value) {
621 modem_id_connected_.Set(index, value);
624 inline void MTDataResponse::add_modem_id_connected(::google::protobuf::int32 value) {
625 modem_id_connected_.Add(value);
628 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
629 MTDataResponse::modem_id_connected()
const {
631 return modem_id_connected_;
633 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
634 MTDataResponse::mutable_modem_id_connected() {
636 return &modem_id_connected_;
640 inline bool MTDataResponse::has_request_id()
const {
641 return (_has_bits_[0] & 0x00000002u) != 0;
643 inline void MTDataResponse::set_has_request_id() {
644 _has_bits_[0] |= 0x00000002u;
646 inline void MTDataResponse::clear_has_request_id() {
647 _has_bits_[0] &= ~0x00000002u;
649 inline void MTDataResponse::clear_request_id() {
650 request_id_ = GOOGLE_ULONGLONG(0);
651 clear_has_request_id();
653 inline ::google::protobuf::uint64 MTDataResponse::request_id()
const {
657 inline void MTDataResponse::set_request_id(::google::protobuf::uint64 value) {
658 set_has_request_id();
668 inline bool MODataAsyncReceive::has_inbox()
const {
669 return (_has_bits_[0] & 0x00000001u) != 0;
671 inline void MODataAsyncReceive::set_has_inbox() {
672 _has_bits_[0] |= 0x00000001u;
674 inline void MODataAsyncReceive::clear_has_inbox() {
675 _has_bits_[0] &= ~0x00000001u;
677 inline void MODataAsyncReceive::clear_inbox() {
678 if (inbox_ != NULL) inbox_->::goby::acomms::protobuf::ModemTransmission::Clear();
681 inline const ::goby::acomms::protobuf::ModemTransmission& MODataAsyncReceive::inbox()
const {
683 return inbox_ != NULL ? *inbox_ : *default_instance_->inbox_;
685 inline ::goby::acomms::protobuf::ModemTransmission* MODataAsyncReceive::mutable_inbox() {
687 if (inbox_ == NULL) inbox_ = new ::goby::acomms::protobuf::ModemTransmission;
691 inline ::goby::acomms::protobuf::ModemTransmission* MODataAsyncReceive::release_inbox() {
719 template <>
struct is_proto_enum< ::goby::acomms::protobuf::MTDataRequest_Command_CommandType> : ::google::protobuf::internal::true_type {};
721 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MTDataRequest_Command_CommandType>() {
722 return ::goby::acomms::protobuf::MTDataRequest_Command_CommandType_descriptor();
731 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto__INCLUDED
The global namespace for the Goby project.