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>
34#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 <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
59struct GobyMessageDefaultTypeInternal;
65PROTOBUF_NAMESPACE_OPEN
67PROTOBUF_NAMESPACE_CLOSE
76 public ::PROTOBUF_NAMESPACE_ID::Message {
80 explicit PROTOBUF_CONSTEXPR
GobyMessage(::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<GobyMessage>(arena);
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163 GobyMessage::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.test.acomms.protobuf.GobyMessage";
190 bool is_message_owned =
false);
194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
209 bool _internal_has_telegram()
const;
212 const std::string&
telegram()
const;
213 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
219 const std::string& _internal_telegram()
const;
220 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_telegram(
const std::string& value);
221 std::string* _internal_mutable_telegram();
227 bool _internal_has_header()
const;
230 const ::goby::test::acomms::protobuf::Header&
header()
const;
231 PROTOBUF_NODISCARD ::goby::test::acomms::protobuf::Header*
release_header();
235 const ::goby::test::acomms::protobuf::Header& _internal_header()
const;
248 size_t RequiredFieldsByteSizeFallback()
const;
250 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
251 typedef void InternalArenaConstructable_;
252 typedef void DestructorSkippable_;
254 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
255 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
256 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr telegram_;
260 friend struct ::TableStruct_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto;
268 #pragma GCC diagnostic push
269 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
274inline bool GobyMessage::_internal_has_telegram()
const {
275 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
279 return _internal_has_telegram();
282 _impl_.telegram_.ClearToEmpty();
283 _impl_._has_bits_[0] &= ~0x00000001u;
287 return _internal_telegram();
289template <
typename ArgT0,
typename... ArgT>
290inline PROTOBUF_ALWAYS_INLINE
292 _impl_._has_bits_[0] |= 0x00000001u;
293 _impl_.telegram_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
297 std::string* _s = _internal_mutable_telegram();
301inline const std::string& GobyMessage::_internal_telegram()
const {
302 return _impl_.telegram_.Get();
304inline void GobyMessage::_internal_set_telegram(
const std::string& value) {
305 _impl_._has_bits_[0] |= 0x00000001u;
306 _impl_.telegram_.Set(value, GetArenaForAllocation());
308inline std::string* GobyMessage::_internal_mutable_telegram() {
309 _impl_._has_bits_[0] |= 0x00000001u;
310 return _impl_.telegram_.Mutable(GetArenaForAllocation());
314 if (!_internal_has_telegram()) {
317 _impl_._has_bits_[0] &= ~0x00000001u;
318 auto* p =
_impl_.telegram_.Release();
319#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
320 if (
_impl_.telegram_.IsDefault()) {
321 _impl_.telegram_.Set(
"", GetArenaForAllocation());
328 _impl_._has_bits_[0] |= 0x00000001u;
330 _impl_._has_bits_[0] &= ~0x00000001u;
333#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
334 if (
_impl_.telegram_.IsDefault()) {
335 _impl_.telegram_.Set(
"", GetArenaForAllocation());
342inline bool GobyMessage::_internal_has_header()
const {
343 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
344 PROTOBUF_ASSUME(!value ||
_impl_.header_ !=
nullptr);
348 return _internal_has_header();
350inline const ::goby::test::acomms::protobuf::Header& GobyMessage::_internal_header()
const {
351 const ::goby::test::acomms::protobuf::Header* p =
_impl_.header_;
357 return _internal_header();
361 if (GetArenaForAllocation() ==
nullptr) {
362 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.header_);
366 _impl_._has_bits_[0] |= 0x00000002u;
368 _impl_._has_bits_[0] &= ~0x00000002u;
373 _impl_._has_bits_[0] &= ~0x00000002u;
376#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
377 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
378 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
379 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
381 if (GetArenaForAllocation() !=
nullptr) {
382 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
389 _impl_._has_bits_[0] &= ~0x00000002u;
394inline ::goby::test::acomms::protobuf::Header* GobyMessage::_internal_mutable_header() {
395 _impl_._has_bits_[0] |= 0x00000002u;
396 if (
_impl_.header_ ==
nullptr) {
408 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
409 if (message_arena ==
nullptr) {
410 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.header_);
413 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
414 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
415 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
header));
416 if (message_arena != submessage_arena) {
417 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
418 message_arena,
header, submessage_arena);
420 _impl_._has_bits_[0] |= 0x00000002u;
422 _impl_._has_bits_[0] &= ~0x00000002u;
429 #pragma GCC diagnostic pop
441#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[]