4 #ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2ffailure_5freporter_2fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_bin_2ffailure_5freporter_2fconfig_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include "goby/middleware/protobuf/app_config.pb.h"
37 #include "goby/zeromq/protobuf/interprocess_config.pb.h"
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.hpp>
44 #include <google/protobuf/port_def.inc>
45 #define PROTOBUF_INTERNAL_EXPORT_bin_2ffailure_5freporter_2fconfig_2eproto
46 PROTOBUF_NAMESPACE_OPEN
50 PROTOBUF_NAMESPACE_CLOSE
54 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
62 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
67 class FailureReporter;
68 class FailureReporterDefaultTypeInternal;
72 PROTOBUF_NAMESPACE_OPEN
73 template<> ::jaiabot::config::FailureReporter* Arena::CreateMaybeMessage<::jaiabot::config::FailureReporter>(Arena*);
74 PROTOBUF_NAMESPACE_CLOSE
90 static_assert(::std::is_same<T, FailureReporter_State>::value ||
91 ::std::is_integral<T>::value,
92 "Incorrect type passed to function FailureReporter_State_Name.");
93 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
98 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FailureReporter_State>(
103 class FailureReporter PROTOBUF_FINAL :
104 public ::PROTOBUF_NAMESPACE_ID::Message {
111 : FailureReporter() {
112 *
this = ::std::move(from);
115 inline FailureReporter&
operator=(
const FailureReporter& from) {
119 inline FailureReporter&
operator=(FailureReporter&& from) noexcept {
120 if (GetArena() == from.GetArena()) {
121 if (
this != &from) InternalSwap(&from);
129 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
132 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
135 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
136 return GetDescriptor();
139 return GetMetadataStatic().descriptor;
142 return GetMetadataStatic().reflection;
148 return reinterpret_cast<const FailureReporter*
>(
151 static constexpr
int kIndexInFileMessages =
154 friend void swap(FailureReporter& a, FailureReporter& b) {
157 inline void Swap(FailureReporter* other) {
158 if (other ==
this)
return;
159 if (GetArena() == other->GetArena()) {
162 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
166 if (other ==
this)
return;
167 GOOGLE_DCHECK(GetArena() == other->GetArena());
173 inline FailureReporter*
New() const final {
174 return CreateMaybeMessage<FailureReporter>(
nullptr);
177 FailureReporter*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
178 return CreateMaybeMessage<FailureReporter>(arena);
180 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
181 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
184 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
185 bool IsInitialized() const final;
187 size_t ByteSizeLong() const final;
188 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
189 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
190 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
191 int GetCachedSize() const final {
return _cached_size_.Get(); }
194 inline void SharedCtor();
195 inline void SharedDtor();
196 void SetCachedSize(
int size)
const final;
197 void InternalSwap(FailureReporter* other);
198 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
199 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
200 return "jaiabot.config.FailureReporter";
205 static void ArenaDtor(
void*
object);
206 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
211 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
232 static constexpr
int State_ARRAYSIZE =
234 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
239 static inline const std::string&
State_Name(T enum_t_value) {
240 static_assert(::std::is_same<T, State>::value ||
241 ::std::is_integral<T>::value,
242 "Incorrect type passed to function State_Name.");
253 kLogDirFieldNumber = 9,
254 kServiceNameFieldNumber = 12,
255 kServiceResultFieldNumber = 13,
257 kInterprocessFieldNumber = 2,
258 kErrorCodeFieldNumber = 11,
259 kStateFieldNumber = 10,
260 kNumAttemptsFieldNumber = 14,
265 bool _internal_has_log_dir()
const;
276 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
277 " string fields are deprecated and will be removed in a"
279 std::
string* unsafe_arena_release_log_dir();
280 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
281 "
string fields are deprecated and will be removed in a"
283 void unsafe_arena_set_allocated_log_dir(
284 std::
string* log_dir);
286 const std::
string& _internal_log_dir() const;
287 void _internal_set_log_dir(const std::
string& value);
288 std::
string* _internal_mutable_log_dir();
292 bool has_service_name() const;
294 bool _internal_has_service_name() const;
296 void clear_service_name();
297 const std::
string& service_name() const;
298 void set_service_name(const std::
string& value);
299 void set_service_name(std::
string&& value);
300 void set_service_name(const
char* value);
301 void set_service_name(const
char* value,
size_t size);
302 std::
string* mutable_service_name();
303 std::
string* release_service_name();
304 void set_allocated_service_name(std::
string* service_name);
305 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
306 "
string fields are deprecated and will be removed in a"
308 std::
string* unsafe_arena_release_service_name();
309 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
310 "
string fields are deprecated and will be removed in a"
312 void unsafe_arena_set_allocated_service_name(
313 std::
string* service_name);
315 const std::
string& _internal_service_name() const;
316 void _internal_set_service_name(const std::
string& value);
317 std::
string* _internal_mutable_service_name();
321 bool has_service_result() const;
323 bool _internal_has_service_result() const;
325 void clear_service_result();
326 const std::
string& service_result() const;
327 void set_service_result(const std::
string& value);
328 void set_service_result(std::
string&& value);
329 void set_service_result(const
char* value);
330 void set_service_result(const
char* value,
size_t size);
331 std::
string* mutable_service_result();
332 std::
string* release_service_result();
333 void set_allocated_service_result(std::
string* service_result);
334 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
335 "
string fields are deprecated and will be removed in a"
337 std::
string* unsafe_arena_release_service_result();
338 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
339 "
string fields are deprecated and will be removed in a"
341 void unsafe_arena_set_allocated_service_result(
342 std::
string* service_result);
344 const std::
string& _internal_service_result() const;
345 void _internal_set_service_result(const std::
string& value);
346 std::
string* _internal_mutable_service_result();
350 bool has_app() const;
352 bool _internal_has_app() const;
355 const ::
goby::middleware::protobuf::AppConfig& app() const;
356 ::
goby::middleware::protobuf::AppConfig* release_app();
357 ::
goby::middleware::protobuf::AppConfig* mutable_app();
358 void set_allocated_app(::
goby::middleware::protobuf::AppConfig* app);
360 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
361 ::
goby::middleware::protobuf::AppConfig* _internal_mutable_app();
363 void unsafe_arena_set_allocated_app(
364 ::
goby::middleware::protobuf::AppConfig* app);
365 ::
goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
368 bool has_interprocess() const;
370 bool _internal_has_interprocess() const;
372 void clear_interprocess();
373 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
374 ::
goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
375 ::
goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
376 void set_allocated_interprocess(::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
378 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
379 ::
goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
381 void unsafe_arena_set_allocated_interprocess(
382 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
383 ::
goby::zeromq::protobuf::InterProcessPortalConfig* unsafe_arena_release_interprocess();
386 bool has_error_code() const;
388 bool _internal_has_error_code() const;
390 void clear_error_code();
394 ::
jaiabot::protobuf::
Error _internal_error_code() const;
395 void _internal_set_error_code(::
jaiabot::protobuf::
Error value);
399 bool has_state() const;
401 bool _internal_has_state() const;
412 bool has_num_attempts() const;
414 bool _internal_has_num_attempts() const;
416 void clear_num_attempts();
417 ::PROTOBUF_NAMESPACE_ID::int32 num_attempts() const;
418 void set_num_attempts(::PROTOBUF_NAMESPACE_ID::int32 value);
420 ::PROTOBUF_NAMESPACE_ID::int32 _internal_num_attempts() const;
421 void _internal_set_num_attempts(::PROTOBUF_NAMESPACE_ID::int32 value);
429 size_t RequiredFieldsByteSizeFallback() const;
431 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
432 typedef
void InternalArenaConstructable_;
433 typedef
void DestructorSkippable_;
434 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
435 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
436 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr log_dir_;
437 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr service_name_;
438 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr service_result_;
439 ::
goby::middleware::protobuf::AppConfig* app_;
440 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
443 ::PROTOBUF_NAMESPACE_ID::int32 num_attempts_;
452 #pragma GCC diagnostic push
453 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
458 inline bool FailureReporter::_internal_has_app()
const {
459 bool value = (_has_bits_[0] & 0x00000008u) != 0;
460 PROTOBUF_ASSUME(!value || app_ !=
nullptr);
463 inline bool FailureReporter::has_app()
const {
464 return _internal_has_app();
466 inline const ::goby::middleware::protobuf::AppConfig& FailureReporter::_internal_app()
const {
467 const ::goby::middleware::protobuf::AppConfig* p = app_;
468 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
469 &::goby::middleware::protobuf::_AppConfig_default_instance_);
471 inline const ::goby::middleware::protobuf::AppConfig& FailureReporter::app()
const {
473 return _internal_app();
475 inline void FailureReporter::unsafe_arena_set_allocated_app(
476 ::goby::middleware::protobuf::AppConfig* app) {
477 if (GetArena() ==
nullptr) {
478 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
482 _has_bits_[0] |= 0x00000008u;
484 _has_bits_[0] &= ~0x00000008u;
488 inline ::goby::middleware::protobuf::AppConfig* FailureReporter::release_app() {
489 auto temp = unsafe_arena_release_app();
490 if (GetArena() !=
nullptr) {
491 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
495 inline ::goby::middleware::protobuf::AppConfig* FailureReporter::unsafe_arena_release_app() {
497 _has_bits_[0] &= ~0x00000008u;
498 ::goby::middleware::protobuf::AppConfig* temp = app_;
502 inline ::goby::middleware::protobuf::AppConfig* FailureReporter::_internal_mutable_app() {
503 _has_bits_[0] |= 0x00000008u;
504 if (app_ ==
nullptr) {
505 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
510 inline ::goby::middleware::protobuf::AppConfig* FailureReporter::mutable_app() {
512 return _internal_mutable_app();
514 inline void FailureReporter::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
515 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
516 if (message_arena ==
nullptr) {
517 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
520 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
521 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app)->GetArena();
522 if (message_arena != submessage_arena) {
523 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
524 message_arena, app, submessage_arena);
526 _has_bits_[0] |= 0x00000008u;
528 _has_bits_[0] &= ~0x00000008u;
535 inline bool FailureReporter::_internal_has_interprocess()
const {
536 bool value = (_has_bits_[0] & 0x00000010u) != 0;
537 PROTOBUF_ASSUME(!value || interprocess_ !=
nullptr);
540 inline bool FailureReporter::has_interprocess()
const {
541 return _internal_has_interprocess();
543 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& FailureReporter::_internal_interprocess()
const {
544 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
545 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
546 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
548 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& FailureReporter::interprocess()
const {
550 return _internal_interprocess();
552 inline void FailureReporter::unsafe_arena_set_allocated_interprocess(
553 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
554 if (GetArena() ==
nullptr) {
555 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess_);
557 interprocess_ = interprocess;
559 _has_bits_[0] |= 0x00000010u;
561 _has_bits_[0] &= ~0x00000010u;
565 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FailureReporter::release_interprocess() {
566 auto temp = unsafe_arena_release_interprocess();
567 if (GetArena() !=
nullptr) {
568 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
572 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FailureReporter::unsafe_arena_release_interprocess() {
574 _has_bits_[0] &= ~0x00000010u;
575 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
576 interprocess_ =
nullptr;
579 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FailureReporter::_internal_mutable_interprocess() {
580 _has_bits_[0] |= 0x00000010u;
581 if (interprocess_ ==
nullptr) {
582 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
585 return interprocess_;
587 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FailureReporter::mutable_interprocess() {
589 return _internal_mutable_interprocess();
591 inline void FailureReporter::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
592 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
593 if (message_arena ==
nullptr) {
594 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess_);
597 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
598 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess)->GetArena();
599 if (message_arena != submessage_arena) {
600 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
601 message_arena, interprocess, submessage_arena);
603 _has_bits_[0] |= 0x00000010u;
605 _has_bits_[0] &= ~0x00000010u;
607 interprocess_ = interprocess;
612 inline bool FailureReporter::_internal_has_log_dir()
const {
613 bool value = (_has_bits_[0] & 0x00000001u) != 0;
616 inline bool FailureReporter::has_log_dir()
const {
617 return _internal_has_log_dir();
619 inline void FailureReporter::clear_log_dir() {
620 log_dir_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
621 _has_bits_[0] &= ~0x00000001u;
623 inline const std::string& FailureReporter::log_dir()
const {
625 return _internal_log_dir();
627 inline void FailureReporter::set_log_dir(
const std::string& value) {
628 _internal_set_log_dir(value);
631 inline std::string* FailureReporter::mutable_log_dir() {
633 return _internal_mutable_log_dir();
635 inline const std::string& FailureReporter::_internal_log_dir()
const {
636 return log_dir_.Get();
638 inline void FailureReporter::_internal_set_log_dir(
const std::string& value) {
639 _has_bits_[0] |= 0x00000001u;
640 log_dir_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
642 inline void FailureReporter::set_log_dir(std::string&& value) {
643 _has_bits_[0] |= 0x00000001u;
645 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
648 inline void FailureReporter::set_log_dir(
const char* value) {
649 GOOGLE_DCHECK(value !=
nullptr);
650 _has_bits_[0] |= 0x00000001u;
651 log_dir_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
655 inline void FailureReporter::set_log_dir(
const char* value,
657 _has_bits_[0] |= 0x00000001u;
658 log_dir_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
659 reinterpret_cast<const char*
>(value), size), GetArena());
662 inline std::string* FailureReporter::_internal_mutable_log_dir() {
663 _has_bits_[0] |= 0x00000001u;
664 return log_dir_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
666 inline std::string* FailureReporter::release_log_dir() {
668 if (!_internal_has_log_dir()) {
671 _has_bits_[0] &= ~0x00000001u;
672 return log_dir_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
674 inline void FailureReporter::set_allocated_log_dir(std::string* log_dir) {
675 if (log_dir !=
nullptr) {
676 _has_bits_[0] |= 0x00000001u;
678 _has_bits_[0] &= ~0x00000001u;
680 log_dir_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), log_dir,
684 inline std::string* FailureReporter::unsafe_arena_release_log_dir() {
686 GOOGLE_DCHECK(GetArena() !=
nullptr);
687 _has_bits_[0] &= ~0x00000001u;
688 return log_dir_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
691 inline void FailureReporter::unsafe_arena_set_allocated_log_dir(
692 std::string* log_dir) {
693 GOOGLE_DCHECK(GetArena() !=
nullptr);
694 if (log_dir !=
nullptr) {
695 _has_bits_[0] |= 0x00000001u;
697 _has_bits_[0] &= ~0x00000001u;
699 log_dir_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
700 log_dir, GetArena());
705 inline bool FailureReporter::_internal_has_state()
const {
706 bool value = (_has_bits_[0] & 0x00000040u) != 0;
709 inline bool FailureReporter::has_state()
const {
710 return _internal_has_state();
712 inline void FailureReporter::clear_state() {
714 _has_bits_[0] &= ~0x00000040u;
721 return _internal_state();
725 _has_bits_[0] |= 0x00000040u;
729 _internal_set_state(value);
734 inline bool FailureReporter::_internal_has_error_code()
const {
735 bool value = (_has_bits_[0] & 0x00000020u) != 0;
738 inline bool FailureReporter::has_error_code()
const {
739 return _internal_has_error_code();
741 inline void FailureReporter::clear_error_code() {
743 _has_bits_[0] &= ~0x00000020u;
750 return _internal_error_code();
754 _has_bits_[0] |= 0x00000020u;
758 _internal_set_error_code(value);
763 inline bool FailureReporter::_internal_has_service_name()
const {
764 bool value = (_has_bits_[0] & 0x00000002u) != 0;
767 inline bool FailureReporter::has_service_name()
const {
768 return _internal_has_service_name();
770 inline void FailureReporter::clear_service_name() {
771 service_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
772 _has_bits_[0] &= ~0x00000002u;
774 inline const std::string& FailureReporter::service_name()
const {
776 return _internal_service_name();
778 inline void FailureReporter::set_service_name(
const std::string& value) {
779 _internal_set_service_name(value);
782 inline std::string* FailureReporter::mutable_service_name() {
784 return _internal_mutable_service_name();
786 inline const std::string& FailureReporter::_internal_service_name()
const {
787 return service_name_.Get();
789 inline void FailureReporter::_internal_set_service_name(
const std::string& value) {
790 _has_bits_[0] |= 0x00000002u;
791 service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
793 inline void FailureReporter::set_service_name(std::string&& value) {
794 _has_bits_[0] |= 0x00000002u;
796 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
799 inline void FailureReporter::set_service_name(
const char* value) {
800 GOOGLE_DCHECK(value !=
nullptr);
801 _has_bits_[0] |= 0x00000002u;
802 service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
806 inline void FailureReporter::set_service_name(
const char* value,
808 _has_bits_[0] |= 0x00000002u;
809 service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
810 reinterpret_cast<const char*
>(value), size), GetArena());
813 inline std::string* FailureReporter::_internal_mutable_service_name() {
814 _has_bits_[0] |= 0x00000002u;
815 return service_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
817 inline std::string* FailureReporter::release_service_name() {
819 if (!_internal_has_service_name()) {
822 _has_bits_[0] &= ~0x00000002u;
823 return service_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
825 inline void FailureReporter::set_allocated_service_name(std::string* service_name) {
826 if (service_name !=
nullptr) {
827 _has_bits_[0] |= 0x00000002u;
829 _has_bits_[0] &= ~0x00000002u;
831 service_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_name,
835 inline std::string* FailureReporter::unsafe_arena_release_service_name() {
837 GOOGLE_DCHECK(GetArena() !=
nullptr);
838 _has_bits_[0] &= ~0x00000002u;
839 return service_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
842 inline void FailureReporter::unsafe_arena_set_allocated_service_name(
843 std::string* service_name) {
844 GOOGLE_DCHECK(GetArena() !=
nullptr);
845 if (service_name !=
nullptr) {
846 _has_bits_[0] |= 0x00000002u;
848 _has_bits_[0] &= ~0x00000002u;
850 service_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
851 service_name, GetArena());
856 inline bool FailureReporter::_internal_has_service_result()
const {
857 bool value = (_has_bits_[0] & 0x00000004u) != 0;
860 inline bool FailureReporter::has_service_result()
const {
861 return _internal_has_service_result();
863 inline void FailureReporter::clear_service_result() {
864 service_result_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
865 _has_bits_[0] &= ~0x00000004u;
867 inline const std::string& FailureReporter::service_result()
const {
869 return _internal_service_result();
871 inline void FailureReporter::set_service_result(
const std::string& value) {
872 _internal_set_service_result(value);
875 inline std::string* FailureReporter::mutable_service_result() {
877 return _internal_mutable_service_result();
879 inline const std::string& FailureReporter::_internal_service_result()
const {
880 return service_result_.Get();
882 inline void FailureReporter::_internal_set_service_result(
const std::string& value) {
883 _has_bits_[0] |= 0x00000004u;
884 service_result_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
886 inline void FailureReporter::set_service_result(std::string&& value) {
887 _has_bits_[0] |= 0x00000004u;
889 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
892 inline void FailureReporter::set_service_result(
const char* value) {
893 GOOGLE_DCHECK(value !=
nullptr);
894 _has_bits_[0] |= 0x00000004u;
895 service_result_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
899 inline void FailureReporter::set_service_result(
const char* value,
901 _has_bits_[0] |= 0x00000004u;
902 service_result_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
903 reinterpret_cast<const char*
>(value), size), GetArena());
906 inline std::string* FailureReporter::_internal_mutable_service_result() {
907 _has_bits_[0] |= 0x00000004u;
908 return service_result_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
910 inline std::string* FailureReporter::release_service_result() {
912 if (!_internal_has_service_result()) {
915 _has_bits_[0] &= ~0x00000004u;
916 return service_result_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
918 inline void FailureReporter::set_allocated_service_result(std::string* service_result) {
919 if (service_result !=
nullptr) {
920 _has_bits_[0] |= 0x00000004u;
922 _has_bits_[0] &= ~0x00000004u;
924 service_result_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_result,
928 inline std::string* FailureReporter::unsafe_arena_release_service_result() {
930 GOOGLE_DCHECK(GetArena() !=
nullptr);
931 _has_bits_[0] &= ~0x00000004u;
932 return service_result_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
935 inline void FailureReporter::unsafe_arena_set_allocated_service_result(
936 std::string* service_result) {
937 GOOGLE_DCHECK(GetArena() !=
nullptr);
938 if (service_result !=
nullptr) {
939 _has_bits_[0] |= 0x00000004u;
941 _has_bits_[0] &= ~0x00000004u;
943 service_result_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
944 service_result, GetArena());
949 inline bool FailureReporter::_internal_has_num_attempts()
const {
950 bool value = (_has_bits_[0] & 0x00000080u) != 0;
953 inline bool FailureReporter::has_num_attempts()
const {
954 return _internal_has_num_attempts();
956 inline void FailureReporter::clear_num_attempts() {
958 _has_bits_[0] &= ~0x00000080u;
960 inline ::PROTOBUF_NAMESPACE_ID::int32 FailureReporter::_internal_num_attempts()
const {
961 return num_attempts_;
963 inline ::PROTOBUF_NAMESPACE_ID::int32 FailureReporter::num_attempts()
const {
965 return _internal_num_attempts();
967 inline void FailureReporter::_internal_set_num_attempts(::PROTOBUF_NAMESPACE_ID::int32 value) {
968 _has_bits_[0] |= 0x00000080u;
969 num_attempts_ = value;
971 inline void FailureReporter::set_num_attempts(::PROTOBUF_NAMESPACE_ID::int32 value) {
972 _internal_set_num_attempts(value);
977 #pragma GCC diagnostic pop
985 PROTOBUF_NAMESPACE_OPEN
989 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::config::FailureReporter_State>() {
993 PROTOBUF_NAMESPACE_CLOSE
997 #include <google/protobuf/port_undef.inc>
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static bool State_Parse(const std::string &name, State *value)
virtual ~FailureReporter()
FailureReporter(FailureReporter &&from) noexcept
static const FailureReporter & default_instance()
const std::string & log_dir() const
void set_log_dir(const std::string &value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
std::string * mutable_log_dir()
static void InitAsDefaultInstance()
void set_log_dir(const char *value)
void set_log_dir(const char *value, size_t size)
void CopyFrom(const FailureReporter &from)
static const FailureReporter * internal_default_instance()
void set_log_dir(std::string &&value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
FailureReporter_State State
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_allocated_log_dir(std::string *log_dir)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
FailureReporter(const FailureReporter &from)
static bool State_IsValid(int value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void UnsafeArenaSwap(FailureReporter *other)
FailureReporter(::PROTOBUF_NAMESPACE_ID::Arena *arena)
FailureReporter * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void Swap(FailureReporter *other)
friend void swap(FailureReporter &a, FailureReporter &b)
static const std::string & State_Name(T enum_t_value)
FailureReporter * New() const final
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * State_descriptor()
FailureReporter & operator=(FailureReporter &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * release_log_dir()
void MergeFrom(const FailureReporter &from)
FailureReporter & operator=(const FailureReporter &from)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2ffailure_5freporter_2fconfig_2eproto
bool FailureReporter_State_Parse(const std::string &name, FailureReporter_State *value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FailureReporter_State_descriptor()
constexpr FailureReporter_State FailureReporter_State_State_MIN
constexpr FailureReporter_State FailureReporter_State_State_MAX
const std::string & FailureReporter_State_Name(T enum_t_value)
@ FailureReporter_State_START
@ FailureReporter_State_STOP
constexpr int FailureReporter_State_State_ARRAYSIZE
FailureReporterDefaultTypeInternal _FailureReporter_default_instance_
bool FailureReporter_State_IsValid(int value)
bool Error_IsValid(int value)
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::jaiabot::udp::protobuf::Config >, 11, false > config
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)