Goby v2
modemdriver_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/apps/acomms/goby_modemdriver/modemdriver_config.proto
3 
4 #ifndef PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_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/unknown_field_set.h>
27 #include "goby/common/protobuf/option_extensions.pb.h"
28 #include "goby/common/protobuf/app_base_config.pb.h"
29 #include "goby/acomms/protobuf/driver_base.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_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
42 void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
43 void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
44 
45 class ModemDriverConfig;
46 
47 // ===================================================================
48 
49 class ModemDriverConfig : public ::google::protobuf::Message {
50  public:
52  virtual ~ModemDriverConfig();
53 
55 
56  inline ModemDriverConfig& operator=(const ModemDriverConfig& from) {
57  CopyFrom(from);
58  return *this;
59  }
60 
61  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
62  return _unknown_fields_;
63  }
64 
65  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
66  return &_unknown_fields_;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const ModemDriverConfig& default_instance();
71 
72  void Swap(ModemDriverConfig* other);
73 
74  // implements Message ----------------------------------------------
75 
76  ModemDriverConfig* New() const;
77  void CopyFrom(const ::google::protobuf::Message& from);
78  void MergeFrom(const ::google::protobuf::Message& from);
79  void CopyFrom(const ModemDriverConfig& from);
80  void MergeFrom(const ModemDriverConfig& from);
81  void Clear();
82  bool IsInitialized() const;
83 
84  int ByteSize() const;
85  bool MergePartialFromCodedStream(
86  ::google::protobuf::io::CodedInputStream* input);
87  void SerializeWithCachedSizes(
88  ::google::protobuf::io::CodedOutputStream* output) const;
89  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
90  int GetCachedSize() const { return _cached_size_; }
91  private:
92  void SharedCtor();
93  void SharedDtor();
94  void SetCachedSize(int size) const;
95  public:
96  ::google::protobuf::Metadata GetMetadata() const;
97 
98  // nested types ----------------------------------------------------
99 
100  // accessors -------------------------------------------------------
101 
102  // optional .AppBaseConfig base = 1;
103  inline bool has_base() const;
104  inline void clear_base();
105  static const int kBaseFieldNumber = 1;
106  inline const ::AppBaseConfig& base() const;
107  inline ::AppBaseConfig* mutable_base();
108  inline ::AppBaseConfig* release_base();
109  inline void set_allocated_base(::AppBaseConfig* base);
110 
111  // required .goby.acomms.protobuf.DriverType driver_type = 2;
112  inline bool has_driver_type() const;
113  inline void clear_driver_type();
114  static const int kDriverTypeFieldNumber = 2;
115  inline ::goby::acomms::protobuf::DriverType driver_type() const;
116  inline void set_driver_type(::goby::acomms::protobuf::DriverType value);
117 
118  // required .goby.acomms.protobuf.DriverConfig driver_cfg = 3;
119  inline bool has_driver_cfg() const;
120  inline void clear_driver_cfg();
121  static const int kDriverCfgFieldNumber = 3;
122  inline const ::goby::acomms::protobuf::DriverConfig& driver_cfg() const;
123  inline ::goby::acomms::protobuf::DriverConfig* mutable_driver_cfg();
124  inline ::goby::acomms::protobuf::DriverConfig* release_driver_cfg();
125  inline void set_allocated_driver_cfg(::goby::acomms::protobuf::DriverConfig* driver_cfg);
126 
127  // optional float data_request_timeout = 4 [default = 1];
128  inline bool has_data_request_timeout() const;
129  inline void clear_data_request_timeout();
130  static const int kDataRequestTimeoutFieldNumber = 4;
131  inline float data_request_timeout() const;
132  inline void set_data_request_timeout(float value);
133 
134  // optional int32 status_period_s = 5 [default = 300];
135  inline bool has_status_period_s() const;
136  inline void clear_status_period_s();
137  static const int kStatusPeriodSFieldNumber = 5;
138  inline ::google::protobuf::int32 status_period_s() const;
139  inline void set_status_period_s(::google::protobuf::int32 value);
140 
141  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.ModemDriverConfig)
142  private:
143  inline void set_has_base();
144  inline void clear_has_base();
145  inline void set_has_driver_type();
146  inline void clear_has_driver_type();
147  inline void set_has_driver_cfg();
148  inline void clear_has_driver_cfg();
149  inline void set_has_data_request_timeout();
150  inline void clear_has_data_request_timeout();
151  inline void set_has_status_period_s();
152  inline void clear_has_status_period_s();
153 
154  ::google::protobuf::UnknownFieldSet _unknown_fields_;
155 
156  ::google::protobuf::uint32 _has_bits_[1];
157  mutable int _cached_size_;
158  ::AppBaseConfig* base_;
160  int driver_type_;
161  float data_request_timeout_;
162  ::google::protobuf::int32 status_period_s_;
163  friend void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
164  friend void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
165  friend void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
166 
167  void InitAsDefaultInstance();
168  static ModemDriverConfig* default_instance_;
169 };
170 // ===================================================================
171 
172 
173 // ===================================================================
174 
175 // ModemDriverConfig
176 
177 // optional .AppBaseConfig base = 1;
178 inline bool ModemDriverConfig::has_base() const {
179  return (_has_bits_[0] & 0x00000001u) != 0;
180 }
181 inline void ModemDriverConfig::set_has_base() {
182  _has_bits_[0] |= 0x00000001u;
183 }
184 inline void ModemDriverConfig::clear_has_base() {
185  _has_bits_[0] &= ~0x00000001u;
186 }
187 inline void ModemDriverConfig::clear_base() {
188  if (base_ != NULL) base_->::AppBaseConfig::Clear();
189  clear_has_base();
190 }
191 inline const ::AppBaseConfig& ModemDriverConfig::base() const {
192  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverConfig.base)
193  return base_ != NULL ? *base_ : *default_instance_->base_;
194 }
195 inline ::AppBaseConfig* ModemDriverConfig::mutable_base() {
196  set_has_base();
197  if (base_ == NULL) base_ = new ::AppBaseConfig;
198  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.ModemDriverConfig.base)
199  return base_;
200 }
201 inline ::AppBaseConfig* ModemDriverConfig::release_base() {
202  clear_has_base();
203  ::AppBaseConfig* temp = base_;
204  base_ = NULL;
205  return temp;
206 }
207 inline void ModemDriverConfig::set_allocated_base(::AppBaseConfig* base) {
208  delete base_;
209  base_ = base;
210  if (base) {
211  set_has_base();
212  } else {
213  clear_has_base();
214  }
215  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.ModemDriverConfig.base)
216 }
217 
218 // required .goby.acomms.protobuf.DriverType driver_type = 2;
219 inline bool ModemDriverConfig::has_driver_type() const {
220  return (_has_bits_[0] & 0x00000002u) != 0;
221 }
222 inline void ModemDriverConfig::set_has_driver_type() {
223  _has_bits_[0] |= 0x00000002u;
224 }
225 inline void ModemDriverConfig::clear_has_driver_type() {
226  _has_bits_[0] &= ~0x00000002u;
227 }
228 inline void ModemDriverConfig::clear_driver_type() {
229  driver_type_ = 1;
230  clear_has_driver_type();
231 }
232 inline ::goby::acomms::protobuf::DriverType ModemDriverConfig::driver_type() const {
233  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverConfig.driver_type)
234  return static_cast< ::goby::acomms::protobuf::DriverType >(driver_type_);
235 }
236 inline void ModemDriverConfig::set_driver_type(::goby::acomms::protobuf::DriverType value) {
237  assert(::goby::acomms::protobuf::DriverType_IsValid(value));
238  set_has_driver_type();
239  driver_type_ = value;
240  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ModemDriverConfig.driver_type)
241 }
242 
243 // required .goby.acomms.protobuf.DriverConfig driver_cfg = 3;
244 inline bool ModemDriverConfig::has_driver_cfg() const {
245  return (_has_bits_[0] & 0x00000004u) != 0;
246 }
247 inline void ModemDriverConfig::set_has_driver_cfg() {
248  _has_bits_[0] |= 0x00000004u;
249 }
250 inline void ModemDriverConfig::clear_has_driver_cfg() {
251  _has_bits_[0] &= ~0x00000004u;
252 }
253 inline void ModemDriverConfig::clear_driver_cfg() {
254  if (driver_cfg_ != NULL) driver_cfg_->::goby::acomms::protobuf::DriverConfig::Clear();
255  clear_has_driver_cfg();
256 }
257 inline const ::goby::acomms::protobuf::DriverConfig& ModemDriverConfig::driver_cfg() const {
258  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverConfig.driver_cfg)
259  return driver_cfg_ != NULL ? *driver_cfg_ : *default_instance_->driver_cfg_;
260 }
261 inline ::goby::acomms::protobuf::DriverConfig* ModemDriverConfig::mutable_driver_cfg() {
262  set_has_driver_cfg();
263  if (driver_cfg_ == NULL) driver_cfg_ = new ::goby::acomms::protobuf::DriverConfig;
264  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.ModemDriverConfig.driver_cfg)
265  return driver_cfg_;
266 }
267 inline ::goby::acomms::protobuf::DriverConfig* ModemDriverConfig::release_driver_cfg() {
268  clear_has_driver_cfg();
269  ::goby::acomms::protobuf::DriverConfig* temp = driver_cfg_;
270  driver_cfg_ = NULL;
271  return temp;
272 }
273 inline void ModemDriverConfig::set_allocated_driver_cfg(::goby::acomms::protobuf::DriverConfig* driver_cfg) {
274  delete driver_cfg_;
275  driver_cfg_ = driver_cfg;
276  if (driver_cfg) {
277  set_has_driver_cfg();
278  } else {
279  clear_has_driver_cfg();
280  }
281  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.ModemDriverConfig.driver_cfg)
282 }
283 
284 // optional float data_request_timeout = 4 [default = 1];
285 inline bool ModemDriverConfig::has_data_request_timeout() const {
286  return (_has_bits_[0] & 0x00000008u) != 0;
287 }
288 inline void ModemDriverConfig::set_has_data_request_timeout() {
289  _has_bits_[0] |= 0x00000008u;
290 }
291 inline void ModemDriverConfig::clear_has_data_request_timeout() {
292  _has_bits_[0] &= ~0x00000008u;
293 }
294 inline void ModemDriverConfig::clear_data_request_timeout() {
295  data_request_timeout_ = 1;
296  clear_has_data_request_timeout();
297 }
298 inline float ModemDriverConfig::data_request_timeout() const {
299  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverConfig.data_request_timeout)
300  return data_request_timeout_;
301 }
302 inline void ModemDriverConfig::set_data_request_timeout(float value) {
303  set_has_data_request_timeout();
304  data_request_timeout_ = value;
305  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ModemDriverConfig.data_request_timeout)
306 }
307 
308 // optional int32 status_period_s = 5 [default = 300];
309 inline bool ModemDriverConfig::has_status_period_s() const {
310  return (_has_bits_[0] & 0x00000010u) != 0;
311 }
312 inline void ModemDriverConfig::set_has_status_period_s() {
313  _has_bits_[0] |= 0x00000010u;
314 }
315 inline void ModemDriverConfig::clear_has_status_period_s() {
316  _has_bits_[0] &= ~0x00000010u;
317 }
318 inline void ModemDriverConfig::clear_status_period_s() {
319  status_period_s_ = 300;
320  clear_has_status_period_s();
321 }
322 inline ::google::protobuf::int32 ModemDriverConfig::status_period_s() const {
323  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.ModemDriverConfig.status_period_s)
324  return status_period_s_;
325 }
326 inline void ModemDriverConfig::set_status_period_s(::google::protobuf::int32 value) {
327  set_has_status_period_s();
328  status_period_s_ = value;
329  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.ModemDriverConfig.status_period_s)
330 }
331 
332 
333 // @@protoc_insertion_point(namespace_scope)
334 
335 } // namespace protobuf
336 } // namespace acomms
337 } // namespace goby
338 
339 #ifndef SWIG
340 namespace google {
341 namespace protobuf {
342 
343 
344 } // namespace google
345 } // namespace protobuf
346 #endif // SWIG
347 
348 // @@protoc_insertion_point(global_scope)
349 
350 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.