4 #ifndef PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
5 #define PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[3];
61 class GLogConfigDefaultTypeInternal;
64 class GLogConfig_FileLogDefaultTypeInternal;
67 class GLogConfig_FileLog_OmitDefaultTypeInternal;
98 return ::google::protobuf::internal::NameOfEnum(
103 return ::google::protobuf::internal::ParseNamedEnum<GLogConfig_Verbosity>(
122 *
this = ::std::move(from);
126 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
127 if (
this != &from) InternalSwap(&from);
135 return _internal_metadata_.unknown_fields();
138 return _internal_metadata_.mutable_unknown_fields();
141 static const ::google::protobuf::Descriptor*
descriptor();
160 return CreateMaybeMessage<GLogConfig_FileLog_Omit>(NULL);
164 return CreateMaybeMessage<GLogConfig_FileLog_Omit>(arena);
166 void CopyFrom(const ::google::protobuf::Message& from)
final;
167 void MergeFrom(const ::google::protobuf::Message& from)
final;
175 ::
google::protobuf::io::CodedInputStream* input) final;
177 ::
google::protobuf::io::CodedOutputStream* output) const final;
179 bool deterministic, ::
google::protobuf::uint8* target) const final;
185 void SetCachedSize(
int size)
const final;
188 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
191 inline void* MaybeArenaPtr()
const {
218 void set_has_file_timestamp();
219 void clear_has_file_timestamp();
220 void set_has_latest_symlink();
221 void clear_has_latest_symlink();
223 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
224 ::
google::protobuf::internal::HasBits<1> _has_bits_;
225 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
226 bool file_timestamp_;
227 bool latest_symlink_;
246 *
this = ::std::move(from);
249 inline GLogConfig_FileLog&
operator=(GLogConfig_FileLog&& from) noexcept {
250 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
251 if (
this != &from) InternalSwap(&from);
259 return _internal_metadata_.unknown_fields();
262 return _internal_metadata_.mutable_unknown_fields();
265 static const ::google::protobuf::Descriptor*
descriptor();
284 return CreateMaybeMessage<GLogConfig_FileLog>(NULL);
288 return CreateMaybeMessage<GLogConfig_FileLog>(arena);
290 void CopyFrom(const ::google::protobuf::Message& from)
final;
291 void MergeFrom(const ::google::protobuf::Message& from)
final;
299 ::
google::protobuf::io::CodedInputStream* input) final;
301 ::
google::protobuf::io::CodedOutputStream* output) const final;
303 bool deterministic, ::
google::protobuf::uint8* target) const final;
309 void SetCachedSize(
int size)
const final;
312 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
315 inline void* MaybeArenaPtr()
const {
329 bool has_file_name() const;
330 void clear_file_name();
331 static const
int kFileNameFieldNumber = 1;
332 const ::std::
string& file_name() const;
333 void set_file_name(const ::std::
string& value);
335 void set_file_name(::std::string&& value);
337 void set_file_name(
const char* value);
338 void set_file_name(
const char* value,
size_t size);
339 ::std::string* mutable_file_name();
340 ::std::string* release_file_name();
341 void set_allocated_file_name(::std::string* file_name);
344 bool has_file_dir()
const;
345 void clear_file_dir();
346 static const int kFileDirFieldNumber = 2;
347 const ::std::string& file_dir()
const;
348 void set_file_dir(const ::std::string& value);
350 void set_file_dir(::std::string&& value);
352 void set_file_dir(
const char* value);
353 void set_file_dir(
const char* value,
size_t size);
354 ::std::string* mutable_file_dir();
355 ::std::string* release_file_dir();
356 void set_allocated_file_dir(::std::string* file_dir);
359 bool has_omit()
const;
361 static const int kOmitFieldNumber = 5;
363 const ::goby::util::protobuf::GLogConfig_FileLog_Omit& _internal_omit()
const;
365 const ::goby::util::protobuf::GLogConfig_FileLog_Omit& omit()
const;
371 bool has_log_rotate_sec()
const;
372 void clear_log_rotate_sec();
373 static const int kLogRotateSecFieldNumber = 4;
378 bool has_verbosity()
const;
379 void clear_verbosity();
380 static const int kVerbosityFieldNumber = 3;
388 template<
typename Quantity >
390 { set_log_rotate_sec(boost::units::quantity<log_rotate_sec_unit,google::protobuf::uint32 >(value_w_units).value() ); };
392 template<
typename Quantity >
397 {
return log_rotate_sec_with_units<boost::units::quantity< log_rotate_sec_unit,google::protobuf::uint32 > >(); };
401 void set_has_file_name();
402 void clear_has_file_name();
403 void set_has_file_dir();
404 void clear_has_file_dir();
405 void set_has_verbosity();
406 void clear_has_verbosity();
407 void set_has_log_rotate_sec();
408 void clear_has_log_rotate_sec();
410 void clear_has_omit();
412 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
413 ::google::protobuf::internal::HasBits<1> _has_bits_;
414 mutable ::google::protobuf::internal::CachedSize _cached_size_;
418 ::google::protobuf::internal::ArenaStringPtr file_name_;
419 ::google::protobuf::internal::ArenaStringPtr file_dir_;
423 friend struct ::protobuf_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto::TableStruct;
441 *
this = ::std::move(from);
444 inline GLogConfig&
operator=(GLogConfig&& from) noexcept {
445 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
446 if (
this != &from) InternalSwap(&from);
454 return _internal_metadata_.unknown_fields();
457 return _internal_metadata_.mutable_unknown_fields();
460 static const ::google::protobuf::Descriptor*
descriptor();
479 return CreateMaybeMessage<GLogConfig>(NULL);
483 return CreateMaybeMessage<GLogConfig>(arena);
485 void CopyFrom(const ::google::protobuf::Message& from)
final;
486 void MergeFrom(const ::google::protobuf::Message& from)
final;
494 ::
google::protobuf::io::CodedInputStream* input) final;
496 ::
google::protobuf::io::CodedOutputStream* output) const final;
498 bool deterministic, ::
google::protobuf::uint8* target) const final;
504 void SetCachedSize(
int size)
const final;
507 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
510 inline void* MaybeArenaPtr()
const {
534 static inline
bool Verbosity_IsValid(
int value) {
541 static const int Verbosity_ARRAYSIZE =
543 static inline const ::google::protobuf::EnumDescriptor*
558 bool has_file_log()
const;
559 void clear_file_log();
560 static const int kFileLogFieldNumber = 3;
562 const ::goby::util::protobuf::GLogConfig_FileLog& _internal_file_log()
const;
564 const ::goby::util::protobuf::GLogConfig_FileLog& file_log()
const;
570 bool has_show_gui()
const;
571 void clear_show_gui();
572 static const int kShowGuiFieldNumber = 2;
573 bool show_gui()
const;
574 void set_show_gui(
bool value);
577 bool has_show_dccl_log()
const;
578 void clear_show_dccl_log();
579 static const int kShowDcclLogFieldNumber = 4;
580 bool show_dccl_log()
const;
581 void set_show_dccl_log(
bool value);
584 bool has_tty_verbosity()
const;
585 void clear_tty_verbosity();
586 static const int kTtyVerbosityFieldNumber = 1;
592 void set_has_tty_verbosity();
593 void clear_has_tty_verbosity();
594 void set_has_show_gui();
595 void clear_has_show_gui();
596 void set_has_file_log();
597 void clear_has_file_log();
598 void set_has_show_dccl_log();
599 void clear_has_show_dccl_log();
601 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
602 ::google::protobuf::internal::HasBits<1> _has_bits_;
603 mutable ::google::protobuf::internal::CachedSize _cached_size_;
608 friend struct ::protobuf_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto::TableStruct;
616 #pragma GCC diagnostic push
617 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
623 return (_has_bits_[0] & 0x00000001u) != 0;
625 inline void GLogConfig_FileLog_Omit::set_has_file_timestamp() {
626 _has_bits_[0] |= 0x00000001u;
628 inline void GLogConfig_FileLog_Omit::clear_has_file_timestamp() {
629 _has_bits_[0] &= ~0x00000001u;
632 file_timestamp_ =
false;
633 clear_has_file_timestamp();
637 return file_timestamp_;
640 set_has_file_timestamp();
641 file_timestamp_ = value;
647 return (_has_bits_[0] & 0x00000002u) != 0;
649 inline void GLogConfig_FileLog_Omit::set_has_latest_symlink() {
650 _has_bits_[0] |= 0x00000002u;
652 inline void GLogConfig_FileLog_Omit::clear_has_latest_symlink() {
653 _has_bits_[0] &= ~0x00000002u;
656 latest_symlink_ =
false;
657 clear_has_latest_symlink();
661 return latest_symlink_;
664 set_has_latest_symlink();
665 latest_symlink_ = value;
675 return (_has_bits_[0] & 0x00000001u) != 0;
677 inline void GLogConfig_FileLog::set_has_file_name() {
678 _has_bits_[0] |= 0x00000001u;
680 inline void GLogConfig_FileLog::clear_has_file_name() {
681 _has_bits_[0] &= ~0x00000001u;
685 clear_has_file_name();
689 return file_name_.GetNoArena();
699 file_name_.SetNoArena(
705 GOOGLE_DCHECK(value != NULL);
713 ::std::string(
reinterpret_cast<const char*
>(value), size));
723 if (!has_file_name()) {
726 clear_has_file_name();
730 if (file_name != NULL) {
733 clear_has_file_name();
741 return (_has_bits_[0] & 0x00000002u) != 0;
743 inline void GLogConfig_FileLog::set_has_file_dir() {
744 _has_bits_[0] |= 0x00000002u;
746 inline void GLogConfig_FileLog::clear_has_file_dir() {
747 _has_bits_[0] &= ~0x00000002u;
751 clear_has_file_dir();
755 return file_dir_.GetNoArena();
765 file_dir_.SetNoArena(
771 GOOGLE_DCHECK(value != NULL);
779 ::std::string(
reinterpret_cast<const char*
>(value), size));
789 if (!has_file_dir()) {
792 clear_has_file_dir();
796 if (file_dir != NULL) {
799 clear_has_file_dir();
807 return (_has_bits_[0] & 0x00000010u) != 0;
809 inline void GLogConfig_FileLog::set_has_verbosity() {
810 _has_bits_[0] |= 0x00000010u;
812 inline void GLogConfig_FileLog::clear_has_verbosity() {
813 _has_bits_[0] &= ~0x00000010u;
817 clear_has_verbosity();
832 return (_has_bits_[0] & 0x00000008u) != 0;
834 inline void GLogConfig_FileLog::set_has_log_rotate_sec() {
835 _has_bits_[0] |= 0x00000008u;
837 inline void GLogConfig_FileLog::clear_has_log_rotate_sec() {
838 _has_bits_[0] &= ~0x00000008u;
841 log_rotate_sec_ = 0u;
842 clear_has_log_rotate_sec();
846 return log_rotate_sec_;
849 set_has_log_rotate_sec();
850 log_rotate_sec_ = value;
856 return (_has_bits_[0] & 0x00000004u) != 0;
858 inline void GLogConfig_FileLog::set_has_omit() {
859 _has_bits_[0] |= 0x00000004u;
861 inline void GLogConfig_FileLog::clear_has_omit() {
862 _has_bits_[0] &= ~0x00000004u;
865 if (omit_ != NULL) omit_->Clear();
868 inline const ::goby::util::protobuf::GLogConfig_FileLog_Omit& GLogConfig_FileLog::_internal_omit()
const {
872 const ::goby::util::protobuf::GLogConfig_FileLog_Omit* p = omit_;
887 auto* p = CreateMaybeMessage<::goby::util::protobuf::GLogConfig_FileLog_Omit>(GetArenaNoVirtual());
895 if (message_arena == NULL) {
900 if (message_arena != submessage_arena) {
901 omit = ::google::protobuf::internal::GetOwnedMessage(
902 message_arena, omit, submessage_arena);
918 return (_has_bits_[0] & 0x00000008u) != 0;
920 inline void GLogConfig::set_has_tty_verbosity() {
921 _has_bits_[0] |= 0x00000008u;
923 inline void GLogConfig::clear_has_tty_verbosity() {
924 _has_bits_[0] &= ~0x00000008u;
928 clear_has_tty_verbosity();
936 set_has_tty_verbosity();
937 tty_verbosity_ = value;
943 return (_has_bits_[0] & 0x00000002u) != 0;
945 inline void GLogConfig::set_has_show_gui() {
946 _has_bits_[0] |= 0x00000002u;
948 inline void GLogConfig::clear_has_show_gui() {
949 _has_bits_[0] &= ~0x00000002u;
953 clear_has_show_gui();
967 return (_has_bits_[0] & 0x00000001u) != 0;
969 inline void GLogConfig::set_has_file_log() {
970 _has_bits_[0] |= 0x00000001u;
972 inline void GLogConfig::clear_has_file_log() {
973 _has_bits_[0] &= ~0x00000001u;
976 if (file_log_ != NULL) file_log_->Clear();
977 clear_has_file_log();
979 inline const ::goby::util::protobuf::GLogConfig_FileLog& GLogConfig::_internal_file_log()
const {
983 const ::goby::util::protobuf::GLogConfig_FileLog* p = file_log_;
990 clear_has_file_log();
997 if (file_log_ == NULL) {
998 auto* p = CreateMaybeMessage<::goby::util::protobuf::GLogConfig_FileLog>(GetArenaNoVirtual());
1006 if (message_arena == NULL) {
1011 if (message_arena != submessage_arena) {
1012 file_log = ::google::protobuf::internal::GetOwnedMessage(
1013 message_arena, file_log, submessage_arena);
1017 clear_has_file_log();
1019 file_log_ = file_log;
1025 return (_has_bits_[0] & 0x00000004u) != 0;
1027 inline void GLogConfig::set_has_show_dccl_log() {
1028 _has_bits_[0] |= 0x00000004u;
1030 inline void GLogConfig::clear_has_show_dccl_log() {
1031 _has_bits_[0] &= ~0x00000004u;
1034 show_dccl_log_ =
false;
1035 clear_has_show_dccl_log();
1039 return show_dccl_log_;
1042 set_has_show_dccl_log();
1043 show_dccl_log_ = value;
1048 #pragma GCC diagnostic pop
1062 namespace protobuf {
1066 inline const EnumDescriptor* GetEnumDescriptor< ::goby::util::protobuf::GLogConfig_Verbosity>() {
1075 #endif // PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto