Goby v2
test.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/acomms/dccl8/test.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2facomms_2fdccl8_2ftest_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 "dccl/option_extensions.pb.h"
28 #include "goby/test/acomms/dccl3/header.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_2ftest_2facomms_2fdccl8_2ftest_2eproto();
37 void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
38 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
39 
40 class GobyMessage1;
41 class GobyMessage2;
42 class GobyMessage3;
43 
44 // ===================================================================
45 
46 class GobyMessage1 : public ::google::protobuf::Message {
47  public:
48  GobyMessage1();
49  virtual ~GobyMessage1();
50 
51  GobyMessage1(const GobyMessage1& from);
52 
53  inline GobyMessage1& operator=(const GobyMessage1& from) {
54  CopyFrom(from);
55  return *this;
56  }
57 
58  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
59  return _unknown_fields_;
60  }
61 
62  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
63  return &_unknown_fields_;
64  }
65 
66  static const ::google::protobuf::Descriptor* descriptor();
67  static const GobyMessage1& default_instance();
68 
69  void Swap(GobyMessage1* other);
70 
71  // implements Message ----------------------------------------------
72 
73  GobyMessage1* New() const;
74  void CopyFrom(const ::google::protobuf::Message& from);
75  void MergeFrom(const ::google::protobuf::Message& from);
76  void CopyFrom(const GobyMessage1& from);
77  void MergeFrom(const GobyMessage1& from);
78  void Clear();
79  bool IsInitialized() const;
80 
81  int ByteSize() const;
82  bool MergePartialFromCodedStream(
83  ::google::protobuf::io::CodedInputStream* input);
84  void SerializeWithCachedSizes(
85  ::google::protobuf::io::CodedOutputStream* output) const;
86  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
87  int GetCachedSize() const { return _cached_size_; }
88  private:
89  void SharedCtor();
90  void SharedDtor();
91  void SetCachedSize(int size) const;
92  public:
93  ::google::protobuf::Metadata GetMetadata() const;
94 
95  // nested types ----------------------------------------------------
96 
97  // accessors -------------------------------------------------------
98 
99  // optional int32 int32_val = 1;
100  inline bool has_int32_val() const;
101  inline void clear_int32_val();
102  static const int kInt32ValFieldNumber = 1;
103  inline ::google::protobuf::int32 int32_val() const;
104  inline void set_int32_val(::google::protobuf::int32 value);
105 
106  enum DCCLParameters { DCCL_ID = 4, DCCL_MAX_BYTES = 32 };
107  // @@protoc_insertion_point(class_scope:GobyMessage1)
108  private:
109  inline void set_has_int32_val();
110  inline void clear_has_int32_val();
111 
112  ::google::protobuf::UnknownFieldSet _unknown_fields_;
113 
114  ::google::protobuf::uint32 _has_bits_[1];
115  mutable int _cached_size_;
116  ::google::protobuf::int32 int32_val_;
117  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
118  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
119  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
120 
121  void InitAsDefaultInstance();
122  static GobyMessage1* default_instance_;
123 };
124 // -------------------------------------------------------------------
125 
126 class GobyMessage2 : public ::google::protobuf::Message {
127  public:
128  GobyMessage2();
129  virtual ~GobyMessage2();
130 
131  GobyMessage2(const GobyMessage2& from);
132 
133  inline GobyMessage2& operator=(const GobyMessage2& from) {
134  CopyFrom(from);
135  return *this;
136  }
137 
138  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
139  return _unknown_fields_;
140  }
141 
142  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
143  return &_unknown_fields_;
144  }
145 
146  static const ::google::protobuf::Descriptor* descriptor();
147  static const GobyMessage2& default_instance();
148 
149  void Swap(GobyMessage2* other);
150 
151  // implements Message ----------------------------------------------
152 
153  GobyMessage2* New() const;
154  void CopyFrom(const ::google::protobuf::Message& from);
155  void MergeFrom(const ::google::protobuf::Message& from);
156  void CopyFrom(const GobyMessage2& from);
157  void MergeFrom(const GobyMessage2& from);
158  void Clear();
159  bool IsInitialized() const;
160 
161  int ByteSize() const;
162  bool MergePartialFromCodedStream(
163  ::google::protobuf::io::CodedInputStream* input);
164  void SerializeWithCachedSizes(
165  ::google::protobuf::io::CodedOutputStream* output) const;
166  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
167  int GetCachedSize() const { return _cached_size_; }
168  private:
169  void SharedCtor();
170  void SharedDtor();
171  void SetCachedSize(int size) const;
172  public:
173  ::google::protobuf::Metadata GetMetadata() const;
174 
175  // nested types ----------------------------------------------------
176 
177  // accessors -------------------------------------------------------
178 
179  // optional bool bool_val = 1;
180  inline bool has_bool_val() const;
181  inline void clear_bool_val();
182  static const int kBoolValFieldNumber = 1;
183  inline bool bool_val() const;
184  inline void set_bool_val(bool value);
185 
186  enum DCCLParameters { DCCL_ID = 5, DCCL_MAX_BYTES = 32 };
187  // @@protoc_insertion_point(class_scope:GobyMessage2)
188  private:
189  inline void set_has_bool_val();
190  inline void clear_has_bool_val();
191 
192  ::google::protobuf::UnknownFieldSet _unknown_fields_;
193 
194  ::google::protobuf::uint32 _has_bits_[1];
195  mutable int _cached_size_;
196  bool bool_val_;
197  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
198  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
199  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
200 
201  void InitAsDefaultInstance();
202  static GobyMessage2* default_instance_;
203 };
204 // -------------------------------------------------------------------
205 
206 class GobyMessage3 : public ::google::protobuf::Message {
207  public:
208  GobyMessage3();
209  virtual ~GobyMessage3();
210 
211  GobyMessage3(const GobyMessage3& from);
212 
213  inline GobyMessage3& operator=(const GobyMessage3& from) {
214  CopyFrom(from);
215  return *this;
216  }
217 
218  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
219  return _unknown_fields_;
220  }
221 
222  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
223  return &_unknown_fields_;
224  }
225 
226  static const ::google::protobuf::Descriptor* descriptor();
227  static const GobyMessage3& default_instance();
228 
229  void Swap(GobyMessage3* other);
230 
231  // implements Message ----------------------------------------------
232 
233  GobyMessage3* New() const;
234  void CopyFrom(const ::google::protobuf::Message& from);
235  void MergeFrom(const ::google::protobuf::Message& from);
236  void CopyFrom(const GobyMessage3& from);
237  void MergeFrom(const GobyMessage3& from);
238  void Clear();
239  bool IsInitialized() const;
240 
241  int ByteSize() const;
242  bool MergePartialFromCodedStream(
243  ::google::protobuf::io::CodedInputStream* input);
244  void SerializeWithCachedSizes(
245  ::google::protobuf::io::CodedOutputStream* output) const;
246  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
247  int GetCachedSize() const { return _cached_size_; }
248  private:
249  void SharedCtor();
250  void SharedDtor();
251  void SetCachedSize(int size) const;
252  public:
253  ::google::protobuf::Metadata GetMetadata() const;
254 
255  // nested types ----------------------------------------------------
256 
257  // accessors -------------------------------------------------------
258 
259  // optional string string_val = 1;
260  inline bool has_string_val() const;
261  inline void clear_string_val();
262  static const int kStringValFieldNumber = 1;
263  inline const ::std::string& string_val() const;
264  inline void set_string_val(const ::std::string& value);
265  inline void set_string_val(const char* value);
266  inline void set_string_val(const char* value, size_t size);
267  inline ::std::string* mutable_string_val();
268  inline ::std::string* release_string_val();
269  inline void set_allocated_string_val(::std::string* string_val);
270 
271  enum DCCLParameters { DCCL_ID = 6, DCCL_MAX_BYTES = 32 };
272  // @@protoc_insertion_point(class_scope:GobyMessage3)
273  private:
274  inline void set_has_string_val();
275  inline void clear_has_string_val();
276 
277  ::google::protobuf::UnknownFieldSet _unknown_fields_;
278 
279  ::google::protobuf::uint32 _has_bits_[1];
280  mutable int _cached_size_;
281  ::std::string* string_val_;
282  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
283  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
284  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto();
285 
286  void InitAsDefaultInstance();
287  static GobyMessage3* default_instance_;
288 };
289 // ===================================================================
290 
291 
292 // ===================================================================
293 
294 // GobyMessage1
295 
296 // optional int32 int32_val = 1;
297 inline bool GobyMessage1::has_int32_val() const {
298  return (_has_bits_[0] & 0x00000001u) != 0;
299 }
300 inline void GobyMessage1::set_has_int32_val() {
301  _has_bits_[0] |= 0x00000001u;
302 }
303 inline void GobyMessage1::clear_has_int32_val() {
304  _has_bits_[0] &= ~0x00000001u;
305 }
306 inline void GobyMessage1::clear_int32_val() {
307  int32_val_ = 0;
308  clear_has_int32_val();
309 }
310 inline ::google::protobuf::int32 GobyMessage1::int32_val() const {
311  // @@protoc_insertion_point(field_get:GobyMessage1.int32_val)
312  return int32_val_;
313 }
314 inline void GobyMessage1::set_int32_val(::google::protobuf::int32 value) {
315  set_has_int32_val();
316  int32_val_ = value;
317  // @@protoc_insertion_point(field_set:GobyMessage1.int32_val)
318 }
319 
320 // -------------------------------------------------------------------
321 
322 // GobyMessage2
323 
324 // optional bool bool_val = 1;
325 inline bool GobyMessage2::has_bool_val() const {
326  return (_has_bits_[0] & 0x00000001u) != 0;
327 }
328 inline void GobyMessage2::set_has_bool_val() {
329  _has_bits_[0] |= 0x00000001u;
330 }
331 inline void GobyMessage2::clear_has_bool_val() {
332  _has_bits_[0] &= ~0x00000001u;
333 }
334 inline void GobyMessage2::clear_bool_val() {
335  bool_val_ = false;
336  clear_has_bool_val();
337 }
338 inline bool GobyMessage2::bool_val() const {
339  // @@protoc_insertion_point(field_get:GobyMessage2.bool_val)
340  return bool_val_;
341 }
342 inline void GobyMessage2::set_bool_val(bool value) {
343  set_has_bool_val();
344  bool_val_ = value;
345  // @@protoc_insertion_point(field_set:GobyMessage2.bool_val)
346 }
347 
348 // -------------------------------------------------------------------
349 
350 // GobyMessage3
351 
352 // optional string string_val = 1;
353 inline bool GobyMessage3::has_string_val() const {
354  return (_has_bits_[0] & 0x00000001u) != 0;
355 }
356 inline void GobyMessage3::set_has_string_val() {
357  _has_bits_[0] |= 0x00000001u;
358 }
359 inline void GobyMessage3::clear_has_string_val() {
360  _has_bits_[0] &= ~0x00000001u;
361 }
362 inline void GobyMessage3::clear_string_val() {
363  if (string_val_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
364  string_val_->clear();
365  }
366  clear_has_string_val();
367 }
368 inline const ::std::string& GobyMessage3::string_val() const {
369  // @@protoc_insertion_point(field_get:GobyMessage3.string_val)
370  return *string_val_;
371 }
372 inline void GobyMessage3::set_string_val(const ::std::string& value) {
373  set_has_string_val();
374  if (string_val_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
375  string_val_ = new ::std::string;
376  }
377  string_val_->assign(value);
378  // @@protoc_insertion_point(field_set:GobyMessage3.string_val)
379 }
380 inline void GobyMessage3::set_string_val(const char* value) {
381  set_has_string_val();
382  if (string_val_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
383  string_val_ = new ::std::string;
384  }
385  string_val_->assign(value);
386  // @@protoc_insertion_point(field_set_char:GobyMessage3.string_val)
387 }
388 inline void GobyMessage3::set_string_val(const char* value, size_t size) {
389  set_has_string_val();
390  if (string_val_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
391  string_val_ = new ::std::string;
392  }
393  string_val_->assign(reinterpret_cast<const char*>(value), size);
394  // @@protoc_insertion_point(field_set_pointer:GobyMessage3.string_val)
395 }
396 inline ::std::string* GobyMessage3::mutable_string_val() {
397  set_has_string_val();
398  if (string_val_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
399  string_val_ = new ::std::string;
400  }
401  // @@protoc_insertion_point(field_mutable:GobyMessage3.string_val)
402  return string_val_;
403 }
404 inline ::std::string* GobyMessage3::release_string_val() {
405  clear_has_string_val();
406  if (string_val_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
407  return NULL;
408  } else {
409  ::std::string* temp = string_val_;
410  string_val_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
411  return temp;
412  }
413 }
414 inline void GobyMessage3::set_allocated_string_val(::std::string* string_val) {
415  if (string_val_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
416  delete string_val_;
417  }
418  if (string_val) {
419  set_has_string_val();
420  string_val_ = string_val;
421  } else {
422  clear_has_string_val();
423  string_val_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
424  }
425  // @@protoc_insertion_point(field_set_allocated:GobyMessage3.string_val)
426 }
427 
428 
429 // @@protoc_insertion_point(namespace_scope)
430 
431 #ifndef SWIG
432 namespace google {
433 namespace protobuf {
434 
435 
436 } // namespace google
437 } // namespace protobuf
438 #endif // SWIG
439 
440 // @@protoc_insertion_point(global_scope)
441 
442 #endif // PROTOBUF_goby_2ftest_2facomms_2fdccl8_2ftest_2eproto__INCLUDED