JaiaBot 2.0.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: bin/failure_reporter/config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2ffailure_5freporter_2fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_bin_2ffailure_5freporter_2fconfig_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_bin_2ffailure_5freporter_2fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
54extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2ffailure_5freporter_2fconfig_2eproto;
55namespace jaiabot {
56namespace config {
57class FailureReporter;
58struct FailureReporterDefaultTypeInternal;
59extern FailureReporterDefaultTypeInternal _FailureReporter_default_instance_;
60} // namespace config
61} // namespace jaiabot
62PROTOBUF_NAMESPACE_OPEN
63template<> ::jaiabot::config::FailureReporter* Arena::CreateMaybeMessage<::jaiabot::config::FailureReporter>(Arena*);
64PROTOBUF_NAMESPACE_CLOSE
65namespace jaiabot {
66namespace config {
67
76
77const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FailureReporter_State_descriptor();
78template<typename T>
79inline const std::string& FailureReporter_State_Name(T enum_t_value) {
80 static_assert(::std::is_same<T, FailureReporter_State>::value ||
81 ::std::is_integral<T>::value,
82 "Incorrect type passed to function FailureReporter_State_Name.");
83 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
84 FailureReporter_State_descriptor(), enum_t_value);
85}
87 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FailureReporter_State* value) {
88 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FailureReporter_State>(
90}
91// ===================================================================
92
93class FailureReporter final :
94 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.config.FailureReporter) */ {
95 public:
96 inline FailureReporter() : FailureReporter(nullptr) {}
97 ~FailureReporter() override;
98 explicit PROTOBUF_CONSTEXPR FailureReporter(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
99
102 : FailureReporter() {
103 *this = ::std::move(from);
104 }
105
107 CopyFrom(from);
108 return *this;
109 }
110 inline FailureReporter& operator=(FailureReporter&& from) noexcept {
111 if (this == &from) return *this;
112 if (GetOwningArena() == from.GetOwningArena()
113 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
114 && GetOwningArena() != nullptr
115 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
116 ) {
117 InternalSwap(&from);
118 } else {
119 CopyFrom(from);
120 }
121 return *this;
122 }
123
124 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
125 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
126 }
127 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
128 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
129 }
130
131 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
132 return GetDescriptor();
133 }
134 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
135 return default_instance().GetMetadata().descriptor;
136 }
137 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
138 return default_instance().GetMetadata().reflection;
139 }
142 }
144 return reinterpret_cast<const FailureReporter*>(
146 }
147 static constexpr int kIndexInFileMessages =
148 0;
149
151 a.Swap(&b);
152 }
153 inline void Swap(FailureReporter* other) {
154 if (other == this) return;
155 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
156 if (GetOwningArena() != nullptr &&
157 GetOwningArena() == other->GetOwningArena()) {
158 #else // PROTOBUF_FORCE_COPY_IN_SWAP
159 if (GetOwningArena() == other->GetOwningArena()) {
160 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
161 InternalSwap(other);
162 } else {
163 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
164 }
165 }
167 if (other == this) return;
168 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
169 InternalSwap(other);
170 }
171
172 // implements Message ----------------------------------------------
173
174 FailureReporter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
175 return CreateMaybeMessage<FailureReporter>(arena);
176 }
177 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
178 void CopyFrom(const FailureReporter& from);
179 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
180 void MergeFrom( const FailureReporter& from) {
181 FailureReporter::MergeImpl(*this, from);
182 }
183 private:
184 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
185 public:
186 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
187 bool IsInitialized() const final;
188
189 size_t ByteSizeLong() const final;
190 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
192 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
193 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
194
195 private:
196 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
197 void SharedDtor();
198 void SetCachedSize(int size) const final;
199 void InternalSwap(FailureReporter* other);
200
201 private:
202 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
203 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
204 return "jaiabot.config.FailureReporter";
205 }
206 protected:
207 explicit FailureReporter(::PROTOBUF_NAMESPACE_ID::Arena* arena,
208 bool is_message_owned = false);
209 public:
210
211 static const ClassData _class_data_;
212 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
213
214 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
215
216 // nested types ----------------------------------------------------
217
219 static constexpr State START =
221 static constexpr State STOP =
223 static inline bool State_IsValid(int value) {
224 return FailureReporter_State_IsValid(value);
225 }
226 static constexpr State State_MIN =
228 static constexpr State State_MAX =
230 static constexpr int State_ARRAYSIZE =
232 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
236 template<typename T>
237 static inline const std::string& State_Name(T enum_t_value) {
238 static_assert(::std::is_same<T, State>::value ||
239 ::std::is_integral<T>::value,
240 "Incorrect type passed to function State_Name.");
241 return FailureReporter_State_Name(enum_t_value);
242 }
243 static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
244 State* value) {
245 return FailureReporter_State_Parse(name, value);
246 }
247
248 // accessors -------------------------------------------------------
249
250 enum : int {
259 };
260 // required string log_dir = 9;
261 bool has_log_dir() const;
262 private:
263 bool _internal_has_log_dir() const;
264 public:
265 void clear_log_dir();
266 const std::string& log_dir() const;
267 template <typename ArgT0 = const std::string&, typename... ArgT>
268 void set_log_dir(ArgT0&& arg0, ArgT... args);
269 std::string* mutable_log_dir();
270 PROTOBUF_NODISCARD std::string* release_log_dir();
271 void set_allocated_log_dir(std::string* log_dir);
272 private:
273 const std::string& _internal_log_dir() const;
274 inline PROTOBUF_ALWAYS_INLINE void _internal_set_log_dir(const std::string& value);
275 std::string* _internal_mutable_log_dir();
276 public:
277
278 // required string service_name = 12;
279 bool has_service_name() const;
280 private:
281 bool _internal_has_service_name() const;
282 public:
283 void clear_service_name();
284 const std::string& service_name() const;
285 template <typename ArgT0 = const std::string&, typename... ArgT>
286 void set_service_name(ArgT0&& arg0, ArgT... args);
287 std::string* mutable_service_name();
288 PROTOBUF_NODISCARD std::string* release_service_name();
289 void set_allocated_service_name(std::string* service_name);
290 private:
291 const std::string& _internal_service_name() const;
292 inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_name(const std::string& value);
293 std::string* _internal_mutable_service_name();
294 public:
295
296 // optional string service_result = 13;
297 bool has_service_result() const;
298 private:
299 bool _internal_has_service_result() const;
300 public:
302 const std::string& service_result() const;
303 template <typename ArgT0 = const std::string&, typename... ArgT>
304 void set_service_result(ArgT0&& arg0, ArgT... args);
305 std::string* mutable_service_result();
306 PROTOBUF_NODISCARD std::string* release_service_result();
308 private:
309 const std::string& _internal_service_result() const;
310 inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_result(const std::string& value);
311 std::string* _internal_mutable_service_result();
312 public:
313
314 // optional .goby.middleware.protobuf.AppConfig app = 1;
315 bool has_app() const;
316 private:
317 bool _internal_has_app() const;
318 public:
319 void clear_app();
320 const ::goby::middleware::protobuf::AppConfig& app() const;
321 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
322 ::goby::middleware::protobuf::AppConfig* mutable_app();
323 void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
324 private:
325 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
326 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
327 public:
329 ::goby::middleware::protobuf::AppConfig* app);
330 ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
331
332 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
333 bool has_interprocess() const;
334 private:
335 bool _internal_has_interprocess() const;
336 public:
338 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
339 PROTOBUF_NODISCARD ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
340 ::goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
341 void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
342 private:
343 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
344 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
345 public:
347 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
348 ::goby::zeromq::protobuf::InterProcessPortalConfig* unsafe_arena_release_interprocess();
349
350 // required .jaiabot.protobuf.Error error_code = 11;
351 bool has_error_code() const;
352 private:
353 bool _internal_has_error_code() const;
354 public:
355 void clear_error_code();
358 private:
359 ::jaiabot::protobuf::Error _internal_error_code() const;
360 void _internal_set_error_code(::jaiabot::protobuf::Error value);
361 public:
362
363 // required .jaiabot.config.FailureReporter.State state = 10;
364 bool has_state() const;
365 private:
366 bool _internal_has_state() const;
367 public:
368 void clear_state();
371 private:
372 ::jaiabot::config::FailureReporter_State _internal_state() const;
373 void _internal_set_state(::jaiabot::config::FailureReporter_State value);
374 public:
375
376 // optional int32 num_attempts = 14 [default = 5];
377 bool has_num_attempts() const;
378 private:
379 bool _internal_has_num_attempts() const;
380 public:
381 void clear_num_attempts();
382 int32_t num_attempts() const;
383 void set_num_attempts(int32_t value);
384 private:
385 int32_t _internal_num_attempts() const;
386 void _internal_set_num_attempts(int32_t value);
387 public:
388
389 // @@protoc_insertion_point(class_scope:jaiabot.config.FailureReporter)
390 private:
391 class _Internal;
392
393 // helper for ByteSizeLong()
394 size_t RequiredFieldsByteSizeFallback() const;
395
396 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
397 typedef void InternalArenaConstructable_;
398 typedef void DestructorSkippable_;
399 struct Impl_ {
400 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
401 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
402 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr log_dir_;
403 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_name_;
404 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_result_;
405 ::goby::middleware::protobuf::AppConfig* app_;
406 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
407 int error_code_;
408 int state_;
409 int32_t num_attempts_;
410 };
411 union { Impl_ _impl_; };
412 friend struct ::TableStruct_bin_2ffailure_5freporter_2fconfig_2eproto;
413};
414// ===================================================================
415
416
417// ===================================================================
418
419#ifdef __GNUC__
420 #pragma GCC diagnostic push
421 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
422#endif // __GNUC__
423// FailureReporter
424
425// optional .goby.middleware.protobuf.AppConfig app = 1;
426inline bool FailureReporter::_internal_has_app() const {
427 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
428 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
429 return value;
430}
431inline bool FailureReporter::has_app() const {
432 return _internal_has_app();
433}
434inline const ::goby::middleware::protobuf::AppConfig& FailureReporter::_internal_app() const {
435 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
436 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
437 ::goby::middleware::protobuf::_AppConfig_default_instance_);
438}
439inline const ::goby::middleware::protobuf::AppConfig& FailureReporter::app() const {
440 // @@protoc_insertion_point(field_get:jaiabot.config.FailureReporter.app)
441 return _internal_app();
442}
444 ::goby::middleware::protobuf::AppConfig* app) {
445 if (GetArenaForAllocation() == nullptr) {
446 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
447 }
448 _impl_.app_ = app;
449 if (app) {
450 _impl_._has_bits_[0] |= 0x00000008u;
451 } else {
452 _impl_._has_bits_[0] &= ~0x00000008u;
453 }
454 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.config.FailureReporter.app)
455}
456inline ::goby::middleware::protobuf::AppConfig* FailureReporter::release_app() {
457 _impl_._has_bits_[0] &= ~0x00000008u;
458 ::goby::middleware::protobuf::AppConfig* temp = _impl_.app_;
459 _impl_.app_ = nullptr;
460#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
461 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
462 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
463 if (GetArenaForAllocation() == nullptr) { delete old; }
464#else // PROTOBUF_FORCE_COPY_IN_RELEASE
465 if (GetArenaForAllocation() != nullptr) {
466 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
467 }
468#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
469 return temp;
470}
471inline ::goby::middleware::protobuf::AppConfig* FailureReporter::unsafe_arena_release_app() {
472 // @@protoc_insertion_point(field_release:jaiabot.config.FailureReporter.app)
473 _impl_._has_bits_[0] &= ~0x00000008u;
474 ::goby::middleware::protobuf::AppConfig* temp = _impl_.app_;
475 _impl_.app_ = nullptr;
476 return temp;
477}
478inline ::goby::middleware::protobuf::AppConfig* FailureReporter::_internal_mutable_app() {
479 _impl_._has_bits_[0] |= 0x00000008u;
480 if (_impl_.app_ == nullptr) {
481 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
482 _impl_.app_ = p;
483 }
484 return _impl_.app_;
485}
486inline ::goby::middleware::protobuf::AppConfig* FailureReporter::mutable_app() {
487 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
488 // @@protoc_insertion_point(field_mutable:jaiabot.config.FailureReporter.app)
489 return _msg;
490}
491inline void FailureReporter::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
492 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
493 if (message_arena == nullptr) {
494 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
495 }
496 if (app) {
497 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
498 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
499 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app));
500 if (message_arena != submessage_arena) {
501 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
502 message_arena, app, submessage_arena);
503 }
504 _impl_._has_bits_[0] |= 0x00000008u;
505 } else {
506 _impl_._has_bits_[0] &= ~0x00000008u;
507 }
508 _impl_.app_ = app;
509 // @@protoc_insertion_point(field_set_allocated:jaiabot.config.FailureReporter.app)
510}
511
512// optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
513inline bool FailureReporter::_internal_has_interprocess() const {
514 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
515 PROTOBUF_ASSUME(!value || _impl_.interprocess_ != nullptr);
516 return value;
517}
519 return _internal_has_interprocess();
520}
521inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& FailureReporter::_internal_interprocess() const {
522 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = _impl_.interprocess_;
523 return p != nullptr ? *p : reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&>(
524 ::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
525}
526inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& FailureReporter::interprocess() const {
527 // @@protoc_insertion_point(field_get:jaiabot.config.FailureReporter.interprocess)
528 return _internal_interprocess();
529}
531 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
532 if (GetArenaForAllocation() == nullptr) {
533 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
534 }
535 _impl_.interprocess_ = interprocess;
536 if (interprocess) {
537 _impl_._has_bits_[0] |= 0x00000010u;
538 } else {
539 _impl_._has_bits_[0] &= ~0x00000010u;
540 }
541 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.config.FailureReporter.interprocess)
542}
543inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FailureReporter::release_interprocess() {
544 _impl_._has_bits_[0] &= ~0x00000010u;
545 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = _impl_.interprocess_;
546 _impl_.interprocess_ = nullptr;
547#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
548 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
549 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
550 if (GetArenaForAllocation() == nullptr) { delete old; }
551#else // PROTOBUF_FORCE_COPY_IN_RELEASE
552 if (GetArenaForAllocation() != nullptr) {
553 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
554 }
555#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
556 return temp;
557}
558inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FailureReporter::unsafe_arena_release_interprocess() {
559 // @@protoc_insertion_point(field_release:jaiabot.config.FailureReporter.interprocess)
560 _impl_._has_bits_[0] &= ~0x00000010u;
561 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = _impl_.interprocess_;
562 _impl_.interprocess_ = nullptr;
563 return temp;
564}
565inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FailureReporter::_internal_mutable_interprocess() {
566 _impl_._has_bits_[0] |= 0x00000010u;
567 if (_impl_.interprocess_ == nullptr) {
568 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaForAllocation());
569 _impl_.interprocess_ = p;
570 }
571 return _impl_.interprocess_;
572}
573inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FailureReporter::mutable_interprocess() {
574 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
575 // @@protoc_insertion_point(field_mutable:jaiabot.config.FailureReporter.interprocess)
576 return _msg;
577}
578inline void FailureReporter::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
579 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
580 if (message_arena == nullptr) {
581 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
582 }
583 if (interprocess) {
584 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
585 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
586 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess));
587 if (message_arena != submessage_arena) {
588 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
589 message_arena, interprocess, submessage_arena);
590 }
591 _impl_._has_bits_[0] |= 0x00000010u;
592 } else {
593 _impl_._has_bits_[0] &= ~0x00000010u;
594 }
595 _impl_.interprocess_ = interprocess;
596 // @@protoc_insertion_point(field_set_allocated:jaiabot.config.FailureReporter.interprocess)
597}
598
599// required string log_dir = 9;
600inline bool FailureReporter::_internal_has_log_dir() const {
601 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
602 return value;
603}
604inline bool FailureReporter::has_log_dir() const {
605 return _internal_has_log_dir();
606}
608 _impl_.log_dir_.ClearToEmpty();
609 _impl_._has_bits_[0] &= ~0x00000001u;
610}
611inline const std::string& FailureReporter::log_dir() const {
612 // @@protoc_insertion_point(field_get:jaiabot.config.FailureReporter.log_dir)
613 return _internal_log_dir();
614}
615template <typename ArgT0, typename... ArgT>
616inline PROTOBUF_ALWAYS_INLINE
617void FailureReporter::set_log_dir(ArgT0&& arg0, ArgT... args) {
618 _impl_._has_bits_[0] |= 0x00000001u;
619 _impl_.log_dir_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
620 // @@protoc_insertion_point(field_set:jaiabot.config.FailureReporter.log_dir)
621}
622inline std::string* FailureReporter::mutable_log_dir() {
623 std::string* _s = _internal_mutable_log_dir();
624 // @@protoc_insertion_point(field_mutable:jaiabot.config.FailureReporter.log_dir)
625 return _s;
626}
627inline const std::string& FailureReporter::_internal_log_dir() const {
628 return _impl_.log_dir_.Get();
629}
630inline void FailureReporter::_internal_set_log_dir(const std::string& value) {
631 _impl_._has_bits_[0] |= 0x00000001u;
632 _impl_.log_dir_.Set(value, GetArenaForAllocation());
633}
634inline std::string* FailureReporter::_internal_mutable_log_dir() {
635 _impl_._has_bits_[0] |= 0x00000001u;
636 return _impl_.log_dir_.Mutable(GetArenaForAllocation());
637}
638inline std::string* FailureReporter::release_log_dir() {
639 // @@protoc_insertion_point(field_release:jaiabot.config.FailureReporter.log_dir)
640 if (!_internal_has_log_dir()) {
641 return nullptr;
642 }
643 _impl_._has_bits_[0] &= ~0x00000001u;
644 auto* p = _impl_.log_dir_.Release();
645#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
646 if (_impl_.log_dir_.IsDefault()) {
647 _impl_.log_dir_.Set("", GetArenaForAllocation());
648 }
649#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
650 return p;
651}
653 if (log_dir != nullptr) {
654 _impl_._has_bits_[0] |= 0x00000001u;
655 } else {
656 _impl_._has_bits_[0] &= ~0x00000001u;
657 }
658 _impl_.log_dir_.SetAllocated(log_dir, GetArenaForAllocation());
659#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
660 if (_impl_.log_dir_.IsDefault()) {
661 _impl_.log_dir_.Set("", GetArenaForAllocation());
662 }
663#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
664 // @@protoc_insertion_point(field_set_allocated:jaiabot.config.FailureReporter.log_dir)
665}
666
667// required .jaiabot.config.FailureReporter.State state = 10;
668inline bool FailureReporter::_internal_has_state() const {
669 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
670 return value;
671}
672inline bool FailureReporter::has_state() const {
673 return _internal_has_state();
674}
676 _impl_.state_ = 1;
677 _impl_._has_bits_[0] &= ~0x00000040u;
678}
679inline ::jaiabot::config::FailureReporter_State FailureReporter::_internal_state() const {
680 return static_cast< ::jaiabot::config::FailureReporter_State >(_impl_.state_);
681}
682inline ::jaiabot::config::FailureReporter_State FailureReporter::state() const {
683 // @@protoc_insertion_point(field_get:jaiabot.config.FailureReporter.state)
684 return _internal_state();
685}
686inline void FailureReporter::_internal_set_state(::jaiabot::config::FailureReporter_State value) {
688 _impl_._has_bits_[0] |= 0x00000040u;
689 _impl_.state_ = value;
690}
692 _internal_set_state(value);
693 // @@protoc_insertion_point(field_set:jaiabot.config.FailureReporter.state)
694}
695
696// required .jaiabot.protobuf.Error error_code = 11;
697inline bool FailureReporter::_internal_has_error_code() const {
698 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
699 return value;
700}
702 return _internal_has_error_code();
703}
705 _impl_.error_code_ = 0;
706 _impl_._has_bits_[0] &= ~0x00000020u;
707}
708inline ::jaiabot::protobuf::Error FailureReporter::_internal_error_code() const {
709 return static_cast< ::jaiabot::protobuf::Error >(_impl_.error_code_);
710}
711inline ::jaiabot::protobuf::Error FailureReporter::error_code() const {
712 // @@protoc_insertion_point(field_get:jaiabot.config.FailureReporter.error_code)
713 return _internal_error_code();
714}
715inline void FailureReporter::_internal_set_error_code(::jaiabot::protobuf::Error value) {
717 _impl_._has_bits_[0] |= 0x00000020u;
718 _impl_.error_code_ = value;
719}
721 _internal_set_error_code(value);
722 // @@protoc_insertion_point(field_set:jaiabot.config.FailureReporter.error_code)
723}
724
725// required string service_name = 12;
726inline bool FailureReporter::_internal_has_service_name() const {
727 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
728 return value;
729}
731 return _internal_has_service_name();
732}
734 _impl_.service_name_.ClearToEmpty();
735 _impl_._has_bits_[0] &= ~0x00000002u;
736}
737inline const std::string& FailureReporter::service_name() const {
738 // @@protoc_insertion_point(field_get:jaiabot.config.FailureReporter.service_name)
739 return _internal_service_name();
740}
741template <typename ArgT0, typename... ArgT>
742inline PROTOBUF_ALWAYS_INLINE
743void FailureReporter::set_service_name(ArgT0&& arg0, ArgT... args) {
744 _impl_._has_bits_[0] |= 0x00000002u;
745 _impl_.service_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
746 // @@protoc_insertion_point(field_set:jaiabot.config.FailureReporter.service_name)
747}
749 std::string* _s = _internal_mutable_service_name();
750 // @@protoc_insertion_point(field_mutable:jaiabot.config.FailureReporter.service_name)
751 return _s;
752}
753inline const std::string& FailureReporter::_internal_service_name() const {
754 return _impl_.service_name_.Get();
755}
756inline void FailureReporter::_internal_set_service_name(const std::string& value) {
757 _impl_._has_bits_[0] |= 0x00000002u;
758 _impl_.service_name_.Set(value, GetArenaForAllocation());
759}
760inline std::string* FailureReporter::_internal_mutable_service_name() {
761 _impl_._has_bits_[0] |= 0x00000002u;
762 return _impl_.service_name_.Mutable(GetArenaForAllocation());
763}
765 // @@protoc_insertion_point(field_release:jaiabot.config.FailureReporter.service_name)
766 if (!_internal_has_service_name()) {
767 return nullptr;
768 }
769 _impl_._has_bits_[0] &= ~0x00000002u;
770 auto* p = _impl_.service_name_.Release();
771#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
772 if (_impl_.service_name_.IsDefault()) {
773 _impl_.service_name_.Set("", GetArenaForAllocation());
774 }
775#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
776 return p;
777}
779 if (service_name != nullptr) {
780 _impl_._has_bits_[0] |= 0x00000002u;
781 } else {
782 _impl_._has_bits_[0] &= ~0x00000002u;
783 }
784 _impl_.service_name_.SetAllocated(service_name, GetArenaForAllocation());
785#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
786 if (_impl_.service_name_.IsDefault()) {
787 _impl_.service_name_.Set("", GetArenaForAllocation());
788 }
789#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
790 // @@protoc_insertion_point(field_set_allocated:jaiabot.config.FailureReporter.service_name)
791}
792
793// optional string service_result = 13;
794inline bool FailureReporter::_internal_has_service_result() const {
795 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
796 return value;
797}
799 return _internal_has_service_result();
800}
802 _impl_.service_result_.ClearToEmpty();
803 _impl_._has_bits_[0] &= ~0x00000004u;
804}
805inline const std::string& FailureReporter::service_result() const {
806 // @@protoc_insertion_point(field_get:jaiabot.config.FailureReporter.service_result)
807 return _internal_service_result();
808}
809template <typename ArgT0, typename... ArgT>
810inline PROTOBUF_ALWAYS_INLINE
811void FailureReporter::set_service_result(ArgT0&& arg0, ArgT... args) {
812 _impl_._has_bits_[0] |= 0x00000004u;
813 _impl_.service_result_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
814 // @@protoc_insertion_point(field_set:jaiabot.config.FailureReporter.service_result)
815}
817 std::string* _s = _internal_mutable_service_result();
818 // @@protoc_insertion_point(field_mutable:jaiabot.config.FailureReporter.service_result)
819 return _s;
820}
821inline const std::string& FailureReporter::_internal_service_result() const {
822 return _impl_.service_result_.Get();
823}
824inline void FailureReporter::_internal_set_service_result(const std::string& value) {
825 _impl_._has_bits_[0] |= 0x00000004u;
826 _impl_.service_result_.Set(value, GetArenaForAllocation());
827}
828inline std::string* FailureReporter::_internal_mutable_service_result() {
829 _impl_._has_bits_[0] |= 0x00000004u;
830 return _impl_.service_result_.Mutable(GetArenaForAllocation());
831}
833 // @@protoc_insertion_point(field_release:jaiabot.config.FailureReporter.service_result)
834 if (!_internal_has_service_result()) {
835 return nullptr;
836 }
837 _impl_._has_bits_[0] &= ~0x00000004u;
838 auto* p = _impl_.service_result_.Release();
839#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
840 if (_impl_.service_result_.IsDefault()) {
841 _impl_.service_result_.Set("", GetArenaForAllocation());
842 }
843#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
844 return p;
845}
847 if (service_result != nullptr) {
848 _impl_._has_bits_[0] |= 0x00000004u;
849 } else {
850 _impl_._has_bits_[0] &= ~0x00000004u;
851 }
852 _impl_.service_result_.SetAllocated(service_result, GetArenaForAllocation());
853#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
854 if (_impl_.service_result_.IsDefault()) {
855 _impl_.service_result_.Set("", GetArenaForAllocation());
856 }
857#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
858 // @@protoc_insertion_point(field_set_allocated:jaiabot.config.FailureReporter.service_result)
859}
860
861// optional int32 num_attempts = 14 [default = 5];
862inline bool FailureReporter::_internal_has_num_attempts() const {
863 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
864 return value;
865}
867 return _internal_has_num_attempts();
868}
870 _impl_.num_attempts_ = 5;
871 _impl_._has_bits_[0] &= ~0x00000080u;
872}
873inline int32_t FailureReporter::_internal_num_attempts() const {
874 return _impl_.num_attempts_;
875}
876inline int32_t FailureReporter::num_attempts() const {
877 // @@protoc_insertion_point(field_get:jaiabot.config.FailureReporter.num_attempts)
878 return _internal_num_attempts();
879}
880inline void FailureReporter::_internal_set_num_attempts(int32_t value) {
881 _impl_._has_bits_[0] |= 0x00000080u;
882 _impl_.num_attempts_ = value;
883}
884inline void FailureReporter::set_num_attempts(int32_t value) {
885 _internal_set_num_attempts(value);
886 // @@protoc_insertion_point(field_set:jaiabot.config.FailureReporter.num_attempts)
887}
888
889#ifdef __GNUC__
890 #pragma GCC diagnostic pop
891#endif // __GNUC__
892
893// @@protoc_insertion_point(namespace_scope)
894
895} // namespace config
896} // namespace jaiabot
897
898PROTOBUF_NAMESPACE_OPEN
899
900template <> struct is_proto_enum< ::jaiabot::config::FailureReporter_State> : ::std::true_type {};
901template <>
903 return ::jaiabot::config::FailureReporter_State_descriptor();
904}
905
906PROTOBUF_NAMESPACE_CLOSE
907
908// @@protoc_insertion_point(global_scope)
909
910#include <google/protobuf/port_undef.inc>
911#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_bin_2ffailure_5freporter_2fconfig_2eproto
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
Definition config.pb.h:471
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition config.pb.h:127
static constexpr State START
Definition config.pb.h:219
static constexpr State STOP
Definition config.pb.h:221
void Swap(FailureReporter *other)
Definition config.pb.h:153
const std::string & service_name() const
Definition config.pb.h:737
FailureReporter & operator=(FailureReporter &&from) noexcept
Definition config.pb.h:110
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::goby::middleware::protobuf::AppConfig & app() const
Definition config.pb.h:439
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Definition config.pb.h:491
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_log_dir(ArgT0 &&arg0, ArgT... args)
const std::string & service_result() const
Definition config.pb.h:805
static constexpr int kIndexInFileMessages
Definition config.pb.h:147
static constexpr State State_MIN
Definition config.pb.h:226
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition config.pb.h:137
bool IsInitialized() const final
FailureReporter(FailureReporter &&from) noexcept
Definition config.pb.h:101
FailureReporter(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_NODISCARD std::string * release_service_result()
Definition config.pb.h:832
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
FailureReporter & operator=(const FailureReporter &from)
Definition config.pb.h:106
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
Definition config.pb.h:578
void UnsafeArenaSwap(FailureReporter *other)
Definition config.pb.h:166
void MergeFrom(const FailureReporter &from)
Definition config.pb.h:180
static bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, State *value)
Definition config.pb.h:243
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Definition config.pb.h:443
static const FailureReporter & default_instance()
Definition config.pb.h:140
int GetCachedSize() const final
Definition config.pb.h:193
void set_num_attempts(int32_t value)
Definition config.pb.h:884
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition config.pb.h:124
static const FailureReporter * internal_default_instance()
Definition config.pb.h:143
void CopyFrom(const FailureReporter &from)
void set_service_result(ArgT0 &&arg0, ArgT... args)
const std::string & log_dir() const
Definition config.pb.h:611
void set_error_code(::jaiabot::protobuf::Error value)
Definition config.pb.h:720
FailureReporter(const FailureReporter &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition config.pb.h:134
static const ClassData _class_data_
Definition config.pb.h:211
PROTOBUF_NODISCARD std::string * release_service_name()
Definition config.pb.h:764
void set_allocated_service_result(std::string *service_result)
Definition config.pb.h:846
static constexpr int State_ARRAYSIZE
Definition config.pb.h:230
std::string * mutable_service_result()
Definition config.pb.h:816
FailureReporter * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition config.pb.h:174
PROTOBUF_NODISCARD std::string * release_log_dir()
Definition config.pb.h:638
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
Definition config.pb.h:526
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * State_descriptor()
Definition config.pb.h:233
friend void swap(FailureReporter &a, FailureReporter &b)
Definition config.pb.h:150
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
Definition config.pb.h:558
void set_allocated_log_dir(std::string *log_dir)
Definition config.pb.h:652
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition config.pb.h:131
size_t ByteSizeLong() const final
void set_service_name(ArgT0 &&arg0, ArgT... args)
::jaiabot::protobuf::Error error_code() const
Definition config.pb.h:711
void set_allocated_service_name(std::string *service_name)
Definition config.pb.h:778
PROTOBUF_CONSTEXPR FailureReporter(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
Definition config.pb.h:543
void set_state(::jaiabot::config::FailureReporter_State value)
Definition config.pb.h:691
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
Definition config.pb.h:456
std::string * mutable_service_name()
Definition config.pb.h:748
static bool State_IsValid(int value)
Definition config.pb.h:223
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
Definition config.pb.h:573
static const std::string & State_Name(T enum_t_value)
Definition config.pb.h:237
::goby::middleware::protobuf::AppConfig * mutable_app()
Definition config.pb.h:486
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
Definition config.pb.h:530
::jaiabot::config::FailureReporter_State state() const
Definition config.pb.h:682
static constexpr State State_MAX
Definition config.pb.h:228
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2ffailure_5freporter_2fconfig_2eproto
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::config::FailureReporter_State >()
Definition config.pb.h:902
constexpr FailureReporter_State FailureReporter_State_State_MIN
Definition config.pb.h:73
constexpr FailureReporter_State FailureReporter_State_State_MAX
Definition config.pb.h:74
@ FailureReporter_State_START
Definition config.pb.h:69
@ FailureReporter_State_STOP
Definition config.pb.h:70
const std::string & FailureReporter_State_Name(T enum_t_value)
Definition config.pb.h:79
constexpr int FailureReporter_State_State_ARRAYSIZE
Definition config.pb.h:75
bool FailureReporter_State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FailureReporter_State *value)
Definition config.pb.h:86
FailureReporterDefaultTypeInternal _FailureReporter_default_instance_
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FailureReporter_State_descriptor()
bool FailureReporter_State_IsValid(int value)
bool Error_IsValid(int value)