4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fmodem_5fmessage_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 "dccl/option_extensions.pb.h" 29 #include "goby/common/protobuf/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> 41 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto();
42 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto();
43 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto();
45 class ModemTransmission;
48 enum ModemTransmission_TimeSource {
49 ModemTransmission_TimeSource_MODEM_TIME = 1,
50 ModemTransmission_TimeSource_GOBY_TIME = 2
52 bool ModemTransmission_TimeSource_IsValid(
int value);
53 const ModemTransmission_TimeSource ModemTransmission_TimeSource_TimeSource_MIN = ModemTransmission_TimeSource_MODEM_TIME;
54 const ModemTransmission_TimeSource ModemTransmission_TimeSource_TimeSource_MAX = ModemTransmission_TimeSource_GOBY_TIME;
55 const int ModemTransmission_TimeSource_TimeSource_ARRAYSIZE = ModemTransmission_TimeSource_TimeSource_MAX + 1;
57 const ::google::protobuf::EnumDescriptor* ModemTransmission_TimeSource_descriptor();
58 inline const ::std::string& ModemTransmission_TimeSource_Name(ModemTransmission_TimeSource value) {
59 return ::google::protobuf::internal::NameOfEnum(
60 ModemTransmission_TimeSource_descriptor(), value);
62 inline bool ModemTransmission_TimeSource_Parse(
63 const ::std::string& name, ModemTransmission_TimeSource* value) {
64 return ::google::protobuf::internal::ParseNamedEnum<ModemTransmission_TimeSource>(
65 ModemTransmission_TimeSource_descriptor(), name, value);
67 enum ModemTransmission_TransmissionType {
68 ModemTransmission_TransmissionType_UNKNOWN = 0,
69 ModemTransmission_TransmissionType_DATA = 1,
70 ModemTransmission_TransmissionType_ACK = 2,
71 ModemTransmission_TransmissionType_DRIVER_SPECIFIC = 10
73 bool ModemTransmission_TransmissionType_IsValid(
int value);
74 const ModemTransmission_TransmissionType ModemTransmission_TransmissionType_TransmissionType_MIN = ModemTransmission_TransmissionType_UNKNOWN;
75 const ModemTransmission_TransmissionType ModemTransmission_TransmissionType_TransmissionType_MAX = ModemTransmission_TransmissionType_DRIVER_SPECIFIC;
76 const int ModemTransmission_TransmissionType_TransmissionType_ARRAYSIZE = ModemTransmission_TransmissionType_TransmissionType_MAX + 1;
78 const ::google::protobuf::EnumDescriptor* ModemTransmission_TransmissionType_descriptor();
79 inline const ::std::string& ModemTransmission_TransmissionType_Name(ModemTransmission_TransmissionType value) {
80 return ::google::protobuf::internal::NameOfEnum(
81 ModemTransmission_TransmissionType_descriptor(), value);
83 inline bool ModemTransmission_TransmissionType_Parse(
84 const ::std::string& name, ModemTransmission_TransmissionType* value) {
85 return ::google::protobuf::internal::ParseNamedEnum<ModemTransmission_TransmissionType>(
86 ModemTransmission_TransmissionType_descriptor(), name, value);
102 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
103 return _unknown_fields_;
106 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
107 return &_unknown_fields_;
110 static const ::google::protobuf::Descriptor* descriptor();
118 void CopyFrom(const ::google::protobuf::Message& from);
119 void MergeFrom(const ::google::protobuf::Message& from);
123 bool IsInitialized()
const;
125 int ByteSize()
const;
126 bool MergePartialFromCodedStream(
127 ::google::protobuf::io::CodedInputStream* input);
128 void SerializeWithCachedSizes(
129 ::google::protobuf::io::CodedOutputStream* output)
const;
130 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
131 int GetCachedSize()
const {
return _cached_size_; }
135 void SetCachedSize(
int size)
const;
137 ::google::protobuf::Metadata GetMetadata()
const;
141 typedef ModemTransmission_TimeSource TimeSource;
142 static const TimeSource MODEM_TIME = ModemTransmission_TimeSource_MODEM_TIME;
143 static const TimeSource GOBY_TIME = ModemTransmission_TimeSource_GOBY_TIME;
144 static inline bool TimeSource_IsValid(
int value) {
145 return ModemTransmission_TimeSource_IsValid(value);
147 static const TimeSource TimeSource_MIN =
148 ModemTransmission_TimeSource_TimeSource_MIN;
149 static const TimeSource TimeSource_MAX =
150 ModemTransmission_TimeSource_TimeSource_MAX;
151 static const int TimeSource_ARRAYSIZE =
152 ModemTransmission_TimeSource_TimeSource_ARRAYSIZE;
153 static inline const ::google::protobuf::EnumDescriptor*
154 TimeSource_descriptor() {
155 return ModemTransmission_TimeSource_descriptor();
157 static inline const ::std::string& TimeSource_Name(TimeSource value) {
158 return ModemTransmission_TimeSource_Name(value);
160 static inline bool TimeSource_Parse(const ::std::string& name,
162 return ModemTransmission_TimeSource_Parse(name, value);
165 typedef ModemTransmission_TransmissionType TransmissionType;
166 static const TransmissionType UNKNOWN = ModemTransmission_TransmissionType_UNKNOWN;
167 static const TransmissionType DATA = ModemTransmission_TransmissionType_DATA;
168 static const TransmissionType ACK = ModemTransmission_TransmissionType_ACK;
169 static const TransmissionType DRIVER_SPECIFIC = ModemTransmission_TransmissionType_DRIVER_SPECIFIC;
170 static inline bool TransmissionType_IsValid(
int value) {
171 return ModemTransmission_TransmissionType_IsValid(value);
173 static const TransmissionType TransmissionType_MIN =
174 ModemTransmission_TransmissionType_TransmissionType_MIN;
175 static const TransmissionType TransmissionType_MAX =
176 ModemTransmission_TransmissionType_TransmissionType_MAX;
177 static const int TransmissionType_ARRAYSIZE =
178 ModemTransmission_TransmissionType_TransmissionType_ARRAYSIZE;
179 static inline const ::google::protobuf::EnumDescriptor*
180 TransmissionType_descriptor() {
181 return ModemTransmission_TransmissionType_descriptor();
183 static inline const ::std::string& TransmissionType_Name(TransmissionType value) {
184 return ModemTransmission_TransmissionType_Name(value);
186 static inline bool TransmissionType_Parse(const ::std::string& name,
187 TransmissionType* value) {
188 return ModemTransmission_TransmissionType_Parse(name, value);
194 inline bool has_src()
const;
195 inline void clear_src();
196 static const int kSrcFieldNumber = 1;
197 inline ::google::protobuf::int32 src()
const;
198 inline void set_src(::google::protobuf::int32 value);
201 inline bool has_dest()
const;
202 inline void clear_dest();
203 static const int kDestFieldNumber = 2;
204 inline ::google::protobuf::int32 dest()
const;
205 inline void set_dest(::google::protobuf::int32 value);
208 inline bool has_time()
const;
209 inline void clear_time();
210 static const int kTimeFieldNumber = 3;
211 inline ::google::protobuf::uint64 time()
const;
212 inline void set_time(::google::protobuf::uint64 value);
215 inline bool has_time_source()
const;
216 inline void clear_time_source();
217 static const int kTimeSourceFieldNumber = 5;
218 inline ::goby::acomms::protobuf::ModemTransmission_TimeSource time_source()
const;
219 inline void set_time_source(::goby::acomms::protobuf::ModemTransmission_TimeSource value);
222 inline bool has_rate()
const;
223 inline void clear_rate();
224 static const int kRateFieldNumber = 6;
225 inline ::google::protobuf::int32 rate()
const;
226 inline void set_rate(::google::protobuf::int32 value);
229 inline bool has_type()
const;
230 inline void clear_type();
231 static const int kTypeFieldNumber = 7;
232 inline ::goby::acomms::protobuf::ModemTransmission_TransmissionType type()
const;
233 inline void set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value);
236 inline bool has_max_num_frames()
const;
237 inline void clear_max_num_frames();
238 static const int kMaxNumFramesFieldNumber = 11;
239 inline ::google::protobuf::uint32 max_num_frames()
const;
240 inline void set_max_num_frames(::google::protobuf::uint32 value);
243 inline bool has_max_frame_bytes()
const;
244 inline void clear_max_frame_bytes();
245 static const int kMaxFrameBytesFieldNumber = 12;
246 inline ::google::protobuf::uint32 max_frame_bytes()
const;
247 inline void set_max_frame_bytes(::google::protobuf::uint32 value);
250 inline bool has_ack_requested()
const;
251 inline void clear_ack_requested();
252 static const int kAckRequestedFieldNumber = 13;
253 inline bool ack_requested()
const;
254 inline void set_ack_requested(
bool value);
257 inline int frame_size()
const;
258 inline void clear_frame();
259 static const int kFrameFieldNumber = 14;
260 inline const ::std::string& frame(
int index)
const;
261 inline ::std::string* mutable_frame(
int index);
262 inline void set_frame(
int index, const ::std::string& value);
263 inline void set_frame(
int index,
const char* value);
264 inline void set_frame(
int index,
const void* value,
size_t size);
265 inline ::std::string* add_frame();
266 inline void add_frame(const ::std::string& value);
267 inline void add_frame(
const char* value);
268 inline void add_frame(
const void* value,
size_t size);
269 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& frame()
const;
270 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_frame();
273 inline bool has_frame_start()
const;
274 inline void clear_frame_start();
275 static const int kFrameStartFieldNumber = 15;
276 inline ::google::protobuf::uint32 frame_start()
const;
277 inline void set_frame_start(::google::protobuf::uint32 value);
280 inline int acked_frame_size()
const;
281 inline void clear_acked_frame();
282 static const int kAckedFrameFieldNumber = 20;
283 inline ::google::protobuf::int32 acked_frame(
int index)
const;
284 inline void set_acked_frame(
int index, ::google::protobuf::int32 value);
285 inline void add_acked_frame(::google::protobuf::int32 value);
286 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
288 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
289 mutable_acked_frame();
292 inline bool has_slot_seconds()
const;
293 inline void clear_slot_seconds();
294 static const int kSlotSecondsFieldNumber = 30;
295 inline double slot_seconds()
const;
296 inline void set_slot_seconds(
double value);
299 inline bool has_unique_id()
const;
300 inline void clear_unique_id();
301 static const int kUniqueIdFieldNumber = 31;
302 inline ::google::protobuf::uint32 unique_id()
const;
303 inline void set_unique_id(::google::protobuf::uint32 value);
306 inline bool has_always_initiate()
const;
307 inline void clear_always_initiate();
308 static const int kAlwaysInitiateFieldNumber = 32;
309 inline bool always_initiate()
const;
310 inline void set_always_initiate(
bool value);
313 inline bool has_slot_index()
const;
314 inline void clear_slot_index();
315 static const int kSlotIndexFieldNumber = 33;
316 inline ::google::protobuf::int32 slot_index()
const;
317 inline void set_slot_index(::google::protobuf::int32 value);
322 inline void set_has_src();
323 inline void clear_has_src();
324 inline void set_has_dest();
325 inline void clear_has_dest();
326 inline void set_has_time();
327 inline void clear_has_time();
328 inline void set_has_time_source();
329 inline void clear_has_time_source();
330 inline void set_has_rate();
331 inline void clear_has_rate();
332 inline void set_has_type();
333 inline void clear_has_type();
334 inline void set_has_max_num_frames();
335 inline void clear_has_max_num_frames();
336 inline void set_has_max_frame_bytes();
337 inline void clear_has_max_frame_bytes();
338 inline void set_has_ack_requested();
339 inline void clear_has_ack_requested();
340 inline void set_has_frame_start();
341 inline void clear_has_frame_start();
342 inline void set_has_slot_seconds();
343 inline void clear_has_slot_seconds();
344 inline void set_has_unique_id();
345 inline void clear_has_unique_id();
346 inline void set_has_always_initiate();
347 inline void clear_has_always_initiate();
348 inline void set_has_slot_index();
349 inline void clear_has_slot_index();
351 ::google::protobuf::internal::ExtensionSet _extensions_;
353 ::google::protobuf::UnknownFieldSet _unknown_fields_;
355 ::google::protobuf::uint32 _has_bits_[1];
356 mutable int _cached_size_;
357 ::google::protobuf::int32 src_;
358 ::google::protobuf::int32 dest_;
359 ::google::protobuf::uint64 time_;
361 ::google::protobuf::int32 rate_;
363 ::google::protobuf::uint32 max_num_frames_;
364 ::google::protobuf::uint32 max_frame_bytes_;
365 ::google::protobuf::uint32 frame_start_;
366 ::google::protobuf::RepeatedPtrField< ::std::string> frame_;
367 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > acked_frame_;
369 bool always_initiate_;
370 ::google::protobuf::uint32 unique_id_;
371 double slot_seconds_;
372 ::google::protobuf::int32 slot_index_;
373 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto();
374 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto();
375 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto();
377 void InitAsDefaultInstance();
382 class ModemRaw :
public ::google::protobuf::Message {
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();
403 static const ModemRaw& default_instance();
410 void CopyFrom(const ::google::protobuf::Message& from);
411 void MergeFrom(const ::google::protobuf::Message& from);
412 void CopyFrom(
const ModemRaw& from);
413 void MergeFrom(
const ModemRaw& 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_raw()
const;
437 inline void clear_raw();
438 static const int kRawFieldNumber = 7;
439 inline const ::std::string& raw()
const;
440 inline void set_raw(const ::std::string& value);
441 inline void set_raw(
const char* value);
442 inline void set_raw(
const char* value,
size_t size);
443 inline ::std::string* mutable_raw();
444 inline ::std::string* release_raw();
445 inline void set_allocated_raw(::std::string* raw);
448 inline bool has_description()
const;
449 inline void clear_description();
450 static const int kDescriptionFieldNumber = 8;
451 inline const ::std::string& description()
const;
452 inline void set_description(const ::std::string& value);
453 inline void set_description(
const char* value);
454 inline void set_description(
const char* value,
size_t size);
455 inline ::std::string* mutable_description();
456 inline ::std::string* release_description();
457 inline void set_allocated_description(::std::string* description);
461 inline void set_has_raw();
462 inline void clear_has_raw();
463 inline void set_has_description();
464 inline void clear_has_description();
466 ::google::protobuf::UnknownFieldSet _unknown_fields_;
468 ::google::protobuf::uint32 _has_bits_[1];
469 mutable int _cached_size_;
471 ::std::string* description_;
472 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto();
473 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto();
474 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto();
476 void InitAsDefaultInstance();
487 inline bool ModemTransmission::has_src()
const {
488 return (_has_bits_[0] & 0x00000001u) != 0;
490 inline void ModemTransmission::set_has_src() {
491 _has_bits_[0] |= 0x00000001u;
493 inline void ModemTransmission::clear_has_src() {
494 _has_bits_[0] &= ~0x00000001u;
496 inline void ModemTransmission::clear_src() {
500 inline ::google::protobuf::int32 ModemTransmission::src()
const {
504 inline void ModemTransmission::set_src(::google::protobuf::int32 value) {
511 inline bool ModemTransmission::has_dest()
const {
512 return (_has_bits_[0] & 0x00000002u) != 0;
514 inline void ModemTransmission::set_has_dest() {
515 _has_bits_[0] |= 0x00000002u;
517 inline void ModemTransmission::clear_has_dest() {
518 _has_bits_[0] &= ~0x00000002u;
520 inline void ModemTransmission::clear_dest() {
524 inline ::google::protobuf::int32 ModemTransmission::dest()
const {
528 inline void ModemTransmission::set_dest(::google::protobuf::int32 value) {
535 inline bool ModemTransmission::has_time()
const {
536 return (_has_bits_[0] & 0x00000004u) != 0;
538 inline void ModemTransmission::set_has_time() {
539 _has_bits_[0] |= 0x00000004u;
541 inline void ModemTransmission::clear_has_time() {
542 _has_bits_[0] &= ~0x00000004u;
544 inline void ModemTransmission::clear_time() {
545 time_ = GOOGLE_ULONGLONG(0);
548 inline ::google::protobuf::uint64 ModemTransmission::time()
const {
552 inline void ModemTransmission::set_time(::google::protobuf::uint64 value) {
559 inline bool ModemTransmission::has_time_source()
const {
560 return (_has_bits_[0] & 0x00000008u) != 0;
562 inline void ModemTransmission::set_has_time_source() {
563 _has_bits_[0] |= 0x00000008u;
565 inline void ModemTransmission::clear_has_time_source() {
566 _has_bits_[0] &= ~0x00000008u;
568 inline void ModemTransmission::clear_time_source() {
570 clear_has_time_source();
572 inline ::goby::acomms::protobuf::ModemTransmission_TimeSource ModemTransmission::time_source()
const {
574 return static_cast< ::goby::acomms::protobuf::ModemTransmission_TimeSource
>(time_source_);
576 inline void ModemTransmission::set_time_source(::goby::acomms::protobuf::ModemTransmission_TimeSource value) {
577 assert(::goby::acomms::protobuf::ModemTransmission_TimeSource_IsValid(value));
578 set_has_time_source();
579 time_source_ = value;
584 inline bool ModemTransmission::has_rate()
const {
585 return (_has_bits_[0] & 0x00000010u) != 0;
587 inline void ModemTransmission::set_has_rate() {
588 _has_bits_[0] |= 0x00000010u;
590 inline void ModemTransmission::clear_has_rate() {
591 _has_bits_[0] &= ~0x00000010u;
593 inline void ModemTransmission::clear_rate() {
597 inline ::google::protobuf::int32 ModemTransmission::rate()
const {
601 inline void ModemTransmission::set_rate(::google::protobuf::int32 value) {
608 inline bool ModemTransmission::has_type()
const {
609 return (_has_bits_[0] & 0x00000020u) != 0;
611 inline void ModemTransmission::set_has_type() {
612 _has_bits_[0] |= 0x00000020u;
614 inline void ModemTransmission::clear_has_type() {
615 _has_bits_[0] &= ~0x00000020u;
617 inline void ModemTransmission::clear_type() {
621 inline ::goby::acomms::protobuf::ModemTransmission_TransmissionType ModemTransmission::type()
const {
623 return static_cast< ::goby::acomms::protobuf::ModemTransmission_TransmissionType
>(type_);
625 inline void ModemTransmission::set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value) {
626 assert(::goby::acomms::protobuf::ModemTransmission_TransmissionType_IsValid(value));
633 inline bool ModemTransmission::has_max_num_frames()
const {
634 return (_has_bits_[0] & 0x00000040u) != 0;
636 inline void ModemTransmission::set_has_max_num_frames() {
637 _has_bits_[0] |= 0x00000040u;
639 inline void ModemTransmission::clear_has_max_num_frames() {
640 _has_bits_[0] &= ~0x00000040u;
642 inline void ModemTransmission::clear_max_num_frames() {
643 max_num_frames_ = 1u;
644 clear_has_max_num_frames();
646 inline ::google::protobuf::uint32 ModemTransmission::max_num_frames()
const {
648 return max_num_frames_;
650 inline void ModemTransmission::set_max_num_frames(::google::protobuf::uint32 value) {
651 set_has_max_num_frames();
652 max_num_frames_ = value;
657 inline bool ModemTransmission::has_max_frame_bytes()
const {
658 return (_has_bits_[0] & 0x00000080u) != 0;
660 inline void ModemTransmission::set_has_max_frame_bytes() {
661 _has_bits_[0] |= 0x00000080u;
663 inline void ModemTransmission::clear_has_max_frame_bytes() {
664 _has_bits_[0] &= ~0x00000080u;
666 inline void ModemTransmission::clear_max_frame_bytes() {
667 max_frame_bytes_ = 0u;
668 clear_has_max_frame_bytes();
670 inline ::google::protobuf::uint32 ModemTransmission::max_frame_bytes()
const {
672 return max_frame_bytes_;
674 inline void ModemTransmission::set_max_frame_bytes(::google::protobuf::uint32 value) {
675 set_has_max_frame_bytes();
676 max_frame_bytes_ = value;
681 inline bool ModemTransmission::has_ack_requested()
const {
682 return (_has_bits_[0] & 0x00000100u) != 0;
684 inline void ModemTransmission::set_has_ack_requested() {
685 _has_bits_[0] |= 0x00000100u;
687 inline void ModemTransmission::clear_has_ack_requested() {
688 _has_bits_[0] &= ~0x00000100u;
690 inline void ModemTransmission::clear_ack_requested() {
691 ack_requested_ =
true;
692 clear_has_ack_requested();
694 inline bool ModemTransmission::ack_requested()
const {
696 return ack_requested_;
698 inline void ModemTransmission::set_ack_requested(
bool value) {
699 set_has_ack_requested();
700 ack_requested_ = value;
705 inline int ModemTransmission::frame_size()
const {
706 return frame_.size();
708 inline void ModemTransmission::clear_frame() {
711 inline const ::std::string& ModemTransmission::frame(
int index)
const {
713 return frame_.Get(index);
715 inline ::std::string* ModemTransmission::mutable_frame(
int index) {
717 return frame_.Mutable(index);
719 inline void ModemTransmission::set_frame(
int index, const ::std::string& value) {
721 frame_.Mutable(index)->assign(value);
723 inline void ModemTransmission::set_frame(
int index,
const char* value) {
724 frame_.Mutable(index)->assign(value);
727 inline void ModemTransmission::set_frame(
int index,
const void* value,
size_t size) {
728 frame_.Mutable(index)->assign(
729 reinterpret_cast<const char*>(value), size);
732 inline ::std::string* ModemTransmission::add_frame() {
735 inline void ModemTransmission::add_frame(const ::std::string& value) {
736 frame_.Add()->assign(value);
739 inline void ModemTransmission::add_frame(
const char* value) {
740 frame_.Add()->assign(value);
743 inline void ModemTransmission::add_frame(
const void* value,
size_t size) {
744 frame_.Add()->assign(reinterpret_cast<const char*>(value), size);
747 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
748 ModemTransmission::frame()
const {
752 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
753 ModemTransmission::mutable_frame() {
759 inline bool ModemTransmission::has_frame_start()
const {
760 return (_has_bits_[0] & 0x00000400u) != 0;
762 inline void ModemTransmission::set_has_frame_start() {
763 _has_bits_[0] |= 0x00000400u;
765 inline void ModemTransmission::clear_has_frame_start() {
766 _has_bits_[0] &= ~0x00000400u;
768 inline void ModemTransmission::clear_frame_start() {
770 clear_has_frame_start();
772 inline ::google::protobuf::uint32 ModemTransmission::frame_start()
const {
776 inline void ModemTransmission::set_frame_start(::google::protobuf::uint32 value) {
777 set_has_frame_start();
778 frame_start_ = value;
783 inline int ModemTransmission::acked_frame_size()
const {
784 return acked_frame_.size();
786 inline void ModemTransmission::clear_acked_frame() {
787 acked_frame_.Clear();
789 inline ::google::protobuf::int32 ModemTransmission::acked_frame(
int index)
const {
791 return acked_frame_.Get(index);
793 inline void ModemTransmission::set_acked_frame(
int index, ::google::protobuf::int32 value) {
794 acked_frame_.Set(index, value);
797 inline void ModemTransmission::add_acked_frame(::google::protobuf::int32 value) {
798 acked_frame_.Add(value);
801 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
802 ModemTransmission::acked_frame()
const {
806 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
807 ModemTransmission::mutable_acked_frame() {
809 return &acked_frame_;
813 inline bool ModemTransmission::has_slot_seconds()
const {
814 return (_has_bits_[0] & 0x00001000u) != 0;
816 inline void ModemTransmission::set_has_slot_seconds() {
817 _has_bits_[0] |= 0x00001000u;
819 inline void ModemTransmission::clear_has_slot_seconds() {
820 _has_bits_[0] &= ~0x00001000u;
822 inline void ModemTransmission::clear_slot_seconds() {
824 clear_has_slot_seconds();
826 inline double ModemTransmission::slot_seconds()
const {
828 return slot_seconds_;
830 inline void ModemTransmission::set_slot_seconds(
double value) {
831 set_has_slot_seconds();
832 slot_seconds_ = value;
837 inline bool ModemTransmission::has_unique_id()
const {
838 return (_has_bits_[0] & 0x00002000u) != 0;
840 inline void ModemTransmission::set_has_unique_id() {
841 _has_bits_[0] |= 0x00002000u;
843 inline void ModemTransmission::clear_has_unique_id() {
844 _has_bits_[0] &= ~0x00002000u;
846 inline void ModemTransmission::clear_unique_id() {
848 clear_has_unique_id();
850 inline ::google::protobuf::uint32 ModemTransmission::unique_id()
const {
854 inline void ModemTransmission::set_unique_id(::google::protobuf::uint32 value) {
861 inline bool ModemTransmission::has_always_initiate()
const {
862 return (_has_bits_[0] & 0x00004000u) != 0;
864 inline void ModemTransmission::set_has_always_initiate() {
865 _has_bits_[0] |= 0x00004000u;
867 inline void ModemTransmission::clear_has_always_initiate() {
868 _has_bits_[0] &= ~0x00004000u;
870 inline void ModemTransmission::clear_always_initiate() {
871 always_initiate_ =
false;
872 clear_has_always_initiate();
874 inline bool ModemTransmission::always_initiate()
const {
876 return always_initiate_;
878 inline void ModemTransmission::set_always_initiate(
bool value) {
879 set_has_always_initiate();
880 always_initiate_ = value;
885 inline bool ModemTransmission::has_slot_index()
const {
886 return (_has_bits_[0] & 0x00008000u) != 0;
888 inline void ModemTransmission::set_has_slot_index() {
889 _has_bits_[0] |= 0x00008000u;
891 inline void ModemTransmission::clear_has_slot_index() {
892 _has_bits_[0] &= ~0x00008000u;
894 inline void ModemTransmission::clear_slot_index() {
896 clear_has_slot_index();
898 inline ::google::protobuf::int32 ModemTransmission::slot_index()
const {
902 inline void ModemTransmission::set_slot_index(::google::protobuf::int32 value) {
903 set_has_slot_index();
913 inline bool ModemRaw::has_raw()
const {
914 return (_has_bits_[0] & 0x00000001u) != 0;
916 inline void ModemRaw::set_has_raw() {
917 _has_bits_[0] |= 0x00000001u;
919 inline void ModemRaw::clear_has_raw() {
920 _has_bits_[0] &= ~0x00000001u;
922 inline void ModemRaw::clear_raw() {
923 if (raw_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
928 inline const ::std::string& ModemRaw::raw()
const {
932 inline void ModemRaw::set_raw(const ::std::string& value) {
934 if (raw_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
935 raw_ = new ::std::string;
940 inline void ModemRaw::set_raw(
const char* value) {
942 if (raw_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
943 raw_ = new ::std::string;
948 inline void ModemRaw::set_raw(
const char* value,
size_t size) {
950 if (raw_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
951 raw_ = new ::std::string;
953 raw_->assign(reinterpret_cast<const char*>(value), size);
956 inline ::std::string* ModemRaw::mutable_raw() {
958 if (raw_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
959 raw_ = new ::std::string;
964 inline ::std::string* ModemRaw::release_raw() {
966 if (raw_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
969 ::std::string* temp = raw_;
970 raw_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
974 inline void ModemRaw::set_allocated_raw(::std::string* raw) {
975 if (raw_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
983 raw_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
989 inline bool ModemRaw::has_description()
const {
990 return (_has_bits_[0] & 0x00000002u) != 0;
992 inline void ModemRaw::set_has_description() {
993 _has_bits_[0] |= 0x00000002u;
995 inline void ModemRaw::clear_has_description() {
996 _has_bits_[0] &= ~0x00000002u;
998 inline void ModemRaw::clear_description() {
999 if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1000 description_->clear();
1002 clear_has_description();
1004 inline const ::std::string& ModemRaw::description()
const {
1006 return *description_;
1008 inline void ModemRaw::set_description(const ::std::string& value) {
1009 set_has_description();
1010 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1011 description_ = new ::std::string;
1013 description_->assign(value);
1016 inline void ModemRaw::set_description(
const char* value) {
1017 set_has_description();
1018 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1019 description_ = new ::std::string;
1021 description_->assign(value);
1024 inline void ModemRaw::set_description(
const char* value,
size_t size) {
1025 set_has_description();
1026 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1027 description_ = new ::std::string;
1029 description_->assign(reinterpret_cast<const char*>(value), size);
1032 inline ::std::string* ModemRaw::mutable_description() {
1033 set_has_description();
1034 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1035 description_ = new ::std::string;
1038 return description_;
1040 inline ::std::string* ModemRaw::release_description() {
1041 clear_has_description();
1042 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1045 ::std::string* temp = description_;
1046 description_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1050 inline void ModemRaw::set_allocated_description(::std::string* description) {
1051 if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1052 delete description_;
1055 set_has_description();
1056 description_ = description;
1058 clear_has_description();
1059 description_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1073 namespace protobuf {
1075 template <>
struct is_proto_enum< ::goby::acomms::protobuf::ModemTransmission_TimeSource> : ::google::protobuf::internal::true_type {};
1077 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::ModemTransmission_TimeSource>() {
1078 return ::goby::acomms::protobuf::ModemTransmission_TimeSource_descriptor();
1080 template <>
struct is_proto_enum< ::goby::acomms::protobuf::ModemTransmission_TransmissionType> : ::google::protobuf::internal::true_type {};
1082 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::ModemTransmission_TransmissionType>() {
1083 return ::goby::acomms::protobuf::ModemTransmission_TransmissionType_descriptor();
1092 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto__INCLUDED
The global namespace for the Goby project.