4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fcoroner_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_2fcoroner_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];
63 class CoronerConfigDefaultTypeInternal;
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<CoronerConfig>(NULL);
137 return CreateMaybeMessage<CoronerConfig>(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>&
expected_name()
const;
217 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
219 const ::goby::middleware::protobuf::AppConfig&
app()
const;
229 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
231 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
261 template<
typename Quantity >
263 {
set_request_interval(boost::units::quantity<request_interval_unit,float >(value_w_units).value() ); };
265 template<
typename Quantity >
270 {
return request_interval_with_units<boost::units::quantity< request_interval_unit,float > >(); };
276 template<
typename Quantity >
278 {
set_response_timeout(boost::units::quantity<response_timeout_unit,float >(value_w_units).value() ); };
280 template<
typename Quantity >
285 {
return response_timeout_with_units<boost::units::quantity< response_timeout_unit,float > >(); };
290 void clear_has_app();
291 void set_has_interprocess();
292 void clear_has_interprocess();
293 void set_has_request_interval();
294 void clear_has_request_interval();
295 void set_has_response_timeout();
296 void clear_has_response_timeout();
297 void set_has_auto_add_new_apps();
298 void clear_has_auto_add_new_apps();
299 void set_has_report_file();
300 void clear_has_report_file();
302 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
303 ::google::protobuf::internal::HasBits<1> _has_bits_;
304 mutable ::google::protobuf::internal::CachedSize _cached_size_;
306 ::google::protobuf::internal::ArenaStringPtr report_file_;
309 bool auto_add_new_apps_;
310 float request_interval_;
311 float response_timeout_;
312 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto::TableStruct;
320 #pragma GCC diagnostic push
321 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
327 return (_has_bits_[0] & 0x00000002u) != 0;
329 inline void CoronerConfig::set_has_app() {
330 _has_bits_[0] |= 0x00000002u;
332 inline void CoronerConfig::clear_has_app() {
333 _has_bits_[0] &= ~0x00000002u;
335 inline const ::goby::middleware::protobuf::AppConfig& CoronerConfig::_internal_app()
const {
339 const ::goby::middleware::protobuf::AppConfig* p = app_;
354 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
362 if (message_arena == NULL) {
367 if (message_arena != submessage_arena) {
368 app = ::google::protobuf::internal::GetOwnedMessage(
369 message_arena,
app, submessage_arena);
381 return (_has_bits_[0] & 0x00000004u) != 0;
383 inline void CoronerConfig::set_has_interprocess() {
384 _has_bits_[0] |= 0x00000004u;
386 inline void CoronerConfig::clear_has_interprocess() {
387 _has_bits_[0] &= ~0x00000004u;
389 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& CoronerConfig::_internal_interprocess()
const {
390 return *interprocess_;
393 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
400 clear_has_interprocess();
402 interprocess_ = NULL;
406 set_has_interprocess();
407 if (interprocess_ == NULL) {
408 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
412 return interprocess_;
416 if (message_arena == NULL) {
421 if (message_arena != submessage_arena) {
422 interprocess = ::google::protobuf::internal::GetOwnedMessage(
425 set_has_interprocess();
427 clear_has_interprocess();
435 return expected_name_.size();
438 expected_name_.Clear();
442 return expected_name_.Get(index);
446 return expected_name_.Mutable(index);
450 expected_name_.Mutable(index)->assign(value);
455 expected_name_.Mutable(index)->assign(std::move(value));
459 GOOGLE_DCHECK(value != NULL);
460 expected_name_.Mutable(index)->assign(value);
464 expected_name_.Mutable(index)->assign(
465 reinterpret_cast<const char*
>(value), size);
470 return expected_name_.Add();
473 expected_name_.Add()->assign(value);
478 expected_name_.Add(std::move(value));
483 GOOGLE_DCHECK(value != NULL);
484 expected_name_.Add()->assign(value);
488 expected_name_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
491 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
494 return expected_name_;
496 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
499 return &expected_name_;
504 return (_has_bits_[0] & 0x00000010u) != 0;
506 inline void CoronerConfig::set_has_request_interval() {
507 _has_bits_[0] |= 0x00000010u;
509 inline void CoronerConfig::clear_has_request_interval() {
510 _has_bits_[0] &= ~0x00000010u;
513 request_interval_ = 10;
514 clear_has_request_interval();
518 return request_interval_;
521 set_has_request_interval();
522 request_interval_ = value;
528 return (_has_bits_[0] & 0x00000020u) != 0;
530 inline void CoronerConfig::set_has_response_timeout() {
531 _has_bits_[0] |= 0x00000020u;
533 inline void CoronerConfig::clear_has_response_timeout() {
534 _has_bits_[0] &= ~0x00000020u;
537 response_timeout_ = 5;
538 clear_has_response_timeout();
542 return response_timeout_;
545 set_has_response_timeout();
546 response_timeout_ = value;
552 return (_has_bits_[0] & 0x00000008u) != 0;
554 inline void CoronerConfig::set_has_auto_add_new_apps() {
555 _has_bits_[0] |= 0x00000008u;
557 inline void CoronerConfig::clear_has_auto_add_new_apps() {
558 _has_bits_[0] &= ~0x00000008u;
561 auto_add_new_apps_ =
false;
562 clear_has_auto_add_new_apps();
566 return auto_add_new_apps_;
569 set_has_auto_add_new_apps();
570 auto_add_new_apps_ = value;
576 return (_has_bits_[0] & 0x00000001u) != 0;
578 inline void CoronerConfig::set_has_report_file() {
579 _has_bits_[0] |= 0x00000001u;
581 inline void CoronerConfig::clear_has_report_file() {
582 _has_bits_[0] &= ~0x00000001u;
586 clear_has_report_file();
590 return report_file_.GetNoArena();
593 set_has_report_file();
599 set_has_report_file();
600 report_file_.SetNoArena(
606 GOOGLE_DCHECK(value != NULL);
607 set_has_report_file();
612 set_has_report_file();
614 ::std::string(
reinterpret_cast<const char*
>(value), size));
618 set_has_report_file();
627 clear_has_report_file();
632 set_has_report_file();
634 clear_has_report_file();
641 #pragma GCC diagnostic pop
653 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto