4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fcoroner_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>
36#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 <boost/units/systems/si.hpp>
44#include <google/protobuf/port_def.inc>
45#define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto
46PROTOBUF_NAMESPACE_OPEN
50PROTOBUF_NAMESPACE_CLOSE
62struct CoronerConfigDefaultTypeInternal;
68PROTOBUF_NAMESPACE_OPEN
70PROTOBUF_NAMESPACE_CLOSE
79 public ::PROTOBUF_NAMESPACE_ID::Message {
83 explicit PROTOBUF_CONSTEXPR
CoronerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
88 *
this = ::std::move(from);
96 if (
this == &from)
return *
this;
97 if (GetOwningArena() == from.GetOwningArena()
98 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
99 && GetOwningArena() !=
nullptr
110 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
113 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
116 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
139 if (other ==
this)
return;
140 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
141 if (GetOwningArena() !=
nullptr &&
142 GetOwningArena() == other->GetOwningArena()) {
144 if (GetOwningArena() == other->GetOwningArena()) {
148 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
152 if (other ==
this)
return;
153 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
160 return CreateMaybeMessage<CoronerConfig>(arena);
162 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
164 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
166 CoronerConfig::MergeImpl(*
this, from);
169 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
171 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
177 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
181 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
183 void SetCachedSize(
int size)
const final;
187 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
188 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
189 return "goby.apps.zeromq.protobuf.CoronerConfig";
193 bool is_message_owned =
false);
197 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
217 int _internal_expected_name_size()
const;
231 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
expected_name()
const;
234 const std::string& _internal_expected_name(
int index)
const;
235 std::string* _internal_add_expected_name();
241 bool _internal_has_report_file()
const;
245 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
251 const std::string& _internal_report_file()
const;
252 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_report_file(
const std::string& value);
253 std::string* _internal_mutable_report_file();
259 bool _internal_has_app()
const;
262 const ::goby::middleware::protobuf::AppConfig&
app()
const;
263 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
267 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
277 bool _internal_has_interprocess()
const;
280 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
285 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
295 bool _internal_has_auto_add_new_apps()
const;
301 bool _internal_auto_add_new_apps()
const;
302 void _internal_set_auto_add_new_apps(
bool value);
308 bool _internal_has_request_interval()
const;
314 float _internal_request_interval()
const;
315 void _internal_set_request_interval(
float value);
321 bool _internal_has_response_timeout()
const;
327 float _internal_response_timeout()
const;
328 void _internal_set_response_timeout(
float value);
335 template<
typename Quantity >
337 {
set_request_interval(boost::units::quantity<request_interval_unit,float >(value_w_units).value() ); };
339 template<
typename Quantity >
344 {
return request_interval_with_units<boost::units::quantity< request_interval_unit,float > >(); };
350 template<
typename Quantity >
352 {
set_response_timeout(boost::units::quantity<response_timeout_unit,float >(value_w_units).value() ); };
354 template<
typename Quantity >
359 {
return response_timeout_with_units<boost::units::quantity< response_timeout_unit,float > >(); };
365 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
366 typedef void InternalArenaConstructable_;
367 typedef void DestructorSkippable_;
369 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
370 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
371 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> expected_name_;
372 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr report_file_;
375 bool auto_add_new_apps_;
376 float request_interval_;
377 float response_timeout_;
380 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto;
388 #pragma GCC diagnostic push
389 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
394inline bool CoronerConfig::_internal_has_app()
const {
395 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
396 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
400 return _internal_has_app();
402inline const ::goby::middleware::protobuf::AppConfig& CoronerConfig::_internal_app()
const {
403 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
409 return _internal_app();
413 if (GetArenaForAllocation() ==
nullptr) {
414 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
418 _impl_._has_bits_[0] |= 0x00000002u;
420 _impl_._has_bits_[0] &= ~0x00000002u;
425 _impl_._has_bits_[0] &= ~0x00000002u;
428#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
429 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
430 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
431 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
433 if (GetArenaForAllocation() !=
nullptr) {
434 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
441 _impl_._has_bits_[0] &= ~0x00000002u;
446inline ::goby::middleware::protobuf::AppConfig* CoronerConfig::_internal_mutable_app() {
447 _impl_._has_bits_[0] |= 0x00000002u;
448 if (
_impl_.app_ ==
nullptr) {
460 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
461 if (message_arena ==
nullptr) {
462 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
465 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
466 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
467 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
468 if (message_arena != submessage_arena) {
469 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
470 message_arena,
app, submessage_arena);
472 _impl_._has_bits_[0] |= 0x00000002u;
474 _impl_._has_bits_[0] &= ~0x00000002u;
481inline bool CoronerConfig::_internal_has_interprocess()
const {
482 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
483 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
487 return _internal_has_interprocess();
489inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& CoronerConfig::_internal_interprocess()
const {
490 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
496 return _internal_interprocess();
500 if (GetArenaForAllocation() ==
nullptr) {
501 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
505 _impl_._has_bits_[0] |= 0x00000004u;
507 _impl_._has_bits_[0] &= ~0x00000004u;
512 _impl_._has_bits_[0] &= ~0x00000004u;
514 _impl_.interprocess_ =
nullptr;
515#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
516 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
517 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
518 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
520 if (GetArenaForAllocation() !=
nullptr) {
521 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
528 _impl_._has_bits_[0] &= ~0x00000004u;
530 _impl_.interprocess_ =
nullptr;
533inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CoronerConfig::_internal_mutable_interprocess() {
534 _impl_._has_bits_[0] |= 0x00000004u;
535 if (
_impl_.interprocess_ ==
nullptr) {
539 return _impl_.interprocess_;
547 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
548 if (message_arena ==
nullptr) {
549 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
552 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
553 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
554 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
interprocess));
555 if (message_arena != submessage_arena) {
556 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
559 _impl_._has_bits_[0] |= 0x00000004u;
561 _impl_._has_bits_[0] &= ~0x00000004u;
568inline int CoronerConfig::_internal_expected_name_size()
const {
569 return _impl_.expected_name_.size();
572 return _internal_expected_name_size();
575 _impl_.expected_name_.Clear();
578 std::string* _s = _internal_add_expected_name();
582inline const std::string& CoronerConfig::_internal_expected_name(
int index)
const {
583 return _impl_.expected_name_.Get(index);
587 return _internal_expected_name(index);
591 return _impl_.expected_name_.Mutable(index);
594 _impl_.expected_name_.Mutable(index)->assign(value);
598 _impl_.expected_name_.Mutable(index)->assign(std::move(value));
602 GOOGLE_DCHECK(value !=
nullptr);
603 _impl_.expected_name_.Mutable(index)->assign(value);
607 _impl_.expected_name_.Mutable(index)->assign(
608 reinterpret_cast<const char*
>(value), size);
611inline std::string* CoronerConfig::_internal_add_expected_name() {
612 return _impl_.expected_name_.Add();
615 _impl_.expected_name_.Add()->assign(value);
619 _impl_.expected_name_.Add(std::move(value));
623 GOOGLE_DCHECK(value !=
nullptr);
624 _impl_.expected_name_.Add()->assign(value);
628 _impl_.expected_name_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
631inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
634 return _impl_.expected_name_;
636inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
639 return &
_impl_.expected_name_;
643inline bool CoronerConfig::_internal_has_request_interval()
const {
644 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
648 return _internal_has_request_interval();
651 _impl_.request_interval_ = 10;
652 _impl_._has_bits_[0] &= ~0x00000010u;
654inline float CoronerConfig::_internal_request_interval()
const {
655 return _impl_.request_interval_;
659 return _internal_request_interval();
661inline void CoronerConfig::_internal_set_request_interval(
float value) {
662 _impl_._has_bits_[0] |= 0x00000010u;
663 _impl_.request_interval_ = value;
666 _internal_set_request_interval(value);
671inline bool CoronerConfig::_internal_has_response_timeout()
const {
672 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
676 return _internal_has_response_timeout();
679 _impl_.response_timeout_ = 5;
680 _impl_._has_bits_[0] &= ~0x00000020u;
682inline float CoronerConfig::_internal_response_timeout()
const {
683 return _impl_.response_timeout_;
687 return _internal_response_timeout();
689inline void CoronerConfig::_internal_set_response_timeout(
float value) {
690 _impl_._has_bits_[0] |= 0x00000020u;
691 _impl_.response_timeout_ = value;
694 _internal_set_response_timeout(value);
699inline bool CoronerConfig::_internal_has_auto_add_new_apps()
const {
700 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
704 return _internal_has_auto_add_new_apps();
707 _impl_.auto_add_new_apps_ =
false;
708 _impl_._has_bits_[0] &= ~0x00000008u;
710inline bool CoronerConfig::_internal_auto_add_new_apps()
const {
711 return _impl_.auto_add_new_apps_;
715 return _internal_auto_add_new_apps();
717inline void CoronerConfig::_internal_set_auto_add_new_apps(
bool value) {
718 _impl_._has_bits_[0] |= 0x00000008u;
719 _impl_.auto_add_new_apps_ = value;
722 _internal_set_auto_add_new_apps(value);
727inline bool CoronerConfig::_internal_has_report_file()
const {
728 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
732 return _internal_has_report_file();
735 _impl_.report_file_.ClearToEmpty();
736 _impl_._has_bits_[0] &= ~0x00000001u;
740 return _internal_report_file();
742template <
typename ArgT0,
typename... ArgT>
743inline PROTOBUF_ALWAYS_INLINE
745 _impl_._has_bits_[0] |= 0x00000001u;
746 _impl_.report_file_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
750 std::string* _s = _internal_mutable_report_file();
754inline const std::string& CoronerConfig::_internal_report_file()
const {
755 return _impl_.report_file_.Get();
757inline void CoronerConfig::_internal_set_report_file(
const std::string& value) {
758 _impl_._has_bits_[0] |= 0x00000001u;
759 _impl_.report_file_.Set(value, GetArenaForAllocation());
761inline std::string* CoronerConfig::_internal_mutable_report_file() {
762 _impl_._has_bits_[0] |= 0x00000001u;
763 return _impl_.report_file_.Mutable(GetArenaForAllocation());
767 if (!_internal_has_report_file()) {
770 _impl_._has_bits_[0] &= ~0x00000001u;
771 auto* p =
_impl_.report_file_.Release();
772#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
773 if (
_impl_.report_file_.IsDefault()) {
774 _impl_.report_file_.Set(
"", GetArenaForAllocation());
781 _impl_._has_bits_[0] |= 0x00000001u;
783 _impl_._has_bits_[0] &= ~0x00000001u;
786#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
787 if (
_impl_.report_file_.IsDefault()) {
788 _impl_.report_file_.Set(
"", GetArenaForAllocation());
795 #pragma GCC diagnostic pop
807#include <google/protobuf/port_undef.inc>
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
PROTOBUF_CONSTEXPR CoronerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
bool has_request_interval() const
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
void set_report_file(ArgT0 &&arg0, ArgT... args)
Quantity request_interval_with_units() const
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void MergeFrom(const CoronerConfig &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void CopyFrom(const CoronerConfig &from)
size_t ByteSizeLong() const final
void UnsafeArenaSwap(CoronerConfig *other)
CoronerConfig & operator=(const CoronerConfig &from)
friend void swap(CoronerConfig &a, CoronerConfig &b)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
boost::units::unit< request_interval_dimension, boost::units::si::system > request_interval_unit
::goby::middleware::protobuf::AppConfig * mutable_app()
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
void clear_response_timeout()
float request_interval() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_expected_name()
boost::units::quantity< response_timeout_unit, float > response_timeout_with_units() const
bool has_report_file() const
static constexpr int kIndexInFileMessages
@ kRequestIntervalFieldNumber
@ kResponseTimeoutFieldNumber
@ kExpectedNameFieldNumber
@ kAutoAddNewAppsFieldNumber
@ kInterprocessFieldNumber
std::string * add_expected_name()
void clear_request_interval()
boost::units::quantity< request_interval_unit, float > request_interval_with_units() const
void clear_interprocess()
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
CoronerConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void set_response_timeout(float value)
static const CoronerConfig & default_instance()
bool has_auto_add_new_apps() const
void Swap(CoronerConfig *other)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type request_interval_dimension
float response_timeout() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void set_expected_name(int index, const std::string &value)
void clear_auto_add_new_apps()
bool IsInitialized() const final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
std::string * mutable_report_file()
PROTOBUF_NODISCARD std::string * release_report_file()
void clear_expected_name()
bool auto_add_new_apps() const
void set_response_timeout_with_units(Quantity value_w_units)
~CoronerConfig() override
CoronerConfig(const CoronerConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
void set_request_interval_with_units(Quantity value_w_units)
CoronerConfig & operator=(CoronerConfig &&from) noexcept
static const ClassData _class_data_
bool has_response_timeout() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_request_interval(float value)
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Quantity response_timeout_with_units() const
CoronerConfig(CoronerConfig &&from) noexcept
bool has_interprocess() const
void set_allocated_report_file(std::string *report_file)
static const CoronerConfig * internal_default_instance()
int expected_name_size() const
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_auto_add_new_apps(bool value)
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & expected_name() const
int GetCachedSize() const final
CoronerConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type response_timeout_dimension
const std::string & report_file() const
const ::goby::middleware::protobuf::AppConfig & app() const
boost::units::unit< response_timeout_dimension, boost::units::si::system > response_timeout_unit
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto
::goby::zeromq::protobuf::InterProcessPortalConfig * Arena::CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig >(Arena *)
CoronerConfigDefaultTypeInternal _CoronerConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]