4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fstore_5fserver_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fstore_5fserver_5fconfig_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>
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>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/unknown_field_set.h>
35#include "dccl/option_extensions.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_goby_2facomms_2fprotobuf_2fstore_5fserver_5fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
48PROTOBUF_NAMESPACE_CLOSE
59class StoreServerConfig;
60struct StoreServerConfigDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
77 public ::PROTOBUF_NAMESPACE_ID::Message {
81 explicit PROTOBUF_CONSTEXPR
StoreServerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
86 *
this = ::std::move(from);
94 if (
this == &from)
return *
this;
95 if (GetOwningArena() == from.GetOwningArena()
96 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97 && GetOwningArena() !=
nullptr
108 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
111 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
137 if (other ==
this)
return;
138 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() !=
nullptr &&
140 GetOwningArena() == other->GetOwningArena()) {
142 if (GetOwningArena() == other->GetOwningArena()) {
146 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
150 if (other ==
this)
return;
151 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
158 return CreateMaybeMessage<StoreServerConfig>(arena);
160 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164 StoreServerConfig::MergeImpl(*
this, from);
167 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
169 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
175 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
179 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
181 void SetCachedSize(
int size)
const final;
185 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187 return "goby.apps.acomms.protobuf.StoreServerConfig";
191 bool is_message_owned =
false);
195 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
212 bool _internal_has_db_file_dir()
const;
216 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
222 const std::string& _internal_db_file_dir()
const;
223 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_db_file_dir(
const std::string& value);
224 std::string* _internal_mutable_db_file_dir();
230 bool _internal_has_db_file_name()
const;
234 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
240 const std::string& _internal_db_file_name()
const;
241 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_db_file_name(
const std::string& value);
242 std::string* _internal_mutable_db_file_name();
248 bool _internal_has_app()
const;
251 const ::goby::middleware::protobuf::AppConfig&
app()
const;
252 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
256 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
266 bool _internal_has_tcp_server()
const;
269 const ::goby::middleware::protobuf::TCPServerConfig&
tcp_server()
const;
270 PROTOBUF_NODISCARD ::goby::middleware::protobuf::TCPServerConfig*
release_tcp_server();
274 const ::goby::middleware::protobuf::TCPServerConfig& _internal_tcp_server()
const;
285 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
286 typedef void InternalArenaConstructable_;
287 typedef void DestructorSkippable_;
289 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
290 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
291 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_db_file_dir_;
292 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_file_dir_;
293 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_file_name_;
298 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fstore_5fserver_5fconfig_2eproto;
306 #pragma GCC diagnostic push
307 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
312inline bool StoreServerConfig::_internal_has_app()
const {
313 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
314 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
318 return _internal_has_app();
320inline const ::goby::middleware::protobuf::AppConfig& StoreServerConfig::_internal_app()
const {
321 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
327 return _internal_app();
331 if (GetArenaForAllocation() ==
nullptr) {
332 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
336 _impl_._has_bits_[0] |= 0x00000004u;
338 _impl_._has_bits_[0] &= ~0x00000004u;
343 _impl_._has_bits_[0] &= ~0x00000004u;
346#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
347 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
348 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
349 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
351 if (GetArenaForAllocation() !=
nullptr) {
352 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
359 _impl_._has_bits_[0] &= ~0x00000004u;
364inline ::goby::middleware::protobuf::AppConfig* StoreServerConfig::_internal_mutable_app() {
365 _impl_._has_bits_[0] |= 0x00000004u;
366 if (
_impl_.app_ ==
nullptr) {
378 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
379 if (message_arena ==
nullptr) {
380 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
383 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
384 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
385 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
386 if (message_arena != submessage_arena) {
387 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
388 message_arena,
app, submessage_arena);
390 _impl_._has_bits_[0] |= 0x00000004u;
392 _impl_._has_bits_[0] &= ~0x00000004u;
399inline bool StoreServerConfig::_internal_has_tcp_server()
const {
400 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
401 PROTOBUF_ASSUME(!value ||
_impl_.tcp_server_ !=
nullptr);
405 return _internal_has_tcp_server();
407inline const ::goby::middleware::protobuf::TCPServerConfig& StoreServerConfig::_internal_tcp_server()
const {
408 const ::goby::middleware::protobuf::TCPServerConfig* p =
_impl_.tcp_server_;
414 return _internal_tcp_server();
418 if (GetArenaForAllocation() ==
nullptr) {
419 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.tcp_server_);
423 _impl_._has_bits_[0] |= 0x00000008u;
425 _impl_._has_bits_[0] &= ~0x00000008u;
430 _impl_._has_bits_[0] &= ~0x00000008u;
432 _impl_.tcp_server_ =
nullptr;
433#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
434 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
435 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
436 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
438 if (GetArenaForAllocation() !=
nullptr) {
439 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
446 _impl_._has_bits_[0] &= ~0x00000008u;
448 _impl_.tcp_server_ =
nullptr;
451inline ::goby::middleware::protobuf::TCPServerConfig* StoreServerConfig::_internal_mutable_tcp_server() {
452 _impl_._has_bits_[0] |= 0x00000008u;
453 if (
_impl_.tcp_server_ ==
nullptr) {
457 return _impl_.tcp_server_;
465 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
466 if (message_arena ==
nullptr) {
467 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.tcp_server_);
470 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
471 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
472 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
tcp_server));
473 if (message_arena != submessage_arena) {
474 tcp_server = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
477 _impl_._has_bits_[0] |= 0x00000008u;
479 _impl_._has_bits_[0] &= ~0x00000008u;
486inline bool StoreServerConfig::_internal_has_db_file_dir()
const {
487 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
491 return _internal_has_db_file_dir();
494 _impl_.db_file_dir_.ClearToDefault(::goby::apps::acomms::protobuf::StoreServerConfig::Impl_::_i_give_permission_to_break_this_code_default_db_file_dir_, GetArenaForAllocation());
495 _impl_._has_bits_[0] &= ~0x00000001u;
499 if (
_impl_.db_file_dir_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_db_file_dir_.get();
500 return _internal_db_file_dir();
502template <
typename ArgT0,
typename... ArgT>
503inline PROTOBUF_ALWAYS_INLINE
505 _impl_._has_bits_[0] |= 0x00000001u;
506 _impl_.db_file_dir_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
510 std::string* _s = _internal_mutable_db_file_dir();
514inline const std::string& StoreServerConfig::_internal_db_file_dir()
const {
515 return _impl_.db_file_dir_.Get();
517inline void StoreServerConfig::_internal_set_db_file_dir(
const std::string& value) {
518 _impl_._has_bits_[0] |= 0x00000001u;
519 _impl_.db_file_dir_.Set(value, GetArenaForAllocation());
521inline std::string* StoreServerConfig::_internal_mutable_db_file_dir() {
522 _impl_._has_bits_[0] |= 0x00000001u;
523 return _impl_.db_file_dir_.Mutable(::goby::apps::acomms::protobuf::StoreServerConfig::Impl_::_i_give_permission_to_break_this_code_default_db_file_dir_, GetArenaForAllocation());
527 if (!_internal_has_db_file_dir()) {
530 _impl_._has_bits_[0] &= ~0x00000001u;
531 auto* p =
_impl_.db_file_dir_.Release();
536 _impl_._has_bits_[0] |= 0x00000001u;
538 _impl_._has_bits_[0] &= ~0x00000001u;
545inline bool StoreServerConfig::_internal_has_db_file_name()
const {
546 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
550 return _internal_has_db_file_name();
553 _impl_.db_file_name_.ClearToEmpty();
554 _impl_._has_bits_[0] &= ~0x00000002u;
558 return _internal_db_file_name();
560template <
typename ArgT0,
typename... ArgT>
561inline PROTOBUF_ALWAYS_INLINE
563 _impl_._has_bits_[0] |= 0x00000002u;
564 _impl_.db_file_name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
568 std::string* _s = _internal_mutable_db_file_name();
572inline const std::string& StoreServerConfig::_internal_db_file_name()
const {
573 return _impl_.db_file_name_.Get();
575inline void StoreServerConfig::_internal_set_db_file_name(
const std::string& value) {
576 _impl_._has_bits_[0] |= 0x00000002u;
577 _impl_.db_file_name_.Set(value, GetArenaForAllocation());
579inline std::string* StoreServerConfig::_internal_mutable_db_file_name() {
580 _impl_._has_bits_[0] |= 0x00000002u;
581 return _impl_.db_file_name_.Mutable(GetArenaForAllocation());
585 if (!_internal_has_db_file_name()) {
588 _impl_._has_bits_[0] &= ~0x00000002u;
589 auto* p =
_impl_.db_file_name_.Release();
590#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
591 if (
_impl_.db_file_name_.IsDefault()) {
592 _impl_.db_file_name_.Set(
"", GetArenaForAllocation());
599 _impl_._has_bits_[0] |= 0x00000002u;
601 _impl_._has_bits_[0] &= ~0x00000002u;
604#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
605 if (
_impl_.db_file_name_.IsDefault()) {
606 _impl_.db_file_name_.Set(
"", GetArenaForAllocation());
613 #pragma GCC diagnostic pop
625#include <google/protobuf/port_undef.inc>
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
bool has_db_file_dir() const
StoreServerConfig(const StoreServerConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_allocated_db_file_name(std::string *db_file_name)
int GetCachedSize() const final
void CopyFrom(const StoreServerConfig &from)
bool has_tcp_server() const
static const StoreServerConfig * internal_default_instance()
StoreServerConfig & operator=(StoreServerConfig &&from) noexcept
bool IsInitialized() const final
void set_allocated_db_file_dir(std::string *db_file_dir)
PROTOBUF_NODISCARD::goby::middleware::protobuf::TCPServerConfig * release_tcp_server()
~StoreServerConfig() override
void Swap(StoreServerConfig *other)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
std::string * mutable_db_file_dir()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
StoreServerConfig(StoreServerConfig &&from) noexcept
StoreServerConfig & operator=(const StoreServerConfig &from)
const std::string & db_file_dir() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const ::goby::middleware::protobuf::TCPServerConfig & tcp_server() const
static const StoreServerConfig & default_instance()
bool has_db_file_name() const
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
void set_db_file_dir(ArgT0 &&arg0, ArgT... args)
void MergeFrom(const StoreServerConfig &from)
void unsafe_arena_set_allocated_tcp_server(::goby::middleware::protobuf::TCPServerConfig *tcp_server)
const ::goby::middleware::protobuf::AppConfig & app() const
PROTOBUF_CONSTEXPR StoreServerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void clear_db_file_name()
::goby::middleware::protobuf::AppConfig * mutable_app()
StoreServerConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void UnsafeArenaSwap(StoreServerConfig *other)
PROTOBUF_NODISCARD std::string * release_db_file_name()
void set_db_file_name(ArgT0 &&arg0, ArgT... args)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_NODISCARD std::string * release_db_file_dir()
static constexpr int kIndexInFileMessages
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const std::string & db_file_name() const
static const ClassData _class_data_
::goby::middleware::protobuf::TCPServerConfig * mutable_tcp_server()
size_t ByteSizeLong() const final
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
StoreServerConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
friend void swap(StoreServerConfig &a, StoreServerConfig &b)
::goby::middleware::protobuf::TCPServerConfig * unsafe_arena_release_tcp_server()
void set_allocated_tcp_server(::goby::middleware::protobuf::TCPServerConfig *tcp_server)
std::string * mutable_db_file_name()
StoreServerConfigDefaultTypeInternal _StoreServerConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
TCPServerConfigDefaultTypeInternal _TCPServerConfig_default_instance_
The global namespace for the Goby project.
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fstore_5fserver_5fconfig_2eproto
static const uint32_t offsets[]
::goby::middleware::protobuf::TCPServerConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::TCPServerConfig >(Arena *)