4 #ifndef PROTOBUF_INCLUDED_bin_2fpatterns_2fsingle_5fthread_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2fpatterns_2fsingle_5fthread_2fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2fpatterns_2fsingle_5fthread_2fconfig_2eproto
45 static const ::google::protobuf::internal::ParseTableField
entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
47 static const ::google::protobuf::internal::ParseTable
schema[1];
50 static const ::google::protobuf::uint32
offsets[];
56 class SingleThreadPattern;
57 class SingleThreadPatternDefaultTypeInternal;
85 *
this = ::std::move(from);
89 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
90 if (
this != &from) InternalSwap(&from);
98 return _internal_metadata_.unknown_fields();
101 return _internal_metadata_.mutable_unknown_fields();
104 static const ::google::protobuf::Descriptor*
descriptor();
123 return CreateMaybeMessage<SingleThreadPattern>(NULL);
127 return CreateMaybeMessage<SingleThreadPattern>(arena);
129 void CopyFrom(const ::google::protobuf::Message& from)
final;
130 void MergeFrom(const ::google::protobuf::Message& from)
final;
138 ::
google::protobuf::io::CodedInputStream* input) final;
140 ::
google::protobuf::io::CodedOutputStream* output) const final;
142 bool deterministic, ::
google::protobuf::uint8* target) const final;
148 void SetCachedSize(
int size)
const final;
151 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
154 inline void* MaybeArenaPtr()
const {
159 ::google::protobuf::Metadata
GetMetadata() const final;
170 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
172 const ::
goby::middleware::protobuf::AppConfig&
app() const;
182 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
184 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
192 void clear_has_app();
193 void set_has_interprocess();
194 void clear_has_interprocess();
196 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
197 ::
google::protobuf::internal::HasBits<1> _has_bits_;
198 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
199 ::
goby::middleware::protobuf::AppConfig* app_;
200 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
209 #pragma GCC diagnostic push
210 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
216 return (_has_bits_[0] & 0x00000001u) != 0;
218 inline void SingleThreadPattern::set_has_app() {
219 _has_bits_[0] |= 0x00000001u;
221 inline void SingleThreadPattern::clear_has_app() {
222 _has_bits_[0] &= ~0x00000001u;
224 inline const ::goby::middleware::protobuf::AppConfig& SingleThreadPattern::_internal_app()
const {
228 const ::goby::middleware::protobuf::AppConfig* p = app_;
230 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
231 &::goby::middleware::protobuf::_AppConfig_default_instance_);
236 ::goby::middleware::protobuf::AppConfig* temp = app_;
243 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
250 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
251 if (message_arena == NULL) {
252 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
255 ::google::protobuf::Arena* submessage_arena = NULL;
256 if (message_arena != submessage_arena) {
257 app = ::google::protobuf::internal::GetOwnedMessage(
258 message_arena,
app, submessage_arena);
270 return (_has_bits_[0] & 0x00000002u) != 0;
272 inline void SingleThreadPattern::set_has_interprocess() {
273 _has_bits_[0] |= 0x00000002u;
275 inline void SingleThreadPattern::clear_has_interprocess() {
276 _has_bits_[0] &= ~0x00000002u;
278 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& SingleThreadPattern::_internal_interprocess()
const {
279 return *interprocess_;
282 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
284 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
285 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
289 clear_has_interprocess();
290 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
291 interprocess_ = NULL;
295 set_has_interprocess();
296 if (interprocess_ == NULL) {
297 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
301 return interprocess_;
304 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
305 if (message_arena == NULL) {
306 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
309 ::google::protobuf::Arena* submessage_arena = NULL;
310 if (message_arena != submessage_arena) {
311 interprocess = ::google::protobuf::internal::GetOwnedMessage(
314 set_has_interprocess();
316 clear_has_interprocess();
323 #pragma GCC diagnostic pop
333 #endif // PROTOBUF_INCLUDED_bin_2fpatterns_2fsingle_5fthread_2fconfig_2eproto