Goby v2
test.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/acomms/dccl2/test.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2facomms_2fdccl2_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 <boost/units/quantity.hpp>
29 #include <boost/units/absolute.hpp>
30 #include <boost/units/dimensionless_type.hpp>
31 #include <boost/units/make_scaled_unit.hpp>
32 // @@protoc_insertion_point(includes)
33 
34 // Internal implementation detail -- do not call these.
35 void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
36 void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
37 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
38 
39 class CustomMsg;
40 class CustomMsg2;
41 
42 // ===================================================================
43 
44 class CustomMsg : public ::google::protobuf::Message {
45  public:
46  CustomMsg();
47  virtual ~CustomMsg();
48 
49  CustomMsg(const CustomMsg& from);
50 
51  inline CustomMsg& operator=(const CustomMsg& 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 CustomMsg& default_instance();
66 
67  void Swap(CustomMsg* other);
68 
69  // implements Message ----------------------------------------------
70 
71  CustomMsg* New() const;
72  void CopyFrom(const ::google::protobuf::Message& from);
73  void MergeFrom(const ::google::protobuf::Message& from);
74  void CopyFrom(const CustomMsg& from);
75  void MergeFrom(const CustomMsg& 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  // optional uint32 a = 1;
98  inline bool has_a() const;
99  inline void clear_a();
100  static const int kAFieldNumber = 1;
101  inline ::google::protobuf::uint32 a() const;
102  inline void set_a(::google::protobuf::uint32 value);
103 
104  // optional bool b = 2;
105  inline bool has_b() const;
106  inline void clear_b();
107  static const int kBFieldNumber = 2;
108  inline bool b() const;
109  inline void set_b(bool value);
110 
111  enum DCCLParameters { DCCL_ID = 3, DCCL_MAX_BYTES = 256 };
112  // @@protoc_insertion_point(class_scope:CustomMsg)
113  private:
114  inline void set_has_a();
115  inline void clear_has_a();
116  inline void set_has_b();
117  inline void clear_has_b();
118 
119  ::google::protobuf::UnknownFieldSet _unknown_fields_;
120 
121  ::google::protobuf::uint32 _has_bits_[1];
122  mutable int _cached_size_;
123  ::google::protobuf::uint32 a_;
124  bool b_;
125  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
126  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
127  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
128 
129  void InitAsDefaultInstance();
130  static CustomMsg* default_instance_;
131 };
132 // -------------------------------------------------------------------
133 
134 class CustomMsg2 : public ::google::protobuf::Message {
135  public:
136  CustomMsg2();
137  virtual ~CustomMsg2();
138 
139  CustomMsg2(const CustomMsg2& from);
140 
141  inline CustomMsg2& operator=(const CustomMsg2& from) {
142  CopyFrom(from);
143  return *this;
144  }
145 
146  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
147  return _unknown_fields_;
148  }
149 
150  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
151  return &_unknown_fields_;
152  }
153 
154  static const ::google::protobuf::Descriptor* descriptor();
155  static const CustomMsg2& default_instance();
156 
157  void Swap(CustomMsg2* other);
158 
159  // implements Message ----------------------------------------------
160 
161  CustomMsg2* New() const;
162  void CopyFrom(const ::google::protobuf::Message& from);
163  void MergeFrom(const ::google::protobuf::Message& from);
164  void CopyFrom(const CustomMsg2& from);
165  void MergeFrom(const CustomMsg2& from);
166  void Clear();
167  bool IsInitialized() const;
168 
169  int ByteSize() const;
170  bool MergePartialFromCodedStream(
171  ::google::protobuf::io::CodedInputStream* input);
172  void SerializeWithCachedSizes(
173  ::google::protobuf::io::CodedOutputStream* output) const;
174  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
175  int GetCachedSize() const { return _cached_size_; }
176  private:
177  void SharedCtor();
178  void SharedDtor();
179  void SetCachedSize(int size) const;
180  public:
181  ::google::protobuf::Metadata GetMetadata() const;
182 
183  // nested types ----------------------------------------------------
184 
185  // accessors -------------------------------------------------------
186 
187  // optional .CustomMsg msg = 1;
188  inline bool has_msg() const;
189  inline void clear_msg();
190  static const int kMsgFieldNumber = 1;
191  inline const ::CustomMsg& msg() const;
192  inline ::CustomMsg* mutable_msg();
193  inline ::CustomMsg* release_msg();
194  inline void set_allocated_msg(::CustomMsg* msg);
195 
196  // repeated int32 c = 3;
197  inline int c_size() const;
198  inline void clear_c();
199  static const int kCFieldNumber = 3;
200  inline ::google::protobuf::int32 c(int index) const;
201  inline void set_c(int index, ::google::protobuf::int32 value);
202  inline void add_c(::google::protobuf::int32 value);
203  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
204  c() const;
205  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
206  mutable_c();
207 
208  enum DCCLParameters { DCCL_ID = 4, DCCL_MAX_BYTES = 256 };
209  // @@protoc_insertion_point(class_scope:CustomMsg2)
210  private:
211  inline void set_has_msg();
212  inline void clear_has_msg();
213 
214  ::google::protobuf::UnknownFieldSet _unknown_fields_;
215 
216  ::google::protobuf::uint32 _has_bits_[1];
217  mutable int _cached_size_;
218  ::CustomMsg* msg_;
219  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > c_;
220  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
221  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
222  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
223 
224  void InitAsDefaultInstance();
225  static CustomMsg2* default_instance_;
226 };
227 // ===================================================================
228 
229 
230 // ===================================================================
231 
232 // CustomMsg
233 
234 // optional uint32 a = 1;
235 inline bool CustomMsg::has_a() const {
236  return (_has_bits_[0] & 0x00000001u) != 0;
237 }
238 inline void CustomMsg::set_has_a() {
239  _has_bits_[0] |= 0x00000001u;
240 }
241 inline void CustomMsg::clear_has_a() {
242  _has_bits_[0] &= ~0x00000001u;
243 }
244 inline void CustomMsg::clear_a() {
245  a_ = 0u;
246  clear_has_a();
247 }
248 inline ::google::protobuf::uint32 CustomMsg::a() const {
249  // @@protoc_insertion_point(field_get:CustomMsg.a)
250  return a_;
251 }
252 inline void CustomMsg::set_a(::google::protobuf::uint32 value) {
253  set_has_a();
254  a_ = value;
255  // @@protoc_insertion_point(field_set:CustomMsg.a)
256 }
257 
258 // optional bool b = 2;
259 inline bool CustomMsg::has_b() const {
260  return (_has_bits_[0] & 0x00000002u) != 0;
261 }
262 inline void CustomMsg::set_has_b() {
263  _has_bits_[0] |= 0x00000002u;
264 }
265 inline void CustomMsg::clear_has_b() {
266  _has_bits_[0] &= ~0x00000002u;
267 }
268 inline void CustomMsg::clear_b() {
269  b_ = false;
270  clear_has_b();
271 }
272 inline bool CustomMsg::b() const {
273  // @@protoc_insertion_point(field_get:CustomMsg.b)
274  return b_;
275 }
276 inline void CustomMsg::set_b(bool value) {
277  set_has_b();
278  b_ = value;
279  // @@protoc_insertion_point(field_set:CustomMsg.b)
280 }
281 
282 // -------------------------------------------------------------------
283 
284 // CustomMsg2
285 
286 // optional .CustomMsg msg = 1;
287 inline bool CustomMsg2::has_msg() const {
288  return (_has_bits_[0] & 0x00000001u) != 0;
289 }
290 inline void CustomMsg2::set_has_msg() {
291  _has_bits_[0] |= 0x00000001u;
292 }
293 inline void CustomMsg2::clear_has_msg() {
294  _has_bits_[0] &= ~0x00000001u;
295 }
296 inline void CustomMsg2::clear_msg() {
297  if (msg_ != NULL) msg_->::CustomMsg::Clear();
298  clear_has_msg();
299 }
300 inline const ::CustomMsg& CustomMsg2::msg() const {
301  // @@protoc_insertion_point(field_get:CustomMsg2.msg)
302  return msg_ != NULL ? *msg_ : *default_instance_->msg_;
303 }
304 inline ::CustomMsg* CustomMsg2::mutable_msg() {
305  set_has_msg();
306  if (msg_ == NULL) msg_ = new ::CustomMsg;
307  // @@protoc_insertion_point(field_mutable:CustomMsg2.msg)
308  return msg_;
309 }
310 inline ::CustomMsg* CustomMsg2::release_msg() {
311  clear_has_msg();
312  ::CustomMsg* temp = msg_;
313  msg_ = NULL;
314  return temp;
315 }
316 inline void CustomMsg2::set_allocated_msg(::CustomMsg* msg) {
317  delete msg_;
318  msg_ = msg;
319  if (msg) {
320  set_has_msg();
321  } else {
322  clear_has_msg();
323  }
324  // @@protoc_insertion_point(field_set_allocated:CustomMsg2.msg)
325 }
326 
327 // repeated int32 c = 3;
328 inline int CustomMsg2::c_size() const {
329  return c_.size();
330 }
331 inline void CustomMsg2::clear_c() {
332  c_.Clear();
333 }
334 inline ::google::protobuf::int32 CustomMsg2::c(int index) const {
335  // @@protoc_insertion_point(field_get:CustomMsg2.c)
336  return c_.Get(index);
337 }
338 inline void CustomMsg2::set_c(int index, ::google::protobuf::int32 value) {
339  c_.Set(index, value);
340  // @@protoc_insertion_point(field_set:CustomMsg2.c)
341 }
342 inline void CustomMsg2::add_c(::google::protobuf::int32 value) {
343  c_.Add(value);
344  // @@protoc_insertion_point(field_add:CustomMsg2.c)
345 }
346 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
347 CustomMsg2::c() const {
348  // @@protoc_insertion_point(field_list:CustomMsg2.c)
349  return c_;
350 }
351 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
352 CustomMsg2::mutable_c() {
353  // @@protoc_insertion_point(field_mutable_list:CustomMsg2.c)
354  return &c_;
355 }
356 
357 
358 // @@protoc_insertion_point(namespace_scope)
359 
360 #ifndef SWIG
361 namespace google {
362 namespace protobuf {
363 
364 
365 } // namespace google
366 } // namespace protobuf
367 #endif // SWIG
368 
369 // @@protoc_insertion_point(global_scope)
370 
371 #endif // PROTOBUF_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto__INCLUDED