4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flog_5ftool_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flog_5ftool_5fconfig_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>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2flog_5ftool_5fconfig_2eproto
46 static const ::google::protobuf::internal::ParseTableField
entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
48 static const ::google::protobuf::internal::ParseTable
schema[1];
57 namespace middleware {
60 class LogToolConfigDefaultTypeInternal;
73 namespace middleware {
88 return ::google::protobuf::internal::NameOfEnum(
93 return ::google::protobuf::internal::ParseNamedEnum<LogToolConfig_OutputFormat>(
112 *
this = ::std::move(from);
116 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
117 if (
this != &from) InternalSwap(&from);
125 return _internal_metadata_.unknown_fields();
128 return _internal_metadata_.mutable_unknown_fields();
131 static const ::google::protobuf::Descriptor*
descriptor();
150 return CreateMaybeMessage<LogToolConfig>(NULL);
154 return CreateMaybeMessage<LogToolConfig>(arena);
156 void CopyFrom(const ::google::protobuf::Message& from)
final;
157 void MergeFrom(const ::google::protobuf::Message& from)
final;
165 ::
google::protobuf::io::CodedInputStream* input) final;
167 ::
google::protobuf::io::CodedOutputStream* output) const final;
169 bool deterministic, ::
google::protobuf::uint8* target) const final;
175 void SetCachedSize(
int size)
const final;
178 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
181 inline void* MaybeArenaPtr()
const {
206 static inline const ::google::protobuf::EnumDescriptor*
337 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
339 const ::goby::middleware::protobuf::AppConfig&
app()
const;
375 void clear_has_app();
376 void set_has_input_file();
377 void clear_has_input_file();
378 void set_has_type_regex();
379 void clear_has_type_regex();
380 void set_has_group_regex();
381 void clear_has_group_regex();
382 void set_has_exclude_type_regex();
383 void clear_has_exclude_type_regex();
384 void set_has_exclude_group_regex();
385 void clear_has_exclude_group_regex();
386 void set_has_output_file();
387 void clear_has_output_file();
388 void set_has_format();
389 void clear_has_format();
390 void set_has_write_hdf5_zero_length_dim();
391 void clear_has_write_hdf5_zero_length_dim();
392 void set_has_hdf5_chunk_length();
393 void clear_has_hdf5_chunk_length();
394 void set_has_hdf5_compression_level();
395 void clear_has_hdf5_compression_level();
397 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
398 ::google::protobuf::internal::HasBits<1> _has_bits_;
399 mutable ::google::protobuf::internal::CachedSize _cached_size_;
401 ::google::protobuf::internal::ArenaStringPtr input_file_;
405 ::google::protobuf::internal::ArenaStringPtr type_regex_;
409 ::google::protobuf::internal::ArenaStringPtr group_regex_;
410 ::google::protobuf::internal::ArenaStringPtr exclude_type_regex_;
411 ::google::protobuf::internal::ArenaStringPtr exclude_group_regex_;
412 ::google::protobuf::internal::ArenaStringPtr output_file_;
417 bool write_hdf5_zero_length_dim_;
418 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2flog_5ftool_5fconfig_2eproto::TableStruct;
426 #pragma GCC diagnostic push
427 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
433 return (_has_bits_[0] & 0x00000040u) != 0;
435 inline void LogToolConfig::set_has_app() {
436 _has_bits_[0] |= 0x00000040u;
438 inline void LogToolConfig::clear_has_app() {
439 _has_bits_[0] &= ~0x00000040u;
441 inline const ::goby::middleware::protobuf::AppConfig& LogToolConfig::_internal_app()
const {
445 const ::goby::middleware::protobuf::AppConfig* p = app_;
460 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
468 if (message_arena == NULL) {
473 if (message_arena != submessage_arena) {
474 app = ::google::protobuf::internal::GetOwnedMessage(
475 message_arena,
app, submessage_arena);
487 return (_has_bits_[0] & 0x00000001u) != 0;
489 inline void LogToolConfig::set_has_input_file() {
490 _has_bits_[0] |= 0x00000001u;
492 inline void LogToolConfig::clear_has_input_file() {
493 _has_bits_[0] &= ~0x00000001u;
497 clear_has_input_file();
501 return input_file_.GetNoArena();
504 set_has_input_file();
510 set_has_input_file();
511 input_file_.SetNoArena(
517 GOOGLE_DCHECK(value != NULL);
518 set_has_input_file();
523 set_has_input_file();
525 ::std::string(
reinterpret_cast<const char*
>(value), size));
529 set_has_input_file();
538 clear_has_input_file();
543 set_has_input_file();
545 clear_has_input_file();
553 return (_has_bits_[0] & 0x00000002u) != 0;
555 inline void LogToolConfig::set_has_type_regex() {
556 _has_bits_[0] |= 0x00000002u;
558 inline void LogToolConfig::clear_has_type_regex() {
559 _has_bits_[0] &= ~0x00000002u;
563 clear_has_type_regex();
567 return type_regex_.GetNoArena();
570 set_has_type_regex();
576 set_has_type_regex();
577 type_regex_.SetNoArena(
583 GOOGLE_DCHECK(value != NULL);
584 set_has_type_regex();
589 set_has_type_regex();
591 ::std::string(
reinterpret_cast<const char*
>(value), size));
595 set_has_type_regex();
604 clear_has_type_regex();
609 set_has_type_regex();
611 clear_has_type_regex();
619 return (_has_bits_[0] & 0x00000004u) != 0;
621 inline void LogToolConfig::set_has_group_regex() {
622 _has_bits_[0] |= 0x00000004u;
624 inline void LogToolConfig::clear_has_group_regex() {
625 _has_bits_[0] &= ~0x00000004u;
629 clear_has_group_regex();
633 return group_regex_.GetNoArena();
636 set_has_group_regex();
642 set_has_group_regex();
643 group_regex_.SetNoArena(
649 GOOGLE_DCHECK(value != NULL);
650 set_has_group_regex();
655 set_has_group_regex();
657 ::std::string(
reinterpret_cast<const char*
>(value), size));
661 set_has_group_regex();
670 clear_has_group_regex();
675 set_has_group_regex();
677 clear_has_group_regex();
685 return (_has_bits_[0] & 0x00000008u) != 0;
687 inline void LogToolConfig::set_has_exclude_type_regex() {
688 _has_bits_[0] |= 0x00000008u;
690 inline void LogToolConfig::clear_has_exclude_type_regex() {
691 _has_bits_[0] &= ~0x00000008u;
695 clear_has_exclude_type_regex();
699 return exclude_type_regex_.GetNoArena();
702 set_has_exclude_type_regex();
708 set_has_exclude_type_regex();
709 exclude_type_regex_.SetNoArena(
715 GOOGLE_DCHECK(value != NULL);
716 set_has_exclude_type_regex();
721 set_has_exclude_type_regex();
723 ::std::string(
reinterpret_cast<const char*
>(value), size));
727 set_has_exclude_type_regex();
736 clear_has_exclude_type_regex();
741 set_has_exclude_type_regex();
743 clear_has_exclude_type_regex();
751 return (_has_bits_[0] & 0x00000010u) != 0;
753 inline void LogToolConfig::set_has_exclude_group_regex() {
754 _has_bits_[0] |= 0x00000010u;
756 inline void LogToolConfig::clear_has_exclude_group_regex() {
757 _has_bits_[0] &= ~0x00000010u;
761 clear_has_exclude_group_regex();
765 return exclude_group_regex_.GetNoArena();
768 set_has_exclude_group_regex();
774 set_has_exclude_group_regex();
775 exclude_group_regex_.SetNoArena(
781 GOOGLE_DCHECK(value != NULL);
782 set_has_exclude_group_regex();
787 set_has_exclude_group_regex();
789 ::std::string(
reinterpret_cast<const char*
>(value), size));
793 set_has_exclude_group_regex();
802 clear_has_exclude_group_regex();
807 set_has_exclude_group_regex();
809 clear_has_exclude_group_regex();
817 return (_has_bits_[0] & 0x00000020u) != 0;
819 inline void LogToolConfig::set_has_output_file() {
820 _has_bits_[0] |= 0x00000020u;
822 inline void LogToolConfig::clear_has_output_file() {
823 _has_bits_[0] &= ~0x00000020u;
827 clear_has_output_file();
831 return output_file_.GetNoArena();
834 set_has_output_file();
840 set_has_output_file();
841 output_file_.SetNoArena(
847 GOOGLE_DCHECK(value != NULL);
848 set_has_output_file();
853 set_has_output_file();
855 ::std::string(
reinterpret_cast<const char*
>(value), size));
859 set_has_output_file();
868 clear_has_output_file();
873 set_has_output_file();
875 clear_has_output_file();
883 return (_has_bits_[0] & 0x00000200u) != 0;
885 inline void LogToolConfig::set_has_format() {
886 _has_bits_[0] |= 0x00000200u;
888 inline void LogToolConfig::clear_has_format() {
889 _has_bits_[0] &= ~0x00000200u;
908 return (_has_bits_[0] & 0x00000400u) != 0;
910 inline void LogToolConfig::set_has_write_hdf5_zero_length_dim() {
911 _has_bits_[0] |= 0x00000400u;
913 inline void LogToolConfig::clear_has_write_hdf5_zero_length_dim() {
914 _has_bits_[0] &= ~0x00000400u;
917 write_hdf5_zero_length_dim_ =
true;
918 clear_has_write_hdf5_zero_length_dim();
922 return write_hdf5_zero_length_dim_;
925 set_has_write_hdf5_zero_length_dim();
926 write_hdf5_zero_length_dim_ = value;
932 return (_has_bits_[0] & 0x00000080u) != 0;
934 inline void LogToolConfig::set_has_hdf5_chunk_length() {
935 _has_bits_[0] |= 0x00000080u;
937 inline void LogToolConfig::clear_has_hdf5_chunk_length() {
938 _has_bits_[0] &= ~0x00000080u;
941 hdf5_chunk_length_ = 0;
942 clear_has_hdf5_chunk_length();
946 return hdf5_chunk_length_;
949 set_has_hdf5_chunk_length();
950 hdf5_chunk_length_ = value;
956 return (_has_bits_[0] & 0x00000100u) != 0;
958 inline void LogToolConfig::set_has_hdf5_compression_level() {
959 _has_bits_[0] |= 0x00000100u;
961 inline void LogToolConfig::clear_has_hdf5_compression_level() {
962 _has_bits_[0] &= ~0x00000100u;
965 hdf5_compression_level_ = 0;
966 clear_has_hdf5_compression_level();
970 return hdf5_compression_level_;
973 set_has_hdf5_compression_level();
974 hdf5_compression_level_ = value;
980 return load_shared_library_.size();
983 load_shared_library_.Clear();
987 return load_shared_library_.Get(index);
991 return load_shared_library_.Mutable(index);
995 load_shared_library_.Mutable(index)->assign(value);
1000 load_shared_library_.Mutable(index)->assign(std::move(value));
1004 GOOGLE_DCHECK(value != NULL);
1005 load_shared_library_.Mutable(index)->assign(value);
1009 load_shared_library_.Mutable(index)->assign(
1010 reinterpret_cast<const char*
>(value), size);
1015 return load_shared_library_.Add();
1018 load_shared_library_.Add()->assign(value);
1023 load_shared_library_.Add(std::move(value));
1028 GOOGLE_DCHECK(value != NULL);
1029 load_shared_library_.Add()->assign(value);
1033 load_shared_library_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
1036 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1039 return load_shared_library_;
1041 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1044 return &load_shared_library_;
1048 #pragma GCC diagnostic pop
1059 namespace protobuf {
1063 inline const EnumDescriptor* GetEnumDescriptor< ::goby::apps::middleware::protobuf::LogToolConfig_OutputFormat>() {
1072 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flog_5ftool_5fconfig_2eproto