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[2];
61 class GLogConfigDefaultTypeInternal;
64 class GLogConfig_FileLogDefaultTypeInternal;
94 return ::google::protobuf::internal::NameOfEnum(
99 return ::google::protobuf::internal::ParseNamedEnum<GLogConfig_Verbosity>(
118 *
this = ::std::move(from);
122 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
123 if (
this != &from) InternalSwap(&from);
131 return _internal_metadata_.unknown_fields();
134 return _internal_metadata_.mutable_unknown_fields();
137 static const ::google::protobuf::Descriptor*
descriptor();
156 return CreateMaybeMessage<GLogConfig_FileLog>(NULL);
160 return CreateMaybeMessage<GLogConfig_FileLog>(arena);
162 void CopyFrom(const ::google::protobuf::Message& from)
final;
163 void MergeFrom(const ::google::protobuf::Message& from)
final;
171 ::
google::protobuf::io::CodedInputStream* input) final;
173 ::
google::protobuf::io::CodedOutputStream* output) const final;
175 bool deterministic, ::
google::protobuf::uint8* target) const final;
181 void SetCachedSize(
int size)
const final;
184 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
187 inline void* MaybeArenaPtr()
const {
217 const ::std::string&
file_dir()
const;
246 template<
typename Quantity >
248 {
set_log_rotate_sec(boost::units::quantity<log_rotate_sec_unit,google::protobuf::uint32 >(value_w_units).value() ); };
250 template<
typename Quantity >
255 {
return log_rotate_sec_with_units<boost::units::quantity< log_rotate_sec_unit,google::protobuf::uint32 > >(); };
259 void set_has_file_name();
260 void clear_has_file_name();
261 void set_has_file_dir();
262 void clear_has_file_dir();
263 void set_has_verbosity();
264 void clear_has_verbosity();
265 void set_has_log_rotate_sec();
266 void clear_has_log_rotate_sec();
268 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
269 ::google::protobuf::internal::HasBits<1> _has_bits_;
270 mutable ::google::protobuf::internal::CachedSize _cached_size_;
274 ::google::protobuf::internal::ArenaStringPtr file_name_;
275 ::google::protobuf::internal::ArenaStringPtr file_dir_;
278 friend struct ::protobuf_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto::TableStruct;
296 *
this = ::std::move(from);
300 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
301 if (
this != &from) InternalSwap(&from);
309 return _internal_metadata_.unknown_fields();
312 return _internal_metadata_.mutable_unknown_fields();
315 static const ::google::protobuf::Descriptor*
descriptor();
334 return CreateMaybeMessage<GLogConfig>(NULL);
338 return CreateMaybeMessage<GLogConfig>(arena);
340 void CopyFrom(const ::google::protobuf::Message& from)
final;
341 void MergeFrom(const ::google::protobuf::Message& from)
final;
349 ::
google::protobuf::io::CodedInputStream* input) final;
351 ::
google::protobuf::io::CodedOutputStream* output) const final;
353 bool deterministic, ::
google::protobuf::uint8* target) const final;
359 void SetCachedSize(
int size)
const final;
362 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
365 inline void* MaybeArenaPtr()
const {
398 static inline const ::google::protobuf::EnumDescriptor*
417 const ::goby::util::protobuf::GLogConfig_FileLog& _internal_file_log()
const;
419 const ::goby::util::protobuf::GLogConfig_FileLog&
file_log()
const;
447 void set_has_tty_verbosity();
448 void clear_has_tty_verbosity();
449 void set_has_show_gui();
450 void clear_has_show_gui();
451 void set_has_file_log();
452 void clear_has_file_log();
453 void set_has_show_dccl_log();
454 void clear_has_show_dccl_log();
456 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
457 ::google::protobuf::internal::HasBits<1> _has_bits_;
458 mutable ::google::protobuf::internal::CachedSize _cached_size_;
463 friend struct ::protobuf_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto::TableStruct;
471 #pragma GCC diagnostic push
472 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
478 return (_has_bits_[0] & 0x00000001u) != 0;
480 inline void GLogConfig_FileLog::set_has_file_name() {
481 _has_bits_[0] |= 0x00000001u;
483 inline void GLogConfig_FileLog::clear_has_file_name() {
484 _has_bits_[0] &= ~0x00000001u;
488 clear_has_file_name();
492 return file_name_.GetNoArena();
502 file_name_.SetNoArena(
508 GOOGLE_DCHECK(value != NULL);
516 ::std::string(
reinterpret_cast<const char*
>(value), size));
529 clear_has_file_name();
536 clear_has_file_name();
544 return (_has_bits_[0] & 0x00000002u) != 0;
546 inline void GLogConfig_FileLog::set_has_file_dir() {
547 _has_bits_[0] |= 0x00000002u;
549 inline void GLogConfig_FileLog::clear_has_file_dir() {
550 _has_bits_[0] &= ~0x00000002u;
554 clear_has_file_dir();
558 return file_dir_.GetNoArena();
568 file_dir_.SetNoArena(
574 GOOGLE_DCHECK(value != NULL);
582 ::std::string(
reinterpret_cast<const char*
>(value), size));
595 clear_has_file_dir();
602 clear_has_file_dir();
610 return (_has_bits_[0] & 0x00000008u) != 0;
612 inline void GLogConfig_FileLog::set_has_verbosity() {
613 _has_bits_[0] |= 0x00000008u;
615 inline void GLogConfig_FileLog::clear_has_verbosity() {
616 _has_bits_[0] &= ~0x00000008u;
620 clear_has_verbosity();
635 return (_has_bits_[0] & 0x00000004u) != 0;
637 inline void GLogConfig_FileLog::set_has_log_rotate_sec() {
638 _has_bits_[0] |= 0x00000004u;
640 inline void GLogConfig_FileLog::clear_has_log_rotate_sec() {
641 _has_bits_[0] &= ~0x00000004u;
644 log_rotate_sec_ = 0u;
645 clear_has_log_rotate_sec();
649 return log_rotate_sec_;
652 set_has_log_rotate_sec();
653 log_rotate_sec_ = value;
663 return (_has_bits_[0] & 0x00000008u) != 0;
665 inline void GLogConfig::set_has_tty_verbosity() {
666 _has_bits_[0] |= 0x00000008u;
668 inline void GLogConfig::clear_has_tty_verbosity() {
669 _has_bits_[0] &= ~0x00000008u;
673 clear_has_tty_verbosity();
681 set_has_tty_verbosity();
682 tty_verbosity_ = value;
688 return (_has_bits_[0] & 0x00000002u) != 0;
690 inline void GLogConfig::set_has_show_gui() {
691 _has_bits_[0] |= 0x00000002u;
693 inline void GLogConfig::clear_has_show_gui() {
694 _has_bits_[0] &= ~0x00000002u;
698 clear_has_show_gui();
712 return (_has_bits_[0] & 0x00000001u) != 0;
714 inline void GLogConfig::set_has_file_log() {
715 _has_bits_[0] |= 0x00000001u;
717 inline void GLogConfig::clear_has_file_log() {
718 _has_bits_[0] &= ~0x00000001u;
721 if (file_log_ != NULL) file_log_->
Clear();
722 clear_has_file_log();
724 inline const ::goby::util::protobuf::GLogConfig_FileLog& GLogConfig::_internal_file_log()
const {
728 const ::goby::util::protobuf::GLogConfig_FileLog* p = file_log_;
735 clear_has_file_log();
742 if (file_log_ == NULL) {
743 auto* p = CreateMaybeMessage<::goby::util::protobuf::GLogConfig_FileLog>(GetArenaNoVirtual());
751 if (message_arena == NULL) {
756 if (message_arena != submessage_arena) {
757 file_log = ::google::protobuf::internal::GetOwnedMessage(
758 message_arena,
file_log, submessage_arena);
762 clear_has_file_log();
770 return (_has_bits_[0] & 0x00000004u) != 0;
772 inline void GLogConfig::set_has_show_dccl_log() {
773 _has_bits_[0] |= 0x00000004u;
775 inline void GLogConfig::clear_has_show_dccl_log() {
776 _has_bits_[0] &= ~0x00000004u;
779 show_dccl_log_ =
false;
780 clear_has_show_dccl_log();
784 return show_dccl_log_;
787 set_has_show_dccl_log();
788 show_dccl_log_ = value;
793 #pragma GCC diagnostic pop
809 inline const EnumDescriptor* GetEnumDescriptor< ::goby::util::protobuf::GLogConfig_Verbosity>() {
818 #endif // PROTOBUF_INCLUDED_goby_2futil_2fprotobuf_2fdebug_5flogger_2eproto