4#ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2fpatterns_2fsingle_5fthread_2fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_bin_2fpatterns_2fsingle_5fthread_2fconfig_2eproto
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
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.
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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/unknown_field_set.h>
33#include "goby/middleware/protobuf/app_config.pb.h"
34#include "goby/zeromq/protobuf/interprocess_config.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>
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_bin_2fpatterns_2fsingle_5fthread_2fconfig_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
55class SingleThreadPattern;
56struct SingleThreadPatternDefaultTypeInternal;
60PROTOBUF_NAMESPACE_OPEN
62PROTOBUF_NAMESPACE_CLOSE
69 public ::PROTOBUF_NAMESPACE_ID::Message {
73 explicit PROTOBUF_CONSTEXPR
SingleThreadPattern(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
78 *
this = ::std::move(from);
86 if (
this == &from)
return *
this;
87 if (GetOwningArena() == from.GetOwningArena()
88 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
89 && GetOwningArena() !=
nullptr
99 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet&
unknown_fields()
const {
100 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
103 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
106 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
129 if (other ==
this)
return;
130 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
131 if (GetOwningArena() !=
nullptr &&
132 GetOwningArena() == other->GetOwningArena()) {
134 if (GetOwningArena() == other->GetOwningArena()) {
138 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
142 if (other ==
this)
return;
143 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
150 return CreateMaybeMessage<SingleThreadPattern>(arena);
152 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
154 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
156 SingleThreadPattern::MergeImpl(*
this, from);
159 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
161 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
167 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
171 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
173 void SetCachedSize(
int size)
const final;
177 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
178 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
179 return "jaiabot.config.SingleThreadPattern";
183 bool is_message_owned =
false);
187 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
202 bool _internal_has_app()
const;
205 const ::goby::middleware::protobuf::AppConfig&
app()
const;
206 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
207 ::goby::middleware::protobuf::AppConfig*
mutable_app();
210 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
211 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
214 ::goby::middleware::protobuf::AppConfig*
app);
220 bool _internal_has_interprocess()
const;
223 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
228 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
229 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
232 ::goby::zeromq::protobuf::InterProcessPortalConfig*
interprocess);
239 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
240 typedef void InternalArenaConstructable_;
241 typedef void DestructorSkippable_;
243 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
244 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
245 ::goby::middleware::protobuf::AppConfig* app_;
246 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
249 friend struct ::TableStruct_bin_2fpatterns_2fsingle_5fthread_2fconfig_2eproto;
257 #pragma GCC diagnostic push
258 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
263inline bool SingleThreadPattern::_internal_has_app()
const {
264 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
265 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
269 return _internal_has_app();
271inline const ::goby::middleware::protobuf::AppConfig& SingleThreadPattern::_internal_app()
const {
272 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
273 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&
>(
274 ::goby::middleware::protobuf::_AppConfig_default_instance_);
278 return _internal_app();
281 ::goby::middleware::protobuf::AppConfig*
app) {
282 if (GetArenaForAllocation() ==
nullptr) {
283 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
287 _impl_._has_bits_[0] |= 0x00000001u;
289 _impl_._has_bits_[0] &= ~0x00000001u;
294 _impl_._has_bits_[0] &= ~0x00000001u;
295 ::goby::middleware::protobuf::AppConfig* temp =
_impl_.app_;
297#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
298 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
299 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
300 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
302 if (GetArenaForAllocation() !=
nullptr) {
303 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
310 _impl_._has_bits_[0] &= ~0x00000001u;
311 ::goby::middleware::protobuf::AppConfig* temp =
_impl_.app_;
315inline ::goby::middleware::protobuf::AppConfig* SingleThreadPattern::_internal_mutable_app() {
316 _impl_._has_bits_[0] |= 0x00000001u;
317 if (
_impl_.app_ ==
nullptr) {
318 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
324 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
329 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
330 if (message_arena ==
nullptr) {
331 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
334 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
335 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
336 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
337 if (message_arena != submessage_arena) {
338 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
339 message_arena,
app, submessage_arena);
341 _impl_._has_bits_[0] |= 0x00000001u;
343 _impl_._has_bits_[0] &= ~0x00000001u;
350inline bool SingleThreadPattern::_internal_has_interprocess()
const {
351 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
352 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
356 return _internal_has_interprocess();
358inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& SingleThreadPattern::_internal_interprocess()
const {
359 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
360 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&
>(
361 ::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
365 return _internal_interprocess();
368 ::goby::zeromq::protobuf::InterProcessPortalConfig*
interprocess) {
369 if (GetArenaForAllocation() ==
nullptr) {
370 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
374 _impl_._has_bits_[0] |= 0x00000002u;
376 _impl_._has_bits_[0] &= ~0x00000002u;
381 _impl_._has_bits_[0] &= ~0x00000002u;
382 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp =
_impl_.interprocess_;
383 _impl_.interprocess_ =
nullptr;
384#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
385 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
386 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
387 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
389 if (GetArenaForAllocation() !=
nullptr) {
390 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
397 _impl_._has_bits_[0] &= ~0x00000002u;
398 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp =
_impl_.interprocess_;
399 _impl_.interprocess_ =
nullptr;
402inline ::goby::zeromq::protobuf::InterProcessPortalConfig* SingleThreadPattern::_internal_mutable_interprocess() {
403 _impl_._has_bits_[0] |= 0x00000002u;
404 if (
_impl_.interprocess_ ==
nullptr) {
405 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaForAllocation());
408 return _impl_.interprocess_;
411 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
416 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
417 if (message_arena ==
nullptr) {
418 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
421 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
422 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
423 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
interprocess));
424 if (message_arena != submessage_arena) {
425 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
428 _impl_._has_bits_[0] |= 0x00000002u;
430 _impl_._has_bits_[0] &= ~0x00000002u;
437 #pragma GCC diagnostic pop
447#include <google/protobuf/port_undef.inc>
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static constexpr int kIndexInFileMessages
SingleThreadPattern(const SingleThreadPattern &from)
::goby::middleware::protobuf::AppConfig * mutable_app()
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
size_t ByteSizeLong() const final
static const SingleThreadPattern & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::goby::middleware::protobuf::AppConfig & app() const
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
SingleThreadPattern & operator=(const SingleThreadPattern &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
SingleThreadPattern(SingleThreadPattern &&from) noexcept
int GetCachedSize() const final
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
SingleThreadPattern(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void CopyFrom(const SingleThreadPattern &from)
bool has_interprocess() const
~SingleThreadPattern() override
bool IsInitialized() const final
void Swap(SingleThreadPattern *other)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
static const SingleThreadPattern * internal_default_instance()
@ kInterprocessFieldNumber
void UnsafeArenaSwap(SingleThreadPattern *other)
void MergeFrom(const SingleThreadPattern &from)
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
SingleThreadPattern * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void clear_interprocess()
static const ClassData _class_data_
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
SingleThreadPattern & operator=(SingleThreadPattern &&from) noexcept
PROTOBUF_CONSTEXPR SingleThreadPattern(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
friend void swap(SingleThreadPattern &a, SingleThreadPattern &b)
SingleThreadPatternDefaultTypeInternal _SingleThreadPattern_default_instance_
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2fpatterns_2fsingle_5fthread_2fconfig_2eproto
static const uint32_t offsets[]