Goby v2
waveglider_sv2_frontseat_driver_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/moos/frontseat/waveglider/waveglider_sv2_frontseat_driver_config.proto
3 
4 #ifndef PROTOBUF_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_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_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
37 void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
38 void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
39 
41 
42 // ===================================================================
43 
44 class WavegliderSV2FrontSeatConfig : public ::google::protobuf::Message {
45  public:
48 
50 
51  inline WavegliderSV2FrontSeatConfig& operator=(const WavegliderSV2FrontSeatConfig& 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 WavegliderSV2FrontSeatConfig& default_instance();
66 
67  void Swap(WavegliderSV2FrontSeatConfig* other);
68 
69  // implements Message ----------------------------------------------
70 
71  WavegliderSV2FrontSeatConfig* New() const;
72  void CopyFrom(const ::google::protobuf::Message& from);
73  void MergeFrom(const ::google::protobuf::Message& from);
74  void CopyFrom(const WavegliderSV2FrontSeatConfig& from);
75  void MergeFrom(const WavegliderSV2FrontSeatConfig& 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 pm_serial_port = 1;
98  inline bool has_pm_serial_port() const;
99  inline void clear_pm_serial_port();
100  static const int kPmSerialPortFieldNumber = 1;
101  inline const ::std::string& pm_serial_port() const;
102  inline void set_pm_serial_port(const ::std::string& value);
103  inline void set_pm_serial_port(const char* value);
104  inline void set_pm_serial_port(const char* value, size_t size);
105  inline ::std::string* mutable_pm_serial_port();
106  inline ::std::string* release_pm_serial_port();
107  inline void set_allocated_pm_serial_port(::std::string* pm_serial_port);
108 
109  // optional uint32 pm_serial_baud = 2 [default = 115200];
110  inline bool has_pm_serial_baud() const;
111  inline void clear_pm_serial_baud();
112  static const int kPmSerialBaudFieldNumber = 2;
113  inline ::google::protobuf::uint32 pm_serial_baud() const;
114  inline void set_pm_serial_baud(::google::protobuf::uint32 value);
115 
116  // optional uint32 board_id = 3 [default = 3];
117  inline bool has_board_id() const;
118  inline void clear_board_id();
119  static const int kBoardIdFieldNumber = 3;
120  inline ::google::protobuf::uint32 board_id() const;
121  inline void set_board_id(::google::protobuf::uint32 value);
122 
123  // optional uint32 task_id = 4 [default = 1];
124  inline bool has_task_id() const;
125  inline void clear_task_id();
126  static const int kTaskIdFieldNumber = 4;
127  inline ::google::protobuf::uint32 task_id() const;
128  inline void set_task_id(::google::protobuf::uint32 value);
129 
130  // @@protoc_insertion_point(class_scope:WavegliderSV2FrontSeatConfig)
131  private:
132  inline void set_has_pm_serial_port();
133  inline void clear_has_pm_serial_port();
134  inline void set_has_pm_serial_baud();
135  inline void clear_has_pm_serial_baud();
136  inline void set_has_board_id();
137  inline void clear_has_board_id();
138  inline void set_has_task_id();
139  inline void clear_has_task_id();
140 
141  ::google::protobuf::UnknownFieldSet _unknown_fields_;
142 
143  ::google::protobuf::uint32 _has_bits_[1];
144  mutable int _cached_size_;
145  ::std::string* pm_serial_port_;
146  ::google::protobuf::uint32 pm_serial_baud_;
147  ::google::protobuf::uint32 board_id_;
148  ::google::protobuf::uint32 task_id_;
149  friend void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
150  friend void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
151  friend void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
152 
153  void InitAsDefaultInstance();
154  static WavegliderSV2FrontSeatConfig* default_instance_;
155 };
156 // ===================================================================
157 
158 static const int kWavegliderSv2ConfigFieldNumber = 1001;
159 extern ::google::protobuf::internal::ExtensionIdentifier< ::iFrontSeatConfig,
160  ::google::protobuf::internal::MessageTypeTraits< ::WavegliderSV2FrontSeatConfig >, 11, false >
161  waveglider_sv2_config;
162 
163 // ===================================================================
164 
165 // WavegliderSV2FrontSeatConfig
166 
167 // required string pm_serial_port = 1;
168 inline bool WavegliderSV2FrontSeatConfig::has_pm_serial_port() const {
169  return (_has_bits_[0] & 0x00000001u) != 0;
170 }
171 inline void WavegliderSV2FrontSeatConfig::set_has_pm_serial_port() {
172  _has_bits_[0] |= 0x00000001u;
173 }
174 inline void WavegliderSV2FrontSeatConfig::clear_has_pm_serial_port() {
175  _has_bits_[0] &= ~0x00000001u;
176 }
177 inline void WavegliderSV2FrontSeatConfig::clear_pm_serial_port() {
178  if (pm_serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
179  pm_serial_port_->clear();
180  }
181  clear_has_pm_serial_port();
182 }
183 inline const ::std::string& WavegliderSV2FrontSeatConfig::pm_serial_port() const {
184  // @@protoc_insertion_point(field_get:WavegliderSV2FrontSeatConfig.pm_serial_port)
185  return *pm_serial_port_;
186 }
187 inline void WavegliderSV2FrontSeatConfig::set_pm_serial_port(const ::std::string& value) {
188  set_has_pm_serial_port();
189  if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
190  pm_serial_port_ = new ::std::string;
191  }
192  pm_serial_port_->assign(value);
193  // @@protoc_insertion_point(field_set:WavegliderSV2FrontSeatConfig.pm_serial_port)
194 }
195 inline void WavegliderSV2FrontSeatConfig::set_pm_serial_port(const char* value) {
196  set_has_pm_serial_port();
197  if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
198  pm_serial_port_ = new ::std::string;
199  }
200  pm_serial_port_->assign(value);
201  // @@protoc_insertion_point(field_set_char:WavegliderSV2FrontSeatConfig.pm_serial_port)
202 }
203 inline void WavegliderSV2FrontSeatConfig::set_pm_serial_port(const char* value, size_t size) {
204  set_has_pm_serial_port();
205  if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
206  pm_serial_port_ = new ::std::string;
207  }
208  pm_serial_port_->assign(reinterpret_cast<const char*>(value), size);
209  // @@protoc_insertion_point(field_set_pointer:WavegliderSV2FrontSeatConfig.pm_serial_port)
210 }
211 inline ::std::string* WavegliderSV2FrontSeatConfig::mutable_pm_serial_port() {
212  set_has_pm_serial_port();
213  if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
214  pm_serial_port_ = new ::std::string;
215  }
216  // @@protoc_insertion_point(field_mutable:WavegliderSV2FrontSeatConfig.pm_serial_port)
217  return pm_serial_port_;
218 }
219 inline ::std::string* WavegliderSV2FrontSeatConfig::release_pm_serial_port() {
220  clear_has_pm_serial_port();
221  if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
222  return NULL;
223  } else {
224  ::std::string* temp = pm_serial_port_;
225  pm_serial_port_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
226  return temp;
227  }
228 }
229 inline void WavegliderSV2FrontSeatConfig::set_allocated_pm_serial_port(::std::string* pm_serial_port) {
230  if (pm_serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
231  delete pm_serial_port_;
232  }
233  if (pm_serial_port) {
234  set_has_pm_serial_port();
235  pm_serial_port_ = pm_serial_port;
236  } else {
237  clear_has_pm_serial_port();
238  pm_serial_port_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
239  }
240  // @@protoc_insertion_point(field_set_allocated:WavegliderSV2FrontSeatConfig.pm_serial_port)
241 }
242 
243 // optional uint32 pm_serial_baud = 2 [default = 115200];
244 inline bool WavegliderSV2FrontSeatConfig::has_pm_serial_baud() const {
245  return (_has_bits_[0] & 0x00000002u) != 0;
246 }
247 inline void WavegliderSV2FrontSeatConfig::set_has_pm_serial_baud() {
248  _has_bits_[0] |= 0x00000002u;
249 }
250 inline void WavegliderSV2FrontSeatConfig::clear_has_pm_serial_baud() {
251  _has_bits_[0] &= ~0x00000002u;
252 }
253 inline void WavegliderSV2FrontSeatConfig::clear_pm_serial_baud() {
254  pm_serial_baud_ = 115200u;
255  clear_has_pm_serial_baud();
256 }
257 inline ::google::protobuf::uint32 WavegliderSV2FrontSeatConfig::pm_serial_baud() const {
258  // @@protoc_insertion_point(field_get:WavegliderSV2FrontSeatConfig.pm_serial_baud)
259  return pm_serial_baud_;
260 }
261 inline void WavegliderSV2FrontSeatConfig::set_pm_serial_baud(::google::protobuf::uint32 value) {
262  set_has_pm_serial_baud();
263  pm_serial_baud_ = value;
264  // @@protoc_insertion_point(field_set:WavegliderSV2FrontSeatConfig.pm_serial_baud)
265 }
266 
267 // optional uint32 board_id = 3 [default = 3];
268 inline bool WavegliderSV2FrontSeatConfig::has_board_id() const {
269  return (_has_bits_[0] & 0x00000004u) != 0;
270 }
271 inline void WavegliderSV2FrontSeatConfig::set_has_board_id() {
272  _has_bits_[0] |= 0x00000004u;
273 }
274 inline void WavegliderSV2FrontSeatConfig::clear_has_board_id() {
275  _has_bits_[0] &= ~0x00000004u;
276 }
277 inline void WavegliderSV2FrontSeatConfig::clear_board_id() {
278  board_id_ = 3u;
279  clear_has_board_id();
280 }
281 inline ::google::protobuf::uint32 WavegliderSV2FrontSeatConfig::board_id() const {
282  // @@protoc_insertion_point(field_get:WavegliderSV2FrontSeatConfig.board_id)
283  return board_id_;
284 }
285 inline void WavegliderSV2FrontSeatConfig::set_board_id(::google::protobuf::uint32 value) {
286  set_has_board_id();
287  board_id_ = value;
288  // @@protoc_insertion_point(field_set:WavegliderSV2FrontSeatConfig.board_id)
289 }
290 
291 // optional uint32 task_id = 4 [default = 1];
292 inline bool WavegliderSV2FrontSeatConfig::has_task_id() const {
293  return (_has_bits_[0] & 0x00000008u) != 0;
294 }
295 inline void WavegliderSV2FrontSeatConfig::set_has_task_id() {
296  _has_bits_[0] |= 0x00000008u;
297 }
298 inline void WavegliderSV2FrontSeatConfig::clear_has_task_id() {
299  _has_bits_[0] &= ~0x00000008u;
300 }
301 inline void WavegliderSV2FrontSeatConfig::clear_task_id() {
302  task_id_ = 1u;
303  clear_has_task_id();
304 }
305 inline ::google::protobuf::uint32 WavegliderSV2FrontSeatConfig::task_id() const {
306  // @@protoc_insertion_point(field_get:WavegliderSV2FrontSeatConfig.task_id)
307  return task_id_;
308 }
309 inline void WavegliderSV2FrontSeatConfig::set_task_id(::google::protobuf::uint32 value) {
310  set_has_task_id();
311  task_id_ = value;
312  // @@protoc_insertion_point(field_set:WavegliderSV2FrontSeatConfig.task_id)
313 }
314 
315 
316 // @@protoc_insertion_point(namespace_scope)
317 
318 #ifndef SWIG
319 namespace google {
320 namespace protobuf {
321 
322 
323 } // namespace google
324 } // namespace protobuf
325 #endif // SWIG
326 
327 // @@protoc_insertion_point(global_scope)
328 
329 #endif // PROTOBUF_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto__INCLUDED