4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fterminate_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fterminate_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_2fterminate_5fconfig_2eproto
46PROTOBUF_NAMESPACE_OPEN
50PROTOBUF_NAMESPACE_CLOSE
62struct TerminateConfigDefaultTypeInternal;
68PROTOBUF_NAMESPACE_OPEN
70PROTOBUF_NAMESPACE_CLOSE
79 public ::PROTOBUF_NAMESPACE_ID::Message {
83 explicit PROTOBUF_CONSTEXPR
TerminateConfig(::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<TerminateConfig>(arena);
162 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
164 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
166 TerminateConfig::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.TerminateConfig";
193 bool is_message_owned =
false);
197 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
215 int _internal_target_name_size()
const;
229 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
target_name()
const;
232 const std::string& _internal_target_name(
int index)
const;
233 std::string* _internal_add_target_name();
239 int _internal_target_pid_size()
const;
243 uint32_t _internal_target_pid(
int index)
const;
244 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
245 _internal_target_pid()
const;
246 void _internal_add_target_pid(uint32_t value);
247 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
248 _internal_mutable_target_pid();
253 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
255 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
261 bool _internal_has_app()
const;
264 const ::goby::middleware::protobuf::AppConfig&
app()
const;
265 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
269 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
279 bool _internal_has_interprocess()
const;
282 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
287 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
297 bool _internal_has_response_timeout()
const;
303 float _internal_response_timeout()
const;
304 void _internal_set_response_timeout(
float value);
311 template<
typename Quantity >
313 {
set_response_timeout(boost::units::quantity<response_timeout_unit,float >(value_w_units).value() ); };
315 template<
typename Quantity >
320 {
return response_timeout_with_units<boost::units::quantity< response_timeout_unit,float > >(); };
326 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
327 typedef void InternalArenaConstructable_;
328 typedef void DestructorSkippable_;
330 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
331 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
332 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> target_name_;
333 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > target_pid_;
336 float response_timeout_;
339 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fterminate_5fconfig_2eproto;
347 #pragma GCC diagnostic push
348 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
353inline bool TerminateConfig::_internal_has_app()
const {
354 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
355 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
359 return _internal_has_app();
361inline const ::goby::middleware::protobuf::AppConfig& TerminateConfig::_internal_app()
const {
362 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
368 return _internal_app();
372 if (GetArenaForAllocation() ==
nullptr) {
373 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
377 _impl_._has_bits_[0] |= 0x00000001u;
379 _impl_._has_bits_[0] &= ~0x00000001u;
384 _impl_._has_bits_[0] &= ~0x00000001u;
387#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
388 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
389 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
390 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
392 if (GetArenaForAllocation() !=
nullptr) {
393 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
400 _impl_._has_bits_[0] &= ~0x00000001u;
405inline ::goby::middleware::protobuf::AppConfig* TerminateConfig::_internal_mutable_app() {
406 _impl_._has_bits_[0] |= 0x00000001u;
407 if (
_impl_.app_ ==
nullptr) {
419 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
420 if (message_arena ==
nullptr) {
421 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
424 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
425 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
426 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
427 if (message_arena != submessage_arena) {
428 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
429 message_arena,
app, submessage_arena);
431 _impl_._has_bits_[0] |= 0x00000001u;
433 _impl_._has_bits_[0] &= ~0x00000001u;
440inline bool TerminateConfig::_internal_has_interprocess()
const {
441 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
442 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
446 return _internal_has_interprocess();
448inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& TerminateConfig::_internal_interprocess()
const {
449 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
455 return _internal_interprocess();
459 if (GetArenaForAllocation() ==
nullptr) {
460 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
464 _impl_._has_bits_[0] |= 0x00000002u;
466 _impl_._has_bits_[0] &= ~0x00000002u;
471 _impl_._has_bits_[0] &= ~0x00000002u;
473 _impl_.interprocess_ =
nullptr;
474#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
475 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
476 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
477 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
479 if (GetArenaForAllocation() !=
nullptr) {
480 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
487 _impl_._has_bits_[0] &= ~0x00000002u;
489 _impl_.interprocess_ =
nullptr;
492inline ::goby::zeromq::protobuf::InterProcessPortalConfig* TerminateConfig::_internal_mutable_interprocess() {
493 _impl_._has_bits_[0] |= 0x00000002u;
494 if (
_impl_.interprocess_ ==
nullptr) {
498 return _impl_.interprocess_;
506 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
507 if (message_arena ==
nullptr) {
508 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
511 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
512 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
513 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
interprocess));
514 if (message_arena != submessage_arena) {
515 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
518 _impl_._has_bits_[0] |= 0x00000002u;
520 _impl_._has_bits_[0] &= ~0x00000002u;
527inline int TerminateConfig::_internal_target_name_size()
const {
528 return _impl_.target_name_.size();
531 return _internal_target_name_size();
534 _impl_.target_name_.Clear();
537 std::string* _s = _internal_add_target_name();
541inline const std::string& TerminateConfig::_internal_target_name(
int index)
const {
542 return _impl_.target_name_.Get(index);
546 return _internal_target_name(index);
550 return _impl_.target_name_.Mutable(index);
553 _impl_.target_name_.Mutable(index)->assign(value);
557 _impl_.target_name_.Mutable(index)->assign(std::move(value));
561 GOOGLE_DCHECK(value !=
nullptr);
562 _impl_.target_name_.Mutable(index)->assign(value);
566 _impl_.target_name_.Mutable(index)->assign(
567 reinterpret_cast<const char*
>(value), size);
570inline std::string* TerminateConfig::_internal_add_target_name() {
571 return _impl_.target_name_.Add();
574 _impl_.target_name_.Add()->assign(value);
578 _impl_.target_name_.Add(std::move(value));
582 GOOGLE_DCHECK(value !=
nullptr);
583 _impl_.target_name_.Add()->assign(value);
587 _impl_.target_name_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
590inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
593 return _impl_.target_name_;
595inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
598 return &
_impl_.target_name_;
602inline int TerminateConfig::_internal_target_pid_size()
const {
603 return _impl_.target_pid_.size();
606 return _internal_target_pid_size();
609 _impl_.target_pid_.Clear();
611inline uint32_t TerminateConfig::_internal_target_pid(
int index)
const {
612 return _impl_.target_pid_.Get(index);
616 return _internal_target_pid(index);
619 _impl_.target_pid_.Set(index, value);
622inline void TerminateConfig::_internal_add_target_pid(uint32_t value) {
623 _impl_.target_pid_.Add(value);
626 _internal_add_target_pid(value);
629inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
630TerminateConfig::_internal_target_pid()
const {
631 return _impl_.target_pid_;
633inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
636 return _internal_target_pid();
638inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
639TerminateConfig::_internal_mutable_target_pid() {
640 return &
_impl_.target_pid_;
642inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
645 return _internal_mutable_target_pid();
649inline bool TerminateConfig::_internal_has_response_timeout()
const {
650 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
654 return _internal_has_response_timeout();
657 _impl_.response_timeout_ = 10;
658 _impl_._has_bits_[0] &= ~0x00000004u;
660inline float TerminateConfig::_internal_response_timeout()
const {
661 return _impl_.response_timeout_;
665 return _internal_response_timeout();
667inline void TerminateConfig::_internal_set_response_timeout(
float value) {
668 _impl_._has_bits_[0] |= 0x00000004u;
669 _impl_.response_timeout_ = value;
672 _internal_set_response_timeout(value);
677 #pragma GCC diagnostic pop
689#include <google/protobuf/port_undef.inc>
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
boost::units::quantity< response_timeout_unit, float > response_timeout_with_units() const
TerminateConfig & operator=(const TerminateConfig &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void UnsafeArenaSwap(TerminateConfig *other)
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
void Swap(TerminateConfig *other)
::goby::middleware::protobuf::AppConfig * mutable_app()
void set_target_name(int index, const std::string &value)
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
void CopyFrom(const TerminateConfig &from)
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > & target_pid() const
~TerminateConfig() override
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void clear_interprocess()
void set_response_timeout_with_units(Quantity value_w_units)
bool IsInitialized() const final
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > * mutable_target_pid()
void set_response_timeout(float value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
size_t ByteSizeLong() const final
friend void swap(TerminateConfig &a, TerminateConfig &b)
bool has_response_timeout() const
void clear_response_timeout()
TerminateConfig & operator=(TerminateConfig &&from) noexcept
int GetCachedSize() const final
float response_timeout() const
int target_pid_size() const
std::string * add_target_name()
TerminateConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
void add_target_pid(uint32_t value)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type response_timeout_dimension
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_target_pid(int index, uint32_t value)
static constexpr int kIndexInFileMessages
int target_name_size() const
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
TerminateConfig(TerminateConfig &&from) noexcept
static const TerminateConfig * internal_default_instance()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void MergeFrom(const TerminateConfig &from)
static const TerminateConfig & default_instance()
static const ClassData _class_data_
TerminateConfig(const TerminateConfig &from)
Quantity response_timeout_with_units() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & target_name() const
boost::units::unit< response_timeout_dimension, boost::units::si::system > response_timeout_unit
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_target_name()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
@ kInterprocessFieldNumber
@ kResponseTimeoutFieldNumber
PROTOBUF_CONSTEXPR TerminateConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
TerminateConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::goby::middleware::protobuf::AppConfig & app() const
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
bool has_interprocess() const
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::goby::zeromq::protobuf::InterProcessPortalConfig * Arena::CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig >(Arena *)
TerminateConfigDefaultTypeInternal _TerminateConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fterminate_5fconfig_2eproto