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 < 3012000
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 3012004 < 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_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
36 #include "dccl/option_extensions.pb.h"
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto
44 PROTOBUF_NAMESPACE_OPEN
48 PROTOBUF_NAMESPACE_CLOSE
52 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
54 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
66 class TimeUpdateRequest;
67 class TimeUpdateRequestDefaultTypeInternal;
69 class TimeUpdateResponse;
70 class TimeUpdateResponseDefaultTypeInternal;
75 PROTOBUF_NAMESPACE_OPEN
76 template<> ::goby::acomms::protobuf::TimeUpdateRequest* Arena::CreateMaybeMessage<::goby::acomms::protobuf::TimeUpdateRequest>(Arena*);
77 template<> ::goby::acomms::protobuf::TimeUpdateResponse* Arena::CreateMaybeMessage<::goby::acomms::protobuf::TimeUpdateResponse>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
85 class TimeUpdateRequest PROTOBUF_FINAL :
86 public ::PROTOBUF_NAMESPACE_ID::Message {
93 : TimeUpdateRequest() {
94 *
this = ::std::move(from);
97 inline TimeUpdateRequest&
operator=(
const TimeUpdateRequest& from) {
101 inline TimeUpdateRequest&
operator=(TimeUpdateRequest&& from) noexcept {
102 if (GetArena() == from.GetArena()) {
103 if (
this != &from) InternalSwap(&from);
111 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
114 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
118 return GetDescriptor();
121 return GetMetadataStatic().descriptor;
124 return GetMetadataStatic().reflection;
130 return reinterpret_cast<const TimeUpdateRequest*
>(
133 static constexpr
int kIndexInFileMessages =
136 friend void swap(TimeUpdateRequest& a, TimeUpdateRequest& b) {
139 inline void Swap(TimeUpdateRequest* other) {
140 if (other ==
this)
return;
141 if (GetArena() == other->GetArena()) {
144 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
148 if (other ==
this)
return;
149 GOOGLE_DCHECK(GetArena() == other->GetArena());
155 inline TimeUpdateRequest*
New() const final {
156 return CreateMaybeMessage<TimeUpdateRequest>(
nullptr);
159 TimeUpdateRequest*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
160 return CreateMaybeMessage<TimeUpdateRequest>(arena);
162 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
163 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
166 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
167 bool IsInitialized() const final;
170 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
171 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
172 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
173 int GetCachedSize() const final {
return _cached_size_.Get(); }
176 inline void SharedCtor();
177 inline void SharedDtor();
178 void SetCachedSize(
int size)
const final;
179 void InternalSwap(TimeUpdateRequest* other);
180 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
181 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
182 return "goby.acomms.protobuf.TimeUpdateRequest";
187 static void ArenaDtor(
void*
object);
188 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
206 kDestFieldNumber = 2,
207 kTimeFieldNumber = 3,
208 kUpdateTimeForIdFieldNumber = 4,
213 bool _internal_has_src()
const;
226 bool _internal_has_dest()
const;
239 bool _internal_has_time()
const;
252 bool _internal_has_update_time_for_id()
const;
268 size_t RequiredFieldsByteSizeFallback()
const;
270 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
271 typedef void InternalArenaConstructable_;
272 typedef void DestructorSkippable_;
273 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
274 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
279 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto;
284 public ::PROTOBUF_NAMESPACE_ID::Message {
291 : TimeUpdateResponse() {
292 *
this = ::std::move(from);
295 inline TimeUpdateResponse&
operator=(
const TimeUpdateResponse& from) {
299 inline TimeUpdateResponse&
operator=(TimeUpdateResponse&& from) noexcept {
300 if (GetArena() == from.GetArena()) {
301 if (
this != &from) InternalSwap(&from);
309 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
312 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
315 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
316 return GetDescriptor();
319 return GetMetadataStatic().descriptor;
322 return GetMetadataStatic().reflection;
328 return reinterpret_cast<const TimeUpdateResponse*
>(
331 static constexpr
int kIndexInFileMessages =
334 friend void swap(TimeUpdateResponse& a, TimeUpdateResponse& b) {
337 inline void Swap(TimeUpdateResponse* other) {
338 if (other ==
this)
return;
339 if (GetArena() == other->GetArena()) {
342 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
346 if (other ==
this)
return;
347 GOOGLE_DCHECK(GetArena() == other->GetArena());
353 inline TimeUpdateResponse*
New() const final {
354 return CreateMaybeMessage<TimeUpdateResponse>(
nullptr);
357 TimeUpdateResponse*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
358 return CreateMaybeMessage<TimeUpdateResponse>(arena);
360 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
361 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
364 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
365 bool IsInitialized() const final;
368 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
369 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
370 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
371 int GetCachedSize() const final {
return _cached_size_.Get(); }
374 inline void SharedCtor();
375 inline void SharedDtor();
376 void SetCachedSize(
int size)
const final;
377 void InternalSwap(TimeUpdateResponse* other);
378 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
379 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
380 return "goby.acomms.protobuf.TimeUpdateResponse";
385 static void ArenaDtor(
void*
object);
386 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
391 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
404 kDestFieldNumber = 2,
405 kTimeFieldNumber = 3,
406 kTimeOfFlightMicrosecFieldNumber = 4,
407 kRequestSrcFieldNumber = 5,
412 bool _internal_has_src()
const;
425 bool _internal_has_dest()
const;
438 bool _internal_has_time()
const;
451 bool _internal_has_time_of_flight_microsec()
const;
464 bool _internal_has_request_src()
const;
480 size_t RequiredFieldsByteSizeFallback()
const;
482 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
483 typedef void InternalArenaConstructable_;
484 typedef void DestructorSkippable_;
485 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
486 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
492 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto;
500 #pragma GCC diagnostic push
501 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
506 inline bool TimeUpdateRequest::_internal_has_src()
const {
507 bool value = (_has_bits_[0] & 0x00000001u) != 0;
510 inline bool TimeUpdateRequest::has_src()
const {
511 return _internal_has_src();
513 inline void TimeUpdateRequest::clear_src() {
515 _has_bits_[0] &= ~0x00000001u;
522 return _internal_src();
525 _has_bits_[0] |= 0x00000001u;
529 _internal_set_src(value);
534 inline bool TimeUpdateRequest::_internal_has_dest()
const {
535 bool value = (_has_bits_[0] & 0x00000002u) != 0;
538 inline bool TimeUpdateRequest::has_dest()
const {
539 return _internal_has_dest();
541 inline void TimeUpdateRequest::clear_dest() {
543 _has_bits_[0] &= ~0x00000002u;
550 return _internal_dest();
553 _has_bits_[0] |= 0x00000002u;
557 _internal_set_dest(value);
562 inline bool TimeUpdateRequest::_internal_has_time()
const {
563 bool value = (_has_bits_[0] & 0x00000004u) != 0;
566 inline bool TimeUpdateRequest::has_time()
const {
567 return _internal_has_time();
569 inline void TimeUpdateRequest::clear_time() {
570 time_ = PROTOBUF_ULONGLONG(0);
571 _has_bits_[0] &= ~0x00000004u;
578 return _internal_time();
581 _has_bits_[0] |= 0x00000004u;
585 _internal_set_time(value);
590 inline bool TimeUpdateRequest::_internal_has_update_time_for_id()
const {
591 bool value = (_has_bits_[0] & 0x00000008u) != 0;
594 inline bool TimeUpdateRequest::has_update_time_for_id()
const {
595 return _internal_has_update_time_for_id();
597 inline void TimeUpdateRequest::clear_update_time_for_id() {
598 update_time_for_id_ = 0;
599 _has_bits_[0] &= ~0x00000008u;
602 return update_time_for_id_;
606 return _internal_update_time_for_id();
609 _has_bits_[0] |= 0x00000008u;
610 update_time_for_id_ =
value;
613 _internal_set_update_time_for_id(value);
622 inline bool TimeUpdateResponse::_internal_has_src()
const {
623 bool value = (_has_bits_[0] & 0x00000001u) != 0;
626 inline bool TimeUpdateResponse::has_src()
const {
627 return _internal_has_src();
629 inline void TimeUpdateResponse::clear_src() {
631 _has_bits_[0] &= ~0x00000001u;
638 return _internal_src();
641 _has_bits_[0] |= 0x00000001u;
645 _internal_set_src(value);
650 inline bool TimeUpdateResponse::_internal_has_dest()
const {
651 bool value = (_has_bits_[0] & 0x00000002u) != 0;
654 inline bool TimeUpdateResponse::has_dest()
const {
655 return _internal_has_dest();
657 inline void TimeUpdateResponse::clear_dest() {
659 _has_bits_[0] &= ~0x00000002u;
666 return _internal_dest();
669 _has_bits_[0] |= 0x00000002u;
673 _internal_set_dest(value);
678 inline bool TimeUpdateResponse::_internal_has_time()
const {
679 bool value = (_has_bits_[0] & 0x00000004u) != 0;
682 inline bool TimeUpdateResponse::has_time()
const {
683 return _internal_has_time();
685 inline void TimeUpdateResponse::clear_time() {
686 time_ = PROTOBUF_ULONGLONG(0);
687 _has_bits_[0] &= ~0x00000004u;
694 return _internal_time();
697 _has_bits_[0] |= 0x00000004u;
701 _internal_set_time(value);
706 inline bool TimeUpdateResponse::_internal_has_time_of_flight_microsec()
const {
707 bool value = (_has_bits_[0] & 0x00000008u) != 0;
710 inline bool TimeUpdateResponse::has_time_of_flight_microsec()
const {
711 return _internal_has_time_of_flight_microsec();
713 inline void TimeUpdateResponse::clear_time_of_flight_microsec() {
714 time_of_flight_microsec_ = PROTOBUF_ULONGLONG(0);
715 _has_bits_[0] &= ~0x00000008u;
718 return time_of_flight_microsec_;
722 return _internal_time_of_flight_microsec();
725 _has_bits_[0] |= 0x00000008u;
726 time_of_flight_microsec_ =
value;
729 _internal_set_time_of_flight_microsec(value);
734 inline bool TimeUpdateResponse::_internal_has_request_src()
const {
735 bool value = (_has_bits_[0] & 0x00000010u) != 0;
738 inline bool TimeUpdateResponse::has_request_src()
const {
739 return _internal_has_request_src();
741 inline void TimeUpdateResponse::clear_request_src() {
743 _has_bits_[0] &= ~0x00000010u;
750 return _internal_request_src();
753 _has_bits_[0] |= 0x00000010u;
754 request_src_ =
value;
757 _internal_set_request_src(value);
762 #pragma GCC diagnostic pop
775 #include <google/protobuf/port_undef.inc>
TimeUpdateResponse * New() const final
void UnsafeArenaSwap(TimeUpdateRequest *other)
::PROTOBUF_NAMESPACE_ID::int32 dest() const
static const TimeUpdateRequest & default_instance()
virtual ~TimeUpdateResponse()
void MergeFrom(const TimeUpdateRequest &from)
static const TimeUpdateRequest * internal_default_instance()
TimeUpdateResponse(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_time(::PROTOBUF_NAMESPACE_ID::uint64 value)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const TimeUpdateResponse &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void UnsafeArenaSwap(TimeUpdateResponse *other)
TimeUpdateResponse & operator=(const TimeUpdateResponse &from)
void MergeFrom(const TimeUpdateResponse &from)
void Swap(TimeUpdateResponse *other)
void clear_time_of_flight_microsec()
void CopyFrom(const TimeUpdateRequest &from)
TimeUpdateRequest(const TimeUpdateRequest &from)
TimeUpdateResponse(const TimeUpdateResponse &from)
static const TimeUpdateResponse * internal_default_instance()
TimeUpdateRequest * New() const final
void set_dest(::PROTOBUF_NAMESPACE_ID::int32 value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static void InitAsDefaultInstance()
void Swap(TimeUpdateRequest *other)
void set_time_of_flight_microsec(::PROTOBUF_NAMESPACE_ID::uint64 value)
::PROTOBUF_NAMESPACE_ID::int32 request_src() const
TimeUpdateRequest & operator=(TimeUpdateRequest &&from) noexcept
friend void swap(TimeUpdateResponse &a, TimeUpdateResponse &b)
TimeUpdateRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
TimeUpdateRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::PROTOBUF_NAMESPACE_ID::uint64 time_of_flight_microsec() const
void set_src(::PROTOBUF_NAMESPACE_ID::int32 value)
bool has_update_time_for_id() const
TimeUpdateResponse * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
virtual ~TimeUpdateRequest()
bool has_time_of_flight_microsec() const
void clear_update_time_for_id()
void set_update_time_for_id(::PROTOBUF_NAMESPACE_ID::int32 value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
bool has_request_src() const
friend void swap(TimeUpdateRequest &a, TimeUpdateRequest &b)
::PROTOBUF_NAMESPACE_ID::uint64 time() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
TimeUpdateResponse & operator=(TimeUpdateResponse &&from) noexcept
void set_request_src(::PROTOBUF_NAMESPACE_ID::int32 value)
::PROTOBUF_NAMESPACE_ID::int32 src() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
TimeUpdateRequest & operator=(const TimeUpdateRequest &from)
TimeUpdateRequest(TimeUpdateRequest &&from) noexcept
::PROTOBUF_NAMESPACE_ID::int32 update_time_for_id() const
TimeUpdateResponse(TimeUpdateResponse &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static const TimeUpdateResponse & default_instance()
unit< time_dimension, si::system > time
@ value
the parser finished reading a JSON value
TimeUpdateRequestDefaultTypeInternal _TimeUpdateRequest_default_instance_
TimeUpdateResponseDefaultTypeInternal _TimeUpdateResponse_default_instance_
The global namespace for the Goby project.
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2ftime_5fupdate_2eproto