Goby v2
network_ack.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/network_ack.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fnetwork_5fack_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 namespace goby {
37 namespace acomms {
38 namespace protobuf {
39 
40 // Internal implementation detail -- do not call these.
41 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
42 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
43 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
44 
45 class NetworkAck;
46 
47 enum NetworkAck_AckType {
48  NetworkAck_AckType_ACK = 1,
49  NetworkAck_AckType_EXPIRE = 2
50 };
51 bool NetworkAck_AckType_IsValid(int value);
52 const NetworkAck_AckType NetworkAck_AckType_AckType_MIN = NetworkAck_AckType_ACK;
53 const NetworkAck_AckType NetworkAck_AckType_AckType_MAX = NetworkAck_AckType_EXPIRE;
54 const int NetworkAck_AckType_AckType_ARRAYSIZE = NetworkAck_AckType_AckType_MAX + 1;
55 
56 const ::google::protobuf::EnumDescriptor* NetworkAck_AckType_descriptor();
57 inline const ::std::string& NetworkAck_AckType_Name(NetworkAck_AckType value) {
58  return ::google::protobuf::internal::NameOfEnum(
59  NetworkAck_AckType_descriptor(), value);
60 }
61 inline bool NetworkAck_AckType_Parse(
62  const ::std::string& name, NetworkAck_AckType* value) {
63  return ::google::protobuf::internal::ParseNamedEnum<NetworkAck_AckType>(
64  NetworkAck_AckType_descriptor(), name, value);
65 }
66 // ===================================================================
67 
68 class NetworkAck : public ::google::protobuf::Message {
69  public:
70  NetworkAck();
71  virtual ~NetworkAck();
72 
73  NetworkAck(const NetworkAck& from);
74 
75  inline NetworkAck& operator=(const NetworkAck& from) {
76  CopyFrom(from);
77  return *this;
78  }
79 
80  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
81  return _unknown_fields_;
82  }
83 
84  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
85  return &_unknown_fields_;
86  }
87 
88  static const ::google::protobuf::Descriptor* descriptor();
89  static const NetworkAck& default_instance();
90 
91  void Swap(NetworkAck* other);
92 
93  // implements Message ----------------------------------------------
94 
95  NetworkAck* New() const;
96  void CopyFrom(const ::google::protobuf::Message& from);
97  void MergeFrom(const ::google::protobuf::Message& from);
98  void CopyFrom(const NetworkAck& from);
99  void MergeFrom(const NetworkAck& from);
100  void Clear();
101  bool IsInitialized() const;
102 
103  int ByteSize() const;
104  bool MergePartialFromCodedStream(
105  ::google::protobuf::io::CodedInputStream* input);
106  void SerializeWithCachedSizes(
107  ::google::protobuf::io::CodedOutputStream* output) const;
108  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
109  int GetCachedSize() const { return _cached_size_; }
110  private:
111  void SharedCtor();
112  void SharedDtor();
113  void SetCachedSize(int size) const;
114  public:
115  ::google::protobuf::Metadata GetMetadata() const;
116 
117  // nested types ----------------------------------------------------
118 
119  typedef NetworkAck_AckType AckType;
120  static const AckType ACK = NetworkAck_AckType_ACK;
121  static const AckType EXPIRE = NetworkAck_AckType_EXPIRE;
122  static inline bool AckType_IsValid(int value) {
123  return NetworkAck_AckType_IsValid(value);
124  }
125  static const AckType AckType_MIN =
126  NetworkAck_AckType_AckType_MIN;
127  static const AckType AckType_MAX =
128  NetworkAck_AckType_AckType_MAX;
129  static const int AckType_ARRAYSIZE =
130  NetworkAck_AckType_AckType_ARRAYSIZE;
131  static inline const ::google::protobuf::EnumDescriptor*
132  AckType_descriptor() {
133  return NetworkAck_AckType_descriptor();
134  }
135  static inline const ::std::string& AckType_Name(AckType value) {
136  return NetworkAck_AckType_Name(value);
137  }
138  static inline bool AckType_Parse(const ::std::string& name,
139  AckType* value) {
140  return NetworkAck_AckType_Parse(name, value);
141  }
142 
143  // accessors -------------------------------------------------------
144 
145  // required int32 message_src = 1;
146  inline bool has_message_src() const;
147  inline void clear_message_src();
148  static const int kMessageSrcFieldNumber = 1;
149  inline ::google::protobuf::int32 message_src() const;
150  inline void set_message_src(::google::protobuf::int32 value);
151 
152  // required int32 message_dest = 2;
153  inline bool has_message_dest() const;
154  inline void clear_message_dest();
155  static const int kMessageDestFieldNumber = 2;
156  inline ::google::protobuf::int32 message_dest() const;
157  inline void set_message_dest(::google::protobuf::int32 value);
158 
159  // optional uint64 message_time = 3;
160  inline bool has_message_time() const;
161  inline void clear_message_time();
162  static const int kMessageTimeFieldNumber = 3;
163  inline ::google::protobuf::uint64 message_time() const;
164  inline void set_message_time(::google::protobuf::uint64 value);
165 
166  // required int32 message_dccl_id = 4;
167  inline bool has_message_dccl_id() const;
168  inline void clear_message_dccl_id();
169  static const int kMessageDcclIdFieldNumber = 4;
170  inline ::google::protobuf::int32 message_dccl_id() const;
171  inline void set_message_dccl_id(::google::protobuf::int32 value);
172 
173  // required int32 ack_src = 10;
174  inline bool has_ack_src() const;
175  inline void clear_ack_src();
176  static const int kAckSrcFieldNumber = 10;
177  inline ::google::protobuf::int32 ack_src() const;
178  inline void set_ack_src(::google::protobuf::int32 value);
179 
180  // optional .goby.acomms.protobuf.NetworkAck.AckType ack_type = 11;
181  inline bool has_ack_type() const;
182  inline void clear_ack_type();
183  static const int kAckTypeFieldNumber = 11;
184  inline ::goby::acomms::protobuf::NetworkAck_AckType ack_type() const;
185  inline void set_ack_type(::goby::acomms::protobuf::NetworkAck_AckType value);
186 
187  enum DCCLParameters { DCCL_ID = 6, DCCL_MAX_BYTES = 32 };
188  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.NetworkAck)
189  private:
190  inline void set_has_message_src();
191  inline void clear_has_message_src();
192  inline void set_has_message_dest();
193  inline void clear_has_message_dest();
194  inline void set_has_message_time();
195  inline void clear_has_message_time();
196  inline void set_has_message_dccl_id();
197  inline void clear_has_message_dccl_id();
198  inline void set_has_ack_src();
199  inline void clear_has_ack_src();
200  inline void set_has_ack_type();
201  inline void clear_has_ack_type();
202 
203  ::google::protobuf::UnknownFieldSet _unknown_fields_;
204 
205  ::google::protobuf::uint32 _has_bits_[1];
206  mutable int _cached_size_;
207  ::google::protobuf::int32 message_src_;
208  ::google::protobuf::int32 message_dest_;
209  ::google::protobuf::uint64 message_time_;
210  ::google::protobuf::int32 message_dccl_id_;
211  ::google::protobuf::int32 ack_src_;
212  int ack_type_;
213  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
214  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
215  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
216 
217  void InitAsDefaultInstance();
218  static NetworkAck* default_instance_;
219 };
220 // ===================================================================
221 
222 
223 // ===================================================================
224 
225 // NetworkAck
226 
227 // required int32 message_src = 1;
228 inline bool NetworkAck::has_message_src() const {
229  return (_has_bits_[0] & 0x00000001u) != 0;
230 }
231 inline void NetworkAck::set_has_message_src() {
232  _has_bits_[0] |= 0x00000001u;
233 }
234 inline void NetworkAck::clear_has_message_src() {
235  _has_bits_[0] &= ~0x00000001u;
236 }
237 inline void NetworkAck::clear_message_src() {
238  message_src_ = 0;
239  clear_has_message_src();
240 }
241 inline ::google::protobuf::int32 NetworkAck::message_src() const {
242  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.NetworkAck.message_src)
243  return message_src_;
244 }
245 inline void NetworkAck::set_message_src(::google::protobuf::int32 value) {
246  set_has_message_src();
247  message_src_ = value;
248  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.NetworkAck.message_src)
249 }
250 
251 // required int32 message_dest = 2;
252 inline bool NetworkAck::has_message_dest() const {
253  return (_has_bits_[0] & 0x00000002u) != 0;
254 }
255 inline void NetworkAck::set_has_message_dest() {
256  _has_bits_[0] |= 0x00000002u;
257 }
258 inline void NetworkAck::clear_has_message_dest() {
259  _has_bits_[0] &= ~0x00000002u;
260 }
261 inline void NetworkAck::clear_message_dest() {
262  message_dest_ = 0;
263  clear_has_message_dest();
264 }
265 inline ::google::protobuf::int32 NetworkAck::message_dest() const {
266  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.NetworkAck.message_dest)
267  return message_dest_;
268 }
269 inline void NetworkAck::set_message_dest(::google::protobuf::int32 value) {
270  set_has_message_dest();
271  message_dest_ = value;
272  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.NetworkAck.message_dest)
273 }
274 
275 // optional uint64 message_time = 3;
276 inline bool NetworkAck::has_message_time() const {
277  return (_has_bits_[0] & 0x00000004u) != 0;
278 }
279 inline void NetworkAck::set_has_message_time() {
280  _has_bits_[0] |= 0x00000004u;
281 }
282 inline void NetworkAck::clear_has_message_time() {
283  _has_bits_[0] &= ~0x00000004u;
284 }
285 inline void NetworkAck::clear_message_time() {
286  message_time_ = GOOGLE_ULONGLONG(0);
287  clear_has_message_time();
288 }
289 inline ::google::protobuf::uint64 NetworkAck::message_time() const {
290  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.NetworkAck.message_time)
291  return message_time_;
292 }
293 inline void NetworkAck::set_message_time(::google::protobuf::uint64 value) {
294  set_has_message_time();
295  message_time_ = value;
296  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.NetworkAck.message_time)
297 }
298 
299 // required int32 message_dccl_id = 4;
300 inline bool NetworkAck::has_message_dccl_id() const {
301  return (_has_bits_[0] & 0x00000008u) != 0;
302 }
303 inline void NetworkAck::set_has_message_dccl_id() {
304  _has_bits_[0] |= 0x00000008u;
305 }
306 inline void NetworkAck::clear_has_message_dccl_id() {
307  _has_bits_[0] &= ~0x00000008u;
308 }
309 inline void NetworkAck::clear_message_dccl_id() {
310  message_dccl_id_ = 0;
311  clear_has_message_dccl_id();
312 }
313 inline ::google::protobuf::int32 NetworkAck::message_dccl_id() const {
314  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.NetworkAck.message_dccl_id)
315  return message_dccl_id_;
316 }
317 inline void NetworkAck::set_message_dccl_id(::google::protobuf::int32 value) {
318  set_has_message_dccl_id();
319  message_dccl_id_ = value;
320  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.NetworkAck.message_dccl_id)
321 }
322 
323 // required int32 ack_src = 10;
324 inline bool NetworkAck::has_ack_src() const {
325  return (_has_bits_[0] & 0x00000010u) != 0;
326 }
327 inline void NetworkAck::set_has_ack_src() {
328  _has_bits_[0] |= 0x00000010u;
329 }
330 inline void NetworkAck::clear_has_ack_src() {
331  _has_bits_[0] &= ~0x00000010u;
332 }
333 inline void NetworkAck::clear_ack_src() {
334  ack_src_ = 0;
335  clear_has_ack_src();
336 }
337 inline ::google::protobuf::int32 NetworkAck::ack_src() const {
338  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.NetworkAck.ack_src)
339  return ack_src_;
340 }
341 inline void NetworkAck::set_ack_src(::google::protobuf::int32 value) {
342  set_has_ack_src();
343  ack_src_ = value;
344  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.NetworkAck.ack_src)
345 }
346 
347 // optional .goby.acomms.protobuf.NetworkAck.AckType ack_type = 11;
348 inline bool NetworkAck::has_ack_type() const {
349  return (_has_bits_[0] & 0x00000020u) != 0;
350 }
351 inline void NetworkAck::set_has_ack_type() {
352  _has_bits_[0] |= 0x00000020u;
353 }
354 inline void NetworkAck::clear_has_ack_type() {
355  _has_bits_[0] &= ~0x00000020u;
356 }
357 inline void NetworkAck::clear_ack_type() {
358  ack_type_ = 1;
359  clear_has_ack_type();
360 }
361 inline ::goby::acomms::protobuf::NetworkAck_AckType NetworkAck::ack_type() const {
362  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.NetworkAck.ack_type)
363  return static_cast< ::goby::acomms::protobuf::NetworkAck_AckType >(ack_type_);
364 }
365 inline void NetworkAck::set_ack_type(::goby::acomms::protobuf::NetworkAck_AckType value) {
366  assert(::goby::acomms::protobuf::NetworkAck_AckType_IsValid(value));
367  set_has_ack_type();
368  ack_type_ = value;
369  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.NetworkAck.ack_type)
370 }
371 
372 
373 // @@protoc_insertion_point(namespace_scope)
374 
375 } // namespace protobuf
376 } // namespace acomms
377 } // namespace goby
378 
379 #ifndef SWIG
380 namespace google {
381 namespace protobuf {
382 
383 template <> struct is_proto_enum< ::goby::acomms::protobuf::NetworkAck_AckType> : ::google::protobuf::internal::true_type {};
384 template <>
385 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::NetworkAck_AckType>() {
386  return ::goby::acomms::protobuf::NetworkAck_AckType_descriptor();
387 }
388 
389 } // namespace google
390 } // namespace protobuf
391 #endif // SWIG
392 
393 // @@protoc_insertion_point(global_scope)
394 
395 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto__INCLUDED
The global namespace for the Goby project.