4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_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/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
35#include "dccl/option_extensions.pb.h"
36#include <boost/units/quantity.hpp>
37#include <boost/units/absolute.hpp>
38#include <boost/units/dimensionless_type.hpp>
39#include <boost/units/make_scaled_unit.hpp>
41#include <boost/units/systems/si.hpp>
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
45PROTOBUF_NAMESPACE_OPEN
49PROTOBUF_NAMESPACE_CLOSE
61struct HeaderDefaultTypeInternal;
67PROTOBUF_NAMESPACE_OPEN
69PROTOBUF_NAMESPACE_CLOSE
88 static_assert(::std::is_same<T, Header_PublishDestination>::value ||
89 ::std::is_integral<T>::value,
90 "Incorrect type passed to function Header_PublishDestination_Name.");
91 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
96 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Header_PublishDestination>(
102 public ::PROTOBUF_NAMESPACE_ID::Message {
106 explicit PROTOBUF_CONSTEXPR
Header(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
111 *
this = ::std::move(from);
119 if (
this == &from)
return *
this;
120 if (GetOwningArena() == from.GetOwningArena()
121 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
122 && GetOwningArena() !=
nullptr
133 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
136 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
139 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
152 return reinterpret_cast<const Header*
>(
162 if (other ==
this)
return;
163 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
164 if (GetOwningArena() !=
nullptr &&
165 GetOwningArena() == other->GetOwningArena()) {
167 if (GetOwningArena() == other->GetOwningArena()) {
171 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
175 if (other ==
this)
return;
176 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
182 Header*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
183 return CreateMaybeMessage<Header>(arena);
185 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
187 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
189 Header::MergeImpl(*
this, from);
192 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
194 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
200 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
204 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
206 void SetCachedSize(
int size)
const final;
207 void InternalSwap(
Header* other);
210 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
211 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
212 return "goby.test.acomms.protobuf.Header";
215 explicit Header(::PROTOBUF_NAMESPACE_ID::Arena* arena,
216 bool is_message_owned =
false);
220 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
242 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
248 static_assert(::std::is_same<T, PublishDestination>::value ||
249 ::std::is_integral<T>::value,
250 "Incorrect type passed to function PublishDestination_Name.");
270 bool _internal_has_source_app()
const;
274 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
280 const std::string& _internal_source_app()
const;
281 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_source_app(
const std::string& value);
282 std::string* _internal_mutable_source_app();
288 bool _internal_has_time()
const;
291 uint64_t
time()
const;
294 uint64_t _internal_time()
const;
295 void _internal_set_time(uint64_t value);
301 bool _internal_has_source_platform()
const;
307 uint32_t _internal_source_platform()
const;
308 void _internal_set_source_platform(uint32_t value);
314 bool _internal_has_dest_platform()
const;
320 uint32_t _internal_dest_platform()
const;
321 void _internal_set_dest_platform(uint32_t value);
327 bool _internal_has_dest_type()
const;
337 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type
time_dimension;
339 typedef boost::units::make_scaled_unit<boost::units::unit<time_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type
time_unit;
341 template<
typename Quantity >
343 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
345 template<
typename Quantity >
350 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
357 size_t RequiredFieldsByteSizeFallback()
const;
359 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
360 typedef void InternalArenaConstructable_;
361 typedef void DestructorSkippable_;
363 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
364 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
365 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_app_;
367 uint32_t source_platform_;
368 uint32_t dest_platform_;
372 friend struct ::TableStruct_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto;
380 #pragma GCC diagnostic push
381 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
386inline bool Header::_internal_has_time()
const {
387 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
391 return _internal_has_time();
394 _impl_.time_ = uint64_t{0u};
395 _impl_._has_bits_[0] &= ~0x00000002u;
397inline uint64_t Header::_internal_time()
const {
402 return _internal_time();
404inline void Header::_internal_set_time(uint64_t value) {
405 _impl_._has_bits_[0] |= 0x00000002u;
409 _internal_set_time(value);
414inline bool Header::_internal_has_source_platform()
const {
415 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
419 return _internal_has_source_platform();
422 _impl_.source_platform_ = 0u;
423 _impl_._has_bits_[0] &= ~0x00000004u;
425inline uint32_t Header::_internal_source_platform()
const {
426 return _impl_.source_platform_;
430 return _internal_source_platform();
432inline void Header::_internal_set_source_platform(uint32_t value) {
433 _impl_._has_bits_[0] |= 0x00000004u;
434 _impl_.source_platform_ = value;
437 _internal_set_source_platform(value);
442inline bool Header::_internal_has_source_app()
const {
443 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
447 return _internal_has_source_app();
450 _impl_.source_app_.ClearToEmpty();
451 _impl_._has_bits_[0] &= ~0x00000001u;
455 return _internal_source_app();
457template <
typename ArgT0,
typename... ArgT>
458inline PROTOBUF_ALWAYS_INLINE
460 _impl_._has_bits_[0] |= 0x00000001u;
461 _impl_.source_app_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
465 std::string* _s = _internal_mutable_source_app();
469inline const std::string& Header::_internal_source_app()
const {
470 return _impl_.source_app_.Get();
472inline void Header::_internal_set_source_app(
const std::string& value) {
473 _impl_._has_bits_[0] |= 0x00000001u;
474 _impl_.source_app_.Set(value, GetArenaForAllocation());
476inline std::string* Header::_internal_mutable_source_app() {
477 _impl_._has_bits_[0] |= 0x00000001u;
478 return _impl_.source_app_.Mutable(GetArenaForAllocation());
482 if (!_internal_has_source_app()) {
485 _impl_._has_bits_[0] &= ~0x00000001u;
486 auto* p =
_impl_.source_app_.Release();
487#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
488 if (
_impl_.source_app_.IsDefault()) {
489 _impl_.source_app_.Set(
"", GetArenaForAllocation());
496 _impl_._has_bits_[0] |= 0x00000001u;
498 _impl_._has_bits_[0] &= ~0x00000001u;
501#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
502 if (
_impl_.source_app_.IsDefault()) {
503 _impl_.source_app_.Set(
"", GetArenaForAllocation());
510inline bool Header::_internal_has_dest_type()
const {
511 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
515 return _internal_has_dest_type();
519 _impl_._has_bits_[0] &= ~0x00000010u;
521inline ::goby::test::acomms::protobuf::Header_PublishDestination Header::_internal_dest_type()
const {
526 return _internal_dest_type();
530 _impl_._has_bits_[0] |= 0x00000010u;
531 _impl_.dest_type_ = value;
534 _internal_set_dest_type(value);
539inline bool Header::_internal_has_dest_platform()
const {
540 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
544 return _internal_has_dest_platform();
547 _impl_.dest_platform_ = 0u;
548 _impl_._has_bits_[0] &= ~0x00000008u;
550inline uint32_t Header::_internal_dest_platform()
const {
551 return _impl_.dest_platform_;
555 return _internal_dest_platform();
557inline void Header::_internal_set_dest_platform(uint32_t value) {
558 _impl_._has_bits_[0] |= 0x00000008u;
559 _impl_.dest_platform_ = value;
562 _internal_set_dest_platform(value);
567 #pragma GCC diagnostic pop
577PROTOBUF_NAMESPACE_OPEN
582 return ::goby::test::acomms::protobuf::Header_PublishDestination_descriptor();
585PROTOBUF_NAMESPACE_CLOSE
589#include <google/protobuf/port_undef.inc>
HeaderDefaultTypeInternal _Header_default_instance_
bool Header_PublishDestination_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Header_PublishDestination *value)
constexpr Header_PublishDestination Header_PublishDestination_PublishDestination_MAX
Header_PublishDestination
@ Header_PublishDestination_PUBLISH_OTHER
@ Header_PublishDestination_PUBLISH_SELF
@ Header_PublishDestination_PUBLISH_ALL
constexpr Header_PublishDestination Header_PublishDestination_PublishDestination_MIN
bool Header_PublishDestination_IsValid(int value)
constexpr int Header_PublishDestination_PublishDestination_ARRAYSIZE
const std::string & Header_PublishDestination_Name(T enum_t_value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Header_PublishDestination_descriptor()
The global namespace for the Goby project.