Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/test/unit/moos/goby_app_config/config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_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 <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
38// @@protoc_insertion_point(includes)
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto
41PROTOBUF_NAMESPACE_OPEN
42namespace internal {
43class AnyMetadata;
44} // namespace internal
45PROTOBUF_NAMESPACE_CLOSE
46
47// Internal implementation detail -- do not use these members.
51extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto;
52namespace goby {
53namespace test {
54namespace moos {
55namespace protobuf {
56class AppConfig;
57struct AppConfigDefaultTypeInternal;
58extern AppConfigDefaultTypeInternal _AppConfig_default_instance_;
59class SubMessageType;
60struct SubMessageTypeDefaultTypeInternal;
61extern SubMessageTypeDefaultTypeInternal _SubMessageType_default_instance_;
62} // namespace protobuf
63} // namespace moos
64} // namespace test
65} // namespace goby
66PROTOBUF_NAMESPACE_OPEN
67template<> ::goby::test::moos::protobuf::AppConfig* Arena::CreateMaybeMessage<::goby::test::moos::protobuf::AppConfig>(Arena*);
68template<> ::goby::test::moos::protobuf::SubMessageType* Arena::CreateMaybeMessage<::goby::test::moos::protobuf::SubMessageType>(Arena*);
69PROTOBUF_NAMESPACE_CLOSE
70namespace goby {
71namespace test {
72namespace moos {
73namespace protobuf {
74
75// ===================================================================
76
77class AppConfig final :
78 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.moos.protobuf.AppConfig) */ {
79 public:
80 inline AppConfig() : AppConfig(nullptr) {}
81 ~AppConfig() override;
82 explicit PROTOBUF_CONSTEXPR AppConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
83
84 AppConfig(const AppConfig& from);
85 AppConfig(AppConfig&& from) noexcept
86 : AppConfig() {
87 *this = ::std::move(from);
88 }
89
90 inline AppConfig& operator=(const AppConfig& from) {
91 CopyFrom(from);
92 return *this;
93 }
94 inline AppConfig& operator=(AppConfig&& from) noexcept {
95 if (this == &from) return *this;
96 if (GetOwningArena() == from.GetOwningArena()
97 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
98 && GetOwningArena() != nullptr
99 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
100 ) {
101 InternalSwap(&from);
102 } else {
103 CopyFrom(from);
104 }
105 return *this;
106 }
107
108 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
109 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110 }
111 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
112 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113 }
114
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
116 return GetDescriptor();
117 }
118 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
119 return default_instance().GetMetadata().descriptor;
120 }
121 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
122 return default_instance().GetMetadata().reflection;
123 }
124 static const AppConfig& default_instance() {
126 }
127 static inline const AppConfig* internal_default_instance() {
128 return reinterpret_cast<const AppConfig*>(
130 }
131 static constexpr int kIndexInFileMessages =
132 0;
133
134 friend void swap(AppConfig& a, AppConfig& b) {
135 a.Swap(&b);
136 }
137 inline void Swap(AppConfig* other) {
138 if (other == this) return;
139 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() != nullptr &&
141 GetOwningArena() == other->GetOwningArena()) {
142 #else // PROTOBUF_FORCE_COPY_IN_SWAP
143 if (GetOwningArena() == other->GetOwningArena()) {
144 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
145 InternalSwap(other);
146 } else {
147 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148 }
149 }
151 if (other == this) return;
152 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
153 InternalSwap(other);
154 }
155
156 // implements Message ----------------------------------------------
157
158 AppConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
159 return CreateMaybeMessage<AppConfig>(arena);
160 }
161 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162 void CopyFrom(const AppConfig& from);
163 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164 void MergeFrom( const AppConfig& from) {
165 AppConfig::MergeImpl(*this, from);
166 }
167 private:
168 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
169 public:
170 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
171 bool IsInitialized() const final;
172
173 size_t ByteSizeLong() const final;
174 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
176 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
177 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
178
179 private:
180 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
181 void SharedDtor();
182 void SetCachedSize(int size) const final;
183 void InternalSwap(AppConfig* other);
184
185 private:
186 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
187 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
188 return "goby.test.moos.protobuf.AppConfig";
189 }
190 protected:
191 explicit AppConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
192 bool is_message_owned = false);
193 public:
194
195 static const ClassData _class_data_;
196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
197
198 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
199
200 // nested types ----------------------------------------------------
201
202 // accessors -------------------------------------------------------
203
204 enum : int {
207 };
208 // optional .goby.moos.protobuf.GobyMOOSAppConfig common = 1;
209 bool has_common() const;
210 private:
211 bool _internal_has_common() const;
212 public:
214 const ::goby::moos::protobuf::GobyMOOSAppConfig& common() const;
215 PROTOBUF_NODISCARD ::goby::moos::protobuf::GobyMOOSAppConfig* release_common();
218 private:
219 const ::goby::moos::protobuf::GobyMOOSAppConfig& _internal_common() const;
220 ::goby::moos::protobuf::GobyMOOSAppConfig* _internal_mutable_common();
221 public:
225
226 // optional .goby.test.moos.protobuf.SubMessageType submessage = 12;
227 bool has_submessage() const;
228 private:
229 bool _internal_has_submessage() const;
230 public:
231 void clear_submessage();
232 const ::goby::test::moos::protobuf::SubMessageType& submessage() const;
233 PROTOBUF_NODISCARD ::goby::test::moos::protobuf::SubMessageType* release_submessage();
236 private:
237 const ::goby::test::moos::protobuf::SubMessageType& _internal_submessage() const;
238 ::goby::test::moos::protobuf::SubMessageType* _internal_mutable_submessage();
239 public:
243
244 // @@protoc_insertion_point(class_scope:goby.test.moos.protobuf.AppConfig)
245 private:
246 class _Internal;
247
248 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
249 typedef void InternalArenaConstructable_;
250 typedef void DestructorSkippable_;
251 struct Impl_ {
252 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
253 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
256 };
257 union { Impl_ _impl_; };
258 friend struct ::TableStruct_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto;
259};
260// -------------------------------------------------------------------
261
262class SubMessageType final :
263 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.moos.protobuf.SubMessageType) */ {
264 public:
265 inline SubMessageType() : SubMessageType(nullptr) {}
266 ~SubMessageType() override;
267 explicit PROTOBUF_CONSTEXPR SubMessageType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
268
271 : SubMessageType() {
272 *this = ::std::move(from);
273 }
274
276 CopyFrom(from);
277 return *this;
278 }
279 inline SubMessageType& operator=(SubMessageType&& from) noexcept {
280 if (this == &from) return *this;
281 if (GetOwningArena() == from.GetOwningArena()
282 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
283 && GetOwningArena() != nullptr
284 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
285 ) {
286 InternalSwap(&from);
287 } else {
288 CopyFrom(from);
289 }
290 return *this;
291 }
292
293 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
294 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
295 }
296 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
297 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
298 }
299
300 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
301 return GetDescriptor();
302 }
303 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
304 return default_instance().GetMetadata().descriptor;
305 }
306 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
307 return default_instance().GetMetadata().reflection;
308 }
310 return *internal_default_instance();
311 }
313 return reinterpret_cast<const SubMessageType*>(
315 }
316 static constexpr int kIndexInFileMessages =
317 1;
318
319 friend void swap(SubMessageType& a, SubMessageType& b) {
320 a.Swap(&b);
321 }
322 inline void Swap(SubMessageType* other) {
323 if (other == this) return;
324 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
325 if (GetOwningArena() != nullptr &&
326 GetOwningArena() == other->GetOwningArena()) {
327 #else // PROTOBUF_FORCE_COPY_IN_SWAP
328 if (GetOwningArena() == other->GetOwningArena()) {
329 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
330 InternalSwap(other);
331 } else {
332 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
333 }
334 }
336 if (other == this) return;
337 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
338 InternalSwap(other);
339 }
340
341 // implements Message ----------------------------------------------
342
343 SubMessageType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
344 return CreateMaybeMessage<SubMessageType>(arena);
345 }
346 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
347 void CopyFrom(const SubMessageType& from);
348 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
349 void MergeFrom( const SubMessageType& from) {
350 SubMessageType::MergeImpl(*this, from);
351 }
352 private:
353 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
354 public:
355 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
356 bool IsInitialized() const final;
357
358 size_t ByteSizeLong() const final;
359 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
360 uint8_t* _InternalSerialize(
361 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
362 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
363
364 private:
365 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
366 void SharedDtor();
367 void SetCachedSize(int size) const final;
368 void InternalSwap(SubMessageType* other);
369
370 private:
371 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
372 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
373 return "goby.test.moos.protobuf.SubMessageType";
374 }
375 protected:
376 explicit SubMessageType(::PROTOBUF_NAMESPACE_ID::Arena* arena,
377 bool is_message_owned = false);
378 public:
379
380 static const ClassData _class_data_;
381 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
382
383 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
384
385 // nested types ----------------------------------------------------
386
387 // accessors -------------------------------------------------------
388
389 enum : int {
390 kFooFieldNumber = 1,
391 };
392 // optional int32 foo = 1;
393 bool has_foo() const;
394 private:
395 bool _internal_has_foo() const;
396 public:
397 void clear_foo();
398 int32_t foo() const;
399 void set_foo(int32_t value);
400 private:
401 int32_t _internal_foo() const;
402 void _internal_set_foo(int32_t value);
403 public:
404
405 // @@protoc_insertion_point(class_scope:goby.test.moos.protobuf.SubMessageType)
406 private:
407 class _Internal;
408
409 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
410 typedef void InternalArenaConstructable_;
411 typedef void DestructorSkippable_;
412 struct Impl_ {
413 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
414 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
415 int32_t foo_;
416 };
417 union { Impl_ _impl_; };
418 friend struct ::TableStruct_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto;
419};
420// ===================================================================
421
422
423// ===================================================================
424
425#ifdef __GNUC__
426 #pragma GCC diagnostic push
427 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
428#endif // __GNUC__
429// AppConfig
430
431// optional .goby.moos.protobuf.GobyMOOSAppConfig common = 1;
432inline bool AppConfig::_internal_has_common() const {
433 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
434 PROTOBUF_ASSUME(!value || _impl_.common_ != nullptr);
435 return value;
436}
437inline bool AppConfig::has_common() const {
438 return _internal_has_common();
439}
440inline const ::goby::moos::protobuf::GobyMOOSAppConfig& AppConfig::_internal_common() const {
441 const ::goby::moos::protobuf::GobyMOOSAppConfig* p = _impl_.common_;
442 return p != nullptr ? *p : reinterpret_cast<const ::goby::moos::protobuf::GobyMOOSAppConfig&>(
444}
445inline const ::goby::moos::protobuf::GobyMOOSAppConfig& AppConfig::common() const {
446 // @@protoc_insertion_point(field_get:goby.test.moos.protobuf.AppConfig.common)
447 return _internal_common();
448}
449inline void AppConfig::unsafe_arena_set_allocated_common(
451 if (GetArenaForAllocation() == nullptr) {
452 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.common_);
453 }
454 _impl_.common_ = common;
455 if (common) {
456 _impl_._has_bits_[0] |= 0x00000001u;
457 } else {
458 _impl_._has_bits_[0] &= ~0x00000001u;
459 }
460 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.test.moos.protobuf.AppConfig.common)
461}
462inline ::goby::moos::protobuf::GobyMOOSAppConfig* AppConfig::release_common() {
463 _impl_._has_bits_[0] &= ~0x00000001u;
464 ::goby::moos::protobuf::GobyMOOSAppConfig* temp = _impl_.common_;
465 _impl_.common_ = nullptr;
466#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
467 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
468 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
469 if (GetArenaForAllocation() == nullptr) { delete old; }
470#else // PROTOBUF_FORCE_COPY_IN_RELEASE
471 if (GetArenaForAllocation() != nullptr) {
472 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
473 }
474#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
475 return temp;
476}
477inline ::goby::moos::protobuf::GobyMOOSAppConfig* AppConfig::unsafe_arena_release_common() {
478 // @@protoc_insertion_point(field_release:goby.test.moos.protobuf.AppConfig.common)
479 _impl_._has_bits_[0] &= ~0x00000001u;
480 ::goby::moos::protobuf::GobyMOOSAppConfig* temp = _impl_.common_;
481 _impl_.common_ = nullptr;
482 return temp;
483}
484inline ::goby::moos::protobuf::GobyMOOSAppConfig* AppConfig::_internal_mutable_common() {
485 _impl_._has_bits_[0] |= 0x00000001u;
486 if (_impl_.common_ == nullptr) {
487 auto* p = CreateMaybeMessage<::goby::moos::protobuf::GobyMOOSAppConfig>(GetArenaForAllocation());
488 _impl_.common_ = p;
489 }
490 return _impl_.common_;
491}
492inline ::goby::moos::protobuf::GobyMOOSAppConfig* AppConfig::mutable_common() {
493 ::goby::moos::protobuf::GobyMOOSAppConfig* _msg = _internal_mutable_common();
494 // @@protoc_insertion_point(field_mutable:goby.test.moos.protobuf.AppConfig.common)
495 return _msg;
496}
497inline void AppConfig::set_allocated_common(::goby::moos::protobuf::GobyMOOSAppConfig* common) {
498 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
499 if (message_arena == nullptr) {
500 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.common_);
501 }
502 if (common) {
503 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
504 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
505 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common));
506 if (message_arena != submessage_arena) {
507 common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
508 message_arena, common, submessage_arena);
509 }
510 _impl_._has_bits_[0] |= 0x00000001u;
511 } else {
512 _impl_._has_bits_[0] &= ~0x00000001u;
513 }
514 _impl_.common_ = common;
515 // @@protoc_insertion_point(field_set_allocated:goby.test.moos.protobuf.AppConfig.common)
516}
517
518// optional .goby.test.moos.protobuf.SubMessageType submessage = 12;
519inline bool AppConfig::_internal_has_submessage() const {
520 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
521 PROTOBUF_ASSUME(!value || _impl_.submessage_ != nullptr);
522 return value;
523}
524inline bool AppConfig::has_submessage() const {
525 return _internal_has_submessage();
526}
527inline void AppConfig::clear_submessage() {
528 if (_impl_.submessage_ != nullptr) _impl_.submessage_->Clear();
529 _impl_._has_bits_[0] &= ~0x00000002u;
530}
531inline const ::goby::test::moos::protobuf::SubMessageType& AppConfig::_internal_submessage() const {
532 const ::goby::test::moos::protobuf::SubMessageType* p = _impl_.submessage_;
533 return p != nullptr ? *p : reinterpret_cast<const ::goby::test::moos::protobuf::SubMessageType&>(
535}
536inline const ::goby::test::moos::protobuf::SubMessageType& AppConfig::submessage() const {
537 // @@protoc_insertion_point(field_get:goby.test.moos.protobuf.AppConfig.submessage)
538 return _internal_submessage();
539}
540inline void AppConfig::unsafe_arena_set_allocated_submessage(
542 if (GetArenaForAllocation() == nullptr) {
543 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.submessage_);
544 }
545 _impl_.submessage_ = submessage;
546 if (submessage) {
547 _impl_._has_bits_[0] |= 0x00000002u;
548 } else {
549 _impl_._has_bits_[0] &= ~0x00000002u;
550 }
551 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.test.moos.protobuf.AppConfig.submessage)
552}
553inline ::goby::test::moos::protobuf::SubMessageType* AppConfig::release_submessage() {
554 _impl_._has_bits_[0] &= ~0x00000002u;
555 ::goby::test::moos::protobuf::SubMessageType* temp = _impl_.submessage_;
556 _impl_.submessage_ = nullptr;
557#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
558 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
559 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
560 if (GetArenaForAllocation() == nullptr) { delete old; }
561#else // PROTOBUF_FORCE_COPY_IN_RELEASE
562 if (GetArenaForAllocation() != nullptr) {
563 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
564 }
565#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
566 return temp;
567}
568inline ::goby::test::moos::protobuf::SubMessageType* AppConfig::unsafe_arena_release_submessage() {
569 // @@protoc_insertion_point(field_release:goby.test.moos.protobuf.AppConfig.submessage)
570 _impl_._has_bits_[0] &= ~0x00000002u;
571 ::goby::test::moos::protobuf::SubMessageType* temp = _impl_.submessage_;
572 _impl_.submessage_ = nullptr;
573 return temp;
574}
575inline ::goby::test::moos::protobuf::SubMessageType* AppConfig::_internal_mutable_submessage() {
576 _impl_._has_bits_[0] |= 0x00000002u;
577 if (_impl_.submessage_ == nullptr) {
579 _impl_.submessage_ = p;
580 }
581 return _impl_.submessage_;
582}
583inline ::goby::test::moos::protobuf::SubMessageType* AppConfig::mutable_submessage() {
584 ::goby::test::moos::protobuf::SubMessageType* _msg = _internal_mutable_submessage();
585 // @@protoc_insertion_point(field_mutable:goby.test.moos.protobuf.AppConfig.submessage)
586 return _msg;
587}
588inline void AppConfig::set_allocated_submessage(::goby::test::moos::protobuf::SubMessageType* submessage) {
589 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
590 if (message_arena == nullptr) {
591 delete _impl_.submessage_;
592 }
593 if (submessage) {
594 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
595 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(submessage);
596 if (message_arena != submessage_arena) {
597 submessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
598 message_arena, submessage, submessage_arena);
599 }
600 _impl_._has_bits_[0] |= 0x00000002u;
601 } else {
602 _impl_._has_bits_[0] &= ~0x00000002u;
603 }
604 _impl_.submessage_ = submessage;
605 // @@protoc_insertion_point(field_set_allocated:goby.test.moos.protobuf.AppConfig.submessage)
606}
607
608// -------------------------------------------------------------------
609
610// SubMessageType
611
612// optional int32 foo = 1;
613inline bool SubMessageType::_internal_has_foo() const {
614 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
615 return value;
616}
617inline bool SubMessageType::has_foo() const {
618 return _internal_has_foo();
619}
620inline void SubMessageType::clear_foo() {
621 _impl_.foo_ = 0;
622 _impl_._has_bits_[0] &= ~0x00000001u;
623}
624inline int32_t SubMessageType::_internal_foo() const {
625 return _impl_.foo_;
626}
627inline int32_t SubMessageType::foo() const {
628 // @@protoc_insertion_point(field_get:goby.test.moos.protobuf.SubMessageType.foo)
629 return _internal_foo();
630}
631inline void SubMessageType::_internal_set_foo(int32_t value) {
632 _impl_._has_bits_[0] |= 0x00000001u;
633 _impl_.foo_ = value;
634}
635inline void SubMessageType::set_foo(int32_t value) {
636 _internal_set_foo(value);
637 // @@protoc_insertion_point(field_set:goby.test.moos.protobuf.SubMessageType.foo)
638}
639
640#ifdef __GNUC__
641 #pragma GCC diagnostic pop
642#endif // __GNUC__
643// -------------------------------------------------------------------
644
645
646// @@protoc_insertion_point(namespace_scope)
647
648} // namespace protobuf
649} // namespace moos
650} // namespace test
651} // namespace goby
652
653// @@protoc_insertion_point(global_scope)
654
655#include <google/protobuf/port_undef.inc>
656#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto
void MergeFrom(const AppConfig &from)
Definition config.pb.h:164
friend void swap(AppConfig &a, AppConfig &b)
Definition config.pb.h:134
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition config.pb.h:115
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition config.pb.h:121
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
AppConfig(const AppConfig &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition config.pb.h:108
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
AppConfig(AppConfig &&from) noexcept
Definition config.pb.h:85
AppConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_CONSTEXPR AppConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const ::goby::test::moos::protobuf::SubMessageType & submessage() const
Definition config.pb.h:536
::goby::moos::protobuf::GobyMOOSAppConfig * unsafe_arena_release_common()
Definition config.pb.h:477
static constexpr int kIndexInFileMessages
Definition config.pb.h:131
void UnsafeArenaSwap(AppConfig *other)
Definition config.pb.h:150
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
const ::goby::moos::protobuf::GobyMOOSAppConfig & common() const
Definition config.pb.h:445
static const AppConfig * internal_default_instance()
Definition config.pb.h:127
AppConfig & operator=(AppConfig &&from) noexcept
Definition config.pb.h:94
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void set_allocated_common(::goby::moos::protobuf::GobyMOOSAppConfig *common)
Definition config.pb.h:497
::goby::moos::protobuf::GobyMOOSAppConfig * mutable_common()
Definition config.pb.h:492
static const AppConfig & default_instance()
Definition config.pb.h:124
void unsafe_arena_set_allocated_common(::goby::moos::protobuf::GobyMOOSAppConfig *common)
Definition config.pb.h:449
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition config.pb.h:111
void set_allocated_submessage(::goby::test::moos::protobuf::SubMessageType *submessage)
Definition config.pb.h:588
AppConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition config.pb.h:158
void unsafe_arena_set_allocated_submessage(::goby::test::moos::protobuf::SubMessageType *submessage)
Definition config.pb.h:540
void CopyFrom(const AppConfig &from)
::goby::test::moos::protobuf::SubMessageType * unsafe_arena_release_submessage()
Definition config.pb.h:568
AppConfig & operator=(const AppConfig &from)
Definition config.pb.h:90
static const ClassData _class_data_
Definition config.pb.h:195
::goby::test::moos::protobuf::SubMessageType * mutable_submessage()
Definition config.pb.h:583
PROTOBUF_NODISCARD::goby::moos::protobuf::GobyMOOSAppConfig * release_common()
Definition config.pb.h:462
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition config.pb.h:118
PROTOBUF_NODISCARD::goby::test::moos::protobuf::SubMessageType * release_submessage()
Definition config.pb.h:553
void UnsafeArenaSwap(SubMessageType *other)
Definition config.pb.h:335
PROTOBUF_CONSTEXPR SubMessageType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void CopyFrom(const SubMessageType &from)
static const SubMessageType & default_instance()
Definition config.pb.h:309
static const SubMessageType * internal_default_instance()
Definition config.pb.h:312
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition config.pb.h:293
SubMessageType(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
friend void swap(SubMessageType &a, SubMessageType &b)
Definition config.pb.h:319
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition config.pb.h:306
void Swap(SubMessageType *other)
Definition config.pb.h:322
SubMessageType & operator=(const SubMessageType &from)
Definition config.pb.h:275
SubMessageType & operator=(SubMessageType &&from) noexcept
Definition config.pb.h:279
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition config.pb.h:300
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition config.pb.h:296
SubMessageType(SubMessageType &&from) noexcept
Definition config.pb.h:270
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition config.pb.h:303
SubMessageType * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition config.pb.h:343
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void MergeFrom(const SubMessageType &from)
Definition config.pb.h:349
SubMessageType(const SubMessageType &from)
PROTOBUF_NAMESPACE_OPEN ::goby::moos::protobuf::GobyMOOSAppConfig * Arena::CreateMaybeMessage<::goby::moos::protobuf::GobyMOOSAppConfig >(Arena *)
GobyMOOSAppConfigDefaultTypeInternal _GobyMOOSAppConfig_default_instance_
SubMessageTypeDefaultTypeInternal _SubMessageType_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
The global namespace for the Goby project.
#define ByteSizeLong
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto
::goby::test::moos::protobuf::SubMessageType * Arena::CreateMaybeMessage<::goby::test::moos::protobuf::SubMessageType >(Arena *)