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>
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 <boost/units/systems/si.hpp>
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
44PROTOBUF_NAMESPACE_OPEN
48PROTOBUF_NAMESPACE_CLOSE
60struct HeaderDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
87 static_assert(::std::is_same<T, Header_PublishDestination>::value ||
88 ::std::is_integral<T>::value,
89 "Incorrect type passed to function Header_PublishDestination_Name.");
90 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
95 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Header_PublishDestination>(
101 public ::PROTOBUF_NAMESPACE_ID::Message {
105 explicit PROTOBUF_CONSTEXPR
Header(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
110 *
this = ::std::move(from);
118 if (
this == &from)
return *
this;
119 if (GetOwningArena() == from.GetOwningArena()
120 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
121 && GetOwningArena() !=
nullptr
132 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
135 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
138 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
151 return reinterpret_cast<const Header*
>(
161 if (other ==
this)
return;
162 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
163 if (GetOwningArena() !=
nullptr &&
164 GetOwningArena() == other->GetOwningArena()) {
166 if (GetOwningArena() == other->GetOwningArena()) {
170 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
174 if (other ==
this)
return;
175 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
181 Header*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
182 return CreateMaybeMessage<Header>(arena);
184 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
186 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
188 Header::MergeImpl(*
this, from);
191 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
193 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
199 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
203 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
205 void SetCachedSize(
int size)
const final;
206 void InternalSwap(
Header* other);
209 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
210 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
211 return "goby.test.acomms.protobuf.Header";
214 explicit Header(::PROTOBUF_NAMESPACE_ID::Arena* arena,
215 bool is_message_owned =
false);
219 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
241 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
247 static_assert(::std::is_same<T, PublishDestination>::value ||
248 ::std::is_integral<T>::value,
249 "Incorrect type passed to function PublishDestination_Name.");
269 bool _internal_has_source_app()
const;
273 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
279 const std::string& _internal_source_app()
const;
280 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_source_app(
const std::string& value);
281 std::string* _internal_mutable_source_app();
287 bool _internal_has_time()
const;
290 uint64_t
time()
const;
293 uint64_t _internal_time()
const;
294 void _internal_set_time(uint64_t value);
300 bool _internal_has_source_platform()
const;
306 uint32_t _internal_source_platform()
const;
307 void _internal_set_source_platform(uint32_t value);
313 bool _internal_has_dest_platform()
const;
319 uint32_t _internal_dest_platform()
const;
320 void _internal_set_dest_platform(uint32_t value);
326 bool _internal_has_dest_type()
const;
336 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type
time_dimension;
338 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;
340 template<
typename Quantity >
342 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
344 template<
typename Quantity >
349 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
356 size_t RequiredFieldsByteSizeFallback()
const;
358 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
359 typedef void InternalArenaConstructable_;
360 typedef void DestructorSkippable_;
362 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
363 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
364 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_app_;
366 uint32_t source_platform_;
367 uint32_t dest_platform_;
371 friend struct ::TableStruct_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto;
379 #pragma GCC diagnostic push
380 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
385inline bool Header::_internal_has_time()
const {
386 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
390 return _internal_has_time();
393 _impl_.time_ = uint64_t{0u};
394 _impl_._has_bits_[0] &= ~0x00000002u;
396inline uint64_t Header::_internal_time()
const {
401 return _internal_time();
403inline void Header::_internal_set_time(uint64_t value) {
404 _impl_._has_bits_[0] |= 0x00000002u;
408 _internal_set_time(value);
413inline bool Header::_internal_has_source_platform()
const {
414 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
418 return _internal_has_source_platform();
421 _impl_.source_platform_ = 0u;
422 _impl_._has_bits_[0] &= ~0x00000004u;
424inline uint32_t Header::_internal_source_platform()
const {
425 return _impl_.source_platform_;
429 return _internal_source_platform();
431inline void Header::_internal_set_source_platform(uint32_t value) {
432 _impl_._has_bits_[0] |= 0x00000004u;
433 _impl_.source_platform_ = value;
436 _internal_set_source_platform(value);
441inline bool Header::_internal_has_source_app()
const {
442 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
446 return _internal_has_source_app();
449 _impl_.source_app_.ClearToEmpty();
450 _impl_._has_bits_[0] &= ~0x00000001u;
454 return _internal_source_app();
456template <
typename ArgT0,
typename... ArgT>
457inline PROTOBUF_ALWAYS_INLINE
459 _impl_._has_bits_[0] |= 0x00000001u;
460 _impl_.source_app_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
464 std::string* _s = _internal_mutable_source_app();
468inline const std::string& Header::_internal_source_app()
const {
469 return _impl_.source_app_.Get();
471inline void Header::_internal_set_source_app(
const std::string& value) {
472 _impl_._has_bits_[0] |= 0x00000001u;
473 _impl_.source_app_.Set(value, GetArenaForAllocation());
475inline std::string* Header::_internal_mutable_source_app() {
476 _impl_._has_bits_[0] |= 0x00000001u;
477 return _impl_.source_app_.Mutable(GetArenaForAllocation());
481 if (!_internal_has_source_app()) {
484 _impl_._has_bits_[0] &= ~0x00000001u;
485 auto* p =
_impl_.source_app_.Release();
486#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
487 if (
_impl_.source_app_.IsDefault()) {
488 _impl_.source_app_.Set(
"", GetArenaForAllocation());
495 _impl_._has_bits_[0] |= 0x00000001u;
497 _impl_._has_bits_[0] &= ~0x00000001u;
500#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
501 if (
_impl_.source_app_.IsDefault()) {
502 _impl_.source_app_.Set(
"", GetArenaForAllocation());
509inline bool Header::_internal_has_dest_type()
const {
510 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
514 return _internal_has_dest_type();
518 _impl_._has_bits_[0] &= ~0x00000010u;
520inline ::goby::test::acomms::protobuf::Header_PublishDestination Header::_internal_dest_type()
const {
525 return _internal_dest_type();
529 _impl_._has_bits_[0] |= 0x00000010u;
530 _impl_.dest_type_ = value;
533 _internal_set_dest_type(value);
538inline bool Header::_internal_has_dest_platform()
const {
539 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
543 return _internal_has_dest_platform();
546 _impl_.dest_platform_ = 0u;
547 _impl_._has_bits_[0] &= ~0x00000008u;
549inline uint32_t Header::_internal_dest_platform()
const {
550 return _impl_.dest_platform_;
554 return _internal_dest_platform();
556inline void Header::_internal_set_dest_platform(uint32_t value) {
557 _impl_._has_bits_[0] |= 0x00000008u;
558 _impl_.dest_platform_ = value;
561 _internal_set_dest_platform(value);
566 #pragma GCC diagnostic pop
576PROTOBUF_NAMESPACE_OPEN
581 return ::goby::test::acomms::protobuf::Header_PublishDestination_descriptor();
584PROTOBUF_NAMESPACE_CLOSE
588#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.