Goby v2
header.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/pb/protobuf/header.proto
3 
4 #ifndef PROTOBUF_goby_2fpb_2fprotobuf_2fheader_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fpb_2fprotobuf_2fheader_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 // Internal implementation detail -- do not call these.
37 void protobuf_AddDesc_goby_2fpb_2fprotobuf_2fheader_2eproto();
38 void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2fheader_2eproto();
39 void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2fheader_2eproto();
40 
41 class Header;
42 
43 enum Header_PublishDestination {
44  Header_PublishDestination_PUBLISH_SELF = 1,
45  Header_PublishDestination_PUBLISH_OTHER = 2,
46  Header_PublishDestination_PUBLISH_ALL = 3
47 };
48 bool Header_PublishDestination_IsValid(int value);
49 const Header_PublishDestination Header_PublishDestination_PublishDestination_MIN = Header_PublishDestination_PUBLISH_SELF;
50 const Header_PublishDestination Header_PublishDestination_PublishDestination_MAX = Header_PublishDestination_PUBLISH_ALL;
51 const int Header_PublishDestination_PublishDestination_ARRAYSIZE = Header_PublishDestination_PublishDestination_MAX + 1;
52 
53 const ::google::protobuf::EnumDescriptor* Header_PublishDestination_descriptor();
54 inline const ::std::string& Header_PublishDestination_Name(Header_PublishDestination value) {
55  return ::google::protobuf::internal::NameOfEnum(
56  Header_PublishDestination_descriptor(), value);
57 }
58 inline bool Header_PublishDestination_Parse(
59  const ::std::string& name, Header_PublishDestination* value) {
60  return ::google::protobuf::internal::ParseNamedEnum<Header_PublishDestination>(
61  Header_PublishDestination_descriptor(), name, value);
62 }
63 // ===================================================================
64 
65 class Header : public ::google::protobuf::Message {
66  public:
67  Header();
68  virtual ~Header();
69 
70  Header(const Header& from);
71 
72  inline Header& operator=(const Header& from) {
73  CopyFrom(from);
74  return *this;
75  }
76 
77  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
78  return _unknown_fields_;
79  }
80 
81  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
82  return &_unknown_fields_;
83  }
84 
85  static const ::google::protobuf::Descriptor* descriptor();
86  static const Header& default_instance();
87 
88  void Swap(Header* other);
89 
90  // implements Message ----------------------------------------------
91 
92  Header* New() const;
93  void CopyFrom(const ::google::protobuf::Message& from);
94  void MergeFrom(const ::google::protobuf::Message& from);
95  void CopyFrom(const Header& from);
96  void MergeFrom(const Header& from);
97  void Clear();
98  bool IsInitialized() const;
99 
100  int ByteSize() const;
101  bool MergePartialFromCodedStream(
102  ::google::protobuf::io::CodedInputStream* input);
103  void SerializeWithCachedSizes(
104  ::google::protobuf::io::CodedOutputStream* output) const;
105  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
106  int GetCachedSize() const { return _cached_size_; }
107  private:
108  void SharedCtor();
109  void SharedDtor();
110  void SetCachedSize(int size) const;
111  public:
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  typedef Header_PublishDestination PublishDestination;
117  static const PublishDestination PUBLISH_SELF = Header_PublishDestination_PUBLISH_SELF;
118  static const PublishDestination PUBLISH_OTHER = Header_PublishDestination_PUBLISH_OTHER;
119  static const PublishDestination PUBLISH_ALL = Header_PublishDestination_PUBLISH_ALL;
120  static inline bool PublishDestination_IsValid(int value) {
121  return Header_PublishDestination_IsValid(value);
122  }
123  static const PublishDestination PublishDestination_MIN =
124  Header_PublishDestination_PublishDestination_MIN;
125  static const PublishDestination PublishDestination_MAX =
126  Header_PublishDestination_PublishDestination_MAX;
127  static const int PublishDestination_ARRAYSIZE =
128  Header_PublishDestination_PublishDestination_ARRAYSIZE;
129  static inline const ::google::protobuf::EnumDescriptor*
130  PublishDestination_descriptor() {
131  return Header_PublishDestination_descriptor();
132  }
133  static inline const ::std::string& PublishDestination_Name(PublishDestination value) {
134  return Header_PublishDestination_Name(value);
135  }
136  static inline bool PublishDestination_Parse(const ::std::string& name,
137  PublishDestination* value) {
138  return Header_PublishDestination_Parse(name, value);
139  }
140 
141  // accessors -------------------------------------------------------
142 
143  // required string time = 10;
144  inline bool has_time() const;
145  inline void clear_time();
146  static const int kTimeFieldNumber = 10;
147  inline const ::std::string& time() const;
148  inline void set_time(const ::std::string& value);
149  inline void set_time(const char* value);
150  inline void set_time(const char* value, size_t size);
151  inline ::std::string* mutable_time();
152  inline ::std::string* release_time();
153  inline void set_allocated_time(::std::string* time);
154 
155  // required string source_platform = 11;
156  inline bool has_source_platform() const;
157  inline void clear_source_platform();
158  static const int kSourcePlatformFieldNumber = 11;
159  inline const ::std::string& source_platform() const;
160  inline void set_source_platform(const ::std::string& value);
161  inline void set_source_platform(const char* value);
162  inline void set_source_platform(const char* value, size_t size);
163  inline ::std::string* mutable_source_platform();
164  inline ::std::string* release_source_platform();
165  inline void set_allocated_source_platform(::std::string* source_platform);
166 
167  // optional string source_app = 12;
168  inline bool has_source_app() const;
169  inline void clear_source_app();
170  static const int kSourceAppFieldNumber = 12;
171  inline const ::std::string& source_app() const;
172  inline void set_source_app(const ::std::string& value);
173  inline void set_source_app(const char* value);
174  inline void set_source_app(const char* value, size_t size);
175  inline ::std::string* mutable_source_app();
176  inline ::std::string* release_source_app();
177  inline void set_allocated_source_app(::std::string* source_app);
178 
179  // optional .Header.PublishDestination dest_type = 13 [default = PUBLISH_SELF];
180  inline bool has_dest_type() const;
181  inline void clear_dest_type();
182  static const int kDestTypeFieldNumber = 13;
183  inline ::Header_PublishDestination dest_type() const;
184  inline void set_dest_type(::Header_PublishDestination value);
185 
186  // optional string dest_platform = 14;
187  inline bool has_dest_platform() const;
188  inline void clear_dest_platform();
189  static const int kDestPlatformFieldNumber = 14;
190  inline const ::std::string& dest_platform() const;
191  inline void set_dest_platform(const ::std::string& value);
192  inline void set_dest_platform(const char* value);
193  inline void set_dest_platform(const char* value, size_t size);
194  inline ::std::string* mutable_dest_platform();
195  inline ::std::string* release_dest_platform();
196  inline void set_allocated_dest_platform(::std::string* dest_platform);
197 
198  // @@protoc_insertion_point(class_scope:Header)
199  private:
200  inline void set_has_time();
201  inline void clear_has_time();
202  inline void set_has_source_platform();
203  inline void clear_has_source_platform();
204  inline void set_has_source_app();
205  inline void clear_has_source_app();
206  inline void set_has_dest_type();
207  inline void clear_has_dest_type();
208  inline void set_has_dest_platform();
209  inline void clear_has_dest_platform();
210 
211  ::google::protobuf::UnknownFieldSet _unknown_fields_;
212 
213  ::google::protobuf::uint32 _has_bits_[1];
214  mutable int _cached_size_;
215  ::std::string* time_;
216  ::std::string* source_platform_;
217  ::std::string* source_app_;
218  ::std::string* dest_platform_;
219  int dest_type_;
220  friend void protobuf_AddDesc_goby_2fpb_2fprotobuf_2fheader_2eproto();
221  friend void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2fheader_2eproto();
222  friend void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2fheader_2eproto();
223 
224  void InitAsDefaultInstance();
225  static Header* default_instance_;
226 };
227 // ===================================================================
228 
229 
230 // ===================================================================
231 
232 // Header
233 
234 // required string time = 10;
235 inline bool Header::has_time() const {
236  return (_has_bits_[0] & 0x00000001u) != 0;
237 }
238 inline void Header::set_has_time() {
239  _has_bits_[0] |= 0x00000001u;
240 }
241 inline void Header::clear_has_time() {
242  _has_bits_[0] &= ~0x00000001u;
243 }
244 inline void Header::clear_time() {
245  if (time_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
246  time_->clear();
247  }
248  clear_has_time();
249 }
250 inline const ::std::string& Header::time() const {
251  // @@protoc_insertion_point(field_get:Header.time)
252  return *time_;
253 }
254 inline void Header::set_time(const ::std::string& value) {
255  set_has_time();
256  if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
257  time_ = new ::std::string;
258  }
259  time_->assign(value);
260  // @@protoc_insertion_point(field_set:Header.time)
261 }
262 inline void Header::set_time(const char* value) {
263  set_has_time();
264  if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
265  time_ = new ::std::string;
266  }
267  time_->assign(value);
268  // @@protoc_insertion_point(field_set_char:Header.time)
269 }
270 inline void Header::set_time(const char* value, size_t size) {
271  set_has_time();
272  if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
273  time_ = new ::std::string;
274  }
275  time_->assign(reinterpret_cast<const char*>(value), size);
276  // @@protoc_insertion_point(field_set_pointer:Header.time)
277 }
278 inline ::std::string* Header::mutable_time() {
279  set_has_time();
280  if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
281  time_ = new ::std::string;
282  }
283  // @@protoc_insertion_point(field_mutable:Header.time)
284  return time_;
285 }
286 inline ::std::string* Header::release_time() {
287  clear_has_time();
288  if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
289  return NULL;
290  } else {
291  ::std::string* temp = time_;
292  time_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293  return temp;
294  }
295 }
296 inline void Header::set_allocated_time(::std::string* time) {
297  if (time_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
298  delete time_;
299  }
300  if (time) {
301  set_has_time();
302  time_ = time;
303  } else {
304  clear_has_time();
305  time_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
306  }
307  // @@protoc_insertion_point(field_set_allocated:Header.time)
308 }
309 
310 // required string source_platform = 11;
311 inline bool Header::has_source_platform() const {
312  return (_has_bits_[0] & 0x00000002u) != 0;
313 }
314 inline void Header::set_has_source_platform() {
315  _has_bits_[0] |= 0x00000002u;
316 }
317 inline void Header::clear_has_source_platform() {
318  _has_bits_[0] &= ~0x00000002u;
319 }
320 inline void Header::clear_source_platform() {
321  if (source_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
322  source_platform_->clear();
323  }
324  clear_has_source_platform();
325 }
326 inline const ::std::string& Header::source_platform() const {
327  // @@protoc_insertion_point(field_get:Header.source_platform)
328  return *source_platform_;
329 }
330 inline void Header::set_source_platform(const ::std::string& value) {
331  set_has_source_platform();
332  if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
333  source_platform_ = new ::std::string;
334  }
335  source_platform_->assign(value);
336  // @@protoc_insertion_point(field_set:Header.source_platform)
337 }
338 inline void Header::set_source_platform(const char* value) {
339  set_has_source_platform();
340  if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
341  source_platform_ = new ::std::string;
342  }
343  source_platform_->assign(value);
344  // @@protoc_insertion_point(field_set_char:Header.source_platform)
345 }
346 inline void Header::set_source_platform(const char* value, size_t size) {
347  set_has_source_platform();
348  if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
349  source_platform_ = new ::std::string;
350  }
351  source_platform_->assign(reinterpret_cast<const char*>(value), size);
352  // @@protoc_insertion_point(field_set_pointer:Header.source_platform)
353 }
354 inline ::std::string* Header::mutable_source_platform() {
355  set_has_source_platform();
356  if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
357  source_platform_ = new ::std::string;
358  }
359  // @@protoc_insertion_point(field_mutable:Header.source_platform)
360  return source_platform_;
361 }
362 inline ::std::string* Header::release_source_platform() {
363  clear_has_source_platform();
364  if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
365  return NULL;
366  } else {
367  ::std::string* temp = source_platform_;
368  source_platform_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
369  return temp;
370  }
371 }
372 inline void Header::set_allocated_source_platform(::std::string* source_platform) {
373  if (source_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
374  delete source_platform_;
375  }
376  if (source_platform) {
377  set_has_source_platform();
378  source_platform_ = source_platform;
379  } else {
380  clear_has_source_platform();
381  source_platform_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
382  }
383  // @@protoc_insertion_point(field_set_allocated:Header.source_platform)
384 }
385 
386 // optional string source_app = 12;
387 inline bool Header::has_source_app() const {
388  return (_has_bits_[0] & 0x00000004u) != 0;
389 }
390 inline void Header::set_has_source_app() {
391  _has_bits_[0] |= 0x00000004u;
392 }
393 inline void Header::clear_has_source_app() {
394  _has_bits_[0] &= ~0x00000004u;
395 }
396 inline void Header::clear_source_app() {
397  if (source_app_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
398  source_app_->clear();
399  }
400  clear_has_source_app();
401 }
402 inline const ::std::string& Header::source_app() const {
403  // @@protoc_insertion_point(field_get:Header.source_app)
404  return *source_app_;
405 }
406 inline void Header::set_source_app(const ::std::string& value) {
407  set_has_source_app();
408  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
409  source_app_ = new ::std::string;
410  }
411  source_app_->assign(value);
412  // @@protoc_insertion_point(field_set:Header.source_app)
413 }
414 inline void Header::set_source_app(const char* value) {
415  set_has_source_app();
416  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
417  source_app_ = new ::std::string;
418  }
419  source_app_->assign(value);
420  // @@protoc_insertion_point(field_set_char:Header.source_app)
421 }
422 inline void Header::set_source_app(const char* value, size_t size) {
423  set_has_source_app();
424  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
425  source_app_ = new ::std::string;
426  }
427  source_app_->assign(reinterpret_cast<const char*>(value), size);
428  // @@protoc_insertion_point(field_set_pointer:Header.source_app)
429 }
430 inline ::std::string* Header::mutable_source_app() {
431  set_has_source_app();
432  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
433  source_app_ = new ::std::string;
434  }
435  // @@protoc_insertion_point(field_mutable:Header.source_app)
436  return source_app_;
437 }
438 inline ::std::string* Header::release_source_app() {
439  clear_has_source_app();
440  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
441  return NULL;
442  } else {
443  ::std::string* temp = source_app_;
444  source_app_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
445  return temp;
446  }
447 }
448 inline void Header::set_allocated_source_app(::std::string* source_app) {
449  if (source_app_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
450  delete source_app_;
451  }
452  if (source_app) {
453  set_has_source_app();
454  source_app_ = source_app;
455  } else {
456  clear_has_source_app();
457  source_app_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
458  }
459  // @@protoc_insertion_point(field_set_allocated:Header.source_app)
460 }
461 
462 // optional .Header.PublishDestination dest_type = 13 [default = PUBLISH_SELF];
463 inline bool Header::has_dest_type() const {
464  return (_has_bits_[0] & 0x00000008u) != 0;
465 }
466 inline void Header::set_has_dest_type() {
467  _has_bits_[0] |= 0x00000008u;
468 }
469 inline void Header::clear_has_dest_type() {
470  _has_bits_[0] &= ~0x00000008u;
471 }
472 inline void Header::clear_dest_type() {
473  dest_type_ = 1;
474  clear_has_dest_type();
475 }
476 inline ::Header_PublishDestination Header::dest_type() const {
477  // @@protoc_insertion_point(field_get:Header.dest_type)
478  return static_cast< ::Header_PublishDestination >(dest_type_);
479 }
480 inline void Header::set_dest_type(::Header_PublishDestination value) {
481  assert(::Header_PublishDestination_IsValid(value));
482  set_has_dest_type();
483  dest_type_ = value;
484  // @@protoc_insertion_point(field_set:Header.dest_type)
485 }
486 
487 // optional string dest_platform = 14;
488 inline bool Header::has_dest_platform() const {
489  return (_has_bits_[0] & 0x00000010u) != 0;
490 }
491 inline void Header::set_has_dest_platform() {
492  _has_bits_[0] |= 0x00000010u;
493 }
494 inline void Header::clear_has_dest_platform() {
495  _has_bits_[0] &= ~0x00000010u;
496 }
497 inline void Header::clear_dest_platform() {
498  if (dest_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
499  dest_platform_->clear();
500  }
501  clear_has_dest_platform();
502 }
503 inline const ::std::string& Header::dest_platform() const {
504  // @@protoc_insertion_point(field_get:Header.dest_platform)
505  return *dest_platform_;
506 }
507 inline void Header::set_dest_platform(const ::std::string& value) {
508  set_has_dest_platform();
509  if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
510  dest_platform_ = new ::std::string;
511  }
512  dest_platform_->assign(value);
513  // @@protoc_insertion_point(field_set:Header.dest_platform)
514 }
515 inline void Header::set_dest_platform(const char* value) {
516  set_has_dest_platform();
517  if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
518  dest_platform_ = new ::std::string;
519  }
520  dest_platform_->assign(value);
521  // @@protoc_insertion_point(field_set_char:Header.dest_platform)
522 }
523 inline void Header::set_dest_platform(const char* value, size_t size) {
524  set_has_dest_platform();
525  if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
526  dest_platform_ = new ::std::string;
527  }
528  dest_platform_->assign(reinterpret_cast<const char*>(value), size);
529  // @@protoc_insertion_point(field_set_pointer:Header.dest_platform)
530 }
531 inline ::std::string* Header::mutable_dest_platform() {
532  set_has_dest_platform();
533  if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
534  dest_platform_ = new ::std::string;
535  }
536  // @@protoc_insertion_point(field_mutable:Header.dest_platform)
537  return dest_platform_;
538 }
539 inline ::std::string* Header::release_dest_platform() {
540  clear_has_dest_platform();
541  if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
542  return NULL;
543  } else {
544  ::std::string* temp = dest_platform_;
545  dest_platform_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
546  return temp;
547  }
548 }
549 inline void Header::set_allocated_dest_platform(::std::string* dest_platform) {
550  if (dest_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
551  delete dest_platform_;
552  }
553  if (dest_platform) {
554  set_has_dest_platform();
555  dest_platform_ = dest_platform;
556  } else {
557  clear_has_dest_platform();
558  dest_platform_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
559  }
560  // @@protoc_insertion_point(field_set_allocated:Header.dest_platform)
561 }
562 
563 
564 // @@protoc_insertion_point(namespace_scope)
565 
566 #ifndef SWIG
567 namespace google {
568 namespace protobuf {
569 
570 template <> struct is_proto_enum< ::Header_PublishDestination> : ::google::protobuf::internal::true_type {};
571 template <>
572 inline const EnumDescriptor* GetEnumDescriptor< ::Header_PublishDestination>() {
573  return ::Header_PublishDestination_descriptor();
574 }
575 
576 } // namespace google
577 } // namespace protobuf
578 #endif // SWIG
579 
580 // @@protoc_insertion_point(global_scope)
581 
582 #endif // PROTOBUF_goby_2fpb_2fprotobuf_2fheader_2eproto__INCLUDED