Goby v2
mosh_packet.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/mosh_packet.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fmosh_5fpacket_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 "goby/common/protobuf/option_extensions.pb.h"
28 #include "dccl/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 namespace goby {
36 namespace acomms {
37 namespace protobuf {
38 
39 // Internal implementation detail -- do not call these.
40 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
41 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
42 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
43 
44 class MoshPacket;
45 
46 // ===================================================================
47 
48 class MoshPacket : public ::google::protobuf::Message {
49  public:
50  MoshPacket();
51  virtual ~MoshPacket();
52 
53  MoshPacket(const MoshPacket& from);
54 
55  inline MoshPacket& operator=(const MoshPacket& from) {
56  CopyFrom(from);
57  return *this;
58  }
59 
60  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
61  return _unknown_fields_;
62  }
63 
64  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65  return &_unknown_fields_;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const MoshPacket& default_instance();
70 
71  void Swap(MoshPacket* other);
72 
73  // implements Message ----------------------------------------------
74 
75  MoshPacket* New() const;
76  void CopyFrom(const ::google::protobuf::Message& from);
77  void MergeFrom(const ::google::protobuf::Message& from);
78  void CopyFrom(const MoshPacket& from);
79  void MergeFrom(const MoshPacket& from);
80  void Clear();
81  bool IsInitialized() const;
82 
83  int ByteSize() const;
84  bool MergePartialFromCodedStream(
85  ::google::protobuf::io::CodedInputStream* input);
86  void SerializeWithCachedSizes(
87  ::google::protobuf::io::CodedOutputStream* output) const;
88  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
89  int GetCachedSize() const { return _cached_size_; }
90  private:
91  void SharedCtor();
92  void SharedDtor();
93  void SetCachedSize(int size) const;
94  public:
95  ::google::protobuf::Metadata GetMetadata() const;
96 
97  // nested types ----------------------------------------------------
98 
99  // accessors -------------------------------------------------------
100 
101  // required int32 src = 1;
102  inline bool has_src() const;
103  inline void clear_src();
104  static const int kSrcFieldNumber = 1;
105  inline ::google::protobuf::int32 src() const;
106  inline void set_src(::google::protobuf::int32 value);
107 
108  // required int32 dest = 2;
109  inline bool has_dest() const;
110  inline void clear_dest();
111  static const int kDestFieldNumber = 2;
112  inline ::google::protobuf::int32 dest() const;
113  inline void set_dest(::google::protobuf::int32 value);
114 
115  // required int32 frag_num = 3;
116  inline bool has_frag_num() const;
117  inline void clear_frag_num();
118  static const int kFragNumFieldNumber = 3;
119  inline ::google::protobuf::int32 frag_num() const;
120  inline void set_frag_num(::google::protobuf::int32 value);
121 
122  // required int32 frag_len = 4;
123  inline bool has_frag_len() const;
124  inline void clear_frag_len();
125  static const int kFragLenFieldNumber = 4;
126  inline ::google::protobuf::int32 frag_len() const;
127  inline void set_frag_len(::google::protobuf::int32 value);
128 
129  // required bool is_last_frag = 5;
130  inline bool has_is_last_frag() const;
131  inline void clear_is_last_frag();
132  static const int kIsLastFragFieldNumber = 5;
133  inline bool is_last_frag() const;
134  inline void set_is_last_frag(bool value);
135 
136  // required bytes fragment = 6;
137  inline bool has_fragment() const;
138  inline void clear_fragment();
139  static const int kFragmentFieldNumber = 6;
140  inline const ::std::string& fragment() const;
141  inline void set_fragment(const ::std::string& value);
142  inline void set_fragment(const char* value);
143  inline void set_fragment(const void* value, size_t size);
144  inline ::std::string* mutable_fragment();
145  inline ::std::string* release_fragment();
146  inline void set_allocated_fragment(::std::string* fragment);
147 
148  enum DCCLParameters { DCCL_ID = 512, DCCL_MAX_BYTES = 64 };
149  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MoshPacket)
150  private:
151  inline void set_has_src();
152  inline void clear_has_src();
153  inline void set_has_dest();
154  inline void clear_has_dest();
155  inline void set_has_frag_num();
156  inline void clear_has_frag_num();
157  inline void set_has_frag_len();
158  inline void clear_has_frag_len();
159  inline void set_has_is_last_frag();
160  inline void clear_has_is_last_frag();
161  inline void set_has_fragment();
162  inline void clear_has_fragment();
163 
164  ::google::protobuf::UnknownFieldSet _unknown_fields_;
165 
166  ::google::protobuf::uint32 _has_bits_[1];
167  mutable int _cached_size_;
168  ::google::protobuf::int32 src_;
169  ::google::protobuf::int32 dest_;
170  ::google::protobuf::int32 frag_num_;
171  ::google::protobuf::int32 frag_len_;
172  ::std::string* fragment_;
173  bool is_last_frag_;
174  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
175  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
176  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
177 
178  void InitAsDefaultInstance();
179  static MoshPacket* default_instance_;
180 };
181 // ===================================================================
182 
183 
184 // ===================================================================
185 
186 // MoshPacket
187 
188 // required int32 src = 1;
189 inline bool MoshPacket::has_src() const {
190  return (_has_bits_[0] & 0x00000001u) != 0;
191 }
192 inline void MoshPacket::set_has_src() {
193  _has_bits_[0] |= 0x00000001u;
194 }
195 inline void MoshPacket::clear_has_src() {
196  _has_bits_[0] &= ~0x00000001u;
197 }
198 inline void MoshPacket::clear_src() {
199  src_ = 0;
200  clear_has_src();
201 }
202 inline ::google::protobuf::int32 MoshPacket::src() const {
203  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.src)
204  return src_;
205 }
206 inline void MoshPacket::set_src(::google::protobuf::int32 value) {
207  set_has_src();
208  src_ = value;
209  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.src)
210 }
211 
212 // required int32 dest = 2;
213 inline bool MoshPacket::has_dest() const {
214  return (_has_bits_[0] & 0x00000002u) != 0;
215 }
216 inline void MoshPacket::set_has_dest() {
217  _has_bits_[0] |= 0x00000002u;
218 }
219 inline void MoshPacket::clear_has_dest() {
220  _has_bits_[0] &= ~0x00000002u;
221 }
222 inline void MoshPacket::clear_dest() {
223  dest_ = 0;
224  clear_has_dest();
225 }
226 inline ::google::protobuf::int32 MoshPacket::dest() const {
227  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.dest)
228  return dest_;
229 }
230 inline void MoshPacket::set_dest(::google::protobuf::int32 value) {
231  set_has_dest();
232  dest_ = value;
233  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.dest)
234 }
235 
236 // required int32 frag_num = 3;
237 inline bool MoshPacket::has_frag_num() const {
238  return (_has_bits_[0] & 0x00000004u) != 0;
239 }
240 inline void MoshPacket::set_has_frag_num() {
241  _has_bits_[0] |= 0x00000004u;
242 }
243 inline void MoshPacket::clear_has_frag_num() {
244  _has_bits_[0] &= ~0x00000004u;
245 }
246 inline void MoshPacket::clear_frag_num() {
247  frag_num_ = 0;
248  clear_has_frag_num();
249 }
250 inline ::google::protobuf::int32 MoshPacket::frag_num() const {
251  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.frag_num)
252  return frag_num_;
253 }
254 inline void MoshPacket::set_frag_num(::google::protobuf::int32 value) {
255  set_has_frag_num();
256  frag_num_ = value;
257  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.frag_num)
258 }
259 
260 // required int32 frag_len = 4;
261 inline bool MoshPacket::has_frag_len() const {
262  return (_has_bits_[0] & 0x00000008u) != 0;
263 }
264 inline void MoshPacket::set_has_frag_len() {
265  _has_bits_[0] |= 0x00000008u;
266 }
267 inline void MoshPacket::clear_has_frag_len() {
268  _has_bits_[0] &= ~0x00000008u;
269 }
270 inline void MoshPacket::clear_frag_len() {
271  frag_len_ = 0;
272  clear_has_frag_len();
273 }
274 inline ::google::protobuf::int32 MoshPacket::frag_len() const {
275  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.frag_len)
276  return frag_len_;
277 }
278 inline void MoshPacket::set_frag_len(::google::protobuf::int32 value) {
279  set_has_frag_len();
280  frag_len_ = value;
281  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.frag_len)
282 }
283 
284 // required bool is_last_frag = 5;
285 inline bool MoshPacket::has_is_last_frag() const {
286  return (_has_bits_[0] & 0x00000010u) != 0;
287 }
288 inline void MoshPacket::set_has_is_last_frag() {
289  _has_bits_[0] |= 0x00000010u;
290 }
291 inline void MoshPacket::clear_has_is_last_frag() {
292  _has_bits_[0] &= ~0x00000010u;
293 }
294 inline void MoshPacket::clear_is_last_frag() {
295  is_last_frag_ = false;
296  clear_has_is_last_frag();
297 }
298 inline bool MoshPacket::is_last_frag() const {
299  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.is_last_frag)
300  return is_last_frag_;
301 }
302 inline void MoshPacket::set_is_last_frag(bool value) {
303  set_has_is_last_frag();
304  is_last_frag_ = value;
305  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.is_last_frag)
306 }
307 
308 // required bytes fragment = 6;
309 inline bool MoshPacket::has_fragment() const {
310  return (_has_bits_[0] & 0x00000020u) != 0;
311 }
312 inline void MoshPacket::set_has_fragment() {
313  _has_bits_[0] |= 0x00000020u;
314 }
315 inline void MoshPacket::clear_has_fragment() {
316  _has_bits_[0] &= ~0x00000020u;
317 }
318 inline void MoshPacket::clear_fragment() {
319  if (fragment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
320  fragment_->clear();
321  }
322  clear_has_fragment();
323 }
324 inline const ::std::string& MoshPacket::fragment() const {
325  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.fragment)
326  return *fragment_;
327 }
328 inline void MoshPacket::set_fragment(const ::std::string& value) {
329  set_has_fragment();
330  if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
331  fragment_ = new ::std::string;
332  }
333  fragment_->assign(value);
334  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.fragment)
335 }
336 inline void MoshPacket::set_fragment(const char* value) {
337  set_has_fragment();
338  if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
339  fragment_ = new ::std::string;
340  }
341  fragment_->assign(value);
342  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.MoshPacket.fragment)
343 }
344 inline void MoshPacket::set_fragment(const void* value, size_t size) {
345  set_has_fragment();
346  if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
347  fragment_ = new ::std::string;
348  }
349  fragment_->assign(reinterpret_cast<const char*>(value), size);
350  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.MoshPacket.fragment)
351 }
352 inline ::std::string* MoshPacket::mutable_fragment() {
353  set_has_fragment();
354  if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
355  fragment_ = new ::std::string;
356  }
357  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MoshPacket.fragment)
358  return fragment_;
359 }
360 inline ::std::string* MoshPacket::release_fragment() {
361  clear_has_fragment();
362  if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
363  return NULL;
364  } else {
365  ::std::string* temp = fragment_;
366  fragment_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
367  return temp;
368  }
369 }
370 inline void MoshPacket::set_allocated_fragment(::std::string* fragment) {
371  if (fragment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
372  delete fragment_;
373  }
374  if (fragment) {
375  set_has_fragment();
376  fragment_ = fragment;
377  } else {
378  clear_has_fragment();
379  fragment_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
380  }
381  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.MoshPacket.fragment)
382 }
383 
384 
385 // @@protoc_insertion_point(namespace_scope)
386 
387 } // namespace protobuf
388 } // namespace acomms
389 } // namespace goby
390 
391 #ifndef SWIG
392 namespace google {
393 namespace protobuf {
394 
395 
396 } // namespace google
397 } // namespace protobuf
398 #endif // SWIG
399 
400 // @@protoc_insertion_point(global_scope)
401 
402 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto__INCLUDED
The global namespace for the Goby project.