4 #ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2fpatterns_2fmulti_5fthread_2fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_bin_2fpatterns_2fmulti_5fthread_2fconfig_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>
24 #include <google/protobuf/arena.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>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "goby/middleware/protobuf/app_config.pb.h"
36 #include "goby/zeromq/protobuf/interprocess_config.pb.h"
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_bin_2fpatterns_2fmulti_5fthread_2fconfig_2eproto
44 PROTOBUF_NAMESPACE_OPEN
48 PROTOBUF_NAMESPACE_CLOSE
52 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
54 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
60 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
65 class MultiThreadPattern;
66 class MultiThreadPatternDefaultTypeInternal;
70 PROTOBUF_NAMESPACE_OPEN
71 template<> ::jaiabot::config::MultiThreadPattern* Arena::CreateMaybeMessage<::jaiabot::config::MultiThreadPattern>(Arena*);
72 PROTOBUF_NAMESPACE_CLOSE
78 class MultiThreadPattern PROTOBUF_FINAL :
79 public ::PROTOBUF_NAMESPACE_ID::Message {
86 : MultiThreadPattern() {
87 *
this = ::std::move(from);
90 inline MultiThreadPattern&
operator=(
const MultiThreadPattern& from) {
94 inline MultiThreadPattern&
operator=(MultiThreadPattern&& from) noexcept {
95 if (GetArena() == from.GetArena()) {
96 if (
this != &from) InternalSwap(&from);
104 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
107 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
111 return GetDescriptor();
114 return GetMetadataStatic().descriptor;
117 return GetMetadataStatic().reflection;
123 return reinterpret_cast<const MultiThreadPattern*
>(
126 static constexpr
int kIndexInFileMessages =
129 friend void swap(MultiThreadPattern& a, MultiThreadPattern& b) {
132 inline void Swap(MultiThreadPattern* other) {
133 if (other ==
this)
return;
134 if (GetArena() == other->GetArena()) {
137 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
141 if (other ==
this)
return;
142 GOOGLE_DCHECK(GetArena() == other->GetArena());
148 inline MultiThreadPattern*
New() const final {
149 return CreateMaybeMessage<MultiThreadPattern>(
nullptr);
152 MultiThreadPattern*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
153 return CreateMaybeMessage<MultiThreadPattern>(arena);
155 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
156 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
159 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
160 bool IsInitialized() const final;
162 size_t ByteSizeLong() const final;
163 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
164 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
165 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
166 int GetCachedSize() const final {
return _cached_size_.Get(); }
169 inline void SharedCtor();
170 inline void SharedDtor();
171 void SetCachedSize(
int size)
const final;
172 void InternalSwap(MultiThreadPattern* other);
173 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
174 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
175 return "jaiabot.config.MultiThreadPattern";
180 static void ArenaDtor(
void*
object);
181 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
186 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
199 kInterprocessFieldNumber = 2,
204 bool _internal_has_app()
const;
207 const ::goby::middleware::protobuf::AppConfig&
app()
const;
212 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
213 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
216 ::goby::middleware::protobuf::AppConfig* app);
222 bool _internal_has_interprocess()
const;
225 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
230 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
231 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
234 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
241 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
242 typedef void InternalArenaConstructable_;
243 typedef void DestructorSkippable_;
244 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
245 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
246 ::goby::middleware::protobuf::AppConfig* app_;
247 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
248 friend struct ::TableStruct_bin_2fpatterns_2fmulti_5fthread_2fconfig_2eproto;
256 #pragma GCC diagnostic push
257 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
262 inline bool MultiThreadPattern::_internal_has_app()
const {
263 bool value = (_has_bits_[0] & 0x00000001u) != 0;
264 PROTOBUF_ASSUME(!value || app_ !=
nullptr);
267 inline bool MultiThreadPattern::has_app()
const {
268 return _internal_has_app();
270 inline const ::goby::middleware::protobuf::AppConfig& MultiThreadPattern::_internal_app()
const {
271 const ::goby::middleware::protobuf::AppConfig* p = app_;
272 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
273 &::goby::middleware::protobuf::_AppConfig_default_instance_);
275 inline const ::goby::middleware::protobuf::AppConfig& MultiThreadPattern::app()
const {
277 return _internal_app();
279 inline void MultiThreadPattern::unsafe_arena_set_allocated_app(
280 ::goby::middleware::protobuf::AppConfig* app) {
281 if (GetArena() ==
nullptr) {
282 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
286 _has_bits_[0] |= 0x00000001u;
288 _has_bits_[0] &= ~0x00000001u;
292 inline ::goby::middleware::protobuf::AppConfig* MultiThreadPattern::release_app() {
293 auto temp = unsafe_arena_release_app();
294 if (GetArena() !=
nullptr) {
295 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
299 inline ::goby::middleware::protobuf::AppConfig* MultiThreadPattern::unsafe_arena_release_app() {
301 _has_bits_[0] &= ~0x00000001u;
302 ::goby::middleware::protobuf::AppConfig* temp = app_;
306 inline ::goby::middleware::protobuf::AppConfig* MultiThreadPattern::_internal_mutable_app() {
307 _has_bits_[0] |= 0x00000001u;
308 if (app_ ==
nullptr) {
309 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
314 inline ::goby::middleware::protobuf::AppConfig* MultiThreadPattern::mutable_app() {
316 return _internal_mutable_app();
318 inline void MultiThreadPattern::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
319 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
320 if (message_arena ==
nullptr) {
321 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
324 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
325 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app)->GetArena();
326 if (message_arena != submessage_arena) {
327 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
328 message_arena, app, submessage_arena);
330 _has_bits_[0] |= 0x00000001u;
332 _has_bits_[0] &= ~0x00000001u;
339 inline bool MultiThreadPattern::_internal_has_interprocess()
const {
340 bool value = (_has_bits_[0] & 0x00000002u) != 0;
341 PROTOBUF_ASSUME(!value || interprocess_ !=
nullptr);
344 inline bool MultiThreadPattern::has_interprocess()
const {
345 return _internal_has_interprocess();
347 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MultiThreadPattern::_internal_interprocess()
const {
348 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
349 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
350 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
352 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MultiThreadPattern::interprocess()
const {
354 return _internal_interprocess();
356 inline void MultiThreadPattern::unsafe_arena_set_allocated_interprocess(
357 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
358 if (GetArena() ==
nullptr) {
359 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess_);
361 interprocess_ = interprocess;
363 _has_bits_[0] |= 0x00000002u;
365 _has_bits_[0] &= ~0x00000002u;
369 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MultiThreadPattern::release_interprocess() {
370 auto temp = unsafe_arena_release_interprocess();
371 if (GetArena() !=
nullptr) {
372 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
376 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MultiThreadPattern::unsafe_arena_release_interprocess() {
378 _has_bits_[0] &= ~0x00000002u;
379 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
380 interprocess_ =
nullptr;
383 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MultiThreadPattern::_internal_mutable_interprocess() {
384 _has_bits_[0] |= 0x00000002u;
385 if (interprocess_ ==
nullptr) {
386 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
389 return interprocess_;
391 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MultiThreadPattern::mutable_interprocess() {
393 return _internal_mutable_interprocess();
395 inline void MultiThreadPattern::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
396 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
397 if (message_arena ==
nullptr) {
398 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess_);
401 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
402 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess)->GetArena();
403 if (message_arena != submessage_arena) {
404 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
405 message_arena, interprocess, submessage_arena);
407 _has_bits_[0] |= 0x00000002u;
409 _has_bits_[0] &= ~0x00000002u;
411 interprocess_ = interprocess;
416 #pragma GCC diagnostic pop
426 #include <google/protobuf/port_undef.inc>
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
virtual ~MultiThreadPattern()
bool has_interprocess() const
static const MultiThreadPattern & default_instance()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
MultiThreadPattern * New() const final
const ::goby::middleware::protobuf::AppConfig & app() const
static const MultiThreadPattern * internal_default_instance()
static void InitAsDefaultInstance()
void clear_interprocess()
void CopyFrom(const MultiThreadPattern &from)
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
::goby::middleware::protobuf::AppConfig * release_app()
MultiThreadPattern(const MultiThreadPattern &from)
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
MultiThreadPattern(MultiThreadPattern &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
MultiThreadPattern(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(MultiThreadPattern &a, MultiThreadPattern &b)
MultiThreadPattern & operator=(const MultiThreadPattern &from)
::goby::middleware::protobuf::AppConfig * mutable_app()
MultiThreadPattern * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void Swap(MultiThreadPattern *other)
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
void MergeFrom(const MultiThreadPattern &from)
MultiThreadPattern & operator=(MultiThreadPattern &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void UnsafeArenaSwap(MultiThreadPattern *other)
MultiThreadPatternDefaultTypeInternal _MultiThreadPattern_default_instance_
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::jaiabot::udp::protobuf::Config >, 11, false > config
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2fpatterns_2fmulti_5fthread_2fconfig_2eproto
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::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
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)