4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2ftest_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"
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_2ftest_2facomms_2fdccl3_2ftest_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
58struct GobyMessageDefaultTypeInternal;
64PROTOBUF_NAMESPACE_OPEN
66PROTOBUF_NAMESPACE_CLOSE
75 public ::PROTOBUF_NAMESPACE_ID::Message {
79 explicit PROTOBUF_CONSTEXPR
GobyMessage(::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<GobyMessage>(arena);
158 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
160 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
162 GobyMessage::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.test.acomms.protobuf.GobyMessage";
189 bool is_message_owned =
false);
193 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
208 bool _internal_has_telegram()
const;
211 const std::string&
telegram()
const;
212 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
218 const std::string& _internal_telegram()
const;
219 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_telegram(
const std::string& value);
220 std::string* _internal_mutable_telegram();
226 bool _internal_has_header()
const;
229 const ::goby::test::acomms::protobuf::Header&
header()
const;
230 PROTOBUF_NODISCARD ::goby::test::acomms::protobuf::Header*
release_header();
234 const ::goby::test::acomms::protobuf::Header& _internal_header()
const;
247 size_t RequiredFieldsByteSizeFallback()
const;
249 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
250 typedef void InternalArenaConstructable_;
251 typedef void DestructorSkippable_;
253 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
254 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
255 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr telegram_;
259 friend struct ::TableStruct_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto;
267 #pragma GCC diagnostic push
268 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
273inline bool GobyMessage::_internal_has_telegram()
const {
274 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
278 return _internal_has_telegram();
281 _impl_.telegram_.ClearToEmpty();
282 _impl_._has_bits_[0] &= ~0x00000001u;
286 return _internal_telegram();
288template <
typename ArgT0,
typename... ArgT>
289inline PROTOBUF_ALWAYS_INLINE
291 _impl_._has_bits_[0] |= 0x00000001u;
292 _impl_.telegram_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
296 std::string* _s = _internal_mutable_telegram();
300inline const std::string& GobyMessage::_internal_telegram()
const {
301 return _impl_.telegram_.Get();
303inline void GobyMessage::_internal_set_telegram(
const std::string& value) {
304 _impl_._has_bits_[0] |= 0x00000001u;
305 _impl_.telegram_.Set(value, GetArenaForAllocation());
307inline std::string* GobyMessage::_internal_mutable_telegram() {
308 _impl_._has_bits_[0] |= 0x00000001u;
309 return _impl_.telegram_.Mutable(GetArenaForAllocation());
313 if (!_internal_has_telegram()) {
316 _impl_._has_bits_[0] &= ~0x00000001u;
317 auto* p =
_impl_.telegram_.Release();
318#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
319 if (
_impl_.telegram_.IsDefault()) {
320 _impl_.telegram_.Set(
"", GetArenaForAllocation());
327 _impl_._has_bits_[0] |= 0x00000001u;
329 _impl_._has_bits_[0] &= ~0x00000001u;
332#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
333 if (
_impl_.telegram_.IsDefault()) {
334 _impl_.telegram_.Set(
"", GetArenaForAllocation());
341inline bool GobyMessage::_internal_has_header()
const {
342 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
343 PROTOBUF_ASSUME(!value ||
_impl_.header_ !=
nullptr);
347 return _internal_has_header();
349inline const ::goby::test::acomms::protobuf::Header& GobyMessage::_internal_header()
const {
350 const ::goby::test::acomms::protobuf::Header* p =
_impl_.header_;
356 return _internal_header();
360 if (GetArenaForAllocation() ==
nullptr) {
361 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.header_);
365 _impl_._has_bits_[0] |= 0x00000002u;
367 _impl_._has_bits_[0] &= ~0x00000002u;
372 _impl_._has_bits_[0] &= ~0x00000002u;
375#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
376 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
377 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
378 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
380 if (GetArenaForAllocation() !=
nullptr) {
381 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
388 _impl_._has_bits_[0] &= ~0x00000002u;
393inline ::goby::test::acomms::protobuf::Header* GobyMessage::_internal_mutable_header() {
394 _impl_._has_bits_[0] |= 0x00000002u;
395 if (
_impl_.header_ ==
nullptr) {
407 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
408 if (message_arena ==
nullptr) {
409 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.header_);
412 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
413 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
414 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
header));
415 if (message_arena != submessage_arena) {
416 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
417 message_arena,
header, submessage_arena);
419 _impl_._has_bits_[0] |= 0x00000002u;
421 _impl_._has_bits_[0] &= ~0x00000002u;
428 #pragma GCC diagnostic pop
440#include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
size_t ByteSizeLong() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
bool has_telegram() const
::goby::test::acomms::protobuf::Header * unsafe_arena_release_header()
GobyMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
std::string * mutable_telegram()
void unsafe_arena_set_allocated_header(::goby::test::acomms::protobuf::Header *header)
static const GobyMessage * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_allocated_header(::goby::test::acomms::protobuf::Header *header)
static const GobyMessage & default_instance()
GobyMessage(GobyMessage &&from) noexcept
void Swap(GobyMessage *other)
GobyMessage * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
friend void swap(GobyMessage &a, GobyMessage &b)
GobyMessage(const GobyMessage &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void UnsafeArenaSwap(GobyMessage *other)
const std::string & telegram() const
void set_telegram(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
PROTOBUF_NODISCARD::goby::test::acomms::protobuf::Header * release_header()
void MergeFrom(const GobyMessage &from)
PROTOBUF_CONSTEXPR GobyMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
GobyMessage & operator=(const GobyMessage &from)
GobyMessage & operator=(GobyMessage &&from) noexcept
static constexpr int kIndexInFileMessages
::goby::test::acomms::protobuf::Header * mutable_header()
void set_allocated_telegram(std::string *telegram)
void CopyFrom(const GobyMessage &from)
PROTOBUF_NODISCARD std::string * release_telegram()
int GetCachedSize() const final
bool IsInitialized() const final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ClassData _class_data_
const ::goby::test::acomms::protobuf::Header & header() const
HeaderDefaultTypeInternal _Header_default_instance_
GobyMessageDefaultTypeInternal _GobyMessage_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]