4 #ifndef PROTOBUF_INCLUDED_bin_2ffailure_5freporter_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2ffailure_5freporter_2fconfig_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>
23 #include <google/protobuf/arena.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>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "goby/middleware/protobuf/app_config.pb.h"
35 #include "goby/zeromq/protobuf/interprocess_config.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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2ffailure_5freporter_2fconfig_2eproto
47 static const ::google::protobuf::internal::ParseTableField
entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
49 static const ::google::protobuf::internal::ParseTable
schema[1];
52 static const ::google::protobuf::uint32
offsets[];
58 class FailureReporter;
59 class FailureReporterDefaultTypeInternal;
82 return ::google::protobuf::internal::NameOfEnum(
87 return ::google::protobuf::internal::ParseNamedEnum<FailureReporter_State>(
106 *
this = ::std::move(from);
110 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
111 if (
this != &from) InternalSwap(&from);
119 return _internal_metadata_.unknown_fields();
122 return _internal_metadata_.mutable_unknown_fields();
125 static const ::google::protobuf::Descriptor*
descriptor();
144 return CreateMaybeMessage<FailureReporter>(NULL);
148 return CreateMaybeMessage<FailureReporter>(arena);
150 void CopyFrom(const ::google::protobuf::Message& from)
final;
151 void MergeFrom(const ::google::protobuf::Message& from)
final;
159 ::
google::protobuf::io::CodedInputStream* input) final;
161 ::
google::protobuf::io::CodedOutputStream* output) const final;
163 bool deterministic, ::
google::protobuf::uint8* target) const final;
169 void SetCachedSize(
int size)
const final;
172 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
175 inline void* MaybeArenaPtr()
const {
180 ::google::protobuf::Metadata
GetMetadata() const final;
198 static inline const ::google::protobuf::EnumDescriptor*
216 const ::std::string&
log_dir()
const;
262 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
264 const ::goby::middleware::protobuf::AppConfig&
app()
const;
265 ::goby::middleware::protobuf::AppConfig*
release_app();
266 ::goby::middleware::protobuf::AppConfig*
mutable_app();
274 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
276 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
305 void clear_has_app();
306 void set_has_interprocess();
307 void clear_has_interprocess();
308 void set_has_log_dir();
309 void clear_has_log_dir();
310 void set_has_state();
311 void clear_has_state();
312 void set_has_error_code();
313 void clear_has_error_code();
314 void set_has_service_name();
315 void clear_has_service_name();
316 void set_has_service_result();
317 void clear_has_service_result();
318 void set_has_num_attempts();
319 void clear_has_num_attempts();
322 size_t RequiredFieldsByteSizeFallback()
const;
324 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
325 ::google::protobuf::internal::HasBits<1> _has_bits_;
326 mutable ::google::protobuf::internal::CachedSize _cached_size_;
327 ::google::protobuf::internal::ArenaStringPtr log_dir_;
328 ::google::protobuf::internal::ArenaStringPtr service_name_;
329 ::google::protobuf::internal::ArenaStringPtr service_result_;
330 ::goby::middleware::protobuf::AppConfig* app_;
331 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
334 ::google::protobuf::int32 num_attempts_;
335 friend struct ::protobuf_bin_2ffailure_5freporter_2fconfig_2eproto::TableStruct;
343 #pragma GCC diagnostic push
344 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
350 return (_has_bits_[0] & 0x00000008u) != 0;
352 inline void FailureReporter::set_has_app() {
353 _has_bits_[0] |= 0x00000008u;
355 inline void FailureReporter::clear_has_app() {
356 _has_bits_[0] &= ~0x00000008u;
358 inline const ::goby::middleware::protobuf::AppConfig& FailureReporter::_internal_app()
const {
362 const ::goby::middleware::protobuf::AppConfig* p = app_;
364 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
365 &::goby::middleware::protobuf::_AppConfig_default_instance_);
370 ::goby::middleware::protobuf::AppConfig* temp = app_;
377 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
384 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
385 if (message_arena == NULL) {
386 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
389 ::google::protobuf::Arena* submessage_arena = NULL;
390 if (message_arena != submessage_arena) {
391 app = ::google::protobuf::internal::GetOwnedMessage(
392 message_arena,
app, submessage_arena);
404 return (_has_bits_[0] & 0x00000010u) != 0;
406 inline void FailureReporter::set_has_interprocess() {
407 _has_bits_[0] |= 0x00000010u;
409 inline void FailureReporter::clear_has_interprocess() {
410 _has_bits_[0] &= ~0x00000010u;
412 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& FailureReporter::_internal_interprocess()
const {
413 return *interprocess_;
416 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
418 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
419 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
423 clear_has_interprocess();
424 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
425 interprocess_ = NULL;
429 set_has_interprocess();
430 if (interprocess_ == NULL) {
431 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
435 return interprocess_;
438 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
439 if (message_arena == NULL) {
440 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
443 ::google::protobuf::Arena* submessage_arena = NULL;
444 if (message_arena != submessage_arena) {
445 interprocess = ::google::protobuf::internal::GetOwnedMessage(
448 set_has_interprocess();
450 clear_has_interprocess();
458 return (_has_bits_[0] & 0x00000001u) != 0;
460 inline void FailureReporter::set_has_log_dir() {
461 _has_bits_[0] |= 0x00000001u;
463 inline void FailureReporter::clear_has_log_dir() {
464 _has_bits_[0] &= ~0x00000001u;
467 log_dir_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
472 return log_dir_.GetNoArena();
476 log_dir_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
483 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
488 GOOGLE_DCHECK(value != NULL);
490 log_dir_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
495 log_dir_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
496 ::std::string(
reinterpret_cast<const char*
>(value), size));
502 return log_dir_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
510 return log_dir_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
518 log_dir_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
log_dir);
524 return (_has_bits_[0] & 0x00000040u) != 0;
526 inline void FailureReporter::set_has_state() {
527 _has_bits_[0] |= 0x00000040u;
529 inline void FailureReporter::clear_has_state() {
530 _has_bits_[0] &= ~0x00000040u;
549 return (_has_bits_[0] & 0x00000020u) != 0;
551 inline void FailureReporter::set_has_error_code() {
552 _has_bits_[0] |= 0x00000020u;
554 inline void FailureReporter::clear_has_error_code() {
555 _has_bits_[0] &= ~0x00000020u;
559 clear_has_error_code();
567 set_has_error_code();
574 return (_has_bits_[0] & 0x00000002u) != 0;
576 inline void FailureReporter::set_has_service_name() {
577 _has_bits_[0] |= 0x00000002u;
579 inline void FailureReporter::clear_has_service_name() {
580 _has_bits_[0] &= ~0x00000002u;
583 service_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
584 clear_has_service_name();
588 return service_name_.GetNoArena();
591 set_has_service_name();
592 service_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
597 set_has_service_name();
598 service_name_.SetNoArena(
599 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
604 GOOGLE_DCHECK(value != NULL);
605 set_has_service_name();
606 service_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
610 set_has_service_name();
611 service_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
612 ::std::string(
reinterpret_cast<const char*
>(value), size));
616 set_has_service_name();
618 return service_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
625 clear_has_service_name();
626 return service_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
630 set_has_service_name();
632 clear_has_service_name();
634 service_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
service_name);
640 return (_has_bits_[0] & 0x00000004u) != 0;
642 inline void FailureReporter::set_has_service_result() {
643 _has_bits_[0] |= 0x00000004u;
645 inline void FailureReporter::clear_has_service_result() {
646 _has_bits_[0] &= ~0x00000004u;
649 service_result_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
650 clear_has_service_result();
654 return service_result_.GetNoArena();
657 set_has_service_result();
658 service_result_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
663 set_has_service_result();
664 service_result_.SetNoArena(
665 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
670 GOOGLE_DCHECK(value != NULL);
671 set_has_service_result();
672 service_result_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
676 set_has_service_result();
677 service_result_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
678 ::std::string(
reinterpret_cast<const char*
>(value), size));
682 set_has_service_result();
684 return service_result_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
691 clear_has_service_result();
692 return service_result_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
696 set_has_service_result();
698 clear_has_service_result();
700 service_result_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
service_result);
706 return (_has_bits_[0] & 0x00000080u) != 0;
708 inline void FailureReporter::set_has_num_attempts() {
709 _has_bits_[0] |= 0x00000080u;
711 inline void FailureReporter::clear_has_num_attempts() {
712 _has_bits_[0] &= ~0x00000080u;
716 clear_has_num_attempts();
720 return num_attempts_;
723 set_has_num_attempts();
724 num_attempts_ = value;
729 #pragma GCC diagnostic pop
742 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::config::FailureReporter_State>() {
751 #endif // PROTOBUF_INCLUDED_bin_2ffailure_5freporter_2fconfig_2eproto