Goby v2
rudics_shore.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/rudics_shore.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2frudics_5fshore_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/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>
33 // @@protoc_insertion_point(includes)
34 
35 namespace goby {
36 namespace acomms {
37 namespace protobuf {
38 
39 // Internal implementation detail -- do not call these.
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();
43 
44 class MTDataRequest;
45 class MTDataRequest_Command;
46 class MTDataResponse;
47 class MODataAsyncReceive;
48 
49 enum MTDataRequest_Command_CommandType {
50  MTDataRequest_Command_CommandType_SEND_BYE = 1,
51  MTDataRequest_Command_CommandType_HANGUP = 2
52 };
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;
57 
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);
62 }
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);
67 }
68 // ===================================================================
69 
70 class MTDataRequest_Command : public ::google::protobuf::Message {
71  public:
73  virtual ~MTDataRequest_Command();
74 
76 
77  inline MTDataRequest_Command& operator=(const MTDataRequest_Command& from) {
78  CopyFrom(from);
79  return *this;
80  }
81 
82  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
83  return _unknown_fields_;
84  }
85 
86  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
87  return &_unknown_fields_;
88  }
89 
90  static const ::google::protobuf::Descriptor* descriptor();
91  static const MTDataRequest_Command& default_instance();
92 
93  void Swap(MTDataRequest_Command* other);
94 
95  // implements Message ----------------------------------------------
96 
97  MTDataRequest_Command* New() const;
98  void CopyFrom(const ::google::protobuf::Message& from);
99  void MergeFrom(const ::google::protobuf::Message& from);
100  void CopyFrom(const MTDataRequest_Command& from);
101  void MergeFrom(const MTDataRequest_Command& from);
102  void Clear();
103  bool IsInitialized() const;
104 
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_; }
112  private:
113  void SharedCtor();
114  void SharedDtor();
115  void SetCachedSize(int size) const;
116  public:
117  ::google::protobuf::Metadata GetMetadata() const;
118 
119  // nested types ----------------------------------------------------
120 
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);
126  }
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();
136  }
137  static inline const ::std::string& CommandType_Name(CommandType value) {
138  return MTDataRequest_Command_CommandType_Name(value);
139  }
140  static inline bool CommandType_Parse(const ::std::string& name,
141  CommandType* value) {
142  return MTDataRequest_Command_CommandType_Parse(name, value);
143  }
144 
145  // accessors -------------------------------------------------------
146 
147  // required int32 modem_id = 1;
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);
153 
154  // required .goby.acomms.protobuf.MTDataRequest.Command.CommandType type = 2;
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);
160 
161  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MTDataRequest.Command)
162  private:
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();
167 
168  ::google::protobuf::UnknownFieldSet _unknown_fields_;
169 
170  ::google::protobuf::uint32 _has_bits_[1];
171  mutable int _cached_size_;
172  ::google::protobuf::int32 modem_id_;
173  int type_;
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();
177 
178  void InitAsDefaultInstance();
179  static MTDataRequest_Command* default_instance_;
180 };
181 // -------------------------------------------------------------------
182 
183 class MTDataRequest : public ::google::protobuf::Message {
184  public:
185  MTDataRequest();
186  virtual ~MTDataRequest();
187 
188  MTDataRequest(const MTDataRequest& from);
189 
190  inline MTDataRequest& operator=(const MTDataRequest& from) {
191  CopyFrom(from);
192  return *this;
193  }
194 
195  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
196  return _unknown_fields_;
197  }
198 
199  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
200  return &_unknown_fields_;
201  }
202 
203  static const ::google::protobuf::Descriptor* descriptor();
204  static const MTDataRequest& default_instance();
205 
206  void Swap(MTDataRequest* other);
207 
208  // implements Message ----------------------------------------------
209 
210  MTDataRequest* New() const;
211  void CopyFrom(const ::google::protobuf::Message& from);
212  void MergeFrom(const ::google::protobuf::Message& from);
213  void CopyFrom(const MTDataRequest& from);
214  void MergeFrom(const MTDataRequest& from);
215  void Clear();
216  bool IsInitialized() const;
217 
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_; }
225  private:
226  void SharedCtor();
227  void SharedDtor();
228  void SetCachedSize(int size) const;
229  public:
230  ::google::protobuf::Metadata GetMetadata() const;
231 
232  // nested types ----------------------------------------------------
233 
235 
236  // accessors -------------------------------------------------------
237 
238  // repeated .goby.acomms.protobuf.ModemTransmission outbox = 2;
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 >&
246  outbox() const;
247  inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
248  mutable_outbox();
249 
250  // optional uint64 request_id = 3;
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);
256 
257  // repeated .goby.acomms.protobuf.MTDataRequest.Command command = 4;
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 >&
265  command() const;
266  inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::MTDataRequest_Command >*
267  mutable_command();
268 
269  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MTDataRequest)
270  private:
271  inline void set_has_request_id();
272  inline void clear_has_request_id();
273 
274  ::google::protobuf::UnknownFieldSet _unknown_fields_;
275 
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();
284 
285  void InitAsDefaultInstance();
286  static MTDataRequest* default_instance_;
287 };
288 // -------------------------------------------------------------------
289 
290 class MTDataResponse : public ::google::protobuf::Message {
291  public:
292  MTDataResponse();
293  virtual ~MTDataResponse();
294 
295  MTDataResponse(const MTDataResponse& from);
296 
297  inline MTDataResponse& operator=(const MTDataResponse& from) {
298  CopyFrom(from);
299  return *this;
300  }
301 
302  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
303  return _unknown_fields_;
304  }
305 
306  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
307  return &_unknown_fields_;
308  }
309 
310  static const ::google::protobuf::Descriptor* descriptor();
311  static const MTDataResponse& default_instance();
312 
313  void Swap(MTDataResponse* other);
314 
315  // implements Message ----------------------------------------------
316 
317  MTDataResponse* New() const;
318  void CopyFrom(const ::google::protobuf::Message& from);
319  void MergeFrom(const ::google::protobuf::Message& from);
320  void CopyFrom(const MTDataResponse& from);
321  void MergeFrom(const MTDataResponse& from);
322  void Clear();
323  bool IsInitialized() const;
324 
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_; }
332  private:
333  void SharedCtor();
334  void SharedDtor();
335  void SetCachedSize(int size) const;
336  public:
337  ::google::protobuf::Metadata GetMetadata() const;
338 
339  // nested types ----------------------------------------------------
340 
341  // accessors -------------------------------------------------------
342 
343  // repeated int32 modem_id_connected = 1;
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();
354 
355  // optional uint64 request_id = 4;
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);
361 
362  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MTDataResponse)
363  private:
364  inline void set_has_request_id();
365  inline void clear_has_request_id();
366 
367  ::google::protobuf::UnknownFieldSet _unknown_fields_;
368 
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();
376 
377  void InitAsDefaultInstance();
378  static MTDataResponse* default_instance_;
379 };
380 // -------------------------------------------------------------------
381 
382 class MODataAsyncReceive : public ::google::protobuf::Message {
383  public:
385  virtual ~MODataAsyncReceive();
386 
388 
389  inline MODataAsyncReceive& operator=(const MODataAsyncReceive& from) {
390  CopyFrom(from);
391  return *this;
392  }
393 
394  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
395  return _unknown_fields_;
396  }
397 
398  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
399  return &_unknown_fields_;
400  }
401 
402  static const ::google::protobuf::Descriptor* descriptor();
403  static const MODataAsyncReceive& default_instance();
404 
405  void Swap(MODataAsyncReceive* other);
406 
407  // implements Message ----------------------------------------------
408 
409  MODataAsyncReceive* New() const;
410  void CopyFrom(const ::google::protobuf::Message& from);
411  void MergeFrom(const ::google::protobuf::Message& from);
412  void CopyFrom(const MODataAsyncReceive& from);
413  void MergeFrom(const MODataAsyncReceive& from);
414  void Clear();
415  bool IsInitialized() const;
416 
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_; }
424  private:
425  void SharedCtor();
426  void SharedDtor();
427  void SetCachedSize(int size) const;
428  public:
429  ::google::protobuf::Metadata GetMetadata() const;
430 
431  // nested types ----------------------------------------------------
432 
433  // accessors -------------------------------------------------------
434 
435  // required .goby.acomms.protobuf.ModemTransmission inbox = 2;
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();
442  inline void set_allocated_inbox(::goby::acomms::protobuf::ModemTransmission* inbox);
443 
444  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MODataAsyncReceive)
445  private:
446  inline void set_has_inbox();
447  inline void clear_has_inbox();
448 
449  ::google::protobuf::UnknownFieldSet _unknown_fields_;
450 
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();
457 
458  void InitAsDefaultInstance();
459  static MODataAsyncReceive* default_instance_;
460 };
461 // ===================================================================
462 
463 
464 // ===================================================================
465 
466 // MTDataRequest_Command
467 
468 // required int32 modem_id = 1;
469 inline bool MTDataRequest_Command::has_modem_id() const {
470  return (_has_bits_[0] & 0x00000001u) != 0;
471 }
472 inline void MTDataRequest_Command::set_has_modem_id() {
473  _has_bits_[0] |= 0x00000001u;
474 }
475 inline void MTDataRequest_Command::clear_has_modem_id() {
476  _has_bits_[0] &= ~0x00000001u;
477 }
478 inline void MTDataRequest_Command::clear_modem_id() {
479  modem_id_ = 0;
480  clear_has_modem_id();
481 }
482 inline ::google::protobuf::int32 MTDataRequest_Command::modem_id() const {
483  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MTDataRequest.Command.modem_id)
484  return modem_id_;
485 }
486 inline void MTDataRequest_Command::set_modem_id(::google::protobuf::int32 value) {
487  set_has_modem_id();
488  modem_id_ = value;
489  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MTDataRequest.Command.modem_id)
490 }
491 
492 // required .goby.acomms.protobuf.MTDataRequest.Command.CommandType type = 2;
493 inline bool MTDataRequest_Command::has_type() const {
494  return (_has_bits_[0] & 0x00000002u) != 0;
495 }
496 inline void MTDataRequest_Command::set_has_type() {
497  _has_bits_[0] |= 0x00000002u;
498 }
499 inline void MTDataRequest_Command::clear_has_type() {
500  _has_bits_[0] &= ~0x00000002u;
501 }
502 inline void MTDataRequest_Command::clear_type() {
503  type_ = 1;
504  clear_has_type();
505 }
506 inline ::goby::acomms::protobuf::MTDataRequest_Command_CommandType MTDataRequest_Command::type() const {
507  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MTDataRequest.Command.type)
508  return static_cast< ::goby::acomms::protobuf::MTDataRequest_Command_CommandType >(type_);
509 }
510 inline void MTDataRequest_Command::set_type(::goby::acomms::protobuf::MTDataRequest_Command_CommandType value) {
511  assert(::goby::acomms::protobuf::MTDataRequest_Command_CommandType_IsValid(value));
512  set_has_type();
513  type_ = value;
514  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MTDataRequest.Command.type)
515 }
516 
517 // -------------------------------------------------------------------
518 
519 // MTDataRequest
520 
521 // repeated .goby.acomms.protobuf.ModemTransmission outbox = 2;
522 inline int MTDataRequest::outbox_size() const {
523  return outbox_.size();
524 }
525 inline void MTDataRequest::clear_outbox() {
526  outbox_.Clear();
527 }
528 inline const ::goby::acomms::protobuf::ModemTransmission& MTDataRequest::outbox(int index) const {
529  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MTDataRequest.outbox)
530  return outbox_.Get(index);
531 }
532 inline ::goby::acomms::protobuf::ModemTransmission* MTDataRequest::mutable_outbox(int index) {
533  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MTDataRequest.outbox)
534  return outbox_.Mutable(index);
535 }
536 inline ::goby::acomms::protobuf::ModemTransmission* MTDataRequest::add_outbox() {
537  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.MTDataRequest.outbox)
538  return outbox_.Add();
539 }
540 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
541 MTDataRequest::outbox() const {
542  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.MTDataRequest.outbox)
543  return outbox_;
544 }
545 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
546 MTDataRequest::mutable_outbox() {
547  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.MTDataRequest.outbox)
548  return &outbox_;
549 }
550 
551 // optional uint64 request_id = 3;
552 inline bool MTDataRequest::has_request_id() const {
553  return (_has_bits_[0] & 0x00000002u) != 0;
554 }
555 inline void MTDataRequest::set_has_request_id() {
556  _has_bits_[0] |= 0x00000002u;
557 }
558 inline void MTDataRequest::clear_has_request_id() {
559  _has_bits_[0] &= ~0x00000002u;
560 }
561 inline void MTDataRequest::clear_request_id() {
562  request_id_ = GOOGLE_ULONGLONG(0);
563  clear_has_request_id();
564 }
565 inline ::google::protobuf::uint64 MTDataRequest::request_id() const {
566  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MTDataRequest.request_id)
567  return request_id_;
568 }
569 inline void MTDataRequest::set_request_id(::google::protobuf::uint64 value) {
570  set_has_request_id();
571  request_id_ = value;
572  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MTDataRequest.request_id)
573 }
574 
575 // repeated .goby.acomms.protobuf.MTDataRequest.Command command = 4;
576 inline int MTDataRequest::command_size() const {
577  return command_.size();
578 }
579 inline void MTDataRequest::clear_command() {
580  command_.Clear();
581 }
582 inline const ::goby::acomms::protobuf::MTDataRequest_Command& MTDataRequest::command(int index) const {
583  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MTDataRequest.command)
584  return command_.Get(index);
585 }
586 inline ::goby::acomms::protobuf::MTDataRequest_Command* MTDataRequest::mutable_command(int index) {
587  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MTDataRequest.command)
588  return command_.Mutable(index);
589 }
590 inline ::goby::acomms::protobuf::MTDataRequest_Command* MTDataRequest::add_command() {
591  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.MTDataRequest.command)
592  return command_.Add();
593 }
594 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::MTDataRequest_Command >&
595 MTDataRequest::command() const {
596  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.MTDataRequest.command)
597  return command_;
598 }
599 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::MTDataRequest_Command >*
600 MTDataRequest::mutable_command() {
601  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.MTDataRequest.command)
602  return &command_;
603 }
604 
605 // -------------------------------------------------------------------
606 
607 // MTDataResponse
608 
609 // repeated int32 modem_id_connected = 1;
610 inline int MTDataResponse::modem_id_connected_size() const {
611  return modem_id_connected_.size();
612 }
613 inline void MTDataResponse::clear_modem_id_connected() {
614  modem_id_connected_.Clear();
615 }
616 inline ::google::protobuf::int32 MTDataResponse::modem_id_connected(int index) const {
617  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MTDataResponse.modem_id_connected)
618  return modem_id_connected_.Get(index);
619 }
620 inline void MTDataResponse::set_modem_id_connected(int index, ::google::protobuf::int32 value) {
621  modem_id_connected_.Set(index, value);
622  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MTDataResponse.modem_id_connected)
623 }
624 inline void MTDataResponse::add_modem_id_connected(::google::protobuf::int32 value) {
625  modem_id_connected_.Add(value);
626  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.MTDataResponse.modem_id_connected)
627 }
628 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
629 MTDataResponse::modem_id_connected() const {
630  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.MTDataResponse.modem_id_connected)
631  return modem_id_connected_;
632 }
633 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
634 MTDataResponse::mutable_modem_id_connected() {
635  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.MTDataResponse.modem_id_connected)
636  return &modem_id_connected_;
637 }
638 
639 // optional uint64 request_id = 4;
640 inline bool MTDataResponse::has_request_id() const {
641  return (_has_bits_[0] & 0x00000002u) != 0;
642 }
643 inline void MTDataResponse::set_has_request_id() {
644  _has_bits_[0] |= 0x00000002u;
645 }
646 inline void MTDataResponse::clear_has_request_id() {
647  _has_bits_[0] &= ~0x00000002u;
648 }
649 inline void MTDataResponse::clear_request_id() {
650  request_id_ = GOOGLE_ULONGLONG(0);
651  clear_has_request_id();
652 }
653 inline ::google::protobuf::uint64 MTDataResponse::request_id() const {
654  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MTDataResponse.request_id)
655  return request_id_;
656 }
657 inline void MTDataResponse::set_request_id(::google::protobuf::uint64 value) {
658  set_has_request_id();
659  request_id_ = value;
660  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MTDataResponse.request_id)
661 }
662 
663 // -------------------------------------------------------------------
664 
665 // MODataAsyncReceive
666 
667 // required .goby.acomms.protobuf.ModemTransmission inbox = 2;
668 inline bool MODataAsyncReceive::has_inbox() const {
669  return (_has_bits_[0] & 0x00000001u) != 0;
670 }
671 inline void MODataAsyncReceive::set_has_inbox() {
672  _has_bits_[0] |= 0x00000001u;
673 }
674 inline void MODataAsyncReceive::clear_has_inbox() {
675  _has_bits_[0] &= ~0x00000001u;
676 }
677 inline void MODataAsyncReceive::clear_inbox() {
678  if (inbox_ != NULL) inbox_->::goby::acomms::protobuf::ModemTransmission::Clear();
679  clear_has_inbox();
680 }
681 inline const ::goby::acomms::protobuf::ModemTransmission& MODataAsyncReceive::inbox() const {
682  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MODataAsyncReceive.inbox)
683  return inbox_ != NULL ? *inbox_ : *default_instance_->inbox_;
684 }
685 inline ::goby::acomms::protobuf::ModemTransmission* MODataAsyncReceive::mutable_inbox() {
686  set_has_inbox();
687  if (inbox_ == NULL) inbox_ = new ::goby::acomms::protobuf::ModemTransmission;
688  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MODataAsyncReceive.inbox)
689  return inbox_;
690 }
691 inline ::goby::acomms::protobuf::ModemTransmission* MODataAsyncReceive::release_inbox() {
692  clear_has_inbox();
694  inbox_ = NULL;
695  return temp;
696 }
697 inline void MODataAsyncReceive::set_allocated_inbox(::goby::acomms::protobuf::ModemTransmission* inbox) {
698  delete inbox_;
699  inbox_ = inbox;
700  if (inbox) {
701  set_has_inbox();
702  } else {
703  clear_has_inbox();
704  }
705  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.MODataAsyncReceive.inbox)
706 }
707 
708 
709 // @@protoc_insertion_point(namespace_scope)
710 
711 } // namespace protobuf
712 } // namespace acomms
713 } // namespace goby
714 
715 #ifndef SWIG
716 namespace google {
717 namespace protobuf {
718 
719 template <> struct is_proto_enum< ::goby::acomms::protobuf::MTDataRequest_Command_CommandType> : ::google::protobuf::internal::true_type {};
720 template <>
721 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MTDataRequest_Command_CommandType>() {
722  return ::goby::acomms::protobuf::MTDataRequest_Command_CommandType_descriptor();
723 }
724 
725 } // namespace google
726 } // namespace protobuf
727 #endif // SWIG
728 
729 // @@protoc_insertion_point(global_scope)
730 
731 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2frudics_5fshore_2eproto__INCLUDED
The global namespace for the Goby project.