Goby v2
basic_node_report.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/moos/translator1/basic_node_report.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_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 <boost/units/quantity.hpp>
28 #include <boost/units/absolute.hpp>
29 #include <boost/units/dimensionless_type.hpp>
30 #include <boost/units/make_scaled_unit.hpp>
31 // @@protoc_insertion_point(includes)
32 
33 // Internal implementation detail -- do not call these.
34 void protobuf_AddDesc_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
35 void protobuf_AssignDesc_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
36 void protobuf_ShutdownFile_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
37 
38 class BasicNodeReport;
39 
40 // ===================================================================
41 
42 class BasicNodeReport : public ::google::protobuf::Message {
43  public:
45  virtual ~BasicNodeReport();
46 
47  BasicNodeReport(const BasicNodeReport& from);
48 
49  inline BasicNodeReport& operator=(const BasicNodeReport& from) {
50  CopyFrom(from);
51  return *this;
52  }
53 
54  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
55  return _unknown_fields_;
56  }
57 
58  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
59  return &_unknown_fields_;
60  }
61 
62  static const ::google::protobuf::Descriptor* descriptor();
63  static const BasicNodeReport& default_instance();
64 
65  void Swap(BasicNodeReport* other);
66 
67  // implements Message ----------------------------------------------
68 
69  BasicNodeReport* New() const;
70  void CopyFrom(const ::google::protobuf::Message& from);
71  void MergeFrom(const ::google::protobuf::Message& from);
72  void CopyFrom(const BasicNodeReport& from);
73  void MergeFrom(const BasicNodeReport& from);
74  void Clear();
75  bool IsInitialized() const;
76 
77  int ByteSize() const;
78  bool MergePartialFromCodedStream(
79  ::google::protobuf::io::CodedInputStream* input);
80  void SerializeWithCachedSizes(
81  ::google::protobuf::io::CodedOutputStream* output) const;
82  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
83  int GetCachedSize() const { return _cached_size_; }
84  private:
85  void SharedCtor();
86  void SharedDtor();
87  void SetCachedSize(int size) const;
88  public:
89  ::google::protobuf::Metadata GetMetadata() const;
90 
91  // nested types ----------------------------------------------------
92 
93  // accessors -------------------------------------------------------
94 
95  // optional string Name = 1;
96  inline bool has_name() const;
97  inline void clear_name();
98  static const int kNameFieldNumber = 1;
99  inline const ::std::string& name() const;
100  inline void set_name(const ::std::string& value);
101  inline void set_name(const char* value);
102  inline void set_name(const char* value, size_t size);
103  inline ::std::string* mutable_name();
104  inline ::std::string* release_name();
105  inline void set_allocated_name(::std::string* name);
106 
107  // optional double x = 202;
108  inline bool has_x() const;
109  inline void clear_x();
110  static const int kXFieldNumber = 202;
111  inline double x() const;
112  inline void set_x(double value);
113 
114  // optional double y = 3;
115  inline bool has_y() const;
116  inline void clear_y();
117  static const int kYFieldNumber = 3;
118  inline double y() const;
119  inline void set_y(double value);
120 
121  // optional double speed = 4;
122  inline bool has_speed() const;
123  inline void clear_speed();
124  static const int kSpeedFieldNumber = 4;
125  inline double speed() const;
126  inline void set_speed(double value);
127 
128  // optional double heading = 201;
129  inline bool has_heading() const;
130  inline void clear_heading();
131  static const int kHeadingFieldNumber = 201;
132  inline double heading() const;
133  inline void set_heading(double value);
134 
135  // optional double depth = 6;
136  inline bool has_depth() const;
137  inline void clear_depth();
138  static const int kDepthFieldNumber = 6;
139  inline double depth() const;
140  inline void set_depth(double value);
141 
142  // optional double altitude = 7;
143  inline bool has_altitude() const;
144  inline void clear_altitude();
145  static const int kAltitudeFieldNumber = 7;
146  inline double altitude() const;
147  inline void set_altitude(double value);
148 
149  // optional double lat = 8;
150  inline bool has_lat() const;
151  inline void clear_lat();
152  static const int kLatFieldNumber = 8;
153  inline double lat() const;
154  inline void set_lat(double value);
155 
156  // optional double lon = 9;
157  inline bool has_lon() const;
158  inline void clear_lon();
159  static const int kLonFieldNumber = 9;
160  inline double lon() const;
161  inline void set_lon(double value);
162 
163  // optional double time = 200;
164  inline bool has_time() const;
165  inline void clear_time();
166  static const int kTimeFieldNumber = 200;
167  inline double time() const;
168  inline void set_time(double value);
169 
170  // repeated int32 repeat = 10;
171  inline int repeat_size() const;
172  inline void clear_repeat();
173  static const int kRepeatFieldNumber = 10;
174  inline ::google::protobuf::int32 repeat(int index) const;
175  inline void set_repeat(int index, ::google::protobuf::int32 value);
176  inline void add_repeat(::google::protobuf::int32 value);
177  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
178  repeat() const;
179  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
180  mutable_repeat();
181 
182  // @@protoc_insertion_point(class_scope:BasicNodeReport)
183  private:
184  inline void set_has_name();
185  inline void clear_has_name();
186  inline void set_has_x();
187  inline void clear_has_x();
188  inline void set_has_y();
189  inline void clear_has_y();
190  inline void set_has_speed();
191  inline void clear_has_speed();
192  inline void set_has_heading();
193  inline void clear_has_heading();
194  inline void set_has_depth();
195  inline void clear_has_depth();
196  inline void set_has_altitude();
197  inline void clear_has_altitude();
198  inline void set_has_lat();
199  inline void clear_has_lat();
200  inline void set_has_lon();
201  inline void clear_has_lon();
202  inline void set_has_time();
203  inline void clear_has_time();
204 
205  ::google::protobuf::UnknownFieldSet _unknown_fields_;
206 
207  ::google::protobuf::uint32 _has_bits_[1];
208  mutable int _cached_size_;
209  ::std::string* name_;
210  double x_;
211  double y_;
212  double speed_;
213  double heading_;
214  double depth_;
215  double altitude_;
216  double lat_;
217  double lon_;
218  double time_;
219  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeat_;
220  friend void protobuf_AddDesc_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
221  friend void protobuf_AssignDesc_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
222  friend void protobuf_ShutdownFile_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
223 
224  void InitAsDefaultInstance();
225  static BasicNodeReport* default_instance_;
226 };
227 // ===================================================================
228 
229 
230 // ===================================================================
231 
232 // BasicNodeReport
233 
234 // optional string Name = 1;
235 inline bool BasicNodeReport::has_name() const {
236  return (_has_bits_[0] & 0x00000001u) != 0;
237 }
238 inline void BasicNodeReport::set_has_name() {
239  _has_bits_[0] |= 0x00000001u;
240 }
241 inline void BasicNodeReport::clear_has_name() {
242  _has_bits_[0] &= ~0x00000001u;
243 }
244 inline void BasicNodeReport::clear_name() {
245  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
246  name_->clear();
247  }
248  clear_has_name();
249 }
250 inline const ::std::string& BasicNodeReport::name() const {
251  // @@protoc_insertion_point(field_get:BasicNodeReport.Name)
252  return *name_;
253 }
254 inline void BasicNodeReport::set_name(const ::std::string& value) {
255  set_has_name();
256  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
257  name_ = new ::std::string;
258  }
259  name_->assign(value);
260  // @@protoc_insertion_point(field_set:BasicNodeReport.Name)
261 }
262 inline void BasicNodeReport::set_name(const char* value) {
263  set_has_name();
264  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
265  name_ = new ::std::string;
266  }
267  name_->assign(value);
268  // @@protoc_insertion_point(field_set_char:BasicNodeReport.Name)
269 }
270 inline void BasicNodeReport::set_name(const char* value, size_t size) {
271  set_has_name();
272  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
273  name_ = new ::std::string;
274  }
275  name_->assign(reinterpret_cast<const char*>(value), size);
276  // @@protoc_insertion_point(field_set_pointer:BasicNodeReport.Name)
277 }
278 inline ::std::string* BasicNodeReport::mutable_name() {
279  set_has_name();
280  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
281  name_ = new ::std::string;
282  }
283  // @@protoc_insertion_point(field_mutable:BasicNodeReport.Name)
284  return name_;
285 }
286 inline ::std::string* BasicNodeReport::release_name() {
287  clear_has_name();
288  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
289  return NULL;
290  } else {
291  ::std::string* temp = name_;
292  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293  return temp;
294  }
295 }
296 inline void BasicNodeReport::set_allocated_name(::std::string* name) {
297  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
298  delete name_;
299  }
300  if (name) {
301  set_has_name();
302  name_ = name;
303  } else {
304  clear_has_name();
305  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
306  }
307  // @@protoc_insertion_point(field_set_allocated:BasicNodeReport.Name)
308 }
309 
310 // optional double x = 202;
311 inline bool BasicNodeReport::has_x() const {
312  return (_has_bits_[0] & 0x00000002u) != 0;
313 }
314 inline void BasicNodeReport::set_has_x() {
315  _has_bits_[0] |= 0x00000002u;
316 }
317 inline void BasicNodeReport::clear_has_x() {
318  _has_bits_[0] &= ~0x00000002u;
319 }
320 inline void BasicNodeReport::clear_x() {
321  x_ = 0;
322  clear_has_x();
323 }
324 inline double BasicNodeReport::x() const {
325  // @@protoc_insertion_point(field_get:BasicNodeReport.x)
326  return x_;
327 }
328 inline void BasicNodeReport::set_x(double value) {
329  set_has_x();
330  x_ = value;
331  // @@protoc_insertion_point(field_set:BasicNodeReport.x)
332 }
333 
334 // optional double y = 3;
335 inline bool BasicNodeReport::has_y() const {
336  return (_has_bits_[0] & 0x00000004u) != 0;
337 }
338 inline void BasicNodeReport::set_has_y() {
339  _has_bits_[0] |= 0x00000004u;
340 }
341 inline void BasicNodeReport::clear_has_y() {
342  _has_bits_[0] &= ~0x00000004u;
343 }
344 inline void BasicNodeReport::clear_y() {
345  y_ = 0;
346  clear_has_y();
347 }
348 inline double BasicNodeReport::y() const {
349  // @@protoc_insertion_point(field_get:BasicNodeReport.y)
350  return y_;
351 }
352 inline void BasicNodeReport::set_y(double value) {
353  set_has_y();
354  y_ = value;
355  // @@protoc_insertion_point(field_set:BasicNodeReport.y)
356 }
357 
358 // optional double speed = 4;
359 inline bool BasicNodeReport::has_speed() const {
360  return (_has_bits_[0] & 0x00000008u) != 0;
361 }
362 inline void BasicNodeReport::set_has_speed() {
363  _has_bits_[0] |= 0x00000008u;
364 }
365 inline void BasicNodeReport::clear_has_speed() {
366  _has_bits_[0] &= ~0x00000008u;
367 }
368 inline void BasicNodeReport::clear_speed() {
369  speed_ = 0;
370  clear_has_speed();
371 }
372 inline double BasicNodeReport::speed() const {
373  // @@protoc_insertion_point(field_get:BasicNodeReport.speed)
374  return speed_;
375 }
376 inline void BasicNodeReport::set_speed(double value) {
377  set_has_speed();
378  speed_ = value;
379  // @@protoc_insertion_point(field_set:BasicNodeReport.speed)
380 }
381 
382 // optional double heading = 201;
383 inline bool BasicNodeReport::has_heading() const {
384  return (_has_bits_[0] & 0x00000010u) != 0;
385 }
386 inline void BasicNodeReport::set_has_heading() {
387  _has_bits_[0] |= 0x00000010u;
388 }
389 inline void BasicNodeReport::clear_has_heading() {
390  _has_bits_[0] &= ~0x00000010u;
391 }
392 inline void BasicNodeReport::clear_heading() {
393  heading_ = 0;
394  clear_has_heading();
395 }
396 inline double BasicNodeReport::heading() const {
397  // @@protoc_insertion_point(field_get:BasicNodeReport.heading)
398  return heading_;
399 }
400 inline void BasicNodeReport::set_heading(double value) {
401  set_has_heading();
402  heading_ = value;
403  // @@protoc_insertion_point(field_set:BasicNodeReport.heading)
404 }
405 
406 // optional double depth = 6;
407 inline bool BasicNodeReport::has_depth() const {
408  return (_has_bits_[0] & 0x00000020u) != 0;
409 }
410 inline void BasicNodeReport::set_has_depth() {
411  _has_bits_[0] |= 0x00000020u;
412 }
413 inline void BasicNodeReport::clear_has_depth() {
414  _has_bits_[0] &= ~0x00000020u;
415 }
416 inline void BasicNodeReport::clear_depth() {
417  depth_ = 0;
418  clear_has_depth();
419 }
420 inline double BasicNodeReport::depth() const {
421  // @@protoc_insertion_point(field_get:BasicNodeReport.depth)
422  return depth_;
423 }
424 inline void BasicNodeReport::set_depth(double value) {
425  set_has_depth();
426  depth_ = value;
427  // @@protoc_insertion_point(field_set:BasicNodeReport.depth)
428 }
429 
430 // optional double altitude = 7;
431 inline bool BasicNodeReport::has_altitude() const {
432  return (_has_bits_[0] & 0x00000040u) != 0;
433 }
434 inline void BasicNodeReport::set_has_altitude() {
435  _has_bits_[0] |= 0x00000040u;
436 }
437 inline void BasicNodeReport::clear_has_altitude() {
438  _has_bits_[0] &= ~0x00000040u;
439 }
440 inline void BasicNodeReport::clear_altitude() {
441  altitude_ = 0;
442  clear_has_altitude();
443 }
444 inline double BasicNodeReport::altitude() const {
445  // @@protoc_insertion_point(field_get:BasicNodeReport.altitude)
446  return altitude_;
447 }
448 inline void BasicNodeReport::set_altitude(double value) {
449  set_has_altitude();
450  altitude_ = value;
451  // @@protoc_insertion_point(field_set:BasicNodeReport.altitude)
452 }
453 
454 // optional double lat = 8;
455 inline bool BasicNodeReport::has_lat() const {
456  return (_has_bits_[0] & 0x00000080u) != 0;
457 }
458 inline void BasicNodeReport::set_has_lat() {
459  _has_bits_[0] |= 0x00000080u;
460 }
461 inline void BasicNodeReport::clear_has_lat() {
462  _has_bits_[0] &= ~0x00000080u;
463 }
464 inline void BasicNodeReport::clear_lat() {
465  lat_ = 0;
466  clear_has_lat();
467 }
468 inline double BasicNodeReport::lat() const {
469  // @@protoc_insertion_point(field_get:BasicNodeReport.lat)
470  return lat_;
471 }
472 inline void BasicNodeReport::set_lat(double value) {
473  set_has_lat();
474  lat_ = value;
475  // @@protoc_insertion_point(field_set:BasicNodeReport.lat)
476 }
477 
478 // optional double lon = 9;
479 inline bool BasicNodeReport::has_lon() const {
480  return (_has_bits_[0] & 0x00000100u) != 0;
481 }
482 inline void BasicNodeReport::set_has_lon() {
483  _has_bits_[0] |= 0x00000100u;
484 }
485 inline void BasicNodeReport::clear_has_lon() {
486  _has_bits_[0] &= ~0x00000100u;
487 }
488 inline void BasicNodeReport::clear_lon() {
489  lon_ = 0;
490  clear_has_lon();
491 }
492 inline double BasicNodeReport::lon() const {
493  // @@protoc_insertion_point(field_get:BasicNodeReport.lon)
494  return lon_;
495 }
496 inline void BasicNodeReport::set_lon(double value) {
497  set_has_lon();
498  lon_ = value;
499  // @@protoc_insertion_point(field_set:BasicNodeReport.lon)
500 }
501 
502 // optional double time = 200;
503 inline bool BasicNodeReport::has_time() const {
504  return (_has_bits_[0] & 0x00000200u) != 0;
505 }
506 inline void BasicNodeReport::set_has_time() {
507  _has_bits_[0] |= 0x00000200u;
508 }
509 inline void BasicNodeReport::clear_has_time() {
510  _has_bits_[0] &= ~0x00000200u;
511 }
512 inline void BasicNodeReport::clear_time() {
513  time_ = 0;
514  clear_has_time();
515 }
516 inline double BasicNodeReport::time() const {
517  // @@protoc_insertion_point(field_get:BasicNodeReport.time)
518  return time_;
519 }
520 inline void BasicNodeReport::set_time(double value) {
521  set_has_time();
522  time_ = value;
523  // @@protoc_insertion_point(field_set:BasicNodeReport.time)
524 }
525 
526 // repeated int32 repeat = 10;
527 inline int BasicNodeReport::repeat_size() const {
528  return repeat_.size();
529 }
530 inline void BasicNodeReport::clear_repeat() {
531  repeat_.Clear();
532 }
533 inline ::google::protobuf::int32 BasicNodeReport::repeat(int index) const {
534  // @@protoc_insertion_point(field_get:BasicNodeReport.repeat)
535  return repeat_.Get(index);
536 }
537 inline void BasicNodeReport::set_repeat(int index, ::google::protobuf::int32 value) {
538  repeat_.Set(index, value);
539  // @@protoc_insertion_point(field_set:BasicNodeReport.repeat)
540 }
541 inline void BasicNodeReport::add_repeat(::google::protobuf::int32 value) {
542  repeat_.Add(value);
543  // @@protoc_insertion_point(field_add:BasicNodeReport.repeat)
544 }
545 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
546 BasicNodeReport::repeat() const {
547  // @@protoc_insertion_point(field_list:BasicNodeReport.repeat)
548  return repeat_;
549 }
550 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
551 BasicNodeReport::mutable_repeat() {
552  // @@protoc_insertion_point(field_mutable_list:BasicNodeReport.repeat)
553  return &repeat_;
554 }
555 
556 
557 // @@protoc_insertion_point(namespace_scope)
558 
559 #ifndef SWIG
560 namespace google {
561 namespace protobuf {
562 
563 
564 } // namespace google
565 } // namespace protobuf
566 #endif // SWIG
567 
568 // @@protoc_insertion_point(global_scope)
569 
570 #endif // PROTOBUF_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto__INCLUDED