Goby v2
iver_driver_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/moos/frontseat/iver/iver_driver_config.proto
3 
4 #ifndef PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_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/moos/protobuf/frontseat_config.pb.h"
28 #include "goby/common/protobuf/option_extensions.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 // Internal implementation detail -- do not call these.
36 void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
37 void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
38 void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
39 
41 
42 // ===================================================================
43 
44 class IverFrontSeatConfig : public ::google::protobuf::Message {
45  public:
47  virtual ~IverFrontSeatConfig();
48 
50 
51  inline IverFrontSeatConfig& operator=(const IverFrontSeatConfig& from) {
52  CopyFrom(from);
53  return *this;
54  }
55 
56  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
57  return _unknown_fields_;
58  }
59 
60  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
61  return &_unknown_fields_;
62  }
63 
64  static const ::google::protobuf::Descriptor* descriptor();
65  static const IverFrontSeatConfig& default_instance();
66 
67  void Swap(IverFrontSeatConfig* other);
68 
69  // implements Message ----------------------------------------------
70 
71  IverFrontSeatConfig* New() const;
72  void CopyFrom(const ::google::protobuf::Message& from);
73  void MergeFrom(const ::google::protobuf::Message& from);
74  void CopyFrom(const IverFrontSeatConfig& from);
75  void MergeFrom(const IverFrontSeatConfig& from);
76  void Clear();
77  bool IsInitialized() const;
78 
79  int ByteSize() const;
80  bool MergePartialFromCodedStream(
81  ::google::protobuf::io::CodedInputStream* input);
82  void SerializeWithCachedSizes(
83  ::google::protobuf::io::CodedOutputStream* output) const;
84  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
85  int GetCachedSize() const { return _cached_size_; }
86  private:
87  void SharedCtor();
88  void SharedDtor();
89  void SetCachedSize(int size) const;
90  public:
91  ::google::protobuf::Metadata GetMetadata() const;
92 
93  // nested types ----------------------------------------------------
94 
95  // accessors -------------------------------------------------------
96 
97  // required string serial_port = 1;
98  inline bool has_serial_port() const;
99  inline void clear_serial_port();
100  static const int kSerialPortFieldNumber = 1;
101  inline const ::std::string& serial_port() const;
102  inline void set_serial_port(const ::std::string& value);
103  inline void set_serial_port(const char* value);
104  inline void set_serial_port(const char* value, size_t size);
105  inline ::std::string* mutable_serial_port();
106  inline ::std::string* release_serial_port();
107  inline void set_allocated_serial_port(::std::string* serial_port);
108 
109  // optional uint32 serial_baud = 2 [default = 19200];
110  inline bool has_serial_baud() const;
111  inline void clear_serial_baud();
112  static const int kSerialBaudFieldNumber = 2;
113  inline ::google::protobuf::uint32 serial_baud() const;
114  inline void set_serial_baud(::google::protobuf::uint32 value);
115 
116  // optional string ntp_serial_port = 3;
117  inline bool has_ntp_serial_port() const;
118  inline void clear_ntp_serial_port();
119  static const int kNtpSerialPortFieldNumber = 3;
120  inline const ::std::string& ntp_serial_port() const;
121  inline void set_ntp_serial_port(const ::std::string& value);
122  inline void set_ntp_serial_port(const char* value);
123  inline void set_ntp_serial_port(const char* value, size_t size);
124  inline ::std::string* mutable_ntp_serial_port();
125  inline ::std::string* release_ntp_serial_port();
126  inline void set_allocated_ntp_serial_port(::std::string* ntp_serial_port);
127 
128  // optional int32 max_pitch_angle_degrees = 4 [default = 45];
129  inline bool has_max_pitch_angle_degrees() const;
130  inline void clear_max_pitch_angle_degrees();
131  static const int kMaxPitchAngleDegreesFieldNumber = 4;
132  inline ::google::protobuf::int32 max_pitch_angle_degrees() const;
133  inline void set_max_pitch_angle_degrees(::google::protobuf::int32 value);
134 
135  // optional int32 remote_helm_version_major = 5 [default = 5];
136  inline bool has_remote_helm_version_major() const;
137  inline void clear_remote_helm_version_major();
138  static const int kRemoteHelmVersionMajorFieldNumber = 5;
139  inline ::google::protobuf::int32 remote_helm_version_major() const;
140  inline void set_remote_helm_version_major(::google::protobuf::int32 value);
141 
142  // @@protoc_insertion_point(class_scope:IverFrontSeatConfig)
143  private:
144  inline void set_has_serial_port();
145  inline void clear_has_serial_port();
146  inline void set_has_serial_baud();
147  inline void clear_has_serial_baud();
148  inline void set_has_ntp_serial_port();
149  inline void clear_has_ntp_serial_port();
150  inline void set_has_max_pitch_angle_degrees();
151  inline void clear_has_max_pitch_angle_degrees();
152  inline void set_has_remote_helm_version_major();
153  inline void clear_has_remote_helm_version_major();
154 
155  ::google::protobuf::UnknownFieldSet _unknown_fields_;
156 
157  ::google::protobuf::uint32 _has_bits_[1];
158  mutable int _cached_size_;
159  ::std::string* serial_port_;
160  ::std::string* ntp_serial_port_;
161  ::google::protobuf::uint32 serial_baud_;
162  ::google::protobuf::int32 max_pitch_angle_degrees_;
163  ::google::protobuf::int32 remote_helm_version_major_;
164  friend void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
165  friend void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
166  friend void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
167 
168  void InitAsDefaultInstance();
169  static IverFrontSeatConfig* default_instance_;
170 };
171 // ===================================================================
172 
173 static const int kIverConfigFieldNumber = 1003;
174 extern ::google::protobuf::internal::ExtensionIdentifier< ::iFrontSeatConfig,
175  ::google::protobuf::internal::MessageTypeTraits< ::IverFrontSeatConfig >, 11, false >
176  iver_config;
177 
178 // ===================================================================
179 
180 // IverFrontSeatConfig
181 
182 // required string serial_port = 1;
183 inline bool IverFrontSeatConfig::has_serial_port() const {
184  return (_has_bits_[0] & 0x00000001u) != 0;
185 }
186 inline void IverFrontSeatConfig::set_has_serial_port() {
187  _has_bits_[0] |= 0x00000001u;
188 }
189 inline void IverFrontSeatConfig::clear_has_serial_port() {
190  _has_bits_[0] &= ~0x00000001u;
191 }
192 inline void IverFrontSeatConfig::clear_serial_port() {
193  if (serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
194  serial_port_->clear();
195  }
196  clear_has_serial_port();
197 }
198 inline const ::std::string& IverFrontSeatConfig::serial_port() const {
199  // @@protoc_insertion_point(field_get:IverFrontSeatConfig.serial_port)
200  return *serial_port_;
201 }
202 inline void IverFrontSeatConfig::set_serial_port(const ::std::string& value) {
203  set_has_serial_port();
204  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
205  serial_port_ = new ::std::string;
206  }
207  serial_port_->assign(value);
208  // @@protoc_insertion_point(field_set:IverFrontSeatConfig.serial_port)
209 }
210 inline void IverFrontSeatConfig::set_serial_port(const char* value) {
211  set_has_serial_port();
212  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
213  serial_port_ = new ::std::string;
214  }
215  serial_port_->assign(value);
216  // @@protoc_insertion_point(field_set_char:IverFrontSeatConfig.serial_port)
217 }
218 inline void IverFrontSeatConfig::set_serial_port(const char* value, size_t size) {
219  set_has_serial_port();
220  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
221  serial_port_ = new ::std::string;
222  }
223  serial_port_->assign(reinterpret_cast<const char*>(value), size);
224  // @@protoc_insertion_point(field_set_pointer:IverFrontSeatConfig.serial_port)
225 }
226 inline ::std::string* IverFrontSeatConfig::mutable_serial_port() {
227  set_has_serial_port();
228  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
229  serial_port_ = new ::std::string;
230  }
231  // @@protoc_insertion_point(field_mutable:IverFrontSeatConfig.serial_port)
232  return serial_port_;
233 }
234 inline ::std::string* IverFrontSeatConfig::release_serial_port() {
235  clear_has_serial_port();
236  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
237  return NULL;
238  } else {
239  ::std::string* temp = serial_port_;
240  serial_port_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
241  return temp;
242  }
243 }
244 inline void IverFrontSeatConfig::set_allocated_serial_port(::std::string* serial_port) {
245  if (serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
246  delete serial_port_;
247  }
248  if (serial_port) {
249  set_has_serial_port();
250  serial_port_ = serial_port;
251  } else {
252  clear_has_serial_port();
253  serial_port_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
254  }
255  // @@protoc_insertion_point(field_set_allocated:IverFrontSeatConfig.serial_port)
256 }
257 
258 // optional uint32 serial_baud = 2 [default = 19200];
259 inline bool IverFrontSeatConfig::has_serial_baud() const {
260  return (_has_bits_[0] & 0x00000002u) != 0;
261 }
262 inline void IverFrontSeatConfig::set_has_serial_baud() {
263  _has_bits_[0] |= 0x00000002u;
264 }
265 inline void IverFrontSeatConfig::clear_has_serial_baud() {
266  _has_bits_[0] &= ~0x00000002u;
267 }
268 inline void IverFrontSeatConfig::clear_serial_baud() {
269  serial_baud_ = 19200u;
270  clear_has_serial_baud();
271 }
272 inline ::google::protobuf::uint32 IverFrontSeatConfig::serial_baud() const {
273  // @@protoc_insertion_point(field_get:IverFrontSeatConfig.serial_baud)
274  return serial_baud_;
275 }
276 inline void IverFrontSeatConfig::set_serial_baud(::google::protobuf::uint32 value) {
277  set_has_serial_baud();
278  serial_baud_ = value;
279  // @@protoc_insertion_point(field_set:IverFrontSeatConfig.serial_baud)
280 }
281 
282 // optional string ntp_serial_port = 3;
283 inline bool IverFrontSeatConfig::has_ntp_serial_port() const {
284  return (_has_bits_[0] & 0x00000004u) != 0;
285 }
286 inline void IverFrontSeatConfig::set_has_ntp_serial_port() {
287  _has_bits_[0] |= 0x00000004u;
288 }
289 inline void IverFrontSeatConfig::clear_has_ntp_serial_port() {
290  _has_bits_[0] &= ~0x00000004u;
291 }
292 inline void IverFrontSeatConfig::clear_ntp_serial_port() {
293  if (ntp_serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
294  ntp_serial_port_->clear();
295  }
296  clear_has_ntp_serial_port();
297 }
298 inline const ::std::string& IverFrontSeatConfig::ntp_serial_port() const {
299  // @@protoc_insertion_point(field_get:IverFrontSeatConfig.ntp_serial_port)
300  return *ntp_serial_port_;
301 }
302 inline void IverFrontSeatConfig::set_ntp_serial_port(const ::std::string& value) {
303  set_has_ntp_serial_port();
304  if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
305  ntp_serial_port_ = new ::std::string;
306  }
307  ntp_serial_port_->assign(value);
308  // @@protoc_insertion_point(field_set:IverFrontSeatConfig.ntp_serial_port)
309 }
310 inline void IverFrontSeatConfig::set_ntp_serial_port(const char* value) {
311  set_has_ntp_serial_port();
312  if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
313  ntp_serial_port_ = new ::std::string;
314  }
315  ntp_serial_port_->assign(value);
316  // @@protoc_insertion_point(field_set_char:IverFrontSeatConfig.ntp_serial_port)
317 }
318 inline void IverFrontSeatConfig::set_ntp_serial_port(const char* value, size_t size) {
319  set_has_ntp_serial_port();
320  if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
321  ntp_serial_port_ = new ::std::string;
322  }
323  ntp_serial_port_->assign(reinterpret_cast<const char*>(value), size);
324  // @@protoc_insertion_point(field_set_pointer:IverFrontSeatConfig.ntp_serial_port)
325 }
326 inline ::std::string* IverFrontSeatConfig::mutable_ntp_serial_port() {
327  set_has_ntp_serial_port();
328  if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
329  ntp_serial_port_ = new ::std::string;
330  }
331  // @@protoc_insertion_point(field_mutable:IverFrontSeatConfig.ntp_serial_port)
332  return ntp_serial_port_;
333 }
334 inline ::std::string* IverFrontSeatConfig::release_ntp_serial_port() {
335  clear_has_ntp_serial_port();
336  if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
337  return NULL;
338  } else {
339  ::std::string* temp = ntp_serial_port_;
340  ntp_serial_port_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
341  return temp;
342  }
343 }
344 inline void IverFrontSeatConfig::set_allocated_ntp_serial_port(::std::string* ntp_serial_port) {
345  if (ntp_serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
346  delete ntp_serial_port_;
347  }
348  if (ntp_serial_port) {
349  set_has_ntp_serial_port();
350  ntp_serial_port_ = ntp_serial_port;
351  } else {
352  clear_has_ntp_serial_port();
353  ntp_serial_port_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354  }
355  // @@protoc_insertion_point(field_set_allocated:IverFrontSeatConfig.ntp_serial_port)
356 }
357 
358 // optional int32 max_pitch_angle_degrees = 4 [default = 45];
359 inline bool IverFrontSeatConfig::has_max_pitch_angle_degrees() const {
360  return (_has_bits_[0] & 0x00000008u) != 0;
361 }
362 inline void IverFrontSeatConfig::set_has_max_pitch_angle_degrees() {
363  _has_bits_[0] |= 0x00000008u;
364 }
365 inline void IverFrontSeatConfig::clear_has_max_pitch_angle_degrees() {
366  _has_bits_[0] &= ~0x00000008u;
367 }
368 inline void IverFrontSeatConfig::clear_max_pitch_angle_degrees() {
369  max_pitch_angle_degrees_ = 45;
370  clear_has_max_pitch_angle_degrees();
371 }
372 inline ::google::protobuf::int32 IverFrontSeatConfig::max_pitch_angle_degrees() const {
373  // @@protoc_insertion_point(field_get:IverFrontSeatConfig.max_pitch_angle_degrees)
374  return max_pitch_angle_degrees_;
375 }
376 inline void IverFrontSeatConfig::set_max_pitch_angle_degrees(::google::protobuf::int32 value) {
377  set_has_max_pitch_angle_degrees();
378  max_pitch_angle_degrees_ = value;
379  // @@protoc_insertion_point(field_set:IverFrontSeatConfig.max_pitch_angle_degrees)
380 }
381 
382 // optional int32 remote_helm_version_major = 5 [default = 5];
383 inline bool IverFrontSeatConfig::has_remote_helm_version_major() const {
384  return (_has_bits_[0] & 0x00000010u) != 0;
385 }
386 inline void IverFrontSeatConfig::set_has_remote_helm_version_major() {
387  _has_bits_[0] |= 0x00000010u;
388 }
389 inline void IverFrontSeatConfig::clear_has_remote_helm_version_major() {
390  _has_bits_[0] &= ~0x00000010u;
391 }
392 inline void IverFrontSeatConfig::clear_remote_helm_version_major() {
393  remote_helm_version_major_ = 5;
394  clear_has_remote_helm_version_major();
395 }
396 inline ::google::protobuf::int32 IverFrontSeatConfig::remote_helm_version_major() const {
397  // @@protoc_insertion_point(field_get:IverFrontSeatConfig.remote_helm_version_major)
398  return remote_helm_version_major_;
399 }
400 inline void IverFrontSeatConfig::set_remote_helm_version_major(::google::protobuf::int32 value) {
401  set_has_remote_helm_version_major();
402  remote_helm_version_major_ = value;
403  // @@protoc_insertion_point(field_set:IverFrontSeatConfig.remote_helm_version_major)
404 }
405 
406 
407 // @@protoc_insertion_point(namespace_scope)
408 
409 #ifndef SWIG
410 namespace google {
411 namespace protobuf {
412 
413 
414 } // namespace google
415 } // namespace protobuf
416 #endif // SWIG
417 
418 // @@protoc_insertion_point(global_scope)
419 
420 #endif // PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto__INCLUDED