Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
test.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/test/acomms/dccl3/test.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
39// @@protoc_insertion_point(includes)
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
42PROTOBUF_NAMESPACE_OPEN
43namespace internal {
44class AnyMetadata;
45} // namespace internal
46PROTOBUF_NAMESPACE_CLOSE
47
48// Internal implementation detail -- do not use these members.
52extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto;
53namespace goby {
54namespace test {
55namespace acomms {
56namespace protobuf {
57class GobyMessage;
58struct GobyMessageDefaultTypeInternal;
59extern GobyMessageDefaultTypeInternal _GobyMessage_default_instance_;
60} // namespace protobuf
61} // namespace acomms
62} // namespace test
63} // namespace goby
64PROTOBUF_NAMESPACE_OPEN
65template<> ::goby::test::acomms::protobuf::GobyMessage* Arena::CreateMaybeMessage<::goby::test::acomms::protobuf::GobyMessage>(Arena*);
66PROTOBUF_NAMESPACE_CLOSE
67namespace goby {
68namespace test {
69namespace acomms {
70namespace protobuf {
71
72// ===================================================================
73
74class GobyMessage final :
75 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.acomms.protobuf.GobyMessage) */ {
76 public:
77 inline GobyMessage() : GobyMessage(nullptr) {}
78 ~GobyMessage() override;
79 explicit PROTOBUF_CONSTEXPR GobyMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
80
82 GobyMessage(GobyMessage&& from) noexcept
83 : GobyMessage() {
84 *this = ::std::move(from);
85 }
86
87 inline GobyMessage& operator=(const GobyMessage& from) {
88 CopyFrom(from);
89 return *this;
90 }
91 inline GobyMessage& operator=(GobyMessage&& from) noexcept {
92 if (this == &from) return *this;
93 if (GetOwningArena() == from.GetOwningArena()
94 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
95 && GetOwningArena() != nullptr
96 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
97 ) {
98 InternalSwap(&from);
99 } else {
100 CopyFrom(from);
101 }
102 return *this;
103 }
104
105 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
106 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
107 }
108 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
109 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
110 }
111
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
113 return GetDescriptor();
114 }
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
116 return default_instance().GetMetadata().descriptor;
117 }
118 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
119 return default_instance().GetMetadata().reflection;
120 }
123 }
124 static inline const GobyMessage* internal_default_instance() {
125 return reinterpret_cast<const GobyMessage*>(
127 }
128 static constexpr int kIndexInFileMessages =
129 0;
130
131 friend void swap(GobyMessage& a, GobyMessage& b) {
132 a.Swap(&b);
133 }
134 inline void Swap(GobyMessage* other) {
135 if (other == this) return;
136 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
137 if (GetOwningArena() != nullptr &&
138 GetOwningArena() == other->GetOwningArena()) {
139 #else // PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() == other->GetOwningArena()) {
141 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
142 InternalSwap(other);
143 } else {
144 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
145 }
146 }
148 if (other == this) return;
149 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
150 InternalSwap(other);
151 }
152
153 // implements Message ----------------------------------------------
154
155 GobyMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
156 return CreateMaybeMessage<GobyMessage>(arena);
157 }
158 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
159 void CopyFrom(const GobyMessage& from);
160 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
161 void MergeFrom( const GobyMessage& from) {
162 GobyMessage::MergeImpl(*this, from);
163 }
164 private:
165 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
166 public:
167 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
168 bool IsInitialized() const final;
169
170 size_t ByteSizeLong() const final;
171 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
173 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
175
176 private:
177 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
178 void SharedDtor();
179 void SetCachedSize(int size) const final;
180 void InternalSwap(GobyMessage* other);
181
182 private:
183 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185 return "goby.test.acomms.protobuf.GobyMessage";
186 }
187 protected:
188 explicit GobyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
189 bool is_message_owned = false);
190 public:
191
192 static const ClassData _class_data_;
193 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
194
195 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
196
197 // nested types ----------------------------------------------------
198
199 // accessors -------------------------------------------------------
200
201 enum : int {
204 };
205 // required string telegram = 1 [(.dccl.field) = {
206 bool has_telegram() const;
207 private:
208 bool _internal_has_telegram() const;
209 public:
210 void clear_telegram();
211 const std::string& telegram() const;
212 template <typename ArgT0 = const std::string&, typename... ArgT>
213 void set_telegram(ArgT0&& arg0, ArgT... args);
214 std::string* mutable_telegram();
215 PROTOBUF_NODISCARD std::string* release_telegram();
216 void set_allocated_telegram(std::string* telegram);
217 private:
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();
221 public:
222
223 // required .goby.test.acomms.protobuf.Header header = 2 [(.dccl.field) = {
224 bool has_header() const;
225 private:
226 bool _internal_has_header() const;
227 public:
229 const ::goby::test::acomms::protobuf::Header& header() const;
230 PROTOBUF_NODISCARD ::goby::test::acomms::protobuf::Header* release_header();
233 private:
234 const ::goby::test::acomms::protobuf::Header& _internal_header() const;
235 ::goby::test::acomms::protobuf::Header* _internal_mutable_header();
236 public:
240
242 // @@protoc_insertion_point(class_scope:goby.test.acomms.protobuf.GobyMessage)
243 private:
244 class _Internal;
245
246 // helper for ByteSizeLong()
247 size_t RequiredFieldsByteSizeFallback() const;
248
249 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
250 typedef void InternalArenaConstructable_;
251 typedef void DestructorSkippable_;
252 struct Impl_ {
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_;
257 };
258 union { Impl_ _impl_; };
259 friend struct ::TableStruct_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto;
260};
261// ===================================================================
262
263
264// ===================================================================
265
266#ifdef __GNUC__
267 #pragma GCC diagnostic push
268 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
269#endif // __GNUC__
270// GobyMessage
271
272// required string telegram = 1 [(.dccl.field) = {
273inline bool GobyMessage::_internal_has_telegram() const {
274 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
275 return value;
276}
277inline bool GobyMessage::has_telegram() const {
278 return _internal_has_telegram();
279}
281 _impl_.telegram_.ClearToEmpty();
282 _impl_._has_bits_[0] &= ~0x00000001u;
283}
284inline const std::string& GobyMessage::telegram() const {
285 // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.GobyMessage.telegram)
286 return _internal_telegram();
287}
288template <typename ArgT0, typename... ArgT>
289inline PROTOBUF_ALWAYS_INLINE
290void GobyMessage::set_telegram(ArgT0&& arg0, ArgT... args) {
291 _impl_._has_bits_[0] |= 0x00000001u;
292 _impl_.telegram_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
293 // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.GobyMessage.telegram)
294}
295inline std::string* GobyMessage::mutable_telegram() {
296 std::string* _s = _internal_mutable_telegram();
297 // @@protoc_insertion_point(field_mutable:goby.test.acomms.protobuf.GobyMessage.telegram)
298 return _s;
299}
300inline const std::string& GobyMessage::_internal_telegram() const {
301 return _impl_.telegram_.Get();
302}
303inline void GobyMessage::_internal_set_telegram(const std::string& value) {
304 _impl_._has_bits_[0] |= 0x00000001u;
305 _impl_.telegram_.Set(value, GetArenaForAllocation());
306}
307inline std::string* GobyMessage::_internal_mutable_telegram() {
308 _impl_._has_bits_[0] |= 0x00000001u;
309 return _impl_.telegram_.Mutable(GetArenaForAllocation());
310}
311inline std::string* GobyMessage::release_telegram() {
312 // @@protoc_insertion_point(field_release:goby.test.acomms.protobuf.GobyMessage.telegram)
313 if (!_internal_has_telegram()) {
314 return nullptr;
315 }
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());
321 }
322#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
323 return p;
324}
326 if (telegram != nullptr) {
327 _impl_._has_bits_[0] |= 0x00000001u;
328 } else {
329 _impl_._has_bits_[0] &= ~0x00000001u;
330 }
331 _impl_.telegram_.SetAllocated(telegram, GetArenaForAllocation());
332#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
333 if (_impl_.telegram_.IsDefault()) {
334 _impl_.telegram_.Set("", GetArenaForAllocation());
335 }
336#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
337 // @@protoc_insertion_point(field_set_allocated:goby.test.acomms.protobuf.GobyMessage.telegram)
338}
339
340// required .goby.test.acomms.protobuf.Header header = 2 [(.dccl.field) = {
341inline bool GobyMessage::_internal_has_header() const {
342 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
343 PROTOBUF_ASSUME(!value || _impl_.header_ != nullptr);
344 return value;
345}
346inline bool GobyMessage::has_header() const {
347 return _internal_has_header();
348}
349inline const ::goby::test::acomms::protobuf::Header& GobyMessage::_internal_header() const {
350 const ::goby::test::acomms::protobuf::Header* p = _impl_.header_;
351 return p != nullptr ? *p : reinterpret_cast<const ::goby::test::acomms::protobuf::Header&>(
353}
354inline const ::goby::test::acomms::protobuf::Header& GobyMessage::header() const {
355 // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.GobyMessage.header)
356 return _internal_header();
357}
360 if (GetArenaForAllocation() == nullptr) {
361 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
362 }
363 _impl_.header_ = header;
364 if (header) {
365 _impl_._has_bits_[0] |= 0x00000002u;
366 } else {
367 _impl_._has_bits_[0] &= ~0x00000002u;
368 }
369 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.test.acomms.protobuf.GobyMessage.header)
370}
371inline ::goby::test::acomms::protobuf::Header* GobyMessage::release_header() {
372 _impl_._has_bits_[0] &= ~0x00000002u;
374 _impl_.header_ = nullptr;
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; }
379#else // PROTOBUF_FORCE_COPY_IN_RELEASE
380 if (GetArenaForAllocation() != nullptr) {
381 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
382 }
383#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
384 return temp;
385}
386inline ::goby::test::acomms::protobuf::Header* GobyMessage::unsafe_arena_release_header() {
387 // @@protoc_insertion_point(field_release:goby.test.acomms.protobuf.GobyMessage.header)
388 _impl_._has_bits_[0] &= ~0x00000002u;
390 _impl_.header_ = nullptr;
391 return temp;
392}
393inline ::goby::test::acomms::protobuf::Header* GobyMessage::_internal_mutable_header() {
394 _impl_._has_bits_[0] |= 0x00000002u;
395 if (_impl_.header_ == nullptr) {
396 auto* p = CreateMaybeMessage<::goby::test::acomms::protobuf::Header>(GetArenaForAllocation());
397 _impl_.header_ = p;
398 }
399 return _impl_.header_;
400}
401inline ::goby::test::acomms::protobuf::Header* GobyMessage::mutable_header() {
402 ::goby::test::acomms::protobuf::Header* _msg = _internal_mutable_header();
403 // @@protoc_insertion_point(field_mutable:goby.test.acomms.protobuf.GobyMessage.header)
404 return _msg;
405}
407 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
408 if (message_arena == nullptr) {
409 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
410 }
411 if (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);
418 }
419 _impl_._has_bits_[0] |= 0x00000002u;
420 } else {
421 _impl_._has_bits_[0] &= ~0x00000002u;
422 }
423 _impl_.header_ = header;
424 // @@protoc_insertion_point(field_set_allocated:goby.test.acomms.protobuf.GobyMessage.header)
425}
426
427#ifdef __GNUC__
428 #pragma GCC diagnostic pop
429#endif // __GNUC__
430
431// @@protoc_insertion_point(namespace_scope)
432
433} // namespace protobuf
434} // namespace acomms
435} // namespace test
436} // namespace goby
437
438// @@protoc_insertion_point(global_scope)
439
440#include <google/protobuf/port_undef.inc>
441#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:105
::goby::test::acomms::protobuf::Header * unsafe_arena_release_header()
Definition test.pb.h:386
GobyMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void unsafe_arena_set_allocated_header(::goby::test::acomms::protobuf::Header *header)
Definition test.pb.h:358
static const GobyMessage * internal_default_instance()
Definition test.pb.h:124
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:112
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:115
void set_allocated_header(::goby::test::acomms::protobuf::Header *header)
Definition test.pb.h:406
static const GobyMessage & default_instance()
Definition test.pb.h:121
GobyMessage(GobyMessage &&from) noexcept
Definition test.pb.h:82
void Swap(GobyMessage *other)
Definition test.pb.h:134
GobyMessage * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:155
friend void swap(GobyMessage &a, GobyMessage &b)
Definition test.pb.h:131
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)
Definition test.pb.h:147
const std::string & telegram() const
Definition test.pb.h:284
void set_telegram(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:118
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:108
PROTOBUF_NODISCARD::goby::test::acomms::protobuf::Header * release_header()
Definition test.pb.h:371
void MergeFrom(const GobyMessage &from)
Definition test.pb.h:161
PROTOBUF_CONSTEXPR GobyMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
GobyMessage & operator=(const GobyMessage &from)
Definition test.pb.h:87
GobyMessage & operator=(GobyMessage &&from) noexcept
Definition test.pb.h:91
static constexpr int kIndexInFileMessages
Definition test.pb.h:128
::goby::test::acomms::protobuf::Header * mutable_header()
Definition test.pb.h:401
void set_allocated_telegram(std::string *telegram)
Definition test.pb.h:325
void CopyFrom(const GobyMessage &from)
PROTOBUF_NODISCARD std::string * release_telegram()
Definition test.pb.h:311
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ClassData _class_data_
Definition test.pb.h:192
const ::goby::test::acomms::protobuf::Header & header() const
Definition test.pb.h:354
PROTOBUF_NAMESPACE_OPEN ::goby::test::acomms::protobuf::Header * Arena::CreateMaybeMessage<::goby::test::acomms::protobuf::Header >(Arena *)
HeaderDefaultTypeInternal _Header_default_instance_
GobyMessageDefaultTypeInternal _GobyMessage_default_instance_
Definition test.pb.h:58
The global namespace for the Goby project.