Goby v2
header.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/acomms/dccl3/header.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2facomms_2fdccl3_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_2ftest_2facomms_2fdccl3_2fheader_2eproto();
38 void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
39 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl3_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 uint64 time = 10;
144  inline bool has_time() const;
145  inline void clear_time();
146  static const int kTimeFieldNumber = 10;
147  inline ::google::protobuf::uint64 time() const;
148  inline void set_time(::google::protobuf::uint64 value);
149 
150  // required uint32 source_platform = 11;
151  inline bool has_source_platform() const;
152  inline void clear_source_platform();
153  static const int kSourcePlatformFieldNumber = 11;
154  inline ::google::protobuf::uint32 source_platform() const;
155  inline void set_source_platform(::google::protobuf::uint32 value);
156 
157  // optional string source_app = 12;
158  inline bool has_source_app() const;
159  inline void clear_source_app();
160  static const int kSourceAppFieldNumber = 12;
161  inline const ::std::string& source_app() const;
162  inline void set_source_app(const ::std::string& value);
163  inline void set_source_app(const char* value);
164  inline void set_source_app(const char* value, size_t size);
165  inline ::std::string* mutable_source_app();
166  inline ::std::string* release_source_app();
167  inline void set_allocated_source_app(::std::string* source_app);
168 
169  // optional .Header.PublishDestination dest_type = 13 [default = PUBLISH_SELF];
170  inline bool has_dest_type() const;
171  inline void clear_dest_type();
172  static const int kDestTypeFieldNumber = 13;
173  inline ::Header_PublishDestination dest_type() const;
174  inline void set_dest_type(::Header_PublishDestination value);
175 
176  // optional uint32 dest_platform = 14;
177  inline bool has_dest_platform() const;
178  inline void clear_dest_platform();
179  static const int kDestPlatformFieldNumber = 14;
180  inline ::google::protobuf::uint32 dest_platform() const;
181  inline void set_dest_platform(::google::protobuf::uint32 value);
182 
183  // @@protoc_insertion_point(class_scope:Header)
184  private:
185  inline void set_has_time();
186  inline void clear_has_time();
187  inline void set_has_source_platform();
188  inline void clear_has_source_platform();
189  inline void set_has_source_app();
190  inline void clear_has_source_app();
191  inline void set_has_dest_type();
192  inline void clear_has_dest_type();
193  inline void set_has_dest_platform();
194  inline void clear_has_dest_platform();
195 
196  ::google::protobuf::UnknownFieldSet _unknown_fields_;
197 
198  ::google::protobuf::uint32 _has_bits_[1];
199  mutable int _cached_size_;
200  ::google::protobuf::uint64 time_;
201  ::std::string* source_app_;
202  ::google::protobuf::uint32 source_platform_;
203  int dest_type_;
204  ::google::protobuf::uint32 dest_platform_;
205  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
206  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
207  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
208 
209  void InitAsDefaultInstance();
210  static Header* default_instance_;
211 };
212 // ===================================================================
213 
214 
215 // ===================================================================
216 
217 // Header
218 
219 // required uint64 time = 10;
220 inline bool Header::has_time() const {
221  return (_has_bits_[0] & 0x00000001u) != 0;
222 }
223 inline void Header::set_has_time() {
224  _has_bits_[0] |= 0x00000001u;
225 }
226 inline void Header::clear_has_time() {
227  _has_bits_[0] &= ~0x00000001u;
228 }
229 inline void Header::clear_time() {
230  time_ = GOOGLE_ULONGLONG(0);
231  clear_has_time();
232 }
233 inline ::google::protobuf::uint64 Header::time() const {
234  // @@protoc_insertion_point(field_get:Header.time)
235  return time_;
236 }
237 inline void Header::set_time(::google::protobuf::uint64 value) {
238  set_has_time();
239  time_ = value;
240  // @@protoc_insertion_point(field_set:Header.time)
241 }
242 
243 // required uint32 source_platform = 11;
244 inline bool Header::has_source_platform() const {
245  return (_has_bits_[0] & 0x00000002u) != 0;
246 }
247 inline void Header::set_has_source_platform() {
248  _has_bits_[0] |= 0x00000002u;
249 }
250 inline void Header::clear_has_source_platform() {
251  _has_bits_[0] &= ~0x00000002u;
252 }
253 inline void Header::clear_source_platform() {
254  source_platform_ = 0u;
255  clear_has_source_platform();
256 }
257 inline ::google::protobuf::uint32 Header::source_platform() const {
258  // @@protoc_insertion_point(field_get:Header.source_platform)
259  return source_platform_;
260 }
261 inline void Header::set_source_platform(::google::protobuf::uint32 value) {
262  set_has_source_platform();
263  source_platform_ = value;
264  // @@protoc_insertion_point(field_set:Header.source_platform)
265 }
266 
267 // optional string source_app = 12;
268 inline bool Header::has_source_app() const {
269  return (_has_bits_[0] & 0x00000004u) != 0;
270 }
271 inline void Header::set_has_source_app() {
272  _has_bits_[0] |= 0x00000004u;
273 }
274 inline void Header::clear_has_source_app() {
275  _has_bits_[0] &= ~0x00000004u;
276 }
277 inline void Header::clear_source_app() {
278  if (source_app_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
279  source_app_->clear();
280  }
281  clear_has_source_app();
282 }
283 inline const ::std::string& Header::source_app() const {
284  // @@protoc_insertion_point(field_get:Header.source_app)
285  return *source_app_;
286 }
287 inline void Header::set_source_app(const ::std::string& value) {
288  set_has_source_app();
289  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
290  source_app_ = new ::std::string;
291  }
292  source_app_->assign(value);
293  // @@protoc_insertion_point(field_set:Header.source_app)
294 }
295 inline void Header::set_source_app(const char* value) {
296  set_has_source_app();
297  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
298  source_app_ = new ::std::string;
299  }
300  source_app_->assign(value);
301  // @@protoc_insertion_point(field_set_char:Header.source_app)
302 }
303 inline void Header::set_source_app(const char* value, size_t size) {
304  set_has_source_app();
305  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
306  source_app_ = new ::std::string;
307  }
308  source_app_->assign(reinterpret_cast<const char*>(value), size);
309  // @@protoc_insertion_point(field_set_pointer:Header.source_app)
310 }
311 inline ::std::string* Header::mutable_source_app() {
312  set_has_source_app();
313  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
314  source_app_ = new ::std::string;
315  }
316  // @@protoc_insertion_point(field_mutable:Header.source_app)
317  return source_app_;
318 }
319 inline ::std::string* Header::release_source_app() {
320  clear_has_source_app();
321  if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
322  return NULL;
323  } else {
324  ::std::string* temp = source_app_;
325  source_app_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
326  return temp;
327  }
328 }
329 inline void Header::set_allocated_source_app(::std::string* source_app) {
330  if (source_app_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
331  delete source_app_;
332  }
333  if (source_app) {
334  set_has_source_app();
335  source_app_ = source_app;
336  } else {
337  clear_has_source_app();
338  source_app_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
339  }
340  // @@protoc_insertion_point(field_set_allocated:Header.source_app)
341 }
342 
343 // optional .Header.PublishDestination dest_type = 13 [default = PUBLISH_SELF];
344 inline bool Header::has_dest_type() const {
345  return (_has_bits_[0] & 0x00000008u) != 0;
346 }
347 inline void Header::set_has_dest_type() {
348  _has_bits_[0] |= 0x00000008u;
349 }
350 inline void Header::clear_has_dest_type() {
351  _has_bits_[0] &= ~0x00000008u;
352 }
353 inline void Header::clear_dest_type() {
354  dest_type_ = 1;
355  clear_has_dest_type();
356 }
357 inline ::Header_PublishDestination Header::dest_type() const {
358  // @@protoc_insertion_point(field_get:Header.dest_type)
359  return static_cast< ::Header_PublishDestination >(dest_type_);
360 }
361 inline void Header::set_dest_type(::Header_PublishDestination value) {
362  assert(::Header_PublishDestination_IsValid(value));
363  set_has_dest_type();
364  dest_type_ = value;
365  // @@protoc_insertion_point(field_set:Header.dest_type)
366 }
367 
368 // optional uint32 dest_platform = 14;
369 inline bool Header::has_dest_platform() const {
370  return (_has_bits_[0] & 0x00000010u) != 0;
371 }
372 inline void Header::set_has_dest_platform() {
373  _has_bits_[0] |= 0x00000010u;
374 }
375 inline void Header::clear_has_dest_platform() {
376  _has_bits_[0] &= ~0x00000010u;
377 }
378 inline void Header::clear_dest_platform() {
379  dest_platform_ = 0u;
380  clear_has_dest_platform();
381 }
382 inline ::google::protobuf::uint32 Header::dest_platform() const {
383  // @@protoc_insertion_point(field_get:Header.dest_platform)
384  return dest_platform_;
385 }
386 inline void Header::set_dest_platform(::google::protobuf::uint32 value) {
387  set_has_dest_platform();
388  dest_platform_ = value;
389  // @@protoc_insertion_point(field_set:Header.dest_platform)
390 }
391 
392 
393 // @@protoc_insertion_point(namespace_scope)
394 
395 #ifndef SWIG
396 namespace google {
397 namespace protobuf {
398 
399 template <> struct is_proto_enum< ::Header_PublishDestination> : ::google::protobuf::internal::true_type {};
400 template <>
401 inline const EnumDescriptor* GetEnumDescriptor< ::Header_PublishDestination>() {
402  return ::Header_PublishDestination_descriptor();
403 }
404 
405 } // namespace google
406 } // namespace protobuf
407 #endif // SWIG
408 
409 // @@protoc_insertion_point(global_scope)
410 
411 #endif // PROTOBUF_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto__INCLUDED