4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
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
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.
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>
31#include <google/protobuf/extension_set.h>
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>
41#include <boost/units/systems/si.hpp>
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
45PROTOBUF_NAMESPACE_OPEN
49PROTOBUF_NAMESPACE_CLOSE
60struct GLogConfigDefaultTypeInternal;
63struct GLogConfig_FileLogDefaultTypeInternal;
66struct GLogConfig_FileLog_OmitDefaultTypeInternal;
71PROTOBUF_NAMESPACE_OPEN
75PROTOBUF_NAMESPACE_CLOSE
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(
104 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<GLogConfig_Verbosity>(
110 public ::PROTOBUF_NAMESPACE_ID::Message {
119 *
this = ::std::move(from);
127 if (
this == &from)
return *
this;
128 if (GetOwningArena() == from.GetOwningArena()
129 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
130 && GetOwningArena() !=
nullptr
141 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
144 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
147 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
170 if (other ==
this)
return;
171 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
172 if (GetOwningArena() !=
nullptr &&
173 GetOwningArena() == other->GetOwningArena()) {
175 if (GetOwningArena() == other->GetOwningArena()) {
179 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
183 if (other ==
this)
return;
184 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
191 return CreateMaybeMessage<GLogConfig_FileLog_Omit>(arena);
193 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
195 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
197 GLogConfig_FileLog_Omit::MergeImpl(*
this, from);
200 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
202 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
208 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
212 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
214 void SetCachedSize(
int size)
const final;
218 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
219 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
220 return "goby.util.protobuf.GLogConfig.FileLog.Omit";
224 bool is_message_owned =
false);
228 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
243 bool _internal_has_file_timestamp()
const;
249 bool _internal_file_timestamp()
const;
250 void _internal_set_file_timestamp(
bool value);
256 bool _internal_has_latest_symlink()
const;
262 bool _internal_latest_symlink()
const;
263 void _internal_set_latest_symlink(
bool value);
270 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
271 typedef void InternalArenaConstructable_;
272 typedef void DestructorSkippable_;
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_;
280 friend struct ::TableStruct_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto;
285 public ::PROTOBUF_NAMESPACE_ID::Message {
289 explicit PROTOBUF_CONSTEXPR
GLogConfig_FileLog(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
294 *
this = ::std::move(from);
302 if (
this == &from)
return *
this;
303 if (GetOwningArena() == from.GetOwningArena()
304 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
305 && GetOwningArena() !=
nullptr
316 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
319 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
322 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
323 return GetDescriptor();
326 return default_instance().GetMetadata().descriptor;
329 return default_instance().GetMetadata().reflection;
332 return *internal_default_instance();
338 static constexpr int kIndexInFileMessages =
345 if (other ==
this)
return;
346 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
347 if (GetOwningArena() !=
nullptr &&
348 GetOwningArena() == other->GetOwningArena()) {
350 if (GetOwningArena() == other->GetOwningArena()) {
354 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
358 if (other ==
this)
return;
359 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
366 return CreateMaybeMessage<GLogConfig_FileLog>(arena);
368 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
370 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
372 GLogConfig_FileLog::MergeImpl(*
this, from);
375 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
377 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
378 bool IsInitialized() 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(); }
387 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
389 void SetCachedSize(
int size)
const final;
393 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
394 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
395 return "goby.util.protobuf.GLogConfig.FileLog";
399 bool is_message_owned =
false);
403 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
405 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
414 kFileNameFieldNumber = 1,
415 kFileDirFieldNumber = 2,
416 kOmitFieldNumber = 5,
417 kLogRotateSecFieldNumber = 4,
418 kVerbosityFieldNumber = 3,
421 bool has_file_name()
const;
423 bool _internal_has_file_name()
const;
425 void clear_file_name();
426 const std::string& file_name()
const;
427 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
429 std::string* mutable_file_name();
430 PROTOBUF_NODISCARD std::string* release_file_name();
431 void set_allocated_file_name(std::string* file_name);
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();
439 bool has_file_dir()
const;
441 bool _internal_has_file_dir()
const;
443 void clear_file_dir();
444 const std::string& file_dir()
const;
445 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
447 std::string* mutable_file_dir();
448 PROTOBUF_NODISCARD std::string* release_file_dir();
449 void set_allocated_file_dir(std::string* file_dir);
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();
457 bool has_omit()
const;
459 bool _internal_has_omit()
const;
462 const ::goby::util::protobuf::GLogConfig_FileLog_Omit& omit()
const;
463 PROTOBUF_NODISCARD ::goby::util::protobuf::GLogConfig_FileLog_Omit* release_omit();
467 const ::goby::util::protobuf::GLogConfig_FileLog_Omit& _internal_omit()
const;
470 void unsafe_arena_set_allocated_omit(
475 bool has_log_rotate_sec()
const;
477 bool _internal_has_log_rotate_sec()
const;
479 void clear_log_rotate_sec();
480 uint32_t log_rotate_sec()
const;
481 void set_log_rotate_sec(uint32_t value);
483 uint32_t _internal_log_rotate_sec()
const;
484 void _internal_set_log_rotate_sec(uint32_t value);
488 bool has_verbosity()
const;
490 bool _internal_has_verbosity()
const;
492 void clear_verbosity();
504 template<
typename Quantity >
506 { set_log_rotate_sec(boost::units::quantity<log_rotate_sec_unit,google::protobuf::uint32 >(value_w_units).value() ); };
508 template<
typename Quantity >
513 {
return log_rotate_sec_with_units<boost::units::quantity< log_rotate_sec_unit,google::protobuf::uint32 > >(); };
519 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
520 typedef void InternalArenaConstructable_;
521 typedef void DestructorSkippable_;
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_;
533 friend struct ::TableStruct_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto;
538 public ::PROTOBUF_NAMESPACE_ID::Message {
542 explicit PROTOBUF_CONSTEXPR
GLogConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
547 *
this = ::std::move(from);
555 if (
this == &from)
return *
this;
556 if (GetOwningArena() == from.GetOwningArena()
557 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
558 && GetOwningArena() !=
nullptr
569 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
572 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
575 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
576 return GetDescriptor();
579 return default_instance().GetMetadata().descriptor;
582 return default_instance().GetMetadata().reflection;
585 return *internal_default_instance();
591 static constexpr int kIndexInFileMessages =
598 if (other ==
this)
return;
599 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
600 if (GetOwningArena() !=
nullptr &&
601 GetOwningArena() == other->GetOwningArena()) {
603 if (GetOwningArena() == other->GetOwningArena()) {
607 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
611 if (other ==
this)
return;
612 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
618 GLogConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
619 return CreateMaybeMessage<GLogConfig>(arena);
621 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
623 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
625 GLogConfig::MergeImpl(*
this, from);
628 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
630 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
631 bool IsInitialized() 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(); }
640 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
642 void SetCachedSize(
int size)
const final;
646 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
647 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
648 return "goby.util.protobuf.GLogConfig";
652 bool is_message_owned =
false);
656 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
658 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
666 GLogConfig_Verbosity_QUIET;
668 GLogConfig_Verbosity_WARN;
670 GLogConfig_Verbosity_VERBOSE;
672 GLogConfig_Verbosity_DEBUG1;
674 GLogConfig_Verbosity_DEBUG2;
676 GLogConfig_Verbosity_DEBUG3;
677 static inline
bool Verbosity_IsValid(
int value) {
684 static constexpr int Verbosity_ARRAYSIZE =
686 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
692 static_assert(::std::is_same<T, Verbosity>::value ||
693 ::std::is_integral<T>::value,
694 "Incorrect type passed to function Verbosity_Name.");
705 kFileLogFieldNumber = 3,
706 kShowGuiFieldNumber = 2,
707 kShowDcclLogFieldNumber = 4,
708 kTtyVerbosityFieldNumber = 1,
711 bool has_file_log()
const;
713 bool _internal_has_file_log()
const;
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();
721 const ::goby::util::protobuf::GLogConfig_FileLog& _internal_file_log()
const;
724 void unsafe_arena_set_allocated_file_log(
729 bool has_show_gui()
const;
731 bool _internal_has_show_gui()
const;
733 void clear_show_gui();
734 bool show_gui()
const;
735 void set_show_gui(
bool value);
737 bool _internal_show_gui()
const;
738 void _internal_set_show_gui(
bool value);
742 bool has_show_dccl_log()
const;
744 bool _internal_has_show_dccl_log()
const;
746 void clear_show_dccl_log();
747 bool show_dccl_log()
const;
748 void set_show_dccl_log(
bool value);
750 bool _internal_show_dccl_log()
const;
751 void _internal_set_show_dccl_log(
bool value);
755 bool has_tty_verbosity()
const;
757 bool _internal_has_tty_verbosity()
const;
759 void clear_tty_verbosity();
771 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
772 typedef void InternalArenaConstructable_;
773 typedef void DestructorSkippable_;
775 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
776 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
783 friend struct ::TableStruct_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto;
791 #pragma GCC diagnostic push
792 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
797inline bool GLogConfig_FileLog_Omit::_internal_has_file_timestamp()
const {
798 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
801inline bool GLogConfig_FileLog_Omit::has_file_timestamp()
const {
802 return _internal_has_file_timestamp();
804inline void GLogConfig_FileLog_Omit::clear_file_timestamp() {
805 _impl_.file_timestamp_ =
false;
806 _impl_._has_bits_[0] &= ~0x00000001u;
808inline bool GLogConfig_FileLog_Omit::_internal_file_timestamp()
const {
809 return _impl_.file_timestamp_;
811inline bool GLogConfig_FileLog_Omit::file_timestamp()
const {
813 return _internal_file_timestamp();
815inline void GLogConfig_FileLog_Omit::_internal_set_file_timestamp(
bool value) {
816 _impl_._has_bits_[0] |= 0x00000001u;
817 _impl_.file_timestamp_ = value;
819inline void GLogConfig_FileLog_Omit::set_file_timestamp(
bool value) {
820 _internal_set_file_timestamp(value);
825inline bool GLogConfig_FileLog_Omit::_internal_has_latest_symlink()
const {
826 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
829inline bool GLogConfig_FileLog_Omit::has_latest_symlink()
const {
830 return _internal_has_latest_symlink();
832inline void GLogConfig_FileLog_Omit::clear_latest_symlink() {
833 _impl_.latest_symlink_ =
false;
834 _impl_._has_bits_[0] &= ~0x00000002u;
836inline bool GLogConfig_FileLog_Omit::_internal_latest_symlink()
const {
837 return _impl_.latest_symlink_;
839inline bool GLogConfig_FileLog_Omit::latest_symlink()
const {
841 return _internal_latest_symlink();
843inline void GLogConfig_FileLog_Omit::_internal_set_latest_symlink(
bool value) {
844 _impl_._has_bits_[0] |= 0x00000002u;
845 _impl_.latest_symlink_ = value;
847inline void GLogConfig_FileLog_Omit::set_latest_symlink(
bool value) {
848 _internal_set_latest_symlink(value);
857inline bool GLogConfig_FileLog::_internal_has_file_name()
const {
858 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
861inline bool GLogConfig_FileLog::has_file_name()
const {
862 return _internal_has_file_name();
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;
868inline const std::string& GLogConfig_FileLog::file_name()
const {
870 if (_impl_.file_name_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_file_name_.get();
871 return _internal_file_name();
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());
880inline std::string* GLogConfig_FileLog::mutable_file_name() {
881 std::string* _s = _internal_mutable_file_name();
885inline const std::string& GLogConfig_FileLog::_internal_file_name()
const {
886 return _impl_.file_name_.Get();
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());
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());
896inline std::string* GLogConfig_FileLog::release_file_name() {
898 if (!_internal_has_file_name()) {
901 _impl_._has_bits_[0] &= ~0x00000001u;
902 auto* p = _impl_.file_name_.Release();
905inline void GLogConfig_FileLog::set_allocated_file_name(std::string* file_name) {
906 if (file_name !=
nullptr) {
907 _impl_._has_bits_[0] |= 0x00000001u;
909 _impl_._has_bits_[0] &= ~0x00000001u;
911 _impl_.file_name_.SetAllocated(file_name, GetArenaForAllocation());
916inline bool GLogConfig_FileLog::_internal_has_file_dir()
const {
917 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
920inline bool GLogConfig_FileLog::has_file_dir()
const {
921 return _internal_has_file_dir();
923inline void GLogConfig_FileLog::clear_file_dir() {
924 _impl_.file_dir_.ClearToEmpty();
925 _impl_._has_bits_[0] &= ~0x00000002u;
927inline const std::string& GLogConfig_FileLog::file_dir()
const {
929 return _internal_file_dir();
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());
938inline std::string* GLogConfig_FileLog::mutable_file_dir() {
939 std::string* _s = _internal_mutable_file_dir();
943inline const std::string& GLogConfig_FileLog::_internal_file_dir()
const {
944 return _impl_.file_dir_.Get();
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());
950inline std::string* GLogConfig_FileLog::_internal_mutable_file_dir() {
951 _impl_._has_bits_[0] |= 0x00000002u;
952 return _impl_.file_dir_.Mutable(GetArenaForAllocation());
954inline std::string* GLogConfig_FileLog::release_file_dir() {
956 if (!_internal_has_file_dir()) {
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());
968inline void GLogConfig_FileLog::set_allocated_file_dir(std::string* file_dir) {
969 if (file_dir !=
nullptr) {
970 _impl_._has_bits_[0] |= 0x00000002u;
972 _impl_._has_bits_[0] &= ~0x00000002u;
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());
984inline bool GLogConfig_FileLog::_internal_has_verbosity()
const {
985 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
988inline bool GLogConfig_FileLog::has_verbosity()
const {
989 return _internal_has_verbosity();
991inline void GLogConfig_FileLog::clear_verbosity() {
992 _impl_.verbosity_ = 4;
993 _impl_._has_bits_[0] &= ~0x00000010u;
995inline ::goby::util::protobuf::GLogConfig_Verbosity GLogConfig_FileLog::_internal_verbosity()
const {
998inline ::goby::util::protobuf::GLogConfig_Verbosity GLogConfig_FileLog::verbosity()
const {
1000 return _internal_verbosity();
1004 _impl_._has_bits_[0] |= 0x00000010u;
1005 _impl_.verbosity_ = value;
1008 _internal_set_verbosity(value);
1013inline bool GLogConfig_FileLog::_internal_has_log_rotate_sec()
const {
1014 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1017inline bool GLogConfig_FileLog::has_log_rotate_sec()
const {
1018 return _internal_has_log_rotate_sec();
1020inline void GLogConfig_FileLog::clear_log_rotate_sec() {
1021 _impl_.log_rotate_sec_ = 0u;
1022 _impl_._has_bits_[0] &= ~0x00000008u;
1024inline uint32_t GLogConfig_FileLog::_internal_log_rotate_sec()
const {
1025 return _impl_.log_rotate_sec_;
1027inline uint32_t GLogConfig_FileLog::log_rotate_sec()
const {
1029 return _internal_log_rotate_sec();
1031inline void GLogConfig_FileLog::_internal_set_log_rotate_sec(uint32_t value) {
1032 _impl_._has_bits_[0] |= 0x00000008u;
1033 _impl_.log_rotate_sec_ = value;
1035inline void GLogConfig_FileLog::set_log_rotate_sec(uint32_t value) {
1036 _internal_set_log_rotate_sec(value);
1041inline bool GLogConfig_FileLog::_internal_has_omit()
const {
1042 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1043 PROTOBUF_ASSUME(!value || _impl_.omit_ !=
nullptr);
1046inline bool GLogConfig_FileLog::has_omit()
const {
1047 return _internal_has_omit();
1049inline void GLogConfig_FileLog::clear_omit() {
1050 if (_impl_.omit_ !=
nullptr) _impl_.omit_->Clear();
1051 _impl_._has_bits_[0] &= ~0x00000004u;
1053inline const ::goby::util::protobuf::GLogConfig_FileLog_Omit& GLogConfig_FileLog::_internal_omit()
const {
1054 const ::goby::util::protobuf::GLogConfig_FileLog_Omit* p = _impl_.omit_;
1058inline const ::goby::util::protobuf::GLogConfig_FileLog_Omit& GLogConfig_FileLog::omit()
const {
1060 return _internal_omit();
1062inline void GLogConfig_FileLog::unsafe_arena_set_allocated_omit(
1064 if (GetArenaForAllocation() ==
nullptr) {
1065 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.omit_);
1067 _impl_.omit_ = omit;
1069 _impl_._has_bits_[0] |= 0x00000004u;
1071 _impl_._has_bits_[0] &= ~0x00000004u;
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; }
1084 if (GetArenaForAllocation() !=
nullptr) {
1085 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1090inline ::goby::util::protobuf::GLogConfig_FileLog_Omit* GLogConfig_FileLog::unsafe_arena_release_omit() {
1092 _impl_._has_bits_[0] &= ~0x00000004u;
1094 _impl_.omit_ =
nullptr;
1097inline ::goby::util::protobuf::GLogConfig_FileLog_Omit* GLogConfig_FileLog::_internal_mutable_omit() {
1098 _impl_._has_bits_[0] |= 0x00000004u;
1099 if (_impl_.omit_ ==
nullptr) {
1103 return _impl_.omit_;
1105inline ::goby::util::protobuf::GLogConfig_FileLog_Omit* GLogConfig_FileLog::mutable_omit() {
1111 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1112 if (message_arena ==
nullptr) {
1113 delete _impl_.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);
1122 _impl_._has_bits_[0] |= 0x00000004u;
1124 _impl_._has_bits_[0] &= ~0x00000004u;
1126 _impl_.omit_ = omit;
1135inline bool GLogConfig::_internal_has_tty_verbosity()
const {
1136 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1139inline bool GLogConfig::has_tty_verbosity()
const {
1140 return _internal_has_tty_verbosity();
1142inline void GLogConfig::clear_tty_verbosity() {
1143 _impl_.tty_verbosity_ = 1;
1144 _impl_._has_bits_[0] &= ~0x00000008u;
1146inline ::goby::util::protobuf::GLogConfig_Verbosity GLogConfig::_internal_tty_verbosity()
const {
1149inline ::goby::util::protobuf::GLogConfig_Verbosity GLogConfig::tty_verbosity()
const {
1151 return _internal_tty_verbosity();
1155 _impl_._has_bits_[0] |= 0x00000008u;
1156 _impl_.tty_verbosity_ = value;
1159 _internal_set_tty_verbosity(value);
1164inline bool GLogConfig::_internal_has_show_gui()
const {
1165 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1168inline bool GLogConfig::has_show_gui()
const {
1169 return _internal_has_show_gui();
1171inline void GLogConfig::clear_show_gui() {
1172 _impl_.show_gui_ =
false;
1173 _impl_._has_bits_[0] &= ~0x00000002u;
1175inline bool GLogConfig::_internal_show_gui()
const {
1176 return _impl_.show_gui_;
1178inline bool GLogConfig::show_gui()
const {
1180 return _internal_show_gui();
1182inline void GLogConfig::_internal_set_show_gui(
bool value) {
1183 _impl_._has_bits_[0] |= 0x00000002u;
1184 _impl_.show_gui_ = value;
1186inline void GLogConfig::set_show_gui(
bool value) {
1187 _internal_set_show_gui(value);
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);
1197inline bool GLogConfig::has_file_log()
const {
1198 return _internal_has_file_log();
1200inline void GLogConfig::clear_file_log() {
1201 if (_impl_.file_log_ !=
nullptr) _impl_.file_log_->Clear();
1202 _impl_._has_bits_[0] &= ~0x00000001u;
1204inline const ::goby::util::protobuf::GLogConfig_FileLog& GLogConfig::_internal_file_log()
const {
1205 const ::goby::util::protobuf::GLogConfig_FileLog* p = _impl_.file_log_;
1209inline const ::goby::util::protobuf::GLogConfig_FileLog& GLogConfig::file_log()
const {
1211 return _internal_file_log();
1213inline void GLogConfig::unsafe_arena_set_allocated_file_log(
1215 if (GetArenaForAllocation() ==
nullptr) {
1216 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.file_log_);
1218 _impl_.file_log_ = file_log;
1220 _impl_._has_bits_[0] |= 0x00000001u;
1222 _impl_._has_bits_[0] &= ~0x00000001u;
1226inline ::goby::util::protobuf::GLogConfig_FileLog* GLogConfig::release_file_log() {
1227 _impl_._has_bits_[0] &= ~0x00000001u;
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; }
1235 if (GetArenaForAllocation() !=
nullptr) {
1236 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1241inline ::goby::util::protobuf::GLogConfig_FileLog* GLogConfig::unsafe_arena_release_file_log() {
1243 _impl_._has_bits_[0] &= ~0x00000001u;
1245 _impl_.file_log_ =
nullptr;
1248inline ::goby::util::protobuf::GLogConfig_FileLog* GLogConfig::_internal_mutable_file_log() {
1249 _impl_._has_bits_[0] |= 0x00000001u;
1250 if (_impl_.file_log_ ==
nullptr) {
1252 _impl_.file_log_ = p;
1254 return _impl_.file_log_;
1256inline ::goby::util::protobuf::GLogConfig_FileLog* GLogConfig::mutable_file_log() {
1262 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1263 if (message_arena ==
nullptr) {
1264 delete _impl_.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);
1273 _impl_._has_bits_[0] |= 0x00000001u;
1275 _impl_._has_bits_[0] &= ~0x00000001u;
1277 _impl_.file_log_ = file_log;
1282inline bool GLogConfig::_internal_has_show_dccl_log()
const {
1283 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1286inline bool GLogConfig::has_show_dccl_log()
const {
1287 return _internal_has_show_dccl_log();
1289inline void GLogConfig::clear_show_dccl_log() {
1290 _impl_.show_dccl_log_ =
false;
1291 _impl_._has_bits_[0] &= ~0x00000004u;
1293inline bool GLogConfig::_internal_show_dccl_log()
const {
1294 return _impl_.show_dccl_log_;
1296inline bool GLogConfig::show_dccl_log()
const {
1298 return _internal_show_dccl_log();
1300inline void GLogConfig::_internal_set_show_dccl_log(
bool value) {
1301 _impl_._has_bits_[0] |= 0x00000004u;
1302 _impl_.show_dccl_log_ = value;
1304inline void GLogConfig::set_show_dccl_log(
bool value) {
1305 _internal_set_show_dccl_log(value);
1310 #pragma GCC diagnostic pop
1323PROTOBUF_NAMESPACE_OPEN
1328 return ::goby::util::protobuf::GLogConfig_Verbosity_descriptor();
1331PROTOBUF_NAMESPACE_CLOSE
1335#include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
bool has_latest_symlink() const
bool has_file_timestamp() const
GLogConfig_FileLog_Omit * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
bool latest_symlink() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void clear_latest_symlink()
void CopyFrom(const GLogConfig_FileLog_Omit &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const GLogConfig_FileLog_Omit &from)
GLogConfig_FileLog_Omit()
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 ClassData _class_data_
@ kLatestSymlinkFieldNumber
@ kFileTimestampFieldNumber
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
bool file_timestamp() const
void clear_file_timestamp()
static const GLogConfig_FileLog_Omit & default_instance()
friend void swap(GLogConfig_FileLog_Omit &a, GLogConfig_FileLog_Omit &b)
void set_latest_symlink(bool value)
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()
static constexpr int kIndexInFileMessages
int GetCachedSize() const final
PROTOBUF_CONSTEXPR GLogConfig_FileLog_Omit(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
~GLogConfig_FileLog_Omit() override
GLogConfig_FileLog_Omit(const GLogConfig_FileLog_Omit &from)
bool IsInitialized() const final
void set_file_timestamp(bool value)
size_t ByteSizeLong() const final
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)
~GLogConfig_FileLog() override
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Quantity log_rotate_sec_with_units() const
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
static const ClassData _class_data_
GLogConfig_FileLog * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
GLogConfig & operator=(GLogConfig &&from) noexcept
void Swap(GLogConfig *other)
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
@ GLogConfig_Verbosity_WARN
@ GLogConfig_Verbosity_DEBUG3
@ GLogConfig_Verbosity_QUIET
@ GLogConfig_Verbosity_DEBUG1
@ GLogConfig_Verbosity_VERBOSE
@ GLogConfig_Verbosity_DEBUG2
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.
static const uint32_t offsets[]