Goby v2
time_update.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/time_update.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2ftime_5fupdate_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_2ftime_5fupdate_2eproto();
41 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto();
42 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto();
43 
44 class TimeUpdateRequest;
45 class TimeUpdateResponse;
46 
47 // ===================================================================
48 
49 class TimeUpdateRequest : public ::google::protobuf::Message {
50  public:
52  virtual ~TimeUpdateRequest();
53 
55 
56  inline TimeUpdateRequest& operator=(const TimeUpdateRequest& from) {
57  CopyFrom(from);
58  return *this;
59  }
60 
61  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
62  return _unknown_fields_;
63  }
64 
65  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
66  return &_unknown_fields_;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const TimeUpdateRequest& default_instance();
71 
72  void Swap(TimeUpdateRequest* other);
73 
74  // implements Message ----------------------------------------------
75 
76  TimeUpdateRequest* New() const;
77  void CopyFrom(const ::google::protobuf::Message& from);
78  void MergeFrom(const ::google::protobuf::Message& from);
79  void CopyFrom(const TimeUpdateRequest& from);
80  void MergeFrom(const TimeUpdateRequest& from);
81  void Clear();
82  bool IsInitialized() const;
83 
84  int ByteSize() const;
85  bool MergePartialFromCodedStream(
86  ::google::protobuf::io::CodedInputStream* input);
87  void SerializeWithCachedSizes(
88  ::google::protobuf::io::CodedOutputStream* output) const;
89  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
90  int GetCachedSize() const { return _cached_size_; }
91  private:
92  void SharedCtor();
93  void SharedDtor();
94  void SetCachedSize(int size) const;
95  public:
96  ::google::protobuf::Metadata GetMetadata() const;
97 
98  // nested types ----------------------------------------------------
99 
100  // accessors -------------------------------------------------------
101 
102  // required int32 src = 1;
103  inline bool has_src() const;
104  inline void clear_src();
105  static const int kSrcFieldNumber = 1;
106  inline ::google::protobuf::int32 src() const;
107  inline void set_src(::google::protobuf::int32 value);
108 
109  // optional int32 dest = 2;
110  inline bool has_dest() const;
111  inline void clear_dest();
112  static const int kDestFieldNumber = 2;
113  inline ::google::protobuf::int32 dest() const;
114  inline void set_dest(::google::protobuf::int32 value);
115 
116  // required uint64 time = 3;
117  inline bool has_time() const;
118  inline void clear_time();
119  static const int kTimeFieldNumber = 3;
120  inline ::google::protobuf::uint64 time() const;
121  inline void set_time(::google::protobuf::uint64 value);
122 
123  // required int32 update_time_for_id = 4;
124  inline bool has_update_time_for_id() const;
125  inline void clear_update_time_for_id();
126  static const int kUpdateTimeForIdFieldNumber = 4;
127  inline ::google::protobuf::int32 update_time_for_id() const;
128  inline void set_update_time_for_id(::google::protobuf::int32 value);
129 
130  enum DCCLParameters { DCCL_ID = 516, DCCL_MAX_BYTES = 32 };
131  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.TimeUpdateRequest)
132  private:
133  inline void set_has_src();
134  inline void clear_has_src();
135  inline void set_has_dest();
136  inline void clear_has_dest();
137  inline void set_has_time();
138  inline void clear_has_time();
139  inline void set_has_update_time_for_id();
140  inline void clear_has_update_time_for_id();
141 
142  ::google::protobuf::UnknownFieldSet _unknown_fields_;
143 
144  ::google::protobuf::uint32 _has_bits_[1];
145  mutable int _cached_size_;
146  ::google::protobuf::int32 src_;
147  ::google::protobuf::int32 dest_;
148  ::google::protobuf::uint64 time_;
149  ::google::protobuf::int32 update_time_for_id_;
150  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto();
151  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto();
152  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto();
153 
154  void InitAsDefaultInstance();
155  static TimeUpdateRequest* default_instance_;
156 };
157 // -------------------------------------------------------------------
158 
159 class TimeUpdateResponse : public ::google::protobuf::Message {
160  public:
162  virtual ~TimeUpdateResponse();
163 
165 
166  inline TimeUpdateResponse& operator=(const TimeUpdateResponse& from) {
167  CopyFrom(from);
168  return *this;
169  }
170 
171  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
172  return _unknown_fields_;
173  }
174 
175  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
176  return &_unknown_fields_;
177  }
178 
179  static const ::google::protobuf::Descriptor* descriptor();
180  static const TimeUpdateResponse& default_instance();
181 
182  void Swap(TimeUpdateResponse* other);
183 
184  // implements Message ----------------------------------------------
185 
186  TimeUpdateResponse* New() const;
187  void CopyFrom(const ::google::protobuf::Message& from);
188  void MergeFrom(const ::google::protobuf::Message& from);
189  void CopyFrom(const TimeUpdateResponse& from);
190  void MergeFrom(const TimeUpdateResponse& from);
191  void Clear();
192  bool IsInitialized() const;
193 
194  int ByteSize() const;
195  bool MergePartialFromCodedStream(
196  ::google::protobuf::io::CodedInputStream* input);
197  void SerializeWithCachedSizes(
198  ::google::protobuf::io::CodedOutputStream* output) const;
199  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
200  int GetCachedSize() const { return _cached_size_; }
201  private:
202  void SharedCtor();
203  void SharedDtor();
204  void SetCachedSize(int size) const;
205  public:
206  ::google::protobuf::Metadata GetMetadata() const;
207 
208  // nested types ----------------------------------------------------
209 
210  // accessors -------------------------------------------------------
211 
212  // required int32 src = 1;
213  inline bool has_src() const;
214  inline void clear_src();
215  static const int kSrcFieldNumber = 1;
216  inline ::google::protobuf::int32 src() const;
217  inline void set_src(::google::protobuf::int32 value);
218 
219  // optional int32 dest = 2;
220  inline bool has_dest() const;
221  inline void clear_dest();
222  static const int kDestFieldNumber = 2;
223  inline ::google::protobuf::int32 dest() const;
224  inline void set_dest(::google::protobuf::int32 value);
225 
226  // required uint64 time = 3;
227  inline bool has_time() const;
228  inline void clear_time();
229  static const int kTimeFieldNumber = 3;
230  inline ::google::protobuf::uint64 time() const;
231  inline void set_time(::google::protobuf::uint64 value);
232 
233  // required uint64 time_of_flight_microsec = 4;
234  inline bool has_time_of_flight_microsec() const;
235  inline void clear_time_of_flight_microsec();
236  static const int kTimeOfFlightMicrosecFieldNumber = 4;
237  inline ::google::protobuf::uint64 time_of_flight_microsec() const;
238  inline void set_time_of_flight_microsec(::google::protobuf::uint64 value);
239 
240  // optional int32 request_src = 5;
241  inline bool has_request_src() const;
242  inline void clear_request_src();
243  static const int kRequestSrcFieldNumber = 5;
244  inline ::google::protobuf::int32 request_src() const;
245  inline void set_request_src(::google::protobuf::int32 value);
246 
247  enum DCCLParameters { DCCL_ID = 517, DCCL_MAX_BYTES = 32 };
248  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.TimeUpdateResponse)
249  private:
250  inline void set_has_src();
251  inline void clear_has_src();
252  inline void set_has_dest();
253  inline void clear_has_dest();
254  inline void set_has_time();
255  inline void clear_has_time();
256  inline void set_has_time_of_flight_microsec();
257  inline void clear_has_time_of_flight_microsec();
258  inline void set_has_request_src();
259  inline void clear_has_request_src();
260 
261  ::google::protobuf::UnknownFieldSet _unknown_fields_;
262 
263  ::google::protobuf::uint32 _has_bits_[1];
264  mutable int _cached_size_;
265  ::google::protobuf::int32 src_;
266  ::google::protobuf::int32 dest_;
267  ::google::protobuf::uint64 time_;
268  ::google::protobuf::uint64 time_of_flight_microsec_;
269  ::google::protobuf::int32 request_src_;
270  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto();
271  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto();
272  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto();
273 
274  void InitAsDefaultInstance();
275  static TimeUpdateResponse* default_instance_;
276 };
277 // ===================================================================
278 
279 
280 // ===================================================================
281 
282 // TimeUpdateRequest
283 
284 // required int32 src = 1;
285 inline bool TimeUpdateRequest::has_src() const {
286  return (_has_bits_[0] & 0x00000001u) != 0;
287 }
288 inline void TimeUpdateRequest::set_has_src() {
289  _has_bits_[0] |= 0x00000001u;
290 }
291 inline void TimeUpdateRequest::clear_has_src() {
292  _has_bits_[0] &= ~0x00000001u;
293 }
294 inline void TimeUpdateRequest::clear_src() {
295  src_ = 0;
296  clear_has_src();
297 }
298 inline ::google::protobuf::int32 TimeUpdateRequest::src() const {
299  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TimeUpdateRequest.src)
300  return src_;
301 }
302 inline void TimeUpdateRequest::set_src(::google::protobuf::int32 value) {
303  set_has_src();
304  src_ = value;
305  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TimeUpdateRequest.src)
306 }
307 
308 // optional int32 dest = 2;
309 inline bool TimeUpdateRequest::has_dest() const {
310  return (_has_bits_[0] & 0x00000002u) != 0;
311 }
312 inline void TimeUpdateRequest::set_has_dest() {
313  _has_bits_[0] |= 0x00000002u;
314 }
315 inline void TimeUpdateRequest::clear_has_dest() {
316  _has_bits_[0] &= ~0x00000002u;
317 }
318 inline void TimeUpdateRequest::clear_dest() {
319  dest_ = 0;
320  clear_has_dest();
321 }
322 inline ::google::protobuf::int32 TimeUpdateRequest::dest() const {
323  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TimeUpdateRequest.dest)
324  return dest_;
325 }
326 inline void TimeUpdateRequest::set_dest(::google::protobuf::int32 value) {
327  set_has_dest();
328  dest_ = value;
329  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TimeUpdateRequest.dest)
330 }
331 
332 // required uint64 time = 3;
333 inline bool TimeUpdateRequest::has_time() const {
334  return (_has_bits_[0] & 0x00000004u) != 0;
335 }
336 inline void TimeUpdateRequest::set_has_time() {
337  _has_bits_[0] |= 0x00000004u;
338 }
339 inline void TimeUpdateRequest::clear_has_time() {
340  _has_bits_[0] &= ~0x00000004u;
341 }
342 inline void TimeUpdateRequest::clear_time() {
343  time_ = GOOGLE_ULONGLONG(0);
344  clear_has_time();
345 }
346 inline ::google::protobuf::uint64 TimeUpdateRequest::time() const {
347  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TimeUpdateRequest.time)
348  return time_;
349 }
350 inline void TimeUpdateRequest::set_time(::google::protobuf::uint64 value) {
351  set_has_time();
352  time_ = value;
353  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TimeUpdateRequest.time)
354 }
355 
356 // required int32 update_time_for_id = 4;
357 inline bool TimeUpdateRequest::has_update_time_for_id() const {
358  return (_has_bits_[0] & 0x00000008u) != 0;
359 }
360 inline void TimeUpdateRequest::set_has_update_time_for_id() {
361  _has_bits_[0] |= 0x00000008u;
362 }
363 inline void TimeUpdateRequest::clear_has_update_time_for_id() {
364  _has_bits_[0] &= ~0x00000008u;
365 }
366 inline void TimeUpdateRequest::clear_update_time_for_id() {
367  update_time_for_id_ = 0;
368  clear_has_update_time_for_id();
369 }
370 inline ::google::protobuf::int32 TimeUpdateRequest::update_time_for_id() const {
371  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TimeUpdateRequest.update_time_for_id)
372  return update_time_for_id_;
373 }
374 inline void TimeUpdateRequest::set_update_time_for_id(::google::protobuf::int32 value) {
375  set_has_update_time_for_id();
376  update_time_for_id_ = value;
377  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TimeUpdateRequest.update_time_for_id)
378 }
379 
380 // -------------------------------------------------------------------
381 
382 // TimeUpdateResponse
383 
384 // required int32 src = 1;
385 inline bool TimeUpdateResponse::has_src() const {
386  return (_has_bits_[0] & 0x00000001u) != 0;
387 }
388 inline void TimeUpdateResponse::set_has_src() {
389  _has_bits_[0] |= 0x00000001u;
390 }
391 inline void TimeUpdateResponse::clear_has_src() {
392  _has_bits_[0] &= ~0x00000001u;
393 }
394 inline void TimeUpdateResponse::clear_src() {
395  src_ = 0;
396  clear_has_src();
397 }
398 inline ::google::protobuf::int32 TimeUpdateResponse::src() const {
399  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TimeUpdateResponse.src)
400  return src_;
401 }
402 inline void TimeUpdateResponse::set_src(::google::protobuf::int32 value) {
403  set_has_src();
404  src_ = value;
405  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TimeUpdateResponse.src)
406 }
407 
408 // optional int32 dest = 2;
409 inline bool TimeUpdateResponse::has_dest() const {
410  return (_has_bits_[0] & 0x00000002u) != 0;
411 }
412 inline void TimeUpdateResponse::set_has_dest() {
413  _has_bits_[0] |= 0x00000002u;
414 }
415 inline void TimeUpdateResponse::clear_has_dest() {
416  _has_bits_[0] &= ~0x00000002u;
417 }
418 inline void TimeUpdateResponse::clear_dest() {
419  dest_ = 0;
420  clear_has_dest();
421 }
422 inline ::google::protobuf::int32 TimeUpdateResponse::dest() const {
423  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TimeUpdateResponse.dest)
424  return dest_;
425 }
426 inline void TimeUpdateResponse::set_dest(::google::protobuf::int32 value) {
427  set_has_dest();
428  dest_ = value;
429  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TimeUpdateResponse.dest)
430 }
431 
432 // required uint64 time = 3;
433 inline bool TimeUpdateResponse::has_time() const {
434  return (_has_bits_[0] & 0x00000004u) != 0;
435 }
436 inline void TimeUpdateResponse::set_has_time() {
437  _has_bits_[0] |= 0x00000004u;
438 }
439 inline void TimeUpdateResponse::clear_has_time() {
440  _has_bits_[0] &= ~0x00000004u;
441 }
442 inline void TimeUpdateResponse::clear_time() {
443  time_ = GOOGLE_ULONGLONG(0);
444  clear_has_time();
445 }
446 inline ::google::protobuf::uint64 TimeUpdateResponse::time() const {
447  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TimeUpdateResponse.time)
448  return time_;
449 }
450 inline void TimeUpdateResponse::set_time(::google::protobuf::uint64 value) {
451  set_has_time();
452  time_ = value;
453  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TimeUpdateResponse.time)
454 }
455 
456 // required uint64 time_of_flight_microsec = 4;
457 inline bool TimeUpdateResponse::has_time_of_flight_microsec() const {
458  return (_has_bits_[0] & 0x00000008u) != 0;
459 }
460 inline void TimeUpdateResponse::set_has_time_of_flight_microsec() {
461  _has_bits_[0] |= 0x00000008u;
462 }
463 inline void TimeUpdateResponse::clear_has_time_of_flight_microsec() {
464  _has_bits_[0] &= ~0x00000008u;
465 }
466 inline void TimeUpdateResponse::clear_time_of_flight_microsec() {
467  time_of_flight_microsec_ = GOOGLE_ULONGLONG(0);
468  clear_has_time_of_flight_microsec();
469 }
470 inline ::google::protobuf::uint64 TimeUpdateResponse::time_of_flight_microsec() const {
471  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TimeUpdateResponse.time_of_flight_microsec)
472  return time_of_flight_microsec_;
473 }
474 inline void TimeUpdateResponse::set_time_of_flight_microsec(::google::protobuf::uint64 value) {
475  set_has_time_of_flight_microsec();
476  time_of_flight_microsec_ = value;
477  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TimeUpdateResponse.time_of_flight_microsec)
478 }
479 
480 // optional int32 request_src = 5;
481 inline bool TimeUpdateResponse::has_request_src() const {
482  return (_has_bits_[0] & 0x00000010u) != 0;
483 }
484 inline void TimeUpdateResponse::set_has_request_src() {
485  _has_bits_[0] |= 0x00000010u;
486 }
487 inline void TimeUpdateResponse::clear_has_request_src() {
488  _has_bits_[0] &= ~0x00000010u;
489 }
490 inline void TimeUpdateResponse::clear_request_src() {
491  request_src_ = 0;
492  clear_has_request_src();
493 }
494 inline ::google::protobuf::int32 TimeUpdateResponse::request_src() const {
495  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TimeUpdateResponse.request_src)
496  return request_src_;
497 }
498 inline void TimeUpdateResponse::set_request_src(::google::protobuf::int32 value) {
499  set_has_request_src();
500  request_src_ = value;
501  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TimeUpdateResponse.request_src)
502 }
503 
504 
505 // @@protoc_insertion_point(namespace_scope)
506 
507 } // namespace protobuf
508 } // namespace acomms
509 } // namespace goby
510 
511 #ifndef SWIG
512 namespace google {
513 namespace protobuf {
514 
515 
516 } // namespace google
517 } // namespace protobuf
518 #endif // SWIG
519 
520 // @@protoc_insertion_point(global_scope)
521 
522 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto__INCLUDED
The global namespace for the Goby project.