4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 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();
44 class TimeUpdateRequest;
45 class TimeUpdateResponse;
61 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
62 return _unknown_fields_;
65 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
66 return &_unknown_fields_;
69 static const ::google::protobuf::Descriptor* descriptor();
77 void CopyFrom(const ::google::protobuf::Message& from);
78 void MergeFrom(const ::google::protobuf::Message& from);
82 bool IsInitialized()
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_; }
94 void SetCachedSize(
int size)
const;
96 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
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);
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);
130 enum DCCLParameters { DCCL_ID = 516, DCCL_MAX_BYTES = 32 };
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();
142 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
154 void InitAsDefaultInstance();
171 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
172 return _unknown_fields_;
175 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
176 return &_unknown_fields_;
179 static const ::google::protobuf::Descriptor* descriptor();
187 void CopyFrom(const ::google::protobuf::Message& from);
188 void MergeFrom(const ::google::protobuf::Message& from);
192 bool IsInitialized()
const;
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_; }
204 void SetCachedSize(
int size)
const;
206 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
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);
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);
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);
247 enum DCCLParameters { DCCL_ID = 517, DCCL_MAX_BYTES = 32 };
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();
261 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
274 void InitAsDefaultInstance();
285 inline bool TimeUpdateRequest::has_src()
const {
286 return (_has_bits_[0] & 0x00000001u) != 0;
288 inline void TimeUpdateRequest::set_has_src() {
289 _has_bits_[0] |= 0x00000001u;
291 inline void TimeUpdateRequest::clear_has_src() {
292 _has_bits_[0] &= ~0x00000001u;
294 inline void TimeUpdateRequest::clear_src() {
298 inline ::google::protobuf::int32 TimeUpdateRequest::src()
const {
302 inline void TimeUpdateRequest::set_src(::google::protobuf::int32 value) {
309 inline bool TimeUpdateRequest::has_dest()
const {
310 return (_has_bits_[0] & 0x00000002u) != 0;
312 inline void TimeUpdateRequest::set_has_dest() {
313 _has_bits_[0] |= 0x00000002u;
315 inline void TimeUpdateRequest::clear_has_dest() {
316 _has_bits_[0] &= ~0x00000002u;
318 inline void TimeUpdateRequest::clear_dest() {
322 inline ::google::protobuf::int32 TimeUpdateRequest::dest()
const {
326 inline void TimeUpdateRequest::set_dest(::google::protobuf::int32 value) {
333 inline bool TimeUpdateRequest::has_time()
const {
334 return (_has_bits_[0] & 0x00000004u) != 0;
336 inline void TimeUpdateRequest::set_has_time() {
337 _has_bits_[0] |= 0x00000004u;
339 inline void TimeUpdateRequest::clear_has_time() {
340 _has_bits_[0] &= ~0x00000004u;
342 inline void TimeUpdateRequest::clear_time() {
343 time_ = GOOGLE_ULONGLONG(0);
346 inline ::google::protobuf::uint64 TimeUpdateRequest::time()
const {
350 inline void TimeUpdateRequest::set_time(::google::protobuf::uint64 value) {
357 inline bool TimeUpdateRequest::has_update_time_for_id()
const {
358 return (_has_bits_[0] & 0x00000008u) != 0;
360 inline void TimeUpdateRequest::set_has_update_time_for_id() {
361 _has_bits_[0] |= 0x00000008u;
363 inline void TimeUpdateRequest::clear_has_update_time_for_id() {
364 _has_bits_[0] &= ~0x00000008u;
366 inline void TimeUpdateRequest::clear_update_time_for_id() {
367 update_time_for_id_ = 0;
368 clear_has_update_time_for_id();
370 inline ::google::protobuf::int32 TimeUpdateRequest::update_time_for_id()
const {
372 return update_time_for_id_;
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;
385 inline bool TimeUpdateResponse::has_src()
const {
386 return (_has_bits_[0] & 0x00000001u) != 0;
388 inline void TimeUpdateResponse::set_has_src() {
389 _has_bits_[0] |= 0x00000001u;
391 inline void TimeUpdateResponse::clear_has_src() {
392 _has_bits_[0] &= ~0x00000001u;
394 inline void TimeUpdateResponse::clear_src() {
398 inline ::google::protobuf::int32 TimeUpdateResponse::src()
const {
402 inline void TimeUpdateResponse::set_src(::google::protobuf::int32 value) {
409 inline bool TimeUpdateResponse::has_dest()
const {
410 return (_has_bits_[0] & 0x00000002u) != 0;
412 inline void TimeUpdateResponse::set_has_dest() {
413 _has_bits_[0] |= 0x00000002u;
415 inline void TimeUpdateResponse::clear_has_dest() {
416 _has_bits_[0] &= ~0x00000002u;
418 inline void TimeUpdateResponse::clear_dest() {
422 inline ::google::protobuf::int32 TimeUpdateResponse::dest()
const {
426 inline void TimeUpdateResponse::set_dest(::google::protobuf::int32 value) {
433 inline bool TimeUpdateResponse::has_time()
const {
434 return (_has_bits_[0] & 0x00000004u) != 0;
436 inline void TimeUpdateResponse::set_has_time() {
437 _has_bits_[0] |= 0x00000004u;
439 inline void TimeUpdateResponse::clear_has_time() {
440 _has_bits_[0] &= ~0x00000004u;
442 inline void TimeUpdateResponse::clear_time() {
443 time_ = GOOGLE_ULONGLONG(0);
446 inline ::google::protobuf::uint64 TimeUpdateResponse::time()
const {
450 inline void TimeUpdateResponse::set_time(::google::protobuf::uint64 value) {
457 inline bool TimeUpdateResponse::has_time_of_flight_microsec()
const {
458 return (_has_bits_[0] & 0x00000008u) != 0;
460 inline void TimeUpdateResponse::set_has_time_of_flight_microsec() {
461 _has_bits_[0] |= 0x00000008u;
463 inline void TimeUpdateResponse::clear_has_time_of_flight_microsec() {
464 _has_bits_[0] &= ~0x00000008u;
466 inline void TimeUpdateResponse::clear_time_of_flight_microsec() {
467 time_of_flight_microsec_ = GOOGLE_ULONGLONG(0);
468 clear_has_time_of_flight_microsec();
470 inline ::google::protobuf::uint64 TimeUpdateResponse::time_of_flight_microsec()
const {
472 return time_of_flight_microsec_;
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;
481 inline bool TimeUpdateResponse::has_request_src()
const {
482 return (_has_bits_[0] & 0x00000010u) != 0;
484 inline void TimeUpdateResponse::set_has_request_src() {
485 _has_bits_[0] |= 0x00000010u;
487 inline void TimeUpdateResponse::clear_has_request_src() {
488 _has_bits_[0] &= ~0x00000010u;
490 inline void TimeUpdateResponse::clear_request_src() {
492 clear_has_request_src();
494 inline ::google::protobuf::int32 TimeUpdateResponse::request_src()
const {
498 inline void TimeUpdateResponse::set_request_src(::google::protobuf::int32 value) {
499 set_has_request_src();
500 request_src_ = value;
522 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto__INCLUDED
The global namespace for the Goby project.