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>
34#include "dccl/option_extensions.pb.h"
36#include <boost/units/quantity.hpp>
37#include <boost/units/absolute.hpp>
38#include <boost/units/dimensionless_type.hpp>
39#include <boost/units/make_scaled_unit.hpp>
41#include <boost/units/systems/si.hpp>
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fstore_5fserver_5fconfig_2eproto
45PROTOBUF_NAMESPACE_OPEN
49PROTOBUF_NAMESPACE_CLOSE
60class StoreServerConfig;
61struct StoreServerConfigDefaultTypeInternal;
67PROTOBUF_NAMESPACE_OPEN
69PROTOBUF_NAMESPACE_CLOSE
78 public ::PROTOBUF_NAMESPACE_ID::Message {
82 explicit PROTOBUF_CONSTEXPR
StoreServerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
87 *
this = ::std::move(from);
95 if (
this == &from)
return *
this;
96 if (GetOwningArena() == from.GetOwningArena()
97 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
98 && GetOwningArena() !=
nullptr
109 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
112 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
138 if (other ==
this)
return;
139 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() !=
nullptr &&
141 GetOwningArena() == other->GetOwningArena()) {
143 if (GetOwningArena() == other->GetOwningArena()) {
147 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
151 if (other ==
this)
return;
152 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
159 return CreateMaybeMessage<StoreServerConfig>(arena);
161 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
163 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
165 StoreServerConfig::MergeImpl(*
this, from);
168 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
170 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
176 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
180 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
182 void SetCachedSize(
int size)
const final;
186 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
187 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
188 return "goby.apps.acomms.protobuf.StoreServerConfig";
192 bool is_message_owned =
false);
196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
214 bool _internal_has_db_file_dir()
const;
218 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
224 const std::string& _internal_db_file_dir()
const;
225 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_db_file_dir(
const std::string& value);
226 std::string* _internal_mutable_db_file_dir();
232 bool _internal_has_db_file_name()
const;
236 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
242 const std::string& _internal_db_file_name()
const;
243 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_db_file_name(
const std::string& value);
244 std::string* _internal_mutable_db_file_name();
250 bool _internal_has_app()
const;
253 const ::goby::middleware::protobuf::AppConfig&
app()
const;
254 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
258 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
268 bool _internal_has_tcp_server()
const;
271 const ::goby::middleware::protobuf::TCPServerConfig&
tcp_server()
const;
272 PROTOBUF_NODISCARD ::goby::middleware::protobuf::TCPServerConfig*
release_tcp_server();
276 const ::goby::middleware::protobuf::TCPServerConfig& _internal_tcp_server()
const;
286 bool _internal_has_max_time_between_requests()
const;
292 double _internal_max_time_between_requests()
const;
293 void _internal_set_max_time_between_requests(
double value);
300 template<
typename Quantity >
304 template<
typename Quantity >
309 {
return max_time_between_requests_with_units<boost::units::quantity< max_time_between_requests_unit,double > >(); };
315 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
316 typedef void InternalArenaConstructable_;
317 typedef void DestructorSkippable_;
319 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
320 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
321 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_db_file_dir_;
322 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_file_dir_;
323 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_file_name_;
326 double max_time_between_requests_;
329 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fstore_5fserver_5fconfig_2eproto;
337 #pragma GCC diagnostic push
338 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
343inline bool StoreServerConfig::_internal_has_app()
const {
344 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
345 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
349 return _internal_has_app();
351inline const ::goby::middleware::protobuf::AppConfig& StoreServerConfig::_internal_app()
const {
352 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
358 return _internal_app();
362 if (GetArenaForAllocation() ==
nullptr) {
363 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
367 _impl_._has_bits_[0] |= 0x00000004u;
369 _impl_._has_bits_[0] &= ~0x00000004u;
374 _impl_._has_bits_[0] &= ~0x00000004u;
377#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
378 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
379 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
380 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
382 if (GetArenaForAllocation() !=
nullptr) {
383 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
390 _impl_._has_bits_[0] &= ~0x00000004u;
395inline ::goby::middleware::protobuf::AppConfig* StoreServerConfig::_internal_mutable_app() {
396 _impl_._has_bits_[0] |= 0x00000004u;
397 if (
_impl_.app_ ==
nullptr) {
409 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
410 if (message_arena ==
nullptr) {
411 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
414 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
415 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
416 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
417 if (message_arena != submessage_arena) {
418 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
419 message_arena,
app, submessage_arena);
421 _impl_._has_bits_[0] |= 0x00000004u;
423 _impl_._has_bits_[0] &= ~0x00000004u;
430inline bool StoreServerConfig::_internal_has_tcp_server()
const {
431 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
432 PROTOBUF_ASSUME(!value ||
_impl_.tcp_server_ !=
nullptr);
436 return _internal_has_tcp_server();
438inline const ::goby::middleware::protobuf::TCPServerConfig& StoreServerConfig::_internal_tcp_server()
const {
439 const ::goby::middleware::protobuf::TCPServerConfig* p =
_impl_.tcp_server_;
445 return _internal_tcp_server();
449 if (GetArenaForAllocation() ==
nullptr) {
450 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.tcp_server_);
454 _impl_._has_bits_[0] |= 0x00000008u;
456 _impl_._has_bits_[0] &= ~0x00000008u;
461 _impl_._has_bits_[0] &= ~0x00000008u;
463 _impl_.tcp_server_ =
nullptr;
464#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
465 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
466 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
467 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
469 if (GetArenaForAllocation() !=
nullptr) {
470 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
477 _impl_._has_bits_[0] &= ~0x00000008u;
479 _impl_.tcp_server_ =
nullptr;
482inline ::goby::middleware::protobuf::TCPServerConfig* StoreServerConfig::_internal_mutable_tcp_server() {
483 _impl_._has_bits_[0] |= 0x00000008u;
484 if (
_impl_.tcp_server_ ==
nullptr) {
488 return _impl_.tcp_server_;
496 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
497 if (message_arena ==
nullptr) {
498 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.tcp_server_);
501 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
502 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
503 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
tcp_server));
504 if (message_arena != submessage_arena) {
505 tcp_server = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
508 _impl_._has_bits_[0] |= 0x00000008u;
510 _impl_._has_bits_[0] &= ~0x00000008u;
517inline bool StoreServerConfig::_internal_has_db_file_dir()
const {
518 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
522 return _internal_has_db_file_dir();
525 _impl_.db_file_dir_.ClearToDefault(::goby::apps::acomms::protobuf::StoreServerConfig::Impl_::_i_give_permission_to_break_this_code_default_db_file_dir_, GetArenaForAllocation());
526 _impl_._has_bits_[0] &= ~0x00000001u;
530 if (
_impl_.db_file_dir_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_db_file_dir_.get();
531 return _internal_db_file_dir();
533template <
typename ArgT0,
typename... ArgT>
534inline PROTOBUF_ALWAYS_INLINE
536 _impl_._has_bits_[0] |= 0x00000001u;
537 _impl_.db_file_dir_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
541 std::string* _s = _internal_mutable_db_file_dir();
545inline const std::string& StoreServerConfig::_internal_db_file_dir()
const {
546 return _impl_.db_file_dir_.Get();
548inline void StoreServerConfig::_internal_set_db_file_dir(
const std::string& value) {
549 _impl_._has_bits_[0] |= 0x00000001u;
550 _impl_.db_file_dir_.Set(value, GetArenaForAllocation());
552inline std::string* StoreServerConfig::_internal_mutable_db_file_dir() {
553 _impl_._has_bits_[0] |= 0x00000001u;
554 return _impl_.db_file_dir_.Mutable(::goby::apps::acomms::protobuf::StoreServerConfig::Impl_::_i_give_permission_to_break_this_code_default_db_file_dir_, GetArenaForAllocation());
558 if (!_internal_has_db_file_dir()) {
561 _impl_._has_bits_[0] &= ~0x00000001u;
562 auto* p =
_impl_.db_file_dir_.Release();
567 _impl_._has_bits_[0] |= 0x00000001u;
569 _impl_._has_bits_[0] &= ~0x00000001u;
576inline bool StoreServerConfig::_internal_has_db_file_name()
const {
577 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
581 return _internal_has_db_file_name();
584 _impl_.db_file_name_.ClearToEmpty();
585 _impl_._has_bits_[0] &= ~0x00000002u;
589 return _internal_db_file_name();
591template <
typename ArgT0,
typename... ArgT>
592inline PROTOBUF_ALWAYS_INLINE
594 _impl_._has_bits_[0] |= 0x00000002u;
595 _impl_.db_file_name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
599 std::string* _s = _internal_mutable_db_file_name();
603inline const std::string& StoreServerConfig::_internal_db_file_name()
const {
604 return _impl_.db_file_name_.Get();
606inline void StoreServerConfig::_internal_set_db_file_name(
const std::string& value) {
607 _impl_._has_bits_[0] |= 0x00000002u;
608 _impl_.db_file_name_.Set(value, GetArenaForAllocation());
610inline std::string* StoreServerConfig::_internal_mutable_db_file_name() {
611 _impl_._has_bits_[0] |= 0x00000002u;
612 return _impl_.db_file_name_.Mutable(GetArenaForAllocation());
616 if (!_internal_has_db_file_name()) {
619 _impl_._has_bits_[0] &= ~0x00000002u;
620 auto* p =
_impl_.db_file_name_.Release();
621#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
622 if (
_impl_.db_file_name_.IsDefault()) {
623 _impl_.db_file_name_.Set(
"", GetArenaForAllocation());
630 _impl_._has_bits_[0] |= 0x00000002u;
632 _impl_._has_bits_[0] &= ~0x00000002u;
635#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
636 if (
_impl_.db_file_name_.IsDefault()) {
637 _impl_.db_file_name_.Set(
"", GetArenaForAllocation());
644inline bool StoreServerConfig::_internal_has_max_time_between_requests()
const {
645 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
649 return _internal_has_max_time_between_requests();
652 _impl_.max_time_between_requests_ = 0;
653 _impl_._has_bits_[0] &= ~0x00000010u;
655inline double StoreServerConfig::_internal_max_time_between_requests()
const {
656 return _impl_.max_time_between_requests_;
660 return _internal_max_time_between_requests();
662inline void StoreServerConfig::_internal_set_max_time_between_requests(
double value) {
663 _impl_._has_bits_[0] |= 0x00000010u;
664 _impl_.max_time_between_requests_ = value;
667 _internal_set_max_time_between_requests(value);
672 #pragma GCC diagnostic pop
684#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()
double max_time_between_requests() const
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
boost::units::quantity< max_time_between_requests_unit, double > max_time_between_requests_with_units() const
bool IsInitialized() const final
void set_allocated_db_file_dir(std::string *db_file_dir)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type max_time_between_requests_dimension
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
boost::units::unit< max_time_between_requests_dimension, boost::units::si::system > max_time_between_requests_unit
void clear_max_time_between_requests()
void set_max_time_between_requests_with_units(Quantity value_w_units)
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)
bool has_max_time_between_requests() const
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()
@ kMaxTimeBetweenRequestsFieldNumber
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 set_max_time_between_requests(double value)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Quantity max_time_between_requests_with_units() const
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 *)