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>
34#include "dccl/option_extensions.pb.h"
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
56class TimeUpdateRequest;
57struct TimeUpdateRequestDefaultTypeInternal;
59class TimeUpdateResponse;
60struct TimeUpdateResponseDefaultTypeInternal;
65PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
76 public ::PROTOBUF_NAMESPACE_ID::Message {
80 explicit PROTOBUF_CONSTEXPR
TimeUpdateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
85 *
this = ::std::move(from);
93 if (
this == &from)
return *
this;
94 if (GetOwningArena() == from.GetOwningArena()
95 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
96 && GetOwningArena() !=
nullptr
107 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
136 if (other ==
this)
return;
137 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() !=
nullptr &&
139 GetOwningArena() == other->GetOwningArena()) {
141 if (GetOwningArena() == other->GetOwningArena()) {
145 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
149 if (other ==
this)
return;
150 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
157 return CreateMaybeMessage<TimeUpdateRequest>(arena);
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163 TimeUpdateRequest::MergeImpl(*
this, from);
166 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
168 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
174 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
178 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
180 void SetCachedSize(
int size)
const final;
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "goby.acomms.protobuf.TimeUpdateRequest";
190 bool is_message_owned =
false);
194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
211 bool _internal_has_src()
const;
217 int32_t _internal_src()
const;
218 void _internal_set_src(int32_t value);
224 bool _internal_has_dest()
const;
227 int32_t
dest()
const;
230 int32_t _internal_dest()
const;
231 void _internal_set_dest(int32_t value);
237 bool _internal_has_time()
const;
240 uint64_t
time()
const;
243 uint64_t _internal_time()
const;
244 void _internal_set_time(uint64_t value);
250 bool _internal_has_update_time_for_id()
const;
256 int32_t _internal_update_time_for_id()
const;
257 void _internal_set_update_time_for_id(int32_t value);
266 size_t RequiredFieldsByteSizeFallback()
const;
268 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
269 typedef void InternalArenaConstructable_;
270 typedef void DestructorSkippable_;
272 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
273 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
277 int32_t update_time_for_id_;
280 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto;
285 public ::PROTOBUF_NAMESPACE_ID::Message {
289 explicit PROTOBUF_CONSTEXPR
TimeUpdateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
294 *
this = ::std::move(from);
302 if (
this == &from)
return *
this;
303 if (GetOwningArena() == from.GetOwningArena()
304 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
305 && GetOwningArena() !=
nullptr
316 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
319 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
322 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
323 return GetDescriptor();
326 return default_instance().GetMetadata().descriptor;
329 return default_instance().GetMetadata().reflection;
332 return *internal_default_instance();
338 static constexpr int kIndexInFileMessages =
345 if (other ==
this)
return;
346 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
347 if (GetOwningArena() !=
nullptr &&
348 GetOwningArena() == other->GetOwningArena()) {
350 if (GetOwningArena() == other->GetOwningArena()) {
354 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
358 if (other ==
this)
return;
359 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
366 return CreateMaybeMessage<TimeUpdateResponse>(arena);
368 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
370 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
372 TimeUpdateResponse::MergeImpl(*
this, from);
375 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
377 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
378 bool IsInitialized() const final;
381 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
382 uint8_t* _InternalSerialize(
383 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
384 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
387 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
389 void SetCachedSize(
int size)
const final;
393 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
394 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
395 return "goby.acomms.protobuf.TimeUpdateResponse";
399 bool is_message_owned =
false);
403 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
405 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
413 kDestFieldNumber = 2,
414 kTimeFieldNumber = 3,
415 kTimeOfFlightMicrosecFieldNumber = 4,
416 kRequestSrcFieldNumber = 5,
419 bool has_src()
const;
421 bool _internal_has_src()
const;
425 void set_src(int32_t value);
427 int32_t _internal_src()
const;
428 void _internal_set_src(int32_t value);
432 bool has_dest()
const;
434 bool _internal_has_dest()
const;
437 int32_t dest()
const;
438 void set_dest(int32_t value);
440 int32_t _internal_dest()
const;
441 void _internal_set_dest(int32_t value);
445 bool has_time()
const;
447 bool _internal_has_time()
const;
450 uint64_t time()
const;
451 void set_time(uint64_t value);
453 uint64_t _internal_time()
const;
454 void _internal_set_time(uint64_t value);
458 bool has_time_of_flight_microsec()
const;
460 bool _internal_has_time_of_flight_microsec()
const;
462 void clear_time_of_flight_microsec();
463 uint64_t time_of_flight_microsec()
const;
464 void set_time_of_flight_microsec(uint64_t value);
466 uint64_t _internal_time_of_flight_microsec()
const;
467 void _internal_set_time_of_flight_microsec(uint64_t value);
471 bool has_request_src()
const;
473 bool _internal_has_request_src()
const;
475 void clear_request_src();
476 int32_t request_src()
const;
477 void set_request_src(int32_t value);
479 int32_t _internal_request_src()
const;
480 void _internal_set_request_src(int32_t value);
489 size_t RequiredFieldsByteSizeFallback()
const;
491 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
492 typedef void InternalArenaConstructable_;
493 typedef void DestructorSkippable_;
495 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
496 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
500 uint64_t time_of_flight_microsec_;
501 int32_t request_src_;
504 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto;
512 #pragma GCC diagnostic push
513 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
518inline bool TimeUpdateRequest::_internal_has_src()
const {
519 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
522inline bool TimeUpdateRequest::has_src()
const {
523 return _internal_has_src();
525inline void TimeUpdateRequest::clear_src() {
527 _impl_._has_bits_[0] &= ~0x00000001u;
529inline int32_t TimeUpdateRequest::_internal_src()
const {
532inline int32_t TimeUpdateRequest::src()
const {
534 return _internal_src();
536inline void TimeUpdateRequest::_internal_set_src(int32_t value) {
537 _impl_._has_bits_[0] |= 0x00000001u;
540inline void TimeUpdateRequest::set_src(int32_t value) {
541 _internal_set_src(value);
546inline bool TimeUpdateRequest::_internal_has_dest()
const {
547 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
550inline bool TimeUpdateRequest::has_dest()
const {
551 return _internal_has_dest();
553inline void TimeUpdateRequest::clear_dest() {
555 _impl_._has_bits_[0] &= ~0x00000002u;
557inline int32_t TimeUpdateRequest::_internal_dest()
const {
560inline int32_t TimeUpdateRequest::dest()
const {
562 return _internal_dest();
564inline void TimeUpdateRequest::_internal_set_dest(int32_t value) {
565 _impl_._has_bits_[0] |= 0x00000002u;
566 _impl_.dest_ = value;
568inline void TimeUpdateRequest::set_dest(int32_t value) {
569 _internal_set_dest(value);
574inline bool TimeUpdateRequest::_internal_has_time()
const {
575 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
578inline bool TimeUpdateRequest::has_time()
const {
579 return _internal_has_time();
581inline void TimeUpdateRequest::clear_time() {
582 _impl_.time_ = uint64_t{0u};
583 _impl_._has_bits_[0] &= ~0x00000004u;
585inline uint64_t TimeUpdateRequest::_internal_time()
const {
588inline uint64_t TimeUpdateRequest::time()
const {
590 return _internal_time();
592inline void TimeUpdateRequest::_internal_set_time(uint64_t value) {
593 _impl_._has_bits_[0] |= 0x00000004u;
594 _impl_.time_ = value;
596inline void TimeUpdateRequest::set_time(uint64_t value) {
597 _internal_set_time(value);
602inline bool TimeUpdateRequest::_internal_has_update_time_for_id()
const {
603 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
606inline bool TimeUpdateRequest::has_update_time_for_id()
const {
607 return _internal_has_update_time_for_id();
609inline void TimeUpdateRequest::clear_update_time_for_id() {
610 _impl_.update_time_for_id_ = 0;
611 _impl_._has_bits_[0] &= ~0x00000008u;
613inline int32_t TimeUpdateRequest::_internal_update_time_for_id()
const {
614 return _impl_.update_time_for_id_;
616inline int32_t TimeUpdateRequest::update_time_for_id()
const {
618 return _internal_update_time_for_id();
620inline void TimeUpdateRequest::_internal_set_update_time_for_id(int32_t value) {
621 _impl_._has_bits_[0] |= 0x00000008u;
622 _impl_.update_time_for_id_ = value;
624inline void TimeUpdateRequest::set_update_time_for_id(int32_t value) {
625 _internal_set_update_time_for_id(value);
634inline bool TimeUpdateResponse::_internal_has_src()
const {
635 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
638inline bool TimeUpdateResponse::has_src()
const {
639 return _internal_has_src();
641inline void TimeUpdateResponse::clear_src() {
643 _impl_._has_bits_[0] &= ~0x00000001u;
645inline int32_t TimeUpdateResponse::_internal_src()
const {
648inline int32_t TimeUpdateResponse::src()
const {
650 return _internal_src();
652inline void TimeUpdateResponse::_internal_set_src(int32_t value) {
653 _impl_._has_bits_[0] |= 0x00000001u;
656inline void TimeUpdateResponse::set_src(int32_t value) {
657 _internal_set_src(value);
662inline bool TimeUpdateResponse::_internal_has_dest()
const {
663 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
666inline bool TimeUpdateResponse::has_dest()
const {
667 return _internal_has_dest();
669inline void TimeUpdateResponse::clear_dest() {
671 _impl_._has_bits_[0] &= ~0x00000002u;
673inline int32_t TimeUpdateResponse::_internal_dest()
const {
676inline int32_t TimeUpdateResponse::dest()
const {
678 return _internal_dest();
680inline void TimeUpdateResponse::_internal_set_dest(int32_t value) {
681 _impl_._has_bits_[0] |= 0x00000002u;
682 _impl_.dest_ = value;
684inline void TimeUpdateResponse::set_dest(int32_t value) {
685 _internal_set_dest(value);
690inline bool TimeUpdateResponse::_internal_has_time()
const {
691 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
694inline bool TimeUpdateResponse::has_time()
const {
695 return _internal_has_time();
697inline void TimeUpdateResponse::clear_time() {
698 _impl_.time_ = uint64_t{0u};
699 _impl_._has_bits_[0] &= ~0x00000004u;
701inline uint64_t TimeUpdateResponse::_internal_time()
const {
704inline uint64_t TimeUpdateResponse::time()
const {
706 return _internal_time();
708inline void TimeUpdateResponse::_internal_set_time(uint64_t value) {
709 _impl_._has_bits_[0] |= 0x00000004u;
710 _impl_.time_ = value;
712inline void TimeUpdateResponse::set_time(uint64_t value) {
713 _internal_set_time(value);
718inline bool TimeUpdateResponse::_internal_has_time_of_flight_microsec()
const {
719 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
722inline bool TimeUpdateResponse::has_time_of_flight_microsec()
const {
723 return _internal_has_time_of_flight_microsec();
725inline void TimeUpdateResponse::clear_time_of_flight_microsec() {
726 _impl_.time_of_flight_microsec_ = uint64_t{0u};
727 _impl_._has_bits_[0] &= ~0x00000008u;
729inline uint64_t TimeUpdateResponse::_internal_time_of_flight_microsec()
const {
730 return _impl_.time_of_flight_microsec_;
732inline uint64_t TimeUpdateResponse::time_of_flight_microsec()
const {
734 return _internal_time_of_flight_microsec();
736inline void TimeUpdateResponse::_internal_set_time_of_flight_microsec(uint64_t value) {
737 _impl_._has_bits_[0] |= 0x00000008u;
738 _impl_.time_of_flight_microsec_ = value;
740inline void TimeUpdateResponse::set_time_of_flight_microsec(uint64_t value) {
741 _internal_set_time_of_flight_microsec(value);
746inline bool TimeUpdateResponse::_internal_has_request_src()
const {
747 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
750inline bool TimeUpdateResponse::has_request_src()
const {
751 return _internal_has_request_src();
753inline void TimeUpdateResponse::clear_request_src() {
754 _impl_.request_src_ = 0;
755 _impl_._has_bits_[0] &= ~0x00000010u;
757inline int32_t TimeUpdateResponse::_internal_request_src()
const {
758 return _impl_.request_src_;
760inline int32_t TimeUpdateResponse::request_src()
const {
762 return _internal_request_src();
764inline void TimeUpdateResponse::_internal_set_request_src(int32_t value) {
765 _impl_._has_bits_[0] |= 0x00000010u;
766 _impl_.request_src_ = value;
768inline void TimeUpdateResponse::set_request_src(int32_t value) {
769 _internal_set_request_src(value);
774 #pragma GCC diagnostic pop
787#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
@ kUpdateTimeForIdFieldNumber
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
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