Goby v2
modem_driver_status.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/modem_driver_status.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_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/common/protobuf/option_extensions.pb.h"
29 #include "dccl/option_extensions.pb.h"
30 #include <boost/units/quantity.hpp>
31 #include <boost/units/absolute.hpp>
32 #include <boost/units/dimensionless_type.hpp>
33 #include <boost/units/make_scaled_unit.hpp>
34 // @@protoc_insertion_point(includes)
35 
36 namespace goby {
37 namespace acomms {
38 namespace protobuf {
39 
40 // Internal implementation detail -- do not call these.
41 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
42 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
43 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
44 
45 class ModemDriverStatus;
46 
47 enum ModemDriverStatus_Status {
48  ModemDriverStatus_Status_NOMINAL = 0,
49  ModemDriverStatus_Status_CONNECTION_TO_MODEM_FAILED = 1,
50  ModemDriverStatus_Status_MODEM_NOT_RESPONDING = 2,
51  ModemDriverStatus_Status_STARTUP_FAILED = 3,
52  ModemDriverStatus_Status_INVALID_CONFIGURATION = 4,
53  ModemDriverStatus_Status_MANUAL_RESET = 5
54 };
55 bool ModemDriverStatus_Status_IsValid(int value);
56 const ModemDriverStatus_Status ModemDriverStatus_Status_Status_MIN = ModemDriverStatus_Status_NOMINAL;
57 const ModemDriverStatus_Status ModemDriverStatus_Status_Status_MAX = ModemDriverStatus_Status_MANUAL_RESET;
58 const int ModemDriverStatus_Status_Status_ARRAYSIZE = ModemDriverStatus_Status_Status_MAX + 1;
59 
60 const ::google::protobuf::EnumDescriptor* ModemDriverStatus_Status_descriptor();
61 inline const ::std::string& ModemDriverStatus_Status_Name(ModemDriverStatus_Status value) {
62  return ::google::protobuf::internal::NameOfEnum(
63  ModemDriverStatus_Status_descriptor(), value);
64 }
65 inline bool ModemDriverStatus_Status_Parse(
66  const ::std::string& name, ModemDriverStatus_Status* value) {
67  return ::google::protobuf::internal::ParseNamedEnum<ModemDriverStatus_Status>(
68  ModemDriverStatus_Status_descriptor(), name, value);
69 }
70 // ===================================================================
71 
72 class ModemDriverStatus : public ::google::protobuf::Message {
73  public:
75  virtual ~ModemDriverStatus();
76 
78 
79  inline ModemDriverStatus& operator=(const ModemDriverStatus& from) {
80  CopyFrom(from);
81  return *this;
82  }
83 
84  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
85  return _unknown_fields_;
86  }
87 
88  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
89  return &_unknown_fields_;
90  }
91 
92  static const ::google::protobuf::Descriptor* descriptor();
93  static const ModemDriverStatus& default_instance();
94 
95  void Swap(ModemDriverStatus* other);
96 
97  // implements Message ----------------------------------------------
98 
99  ModemDriverStatus* New() const;
100  void CopyFrom(const ::google::protobuf::Message& from);
101  void MergeFrom(const ::google::protobuf::Message& from);
102  void CopyFrom(const ModemDriverStatus& from);
103  void MergeFrom(const ModemDriverStatus& from);
104  void Clear();
105  bool IsInitialized() const;
106 
107  int ByteSize() const;
108  bool MergePartialFromCodedStream(
109  ::google::protobuf::io::CodedInputStream* input);
110  void SerializeWithCachedSizes(
111  ::google::protobuf::io::CodedOutputStream* output) const;
112  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
113  int GetCachedSize() const { return _cached_size_; }
114  private:
115  void SharedCtor();
116  void SharedDtor();
117  void SetCachedSize(int size) const;
118  public:
119  ::google::protobuf::Metadata GetMetadata() const;
120 
121  // nested types ----------------------------------------------------
122 
123  typedef ModemDriverStatus_Status Status;
124  static const Status NOMINAL = ModemDriverStatus_Status_NOMINAL;
125  static const Status CONNECTION_TO_MODEM_FAILED = ModemDriverStatus_Status_CONNECTION_TO_MODEM_FAILED;
126  static const Status MODEM_NOT_RESPONDING = ModemDriverStatus_Status_MODEM_NOT_RESPONDING;
127  static const Status STARTUP_FAILED = ModemDriverStatus_Status_STARTUP_FAILED;
128  static const Status INVALID_CONFIGURATION = ModemDriverStatus_Status_INVALID_CONFIGURATION;
129  static const Status MANUAL_RESET = ModemDriverStatus_Status_MANUAL_RESET;
130  static inline bool Status_IsValid(int value) {
131  return ModemDriverStatus_Status_IsValid(value);
132  }
133  static const Status Status_MIN =
134  ModemDriverStatus_Status_Status_MIN;
135  static const Status Status_MAX =
136  ModemDriverStatus_Status_Status_MAX;
137  static const int Status_ARRAYSIZE =
138  ModemDriverStatus_Status_Status_ARRAYSIZE;
139  static inline const ::google::protobuf::EnumDescriptor*
140  Status_descriptor() {
141  return ModemDriverStatus_Status_descriptor();
142  }
143  static inline const ::std::string& Status_Name(Status value) {
144  return ModemDriverStatus_Status_Name(value);
145  }
146  static inline bool Status_Parse(const ::std::string& name,
147  Status* value) {
148  return ModemDriverStatus_Status_Parse(name, value);
149  }
150 
151  // accessors -------------------------------------------------------
152 
153  // required int32 src = 1;
154  inline bool has_src() const;
155  inline void clear_src();
156  static const int kSrcFieldNumber = 1;
157  inline ::google::protobuf::int32 src() const;
158  inline void set_src(::google::protobuf::int32 value);
159 
160  // optional int32 dest = 2;
161  inline bool has_dest() const;
162  inline void clear_dest();
163  static const int kDestFieldNumber = 2;
164  inline ::google::protobuf::int32 dest() const;
165  inline void set_dest(::google::protobuf::int32 value);
166 
167  // required double time = 3;
168  inline bool has_time() const;
169  inline void clear_time();
170  static const int kTimeFieldNumber = 3;
171  inline double time() const;
172  inline void set_time(double value);
173 
174  // required .goby.acomms.protobuf.ModemDriverStatus.Status status = 4;
175  inline bool has_status() const;
176  inline void clear_status();
177  static const int kStatusFieldNumber = 4;
178  inline ::goby::acomms::protobuf::ModemDriverStatus_Status status() const;
179  inline void set_status(::goby::acomms::protobuf::ModemDriverStatus_Status value);
180 
181  // optional uint32 n_resets = 5 [default = 0];
182  inline bool has_n_resets() const;
183  inline void clear_n_resets();
184  static const int kNResetsFieldNumber = 5;
185  inline ::google::protobuf::uint32 n_resets() const;
186  inline void set_n_resets(::google::protobuf::uint32 value);
187 
188  enum DCCLParameters { DCCL_ID = 513, DCCL_MAX_BYTES = 32 };
189  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.ModemDriverStatus)
190  private:
191  inline void set_has_src();
192  inline void clear_has_src();
193  inline void set_has_dest();
194  inline void clear_has_dest();
195  inline void set_has_time();
196  inline void clear_has_time();
197  inline void set_has_status();
198  inline void clear_has_status();
199  inline void set_has_n_resets();
200  inline void clear_has_n_resets();
201 
202  ::google::protobuf::UnknownFieldSet _unknown_fields_;
203 
204  ::google::protobuf::uint32 _has_bits_[1];
205  mutable int _cached_size_;
206  ::google::protobuf::int32 src_;
207  ::google::protobuf::int32 dest_;
208  double time_;
209  int status_;
210  ::google::protobuf::uint32 n_resets_;
211  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
212  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
213  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
214 
215  void InitAsDefaultInstance();
216  static ModemDriverStatus* default_instance_;
217 };
218 // ===================================================================
219 
220 
221 // ===================================================================
222 
223 // ModemDriverStatus
224 
225 // required int32 src = 1;
226 inline bool ModemDriverStatus::has_src() const {
227  return (_has_bits_[0] & 0x00000001u) != 0;
228 }
229 inline void ModemDriverStatus::set_has_src() {
230  _has_bits_[0] |= 0x00000001u;
231 }
232 inline void ModemDriverStatus::clear_has_src() {
233  _has_bits_[0] &= ~0x00000001u;
234 }
235 inline void ModemDriverStatus::clear_src() {
236  src_ = 0;
237  clear_has_src();
238 }
239 inline ::google::protobuf::int32 ModemDriverStatus::src() const {
240  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverStatus.src)
241  return src_;
242 }
243 inline void ModemDriverStatus::set_src(::google::protobuf::int32 value) {
244  set_has_src();
245  src_ = value;
246  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ModemDriverStatus.src)
247 }
248 
249 // optional int32 dest = 2;
250 inline bool ModemDriverStatus::has_dest() const {
251  return (_has_bits_[0] & 0x00000002u) != 0;
252 }
253 inline void ModemDriverStatus::set_has_dest() {
254  _has_bits_[0] |= 0x00000002u;
255 }
256 inline void ModemDriverStatus::clear_has_dest() {
257  _has_bits_[0] &= ~0x00000002u;
258 }
259 inline void ModemDriverStatus::clear_dest() {
260  dest_ = 0;
261  clear_has_dest();
262 }
263 inline ::google::protobuf::int32 ModemDriverStatus::dest() const {
264  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverStatus.dest)
265  return dest_;
266 }
267 inline void ModemDriverStatus::set_dest(::google::protobuf::int32 value) {
268  set_has_dest();
269  dest_ = value;
270  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ModemDriverStatus.dest)
271 }
272 
273 // required double time = 3;
274 inline bool ModemDriverStatus::has_time() const {
275  return (_has_bits_[0] & 0x00000004u) != 0;
276 }
277 inline void ModemDriverStatus::set_has_time() {
278  _has_bits_[0] |= 0x00000004u;
279 }
280 inline void ModemDriverStatus::clear_has_time() {
281  _has_bits_[0] &= ~0x00000004u;
282 }
283 inline void ModemDriverStatus::clear_time() {
284  time_ = 0;
285  clear_has_time();
286 }
287 inline double ModemDriverStatus::time() const {
288  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverStatus.time)
289  return time_;
290 }
291 inline void ModemDriverStatus::set_time(double value) {
292  set_has_time();
293  time_ = value;
294  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ModemDriverStatus.time)
295 }
296 
297 // required .goby.acomms.protobuf.ModemDriverStatus.Status status = 4;
298 inline bool ModemDriverStatus::has_status() const {
299  return (_has_bits_[0] & 0x00000008u) != 0;
300 }
301 inline void ModemDriverStatus::set_has_status() {
302  _has_bits_[0] |= 0x00000008u;
303 }
304 inline void ModemDriverStatus::clear_has_status() {
305  _has_bits_[0] &= ~0x00000008u;
306 }
307 inline void ModemDriverStatus::clear_status() {
308  status_ = 0;
309  clear_has_status();
310 }
311 inline ::goby::acomms::protobuf::ModemDriverStatus_Status ModemDriverStatus::status() const {
312  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverStatus.status)
313  return static_cast< ::goby::acomms::protobuf::ModemDriverStatus_Status >(status_);
314 }
315 inline void ModemDriverStatus::set_status(::goby::acomms::protobuf::ModemDriverStatus_Status value) {
316  assert(::goby::acomms::protobuf::ModemDriverStatus_Status_IsValid(value));
317  set_has_status();
318  status_ = value;
319  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ModemDriverStatus.status)
320 }
321 
322 // optional uint32 n_resets = 5 [default = 0];
323 inline bool ModemDriverStatus::has_n_resets() const {
324  return (_has_bits_[0] & 0x00000010u) != 0;
325 }
326 inline void ModemDriverStatus::set_has_n_resets() {
327  _has_bits_[0] |= 0x00000010u;
328 }
329 inline void ModemDriverStatus::clear_has_n_resets() {
330  _has_bits_[0] &= ~0x00000010u;
331 }
332 inline void ModemDriverStatus::clear_n_resets() {
333  n_resets_ = 0u;
334  clear_has_n_resets();
335 }
336 inline ::google::protobuf::uint32 ModemDriverStatus::n_resets() const {
337  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverStatus.n_resets)
338  return n_resets_;
339 }
340 inline void ModemDriverStatus::set_n_resets(::google::protobuf::uint32 value) {
341  set_has_n_resets();
342  n_resets_ = value;
343  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ModemDriverStatus.n_resets)
344 }
345 
346 
347 // @@protoc_insertion_point(namespace_scope)
348 
349 } // namespace protobuf
350 } // namespace acomms
351 } // namespace goby
352 
353 #ifndef SWIG
354 namespace google {
355 namespace protobuf {
356 
357 template <> struct is_proto_enum< ::goby::acomms::protobuf::ModemDriverStatus_Status> : ::google::protobuf::internal::true_type {};
358 template <>
359 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::ModemDriverStatus_Status>() {
360  return ::goby::acomms::protobuf::ModemDriverStatus_Status_descriptor();
361 }
362 
363 } // namespace google
364 } // namespace protobuf
365 #endif // SWIG
366 
367 // @@protoc_insertion_point(global_scope)
368 
369 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto__INCLUDED
The global namespace for the Goby project.