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