4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
30#include <google/protobuf/repeated_field.h>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/unknown_field_set.h>
33#include "dccl/option_extensions.pb.h"
34#include <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto
41PROTOBUF_NAMESPACE_OPEN
45PROTOBUF_NAMESPACE_CLOSE
55class TimeUpdateRequest;
56struct TimeUpdateRequestDefaultTypeInternal;
58class TimeUpdateResponse;
59struct TimeUpdateResponseDefaultTypeInternal;
64PROTOBUF_NAMESPACE_OPEN
67PROTOBUF_NAMESPACE_CLOSE
75 public ::PROTOBUF_NAMESPACE_ID::Message {
79 explicit PROTOBUF_CONSTEXPR
TimeUpdateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
84 *
this = ::std::move(from);
92 if (
this == &from)
return *
this;
93 if (GetOwningArena() == from.GetOwningArena()
94 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
95 && GetOwningArena() !=
nullptr
106 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
109 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
135 if (other ==
this)
return;
136 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
137 if (GetOwningArena() !=
nullptr &&
138 GetOwningArena() == other->GetOwningArena()) {
140 if (GetOwningArena() == other->GetOwningArena()) {
144 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
148 if (other ==
this)
return;
149 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
156 return CreateMaybeMessage<TimeUpdateRequest>(arena);
158 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
160 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
162 TimeUpdateRequest::MergeImpl(*
this, from);
165 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
167 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
173 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
177 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
179 void SetCachedSize(
int size)
const final;
183 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185 return "goby.acomms.protobuf.TimeUpdateRequest";
189 bool is_message_owned =
false);
193 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
210 bool _internal_has_src()
const;
216 int32_t _internal_src()
const;
217 void _internal_set_src(int32_t value);
223 bool _internal_has_dest()
const;
226 int32_t
dest()
const;
229 int32_t _internal_dest()
const;
230 void _internal_set_dest(int32_t value);
236 bool _internal_has_time()
const;
239 uint64_t
time()
const;
242 uint64_t _internal_time()
const;
243 void _internal_set_time(uint64_t value);
249 bool _internal_has_update_time_for_id()
const;
255 int32_t _internal_update_time_for_id()
const;
256 void _internal_set_update_time_for_id(int32_t value);
265 size_t RequiredFieldsByteSizeFallback()
const;
267 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
268 typedef void InternalArenaConstructable_;
269 typedef void DestructorSkippable_;
271 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
272 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
276 int32_t update_time_for_id_;
279 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto;
284 public ::PROTOBUF_NAMESPACE_ID::Message {
288 explicit PROTOBUF_CONSTEXPR
TimeUpdateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
293 *
this = ::std::move(from);
301 if (
this == &from)
return *
this;
302 if (GetOwningArena() == from.GetOwningArena()
303 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
304 && GetOwningArena() !=
nullptr
315 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
318 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
321 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
322 return GetDescriptor();
325 return default_instance().GetMetadata().descriptor;
328 return default_instance().GetMetadata().reflection;
331 return *internal_default_instance();
337 static constexpr int kIndexInFileMessages =
344 if (other ==
this)
return;
345 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
346 if (GetOwningArena() !=
nullptr &&
347 GetOwningArena() == other->GetOwningArena()) {
349 if (GetOwningArena() == other->GetOwningArena()) {
353 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
357 if (other ==
this)
return;
358 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
365 return CreateMaybeMessage<TimeUpdateResponse>(arena);
367 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
369 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
371 TimeUpdateResponse::MergeImpl(*
this, from);
374 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
376 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
377 bool IsInitialized() const final;
380 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
381 uint8_t* _InternalSerialize(
382 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
383 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
386 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
388 void SetCachedSize(
int size)
const final;
392 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
393 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
394 return "goby.acomms.protobuf.TimeUpdateResponse";
398 bool is_message_owned =
false);
402 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
404 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
412 kDestFieldNumber = 2,
413 kTimeFieldNumber = 3,
414 kTimeOfFlightMicrosecFieldNumber = 4,
415 kRequestSrcFieldNumber = 5,
418 bool has_src()
const;
420 bool _internal_has_src()
const;
424 void set_src(int32_t value);
426 int32_t _internal_src()
const;
427 void _internal_set_src(int32_t value);
431 bool has_dest()
const;
433 bool _internal_has_dest()
const;
436 int32_t dest()
const;
437 void set_dest(int32_t value);
439 int32_t _internal_dest()
const;
440 void _internal_set_dest(int32_t value);
444 bool has_time()
const;
446 bool _internal_has_time()
const;
449 uint64_t time()
const;
450 void set_time(uint64_t value);
452 uint64_t _internal_time()
const;
453 void _internal_set_time(uint64_t value);
457 bool has_time_of_flight_microsec()
const;
459 bool _internal_has_time_of_flight_microsec()
const;
461 void clear_time_of_flight_microsec();
462 uint64_t time_of_flight_microsec()
const;
463 void set_time_of_flight_microsec(uint64_t value);
465 uint64_t _internal_time_of_flight_microsec()
const;
466 void _internal_set_time_of_flight_microsec(uint64_t value);
470 bool has_request_src()
const;
472 bool _internal_has_request_src()
const;
474 void clear_request_src();
475 int32_t request_src()
const;
476 void set_request_src(int32_t value);
478 int32_t _internal_request_src()
const;
479 void _internal_set_request_src(int32_t value);
488 size_t RequiredFieldsByteSizeFallback()
const;
490 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
491 typedef void InternalArenaConstructable_;
492 typedef void DestructorSkippable_;
494 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
495 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
499 uint64_t time_of_flight_microsec_;
500 int32_t request_src_;
503 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto;
511 #pragma GCC diagnostic push
512 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
517inline bool TimeUpdateRequest::_internal_has_src()
const {
518 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
521inline bool TimeUpdateRequest::has_src()
const {
522 return _internal_has_src();
524inline void TimeUpdateRequest::clear_src() {
526 _impl_._has_bits_[0] &= ~0x00000001u;
528inline int32_t TimeUpdateRequest::_internal_src()
const {
531inline int32_t TimeUpdateRequest::src()
const {
533 return _internal_src();
535inline void TimeUpdateRequest::_internal_set_src(int32_t value) {
536 _impl_._has_bits_[0] |= 0x00000001u;
539inline void TimeUpdateRequest::set_src(int32_t value) {
540 _internal_set_src(value);
545inline bool TimeUpdateRequest::_internal_has_dest()
const {
546 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
549inline bool TimeUpdateRequest::has_dest()
const {
550 return _internal_has_dest();
552inline void TimeUpdateRequest::clear_dest() {
554 _impl_._has_bits_[0] &= ~0x00000002u;
556inline int32_t TimeUpdateRequest::_internal_dest()
const {
559inline int32_t TimeUpdateRequest::dest()
const {
561 return _internal_dest();
563inline void TimeUpdateRequest::_internal_set_dest(int32_t value) {
564 _impl_._has_bits_[0] |= 0x00000002u;
565 _impl_.dest_ = value;
567inline void TimeUpdateRequest::set_dest(int32_t value) {
568 _internal_set_dest(value);
573inline bool TimeUpdateRequest::_internal_has_time()
const {
574 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
577inline bool TimeUpdateRequest::has_time()
const {
578 return _internal_has_time();
580inline void TimeUpdateRequest::clear_time() {
581 _impl_.time_ = uint64_t{0u};
582 _impl_._has_bits_[0] &= ~0x00000004u;
584inline uint64_t TimeUpdateRequest::_internal_time()
const {
587inline uint64_t TimeUpdateRequest::time()
const {
589 return _internal_time();
591inline void TimeUpdateRequest::_internal_set_time(uint64_t value) {
592 _impl_._has_bits_[0] |= 0x00000004u;
593 _impl_.time_ = value;
595inline void TimeUpdateRequest::set_time(uint64_t value) {
596 _internal_set_time(value);
601inline bool TimeUpdateRequest::_internal_has_update_time_for_id()
const {
602 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
605inline bool TimeUpdateRequest::has_update_time_for_id()
const {
606 return _internal_has_update_time_for_id();
608inline void TimeUpdateRequest::clear_update_time_for_id() {
609 _impl_.update_time_for_id_ = 0;
610 _impl_._has_bits_[0] &= ~0x00000008u;
612inline int32_t TimeUpdateRequest::_internal_update_time_for_id()
const {
613 return _impl_.update_time_for_id_;
615inline int32_t TimeUpdateRequest::update_time_for_id()
const {
617 return _internal_update_time_for_id();
619inline void TimeUpdateRequest::_internal_set_update_time_for_id(int32_t value) {
620 _impl_._has_bits_[0] |= 0x00000008u;
621 _impl_.update_time_for_id_ = value;
623inline void TimeUpdateRequest::set_update_time_for_id(int32_t value) {
624 _internal_set_update_time_for_id(value);
633inline bool TimeUpdateResponse::_internal_has_src()
const {
634 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
637inline bool TimeUpdateResponse::has_src()
const {
638 return _internal_has_src();
640inline void TimeUpdateResponse::clear_src() {
642 _impl_._has_bits_[0] &= ~0x00000001u;
644inline int32_t TimeUpdateResponse::_internal_src()
const {
647inline int32_t TimeUpdateResponse::src()
const {
649 return _internal_src();
651inline void TimeUpdateResponse::_internal_set_src(int32_t value) {
652 _impl_._has_bits_[0] |= 0x00000001u;
655inline void TimeUpdateResponse::set_src(int32_t value) {
656 _internal_set_src(value);
661inline bool TimeUpdateResponse::_internal_has_dest()
const {
662 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
665inline bool TimeUpdateResponse::has_dest()
const {
666 return _internal_has_dest();
668inline void TimeUpdateResponse::clear_dest() {
670 _impl_._has_bits_[0] &= ~0x00000002u;
672inline int32_t TimeUpdateResponse::_internal_dest()
const {
675inline int32_t TimeUpdateResponse::dest()
const {
677 return _internal_dest();
679inline void TimeUpdateResponse::_internal_set_dest(int32_t value) {
680 _impl_._has_bits_[0] |= 0x00000002u;
681 _impl_.dest_ = value;
683inline void TimeUpdateResponse::set_dest(int32_t value) {
684 _internal_set_dest(value);
689inline bool TimeUpdateResponse::_internal_has_time()
const {
690 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
693inline bool TimeUpdateResponse::has_time()
const {
694 return _internal_has_time();
696inline void TimeUpdateResponse::clear_time() {
697 _impl_.time_ = uint64_t{0u};
698 _impl_._has_bits_[0] &= ~0x00000004u;
700inline uint64_t TimeUpdateResponse::_internal_time()
const {
703inline uint64_t TimeUpdateResponse::time()
const {
705 return _internal_time();
707inline void TimeUpdateResponse::_internal_set_time(uint64_t value) {
708 _impl_._has_bits_[0] |= 0x00000004u;
709 _impl_.time_ = value;
711inline void TimeUpdateResponse::set_time(uint64_t value) {
712 _internal_set_time(value);
717inline bool TimeUpdateResponse::_internal_has_time_of_flight_microsec()
const {
718 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
721inline bool TimeUpdateResponse::has_time_of_flight_microsec()
const {
722 return _internal_has_time_of_flight_microsec();
724inline void TimeUpdateResponse::clear_time_of_flight_microsec() {
725 _impl_.time_of_flight_microsec_ = uint64_t{0u};
726 _impl_._has_bits_[0] &= ~0x00000008u;
728inline uint64_t TimeUpdateResponse::_internal_time_of_flight_microsec()
const {
729 return _impl_.time_of_flight_microsec_;
731inline uint64_t TimeUpdateResponse::time_of_flight_microsec()
const {
733 return _internal_time_of_flight_microsec();
735inline void TimeUpdateResponse::_internal_set_time_of_flight_microsec(uint64_t value) {
736 _impl_._has_bits_[0] |= 0x00000008u;
737 _impl_.time_of_flight_microsec_ = value;
739inline void TimeUpdateResponse::set_time_of_flight_microsec(uint64_t value) {
740 _internal_set_time_of_flight_microsec(value);
745inline bool TimeUpdateResponse::_internal_has_request_src()
const {
746 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
749inline bool TimeUpdateResponse::has_request_src()
const {
750 return _internal_has_request_src();
752inline void TimeUpdateResponse::clear_request_src() {
753 _impl_.request_src_ = 0;
754 _impl_._has_bits_[0] &= ~0x00000010u;
756inline int32_t TimeUpdateResponse::_internal_request_src()
const {
757 return _impl_.request_src_;
759inline int32_t TimeUpdateResponse::request_src()
const {
761 return _internal_request_src();
763inline void TimeUpdateResponse::_internal_set_request_src(int32_t value) {
764 _impl_._has_bits_[0] |= 0x00000010u;
765 _impl_.request_src_ = value;
767inline void TimeUpdateResponse::set_request_src(int32_t value) {
768 _internal_set_request_src(value);
773 #pragma GCC diagnostic pop
786#include <google/protobuf/port_undef.inc>
TimeUpdateRequest & operator=(TimeUpdateRequest &&from) noexcept
int32_t update_time_for_id() const
static constexpr int kIndexInFileMessages
TimeUpdateRequest & operator=(const TimeUpdateRequest &from)
void set_update_time_for_id(int32_t value)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_src(int32_t value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
TimeUpdateRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const TimeUpdateRequest & default_instance()
size_t ByteSizeLong() const final
void UnsafeArenaSwap(TimeUpdateRequest *other)
~TimeUpdateRequest() override
bool has_update_time_for_id() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void Swap(TimeUpdateRequest *other)
bool IsInitialized() const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
@ kUpdateTimeForIdFieldNumber
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_dest(int32_t value)
TimeUpdateRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
TimeUpdateRequest(const TimeUpdateRequest &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
friend void swap(TimeUpdateRequest &a, TimeUpdateRequest &b)
TimeUpdateRequest(TimeUpdateRequest &&from) noexcept
void MergeFrom(const TimeUpdateRequest &from)
void set_time(uint64_t value)
PROTOBUF_CONSTEXPR TimeUpdateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void clear_update_time_for_id()
int GetCachedSize() const final
void CopyFrom(const TimeUpdateRequest &from)
static const TimeUpdateRequest * internal_default_instance()
static const ClassData _class_data_
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
TimeUpdateResponse(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
TimeUpdateResponse(TimeUpdateResponse &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
~TimeUpdateResponse() override
void Swap(TimeUpdateResponse *other)
TimeUpdateResponse & operator=(TimeUpdateResponse &&from) noexcept
static const TimeUpdateResponse & default_instance()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ClassData _class_data_
TimeUpdateResponse * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
friend void swap(TimeUpdateResponse &a, TimeUpdateResponse &b)
PROTOBUF_CONSTEXPR TimeUpdateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
TimeUpdateResponse(const TimeUpdateResponse &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static const TimeUpdateResponse * internal_default_instance()
void MergeFrom(const TimeUpdateResponse &from)
void UnsafeArenaSwap(TimeUpdateResponse *other)
TimeUpdateResponse & operator=(const TimeUpdateResponse &from)
void CopyFrom(const TimeUpdateResponse &from)
TimeUpdateRequestDefaultTypeInternal _TimeUpdateRequest_default_instance_
TimeUpdateResponseDefaultTypeInternal _TimeUpdateResponse_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto