4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fterminate_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fterminate_5fconfig_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>
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>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2fterminate_5fconfig_2eproto
49 static const ::google::protobuf::internal::ParseTableField
entries[];
50 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
51 static const ::google::protobuf::internal::ParseTable
schema[1];
62 class TerminateConfig;
63 class TerminateConfigDefaultTypeInternal;
95 *
this = ::std::move(from);
99 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
100 if (
this != &from) InternalSwap(&from);
108 return _internal_metadata_.unknown_fields();
111 return _internal_metadata_.mutable_unknown_fields();
114 static const ::google::protobuf::Descriptor*
descriptor();
133 return CreateMaybeMessage<TerminateConfig>(NULL);
137 return CreateMaybeMessage<TerminateConfig>(arena);
139 void CopyFrom(const ::google::protobuf::Message& from)
final;
140 void MergeFrom(const ::google::protobuf::Message& from)
final;
148 ::
google::protobuf::io::CodedInputStream* input) final;
150 ::
google::protobuf::io::CodedOutputStream* output) const final;
152 bool deterministic, ::
google::protobuf::uint8* target) const final;
158 void SetCachedSize(
int size)
const final;
161 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
164 inline void* MaybeArenaPtr()
const {
194 const ::google::protobuf::RepeatedPtrField< ::std::string>&
target_name()
const;
204 const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
214 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
216 const ::goby::middleware::protobuf::AppConfig&
app()
const;
226 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
228 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
244 template<
typename Quantity >
246 {
set_response_timeout(boost::units::quantity<response_timeout_unit,float >(value_w_units).value() ); };
248 template<
typename Quantity >
253 {
return response_timeout_with_units<boost::units::quantity< response_timeout_unit,float > >(); };
258 void clear_has_app();
259 void set_has_interprocess();
260 void clear_has_interprocess();
261 void set_has_response_timeout();
262 void clear_has_response_timeout();
264 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
265 ::google::protobuf::internal::HasBits<1> _has_bits_;
266 mutable ::google::protobuf::internal::CachedSize _cached_size_;
271 float response_timeout_;
272 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2fterminate_5fconfig_2eproto::TableStruct;
280 #pragma GCC diagnostic push
281 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
287 return (_has_bits_[0] & 0x00000001u) != 0;
289 inline void TerminateConfig::set_has_app() {
290 _has_bits_[0] |= 0x00000001u;
292 inline void TerminateConfig::clear_has_app() {
293 _has_bits_[0] &= ~0x00000001u;
295 inline const ::goby::middleware::protobuf::AppConfig& TerminateConfig::_internal_app()
const {
299 const ::goby::middleware::protobuf::AppConfig* p = app_;
314 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
322 if (message_arena == NULL) {
327 if (message_arena != submessage_arena) {
328 app = ::google::protobuf::internal::GetOwnedMessage(
329 message_arena,
app, submessage_arena);
341 return (_has_bits_[0] & 0x00000002u) != 0;
343 inline void TerminateConfig::set_has_interprocess() {
344 _has_bits_[0] |= 0x00000002u;
346 inline void TerminateConfig::clear_has_interprocess() {
347 _has_bits_[0] &= ~0x00000002u;
349 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& TerminateConfig::_internal_interprocess()
const {
350 return *interprocess_;
353 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
360 clear_has_interprocess();
362 interprocess_ = NULL;
366 set_has_interprocess();
367 if (interprocess_ == NULL) {
368 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
372 return interprocess_;
376 if (message_arena == NULL) {
381 if (message_arena != submessage_arena) {
382 interprocess = ::google::protobuf::internal::GetOwnedMessage(
385 set_has_interprocess();
387 clear_has_interprocess();
395 return target_name_.size();
398 target_name_.Clear();
402 return target_name_.Get(index);
406 return target_name_.Mutable(index);
410 target_name_.Mutable(index)->assign(value);
415 target_name_.Mutable(index)->assign(std::move(value));
419 GOOGLE_DCHECK(value != NULL);
420 target_name_.Mutable(index)->assign(value);
424 target_name_.Mutable(index)->assign(
425 reinterpret_cast<const char*
>(value), size);
430 return target_name_.Add();
433 target_name_.Add()->assign(value);
438 target_name_.Add(std::move(value));
443 GOOGLE_DCHECK(value != NULL);
444 target_name_.Add()->assign(value);
448 target_name_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
451 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
456 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
459 return &target_name_;
464 return target_pid_.size();
471 return target_pid_.Get(index);
474 target_pid_.Set(index, value);
478 target_pid_.Add(value);
481 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
486 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
494 return (_has_bits_[0] & 0x00000004u) != 0;
496 inline void TerminateConfig::set_has_response_timeout() {
497 _has_bits_[0] |= 0x00000004u;
499 inline void TerminateConfig::clear_has_response_timeout() {
500 _has_bits_[0] &= ~0x00000004u;
503 response_timeout_ = 10;
504 clear_has_response_timeout();
508 return response_timeout_;
511 set_has_response_timeout();
512 response_timeout_ = value;
517 #pragma GCC diagnostic pop
529 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fterminate_5fconfig_2eproto