Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
debug_logger.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/util/protobuf/debug_logger.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2fdebug_5flogger_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>
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>
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>
35#include "dccl/option_extensions.pb.h"
36#include <boost/units/quantity.hpp>
37#include <boost/units/absolute.hpp>
38#include <boost/units/dimensionless_type.hpp>
39#include <boost/units/make_scaled_unit.hpp>
40
41#include <boost/units/systems/si.hpp>
42// @@protoc_insertion_point(includes)
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
45PROTOBUF_NAMESPACE_OPEN
46namespace internal {
47class AnyMetadata;
48} // namespace internal
49PROTOBUF_NAMESPACE_CLOSE
50
51// Internal implementation detail -- do not use these members.
55extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto;
56namespace goby {
57namespace util {
58namespace protobuf {
59class GLogConfig;
60struct GLogConfigDefaultTypeInternal;
61extern GLogConfigDefaultTypeInternal _GLogConfig_default_instance_;
63struct GLogConfig_FileLogDefaultTypeInternal;
64extern GLogConfig_FileLogDefaultTypeInternal _GLogConfig_FileLog_default_instance_;
66struct GLogConfig_FileLog_OmitDefaultTypeInternal;
67extern GLogConfig_FileLog_OmitDefaultTypeInternal _GLogConfig_FileLog_Omit_default_instance_;
68} // namespace protobuf
69} // namespace util
70} // namespace goby
71PROTOBUF_NAMESPACE_OPEN
72template<> ::goby::util::protobuf::GLogConfig* Arena::CreateMaybeMessage<::goby::util::protobuf::GLogConfig>(Arena*);
73template<> ::goby::util::protobuf::GLogConfig_FileLog* Arena::CreateMaybeMessage<::goby::util::protobuf::GLogConfig_FileLog>(Arena*);
74template<> ::goby::util::protobuf::GLogConfig_FileLog_Omit* Arena::CreateMaybeMessage<::goby::util::protobuf::GLogConfig_FileLog_Omit>(Arena*);
75PROTOBUF_NAMESPACE_CLOSE
76namespace goby {
77namespace util {
78namespace protobuf {
79
92
93const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GLogConfig_Verbosity_descriptor();
94template<typename T>
95inline const std::string& GLogConfig_Verbosity_Name(T enum_t_value) {
96 static_assert(::std::is_same<T, GLogConfig_Verbosity>::value ||
97 ::std::is_integral<T>::value,
98 "Incorrect type passed to function GLogConfig_Verbosity_Name.");
99 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
100 GLogConfig_Verbosity_descriptor(), enum_t_value);
101}
103 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GLogConfig_Verbosity* value) {
104 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<GLogConfig_Verbosity>(
105 GLogConfig_Verbosity_descriptor(), name, value);
106}
107// ===================================================================
108
110 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.util.protobuf.GLogConfig.FileLog.Omit) */ {
111 public:
114 explicit PROTOBUF_CONSTEXPR GLogConfig_FileLog_Omit(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
115
119 *this = ::std::move(from);
120 }
121
123 CopyFrom(from);
124 return *this;
125 }
127 if (this == &from) return *this;
128 if (GetOwningArena() == from.GetOwningArena()
129 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
130 && GetOwningArena() != nullptr
131 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
132 ) {
133 InternalSwap(&from);
134 } else {
135 CopyFrom(from);
136 }
137 return *this;
138 }
139
140 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
141 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
142 }
143 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
144 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
145 }
146
147 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
148 return GetDescriptor();
149 }
150 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
151 return default_instance().GetMetadata().descriptor;
152 }
153 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
154 return default_instance().GetMetadata().reflection;
155 }
160 return reinterpret_cast<const GLogConfig_FileLog_Omit*>(
162 }
163 static constexpr int kIndexInFileMessages =
164 0;
165
167 a.Swap(&b);
168 }
169 inline void Swap(GLogConfig_FileLog_Omit* other) {
170 if (other == this) return;
171 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
172 if (GetOwningArena() != nullptr &&
173 GetOwningArena() == other->GetOwningArena()) {
174 #else // PROTOBUF_FORCE_COPY_IN_SWAP
175 if (GetOwningArena() == other->GetOwningArena()) {
176 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
177 InternalSwap(other);
178 } else {
179 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
180 }
181 }
183 if (other == this) return;
184 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
185 InternalSwap(other);
186 }
187
188 // implements Message ----------------------------------------------
189
190 GLogConfig_FileLog_Omit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
191 return CreateMaybeMessage<GLogConfig_FileLog_Omit>(arena);
192 }
193 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
195 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
197 GLogConfig_FileLog_Omit::MergeImpl(*this, from);
198 }
199 private:
200 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
201 public:
202 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
203 bool IsInitialized() const final;
204
205 size_t ByteSizeLong() const final;
206 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
208 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
209 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
210
211 private:
212 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
213 void SharedDtor();
214 void SetCachedSize(int size) const final;
215 void InternalSwap(GLogConfig_FileLog_Omit* other);
216
217 private:
218 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
219 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
220 return "goby.util.protobuf.GLogConfig.FileLog.Omit";
221 }
222 protected:
223 explicit GLogConfig_FileLog_Omit(::PROTOBUF_NAMESPACE_ID::Arena* arena,
224 bool is_message_owned = false);
225 public:
226
227 static const ClassData _class_data_;
228 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
229
230 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
231
232 // nested types ----------------------------------------------------
233
234 // accessors -------------------------------------------------------
235
236 enum : int {
239 };
240 // optional bool file_timestamp = 1 [default = false];
241 bool has_file_timestamp() const;
242 private:
243 bool _internal_has_file_timestamp() const;
244 public:
246 bool file_timestamp() const;
247 void set_file_timestamp(bool value);
248 private:
249 bool _internal_file_timestamp() const;
250 void _internal_set_file_timestamp(bool value);
251 public:
252
253 // optional bool latest_symlink = 2 [default = false];
254 bool has_latest_symlink() const;
255 private:
256 bool _internal_has_latest_symlink() const;
257 public:
259 bool latest_symlink() const;
260 void set_latest_symlink(bool value);
261 private:
262 bool _internal_latest_symlink() const;
263 void _internal_set_latest_symlink(bool value);
264 public:
265
266 // @@protoc_insertion_point(class_scope:goby.util.protobuf.GLogConfig.FileLog.Omit)
267 private:
268 class _Internal;
269
270 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
271 typedef void InternalArenaConstructable_;
272 typedef void DestructorSkippable_;
273 struct Impl_ {
274 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
275 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
276 bool file_timestamp_;
277 bool latest_symlink_;
278 };
279 union { Impl_ _impl_; };
280 friend struct ::TableStruct_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto;
281};
282// -------------------------------------------------------------------
283
285 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.util.protobuf.GLogConfig.FileLog) */ {
286 public:
289 explicit PROTOBUF_CONSTEXPR GLogConfig_FileLog(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
290
294 *this = ::std::move(from);
295 }
296
298 CopyFrom(from);
299 return *this;
300 }
302 if (this == &from) return *this;
303 if (GetOwningArena() == from.GetOwningArena()
304 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
305 && GetOwningArena() != nullptr
306 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
307 ) {
308 InternalSwap(&from);
309 } else {
310 CopyFrom(from);
311 }
312 return *this;
313 }
314
315 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
316 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
317 }
318 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
319 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
320 }
321
322 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
323 return GetDescriptor();
324 }
325 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
326 return default_instance().GetMetadata().descriptor;
327 }
328 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
329 return default_instance().GetMetadata().reflection;
330 }
332 return *internal_default_instance();
333 }
335 return reinterpret_cast<const GLogConfig_FileLog*>(
337 }
338 static constexpr int kIndexInFileMessages =
339 1;
340
342 a.Swap(&b);
343 }
344 inline void Swap(GLogConfig_FileLog* other) {
345 if (other == this) return;
346 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
347 if (GetOwningArena() != nullptr &&
348 GetOwningArena() == other->GetOwningArena()) {
349 #else // PROTOBUF_FORCE_COPY_IN_SWAP
350 if (GetOwningArena() == other->GetOwningArena()) {
351 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
352 InternalSwap(other);
353 } else {
354 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
355 }
356 }
358 if (other == this) return;
359 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
360 InternalSwap(other);
361 }
362
363 // implements Message ----------------------------------------------
364
365 GLogConfig_FileLog* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
366 return CreateMaybeMessage<GLogConfig_FileLog>(arena);
367 }
368 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
369 void CopyFrom(const GLogConfig_FileLog& from);
370 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
371 void MergeFrom( const GLogConfig_FileLog& from) {
372 GLogConfig_FileLog::MergeImpl(*this, from);
373 }
374 private:
375 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
376 public:
377 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
378 bool IsInitialized() const final;
379
380 size_t ByteSizeLong() const final;
381 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
382 uint8_t* _InternalSerialize(
383 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
384 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
385
386 private:
387 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
388 void SharedDtor();
389 void SetCachedSize(int size) const final;
390 void InternalSwap(GLogConfig_FileLog* other);
391
392 private:
393 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
394 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
395 return "goby.util.protobuf.GLogConfig.FileLog";
396 }
397 protected:
398 explicit GLogConfig_FileLog(::PROTOBUF_NAMESPACE_ID::Arena* arena,
399 bool is_message_owned = false);
400 public:
401
402 static const ClassData _class_data_;
403 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
404
405 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
406
407 // nested types ----------------------------------------------------
408
410
411 // accessors -------------------------------------------------------
412
413 enum : int {
414 kFileNameFieldNumber = 1,
415 kFileDirFieldNumber = 2,
416 kOmitFieldNumber = 5,
417 kLogRotateSecFieldNumber = 4,
418 kVerbosityFieldNumber = 3,
419 };
420 // optional string file_name = 1 [default = "%2%_%1%.txt", (.goby.field) = {
421 bool has_file_name() const;
422 private:
423 bool _internal_has_file_name() const;
424 public:
425 void clear_file_name();
426 const std::string& file_name() const;
427 template <typename ArgT0 = const std::string&, typename... ArgT>
428 void set_file_name(ArgT0&& arg0, ArgT... args);
429 std::string* mutable_file_name();
430 PROTOBUF_NODISCARD std::string* release_file_name();
431 void set_allocated_file_name(std::string* file_name);
432 private:
433 const std::string& _internal_file_name() const;
434 inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value);
435 std::string* _internal_mutable_file_name();
436 public:
437
438 // optional string file_dir = 2 [(.goby.field) = {
439 bool has_file_dir() const;
440 private:
441 bool _internal_has_file_dir() const;
442 public:
443 void clear_file_dir();
444 const std::string& file_dir() const;
445 template <typename ArgT0 = const std::string&, typename... ArgT>
446 void set_file_dir(ArgT0&& arg0, ArgT... args);
447 std::string* mutable_file_dir();
448 PROTOBUF_NODISCARD std::string* release_file_dir();
449 void set_allocated_file_dir(std::string* file_dir);
450 private:
451 const std::string& _internal_file_dir() const;
452 inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_dir(const std::string& value);
453 std::string* _internal_mutable_file_dir();
454 public:
455
456 // optional .goby.util.protobuf.GLogConfig.FileLog.Omit omit = 5;
457 bool has_omit() const;
458 private:
459 bool _internal_has_omit() const;
460 public:
461 void clear_omit();
462 const ::goby::util::protobuf::GLogConfig_FileLog_Omit& omit() const;
463 PROTOBUF_NODISCARD ::goby::util::protobuf::GLogConfig_FileLog_Omit* release_omit();
465 void set_allocated_omit(::goby::util::protobuf::GLogConfig_FileLog_Omit* omit);
466 private:
467 const ::goby::util::protobuf::GLogConfig_FileLog_Omit& _internal_omit() const;
468 ::goby::util::protobuf::GLogConfig_FileLog_Omit* _internal_mutable_omit();
469 public:
470 void unsafe_arena_set_allocated_omit(
472 ::goby::util::protobuf::GLogConfig_FileLog_Omit* unsafe_arena_release_omit();
473
474 // optional uint32 log_rotate_sec = 4 [(.goby.field) = {
475 bool has_log_rotate_sec() const;
476 private:
477 bool _internal_has_log_rotate_sec() const;
478 public:
479 void clear_log_rotate_sec();
480 uint32_t log_rotate_sec() const;
481 void set_log_rotate_sec(uint32_t value);
482 private:
483 uint32_t _internal_log_rotate_sec() const;
484 void _internal_set_log_rotate_sec(uint32_t value);
485 public:
486
487 // optional .goby.util.protobuf.GLogConfig.Verbosity verbosity = 3 [default = VERBOSE, (.goby.field) = {
488 bool has_verbosity() const;
489 private:
490 bool _internal_has_verbosity() const;
491 public:
492 void clear_verbosity();
494 void set_verbosity(::goby::util::protobuf::GLogConfig_Verbosity value);
495 private:
496 ::goby::util::protobuf::GLogConfig_Verbosity _internal_verbosity() const;
497 void _internal_set_verbosity(::goby::util::protobuf::GLogConfig_Verbosity value);
498 public:
499
500 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type log_rotate_sec_dimension;
501
502 typedef boost::units::unit<log_rotate_sec_dimension,boost::units::si::system> log_rotate_sec_unit;
503
504 template<typename Quantity >
505 void set_log_rotate_sec_with_units(Quantity value_w_units)
506 { set_log_rotate_sec(boost::units::quantity<log_rotate_sec_unit,google::protobuf::uint32 >(value_w_units).value() ); };
507
508 template<typename Quantity >
510 { return Quantity(log_rotate_sec() * log_rotate_sec_unit()); };
511
512 boost::units::quantity< log_rotate_sec_unit,google::protobuf::uint32 > log_rotate_sec_with_units() const
513 { return log_rotate_sec_with_units<boost::units::quantity< log_rotate_sec_unit,google::protobuf::uint32 > >(); };
514
515 // @@protoc_insertion_point(class_scope:goby.util.protobuf.GLogConfig.FileLog)
516 private:
517 class _Internal;
518
519 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
520 typedef void InternalArenaConstructable_;
521 typedef void DestructorSkippable_;
522 struct Impl_ {
523 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
524 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
525 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_file_name_;
526 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
527 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_dir_;
529 uint32_t log_rotate_sec_;
530 int verbosity_;
531 };
532 union { Impl_ _impl_; };
533 friend struct ::TableStruct_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto;
534};
535// -------------------------------------------------------------------
536
537class GLogConfig final :
538 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.util.protobuf.GLogConfig) */ {
539 public:
540 inline GLogConfig() : GLogConfig(nullptr) {}
541 ~GLogConfig() override;
542 explicit PROTOBUF_CONSTEXPR GLogConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
543
544 GLogConfig(const GLogConfig& from);
545 GLogConfig(GLogConfig&& from) noexcept
546 : GLogConfig() {
547 *this = ::std::move(from);
548 }
549
550 inline GLogConfig& operator=(const GLogConfig& from) {
551 CopyFrom(from);
552 return *this;
553 }
554 inline GLogConfig& operator=(GLogConfig&& from) noexcept {
555 if (this == &from) return *this;
556 if (GetOwningArena() == from.GetOwningArena()
557 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
558 && GetOwningArena() != nullptr
559 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
560 ) {
561 InternalSwap(&from);
562 } else {
563 CopyFrom(from);
564 }
565 return *this;
566 }
567
568 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
569 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
570 }
571 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
572 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
573 }
574
575 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
576 return GetDescriptor();
577 }
578 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
579 return default_instance().GetMetadata().descriptor;
580 }
581 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
582 return default_instance().GetMetadata().reflection;
583 }
584 static const GLogConfig& default_instance() {
585 return *internal_default_instance();
586 }
587 static inline const GLogConfig* internal_default_instance() {
588 return reinterpret_cast<const GLogConfig*>(
590 }
591 static constexpr int kIndexInFileMessages =
592 2;
593
594 friend void swap(GLogConfig& a, GLogConfig& b) {
595 a.Swap(&b);
596 }
597 inline void Swap(GLogConfig* other) {
598 if (other == this) return;
599 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
600 if (GetOwningArena() != nullptr &&
601 GetOwningArena() == other->GetOwningArena()) {
602 #else // PROTOBUF_FORCE_COPY_IN_SWAP
603 if (GetOwningArena() == other->GetOwningArena()) {
604 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
605 InternalSwap(other);
606 } else {
607 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
608 }
609 }
611 if (other == this) return;
612 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
613 InternalSwap(other);
614 }
615
616 // implements Message ----------------------------------------------
617
618 GLogConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
619 return CreateMaybeMessage<GLogConfig>(arena);
620 }
621 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
622 void CopyFrom(const GLogConfig& from);
623 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
624 void MergeFrom( const GLogConfig& from) {
625 GLogConfig::MergeImpl(*this, from);
626 }
627 private:
628 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
629 public:
630 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
631 bool IsInitialized() const final;
632
633 size_t ByteSizeLong() const final;
634 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
635 uint8_t* _InternalSerialize(
636 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
637 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
638
639 private:
640 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
641 void SharedDtor();
642 void SetCachedSize(int size) const final;
643 void InternalSwap(GLogConfig* other);
644
645 private:
646 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
647 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
648 return "goby.util.protobuf.GLogConfig";
649 }
650 protected:
651 explicit GLogConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
652 bool is_message_owned = false);
653 public:
654
655 static const ClassData _class_data_;
656 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
657
658 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
659
660 // nested types ----------------------------------------------------
661
663
665 static constexpr Verbosity QUIET =
666 GLogConfig_Verbosity_QUIET;
667 static constexpr Verbosity WARN =
668 GLogConfig_Verbosity_WARN;
669 static constexpr Verbosity VERBOSE =
670 GLogConfig_Verbosity_VERBOSE;
671 static constexpr Verbosity DEBUG1 =
672 GLogConfig_Verbosity_DEBUG1;
673 static constexpr Verbosity DEBUG2 =
674 GLogConfig_Verbosity_DEBUG2;
675 static constexpr Verbosity DEBUG3 =
676 GLogConfig_Verbosity_DEBUG3;
677 static inline bool Verbosity_IsValid(int value) {
678 return GLogConfig_Verbosity_IsValid(value);
679 }
680 static constexpr Verbosity Verbosity_MIN =
682 static constexpr Verbosity Verbosity_MAX =
684 static constexpr int Verbosity_ARRAYSIZE =
686 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
690 template<typename T>
691 static inline const std::string& Verbosity_Name(T enum_t_value) {
692 static_assert(::std::is_same<T, Verbosity>::value ||
693 ::std::is_integral<T>::value,
694 "Incorrect type passed to function Verbosity_Name.");
695 return GLogConfig_Verbosity_Name(enum_t_value);
696 }
697 static inline bool Verbosity_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
698 Verbosity* value) {
699 return GLogConfig_Verbosity_Parse(name, value);
700 }
701
702 // accessors -------------------------------------------------------
703
704 enum : int {
705 kFileLogFieldNumber = 3,
706 kShowGuiFieldNumber = 2,
707 kShowDcclLogFieldNumber = 4,
708 kTtyVerbosityFieldNumber = 1,
709 };
710 // optional .goby.util.protobuf.GLogConfig.FileLog file_log = 3 [(.goby.field) = {
711 bool has_file_log() const;
712 private:
713 bool _internal_has_file_log() const;
714 public:
715 void clear_file_log();
716 const ::goby::util::protobuf::GLogConfig_FileLog& file_log() const;
717 PROTOBUF_NODISCARD ::goby::util::protobuf::GLogConfig_FileLog* release_file_log();
719 void set_allocated_file_log(::goby::util::protobuf::GLogConfig_FileLog* file_log);
720 private:
721 const ::goby::util::protobuf::GLogConfig_FileLog& _internal_file_log() const;
722 ::goby::util::protobuf::GLogConfig_FileLog* _internal_mutable_file_log();
723 public:
724 void unsafe_arena_set_allocated_file_log(
726 ::goby::util::protobuf::GLogConfig_FileLog* unsafe_arena_release_file_log();
727
728 // optional bool show_gui = 2 [default = false, (.goby.field) = {
729 bool has_show_gui() const;
730 private:
731 bool _internal_has_show_gui() const;
732 public:
733 void clear_show_gui();
734 bool show_gui() const;
735 void set_show_gui(bool value);
736 private:
737 bool _internal_show_gui() const;
738 void _internal_set_show_gui(bool value);
739 public:
740
741 // optional bool show_dccl_log = 4 [default = false, (.goby.field) = {
742 bool has_show_dccl_log() const;
743 private:
744 bool _internal_has_show_dccl_log() const;
745 public:
746 void clear_show_dccl_log();
747 bool show_dccl_log() const;
748 void set_show_dccl_log(bool value);
749 private:
750 bool _internal_show_dccl_log() const;
751 void _internal_set_show_dccl_log(bool value);
752 public:
753
754 // optional .goby.util.protobuf.GLogConfig.Verbosity tty_verbosity = 1 [default = QUIET, (.goby.field) = {
755 bool has_tty_verbosity() const;
756 private:
757 bool _internal_has_tty_verbosity() const;
758 public:
759 void clear_tty_verbosity();
761 void set_tty_verbosity(::goby::util::protobuf::GLogConfig_Verbosity value);
762 private:
763 ::goby::util::protobuf::GLogConfig_Verbosity _internal_tty_verbosity() const;
764 void _internal_set_tty_verbosity(::goby::util::protobuf::GLogConfig_Verbosity value);
765 public:
766
767 // @@protoc_insertion_point(class_scope:goby.util.protobuf.GLogConfig)
768 private:
769 class _Internal;
770
771 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
772 typedef void InternalArenaConstructable_;
773 typedef void DestructorSkippable_;
774 struct Impl_ {
775 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
776 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
778 bool show_gui_;
779 bool show_dccl_log_;
780 int tty_verbosity_;
781 };
782 union { Impl_ _impl_; };
783 friend struct ::TableStruct_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto;
784};
785// ===================================================================
786
787
788// ===================================================================
789
790#ifdef __GNUC__
791 #pragma GCC diagnostic push
792 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
793#endif // __GNUC__
794// GLogConfig_FileLog_Omit
795
796// optional bool file_timestamp = 1 [default = false];
797inline bool GLogConfig_FileLog_Omit::_internal_has_file_timestamp() const {
798 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
799 return value;
800}
801inline bool GLogConfig_FileLog_Omit::has_file_timestamp() const {
802 return _internal_has_file_timestamp();
803}
804inline void GLogConfig_FileLog_Omit::clear_file_timestamp() {
805 _impl_.file_timestamp_ = false;
806 _impl_._has_bits_[0] &= ~0x00000001u;
807}
808inline bool GLogConfig_FileLog_Omit::_internal_file_timestamp() const {
809 return _impl_.file_timestamp_;
810}
811inline bool GLogConfig_FileLog_Omit::file_timestamp() const {
812 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.FileLog.Omit.file_timestamp)
813 return _internal_file_timestamp();
814}
815inline void GLogConfig_FileLog_Omit::_internal_set_file_timestamp(bool value) {
816 _impl_._has_bits_[0] |= 0x00000001u;
817 _impl_.file_timestamp_ = value;
818}
819inline void GLogConfig_FileLog_Omit::set_file_timestamp(bool value) {
820 _internal_set_file_timestamp(value);
821 // @@protoc_insertion_point(field_set:goby.util.protobuf.GLogConfig.FileLog.Omit.file_timestamp)
822}
823
824// optional bool latest_symlink = 2 [default = false];
825inline bool GLogConfig_FileLog_Omit::_internal_has_latest_symlink() const {
826 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
827 return value;
828}
829inline bool GLogConfig_FileLog_Omit::has_latest_symlink() const {
830 return _internal_has_latest_symlink();
831}
832inline void GLogConfig_FileLog_Omit::clear_latest_symlink() {
833 _impl_.latest_symlink_ = false;
834 _impl_._has_bits_[0] &= ~0x00000002u;
835}
836inline bool GLogConfig_FileLog_Omit::_internal_latest_symlink() const {
837 return _impl_.latest_symlink_;
838}
839inline bool GLogConfig_FileLog_Omit::latest_symlink() const {
840 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.FileLog.Omit.latest_symlink)
841 return _internal_latest_symlink();
842}
843inline void GLogConfig_FileLog_Omit::_internal_set_latest_symlink(bool value) {
844 _impl_._has_bits_[0] |= 0x00000002u;
845 _impl_.latest_symlink_ = value;
846}
847inline void GLogConfig_FileLog_Omit::set_latest_symlink(bool value) {
848 _internal_set_latest_symlink(value);
849 // @@protoc_insertion_point(field_set:goby.util.protobuf.GLogConfig.FileLog.Omit.latest_symlink)
850}
851
852// -------------------------------------------------------------------
853
854// GLogConfig_FileLog
855
856// optional string file_name = 1 [default = "%2%_%1%.txt", (.goby.field) = {
857inline bool GLogConfig_FileLog::_internal_has_file_name() const {
858 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
859 return value;
860}
861inline bool GLogConfig_FileLog::has_file_name() const {
862 return _internal_has_file_name();
863}
864inline void GLogConfig_FileLog::clear_file_name() {
865 _impl_.file_name_.ClearToDefault(::goby::util::protobuf::GLogConfig_FileLog::Impl_::_i_give_permission_to_break_this_code_default_file_name_, GetArenaForAllocation());
866 _impl_._has_bits_[0] &= ~0x00000001u;
867}
868inline const std::string& GLogConfig_FileLog::file_name() const {
869 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.FileLog.file_name)
870 if (_impl_.file_name_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_file_name_.get();
871 return _internal_file_name();
872}
873template <typename ArgT0, typename... ArgT>
874inline PROTOBUF_ALWAYS_INLINE
875void GLogConfig_FileLog::set_file_name(ArgT0&& arg0, ArgT... args) {
876 _impl_._has_bits_[0] |= 0x00000001u;
877 _impl_.file_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
878 // @@protoc_insertion_point(field_set:goby.util.protobuf.GLogConfig.FileLog.file_name)
879}
880inline std::string* GLogConfig_FileLog::mutable_file_name() {
881 std::string* _s = _internal_mutable_file_name();
882 // @@protoc_insertion_point(field_mutable:goby.util.protobuf.GLogConfig.FileLog.file_name)
883 return _s;
884}
885inline const std::string& GLogConfig_FileLog::_internal_file_name() const {
886 return _impl_.file_name_.Get();
887}
888inline void GLogConfig_FileLog::_internal_set_file_name(const std::string& value) {
889 _impl_._has_bits_[0] |= 0x00000001u;
890 _impl_.file_name_.Set(value, GetArenaForAllocation());
891}
892inline std::string* GLogConfig_FileLog::_internal_mutable_file_name() {
893 _impl_._has_bits_[0] |= 0x00000001u;
894 return _impl_.file_name_.Mutable(::goby::util::protobuf::GLogConfig_FileLog::Impl_::_i_give_permission_to_break_this_code_default_file_name_, GetArenaForAllocation());
895}
896inline std::string* GLogConfig_FileLog::release_file_name() {
897 // @@protoc_insertion_point(field_release:goby.util.protobuf.GLogConfig.FileLog.file_name)
898 if (!_internal_has_file_name()) {
899 return nullptr;
900 }
901 _impl_._has_bits_[0] &= ~0x00000001u;
902 auto* p = _impl_.file_name_.Release();
903 return p;
904}
905inline void GLogConfig_FileLog::set_allocated_file_name(std::string* file_name) {
906 if (file_name != nullptr) {
907 _impl_._has_bits_[0] |= 0x00000001u;
908 } else {
909 _impl_._has_bits_[0] &= ~0x00000001u;
910 }
911 _impl_.file_name_.SetAllocated(file_name, GetArenaForAllocation());
912 // @@protoc_insertion_point(field_set_allocated:goby.util.protobuf.GLogConfig.FileLog.file_name)
913}
914
915// optional string file_dir = 2 [(.goby.field) = {
916inline bool GLogConfig_FileLog::_internal_has_file_dir() const {
917 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
918 return value;
919}
920inline bool GLogConfig_FileLog::has_file_dir() const {
921 return _internal_has_file_dir();
922}
923inline void GLogConfig_FileLog::clear_file_dir() {
924 _impl_.file_dir_.ClearToEmpty();
925 _impl_._has_bits_[0] &= ~0x00000002u;
926}
927inline const std::string& GLogConfig_FileLog::file_dir() const {
928 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.FileLog.file_dir)
929 return _internal_file_dir();
930}
931template <typename ArgT0, typename... ArgT>
932inline PROTOBUF_ALWAYS_INLINE
933void GLogConfig_FileLog::set_file_dir(ArgT0&& arg0, ArgT... args) {
934 _impl_._has_bits_[0] |= 0x00000002u;
935 _impl_.file_dir_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
936 // @@protoc_insertion_point(field_set:goby.util.protobuf.GLogConfig.FileLog.file_dir)
937}
938inline std::string* GLogConfig_FileLog::mutable_file_dir() {
939 std::string* _s = _internal_mutable_file_dir();
940 // @@protoc_insertion_point(field_mutable:goby.util.protobuf.GLogConfig.FileLog.file_dir)
941 return _s;
942}
943inline const std::string& GLogConfig_FileLog::_internal_file_dir() const {
944 return _impl_.file_dir_.Get();
945}
946inline void GLogConfig_FileLog::_internal_set_file_dir(const std::string& value) {
947 _impl_._has_bits_[0] |= 0x00000002u;
948 _impl_.file_dir_.Set(value, GetArenaForAllocation());
949}
950inline std::string* GLogConfig_FileLog::_internal_mutable_file_dir() {
951 _impl_._has_bits_[0] |= 0x00000002u;
952 return _impl_.file_dir_.Mutable(GetArenaForAllocation());
953}
954inline std::string* GLogConfig_FileLog::release_file_dir() {
955 // @@protoc_insertion_point(field_release:goby.util.protobuf.GLogConfig.FileLog.file_dir)
956 if (!_internal_has_file_dir()) {
957 return nullptr;
958 }
959 _impl_._has_bits_[0] &= ~0x00000002u;
960 auto* p = _impl_.file_dir_.Release();
961#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
962 if (_impl_.file_dir_.IsDefault()) {
963 _impl_.file_dir_.Set("", GetArenaForAllocation());
964 }
965#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
966 return p;
967}
968inline void GLogConfig_FileLog::set_allocated_file_dir(std::string* file_dir) {
969 if (file_dir != nullptr) {
970 _impl_._has_bits_[0] |= 0x00000002u;
971 } else {
972 _impl_._has_bits_[0] &= ~0x00000002u;
973 }
974 _impl_.file_dir_.SetAllocated(file_dir, GetArenaForAllocation());
975#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
976 if (_impl_.file_dir_.IsDefault()) {
977 _impl_.file_dir_.Set("", GetArenaForAllocation());
978 }
979#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
980 // @@protoc_insertion_point(field_set_allocated:goby.util.protobuf.GLogConfig.FileLog.file_dir)
981}
982
983// optional .goby.util.protobuf.GLogConfig.Verbosity verbosity = 3 [default = VERBOSE, (.goby.field) = {
984inline bool GLogConfig_FileLog::_internal_has_verbosity() const {
985 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
986 return value;
987}
988inline bool GLogConfig_FileLog::has_verbosity() const {
989 return _internal_has_verbosity();
990}
991inline void GLogConfig_FileLog::clear_verbosity() {
992 _impl_.verbosity_ = 4;
993 _impl_._has_bits_[0] &= ~0x00000010u;
994}
995inline ::goby::util::protobuf::GLogConfig_Verbosity GLogConfig_FileLog::_internal_verbosity() const {
996 return static_cast< ::goby::util::protobuf::GLogConfig_Verbosity >(_impl_.verbosity_);
997}
998inline ::goby::util::protobuf::GLogConfig_Verbosity GLogConfig_FileLog::verbosity() const {
999 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.FileLog.verbosity)
1000 return _internal_verbosity();
1001}
1002inline void GLogConfig_FileLog::_internal_set_verbosity(::goby::util::protobuf::GLogConfig_Verbosity value) {
1004 _impl_._has_bits_[0] |= 0x00000010u;
1005 _impl_.verbosity_ = value;
1006}
1007inline void GLogConfig_FileLog::set_verbosity(::goby::util::protobuf::GLogConfig_Verbosity value) {
1008 _internal_set_verbosity(value);
1009 // @@protoc_insertion_point(field_set:goby.util.protobuf.GLogConfig.FileLog.verbosity)
1010}
1011
1012// optional uint32 log_rotate_sec = 4 [(.goby.field) = {
1013inline bool GLogConfig_FileLog::_internal_has_log_rotate_sec() const {
1014 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1015 return value;
1016}
1017inline bool GLogConfig_FileLog::has_log_rotate_sec() const {
1018 return _internal_has_log_rotate_sec();
1019}
1020inline void GLogConfig_FileLog::clear_log_rotate_sec() {
1021 _impl_.log_rotate_sec_ = 0u;
1022 _impl_._has_bits_[0] &= ~0x00000008u;
1023}
1024inline uint32_t GLogConfig_FileLog::_internal_log_rotate_sec() const {
1025 return _impl_.log_rotate_sec_;
1026}
1027inline uint32_t GLogConfig_FileLog::log_rotate_sec() const {
1028 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.FileLog.log_rotate_sec)
1029 return _internal_log_rotate_sec();
1030}
1031inline void GLogConfig_FileLog::_internal_set_log_rotate_sec(uint32_t value) {
1032 _impl_._has_bits_[0] |= 0x00000008u;
1033 _impl_.log_rotate_sec_ = value;
1034}
1035inline void GLogConfig_FileLog::set_log_rotate_sec(uint32_t value) {
1036 _internal_set_log_rotate_sec(value);
1037 // @@protoc_insertion_point(field_set:goby.util.protobuf.GLogConfig.FileLog.log_rotate_sec)
1038}
1039
1040// optional .goby.util.protobuf.GLogConfig.FileLog.Omit omit = 5;
1041inline bool GLogConfig_FileLog::_internal_has_omit() const {
1042 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1043 PROTOBUF_ASSUME(!value || _impl_.omit_ != nullptr);
1044 return value;
1045}
1046inline bool GLogConfig_FileLog::has_omit() const {
1047 return _internal_has_omit();
1048}
1049inline void GLogConfig_FileLog::clear_omit() {
1050 if (_impl_.omit_ != nullptr) _impl_.omit_->Clear();
1051 _impl_._has_bits_[0] &= ~0x00000004u;
1052}
1053inline const ::goby::util::protobuf::GLogConfig_FileLog_Omit& GLogConfig_FileLog::_internal_omit() const {
1054 const ::goby::util::protobuf::GLogConfig_FileLog_Omit* p = _impl_.omit_;
1055 return p != nullptr ? *p : reinterpret_cast<const ::goby::util::protobuf::GLogConfig_FileLog_Omit&>(
1057}
1058inline const ::goby::util::protobuf::GLogConfig_FileLog_Omit& GLogConfig_FileLog::omit() const {
1059 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.FileLog.omit)
1060 return _internal_omit();
1061}
1062inline void GLogConfig_FileLog::unsafe_arena_set_allocated_omit(
1064 if (GetArenaForAllocation() == nullptr) {
1065 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.omit_);
1066 }
1067 _impl_.omit_ = omit;
1068 if (omit) {
1069 _impl_._has_bits_[0] |= 0x00000004u;
1070 } else {
1071 _impl_._has_bits_[0] &= ~0x00000004u;
1072 }
1073 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.util.protobuf.GLogConfig.FileLog.omit)
1074}
1075inline ::goby::util::protobuf::GLogConfig_FileLog_Omit* GLogConfig_FileLog::release_omit() {
1076 _impl_._has_bits_[0] &= ~0x00000004u;
1078 _impl_.omit_ = nullptr;
1079#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1080 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1081 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1082 if (GetArenaForAllocation() == nullptr) { delete old; }
1083#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1084 if (GetArenaForAllocation() != nullptr) {
1085 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1086 }
1087#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1088 return temp;
1089}
1090inline ::goby::util::protobuf::GLogConfig_FileLog_Omit* GLogConfig_FileLog::unsafe_arena_release_omit() {
1091 // @@protoc_insertion_point(field_release:goby.util.protobuf.GLogConfig.FileLog.omit)
1092 _impl_._has_bits_[0] &= ~0x00000004u;
1094 _impl_.omit_ = nullptr;
1095 return temp;
1096}
1097inline ::goby::util::protobuf::GLogConfig_FileLog_Omit* GLogConfig_FileLog::_internal_mutable_omit() {
1098 _impl_._has_bits_[0] |= 0x00000004u;
1099 if (_impl_.omit_ == nullptr) {
1101 _impl_.omit_ = p;
1102 }
1103 return _impl_.omit_;
1104}
1105inline ::goby::util::protobuf::GLogConfig_FileLog_Omit* GLogConfig_FileLog::mutable_omit() {
1106 ::goby::util::protobuf::GLogConfig_FileLog_Omit* _msg = _internal_mutable_omit();
1107 // @@protoc_insertion_point(field_mutable:goby.util.protobuf.GLogConfig.FileLog.omit)
1108 return _msg;
1109}
1110inline void GLogConfig_FileLog::set_allocated_omit(::goby::util::protobuf::GLogConfig_FileLog_Omit* omit) {
1111 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1112 if (message_arena == nullptr) {
1113 delete _impl_.omit_;
1114 }
1115 if (omit) {
1116 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1117 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(omit);
1118 if (message_arena != submessage_arena) {
1119 omit = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1120 message_arena, omit, submessage_arena);
1121 }
1122 _impl_._has_bits_[0] |= 0x00000004u;
1123 } else {
1124 _impl_._has_bits_[0] &= ~0x00000004u;
1125 }
1126 _impl_.omit_ = omit;
1127 // @@protoc_insertion_point(field_set_allocated:goby.util.protobuf.GLogConfig.FileLog.omit)
1128}
1129
1130// -------------------------------------------------------------------
1131
1132// GLogConfig
1133
1134// optional .goby.util.protobuf.GLogConfig.Verbosity tty_verbosity = 1 [default = QUIET, (.goby.field) = {
1135inline bool GLogConfig::_internal_has_tty_verbosity() const {
1136 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1137 return value;
1138}
1139inline bool GLogConfig::has_tty_verbosity() const {
1140 return _internal_has_tty_verbosity();
1141}
1142inline void GLogConfig::clear_tty_verbosity() {
1143 _impl_.tty_verbosity_ = 1;
1144 _impl_._has_bits_[0] &= ~0x00000008u;
1145}
1146inline ::goby::util::protobuf::GLogConfig_Verbosity GLogConfig::_internal_tty_verbosity() const {
1147 return static_cast< ::goby::util::protobuf::GLogConfig_Verbosity >(_impl_.tty_verbosity_);
1148}
1149inline ::goby::util::protobuf::GLogConfig_Verbosity GLogConfig::tty_verbosity() const {
1150 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.tty_verbosity)
1151 return _internal_tty_verbosity();
1152}
1153inline void GLogConfig::_internal_set_tty_verbosity(::goby::util::protobuf::GLogConfig_Verbosity value) {
1155 _impl_._has_bits_[0] |= 0x00000008u;
1156 _impl_.tty_verbosity_ = value;
1157}
1158inline void GLogConfig::set_tty_verbosity(::goby::util::protobuf::GLogConfig_Verbosity value) {
1159 _internal_set_tty_verbosity(value);
1160 // @@protoc_insertion_point(field_set:goby.util.protobuf.GLogConfig.tty_verbosity)
1161}
1162
1163// optional bool show_gui = 2 [default = false, (.goby.field) = {
1164inline bool GLogConfig::_internal_has_show_gui() const {
1165 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1166 return value;
1167}
1168inline bool GLogConfig::has_show_gui() const {
1169 return _internal_has_show_gui();
1170}
1171inline void GLogConfig::clear_show_gui() {
1172 _impl_.show_gui_ = false;
1173 _impl_._has_bits_[0] &= ~0x00000002u;
1174}
1175inline bool GLogConfig::_internal_show_gui() const {
1176 return _impl_.show_gui_;
1177}
1178inline bool GLogConfig::show_gui() const {
1179 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.show_gui)
1180 return _internal_show_gui();
1181}
1182inline void GLogConfig::_internal_set_show_gui(bool value) {
1183 _impl_._has_bits_[0] |= 0x00000002u;
1184 _impl_.show_gui_ = value;
1185}
1186inline void GLogConfig::set_show_gui(bool value) {
1187 _internal_set_show_gui(value);
1188 // @@protoc_insertion_point(field_set:goby.util.protobuf.GLogConfig.show_gui)
1189}
1190
1191// optional .goby.util.protobuf.GLogConfig.FileLog file_log = 3 [(.goby.field) = {
1192inline bool GLogConfig::_internal_has_file_log() const {
1193 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1194 PROTOBUF_ASSUME(!value || _impl_.file_log_ != nullptr);
1195 return value;
1196}
1197inline bool GLogConfig::has_file_log() const {
1198 return _internal_has_file_log();
1199}
1200inline void GLogConfig::clear_file_log() {
1201 if (_impl_.file_log_ != nullptr) _impl_.file_log_->Clear();
1202 _impl_._has_bits_[0] &= ~0x00000001u;
1203}
1204inline const ::goby::util::protobuf::GLogConfig_FileLog& GLogConfig::_internal_file_log() const {
1205 const ::goby::util::protobuf::GLogConfig_FileLog* p = _impl_.file_log_;
1206 return p != nullptr ? *p : reinterpret_cast<const ::goby::util::protobuf::GLogConfig_FileLog&>(
1208}
1209inline const ::goby::util::protobuf::GLogConfig_FileLog& GLogConfig::file_log() const {
1210 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.file_log)
1211 return _internal_file_log();
1212}
1213inline void GLogConfig::unsafe_arena_set_allocated_file_log(
1215 if (GetArenaForAllocation() == nullptr) {
1216 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.file_log_);
1217 }
1218 _impl_.file_log_ = file_log;
1219 if (file_log) {
1220 _impl_._has_bits_[0] |= 0x00000001u;
1221 } else {
1222 _impl_._has_bits_[0] &= ~0x00000001u;
1223 }
1224 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.util.protobuf.GLogConfig.file_log)
1225}
1226inline ::goby::util::protobuf::GLogConfig_FileLog* GLogConfig::release_file_log() {
1227 _impl_._has_bits_[0] &= ~0x00000001u;
1228 ::goby::util::protobuf::GLogConfig_FileLog* temp = _impl_.file_log_;
1229 _impl_.file_log_ = nullptr;
1230#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1231 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1232 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1233 if (GetArenaForAllocation() == nullptr) { delete old; }
1234#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1235 if (GetArenaForAllocation() != nullptr) {
1236 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1237 }
1238#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1239 return temp;
1240}
1241inline ::goby::util::protobuf::GLogConfig_FileLog* GLogConfig::unsafe_arena_release_file_log() {
1242 // @@protoc_insertion_point(field_release:goby.util.protobuf.GLogConfig.file_log)
1243 _impl_._has_bits_[0] &= ~0x00000001u;
1244 ::goby::util::protobuf::GLogConfig_FileLog* temp = _impl_.file_log_;
1245 _impl_.file_log_ = nullptr;
1246 return temp;
1247}
1248inline ::goby::util::protobuf::GLogConfig_FileLog* GLogConfig::_internal_mutable_file_log() {
1249 _impl_._has_bits_[0] |= 0x00000001u;
1250 if (_impl_.file_log_ == nullptr) {
1251 auto* p = CreateMaybeMessage<::goby::util::protobuf::GLogConfig_FileLog>(GetArenaForAllocation());
1252 _impl_.file_log_ = p;
1253 }
1254 return _impl_.file_log_;
1255}
1256inline ::goby::util::protobuf::GLogConfig_FileLog* GLogConfig::mutable_file_log() {
1257 ::goby::util::protobuf::GLogConfig_FileLog* _msg = _internal_mutable_file_log();
1258 // @@protoc_insertion_point(field_mutable:goby.util.protobuf.GLogConfig.file_log)
1259 return _msg;
1260}
1261inline void GLogConfig::set_allocated_file_log(::goby::util::protobuf::GLogConfig_FileLog* file_log) {
1262 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1263 if (message_arena == nullptr) {
1264 delete _impl_.file_log_;
1265 }
1266 if (file_log) {
1267 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1268 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(file_log);
1269 if (message_arena != submessage_arena) {
1270 file_log = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1271 message_arena, file_log, submessage_arena);
1272 }
1273 _impl_._has_bits_[0] |= 0x00000001u;
1274 } else {
1275 _impl_._has_bits_[0] &= ~0x00000001u;
1276 }
1277 _impl_.file_log_ = file_log;
1278 // @@protoc_insertion_point(field_set_allocated:goby.util.protobuf.GLogConfig.file_log)
1279}
1280
1281// optional bool show_dccl_log = 4 [default = false, (.goby.field) = {
1282inline bool GLogConfig::_internal_has_show_dccl_log() const {
1283 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1284 return value;
1285}
1286inline bool GLogConfig::has_show_dccl_log() const {
1287 return _internal_has_show_dccl_log();
1288}
1289inline void GLogConfig::clear_show_dccl_log() {
1290 _impl_.show_dccl_log_ = false;
1291 _impl_._has_bits_[0] &= ~0x00000004u;
1292}
1293inline bool GLogConfig::_internal_show_dccl_log() const {
1294 return _impl_.show_dccl_log_;
1295}
1296inline bool GLogConfig::show_dccl_log() const {
1297 // @@protoc_insertion_point(field_get:goby.util.protobuf.GLogConfig.show_dccl_log)
1298 return _internal_show_dccl_log();
1299}
1300inline void GLogConfig::_internal_set_show_dccl_log(bool value) {
1301 _impl_._has_bits_[0] |= 0x00000004u;
1302 _impl_.show_dccl_log_ = value;
1303}
1304inline void GLogConfig::set_show_dccl_log(bool value) {
1305 _internal_set_show_dccl_log(value);
1306 // @@protoc_insertion_point(field_set:goby.util.protobuf.GLogConfig.show_dccl_log)
1307}
1308
1309#ifdef __GNUC__
1310 #pragma GCC diagnostic pop
1311#endif // __GNUC__
1312// -------------------------------------------------------------------
1313
1314// -------------------------------------------------------------------
1315
1316
1317// @@protoc_insertion_point(namespace_scope)
1318
1319} // namespace protobuf
1320} // namespace util
1321} // namespace goby
1322
1323PROTOBUF_NAMESPACE_OPEN
1324
1325template <> struct is_proto_enum< ::goby::util::protobuf::GLogConfig_Verbosity> : ::std::true_type {};
1326template <>
1328 return ::goby::util::protobuf::GLogConfig_Verbosity_descriptor();
1329}
1330
1331PROTOBUF_NAMESPACE_CLOSE
1332
1333// @@protoc_insertion_point(global_scope)
1334
1335#include <google/protobuf/port_undef.inc>
1336#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
GLogConfig_FileLog_Omit * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void CopyFrom(const GLogConfig_FileLog_Omit &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const GLogConfig_FileLog_Omit &from)
GLogConfig_FileLog_Omit(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
GLogConfig_FileLog_Omit & operator=(GLogConfig_FileLog_Omit &&from) noexcept
void Swap(GLogConfig_FileLog_Omit *other)
static const GLogConfig_FileLog_Omit * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
GLogConfig_FileLog_Omit & operator=(const GLogConfig_FileLog_Omit &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const GLogConfig_FileLog_Omit & default_instance()
friend void swap(GLogConfig_FileLog_Omit &a, GLogConfig_FileLog_Omit &b)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void UnsafeArenaSwap(GLogConfig_FileLog_Omit *other)
GLogConfig_FileLog_Omit(GLogConfig_FileLog_Omit &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_CONSTEXPR GLogConfig_FileLog_Omit(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
GLogConfig_FileLog_Omit(const GLogConfig_FileLog_Omit &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void CopyFrom(const GLogConfig_FileLog &from)
GLogConfig_FileLog(const GLogConfig_FileLog &from)
friend void swap(GLogConfig_FileLog &a, GLogConfig_FileLog &b)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_log_rotate_sec_with_units(Quantity value_w_units)
void set_file_dir(ArgT0 &&arg0, ArgT... args)
PROTOBUF_CONSTEXPR GLogConfig_FileLog(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
GLogConfig_FileLog(GLogConfig_FileLog &&from) noexcept
static const GLogConfig_FileLog & default_instance()
boost::units::quantity< log_rotate_sec_unit, google::protobuf::uint32 > log_rotate_sec_with_units() const
boost::units::unit< log_rotate_sec_dimension, boost::units::si::system > log_rotate_sec_unit
GLogConfig_FileLog & operator=(const GLogConfig_FileLog &from)
void set_file_name(ArgT0 &&arg0, ArgT... args)
void Swap(GLogConfig_FileLog *other)
GLogConfig_FileLog & operator=(GLogConfig_FileLog &&from) noexcept
static const GLogConfig_FileLog * internal_default_instance()
void MergeFrom(const GLogConfig_FileLog &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void UnsafeArenaSwap(GLogConfig_FileLog *other)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
GLogConfig_FileLog(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type log_rotate_sec_dimension
GLogConfig_FileLog * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
GLogConfig & operator=(GLogConfig &&from) noexcept
static const std::string & Verbosity_Name(T enum_t_value)
static const ClassData _class_data_
void UnsafeArenaSwap(GLogConfig *other)
static bool Verbosity_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Verbosity *value)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const GLogConfig * internal_default_instance()
GLogConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
GLogConfig(const GLogConfig &from)
static const GLogConfig & default_instance()
friend void swap(GLogConfig &a, GLogConfig &b)
void MergeFrom(const GLogConfig &from)
GLogConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
GLogConfig(GLogConfig &&from) noexcept
PROTOBUF_CONSTEXPR GLogConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void CopyFrom(const GLogConfig &from)
GLogConfig & operator=(const GLogConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Verbosity_descriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
::goby::util::protobuf::GLogConfig_FileLog * Arena::CreateMaybeMessage<::goby::util::protobuf::GLogConfig_FileLog >(Arena *)
::goby::util::protobuf::GLogConfig_FileLog_Omit * Arena::CreateMaybeMessage<::goby::util::protobuf::GLogConfig_FileLog_Omit >(Arena *)
const EnumDescriptor * GetEnumDescriptor< ::goby::util::protobuf::GLogConfig_Verbosity >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
bool GLogConfig_Verbosity_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GLogConfig_Verbosity *value)
GLogConfig_FileLogDefaultTypeInternal _GLogConfig_FileLog_default_instance_
bool GLogConfig_Verbosity_IsValid(int value)
constexpr int GLogConfig_Verbosity_Verbosity_ARRAYSIZE
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * GLogConfig_Verbosity_descriptor()
GLogConfigDefaultTypeInternal _GLogConfig_default_instance_
constexpr GLogConfig_Verbosity GLogConfig_Verbosity_Verbosity_MAX
constexpr GLogConfig_Verbosity GLogConfig_Verbosity_Verbosity_MIN
GLogConfig_FileLog_OmitDefaultTypeInternal _GLogConfig_FileLog_Omit_default_instance_
const std::string & GLogConfig_Verbosity_Name(T enum_t_value)
The global namespace for the Goby project.
#define ByteSizeLong