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 < 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"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
45 PROTOBUF_NAMESPACE_OPEN
49 PROTOBUF_NAMESPACE_CLOSE
53 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
55 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
69 class GobyMessageDefaultTypeInternal;
75 PROTOBUF_NAMESPACE_OPEN
76 template<> ::goby::test::acomms::protobuf::GobyMessage* Arena::CreateMaybeMessage<::goby::test::acomms::protobuf::GobyMessage>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
85 class GobyMessage PROTOBUF_FINAL :
86 public ::PROTOBUF_NAMESPACE_ID::Message {
94 *
this = ::std::move(from);
97 inline GobyMessage&
operator=(
const GobyMessage& from) {
101 inline GobyMessage&
operator=(GobyMessage&& 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 GobyMessage*
>(
133 static constexpr
int kIndexInFileMessages =
136 friend void swap(GobyMessage& a, GobyMessage& b) {
139 inline void Swap(GobyMessage* 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 GobyMessage*
New() const final {
156 return CreateMaybeMessage<GobyMessage>(
nullptr);
159 GobyMessage*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
160 return CreateMaybeMessage<GobyMessage>(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(GobyMessage* other);
180 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
181 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
182 return "goby.test.acomms.protobuf.GobyMessage";
187 static void ArenaDtor(
void*
object);
188 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
205 kTelegramFieldNumber = 1,
206 kHeaderFieldNumber = 2,
211 bool _internal_has_telegram()
const;
222 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
223 " string fields are deprecated and will be removed in a"
225 std::
string* unsafe_arena_release_telegram();
226 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
227 "
string fields are deprecated and will be removed in a"
229 void unsafe_arena_set_allocated_telegram(
230 std::
string* telegram);
232 const std::
string& _internal_telegram() const;
233 void _internal_set_telegram(const std::
string& value);
234 std::
string* _internal_mutable_telegram();
240 bool _internal_has_header() const;
243 const ::
goby::test::acomms::protobuf::Header& header() const;
244 ::
goby::test::acomms::protobuf::Header* release_header();
245 ::
goby::test::acomms::protobuf::Header* mutable_header();
246 void set_allocated_header(::
goby::test::acomms::protobuf::Header* header);
248 const ::
goby::test::acomms::protobuf::Header& _internal_header() const;
249 ::
goby::test::acomms::protobuf::Header* _internal_mutable_header();
251 void unsafe_arena_set_allocated_header(
252 ::
goby::test::acomms::protobuf::Header* header);
253 ::
goby::test::acomms::protobuf::Header* unsafe_arena_release_header();
261 size_t RequiredFieldsByteSizeFallback()
const;
263 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
264 typedef void InternalArenaConstructable_;
265 typedef void DestructorSkippable_;
266 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
267 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
268 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr telegram_;
269 ::goby::test::acomms::protobuf::Header* header_;
270 friend struct ::TableStruct_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto;
278 #pragma GCC diagnostic push
279 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
284 inline bool GobyMessage::_internal_has_telegram()
const {
285 bool value = (_has_bits_[0] & 0x00000001u) != 0;
288 inline bool GobyMessage::has_telegram()
const {
289 return _internal_has_telegram();
291 inline void GobyMessage::clear_telegram() {
293 _has_bits_[0] &= ~0x00000001u;
295 inline const std::string& GobyMessage::telegram()
const {
297 return _internal_telegram();
299 inline void GobyMessage::set_telegram(
const std::string& value) {
300 _internal_set_telegram(value);
303 inline std::string* GobyMessage::mutable_telegram() {
305 return _internal_mutable_telegram();
307 inline const std::string& GobyMessage::_internal_telegram()
const {
308 return telegram_.Get();
310 inline void GobyMessage::_internal_set_telegram(
const std::string& value) {
311 _has_bits_[0] |= 0x00000001u;
314 inline void GobyMessage::set_telegram(std::string&& value) {
315 _has_bits_[0] |= 0x00000001u;
320 inline void GobyMessage::set_telegram(
const char* value) {
321 GOOGLE_DCHECK(value !=
nullptr);
322 _has_bits_[0] |= 0x00000001u;
327 inline void GobyMessage::set_telegram(
const char* value,
329 _has_bits_[0] |= 0x00000001u;
331 reinterpret_cast<const char*
>(value), size), GetArena());
334 inline std::string* GobyMessage::_internal_mutable_telegram() {
335 _has_bits_[0] |= 0x00000001u;
338 inline std::string* GobyMessage::release_telegram() {
340 if (!_internal_has_telegram()) {
343 _has_bits_[0] &= ~0x00000001u;
346 inline void GobyMessage::set_allocated_telegram(std::string* telegram) {
347 if (telegram !=
nullptr) {
348 _has_bits_[0] |= 0x00000001u;
350 _has_bits_[0] &= ~0x00000001u;
356 inline std::string* GobyMessage::unsafe_arena_release_telegram() {
358 GOOGLE_DCHECK(GetArena() !=
nullptr);
359 _has_bits_[0] &= ~0x00000001u;
363 inline void GobyMessage::unsafe_arena_set_allocated_telegram(
364 std::string* telegram) {
365 GOOGLE_DCHECK(GetArena() !=
nullptr);
366 if (telegram !=
nullptr) {
367 _has_bits_[0] |= 0x00000001u;
369 _has_bits_[0] &= ~0x00000001u;
372 telegram, GetArena());
377 inline bool GobyMessage::_internal_has_header()
const {
378 bool value = (_has_bits_[0] & 0x00000002u) != 0;
379 PROTOBUF_ASSUME(!value || header_ !=
nullptr);
383 return _internal_has_header();
385 inline const ::goby::test::acomms::protobuf::Header& GobyMessage::_internal_header()
const {
386 const ::goby::test::acomms::protobuf::Header* p = header_;
387 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::test::acomms::protobuf::Header*
>(
390 inline const ::goby::test::acomms::protobuf::Header& GobyMessage::header()
const {
392 return _internal_header();
394 inline void GobyMessage::unsafe_arena_set_allocated_header(
395 ::goby::test::acomms::protobuf::Header* header) {
396 if (GetArena() ==
nullptr) {
397 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
401 _has_bits_[0] |= 0x00000002u;
403 _has_bits_[0] &= ~0x00000002u;
407 inline ::goby::test::acomms::protobuf::Header* GobyMessage::release_header() {
408 auto temp = unsafe_arena_release_header();
409 if (GetArena() !=
nullptr) {
410 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
414 inline ::goby::test::acomms::protobuf::Header* GobyMessage::unsafe_arena_release_header() {
416 _has_bits_[0] &= ~0x00000002u;
417 ::goby::test::acomms::protobuf::Header* temp = header_;
421 inline ::goby::test::acomms::protobuf::Header* GobyMessage::_internal_mutable_header() {
422 _has_bits_[0] |= 0x00000002u;
423 if (header_ ==
nullptr) {
424 auto* p = CreateMaybeMessage<::goby::test::acomms::protobuf::Header>(GetArena());
429 inline ::goby::test::acomms::protobuf::Header* GobyMessage::mutable_header() {
431 return _internal_mutable_header();
433 inline void GobyMessage::set_allocated_header(::goby::test::acomms::protobuf::Header* header) {
434 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
435 if (message_arena ==
nullptr) {
436 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
439 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
440 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
441 if (message_arena != submessage_arena) {
442 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
443 message_arena, header, submessage_arena);
445 _has_bits_[0] |= 0x00000002u;
447 _has_bits_[0] &= ~0x00000002u;
454 #pragma GCC diagnostic pop
466 #include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
void set_allocated_telegram(std::string *telegram)
void set_telegram(const std::string &value)
GobyMessage(const GobyMessage &from)
GobyMessage * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void MergeFrom(const GobyMessage &from)
static const GobyMessage * internal_default_instance()
static const GobyMessage & default_instance()
static void InitAsDefaultInstance()
void set_telegram(std::string &&value)
void UnsafeArenaSwap(GobyMessage *other)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
GobyMessage(GobyMessage &&from) noexcept
friend void swap(GobyMessage &a, GobyMessage &b)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void Swap(GobyMessage *other)
GobyMessage & operator=(const GobyMessage &from)
std::string * mutable_telegram()
GobyMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const std::string & telegram() const
GobyMessage & operator=(GobyMessage &&from) noexcept
std::string * release_telegram()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
bool has_telegram() const
void CopyFrom(const GobyMessage &from)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_telegram(const char *value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
GobyMessage * New() const final
void set_telegram(const char *value, size_t size)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
@ value
the parser finished reading a JSON value
HeaderDefaultTypeInternal _Header_default_instance_
GobyMessageDefaultTypeInternal _GobyMessage_default_instance_
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
bool has_header(const Headers &headers, const std::string &key)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
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::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]