Goby v2
test.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/acomms/route1/test.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2facomms_2froute1_2ftest_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2facomms_2froute1_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/common/protobuf/option_extensions.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_2froute1_2ftest_2eproto();
37 void protobuf_AssignDesc_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
38 void protobuf_ShutdownFile_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
39 
40 class RouteMessage;
41 
42 // ===================================================================
43 
44 class RouteMessage : public ::google::protobuf::Message {
45  public:
46  RouteMessage();
47  virtual ~RouteMessage();
48 
49  RouteMessage(const RouteMessage& from);
50 
51  inline RouteMessage& operator=(const RouteMessage& 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 RouteMessage& default_instance();
66 
67  void Swap(RouteMessage* other);
68 
69  // implements Message ----------------------------------------------
70 
71  RouteMessage* New() const;
72  void CopyFrom(const ::google::protobuf::Message& from);
73  void MergeFrom(const ::google::protobuf::Message& from);
74  void CopyFrom(const RouteMessage& from);
75  void MergeFrom(const RouteMessage& 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  // required uint64 time = 1;
98  inline bool has_time() const;
99  inline void clear_time();
100  static const int kTimeFieldNumber = 1;
101  inline ::google::protobuf::uint64 time() const;
102  inline void set_time(::google::protobuf::uint64 value);
103 
104  // required int32 src = 2;
105  inline bool has_src() const;
106  inline void clear_src();
107  static const int kSrcFieldNumber = 2;
108  inline ::google::protobuf::int32 src() const;
109  inline void set_src(::google::protobuf::int32 value);
110 
111  // required int32 dest = 3;
112  inline bool has_dest() const;
113  inline void clear_dest();
114  static const int kDestFieldNumber = 3;
115  inline ::google::protobuf::int32 dest() const;
116  inline void set_dest(::google::protobuf::int32 value);
117 
118  // required string telegram = 4;
119  inline bool has_telegram() const;
120  inline void clear_telegram();
121  static const int kTelegramFieldNumber = 4;
122  inline const ::std::string& telegram() const;
123  inline void set_telegram(const ::std::string& value);
124  inline void set_telegram(const char* value);
125  inline void set_telegram(const char* value, size_t size);
126  inline ::std::string* mutable_telegram();
127  inline ::std::string* release_telegram();
128  inline void set_allocated_telegram(::std::string* telegram);
129 
130  enum DCCLParameters { DCCL_ID = 1, DCCL_MAX_BYTES = 32 };
131  // @@protoc_insertion_point(class_scope:RouteMessage)
132  private:
133  inline void set_has_time();
134  inline void clear_has_time();
135  inline void set_has_src();
136  inline void clear_has_src();
137  inline void set_has_dest();
138  inline void clear_has_dest();
139  inline void set_has_telegram();
140  inline void clear_has_telegram();
141 
142  ::google::protobuf::UnknownFieldSet _unknown_fields_;
143 
144  ::google::protobuf::uint32 _has_bits_[1];
145  mutable int _cached_size_;
146  ::google::protobuf::uint64 time_;
147  ::google::protobuf::int32 src_;
148  ::google::protobuf::int32 dest_;
149  ::std::string* telegram_;
150  friend void protobuf_AddDesc_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
151  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
152  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
153 
154  void InitAsDefaultInstance();
155  static RouteMessage* default_instance_;
156 };
157 // ===================================================================
158 
159 
160 // ===================================================================
161 
162 // RouteMessage
163 
164 // required uint64 time = 1;
165 inline bool RouteMessage::has_time() const {
166  return (_has_bits_[0] & 0x00000001u) != 0;
167 }
168 inline void RouteMessage::set_has_time() {
169  _has_bits_[0] |= 0x00000001u;
170 }
171 inline void RouteMessage::clear_has_time() {
172  _has_bits_[0] &= ~0x00000001u;
173 }
174 inline void RouteMessage::clear_time() {
175  time_ = GOOGLE_ULONGLONG(0);
176  clear_has_time();
177 }
178 inline ::google::protobuf::uint64 RouteMessage::time() const {
179  // @@protoc_insertion_point(field_get:RouteMessage.time)
180  return time_;
181 }
182 inline void RouteMessage::set_time(::google::protobuf::uint64 value) {
183  set_has_time();
184  time_ = value;
185  // @@protoc_insertion_point(field_set:RouteMessage.time)
186 }
187 
188 // required int32 src = 2;
189 inline bool RouteMessage::has_src() const {
190  return (_has_bits_[0] & 0x00000002u) != 0;
191 }
192 inline void RouteMessage::set_has_src() {
193  _has_bits_[0] |= 0x00000002u;
194 }
195 inline void RouteMessage::clear_has_src() {
196  _has_bits_[0] &= ~0x00000002u;
197 }
198 inline void RouteMessage::clear_src() {
199  src_ = 0;
200  clear_has_src();
201 }
202 inline ::google::protobuf::int32 RouteMessage::src() const {
203  // @@protoc_insertion_point(field_get:RouteMessage.src)
204  return src_;
205 }
206 inline void RouteMessage::set_src(::google::protobuf::int32 value) {
207  set_has_src();
208  src_ = value;
209  // @@protoc_insertion_point(field_set:RouteMessage.src)
210 }
211 
212 // required int32 dest = 3;
213 inline bool RouteMessage::has_dest() const {
214  return (_has_bits_[0] & 0x00000004u) != 0;
215 }
216 inline void RouteMessage::set_has_dest() {
217  _has_bits_[0] |= 0x00000004u;
218 }
219 inline void RouteMessage::clear_has_dest() {
220  _has_bits_[0] &= ~0x00000004u;
221 }
222 inline void RouteMessage::clear_dest() {
223  dest_ = 0;
224  clear_has_dest();
225 }
226 inline ::google::protobuf::int32 RouteMessage::dest() const {
227  // @@protoc_insertion_point(field_get:RouteMessage.dest)
228  return dest_;
229 }
230 inline void RouteMessage::set_dest(::google::protobuf::int32 value) {
231  set_has_dest();
232  dest_ = value;
233  // @@protoc_insertion_point(field_set:RouteMessage.dest)
234 }
235 
236 // required string telegram = 4;
237 inline bool RouteMessage::has_telegram() const {
238  return (_has_bits_[0] & 0x00000008u) != 0;
239 }
240 inline void RouteMessage::set_has_telegram() {
241  _has_bits_[0] |= 0x00000008u;
242 }
243 inline void RouteMessage::clear_has_telegram() {
244  _has_bits_[0] &= ~0x00000008u;
245 }
246 inline void RouteMessage::clear_telegram() {
247  if (telegram_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
248  telegram_->clear();
249  }
250  clear_has_telegram();
251 }
252 inline const ::std::string& RouteMessage::telegram() const {
253  // @@protoc_insertion_point(field_get:RouteMessage.telegram)
254  return *telegram_;
255 }
256 inline void RouteMessage::set_telegram(const ::std::string& value) {
257  set_has_telegram();
258  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
259  telegram_ = new ::std::string;
260  }
261  telegram_->assign(value);
262  // @@protoc_insertion_point(field_set:RouteMessage.telegram)
263 }
264 inline void RouteMessage::set_telegram(const char* value) {
265  set_has_telegram();
266  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
267  telegram_ = new ::std::string;
268  }
269  telegram_->assign(value);
270  // @@protoc_insertion_point(field_set_char:RouteMessage.telegram)
271 }
272 inline void RouteMessage::set_telegram(const char* value, size_t size) {
273  set_has_telegram();
274  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
275  telegram_ = new ::std::string;
276  }
277  telegram_->assign(reinterpret_cast<const char*>(value), size);
278  // @@protoc_insertion_point(field_set_pointer:RouteMessage.telegram)
279 }
280 inline ::std::string* RouteMessage::mutable_telegram() {
281  set_has_telegram();
282  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
283  telegram_ = new ::std::string;
284  }
285  // @@protoc_insertion_point(field_mutable:RouteMessage.telegram)
286  return telegram_;
287 }
288 inline ::std::string* RouteMessage::release_telegram() {
289  clear_has_telegram();
290  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
291  return NULL;
292  } else {
293  ::std::string* temp = telegram_;
294  telegram_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
295  return temp;
296  }
297 }
298 inline void RouteMessage::set_allocated_telegram(::std::string* telegram) {
299  if (telegram_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
300  delete telegram_;
301  }
302  if (telegram) {
303  set_has_telegram();
304  telegram_ = telegram;
305  } else {
306  clear_has_telegram();
307  telegram_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
308  }
309  // @@protoc_insertion_point(field_set_allocated:RouteMessage.telegram)
310 }
311 
312 
313 // @@protoc_insertion_point(namespace_scope)
314 
315 #ifndef SWIG
316 namespace google {
317 namespace protobuf {
318 
319 
320 } // namespace google
321 } // namespace protobuf
322 #endif // SWIG
323 
324 // @@protoc_insertion_point(global_scope)
325 
326 #endif // PROTOBUF_goby_2ftest_2facomms_2froute1_2ftest_2eproto__INCLUDED