diff options
author | Darafei Praliaskouski <komzpa@gmail.com> | 2013-09-23 17:32:20 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:02:15 +0300 |
commit | 23c591de0ad2a1a302b6fd49b0a8ff52c4e259fd (patch) | |
tree | 7d7479366046ef1f0e565803034d61ab39c1e4d7 | |
parent | aa59f38214cc5914ed5fc92dad4e7fa76291c5fe (diff) |
[indexer] removed text protobuffer
-rw-r--r-- | generator/generator_tool/generator_tool.cpp | 18 | ||||
-rw-r--r-- | indexer/drawing_rules.cpp | 20 | ||||
-rw-r--r-- | indexer/drules_include.hpp | 6 | ||||
-rw-r--r-- | indexer/drules_struct.pb.cc | 1730 | ||||
-rw-r--r-- | indexer/drules_struct.pb.h | 504 | ||||
-rw-r--r-- | indexer/drules_struct.proto | 8 | ||||
-rw-r--r-- | indexer/drules_struct_lite.pb.cc | 3733 | ||||
-rw-r--r-- | indexer/drules_struct_lite.pb.h | 3161 | ||||
-rw-r--r-- | indexer/indexer.pro | 9 |
9 files changed, 588 insertions, 8601 deletions
diff --git a/generator/generator_tool/generator_tool.cpp b/generator/generator_tool/generator_tool.cpp index a620291aeb..84b0b69adf 100644 --- a/generator/generator_tool/generator_tool.cpp +++ b/generator/generator_tool/generator_tool.cpp @@ -29,10 +29,6 @@ #include "../../std/iomanip.hpp" #include "../../std/numeric.hpp" -// Use txt rules only in generator. @todo kill'em totally in the future! -#define DRAWING_RULES_TEXT_FILE "drules_proto.txt" - - DEFINE_bool(generate_update, false, "If specified, update.maps file will be generated from cells in the data path"); @@ -92,20 +88,6 @@ int main(int argc, char ** argv) string const path = FLAGS_data_path.empty() ? pl.WritableDir() : AddSlashIfNeeded(FLAGS_data_path); - // Make a classificator - if (FLAGS_generate_classif) - { - drule::RulesHolder & rules = drule::rules(); - - string buffer; - ModelReaderPtr(pl.GetReader(DRAWING_RULES_TEXT_FILE)).ReadAsString(buffer); - - rules.LoadFromTextProto(buffer); - - ofstream s((path + DRAWING_RULES_BIN_FILE).c_str(), ios::out | ios::binary); - rules.SaveToBinaryProto(buffer, s); - } - // Generating intermediate files if (FLAGS_preprocess_xml) { diff --git a/indexer/drawing_rules.cpp b/indexer/drawing_rules.cpp index b69fdf6a06..601bd5f889 100644 --- a/indexer/drawing_rules.cpp +++ b/indexer/drawing_rules.cpp @@ -368,26 +368,6 @@ namespace }; } -#ifdef OMIM_OS_DESKTOP -void RulesHolder::LoadFromTextProto(string const & buffer) -{ - Clean(); - - DoSetIndex doSet(*this); - google::protobuf::TextFormat::ParseFromString(buffer, &doSet.m_cont); - - classif().GetMutableRoot()->ForEachObject(bind<void>(ref(doSet), _1)); -} - -void RulesHolder::SaveToBinaryProto(string const & buffer, ostream & s) -{ - ContainerProto cont; - google::protobuf::TextFormat::ParseFromString(buffer, &cont); - - CHECK ( cont.SerializeToOstream(&s), ("Error in proto saving!") ); -} -#endif - void RulesHolder::LoadFromBinaryProto(string const & s) { Clean(); diff --git a/indexer/drules_include.hpp b/indexer/drules_include.hpp index 476c937cf1..6211564b41 100644 --- a/indexer/drules_include.hpp +++ b/indexer/drules_include.hpp @@ -2,8 +2,4 @@ #include "../std/target_os.hpp" -#ifdef OMIM_OS_DESKTOP - #include "drules_struct.pb.h" -#else - #include "drules_struct_lite.pb.h" -#endif +#include "drules_struct.pb.h" diff --git a/indexer/drules_struct.pb.cc b/indexer/drules_struct.pb.cc index 348c38e3ff..2dca326e96 100644 --- a/indexer/drules_struct.pb.cc +++ b/indexer/drules_struct.pb.cc @@ -10,416 +10,36 @@ #include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/wire_format_lite_inl.h> -#include <google/protobuf/descriptor.h> -#include <google/protobuf/generated_message_reflection.h> -#include <google/protobuf/reflection_ops.h> -#include <google/protobuf/wire_format.h> // @@protoc_insertion_point(includes) -namespace { - -const ::google::protobuf::Descriptor* DashDotProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DashDotProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* PathSymProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PathSymProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* LineRuleProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - LineRuleProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* LineDefProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - LineDefProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* AreaRuleProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AreaRuleProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* SymbolRuleProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SymbolRuleProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* CaptionDefProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CaptionDefProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* CaptionRuleProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CaptionRuleProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* CircleRuleProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CircleRuleProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* PathTextRuleProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PathTextRuleProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* DrawElementProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DrawElementProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* ClassifElementProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ClassifElementProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* ContainerProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ContainerProto_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* LineJoin_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* LineCap_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_drules_5fstruct_2eproto() { - protobuf_AddDesc_drules_5fstruct_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "drules_struct.proto"); - GOOGLE_CHECK(file != NULL); - DashDotProto_descriptor_ = file->message_type(0); - static const int DashDotProto_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DashDotProto, dd_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DashDotProto, offset_), - }; - DashDotProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - DashDotProto_descriptor_, - DashDotProto::default_instance_, - DashDotProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DashDotProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DashDotProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(DashDotProto)); - PathSymProto_descriptor_ = file->message_type(1); - static const int PathSymProto_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathSymProto, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathSymProto, step_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathSymProto, offset_), - }; - PathSymProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - PathSymProto_descriptor_, - PathSymProto::default_instance_, - PathSymProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathSymProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathSymProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(PathSymProto)); - LineRuleProto_descriptor_ = file->message_type(2); - static const int LineRuleProto_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineRuleProto, width_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineRuleProto, color_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineRuleProto, dashdot_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineRuleProto, priority_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineRuleProto, pathsym_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineRuleProto, join_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineRuleProto, cap_), - }; - LineRuleProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - LineRuleProto_descriptor_, - LineRuleProto::default_instance_, - LineRuleProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineRuleProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineRuleProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(LineRuleProto)); - LineDefProto_descriptor_ = file->message_type(3); - static const int LineDefProto_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineDefProto, width_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineDefProto, color_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineDefProto, dashdot_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineDefProto, pathsym_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineDefProto, join_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineDefProto, cap_), - }; - LineDefProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - LineDefProto_descriptor_, - LineDefProto::default_instance_, - LineDefProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineDefProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LineDefProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(LineDefProto)); - AreaRuleProto_descriptor_ = file->message_type(4); - static const int AreaRuleProto_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AreaRuleProto, color_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AreaRuleProto, border_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AreaRuleProto, priority_), - }; - AreaRuleProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AreaRuleProto_descriptor_, - AreaRuleProto::default_instance_, - AreaRuleProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AreaRuleProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AreaRuleProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AreaRuleProto)); - SymbolRuleProto_descriptor_ = file->message_type(5); - static const int SymbolRuleProto_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SymbolRuleProto, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SymbolRuleProto, apply_for_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SymbolRuleProto, priority_), - }; - SymbolRuleProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - SymbolRuleProto_descriptor_, - SymbolRuleProto::default_instance_, - SymbolRuleProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SymbolRuleProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SymbolRuleProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(SymbolRuleProto)); - CaptionDefProto_descriptor_ = file->message_type(6); - static const int CaptionDefProto_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionDefProto, height_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionDefProto, color_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionDefProto, stroke_color_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionDefProto, offset_x_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionDefProto, offset_y_), - }; - CaptionDefProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - CaptionDefProto_descriptor_, - CaptionDefProto::default_instance_, - CaptionDefProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionDefProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionDefProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(CaptionDefProto)); - CaptionRuleProto_descriptor_ = file->message_type(7); - static const int CaptionRuleProto_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionRuleProto, primary_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionRuleProto, secondary_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionRuleProto, priority_), - }; - CaptionRuleProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - CaptionRuleProto_descriptor_, - CaptionRuleProto::default_instance_, - CaptionRuleProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionRuleProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CaptionRuleProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(CaptionRuleProto)); - CircleRuleProto_descriptor_ = file->message_type(8); - static const int CircleRuleProto_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CircleRuleProto, radius_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CircleRuleProto, color_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CircleRuleProto, border_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CircleRuleProto, priority_), - }; - CircleRuleProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - CircleRuleProto_descriptor_, - CircleRuleProto::default_instance_, - CircleRuleProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CircleRuleProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CircleRuleProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(CircleRuleProto)); - PathTextRuleProto_descriptor_ = file->message_type(9); - static const int PathTextRuleProto_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathTextRuleProto, primary_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathTextRuleProto, secondary_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathTextRuleProto, priority_), - }; - PathTextRuleProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - PathTextRuleProto_descriptor_, - PathTextRuleProto::default_instance_, - PathTextRuleProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathTextRuleProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PathTextRuleProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(PathTextRuleProto)); - DrawElementProto_descriptor_ = file->message_type(10); - static const int DrawElementProto_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrawElementProto, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrawElementProto, lines_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrawElementProto, area_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrawElementProto, symbol_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrawElementProto, caption_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrawElementProto, circle_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrawElementProto, path_text_), - }; - DrawElementProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - DrawElementProto_descriptor_, - DrawElementProto::default_instance_, - DrawElementProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrawElementProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrawElementProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(DrawElementProto)); - ClassifElementProto_descriptor_ = file->message_type(11); - static const int ClassifElementProto_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClassifElementProto, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClassifElementProto, element_), - }; - ClassifElementProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ClassifElementProto_descriptor_, - ClassifElementProto::default_instance_, - ClassifElementProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClassifElementProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClassifElementProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ClassifElementProto)); - ContainerProto_descriptor_ = file->message_type(12); - static const int ContainerProto_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ContainerProto, cont_), - }; - ContainerProto_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ContainerProto_descriptor_, - ContainerProto::default_instance_, - ContainerProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ContainerProto, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ContainerProto, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ContainerProto)); - LineJoin_descriptor_ = file->enum_type(0); - LineCap_descriptor_ = file->enum_type(1); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_drules_5fstruct_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DashDotProto_descriptor_, &DashDotProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PathSymProto_descriptor_, &PathSymProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LineRuleProto_descriptor_, &LineRuleProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LineDefProto_descriptor_, &LineDefProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AreaRuleProto_descriptor_, &AreaRuleProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SymbolRuleProto_descriptor_, &SymbolRuleProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CaptionDefProto_descriptor_, &CaptionDefProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CaptionRuleProto_descriptor_, &CaptionRuleProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CircleRuleProto_descriptor_, &CircleRuleProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PathTextRuleProto_descriptor_, &PathTextRuleProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DrawElementProto_descriptor_, &DrawElementProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ClassifElementProto_descriptor_, &ClassifElementProto::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ContainerProto_descriptor_, &ContainerProto::default_instance()); -} - -} // namespace - void protobuf_ShutdownFile_drules_5fstruct_2eproto() { delete DashDotProto::default_instance_; - delete DashDotProto_reflection_; delete PathSymProto::default_instance_; - delete PathSymProto_reflection_; delete LineRuleProto::default_instance_; - delete LineRuleProto_reflection_; delete LineDefProto::default_instance_; - delete LineDefProto_reflection_; delete AreaRuleProto::default_instance_; - delete AreaRuleProto_reflection_; delete SymbolRuleProto::default_instance_; - delete SymbolRuleProto_reflection_; delete CaptionDefProto::default_instance_; - delete CaptionDefProto_reflection_; delete CaptionRuleProto::default_instance_; - delete CaptionRuleProto_reflection_; delete CircleRuleProto::default_instance_; - delete CircleRuleProto_reflection_; delete PathTextRuleProto::default_instance_; - delete PathTextRuleProto_reflection_; delete DrawElementProto::default_instance_; - delete DrawElementProto_reflection_; delete ClassifElementProto::default_instance_; - delete ClassifElementProto_reflection_; delete ContainerProto::default_instance_; - delete ContainerProto_reflection_; } +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER +void protobuf_AddDesc_drules_5fstruct_2eproto_impl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#else void protobuf_AddDesc_drules_5fstruct_2eproto() { static bool already_here = false; if (already_here) return; already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\023drules_struct.proto\"*\n\014DashDotProto\022\n\n" - "\002dd\030\001 \003(\001\022\016\n\006offset\030\002 \001(\001\":\n\014PathSymProt" - "o\022\014\n\004name\030\001 \002(\t\022\014\n\004step\030\002 \002(\001\022\016\n\006offset\030" - "\003 \001(\001\"\257\001\n\rLineRuleProto\022\r\n\005width\030\001 \002(\001\022\r" - "\n\005color\030\002 \002(\r\022\036\n\007dashdot\030\003 \001(\0132\r.DashDot" - "Proto\022\020\n\010priority\030\004 \002(\005\022\036\n\007pathsym\030\005 \001(\013" - "2\r.PathSymProto\022\027\n\004join\030\006 \001(\0162\t.LineJoin" - "\022\025\n\003cap\030\007 \001(\0162\010.LineCap\"\234\001\n\014LineDefProto" - "\022\r\n\005width\030\001 \002(\001\022\r\n\005color\030\002 \002(\r\022\036\n\007dashdo" - "t\030\003 \001(\0132\r.DashDotProto\022\036\n\007pathsym\030\004 \001(\0132" - "\r.PathSymProto\022\027\n\004join\030\006 \001(\0162\t.LineJoin\022" - "\025\n\003cap\030\007 \001(\0162\010.LineCap\"O\n\rAreaRuleProto\022" - "\r\n\005color\030\001 \002(\r\022\035\n\006border\030\002 \001(\0132\r.LineDef" - "Proto\022\020\n\010priority\030\003 \002(\005\"I\n\017SymbolRulePro" - "to\022\014\n\004name\030\001 \002(\t\022\026\n\016apply_for_type\030\002 \001(\005" - "\022\020\n\010priority\030\003 \002(\005\"j\n\017CaptionDefProto\022\016\n" - "\006height\030\001 \002(\005\022\r\n\005color\030\002 \002(\r\022\024\n\014stroke_c" - "olor\030\003 \001(\r\022\020\n\010offset_x\030\004 \001(\005\022\020\n\010offset_y" - "\030\005 \001(\005\"l\n\020CaptionRuleProto\022!\n\007primary\030\001 " - "\002(\0132\020.CaptionDefProto\022#\n\tsecondary\030\002 \001(\013" - "2\020.CaptionDefProto\022\020\n\010priority\030\003 \002(\005\"a\n\017" - "CircleRuleProto\022\016\n\006radius\030\001 \002(\001\022\r\n\005color" - "\030\002 \002(\r\022\035\n\006border\030\003 \001(\0132\r.LineDefProto\022\020\n" - "\010priority\030\004 \002(\005\"m\n\021PathTextRuleProto\022!\n\007" - "primary\030\001 \002(\0132\020.CaptionDefProto\022#\n\tsecon" - "dary\030\002 \001(\0132\020.CaptionDefProto\022\020\n\010priority" - "\030\003 \002(\005\"\355\001\n\020DrawElementProto\022\r\n\005scale\030\001 \002" - "(\005\022\035\n\005lines\030\002 \003(\0132\016.LineRuleProto\022\034\n\004are" - "a\030\003 \001(\0132\016.AreaRuleProto\022 \n\006symbol\030\004 \001(\0132" - "\020.SymbolRuleProto\022\"\n\007caption\030\005 \001(\0132\021.Cap" - "tionRuleProto\022 \n\006circle\030\006 \001(\0132\020.CircleRu" - "leProto\022%\n\tpath_text\030\007 \001(\0132\022.PathTextRul" - "eProto\"G\n\023ClassifElementProto\022\014\n\004name\030\001 " - "\002(\t\022\"\n\007element\030\002 \003(\0132\021.DrawElementProto\"" - "4\n\016ContainerProto\022\"\n\004cont\030\001 \003(\0132\024.Classi" - "fElementProto*4\n\010LineJoin\022\r\n\tROUNDJOIN\020\000" - "\022\r\n\tBEVELJOIN\020\001\022\n\n\006NOJOIN\020\002*3\n\007LineCap\022\014" - "\n\010ROUNDCAP\020\000\022\013\n\007BUTTCAP\020\001\022\r\n\tSQUARECAP\020\002", 1520); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "drules_struct.proto", &protobuf_RegisterTypes); +#endif DashDotProto::default_instance_ = new DashDotProto(); PathSymProto::default_instance_ = new PathSymProto(); LineRuleProto::default_instance_ = new LineRuleProto(); @@ -449,16 +69,20 @@ void protobuf_AddDesc_drules_5fstruct_2eproto() { ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_drules_5fstruct_2eproto); } +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_drules_5fstruct_2eproto_once_); +void protobuf_AddDesc_drules_5fstruct_2eproto() { + ::google::protobuf::::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_drules_5fstruct_2eproto_once_, + &protobuf_AddDesc_drules_5fstruct_2eproto_impl); +} +#else // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_drules_5fstruct_2eproto { StaticDescriptorInitializer_drules_5fstruct_2eproto() { protobuf_AddDesc_drules_5fstruct_2eproto(); } } static_descriptor_initializer_drules_5fstruct_2eproto_; -const ::google::protobuf::EnumDescriptor* LineJoin_descriptor() { - protobuf_AssignDescriptorsOnce(); - return LineJoin_descriptor_; -} +#endif bool LineJoin_IsValid(int value) { switch(value) { case 0: @@ -470,10 +94,6 @@ bool LineJoin_IsValid(int value) { } } -const ::google::protobuf::EnumDescriptor* LineCap_descriptor() { - protobuf_AssignDescriptorsOnce(); - return LineCap_descriptor_; -} bool LineCap_IsValid(int value) { switch(value) { case 0: @@ -494,7 +114,7 @@ const int DashDotProto::kOffsetFieldNumber; #endif // !_MSC_VER DashDotProto::DashDotProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } @@ -502,7 +122,7 @@ void DashDotProto::InitAsDefaultInstance() { } DashDotProto::DashDotProto(const DashDotProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -518,7 +138,11 @@ DashDotProto::~DashDotProto() { } void DashDotProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif } } @@ -527,13 +151,12 @@ void DashDotProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* DashDotProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DashDotProto_descriptor_; -} - const DashDotProto& DashDotProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -549,7 +172,6 @@ void DashDotProto::Clear() { } dd_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool DashDotProto::MergePartialFromCodedStream( @@ -602,8 +224,7 @@ bool DashDotProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -625,30 +246,6 @@ void DashDotProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->offset(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* DashDotProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // repeated double dd = 1; - for (int i = 0; i < this->dd_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleToArray(1, this->dd(i), target); - } - - // optional double offset = 2; - if (has_offset()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->offset(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int DashDotProto::ByteSize() const { @@ -668,27 +265,15 @@ int DashDotProto::ByteSize() const { total_size += 1 * this->dd_size() + data_size; } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void DashDotProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DashDotProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const DashDotProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void DashDotProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const DashDotProto*>(&from)); } void DashDotProto::MergeFrom(const DashDotProto& from) { @@ -699,13 +284,6 @@ void DashDotProto::MergeFrom(const DashDotProto& from) { set_offset(from.offset()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DashDotProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void DashDotProto::CopyFrom(const DashDotProto& from) { @@ -724,17 +302,12 @@ void DashDotProto::Swap(DashDotProto* other) { dd_.Swap(&other->dd_); std::swap(offset_, other->offset_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata DashDotProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DashDotProto_descriptor_; - metadata.reflection = DashDotProto_reflection_; - return metadata; +::std::string DashDotProto::GetTypeName() const { + return "DashDotProto"; } @@ -747,7 +320,7 @@ const int PathSymProto::kOffsetFieldNumber; #endif // !_MSC_VER PathSymProto::PathSymProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } @@ -755,7 +328,7 @@ void PathSymProto::InitAsDefaultInstance() { } PathSymProto::PathSymProto(const PathSymProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -776,7 +349,11 @@ void PathSymProto::SharedDtor() { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif } } @@ -785,13 +362,12 @@ void PathSymProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* PathSymProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PathSymProto_descriptor_; -} - const PathSymProto& PathSymProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -812,7 +388,6 @@ void PathSymProto::Clear() { offset_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool PathSymProto::MergePartialFromCodedStream( @@ -827,9 +402,6 @@ bool PathSymProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } @@ -875,8 +447,7 @@ bool PathSymProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -889,9 +460,6 @@ void PathSymProto::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required string name = 1; if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->name(), output); } @@ -906,39 +474,6 @@ void PathSymProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->offset(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* PathSymProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // required double step = 2; - if (has_step()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->step(), target); - } - - // optional double offset = 3; - if (has_offset()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->offset(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int PathSymProto::ByteSize() const { @@ -963,27 +498,15 @@ int PathSymProto::ByteSize() const { } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PathSymProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PathSymProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const PathSymProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void PathSymProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const PathSymProto*>(&from)); } void PathSymProto::MergeFrom(const PathSymProto& from) { @@ -999,13 +522,6 @@ void PathSymProto::MergeFrom(const PathSymProto& from) { set_offset(from.offset()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PathSymProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void PathSymProto::CopyFrom(const PathSymProto& from) { @@ -1026,17 +542,12 @@ void PathSymProto::Swap(PathSymProto* other) { std::swap(step_, other->step_); std::swap(offset_, other->offset_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata PathSymProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PathSymProto_descriptor_; - metadata.reflection = PathSymProto_reflection_; - return metadata; +::std::string PathSymProto::GetTypeName() const { + return "PathSymProto"; } @@ -1053,17 +564,27 @@ const int LineRuleProto::kCapFieldNumber; #endif // !_MSC_VER LineRuleProto::LineRuleProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } void LineRuleProto::InitAsDefaultInstance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + dashdot_ = const_cast< ::DashDotProto*>( + ::DashDotProto::internal_default_instance()); +#else dashdot_ = const_cast< ::DashDotProto*>(&::DashDotProto::default_instance()); +#endif +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + pathsym_ = const_cast< ::PathSymProto*>( + ::PathSymProto::internal_default_instance()); +#else pathsym_ = const_cast< ::PathSymProto*>(&::PathSymProto::default_instance()); +#endif } LineRuleProto::LineRuleProto(const LineRuleProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -1085,7 +606,11 @@ LineRuleProto::~LineRuleProto() { } void LineRuleProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif delete dashdot_; delete pathsym_; } @@ -1096,13 +621,12 @@ void LineRuleProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* LineRuleProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return LineRuleProto_descriptor_; -} - const LineRuleProto& LineRuleProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -1127,7 +651,6 @@ void LineRuleProto::Clear() { cap_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool LineRuleProto::MergePartialFromCodedStream( @@ -1222,8 +745,6 @@ bool LineRuleProto::MergePartialFromCodedStream( input, &value))); if (::LineJoin_IsValid(value)) { set_join(static_cast< ::LineJoin >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); } } else { goto handle_uninterpreted; @@ -1243,8 +764,6 @@ bool LineRuleProto::MergePartialFromCodedStream( input, &value))); if (::LineCap_IsValid(value)) { set_cap(static_cast< ::LineCap >(value)); - } else { - mutable_unknown_fields()->AddVarint(7, value); } } else { goto handle_uninterpreted; @@ -1259,8 +778,7 @@ bool LineRuleProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -1283,7 +801,7 @@ void LineRuleProto::SerializeWithCachedSizes( // optional .DashDotProto dashdot = 3; if (has_dashdot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 3, this->dashdot(), output); } @@ -1294,7 +812,7 @@ void LineRuleProto::SerializeWithCachedSizes( // optional .PathSymProto pathsym = 5; if (has_pathsym()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 5, this->pathsym(), output); } @@ -1310,60 +828,6 @@ void LineRuleProto::SerializeWithCachedSizes( 7, this->cap(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* LineRuleProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required double width = 1; - if (has_width()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->width(), target); - } - - // required uint32 color = 2; - if (has_color()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->color(), target); - } - - // optional .DashDotProto dashdot = 3; - if (has_dashdot()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->dashdot(), target); - } - - // required int32 priority = 4; - if (has_priority()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->priority(), target); - } - - // optional .PathSymProto pathsym = 5; - if (has_pathsym()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->pathsym(), target); - } - - // optional .LineJoin join = 6; - if (has_join()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->join(), target); - } - - // optional .LineCap cap = 7; - if (has_cap()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 7, this->cap(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int LineRuleProto::ByteSize() const { @@ -1416,27 +880,15 @@ int LineRuleProto::ByteSize() const { } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void LineRuleProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LineRuleProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const LineRuleProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void LineRuleProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const LineRuleProto*>(&from)); } void LineRuleProto::MergeFrom(const LineRuleProto& from) { @@ -1464,13 +916,6 @@ void LineRuleProto::MergeFrom(const LineRuleProto& from) { set_cap(from.cap()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LineRuleProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void LineRuleProto::CopyFrom(const LineRuleProto& from) { @@ -1498,17 +943,12 @@ void LineRuleProto::Swap(LineRuleProto* other) { std::swap(join_, other->join_); std::swap(cap_, other->cap_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata LineRuleProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = LineRuleProto_descriptor_; - metadata.reflection = LineRuleProto_reflection_; - return metadata; +::std::string LineRuleProto::GetTypeName() const { + return "LineRuleProto"; } @@ -1524,17 +964,27 @@ const int LineDefProto::kCapFieldNumber; #endif // !_MSC_VER LineDefProto::LineDefProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } void LineDefProto::InitAsDefaultInstance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + dashdot_ = const_cast< ::DashDotProto*>( + ::DashDotProto::internal_default_instance()); +#else dashdot_ = const_cast< ::DashDotProto*>(&::DashDotProto::default_instance()); +#endif +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + pathsym_ = const_cast< ::PathSymProto*>( + ::PathSymProto::internal_default_instance()); +#else pathsym_ = const_cast< ::PathSymProto*>(&::PathSymProto::default_instance()); +#endif } LineDefProto::LineDefProto(const LineDefProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -1555,7 +1005,11 @@ LineDefProto::~LineDefProto() { } void LineDefProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif delete dashdot_; delete pathsym_; } @@ -1566,13 +1020,12 @@ void LineDefProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* LineDefProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return LineDefProto_descriptor_; -} - const LineDefProto& LineDefProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -1596,7 +1049,6 @@ void LineDefProto::Clear() { cap_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool LineDefProto::MergePartialFromCodedStream( @@ -1675,8 +1127,6 @@ bool LineDefProto::MergePartialFromCodedStream( input, &value))); if (::LineJoin_IsValid(value)) { set_join(static_cast< ::LineJoin >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); } } else { goto handle_uninterpreted; @@ -1696,8 +1146,6 @@ bool LineDefProto::MergePartialFromCodedStream( input, &value))); if (::LineCap_IsValid(value)) { set_cap(static_cast< ::LineCap >(value)); - } else { - mutable_unknown_fields()->AddVarint(7, value); } } else { goto handle_uninterpreted; @@ -1712,8 +1160,7 @@ bool LineDefProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -1736,13 +1183,13 @@ void LineDefProto::SerializeWithCachedSizes( // optional .DashDotProto dashdot = 3; if (has_dashdot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 3, this->dashdot(), output); } // optional .PathSymProto pathsym = 4; if (has_pathsym()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 4, this->pathsym(), output); } @@ -1758,55 +1205,6 @@ void LineDefProto::SerializeWithCachedSizes( 7, this->cap(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* LineDefProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required double width = 1; - if (has_width()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->width(), target); - } - - // required uint32 color = 2; - if (has_color()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->color(), target); - } - - // optional .DashDotProto dashdot = 3; - if (has_dashdot()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->dashdot(), target); - } - - // optional .PathSymProto pathsym = 4; - if (has_pathsym()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->pathsym(), target); - } - - // optional .LineJoin join = 6; - if (has_join()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->join(), target); - } - - // optional .LineCap cap = 7; - if (has_cap()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 7, this->cap(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int LineDefProto::ByteSize() const { @@ -1852,27 +1250,15 @@ int LineDefProto::ByteSize() const { } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void LineDefProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const LineDefProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const LineDefProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void LineDefProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const LineDefProto*>(&from)); } void LineDefProto::MergeFrom(const LineDefProto& from) { @@ -1897,13 +1283,6 @@ void LineDefProto::MergeFrom(const LineDefProto& from) { set_cap(from.cap()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void LineDefProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void LineDefProto::CopyFrom(const LineDefProto& from) { @@ -1930,17 +1309,12 @@ void LineDefProto::Swap(LineDefProto* other) { std::swap(join_, other->join_); std::swap(cap_, other->cap_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata LineDefProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = LineDefProto_descriptor_; - metadata.reflection = LineDefProto_reflection_; - return metadata; +::std::string LineDefProto::GetTypeName() const { + return "LineDefProto"; } @@ -1953,16 +1327,21 @@ const int AreaRuleProto::kPriorityFieldNumber; #endif // !_MSC_VER AreaRuleProto::AreaRuleProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } void AreaRuleProto::InitAsDefaultInstance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + border_ = const_cast< ::LineDefProto*>( + ::LineDefProto::internal_default_instance()); +#else border_ = const_cast< ::LineDefProto*>(&::LineDefProto::default_instance()); +#endif } AreaRuleProto::AreaRuleProto(const AreaRuleProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -1980,7 +1359,11 @@ AreaRuleProto::~AreaRuleProto() { } void AreaRuleProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif delete border_; } } @@ -1990,13 +1373,12 @@ void AreaRuleProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* AreaRuleProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AreaRuleProto_descriptor_; -} - const AreaRuleProto& AreaRuleProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -2015,7 +1397,6 @@ void AreaRuleProto::Clear() { priority_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool AreaRuleProto::MergePartialFromCodedStream( @@ -2075,8 +1456,7 @@ bool AreaRuleProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -2094,7 +1474,7 @@ void AreaRuleProto::SerializeWithCachedSizes( // optional .LineDefProto border = 2; if (has_border()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 2, this->border(), output); } @@ -2103,36 +1483,6 @@ void AreaRuleProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->priority(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AreaRuleProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required uint32 color = 1; - if (has_color()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->color(), target); - } - - // optional .LineDefProto border = 2; - if (has_border()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->border(), target); - } - - // required int32 priority = 3; - if (has_priority()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->priority(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int AreaRuleProto::ByteSize() const { @@ -2161,27 +1511,15 @@ int AreaRuleProto::ByteSize() const { } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void AreaRuleProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AreaRuleProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const AreaRuleProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void AreaRuleProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const AreaRuleProto*>(&from)); } void AreaRuleProto::MergeFrom(const AreaRuleProto& from) { @@ -2197,13 +1535,6 @@ void AreaRuleProto::MergeFrom(const AreaRuleProto& from) { set_priority(from.priority()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AreaRuleProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void AreaRuleProto::CopyFrom(const AreaRuleProto& from) { @@ -2227,17 +1558,12 @@ void AreaRuleProto::Swap(AreaRuleProto* other) { std::swap(border_, other->border_); std::swap(priority_, other->priority_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata AreaRuleProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AreaRuleProto_descriptor_; - metadata.reflection = AreaRuleProto_reflection_; - return metadata; +::std::string AreaRuleProto::GetTypeName() const { + return "AreaRuleProto"; } @@ -2250,7 +1576,7 @@ const int SymbolRuleProto::kPriorityFieldNumber; #endif // !_MSC_VER SymbolRuleProto::SymbolRuleProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } @@ -2258,7 +1584,7 @@ void SymbolRuleProto::InitAsDefaultInstance() { } SymbolRuleProto::SymbolRuleProto(const SymbolRuleProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -2279,7 +1605,11 @@ void SymbolRuleProto::SharedDtor() { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif } } @@ -2288,13 +1618,12 @@ void SymbolRuleProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* SymbolRuleProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SymbolRuleProto_descriptor_; -} - const SymbolRuleProto& SymbolRuleProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -2315,7 +1644,6 @@ void SymbolRuleProto::Clear() { priority_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool SymbolRuleProto::MergePartialFromCodedStream( @@ -2330,9 +1658,6 @@ bool SymbolRuleProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } @@ -2378,8 +1703,7 @@ bool SymbolRuleProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -2392,9 +1716,6 @@ void SymbolRuleProto::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required string name = 1; if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->name(), output); } @@ -2409,39 +1730,6 @@ void SymbolRuleProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->priority(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* SymbolRuleProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // optional int32 apply_for_type = 2; - if (has_apply_for_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->apply_for_type(), target); - } - - // required int32 priority = 3; - if (has_priority()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->priority(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int SymbolRuleProto::ByteSize() const { @@ -2470,27 +1758,15 @@ int SymbolRuleProto::ByteSize() const { } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SymbolRuleProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SymbolRuleProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const SymbolRuleProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void SymbolRuleProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const SymbolRuleProto*>(&from)); } void SymbolRuleProto::MergeFrom(const SymbolRuleProto& from) { @@ -2506,13 +1782,6 @@ void SymbolRuleProto::MergeFrom(const SymbolRuleProto& from) { set_priority(from.priority()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SymbolRuleProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void SymbolRuleProto::CopyFrom(const SymbolRuleProto& from) { @@ -2533,17 +1802,12 @@ void SymbolRuleProto::Swap(SymbolRuleProto* other) { std::swap(apply_for_type_, other->apply_for_type_); std::swap(priority_, other->priority_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata SymbolRuleProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SymbolRuleProto_descriptor_; - metadata.reflection = SymbolRuleProto_reflection_; - return metadata; +::std::string SymbolRuleProto::GetTypeName() const { + return "SymbolRuleProto"; } @@ -2558,7 +1822,7 @@ const int CaptionDefProto::kOffsetYFieldNumber; #endif // !_MSC_VER CaptionDefProto::CaptionDefProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } @@ -2566,7 +1830,7 @@ void CaptionDefProto::InitAsDefaultInstance() { } CaptionDefProto::CaptionDefProto(const CaptionDefProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -2586,7 +1850,11 @@ CaptionDefProto::~CaptionDefProto() { } void CaptionDefProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif } } @@ -2595,13 +1863,12 @@ void CaptionDefProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* CaptionDefProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CaptionDefProto_descriptor_; -} - const CaptionDefProto& CaptionDefProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -2620,7 +1887,6 @@ void CaptionDefProto::Clear() { offset_y_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool CaptionDefProto::MergePartialFromCodedStream( @@ -2714,8 +1980,7 @@ bool CaptionDefProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -2751,44 +2016,6 @@ void CaptionDefProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->offset_y(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* CaptionDefProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required int32 height = 1; - if (has_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->height(), target); - } - - // required uint32 color = 2; - if (has_color()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->color(), target); - } - - // optional uint32 stroke_color = 3; - if (has_stroke_color()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->stroke_color(), target); - } - - // optional int32 offset_x = 4; - if (has_offset_x()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->offset_x(), target); - } - - // optional int32 offset_y = 5; - if (has_offset_y()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->offset_y(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int CaptionDefProto::ByteSize() const { @@ -2831,27 +2058,15 @@ int CaptionDefProto::ByteSize() const { } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CaptionDefProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CaptionDefProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const CaptionDefProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void CaptionDefProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const CaptionDefProto*>(&from)); } void CaptionDefProto::MergeFrom(const CaptionDefProto& from) { @@ -2873,13 +2088,6 @@ void CaptionDefProto::MergeFrom(const CaptionDefProto& from) { set_offset_y(from.offset_y()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CaptionDefProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void CaptionDefProto::CopyFrom(const CaptionDefProto& from) { @@ -2902,17 +2110,12 @@ void CaptionDefProto::Swap(CaptionDefProto* other) { std::swap(offset_x_, other->offset_x_); std::swap(offset_y_, other->offset_y_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata CaptionDefProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CaptionDefProto_descriptor_; - metadata.reflection = CaptionDefProto_reflection_; - return metadata; +::std::string CaptionDefProto::GetTypeName() const { + return "CaptionDefProto"; } @@ -2925,17 +2128,27 @@ const int CaptionRuleProto::kPriorityFieldNumber; #endif // !_MSC_VER CaptionRuleProto::CaptionRuleProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } void CaptionRuleProto::InitAsDefaultInstance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + primary_ = const_cast< ::CaptionDefProto*>( + ::CaptionDefProto::internal_default_instance()); +#else primary_ = const_cast< ::CaptionDefProto*>(&::CaptionDefProto::default_instance()); +#endif +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + secondary_ = const_cast< ::CaptionDefProto*>( + ::CaptionDefProto::internal_default_instance()); +#else secondary_ = const_cast< ::CaptionDefProto*>(&::CaptionDefProto::default_instance()); +#endif } CaptionRuleProto::CaptionRuleProto(const CaptionRuleProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -2953,7 +2166,11 @@ CaptionRuleProto::~CaptionRuleProto() { } void CaptionRuleProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif delete primary_; delete secondary_; } @@ -2964,13 +2181,12 @@ void CaptionRuleProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* CaptionRuleProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CaptionRuleProto_descriptor_; -} - const CaptionRuleProto& CaptionRuleProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -2991,7 +2207,6 @@ void CaptionRuleProto::Clear() { priority_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool CaptionRuleProto::MergePartialFromCodedStream( @@ -3049,8 +2264,7 @@ bool CaptionRuleProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -3063,13 +2277,13 @@ void CaptionRuleProto::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required .CaptionDefProto primary = 1; if (has_primary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 1, this->primary(), output); } // optional .CaptionDefProto secondary = 2; if (has_secondary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 2, this->secondary(), output); } @@ -3078,38 +2292,6 @@ void CaptionRuleProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->priority(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* CaptionRuleProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .CaptionDefProto primary = 1; - if (has_primary()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->primary(), target); - } - - // optional .CaptionDefProto secondary = 2; - if (has_secondary()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->secondary(), target); - } - - // required int32 priority = 3; - if (has_priority()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->priority(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int CaptionRuleProto::ByteSize() const { @@ -3138,27 +2320,15 @@ int CaptionRuleProto::ByteSize() const { } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CaptionRuleProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CaptionRuleProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const CaptionRuleProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void CaptionRuleProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const CaptionRuleProto*>(&from)); } void CaptionRuleProto::MergeFrom(const CaptionRuleProto& from) { @@ -3174,13 +2344,6 @@ void CaptionRuleProto::MergeFrom(const CaptionRuleProto& from) { set_priority(from.priority()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CaptionRuleProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void CaptionRuleProto::CopyFrom(const CaptionRuleProto& from) { @@ -3207,17 +2370,12 @@ void CaptionRuleProto::Swap(CaptionRuleProto* other) { std::swap(secondary_, other->secondary_); std::swap(priority_, other->priority_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata CaptionRuleProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CaptionRuleProto_descriptor_; - metadata.reflection = CaptionRuleProto_reflection_; - return metadata; +::std::string CaptionRuleProto::GetTypeName() const { + return "CaptionRuleProto"; } @@ -3231,16 +2389,21 @@ const int CircleRuleProto::kPriorityFieldNumber; #endif // !_MSC_VER CircleRuleProto::CircleRuleProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } void CircleRuleProto::InitAsDefaultInstance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + border_ = const_cast< ::LineDefProto*>( + ::LineDefProto::internal_default_instance()); +#else border_ = const_cast< ::LineDefProto*>(&::LineDefProto::default_instance()); +#endif } CircleRuleProto::CircleRuleProto(const CircleRuleProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -3259,7 +2422,11 @@ CircleRuleProto::~CircleRuleProto() { } void CircleRuleProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif delete border_; } } @@ -3269,13 +2436,12 @@ void CircleRuleProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* CircleRuleProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CircleRuleProto_descriptor_; -} - const CircleRuleProto& CircleRuleProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -3295,7 +2461,6 @@ void CircleRuleProto::Clear() { priority_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool CircleRuleProto::MergePartialFromCodedStream( @@ -3371,8 +2536,7 @@ bool CircleRuleProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -3395,7 +2559,7 @@ void CircleRuleProto::SerializeWithCachedSizes( // optional .LineDefProto border = 3; if (has_border()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 3, this->border(), output); } @@ -3404,41 +2568,6 @@ void CircleRuleProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->priority(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* CircleRuleProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required double radius = 1; - if (has_radius()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->radius(), target); - } - - // required uint32 color = 2; - if (has_color()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->color(), target); - } - - // optional .LineDefProto border = 3; - if (has_border()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->border(), target); - } - - // required int32 priority = 4; - if (has_priority()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->priority(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int CircleRuleProto::ByteSize() const { @@ -3472,27 +2601,15 @@ int CircleRuleProto::ByteSize() const { } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CircleRuleProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CircleRuleProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const CircleRuleProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void CircleRuleProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const CircleRuleProto*>(&from)); } void CircleRuleProto::MergeFrom(const CircleRuleProto& from) { @@ -3511,13 +2628,6 @@ void CircleRuleProto::MergeFrom(const CircleRuleProto& from) { set_priority(from.priority()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CircleRuleProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void CircleRuleProto::CopyFrom(const CircleRuleProto& from) { @@ -3542,17 +2652,12 @@ void CircleRuleProto::Swap(CircleRuleProto* other) { std::swap(border_, other->border_); std::swap(priority_, other->priority_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata CircleRuleProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CircleRuleProto_descriptor_; - metadata.reflection = CircleRuleProto_reflection_; - return metadata; +::std::string CircleRuleProto::GetTypeName() const { + return "CircleRuleProto"; } @@ -3565,17 +2670,27 @@ const int PathTextRuleProto::kPriorityFieldNumber; #endif // !_MSC_VER PathTextRuleProto::PathTextRuleProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } void PathTextRuleProto::InitAsDefaultInstance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + primary_ = const_cast< ::CaptionDefProto*>( + ::CaptionDefProto::internal_default_instance()); +#else primary_ = const_cast< ::CaptionDefProto*>(&::CaptionDefProto::default_instance()); +#endif +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + secondary_ = const_cast< ::CaptionDefProto*>( + ::CaptionDefProto::internal_default_instance()); +#else secondary_ = const_cast< ::CaptionDefProto*>(&::CaptionDefProto::default_instance()); +#endif } PathTextRuleProto::PathTextRuleProto(const PathTextRuleProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -3593,7 +2708,11 @@ PathTextRuleProto::~PathTextRuleProto() { } void PathTextRuleProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif delete primary_; delete secondary_; } @@ -3604,13 +2723,12 @@ void PathTextRuleProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* PathTextRuleProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PathTextRuleProto_descriptor_; -} - const PathTextRuleProto& PathTextRuleProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -3631,7 +2749,6 @@ void PathTextRuleProto::Clear() { priority_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool PathTextRuleProto::MergePartialFromCodedStream( @@ -3689,8 +2806,7 @@ bool PathTextRuleProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -3703,13 +2819,13 @@ void PathTextRuleProto::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required .CaptionDefProto primary = 1; if (has_primary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 1, this->primary(), output); } // optional .CaptionDefProto secondary = 2; if (has_secondary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 2, this->secondary(), output); } @@ -3718,38 +2834,6 @@ void PathTextRuleProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->priority(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* PathTextRuleProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .CaptionDefProto primary = 1; - if (has_primary()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->primary(), target); - } - - // optional .CaptionDefProto secondary = 2; - if (has_secondary()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->secondary(), target); - } - - // required int32 priority = 3; - if (has_priority()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->priority(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int PathTextRuleProto::ByteSize() const { @@ -3778,27 +2862,15 @@ int PathTextRuleProto::ByteSize() const { } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PathTextRuleProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const PathTextRuleProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const PathTextRuleProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void PathTextRuleProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const PathTextRuleProto*>(&from)); } void PathTextRuleProto::MergeFrom(const PathTextRuleProto& from) { @@ -3814,13 +2886,6 @@ void PathTextRuleProto::MergeFrom(const PathTextRuleProto& from) { set_priority(from.priority()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void PathTextRuleProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void PathTextRuleProto::CopyFrom(const PathTextRuleProto& from) { @@ -3847,17 +2912,12 @@ void PathTextRuleProto::Swap(PathTextRuleProto* other) { std::swap(secondary_, other->secondary_); std::swap(priority_, other->priority_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata PathTextRuleProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PathTextRuleProto_descriptor_; - metadata.reflection = PathTextRuleProto_reflection_; - return metadata; +::std::string PathTextRuleProto::GetTypeName() const { + return "PathTextRuleProto"; } @@ -3874,20 +2934,45 @@ const int DrawElementProto::kPathTextFieldNumber; #endif // !_MSC_VER DrawElementProto::DrawElementProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } void DrawElementProto::InitAsDefaultInstance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + area_ = const_cast< ::AreaRuleProto*>( + ::AreaRuleProto::internal_default_instance()); +#else area_ = const_cast< ::AreaRuleProto*>(&::AreaRuleProto::default_instance()); +#endif +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + symbol_ = const_cast< ::SymbolRuleProto*>( + ::SymbolRuleProto::internal_default_instance()); +#else symbol_ = const_cast< ::SymbolRuleProto*>(&::SymbolRuleProto::default_instance()); +#endif +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + caption_ = const_cast< ::CaptionRuleProto*>( + ::CaptionRuleProto::internal_default_instance()); +#else caption_ = const_cast< ::CaptionRuleProto*>(&::CaptionRuleProto::default_instance()); +#endif +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + circle_ = const_cast< ::CircleRuleProto*>( + ::CircleRuleProto::internal_default_instance()); +#else circle_ = const_cast< ::CircleRuleProto*>(&::CircleRuleProto::default_instance()); +#endif +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + path_text_ = const_cast< ::PathTextRuleProto*>( + ::PathTextRuleProto::internal_default_instance()); +#else path_text_ = const_cast< ::PathTextRuleProto*>(&::PathTextRuleProto::default_instance()); +#endif } DrawElementProto::DrawElementProto(const DrawElementProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -3908,7 +2993,11 @@ DrawElementProto::~DrawElementProto() { } void DrawElementProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif delete area_; delete symbol_; delete caption_; @@ -3922,13 +3011,12 @@ void DrawElementProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* DrawElementProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DrawElementProto_descriptor_; -} - const DrawElementProto& DrawElementProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -3959,7 +3047,6 @@ void DrawElementProto::Clear() { } lines_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool DrawElementProto::MergePartialFromCodedStream( @@ -4074,8 +3161,7 @@ bool DrawElementProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -4093,100 +3179,40 @@ void DrawElementProto::SerializeWithCachedSizes( // repeated .LineRuleProto lines = 2; for (int i = 0; i < this->lines_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 2, this->lines(i), output); } // optional .AreaRuleProto area = 3; if (has_area()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 3, this->area(), output); } // optional .SymbolRuleProto symbol = 4; if (has_symbol()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 4, this->symbol(), output); } // optional .CaptionRuleProto caption = 5; if (has_caption()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 5, this->caption(), output); } // optional .CircleRuleProto circle = 6; if (has_circle()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 6, this->circle(), output); } // optional .PathTextRuleProto path_text = 7; if (has_path_text()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 7, this->path_text(), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* DrawElementProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required int32 scale = 1; - if (has_scale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->scale(), target); - } - - // repeated .LineRuleProto lines = 2; - for (int i = 0; i < this->lines_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->lines(i), target); - } - - // optional .AreaRuleProto area = 3; - if (has_area()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->area(), target); - } - - // optional .SymbolRuleProto symbol = 4; - if (has_symbol()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->symbol(), target); - } - - // optional .CaptionRuleProto caption = 5; - if (has_caption()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->caption(), target); - } - - // optional .CircleRuleProto circle = 6; - if (has_circle()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->circle(), target); - } - - // optional .PathTextRuleProto path_text = 7; - if (has_path_text()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->path_text(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int DrawElementProto::ByteSize() const { @@ -4244,27 +3270,15 @@ int DrawElementProto::ByteSize() const { this->lines(i)); } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void DrawElementProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const DrawElementProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const DrawElementProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void DrawElementProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const DrawElementProto*>(&from)); } void DrawElementProto::MergeFrom(const DrawElementProto& from) { @@ -4290,13 +3304,6 @@ void DrawElementProto::MergeFrom(const DrawElementProto& from) { mutable_path_text()->::PathTextRuleProto::MergeFrom(from.path_text()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void DrawElementProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void DrawElementProto::CopyFrom(const DrawElementProto& from) { @@ -4339,17 +3346,12 @@ void DrawElementProto::Swap(DrawElementProto* other) { std::swap(circle_, other->circle_); std::swap(path_text_, other->path_text_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata DrawElementProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DrawElementProto_descriptor_; - metadata.reflection = DrawElementProto_reflection_; - return metadata; +::std::string DrawElementProto::GetTypeName() const { + return "DrawElementProto"; } @@ -4361,7 +3363,7 @@ const int ClassifElementProto::kElementFieldNumber; #endif // !_MSC_VER ClassifElementProto::ClassifElementProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } @@ -4369,7 +3371,7 @@ void ClassifElementProto::InitAsDefaultInstance() { } ClassifElementProto::ClassifElementProto(const ClassifElementProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -4388,7 +3390,11 @@ void ClassifElementProto::SharedDtor() { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif } } @@ -4397,13 +3403,12 @@ void ClassifElementProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* ClassifElementProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ClassifElementProto_descriptor_; -} - const ClassifElementProto& ClassifElementProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -4423,7 +3428,6 @@ void ClassifElementProto::Clear() { } element_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool ClassifElementProto::MergePartialFromCodedStream( @@ -4438,9 +3442,6 @@ bool ClassifElementProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } @@ -4469,8 +3470,7 @@ bool ClassifElementProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -4483,49 +3483,16 @@ void ClassifElementProto::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required string name = 1; if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->name(), output); } // repeated .DrawElementProto element = 2; for (int i = 0; i < this->element_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 2, this->element(i), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ClassifElementProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // repeated .DrawElementProto element = 2; - for (int i = 0; i < this->element_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->element(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int ClassifElementProto::ByteSize() const { @@ -4548,27 +3515,15 @@ int ClassifElementProto::ByteSize() const { this->element(i)); } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ClassifElementProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ClassifElementProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const ClassifElementProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void ClassifElementProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const ClassifElementProto*>(&from)); } void ClassifElementProto::MergeFrom(const ClassifElementProto& from) { @@ -4579,13 +3534,6 @@ void ClassifElementProto::MergeFrom(const ClassifElementProto& from) { set_name(from.name()); } } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ClassifElementProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void ClassifElementProto::CopyFrom(const ClassifElementProto& from) { @@ -4608,17 +3556,12 @@ void ClassifElementProto::Swap(ClassifElementProto* other) { std::swap(name_, other->name_); element_.Swap(&other->element_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata ClassifElementProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ClassifElementProto_descriptor_; - metadata.reflection = ClassifElementProto_reflection_; - return metadata; +::std::string ClassifElementProto::GetTypeName() const { + return "ClassifElementProto"; } @@ -4629,7 +3572,7 @@ const int ContainerProto::kContFieldNumber; #endif // !_MSC_VER ContainerProto::ContainerProto() - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); } @@ -4637,7 +3580,7 @@ void ContainerProto::InitAsDefaultInstance() { } ContainerProto::ContainerProto(const ContainerProto& from) - : ::google::protobuf::Message() { + : ::google::protobuf::MessageLite() { SharedCtor(); MergeFrom(from); } @@ -4652,7 +3595,11 @@ ContainerProto::~ContainerProto() { } void ContainerProto::SharedDtor() { + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + if (this != &default_instance()) { + #else if (this != default_instance_) { + #endif } } @@ -4661,13 +3608,12 @@ void ContainerProto::SetCachedSize(int size) const { _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* ContainerProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ContainerProto_descriptor_; -} - const ContainerProto& ContainerProto::default_instance() { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + protobuf_AddDesc_drules_5fstruct_2eproto(); +#else if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); +#endif return *default_instance_; } @@ -4680,7 +3626,6 @@ ContainerProto* ContainerProto::New() const { void ContainerProto::Clear() { cont_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); } bool ContainerProto::MergePartialFromCodedStream( @@ -4710,8 +3655,7 @@ bool ContainerProto::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } @@ -4724,30 +3668,10 @@ void ContainerProto::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // repeated .ClassifElementProto cont = 1; for (int i = 0; i < this->cont_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessage( 1, this->cont(i), output); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* ContainerProto::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // repeated .ClassifElementProto cont = 1; - for (int i = 0; i < this->cont_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->cont(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; } int ContainerProto::ByteSize() const { @@ -4761,39 +3685,20 @@ int ContainerProto::ByteSize() const { this->cont(i)); } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ContainerProto::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ContainerProto* source = - ::google::protobuf::internal::dynamic_cast_if_available<const ContainerProto*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } +void ContainerProto::CheckTypeAndMergeFrom( + const ::google::protobuf::MessageLite& from) { + MergeFrom(*::google::protobuf::down_cast<const ContainerProto*>(&from)); } void ContainerProto::MergeFrom(const ContainerProto& from) { GOOGLE_CHECK_NE(&from, this); cont_.MergeFrom(from.cont_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ContainerProto::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); } void ContainerProto::CopyFrom(const ContainerProto& from) { @@ -4814,17 +3719,12 @@ void ContainerProto::Swap(ContainerProto* other) { if (other != this) { cont_.Swap(&other->cont_); std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata ContainerProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ContainerProto_descriptor_; - metadata.reflection = ContainerProto_reflection_; - return metadata; +::std::string ContainerProto::GetTypeName() const { + return "ContainerProto"; } diff --git a/indexer/drules_struct.pb.h b/indexer/drules_struct.pb.h index 109d014e35..d52b39fb68 100644 --- a/indexer/drules_struct.pb.h +++ b/indexer/drules_struct.pb.h @@ -20,11 +20,9 @@ #endif #include <google/protobuf/generated_message_util.h> -#include <google/protobuf/message.h> +#include <google/protobuf/message_lite.h> #include <google/protobuf/repeated_field.h> #include <google/protobuf/extension_set.h> -#include <google/protobuf/generated_enum_reflection.h> -#include <google/protobuf/unknown_field_set.h> // @@protoc_insertion_point(includes) // Internal implementation detail -- do not call these. @@ -56,16 +54,6 @@ const LineJoin LineJoin_MIN = ROUNDJOIN; const LineJoin LineJoin_MAX = NOJOIN; const int LineJoin_ARRAYSIZE = LineJoin_MAX + 1; -const ::google::protobuf::EnumDescriptor* LineJoin_descriptor(); -inline const ::std::string& LineJoin_Name(LineJoin value) { - return ::google::protobuf::internal::NameOfEnum( - LineJoin_descriptor(), value); -} -inline bool LineJoin_Parse( - const ::std::string& name, LineJoin* value) { - return ::google::protobuf::internal::ParseNamedEnum<LineJoin>( - LineJoin_descriptor(), name, value); -} enum LineCap { ROUNDCAP = 0, BUTTCAP = 1, @@ -76,19 +64,9 @@ const LineCap LineCap_MIN = ROUNDCAP; const LineCap LineCap_MAX = SQUARECAP; const int LineCap_ARRAYSIZE = LineCap_MAX + 1; -const ::google::protobuf::EnumDescriptor* LineCap_descriptor(); -inline const ::std::string& LineCap_Name(LineCap value) { - return ::google::protobuf::internal::NameOfEnum( - LineCap_descriptor(), value); -} -inline bool LineCap_Parse( - const ::std::string& name, LineCap* value) { - return ::google::protobuf::internal::ParseNamedEnum<LineCap>( - LineCap_descriptor(), name, value); -} // =================================================================== -class DashDotProto : public ::google::protobuf::Message { +class DashDotProto : public ::google::protobuf::MessageLite { public: DashDotProto(); virtual ~DashDotProto(); @@ -100,24 +78,24 @@ class DashDotProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const DashDotProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const DashDotProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const DashDotProto& default_instance(); + #endif void Swap(DashDotProto* other); // implements Message ---------------------------------------------- DashDotProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const DashDotProto& from); void MergeFrom(const DashDotProto& from); void Clear(); @@ -128,7 +106,6 @@ class DashDotProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -136,7 +113,7 @@ class DashDotProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -166,15 +143,17 @@ class DashDotProto : public ::google::protobuf::Message { inline void set_has_offset(); inline void clear_has_offset(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::google::protobuf::RepeatedField< double > dd_; double offset_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -183,7 +162,7 @@ class DashDotProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class PathSymProto : public ::google::protobuf::Message { +class PathSymProto : public ::google::protobuf::MessageLite { public: PathSymProto(); virtual ~PathSymProto(); @@ -195,24 +174,24 @@ class PathSymProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const PathSymProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const PathSymProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PathSymProto& default_instance(); + #endif void Swap(PathSymProto* other); // implements Message ---------------------------------------------- PathSymProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PathSymProto& from); void MergeFrom(const PathSymProto& from); void Clear(); @@ -223,7 +202,6 @@ class PathSymProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -231,7 +209,7 @@ class PathSymProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -272,8 +250,6 @@ class PathSymProto : public ::google::protobuf::Message { inline void set_has_offset(); inline void clear_has_offset(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::std::string* name_; double step_; double offset_; @@ -281,7 +257,11 @@ class PathSymProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -290,7 +270,7 @@ class PathSymProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class LineRuleProto : public ::google::protobuf::Message { +class LineRuleProto : public ::google::protobuf::MessageLite { public: LineRuleProto(); virtual ~LineRuleProto(); @@ -302,24 +282,24 @@ class LineRuleProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const LineRuleProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const LineRuleProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const LineRuleProto& default_instance(); + #endif void Swap(LineRuleProto* other); // implements Message ---------------------------------------------- LineRuleProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const LineRuleProto& from); void MergeFrom(const LineRuleProto& from); void Clear(); @@ -330,7 +310,6 @@ class LineRuleProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -338,7 +317,7 @@ class LineRuleProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -414,8 +393,6 @@ class LineRuleProto : public ::google::protobuf::Message { inline void set_has_cap(); inline void clear_has_cap(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - double width_; ::DashDotProto* dashdot_; ::google::protobuf::uint32 color_; @@ -427,7 +404,11 @@ class LineRuleProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -436,7 +417,7 @@ class LineRuleProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class LineDefProto : public ::google::protobuf::Message { +class LineDefProto : public ::google::protobuf::MessageLite { public: LineDefProto(); virtual ~LineDefProto(); @@ -448,24 +429,24 @@ class LineDefProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const LineDefProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const LineDefProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const LineDefProto& default_instance(); + #endif void Swap(LineDefProto* other); // implements Message ---------------------------------------------- LineDefProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const LineDefProto& from); void MergeFrom(const LineDefProto& from); void Clear(); @@ -476,7 +457,6 @@ class LineDefProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -484,7 +464,7 @@ class LineDefProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -551,8 +531,6 @@ class LineDefProto : public ::google::protobuf::Message { inline void set_has_cap(); inline void clear_has_cap(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - double width_; ::DashDotProto* dashdot_; ::google::protobuf::uint32 color_; @@ -563,7 +541,11 @@ class LineDefProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -572,7 +554,7 @@ class LineDefProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class AreaRuleProto : public ::google::protobuf::Message { +class AreaRuleProto : public ::google::protobuf::MessageLite { public: AreaRuleProto(); virtual ~AreaRuleProto(); @@ -584,24 +566,24 @@ class AreaRuleProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const AreaRuleProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const AreaRuleProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const AreaRuleProto& default_instance(); + #endif void Swap(AreaRuleProto* other); // implements Message ---------------------------------------------- AreaRuleProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AreaRuleProto& from); void MergeFrom(const AreaRuleProto& from); void Clear(); @@ -612,7 +594,6 @@ class AreaRuleProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -620,7 +601,7 @@ class AreaRuleProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -658,8 +639,6 @@ class AreaRuleProto : public ::google::protobuf::Message { inline void set_has_priority(); inline void clear_has_priority(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::LineDefProto* border_; ::google::protobuf::uint32 color_; ::google::protobuf::int32 priority_; @@ -667,7 +646,11 @@ class AreaRuleProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -676,7 +659,7 @@ class AreaRuleProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class SymbolRuleProto : public ::google::protobuf::Message { +class SymbolRuleProto : public ::google::protobuf::MessageLite { public: SymbolRuleProto(); virtual ~SymbolRuleProto(); @@ -688,24 +671,24 @@ class SymbolRuleProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const SymbolRuleProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const SymbolRuleProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SymbolRuleProto& default_instance(); + #endif void Swap(SymbolRuleProto* other); // implements Message ---------------------------------------------- SymbolRuleProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const SymbolRuleProto& from); void MergeFrom(const SymbolRuleProto& from); void Clear(); @@ -716,7 +699,6 @@ class SymbolRuleProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -724,7 +706,7 @@ class SymbolRuleProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -765,8 +747,6 @@ class SymbolRuleProto : public ::google::protobuf::Message { inline void set_has_priority(); inline void clear_has_priority(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::std::string* name_; ::google::protobuf::int32 apply_for_type_; ::google::protobuf::int32 priority_; @@ -774,7 +754,11 @@ class SymbolRuleProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -783,7 +767,7 @@ class SymbolRuleProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class CaptionDefProto : public ::google::protobuf::Message { +class CaptionDefProto : public ::google::protobuf::MessageLite { public: CaptionDefProto(); virtual ~CaptionDefProto(); @@ -795,24 +779,24 @@ class CaptionDefProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const CaptionDefProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const CaptionDefProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CaptionDefProto& default_instance(); + #endif void Swap(CaptionDefProto* other); // implements Message ---------------------------------------------- CaptionDefProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const CaptionDefProto& from); void MergeFrom(const CaptionDefProto& from); void Clear(); @@ -823,7 +807,6 @@ class CaptionDefProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -831,7 +814,7 @@ class CaptionDefProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -885,8 +868,6 @@ class CaptionDefProto : public ::google::protobuf::Message { inline void set_has_offset_y(); inline void clear_has_offset_y(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::google::protobuf::int32 height_; ::google::protobuf::uint32 color_; ::google::protobuf::uint32 stroke_color_; @@ -896,7 +877,11 @@ class CaptionDefProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -905,7 +890,7 @@ class CaptionDefProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class CaptionRuleProto : public ::google::protobuf::Message { +class CaptionRuleProto : public ::google::protobuf::MessageLite { public: CaptionRuleProto(); virtual ~CaptionRuleProto(); @@ -917,24 +902,24 @@ class CaptionRuleProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const CaptionRuleProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const CaptionRuleProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CaptionRuleProto& default_instance(); + #endif void Swap(CaptionRuleProto* other); // implements Message ---------------------------------------------- CaptionRuleProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const CaptionRuleProto& from); void MergeFrom(const CaptionRuleProto& from); void Clear(); @@ -945,7 +930,6 @@ class CaptionRuleProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -953,7 +937,7 @@ class CaptionRuleProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -993,8 +977,6 @@ class CaptionRuleProto : public ::google::protobuf::Message { inline void set_has_priority(); inline void clear_has_priority(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::CaptionDefProto* primary_; ::CaptionDefProto* secondary_; ::google::protobuf::int32 priority_; @@ -1002,7 +984,11 @@ class CaptionRuleProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -1011,7 +997,7 @@ class CaptionRuleProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class CircleRuleProto : public ::google::protobuf::Message { +class CircleRuleProto : public ::google::protobuf::MessageLite { public: CircleRuleProto(); virtual ~CircleRuleProto(); @@ -1023,24 +1009,24 @@ class CircleRuleProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const CircleRuleProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const CircleRuleProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const CircleRuleProto& default_instance(); + #endif void Swap(CircleRuleProto* other); // implements Message ---------------------------------------------- CircleRuleProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const CircleRuleProto& from); void MergeFrom(const CircleRuleProto& from); void Clear(); @@ -1051,7 +1037,6 @@ class CircleRuleProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -1059,7 +1044,7 @@ class CircleRuleProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -1106,8 +1091,6 @@ class CircleRuleProto : public ::google::protobuf::Message { inline void set_has_priority(); inline void clear_has_priority(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - double radius_; ::LineDefProto* border_; ::google::protobuf::uint32 color_; @@ -1116,7 +1099,11 @@ class CircleRuleProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -1125,7 +1112,7 @@ class CircleRuleProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class PathTextRuleProto : public ::google::protobuf::Message { +class PathTextRuleProto : public ::google::protobuf::MessageLite { public: PathTextRuleProto(); virtual ~PathTextRuleProto(); @@ -1137,24 +1124,24 @@ class PathTextRuleProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const PathTextRuleProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const PathTextRuleProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const PathTextRuleProto& default_instance(); + #endif void Swap(PathTextRuleProto* other); // implements Message ---------------------------------------------- PathTextRuleProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PathTextRuleProto& from); void MergeFrom(const PathTextRuleProto& from); void Clear(); @@ -1165,7 +1152,6 @@ class PathTextRuleProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -1173,7 +1159,7 @@ class PathTextRuleProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -1213,8 +1199,6 @@ class PathTextRuleProto : public ::google::protobuf::Message { inline void set_has_priority(); inline void clear_has_priority(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::CaptionDefProto* primary_; ::CaptionDefProto* secondary_; ::google::protobuf::int32 priority_; @@ -1222,7 +1206,11 @@ class PathTextRuleProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -1231,7 +1219,7 @@ class PathTextRuleProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class DrawElementProto : public ::google::protobuf::Message { +class DrawElementProto : public ::google::protobuf::MessageLite { public: DrawElementProto(); virtual ~DrawElementProto(); @@ -1243,24 +1231,24 @@ class DrawElementProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const DrawElementProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const DrawElementProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const DrawElementProto& default_instance(); + #endif void Swap(DrawElementProto* other); // implements Message ---------------------------------------------- DrawElementProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const DrawElementProto& from); void MergeFrom(const DrawElementProto& from); void Clear(); @@ -1271,7 +1259,6 @@ class DrawElementProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -1279,7 +1266,7 @@ class DrawElementProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -1364,8 +1351,6 @@ class DrawElementProto : public ::google::protobuf::Message { inline void set_has_path_text(); inline void clear_has_path_text(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::google::protobuf::RepeatedPtrField< ::LineRuleProto > lines_; ::AreaRuleProto* area_; ::SymbolRuleProto* symbol_; @@ -1377,7 +1362,11 @@ class DrawElementProto : public ::google::protobuf::Message { mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -1386,7 +1375,7 @@ class DrawElementProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class ClassifElementProto : public ::google::protobuf::Message { +class ClassifElementProto : public ::google::protobuf::MessageLite { public: ClassifElementProto(); virtual ~ClassifElementProto(); @@ -1398,24 +1387,24 @@ class ClassifElementProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const ClassifElementProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const ClassifElementProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ClassifElementProto& default_instance(); + #endif void Swap(ClassifElementProto* other); // implements Message ---------------------------------------------- ClassifElementProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ClassifElementProto& from); void MergeFrom(const ClassifElementProto& from); void Clear(); @@ -1426,7 +1415,6 @@ class ClassifElementProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -1434,7 +1422,7 @@ class ClassifElementProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -1469,15 +1457,17 @@ class ClassifElementProto : public ::google::protobuf::Message { inline void set_has_name(); inline void clear_has_name(); - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::std::string* name_; ::google::protobuf::RepeatedPtrField< ::DrawElementProto > element_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -1486,7 +1476,7 @@ class ClassifElementProto : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class ContainerProto : public ::google::protobuf::Message { +class ContainerProto : public ::google::protobuf::MessageLite { public: ContainerProto(); virtual ~ContainerProto(); @@ -1498,24 +1488,24 @@ class ContainerProto : public ::google::protobuf::Message { return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } + static const ContainerProto& default_instance(); - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + // Returns the internal default instance pointer. This function can + // return NULL thus should not be used by the user. This is intended + // for Protobuf internal code. Please use default_instance() declared + // above instead. + static inline const ContainerProto* internal_default_instance() { + return default_instance_; } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ContainerProto& default_instance(); + #endif void Swap(ContainerProto* other); // implements Message ---------------------------------------------- ContainerProto* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ContainerProto& from); void MergeFrom(const ContainerProto& from); void Clear(); @@ -1526,7 +1516,6 @@ class ContainerProto : public ::google::protobuf::Message { ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); @@ -1534,7 +1523,7 @@ class ContainerProto : public ::google::protobuf::Message { void SetCachedSize(int size) const; public: - ::google::protobuf::Metadata GetMetadata() const; + ::std::string GetTypeName() const; // nested types ---------------------------------------------------- @@ -1555,14 +1544,16 @@ class ContainerProto : public ::google::protobuf::Message { // @@protoc_insertion_point(class_scope:ContainerProto) private: - ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::google::protobuf::RepeatedPtrField< ::ClassifElementProto > cont_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); + #else friend void protobuf_AddDesc_drules_5fstruct_2eproto(); + #endif friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); @@ -1804,7 +1795,11 @@ inline void LineRuleProto::clear_dashdot() { clear_has_dashdot(); } inline const ::DashDotProto& LineRuleProto::dashdot() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return dashdot_ != NULL ? *dashdot_ : *default_instance().dashdot_; +#else return dashdot_ != NULL ? *dashdot_ : *default_instance_->dashdot_; +#endif } inline ::DashDotProto* LineRuleProto::mutable_dashdot() { set_has_dashdot(); @@ -1864,7 +1859,11 @@ inline void LineRuleProto::clear_pathsym() { clear_has_pathsym(); } inline const ::PathSymProto& LineRuleProto::pathsym() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return pathsym_ != NULL ? *pathsym_ : *default_instance().pathsym_; +#else return pathsym_ != NULL ? *pathsym_ : *default_instance_->pathsym_; +#endif } inline ::PathSymProto* LineRuleProto::mutable_pathsym() { set_has_pathsym(); @@ -1996,7 +1995,11 @@ inline void LineDefProto::clear_dashdot() { clear_has_dashdot(); } inline const ::DashDotProto& LineDefProto::dashdot() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return dashdot_ != NULL ? *dashdot_ : *default_instance().dashdot_; +#else return dashdot_ != NULL ? *dashdot_ : *default_instance_->dashdot_; +#endif } inline ::DashDotProto* LineDefProto::mutable_dashdot() { set_has_dashdot(); @@ -2034,7 +2037,11 @@ inline void LineDefProto::clear_pathsym() { clear_has_pathsym(); } inline const ::PathSymProto& LineDefProto::pathsym() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return pathsym_ != NULL ? *pathsym_ : *default_instance().pathsym_; +#else return pathsym_ != NULL ? *pathsym_ : *default_instance_->pathsym_; +#endif } inline ::PathSymProto* LineDefProto::mutable_pathsym() { set_has_pathsym(); @@ -2144,7 +2151,11 @@ inline void AreaRuleProto::clear_border() { clear_has_border(); } inline const ::LineDefProto& AreaRuleProto::border() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return border_ != NULL ? *border_ : *default_instance().border_; +#else return border_ != NULL ? *border_ : *default_instance_->border_; +#endif } inline ::LineDefProto* AreaRuleProto::mutable_border() { set_has_border(); @@ -2440,7 +2451,11 @@ inline void CaptionRuleProto::clear_primary() { clear_has_primary(); } inline const ::CaptionDefProto& CaptionRuleProto::primary() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return primary_ != NULL ? *primary_ : *default_instance().primary_; +#else return primary_ != NULL ? *primary_ : *default_instance_->primary_; +#endif } inline ::CaptionDefProto* CaptionRuleProto::mutable_primary() { set_has_primary(); @@ -2478,7 +2493,11 @@ inline void CaptionRuleProto::clear_secondary() { clear_has_secondary(); } inline const ::CaptionDefProto& CaptionRuleProto::secondary() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return secondary_ != NULL ? *secondary_ : *default_instance().secondary_; +#else return secondary_ != NULL ? *secondary_ : *default_instance_->secondary_; +#endif } inline ::CaptionDefProto* CaptionRuleProto::mutable_secondary() { set_has_secondary(); @@ -2586,7 +2605,11 @@ inline void CircleRuleProto::clear_border() { clear_has_border(); } inline const ::LineDefProto& CircleRuleProto::border() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return border_ != NULL ? *border_ : *default_instance().border_; +#else return border_ != NULL ? *border_ : *default_instance_->border_; +#endif } inline ::LineDefProto* CircleRuleProto::mutable_border() { set_has_border(); @@ -2650,7 +2673,11 @@ inline void PathTextRuleProto::clear_primary() { clear_has_primary(); } inline const ::CaptionDefProto& PathTextRuleProto::primary() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return primary_ != NULL ? *primary_ : *default_instance().primary_; +#else return primary_ != NULL ? *primary_ : *default_instance_->primary_; +#endif } inline ::CaptionDefProto* PathTextRuleProto::mutable_primary() { set_has_primary(); @@ -2688,7 +2715,11 @@ inline void PathTextRuleProto::clear_secondary() { clear_has_secondary(); } inline const ::CaptionDefProto& PathTextRuleProto::secondary() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return secondary_ != NULL ? *secondary_ : *default_instance().secondary_; +#else return secondary_ != NULL ? *secondary_ : *default_instance_->secondary_; +#endif } inline ::CaptionDefProto* PathTextRuleProto::mutable_secondary() { set_has_secondary(); @@ -2799,7 +2830,11 @@ inline void DrawElementProto::clear_area() { clear_has_area(); } inline const ::AreaRuleProto& DrawElementProto::area() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return area_ != NULL ? *area_ : *default_instance().area_; +#else return area_ != NULL ? *area_ : *default_instance_->area_; +#endif } inline ::AreaRuleProto* DrawElementProto::mutable_area() { set_has_area(); @@ -2837,7 +2872,11 @@ inline void DrawElementProto::clear_symbol() { clear_has_symbol(); } inline const ::SymbolRuleProto& DrawElementProto::symbol() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return symbol_ != NULL ? *symbol_ : *default_instance().symbol_; +#else return symbol_ != NULL ? *symbol_ : *default_instance_->symbol_; +#endif } inline ::SymbolRuleProto* DrawElementProto::mutable_symbol() { set_has_symbol(); @@ -2875,7 +2914,11 @@ inline void DrawElementProto::clear_caption() { clear_has_caption(); } inline const ::CaptionRuleProto& DrawElementProto::caption() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return caption_ != NULL ? *caption_ : *default_instance().caption_; +#else return caption_ != NULL ? *caption_ : *default_instance_->caption_; +#endif } inline ::CaptionRuleProto* DrawElementProto::mutable_caption() { set_has_caption(); @@ -2913,7 +2956,11 @@ inline void DrawElementProto::clear_circle() { clear_has_circle(); } inline const ::CircleRuleProto& DrawElementProto::circle() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return circle_ != NULL ? *circle_ : *default_instance().circle_; +#else return circle_ != NULL ? *circle_ : *default_instance_->circle_; +#endif } inline ::CircleRuleProto* DrawElementProto::mutable_circle() { set_has_circle(); @@ -2951,7 +2998,11 @@ inline void DrawElementProto::clear_path_text() { clear_has_path_text(); } inline const ::PathTextRuleProto& DrawElementProto::path_text() const { +#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + return path_text_ != NULL ? *path_text_ : *default_instance().path_text_; +#else return path_text_ != NULL ? *path_text_ : *default_instance_->path_text_; +#endif } inline ::PathTextRuleProto* DrawElementProto::mutable_path_text() { set_has_path_text(); @@ -3105,23 +3156,6 @@ ContainerProto::mutable_cont() { // @@protoc_insertion_point(namespace_scope) -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::LineJoin>() { - return ::LineJoin_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::LineCap>() { - return ::LineCap_descriptor(); -} - -} // namespace google -} // namespace protobuf -#endif // SWIG - // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_drules_5fstruct_2eproto__INCLUDED diff --git a/indexer/drules_struct.proto b/indexer/drules_struct.proto index 15f47bd0bf..e6412fd55f 100644 --- a/indexer/drules_struct.proto +++ b/indexer/drules_struct.proto @@ -1,5 +1,4 @@ -// To generate LITE version uncomment line below -//option optimize_for = LITE_RUNTIME; +option optimize_for = LITE_RUNTIME; message DashDotProto { @@ -94,11 +93,6 @@ message PathTextRuleProto required int32 priority = 3; } -// WayMarkerRule not used yet - - -// Describe containers. - message DrawElementProto { required int32 scale = 1; diff --git a/indexer/drules_struct_lite.pb.cc b/indexer/drules_struct_lite.pb.cc deleted file mode 100644 index 6a2733a2d7..0000000000 --- a/indexer/drules_struct_lite.pb.cc +++ /dev/null @@ -1,3733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: drules_struct.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "drules_struct_lite.pb.h" - -#include <algorithm> - -#include <google/protobuf/stubs/common.h> -#include <google/protobuf/stubs/once.h> -#include <google/protobuf/io/coded_stream.h> -#include <google/protobuf/wire_format_lite_inl.h> -// @@protoc_insertion_point(includes) - -void protobuf_ShutdownFile_drules_5fstruct_2eproto() { - delete DashDotProto::default_instance_; - delete PathSymProto::default_instance_; - delete LineRuleProto::default_instance_; - delete LineDefProto::default_instance_; - delete AreaRuleProto::default_instance_; - delete SymbolRuleProto::default_instance_; - delete CaptionDefProto::default_instance_; - delete CaptionRuleProto::default_instance_; - delete CircleRuleProto::default_instance_; - delete PathTextRuleProto::default_instance_; - delete DrawElementProto::default_instance_; - delete ClassifElementProto::default_instance_; - delete ContainerProto::default_instance_; -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_drules_5fstruct_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - -#else -void protobuf_AddDesc_drules_5fstruct_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - -#endif - DashDotProto::default_instance_ = new DashDotProto(); - PathSymProto::default_instance_ = new PathSymProto(); - LineRuleProto::default_instance_ = new LineRuleProto(); - LineDefProto::default_instance_ = new LineDefProto(); - AreaRuleProto::default_instance_ = new AreaRuleProto(); - SymbolRuleProto::default_instance_ = new SymbolRuleProto(); - CaptionDefProto::default_instance_ = new CaptionDefProto(); - CaptionRuleProto::default_instance_ = new CaptionRuleProto(); - CircleRuleProto::default_instance_ = new CircleRuleProto(); - PathTextRuleProto::default_instance_ = new PathTextRuleProto(); - DrawElementProto::default_instance_ = new DrawElementProto(); - ClassifElementProto::default_instance_ = new ClassifElementProto(); - ContainerProto::default_instance_ = new ContainerProto(); - DashDotProto::default_instance_->InitAsDefaultInstance(); - PathSymProto::default_instance_->InitAsDefaultInstance(); - LineRuleProto::default_instance_->InitAsDefaultInstance(); - LineDefProto::default_instance_->InitAsDefaultInstance(); - AreaRuleProto::default_instance_->InitAsDefaultInstance(); - SymbolRuleProto::default_instance_->InitAsDefaultInstance(); - CaptionDefProto::default_instance_->InitAsDefaultInstance(); - CaptionRuleProto::default_instance_->InitAsDefaultInstance(); - CircleRuleProto::default_instance_->InitAsDefaultInstance(); - PathTextRuleProto::default_instance_->InitAsDefaultInstance(); - DrawElementProto::default_instance_->InitAsDefaultInstance(); - ClassifElementProto::default_instance_->InitAsDefaultInstance(); - ContainerProto::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_drules_5fstruct_2eproto); -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_drules_5fstruct_2eproto_once_); -void protobuf_AddDesc_drules_5fstruct_2eproto() { - ::google::protobuf::::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_drules_5fstruct_2eproto_once_, - &protobuf_AddDesc_drules_5fstruct_2eproto_impl); -} -#else -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_drules_5fstruct_2eproto { - StaticDescriptorInitializer_drules_5fstruct_2eproto() { - protobuf_AddDesc_drules_5fstruct_2eproto(); - } -} static_descriptor_initializer_drules_5fstruct_2eproto_; -#endif -bool LineJoin_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -bool LineCap_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - - -// =================================================================== - -#ifndef _MSC_VER -const int DashDotProto::kDdFieldNumber; -const int DashDotProto::kOffsetFieldNumber; -#endif // !_MSC_VER - -DashDotProto::DashDotProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void DashDotProto::InitAsDefaultInstance() { -} - -DashDotProto::DashDotProto(const DashDotProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void DashDotProto::SharedCtor() { - _cached_size_ = 0; - offset_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DashDotProto::~DashDotProto() { - SharedDtor(); -} - -void DashDotProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void DashDotProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DashDotProto& DashDotProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -DashDotProto* DashDotProto::default_instance_ = NULL; - -DashDotProto* DashDotProto::New() const { - return new DashDotProto; -} - -void DashDotProto::Clear() { - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - offset_ = 0; - } - dd_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool DashDotProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated double dd = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { - parse_dd: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 9, input, this->mutable_dd()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, this->mutable_dd()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(9)) goto parse_dd; - if (input->ExpectTag(17)) goto parse_offset; - break; - } - - // optional double offset = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { - parse_offset: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &offset_))); - set_has_offset(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void DashDotProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated double dd = 1; - for (int i = 0; i < this->dd_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteDouble( - 1, this->dd(i), output); - } - - // optional double offset = 2; - if (has_offset()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->offset(), output); - } - -} - -int DashDotProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional double offset = 2; - if (has_offset()) { - total_size += 1 + 8; - } - - } - // repeated double dd = 1; - { - int data_size = 0; - data_size = 8 * this->dd_size(); - total_size += 1 * this->dd_size() + data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DashDotProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const DashDotProto*>(&from)); -} - -void DashDotProto::MergeFrom(const DashDotProto& from) { - GOOGLE_CHECK_NE(&from, this); - dd_.MergeFrom(from.dd_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_offset()) { - set_offset(from.offset()); - } - } -} - -void DashDotProto::CopyFrom(const DashDotProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DashDotProto::IsInitialized() const { - - return true; -} - -void DashDotProto::Swap(DashDotProto* other) { - if (other != this) { - dd_.Swap(&other->dd_); - std::swap(offset_, other->offset_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string DashDotProto::GetTypeName() const { - return "DashDotProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PathSymProto::kNameFieldNumber; -const int PathSymProto::kStepFieldNumber; -const int PathSymProto::kOffsetFieldNumber; -#endif // !_MSC_VER - -PathSymProto::PathSymProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PathSymProto::InitAsDefaultInstance() { -} - -PathSymProto::PathSymProto(const PathSymProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PathSymProto::SharedCtor() { - _cached_size_ = 0; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - step_ = 0; - offset_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PathSymProto::~PathSymProto() { - SharedDtor(); -} - -void PathSymProto::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PathSymProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PathSymProto& PathSymProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -PathSymProto* PathSymProto::default_instance_ = NULL; - -PathSymProto* PathSymProto::New() const { - return new PathSymProto; -} - -void PathSymProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - step_ = 0; - offset_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PathSymProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string name = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(17)) goto parse_step; - break; - } - - // required double step = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { - parse_step: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &step_))); - set_has_step(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(25)) goto parse_offset; - break; - } - - // optional double offset = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { - parse_offset: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &offset_))); - set_has_offset(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PathSymProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->name(), output); - } - - // required double step = 2; - if (has_step()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->step(), output); - } - - // optional double offset = 3; - if (has_offset()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->offset(), output); - } - -} - -int PathSymProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // required double step = 2; - if (has_step()) { - total_size += 1 + 8; - } - - // optional double offset = 3; - if (has_offset()) { - total_size += 1 + 8; - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PathSymProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const PathSymProto*>(&from)); -} - -void PathSymProto::MergeFrom(const PathSymProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_step()) { - set_step(from.step()); - } - if (from.has_offset()) { - set_offset(from.offset()); - } - } -} - -void PathSymProto::CopyFrom(const PathSymProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PathSymProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void PathSymProto::Swap(PathSymProto* other) { - if (other != this) { - std::swap(name_, other->name_); - std::swap(step_, other->step_); - std::swap(offset_, other->offset_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PathSymProto::GetTypeName() const { - return "PathSymProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int LineRuleProto::kWidthFieldNumber; -const int LineRuleProto::kColorFieldNumber; -const int LineRuleProto::kDashdotFieldNumber; -const int LineRuleProto::kPriorityFieldNumber; -const int LineRuleProto::kPathsymFieldNumber; -const int LineRuleProto::kJoinFieldNumber; -const int LineRuleProto::kCapFieldNumber; -#endif // !_MSC_VER - -LineRuleProto::LineRuleProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void LineRuleProto::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dashdot_ = const_cast< ::DashDotProto*>( - ::DashDotProto::internal_default_instance()); -#else - dashdot_ = const_cast< ::DashDotProto*>(&::DashDotProto::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - pathsym_ = const_cast< ::PathSymProto*>( - ::PathSymProto::internal_default_instance()); -#else - pathsym_ = const_cast< ::PathSymProto*>(&::PathSymProto::default_instance()); -#endif -} - -LineRuleProto::LineRuleProto(const LineRuleProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void LineRuleProto::SharedCtor() { - _cached_size_ = 0; - width_ = 0; - color_ = 0u; - dashdot_ = NULL; - priority_ = 0; - pathsym_ = NULL; - join_ = 0; - cap_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -LineRuleProto::~LineRuleProto() { - SharedDtor(); -} - -void LineRuleProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete dashdot_; - delete pathsym_; - } -} - -void LineRuleProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const LineRuleProto& LineRuleProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -LineRuleProto* LineRuleProto::default_instance_ = NULL; - -LineRuleProto* LineRuleProto::New() const { - return new LineRuleProto; -} - -void LineRuleProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - width_ = 0; - color_ = 0u; - if (has_dashdot()) { - if (dashdot_ != NULL) dashdot_->::DashDotProto::Clear(); - } - priority_ = 0; - if (has_pathsym()) { - if (pathsym_ != NULL) pathsym_->::PathSymProto::Clear(); - } - join_ = 0; - cap_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool LineRuleProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required double width = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &width_))); - set_has_width(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_color; - break; - } - - // required uint32 color = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_color: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &color_))); - set_has_color(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_dashdot; - break; - } - - // optional .DashDotProto dashdot = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dashdot: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dashdot())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_priority; - break; - } - - // required int32 priority = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_priority: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &priority_))); - set_has_priority(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_pathsym; - break; - } - - // optional .PathSymProto pathsym = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_pathsym: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_pathsym())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_join; - break; - } - - // optional .LineJoin join = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_join: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::LineJoin_IsValid(value)) { - set_join(static_cast< ::LineJoin >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_cap; - break; - } - - // optional .LineCap cap = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_cap: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::LineCap_IsValid(value)) { - set_cap(static_cast< ::LineCap >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void LineRuleProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required double width = 1; - if (has_width()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->width(), output); - } - - // required uint32 color = 2; - if (has_color()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->color(), output); - } - - // optional .DashDotProto dashdot = 3; - if (has_dashdot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, this->dashdot(), output); - } - - // required int32 priority = 4; - if (has_priority()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->priority(), output); - } - - // optional .PathSymProto pathsym = 5; - if (has_pathsym()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, this->pathsym(), output); - } - - // optional .LineJoin join = 6; - if (has_join()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->join(), output); - } - - // optional .LineCap cap = 7; - if (has_cap()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->cap(), output); - } - -} - -int LineRuleProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required double width = 1; - if (has_width()) { - total_size += 1 + 8; - } - - // required uint32 color = 2; - if (has_color()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->color()); - } - - // optional .DashDotProto dashdot = 3; - if (has_dashdot()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dashdot()); - } - - // required int32 priority = 4; - if (has_priority()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->priority()); - } - - // optional .PathSymProto pathsym = 5; - if (has_pathsym()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->pathsym()); - } - - // optional .LineJoin join = 6; - if (has_join()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->join()); - } - - // optional .LineCap cap = 7; - if (has_cap()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cap()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LineRuleProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const LineRuleProto*>(&from)); -} - -void LineRuleProto::MergeFrom(const LineRuleProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_width()) { - set_width(from.width()); - } - if (from.has_color()) { - set_color(from.color()); - } - if (from.has_dashdot()) { - mutable_dashdot()->::DashDotProto::MergeFrom(from.dashdot()); - } - if (from.has_priority()) { - set_priority(from.priority()); - } - if (from.has_pathsym()) { - mutable_pathsym()->::PathSymProto::MergeFrom(from.pathsym()); - } - if (from.has_join()) { - set_join(from.join()); - } - if (from.has_cap()) { - set_cap(from.cap()); - } - } -} - -void LineRuleProto::CopyFrom(const LineRuleProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LineRuleProto::IsInitialized() const { - if ((_has_bits_[0] & 0x0000000b) != 0x0000000b) return false; - - if (has_pathsym()) { - if (!this->pathsym().IsInitialized()) return false; - } - return true; -} - -void LineRuleProto::Swap(LineRuleProto* other) { - if (other != this) { - std::swap(width_, other->width_); - std::swap(color_, other->color_); - std::swap(dashdot_, other->dashdot_); - std::swap(priority_, other->priority_); - std::swap(pathsym_, other->pathsym_); - std::swap(join_, other->join_); - std::swap(cap_, other->cap_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string LineRuleProto::GetTypeName() const { - return "LineRuleProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int LineDefProto::kWidthFieldNumber; -const int LineDefProto::kColorFieldNumber; -const int LineDefProto::kDashdotFieldNumber; -const int LineDefProto::kPathsymFieldNumber; -const int LineDefProto::kJoinFieldNumber; -const int LineDefProto::kCapFieldNumber; -#endif // !_MSC_VER - -LineDefProto::LineDefProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void LineDefProto::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dashdot_ = const_cast< ::DashDotProto*>( - ::DashDotProto::internal_default_instance()); -#else - dashdot_ = const_cast< ::DashDotProto*>(&::DashDotProto::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - pathsym_ = const_cast< ::PathSymProto*>( - ::PathSymProto::internal_default_instance()); -#else - pathsym_ = const_cast< ::PathSymProto*>(&::PathSymProto::default_instance()); -#endif -} - -LineDefProto::LineDefProto(const LineDefProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void LineDefProto::SharedCtor() { - _cached_size_ = 0; - width_ = 0; - color_ = 0u; - dashdot_ = NULL; - pathsym_ = NULL; - join_ = 0; - cap_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -LineDefProto::~LineDefProto() { - SharedDtor(); -} - -void LineDefProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete dashdot_; - delete pathsym_; - } -} - -void LineDefProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const LineDefProto& LineDefProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -LineDefProto* LineDefProto::default_instance_ = NULL; - -LineDefProto* LineDefProto::New() const { - return new LineDefProto; -} - -void LineDefProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - width_ = 0; - color_ = 0u; - if (has_dashdot()) { - if (dashdot_ != NULL) dashdot_->::DashDotProto::Clear(); - } - if (has_pathsym()) { - if (pathsym_ != NULL) pathsym_->::PathSymProto::Clear(); - } - join_ = 0; - cap_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool LineDefProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required double width = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &width_))); - set_has_width(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_color; - break; - } - - // required uint32 color = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_color: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &color_))); - set_has_color(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_dashdot; - break; - } - - // optional .DashDotProto dashdot = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dashdot: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dashdot())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_pathsym; - break; - } - - // optional .PathSymProto pathsym = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_pathsym: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_pathsym())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_join; - break; - } - - // optional .LineJoin join = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_join: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::LineJoin_IsValid(value)) { - set_join(static_cast< ::LineJoin >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_cap; - break; - } - - // optional .LineCap cap = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_cap: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::LineCap_IsValid(value)) { - set_cap(static_cast< ::LineCap >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void LineDefProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required double width = 1; - if (has_width()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->width(), output); - } - - // required uint32 color = 2; - if (has_color()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->color(), output); - } - - // optional .DashDotProto dashdot = 3; - if (has_dashdot()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, this->dashdot(), output); - } - - // optional .PathSymProto pathsym = 4; - if (has_pathsym()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, this->pathsym(), output); - } - - // optional .LineJoin join = 6; - if (has_join()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->join(), output); - } - - // optional .LineCap cap = 7; - if (has_cap()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->cap(), output); - } - -} - -int LineDefProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required double width = 1; - if (has_width()) { - total_size += 1 + 8; - } - - // required uint32 color = 2; - if (has_color()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->color()); - } - - // optional .DashDotProto dashdot = 3; - if (has_dashdot()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dashdot()); - } - - // optional .PathSymProto pathsym = 4; - if (has_pathsym()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->pathsym()); - } - - // optional .LineJoin join = 6; - if (has_join()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->join()); - } - - // optional .LineCap cap = 7; - if (has_cap()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cap()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LineDefProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const LineDefProto*>(&from)); -} - -void LineDefProto::MergeFrom(const LineDefProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_width()) { - set_width(from.width()); - } - if (from.has_color()) { - set_color(from.color()); - } - if (from.has_dashdot()) { - mutable_dashdot()->::DashDotProto::MergeFrom(from.dashdot()); - } - if (from.has_pathsym()) { - mutable_pathsym()->::PathSymProto::MergeFrom(from.pathsym()); - } - if (from.has_join()) { - set_join(from.join()); - } - if (from.has_cap()) { - set_cap(from.cap()); - } - } -} - -void LineDefProto::CopyFrom(const LineDefProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LineDefProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - if (has_pathsym()) { - if (!this->pathsym().IsInitialized()) return false; - } - return true; -} - -void LineDefProto::Swap(LineDefProto* other) { - if (other != this) { - std::swap(width_, other->width_); - std::swap(color_, other->color_); - std::swap(dashdot_, other->dashdot_); - std::swap(pathsym_, other->pathsym_); - std::swap(join_, other->join_); - std::swap(cap_, other->cap_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string LineDefProto::GetTypeName() const { - return "LineDefProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AreaRuleProto::kColorFieldNumber; -const int AreaRuleProto::kBorderFieldNumber; -const int AreaRuleProto::kPriorityFieldNumber; -#endif // !_MSC_VER - -AreaRuleProto::AreaRuleProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AreaRuleProto::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - border_ = const_cast< ::LineDefProto*>( - ::LineDefProto::internal_default_instance()); -#else - border_ = const_cast< ::LineDefProto*>(&::LineDefProto::default_instance()); -#endif -} - -AreaRuleProto::AreaRuleProto(const AreaRuleProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AreaRuleProto::SharedCtor() { - _cached_size_ = 0; - color_ = 0u; - border_ = NULL; - priority_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AreaRuleProto::~AreaRuleProto() { - SharedDtor(); -} - -void AreaRuleProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete border_; - } -} - -void AreaRuleProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AreaRuleProto& AreaRuleProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -AreaRuleProto* AreaRuleProto::default_instance_ = NULL; - -AreaRuleProto* AreaRuleProto::New() const { - return new AreaRuleProto; -} - -void AreaRuleProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - color_ = 0u; - if (has_border()) { - if (border_ != NULL) border_->::LineDefProto::Clear(); - } - priority_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AreaRuleProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 color = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &color_))); - set_has_color(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_border; - break; - } - - // optional .LineDefProto border = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_border: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_border())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_priority; - break; - } - - // required int32 priority = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_priority: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &priority_))); - set_has_priority(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AreaRuleProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 color = 1; - if (has_color()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->color(), output); - } - - // optional .LineDefProto border = 2; - if (has_border()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->border(), output); - } - - // required int32 priority = 3; - if (has_priority()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->priority(), output); - } - -} - -int AreaRuleProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 color = 1; - if (has_color()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->color()); - } - - // optional .LineDefProto border = 2; - if (has_border()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->border()); - } - - // required int32 priority = 3; - if (has_priority()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->priority()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AreaRuleProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const AreaRuleProto*>(&from)); -} - -void AreaRuleProto::MergeFrom(const AreaRuleProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_color()) { - set_color(from.color()); - } - if (from.has_border()) { - mutable_border()->::LineDefProto::MergeFrom(from.border()); - } - if (from.has_priority()) { - set_priority(from.priority()); - } - } -} - -void AreaRuleProto::CopyFrom(const AreaRuleProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AreaRuleProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false; - - if (has_border()) { - if (!this->border().IsInitialized()) return false; - } - return true; -} - -void AreaRuleProto::Swap(AreaRuleProto* other) { - if (other != this) { - std::swap(color_, other->color_); - std::swap(border_, other->border_); - std::swap(priority_, other->priority_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AreaRuleProto::GetTypeName() const { - return "AreaRuleProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int SymbolRuleProto::kNameFieldNumber; -const int SymbolRuleProto::kApplyForTypeFieldNumber; -const int SymbolRuleProto::kPriorityFieldNumber; -#endif // !_MSC_VER - -SymbolRuleProto::SymbolRuleProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void SymbolRuleProto::InitAsDefaultInstance() { -} - -SymbolRuleProto::SymbolRuleProto(const SymbolRuleProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void SymbolRuleProto::SharedCtor() { - _cached_size_ = 0; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - apply_for_type_ = 0; - priority_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SymbolRuleProto::~SymbolRuleProto() { - SharedDtor(); -} - -void SymbolRuleProto::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void SymbolRuleProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const SymbolRuleProto& SymbolRuleProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -SymbolRuleProto* SymbolRuleProto::default_instance_ = NULL; - -SymbolRuleProto* SymbolRuleProto::New() const { - return new SymbolRuleProto; -} - -void SymbolRuleProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - apply_for_type_ = 0; - priority_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool SymbolRuleProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string name = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_apply_for_type; - break; - } - - // optional int32 apply_for_type = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_apply_for_type: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &apply_for_type_))); - set_has_apply_for_type(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_priority; - break; - } - - // required int32 priority = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_priority: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &priority_))); - set_has_priority(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void SymbolRuleProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->name(), output); - } - - // optional int32 apply_for_type = 2; - if (has_apply_for_type()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->apply_for_type(), output); - } - - // required int32 priority = 3; - if (has_priority()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->priority(), output); - } - -} - -int SymbolRuleProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional int32 apply_for_type = 2; - if (has_apply_for_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->apply_for_type()); - } - - // required int32 priority = 3; - if (has_priority()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->priority()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SymbolRuleProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const SymbolRuleProto*>(&from)); -} - -void SymbolRuleProto::MergeFrom(const SymbolRuleProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_apply_for_type()) { - set_apply_for_type(from.apply_for_type()); - } - if (from.has_priority()) { - set_priority(from.priority()); - } - } -} - -void SymbolRuleProto::CopyFrom(const SymbolRuleProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SymbolRuleProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false; - - return true; -} - -void SymbolRuleProto::Swap(SymbolRuleProto* other) { - if (other != this) { - std::swap(name_, other->name_); - std::swap(apply_for_type_, other->apply_for_type_); - std::swap(priority_, other->priority_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string SymbolRuleProto::GetTypeName() const { - return "SymbolRuleProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int CaptionDefProto::kHeightFieldNumber; -const int CaptionDefProto::kColorFieldNumber; -const int CaptionDefProto::kStrokeColorFieldNumber; -const int CaptionDefProto::kOffsetXFieldNumber; -const int CaptionDefProto::kOffsetYFieldNumber; -#endif // !_MSC_VER - -CaptionDefProto::CaptionDefProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void CaptionDefProto::InitAsDefaultInstance() { -} - -CaptionDefProto::CaptionDefProto(const CaptionDefProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void CaptionDefProto::SharedCtor() { - _cached_size_ = 0; - height_ = 0; - color_ = 0u; - stroke_color_ = 0u; - offset_x_ = 0; - offset_y_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -CaptionDefProto::~CaptionDefProto() { - SharedDtor(); -} - -void CaptionDefProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void CaptionDefProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const CaptionDefProto& CaptionDefProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -CaptionDefProto* CaptionDefProto::default_instance_ = NULL; - -CaptionDefProto* CaptionDefProto::New() const { - return new CaptionDefProto; -} - -void CaptionDefProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - height_ = 0; - color_ = 0u; - stroke_color_ = 0u; - offset_x_ = 0; - offset_y_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool CaptionDefProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required int32 height = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &height_))); - set_has_height(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_color; - break; - } - - // required uint32 color = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_color: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &color_))); - set_has_color(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_stroke_color; - break; - } - - // optional uint32 stroke_color = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stroke_color: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stroke_color_))); - set_has_stroke_color(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_offset_x; - break; - } - - // optional int32 offset_x = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_offset_x: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &offset_x_))); - set_has_offset_x(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_offset_y; - break; - } - - // optional int32 offset_y = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_offset_y: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &offset_y_))); - set_has_offset_y(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void CaptionDefProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required int32 height = 1; - if (has_height()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->height(), output); - } - - // required uint32 color = 2; - if (has_color()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->color(), output); - } - - // optional uint32 stroke_color = 3; - if (has_stroke_color()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->stroke_color(), output); - } - - // optional int32 offset_x = 4; - if (has_offset_x()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->offset_x(), output); - } - - // optional int32 offset_y = 5; - if (has_offset_y()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->offset_y(), output); - } - -} - -int CaptionDefProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required int32 height = 1; - if (has_height()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->height()); - } - - // required uint32 color = 2; - if (has_color()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->color()); - } - - // optional uint32 stroke_color = 3; - if (has_stroke_color()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->stroke_color()); - } - - // optional int32 offset_x = 4; - if (has_offset_x()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->offset_x()); - } - - // optional int32 offset_y = 5; - if (has_offset_y()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->offset_y()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CaptionDefProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const CaptionDefProto*>(&from)); -} - -void CaptionDefProto::MergeFrom(const CaptionDefProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_height()) { - set_height(from.height()); - } - if (from.has_color()) { - set_color(from.color()); - } - if (from.has_stroke_color()) { - set_stroke_color(from.stroke_color()); - } - if (from.has_offset_x()) { - set_offset_x(from.offset_x()); - } - if (from.has_offset_y()) { - set_offset_y(from.offset_y()); - } - } -} - -void CaptionDefProto::CopyFrom(const CaptionDefProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CaptionDefProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void CaptionDefProto::Swap(CaptionDefProto* other) { - if (other != this) { - std::swap(height_, other->height_); - std::swap(color_, other->color_); - std::swap(stroke_color_, other->stroke_color_); - std::swap(offset_x_, other->offset_x_); - std::swap(offset_y_, other->offset_y_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string CaptionDefProto::GetTypeName() const { - return "CaptionDefProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int CaptionRuleProto::kPrimaryFieldNumber; -const int CaptionRuleProto::kSecondaryFieldNumber; -const int CaptionRuleProto::kPriorityFieldNumber; -#endif // !_MSC_VER - -CaptionRuleProto::CaptionRuleProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void CaptionRuleProto::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - primary_ = const_cast< ::CaptionDefProto*>( - ::CaptionDefProto::internal_default_instance()); -#else - primary_ = const_cast< ::CaptionDefProto*>(&::CaptionDefProto::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - secondary_ = const_cast< ::CaptionDefProto*>( - ::CaptionDefProto::internal_default_instance()); -#else - secondary_ = const_cast< ::CaptionDefProto*>(&::CaptionDefProto::default_instance()); -#endif -} - -CaptionRuleProto::CaptionRuleProto(const CaptionRuleProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void CaptionRuleProto::SharedCtor() { - _cached_size_ = 0; - primary_ = NULL; - secondary_ = NULL; - priority_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -CaptionRuleProto::~CaptionRuleProto() { - SharedDtor(); -} - -void CaptionRuleProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete primary_; - delete secondary_; - } -} - -void CaptionRuleProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const CaptionRuleProto& CaptionRuleProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -CaptionRuleProto* CaptionRuleProto::default_instance_ = NULL; - -CaptionRuleProto* CaptionRuleProto::New() const { - return new CaptionRuleProto; -} - -void CaptionRuleProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_primary()) { - if (primary_ != NULL) primary_->::CaptionDefProto::Clear(); - } - if (has_secondary()) { - if (secondary_ != NULL) secondary_->::CaptionDefProto::Clear(); - } - priority_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool CaptionRuleProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .CaptionDefProto primary = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_primary())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_secondary; - break; - } - - // optional .CaptionDefProto secondary = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_secondary: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_secondary())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_priority; - break; - } - - // required int32 priority = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_priority: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &priority_))); - set_has_priority(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void CaptionRuleProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .CaptionDefProto primary = 1; - if (has_primary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->primary(), output); - } - - // optional .CaptionDefProto secondary = 2; - if (has_secondary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->secondary(), output); - } - - // required int32 priority = 3; - if (has_priority()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->priority(), output); - } - -} - -int CaptionRuleProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .CaptionDefProto primary = 1; - if (has_primary()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->primary()); - } - - // optional .CaptionDefProto secondary = 2; - if (has_secondary()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->secondary()); - } - - // required int32 priority = 3; - if (has_priority()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->priority()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CaptionRuleProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const CaptionRuleProto*>(&from)); -} - -void CaptionRuleProto::MergeFrom(const CaptionRuleProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_primary()) { - mutable_primary()->::CaptionDefProto::MergeFrom(from.primary()); - } - if (from.has_secondary()) { - mutable_secondary()->::CaptionDefProto::MergeFrom(from.secondary()); - } - if (from.has_priority()) { - set_priority(from.priority()); - } - } -} - -void CaptionRuleProto::CopyFrom(const CaptionRuleProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CaptionRuleProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false; - - if (has_primary()) { - if (!this->primary().IsInitialized()) return false; - } - if (has_secondary()) { - if (!this->secondary().IsInitialized()) return false; - } - return true; -} - -void CaptionRuleProto::Swap(CaptionRuleProto* other) { - if (other != this) { - std::swap(primary_, other->primary_); - std::swap(secondary_, other->secondary_); - std::swap(priority_, other->priority_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string CaptionRuleProto::GetTypeName() const { - return "CaptionRuleProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int CircleRuleProto::kRadiusFieldNumber; -const int CircleRuleProto::kColorFieldNumber; -const int CircleRuleProto::kBorderFieldNumber; -const int CircleRuleProto::kPriorityFieldNumber; -#endif // !_MSC_VER - -CircleRuleProto::CircleRuleProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void CircleRuleProto::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - border_ = const_cast< ::LineDefProto*>( - ::LineDefProto::internal_default_instance()); -#else - border_ = const_cast< ::LineDefProto*>(&::LineDefProto::default_instance()); -#endif -} - -CircleRuleProto::CircleRuleProto(const CircleRuleProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void CircleRuleProto::SharedCtor() { - _cached_size_ = 0; - radius_ = 0; - color_ = 0u; - border_ = NULL; - priority_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -CircleRuleProto::~CircleRuleProto() { - SharedDtor(); -} - -void CircleRuleProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete border_; - } -} - -void CircleRuleProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const CircleRuleProto& CircleRuleProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -CircleRuleProto* CircleRuleProto::default_instance_ = NULL; - -CircleRuleProto* CircleRuleProto::New() const { - return new CircleRuleProto; -} - -void CircleRuleProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - radius_ = 0; - color_ = 0u; - if (has_border()) { - if (border_ != NULL) border_->::LineDefProto::Clear(); - } - priority_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool CircleRuleProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required double radius = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &radius_))); - set_has_radius(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_color; - break; - } - - // required uint32 color = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_color: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &color_))); - set_has_color(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_border; - break; - } - - // optional .LineDefProto border = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_border: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_border())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_priority; - break; - } - - // required int32 priority = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_priority: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &priority_))); - set_has_priority(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void CircleRuleProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required double radius = 1; - if (has_radius()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->radius(), output); - } - - // required uint32 color = 2; - if (has_color()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->color(), output); - } - - // optional .LineDefProto border = 3; - if (has_border()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, this->border(), output); - } - - // required int32 priority = 4; - if (has_priority()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->priority(), output); - } - -} - -int CircleRuleProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required double radius = 1; - if (has_radius()) { - total_size += 1 + 8; - } - - // required uint32 color = 2; - if (has_color()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->color()); - } - - // optional .LineDefProto border = 3; - if (has_border()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->border()); - } - - // required int32 priority = 4; - if (has_priority()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->priority()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CircleRuleProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const CircleRuleProto*>(&from)); -} - -void CircleRuleProto::MergeFrom(const CircleRuleProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_radius()) { - set_radius(from.radius()); - } - if (from.has_color()) { - set_color(from.color()); - } - if (from.has_border()) { - mutable_border()->::LineDefProto::MergeFrom(from.border()); - } - if (from.has_priority()) { - set_priority(from.priority()); - } - } -} - -void CircleRuleProto::CopyFrom(const CircleRuleProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CircleRuleProto::IsInitialized() const { - if ((_has_bits_[0] & 0x0000000b) != 0x0000000b) return false; - - if (has_border()) { - if (!this->border().IsInitialized()) return false; - } - return true; -} - -void CircleRuleProto::Swap(CircleRuleProto* other) { - if (other != this) { - std::swap(radius_, other->radius_); - std::swap(color_, other->color_); - std::swap(border_, other->border_); - std::swap(priority_, other->priority_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string CircleRuleProto::GetTypeName() const { - return "CircleRuleProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PathTextRuleProto::kPrimaryFieldNumber; -const int PathTextRuleProto::kSecondaryFieldNumber; -const int PathTextRuleProto::kPriorityFieldNumber; -#endif // !_MSC_VER - -PathTextRuleProto::PathTextRuleProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PathTextRuleProto::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - primary_ = const_cast< ::CaptionDefProto*>( - ::CaptionDefProto::internal_default_instance()); -#else - primary_ = const_cast< ::CaptionDefProto*>(&::CaptionDefProto::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - secondary_ = const_cast< ::CaptionDefProto*>( - ::CaptionDefProto::internal_default_instance()); -#else - secondary_ = const_cast< ::CaptionDefProto*>(&::CaptionDefProto::default_instance()); -#endif -} - -PathTextRuleProto::PathTextRuleProto(const PathTextRuleProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PathTextRuleProto::SharedCtor() { - _cached_size_ = 0; - primary_ = NULL; - secondary_ = NULL; - priority_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PathTextRuleProto::~PathTextRuleProto() { - SharedDtor(); -} - -void PathTextRuleProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete primary_; - delete secondary_; - } -} - -void PathTextRuleProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PathTextRuleProto& PathTextRuleProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -PathTextRuleProto* PathTextRuleProto::default_instance_ = NULL; - -PathTextRuleProto* PathTextRuleProto::New() const { - return new PathTextRuleProto; -} - -void PathTextRuleProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_primary()) { - if (primary_ != NULL) primary_->::CaptionDefProto::Clear(); - } - if (has_secondary()) { - if (secondary_ != NULL) secondary_->::CaptionDefProto::Clear(); - } - priority_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PathTextRuleProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .CaptionDefProto primary = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_primary())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_secondary; - break; - } - - // optional .CaptionDefProto secondary = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_secondary: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_secondary())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_priority; - break; - } - - // required int32 priority = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_priority: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &priority_))); - set_has_priority(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PathTextRuleProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .CaptionDefProto primary = 1; - if (has_primary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->primary(), output); - } - - // optional .CaptionDefProto secondary = 2; - if (has_secondary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->secondary(), output); - } - - // required int32 priority = 3; - if (has_priority()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->priority(), output); - } - -} - -int PathTextRuleProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .CaptionDefProto primary = 1; - if (has_primary()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->primary()); - } - - // optional .CaptionDefProto secondary = 2; - if (has_secondary()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->secondary()); - } - - // required int32 priority = 3; - if (has_priority()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->priority()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PathTextRuleProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const PathTextRuleProto*>(&from)); -} - -void PathTextRuleProto::MergeFrom(const PathTextRuleProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_primary()) { - mutable_primary()->::CaptionDefProto::MergeFrom(from.primary()); - } - if (from.has_secondary()) { - mutable_secondary()->::CaptionDefProto::MergeFrom(from.secondary()); - } - if (from.has_priority()) { - set_priority(from.priority()); - } - } -} - -void PathTextRuleProto::CopyFrom(const PathTextRuleProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PathTextRuleProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false; - - if (has_primary()) { - if (!this->primary().IsInitialized()) return false; - } - if (has_secondary()) { - if (!this->secondary().IsInitialized()) return false; - } - return true; -} - -void PathTextRuleProto::Swap(PathTextRuleProto* other) { - if (other != this) { - std::swap(primary_, other->primary_); - std::swap(secondary_, other->secondary_); - std::swap(priority_, other->priority_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PathTextRuleProto::GetTypeName() const { - return "PathTextRuleProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int DrawElementProto::kScaleFieldNumber; -const int DrawElementProto::kLinesFieldNumber; -const int DrawElementProto::kAreaFieldNumber; -const int DrawElementProto::kSymbolFieldNumber; -const int DrawElementProto::kCaptionFieldNumber; -const int DrawElementProto::kCircleFieldNumber; -const int DrawElementProto::kPathTextFieldNumber; -#endif // !_MSC_VER - -DrawElementProto::DrawElementProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void DrawElementProto::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - area_ = const_cast< ::AreaRuleProto*>( - ::AreaRuleProto::internal_default_instance()); -#else - area_ = const_cast< ::AreaRuleProto*>(&::AreaRuleProto::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - symbol_ = const_cast< ::SymbolRuleProto*>( - ::SymbolRuleProto::internal_default_instance()); -#else - symbol_ = const_cast< ::SymbolRuleProto*>(&::SymbolRuleProto::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - caption_ = const_cast< ::CaptionRuleProto*>( - ::CaptionRuleProto::internal_default_instance()); -#else - caption_ = const_cast< ::CaptionRuleProto*>(&::CaptionRuleProto::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - circle_ = const_cast< ::CircleRuleProto*>( - ::CircleRuleProto::internal_default_instance()); -#else - circle_ = const_cast< ::CircleRuleProto*>(&::CircleRuleProto::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - path_text_ = const_cast< ::PathTextRuleProto*>( - ::PathTextRuleProto::internal_default_instance()); -#else - path_text_ = const_cast< ::PathTextRuleProto*>(&::PathTextRuleProto::default_instance()); -#endif -} - -DrawElementProto::DrawElementProto(const DrawElementProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void DrawElementProto::SharedCtor() { - _cached_size_ = 0; - scale_ = 0; - area_ = NULL; - symbol_ = NULL; - caption_ = NULL; - circle_ = NULL; - path_text_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DrawElementProto::~DrawElementProto() { - SharedDtor(); -} - -void DrawElementProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete area_; - delete symbol_; - delete caption_; - delete circle_; - delete path_text_; - } -} - -void DrawElementProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DrawElementProto& DrawElementProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -DrawElementProto* DrawElementProto::default_instance_ = NULL; - -DrawElementProto* DrawElementProto::New() const { - return new DrawElementProto; -} - -void DrawElementProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - scale_ = 0; - if (has_area()) { - if (area_ != NULL) area_->::AreaRuleProto::Clear(); - } - if (has_symbol()) { - if (symbol_ != NULL) symbol_->::SymbolRuleProto::Clear(); - } - if (has_caption()) { - if (caption_ != NULL) caption_->::CaptionRuleProto::Clear(); - } - if (has_circle()) { - if (circle_ != NULL) circle_->::CircleRuleProto::Clear(); - } - if (has_path_text()) { - if (path_text_ != NULL) path_text_->::PathTextRuleProto::Clear(); - } - } - lines_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool DrawElementProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required int32 scale = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &scale_))); - set_has_scale(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_lines; - break; - } - - // repeated .LineRuleProto lines = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_lines: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_lines())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_lines; - if (input->ExpectTag(26)) goto parse_area; - break; - } - - // optional .AreaRuleProto area = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_area: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_area())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_symbol; - break; - } - - // optional .SymbolRuleProto symbol = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_symbol: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_symbol())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_caption; - break; - } - - // optional .CaptionRuleProto caption = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_caption: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_caption())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_circle; - break; - } - - // optional .CircleRuleProto circle = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_circle: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_circle())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_path_text; - break; - } - - // optional .PathTextRuleProto path_text = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_path_text: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_path_text())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void DrawElementProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required int32 scale = 1; - if (has_scale()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->scale(), output); - } - - // repeated .LineRuleProto lines = 2; - for (int i = 0; i < this->lines_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->lines(i), output); - } - - // optional .AreaRuleProto area = 3; - if (has_area()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, this->area(), output); - } - - // optional .SymbolRuleProto symbol = 4; - if (has_symbol()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, this->symbol(), output); - } - - // optional .CaptionRuleProto caption = 5; - if (has_caption()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, this->caption(), output); - } - - // optional .CircleRuleProto circle = 6; - if (has_circle()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 6, this->circle(), output); - } - - // optional .PathTextRuleProto path_text = 7; - if (has_path_text()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 7, this->path_text(), output); - } - -} - -int DrawElementProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required int32 scale = 1; - if (has_scale()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->scale()); - } - - // optional .AreaRuleProto area = 3; - if (has_area()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->area()); - } - - // optional .SymbolRuleProto symbol = 4; - if (has_symbol()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->symbol()); - } - - // optional .CaptionRuleProto caption = 5; - if (has_caption()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->caption()); - } - - // optional .CircleRuleProto circle = 6; - if (has_circle()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->circle()); - } - - // optional .PathTextRuleProto path_text = 7; - if (has_path_text()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->path_text()); - } - - } - // repeated .LineRuleProto lines = 2; - total_size += 1 * this->lines_size(); - for (int i = 0; i < this->lines_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->lines(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DrawElementProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const DrawElementProto*>(&from)); -} - -void DrawElementProto::MergeFrom(const DrawElementProto& from) { - GOOGLE_CHECK_NE(&from, this); - lines_.MergeFrom(from.lines_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_area()) { - mutable_area()->::AreaRuleProto::MergeFrom(from.area()); - } - if (from.has_symbol()) { - mutable_symbol()->::SymbolRuleProto::MergeFrom(from.symbol()); - } - if (from.has_caption()) { - mutable_caption()->::CaptionRuleProto::MergeFrom(from.caption()); - } - if (from.has_circle()) { - mutable_circle()->::CircleRuleProto::MergeFrom(from.circle()); - } - if (from.has_path_text()) { - mutable_path_text()->::PathTextRuleProto::MergeFrom(from.path_text()); - } - } -} - -void DrawElementProto::CopyFrom(const DrawElementProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DrawElementProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - for (int i = 0; i < lines_size(); i++) { - if (!this->lines(i).IsInitialized()) return false; - } - if (has_area()) { - if (!this->area().IsInitialized()) return false; - } - if (has_symbol()) { - if (!this->symbol().IsInitialized()) return false; - } - if (has_caption()) { - if (!this->caption().IsInitialized()) return false; - } - if (has_circle()) { - if (!this->circle().IsInitialized()) return false; - } - if (has_path_text()) { - if (!this->path_text().IsInitialized()) return false; - } - return true; -} - -void DrawElementProto::Swap(DrawElementProto* other) { - if (other != this) { - std::swap(scale_, other->scale_); - lines_.Swap(&other->lines_); - std::swap(area_, other->area_); - std::swap(symbol_, other->symbol_); - std::swap(caption_, other->caption_); - std::swap(circle_, other->circle_); - std::swap(path_text_, other->path_text_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string DrawElementProto::GetTypeName() const { - return "DrawElementProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ClassifElementProto::kNameFieldNumber; -const int ClassifElementProto::kElementFieldNumber; -#endif // !_MSC_VER - -ClassifElementProto::ClassifElementProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void ClassifElementProto::InitAsDefaultInstance() { -} - -ClassifElementProto::ClassifElementProto(const ClassifElementProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ClassifElementProto::SharedCtor() { - _cached_size_ = 0; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ClassifElementProto::~ClassifElementProto() { - SharedDtor(); -} - -void ClassifElementProto::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ClassifElementProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ClassifElementProto& ClassifElementProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -ClassifElementProto* ClassifElementProto::default_instance_ = NULL; - -ClassifElementProto* ClassifElementProto::New() const { - return new ClassifElementProto; -} - -void ClassifElementProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - } - element_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ClassifElementProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string name = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_element; - break; - } - - // repeated .DrawElementProto element = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_element: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_element())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_element; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ClassifElementProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->name(), output); - } - - // repeated .DrawElementProto element = 2; - for (int i = 0; i < this->element_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->element(i), output); - } - -} - -int ClassifElementProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - } - // repeated .DrawElementProto element = 2; - total_size += 1 * this->element_size(); - for (int i = 0; i < this->element_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->element(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ClassifElementProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const ClassifElementProto*>(&from)); -} - -void ClassifElementProto::MergeFrom(const ClassifElementProto& from) { - GOOGLE_CHECK_NE(&from, this); - element_.MergeFrom(from.element_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_name(from.name()); - } - } -} - -void ClassifElementProto::CopyFrom(const ClassifElementProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClassifElementProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - for (int i = 0; i < element_size(); i++) { - if (!this->element(i).IsInitialized()) return false; - } - return true; -} - -void ClassifElementProto::Swap(ClassifElementProto* other) { - if (other != this) { - std::swap(name_, other->name_); - element_.Swap(&other->element_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ClassifElementProto::GetTypeName() const { - return "ClassifElementProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ContainerProto::kContFieldNumber; -#endif // !_MSC_VER - -ContainerProto::ContainerProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void ContainerProto::InitAsDefaultInstance() { -} - -ContainerProto::ContainerProto(const ContainerProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ContainerProto::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ContainerProto::~ContainerProto() { - SharedDtor(); -} - -void ContainerProto::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ContainerProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ContainerProto& ContainerProto::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_drules_5fstruct_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_drules_5fstruct_2eproto(); -#endif - return *default_instance_; -} - -ContainerProto* ContainerProto::default_instance_ = NULL; - -ContainerProto* ContainerProto::New() const { - return new ContainerProto; -} - -void ContainerProto::Clear() { - cont_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ContainerProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .ClassifElementProto cont = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_cont: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_cont())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(10)) goto parse_cont; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ContainerProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated .ClassifElementProto cont = 1; - for (int i = 0; i < this->cont_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->cont(i), output); - } - -} - -int ContainerProto::ByteSize() const { - int total_size = 0; - - // repeated .ClassifElementProto cont = 1; - total_size += 1 * this->cont_size(); - for (int i = 0; i < this->cont_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cont(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ContainerProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast<const ContainerProto*>(&from)); -} - -void ContainerProto::MergeFrom(const ContainerProto& from) { - GOOGLE_CHECK_NE(&from, this); - cont_.MergeFrom(from.cont_); -} - -void ContainerProto::CopyFrom(const ContainerProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ContainerProto::IsInitialized() const { - - for (int i = 0; i < cont_size(); i++) { - if (!this->cont(i).IsInitialized()) return false; - } - return true; -} - -void ContainerProto::Swap(ContainerProto* other) { - if (other != this) { - cont_.Swap(&other->cont_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ContainerProto::GetTypeName() const { - return "ContainerProto"; -} - - -// @@protoc_insertion_point(namespace_scope) - -// @@protoc_insertion_point(global_scope) diff --git a/indexer/drules_struct_lite.pb.h b/indexer/drules_struct_lite.pb.h deleted file mode 100644 index d52b39fb68..0000000000 --- a/indexer/drules_struct_lite.pb.h +++ /dev/null @@ -1,3161 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: drules_struct.proto - -#ifndef PROTOBUF_drules_5fstruct_2eproto__INCLUDED -#define PROTOBUF_drules_5fstruct_2eproto__INCLUDED - -#include <string> - -#include <google/protobuf/stubs/common.h> - -#if GOOGLE_PROTOBUF_VERSION < 2005000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include <google/protobuf/generated_message_util.h> -#include <google/protobuf/message_lite.h> -#include <google/protobuf/repeated_field.h> -#include <google/protobuf/extension_set.h> -// @@protoc_insertion_point(includes) - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_drules_5fstruct_2eproto(); -void protobuf_AssignDesc_drules_5fstruct_2eproto(); -void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - -class DashDotProto; -class PathSymProto; -class LineRuleProto; -class LineDefProto; -class AreaRuleProto; -class SymbolRuleProto; -class CaptionDefProto; -class CaptionRuleProto; -class CircleRuleProto; -class PathTextRuleProto; -class DrawElementProto; -class ClassifElementProto; -class ContainerProto; - -enum LineJoin { - ROUNDJOIN = 0, - BEVELJOIN = 1, - NOJOIN = 2 -}; -bool LineJoin_IsValid(int value); -const LineJoin LineJoin_MIN = ROUNDJOIN; -const LineJoin LineJoin_MAX = NOJOIN; -const int LineJoin_ARRAYSIZE = LineJoin_MAX + 1; - -enum LineCap { - ROUNDCAP = 0, - BUTTCAP = 1, - SQUARECAP = 2 -}; -bool LineCap_IsValid(int value); -const LineCap LineCap_MIN = ROUNDCAP; -const LineCap LineCap_MAX = SQUARECAP; -const int LineCap_ARRAYSIZE = LineCap_MAX + 1; - -// =================================================================== - -class DashDotProto : public ::google::protobuf::MessageLite { - public: - DashDotProto(); - virtual ~DashDotProto(); - - DashDotProto(const DashDotProto& from); - - inline DashDotProto& operator=(const DashDotProto& from) { - CopyFrom(from); - return *this; - } - - static const DashDotProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const DashDotProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(DashDotProto* other); - - // implements Message ---------------------------------------------- - - DashDotProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const DashDotProto& from); - void MergeFrom(const DashDotProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated double dd = 1; - inline int dd_size() const; - inline void clear_dd(); - static const int kDdFieldNumber = 1; - inline double dd(int index) const; - inline void set_dd(int index, double value); - inline void add_dd(double value); - inline const ::google::protobuf::RepeatedField< double >& - dd() const; - inline ::google::protobuf::RepeatedField< double >* - mutable_dd(); - - // optional double offset = 2; - inline bool has_offset() const; - inline void clear_offset(); - static const int kOffsetFieldNumber = 2; - inline double offset() const; - inline void set_offset(double value); - - // @@protoc_insertion_point(class_scope:DashDotProto) - private: - inline void set_has_offset(); - inline void clear_has_offset(); - - ::google::protobuf::RepeatedField< double > dd_; - double offset_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static DashDotProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class PathSymProto : public ::google::protobuf::MessageLite { - public: - PathSymProto(); - virtual ~PathSymProto(); - - PathSymProto(const PathSymProto& from); - - inline PathSymProto& operator=(const PathSymProto& from) { - CopyFrom(from); - return *this; - } - - static const PathSymProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const PathSymProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(PathSymProto* other); - - // implements Message ---------------------------------------------- - - PathSymProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const PathSymProto& from); - void MergeFrom(const PathSymProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required string name = 1; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 1; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // required double step = 2; - inline bool has_step() const; - inline void clear_step(); - static const int kStepFieldNumber = 2; - inline double step() const; - inline void set_step(double value); - - // optional double offset = 3; - inline bool has_offset() const; - inline void clear_offset(); - static const int kOffsetFieldNumber = 3; - inline double offset() const; - inline void set_offset(double value); - - // @@protoc_insertion_point(class_scope:PathSymProto) - private: - inline void set_has_name(); - inline void clear_has_name(); - inline void set_has_step(); - inline void clear_has_step(); - inline void set_has_offset(); - inline void clear_has_offset(); - - ::std::string* name_; - double step_; - double offset_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static PathSymProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class LineRuleProto : public ::google::protobuf::MessageLite { - public: - LineRuleProto(); - virtual ~LineRuleProto(); - - LineRuleProto(const LineRuleProto& from); - - inline LineRuleProto& operator=(const LineRuleProto& from) { - CopyFrom(from); - return *this; - } - - static const LineRuleProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const LineRuleProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(LineRuleProto* other); - - // implements Message ---------------------------------------------- - - LineRuleProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const LineRuleProto& from); - void MergeFrom(const LineRuleProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required double width = 1; - inline bool has_width() const; - inline void clear_width(); - static const int kWidthFieldNumber = 1; - inline double width() const; - inline void set_width(double value); - - // required uint32 color = 2; - inline bool has_color() const; - inline void clear_color(); - static const int kColorFieldNumber = 2; - inline ::google::protobuf::uint32 color() const; - inline void set_color(::google::protobuf::uint32 value); - - // optional .DashDotProto dashdot = 3; - inline bool has_dashdot() const; - inline void clear_dashdot(); - static const int kDashdotFieldNumber = 3; - inline const ::DashDotProto& dashdot() const; - inline ::DashDotProto* mutable_dashdot(); - inline ::DashDotProto* release_dashdot(); - inline void set_allocated_dashdot(::DashDotProto* dashdot); - - // required int32 priority = 4; - inline bool has_priority() const; - inline void clear_priority(); - static const int kPriorityFieldNumber = 4; - inline ::google::protobuf::int32 priority() const; - inline void set_priority(::google::protobuf::int32 value); - - // optional .PathSymProto pathsym = 5; - inline bool has_pathsym() const; - inline void clear_pathsym(); - static const int kPathsymFieldNumber = 5; - inline const ::PathSymProto& pathsym() const; - inline ::PathSymProto* mutable_pathsym(); - inline ::PathSymProto* release_pathsym(); - inline void set_allocated_pathsym(::PathSymProto* pathsym); - - // optional .LineJoin join = 6; - inline bool has_join() const; - inline void clear_join(); - static const int kJoinFieldNumber = 6; - inline ::LineJoin join() const; - inline void set_join(::LineJoin value); - - // optional .LineCap cap = 7; - inline bool has_cap() const; - inline void clear_cap(); - static const int kCapFieldNumber = 7; - inline ::LineCap cap() const; - inline void set_cap(::LineCap value); - - // @@protoc_insertion_point(class_scope:LineRuleProto) - private: - inline void set_has_width(); - inline void clear_has_width(); - inline void set_has_color(); - inline void clear_has_color(); - inline void set_has_dashdot(); - inline void clear_has_dashdot(); - inline void set_has_priority(); - inline void clear_has_priority(); - inline void set_has_pathsym(); - inline void clear_has_pathsym(); - inline void set_has_join(); - inline void clear_has_join(); - inline void set_has_cap(); - inline void clear_has_cap(); - - double width_; - ::DashDotProto* dashdot_; - ::google::protobuf::uint32 color_; - ::google::protobuf::int32 priority_; - ::PathSymProto* pathsym_; - int join_; - int cap_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static LineRuleProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class LineDefProto : public ::google::protobuf::MessageLite { - public: - LineDefProto(); - virtual ~LineDefProto(); - - LineDefProto(const LineDefProto& from); - - inline LineDefProto& operator=(const LineDefProto& from) { - CopyFrom(from); - return *this; - } - - static const LineDefProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const LineDefProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(LineDefProto* other); - - // implements Message ---------------------------------------------- - - LineDefProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const LineDefProto& from); - void MergeFrom(const LineDefProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required double width = 1; - inline bool has_width() const; - inline void clear_width(); - static const int kWidthFieldNumber = 1; - inline double width() const; - inline void set_width(double value); - - // required uint32 color = 2; - inline bool has_color() const; - inline void clear_color(); - static const int kColorFieldNumber = 2; - inline ::google::protobuf::uint32 color() const; - inline void set_color(::google::protobuf::uint32 value); - - // optional .DashDotProto dashdot = 3; - inline bool has_dashdot() const; - inline void clear_dashdot(); - static const int kDashdotFieldNumber = 3; - inline const ::DashDotProto& dashdot() const; - inline ::DashDotProto* mutable_dashdot(); - inline ::DashDotProto* release_dashdot(); - inline void set_allocated_dashdot(::DashDotProto* dashdot); - - // optional .PathSymProto pathsym = 4; - inline bool has_pathsym() const; - inline void clear_pathsym(); - static const int kPathsymFieldNumber = 4; - inline const ::PathSymProto& pathsym() const; - inline ::PathSymProto* mutable_pathsym(); - inline ::PathSymProto* release_pathsym(); - inline void set_allocated_pathsym(::PathSymProto* pathsym); - - // optional .LineJoin join = 6; - inline bool has_join() const; - inline void clear_join(); - static const int kJoinFieldNumber = 6; - inline ::LineJoin join() const; - inline void set_join(::LineJoin value); - - // optional .LineCap cap = 7; - inline bool has_cap() const; - inline void clear_cap(); - static const int kCapFieldNumber = 7; - inline ::LineCap cap() const; - inline void set_cap(::LineCap value); - - // @@protoc_insertion_point(class_scope:LineDefProto) - private: - inline void set_has_width(); - inline void clear_has_width(); - inline void set_has_color(); - inline void clear_has_color(); - inline void set_has_dashdot(); - inline void clear_has_dashdot(); - inline void set_has_pathsym(); - inline void clear_has_pathsym(); - inline void set_has_join(); - inline void clear_has_join(); - inline void set_has_cap(); - inline void clear_has_cap(); - - double width_; - ::DashDotProto* dashdot_; - ::google::protobuf::uint32 color_; - int join_; - ::PathSymProto* pathsym_; - int cap_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static LineDefProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class AreaRuleProto : public ::google::protobuf::MessageLite { - public: - AreaRuleProto(); - virtual ~AreaRuleProto(); - - AreaRuleProto(const AreaRuleProto& from); - - inline AreaRuleProto& operator=(const AreaRuleProto& from) { - CopyFrom(from); - return *this; - } - - static const AreaRuleProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const AreaRuleProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(AreaRuleProto* other); - - // implements Message ---------------------------------------------- - - AreaRuleProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const AreaRuleProto& from); - void MergeFrom(const AreaRuleProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required uint32 color = 1; - inline bool has_color() const; - inline void clear_color(); - static const int kColorFieldNumber = 1; - inline ::google::protobuf::uint32 color() const; - inline void set_color(::google::protobuf::uint32 value); - - // optional .LineDefProto border = 2; - inline bool has_border() const; - inline void clear_border(); - static const int kBorderFieldNumber = 2; - inline const ::LineDefProto& border() const; - inline ::LineDefProto* mutable_border(); - inline ::LineDefProto* release_border(); - inline void set_allocated_border(::LineDefProto* border); - - // required int32 priority = 3; - inline bool has_priority() const; - inline void clear_priority(); - static const int kPriorityFieldNumber = 3; - inline ::google::protobuf::int32 priority() const; - inline void set_priority(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:AreaRuleProto) - private: - inline void set_has_color(); - inline void clear_has_color(); - inline void set_has_border(); - inline void clear_has_border(); - inline void set_has_priority(); - inline void clear_has_priority(); - - ::LineDefProto* border_; - ::google::protobuf::uint32 color_; - ::google::protobuf::int32 priority_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static AreaRuleProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class SymbolRuleProto : public ::google::protobuf::MessageLite { - public: - SymbolRuleProto(); - virtual ~SymbolRuleProto(); - - SymbolRuleProto(const SymbolRuleProto& from); - - inline SymbolRuleProto& operator=(const SymbolRuleProto& from) { - CopyFrom(from); - return *this; - } - - static const SymbolRuleProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const SymbolRuleProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(SymbolRuleProto* other); - - // implements Message ---------------------------------------------- - - SymbolRuleProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const SymbolRuleProto& from); - void MergeFrom(const SymbolRuleProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required string name = 1; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 1; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // optional int32 apply_for_type = 2; - inline bool has_apply_for_type() const; - inline void clear_apply_for_type(); - static const int kApplyForTypeFieldNumber = 2; - inline ::google::protobuf::int32 apply_for_type() const; - inline void set_apply_for_type(::google::protobuf::int32 value); - - // required int32 priority = 3; - inline bool has_priority() const; - inline void clear_priority(); - static const int kPriorityFieldNumber = 3; - inline ::google::protobuf::int32 priority() const; - inline void set_priority(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:SymbolRuleProto) - private: - inline void set_has_name(); - inline void clear_has_name(); - inline void set_has_apply_for_type(); - inline void clear_has_apply_for_type(); - inline void set_has_priority(); - inline void clear_has_priority(); - - ::std::string* name_; - ::google::protobuf::int32 apply_for_type_; - ::google::protobuf::int32 priority_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static SymbolRuleProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class CaptionDefProto : public ::google::protobuf::MessageLite { - public: - CaptionDefProto(); - virtual ~CaptionDefProto(); - - CaptionDefProto(const CaptionDefProto& from); - - inline CaptionDefProto& operator=(const CaptionDefProto& from) { - CopyFrom(from); - return *this; - } - - static const CaptionDefProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const CaptionDefProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(CaptionDefProto* other); - - // implements Message ---------------------------------------------- - - CaptionDefProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const CaptionDefProto& from); - void MergeFrom(const CaptionDefProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required int32 height = 1; - inline bool has_height() const; - inline void clear_height(); - static const int kHeightFieldNumber = 1; - inline ::google::protobuf::int32 height() const; - inline void set_height(::google::protobuf::int32 value); - - // required uint32 color = 2; - inline bool has_color() const; - inline void clear_color(); - static const int kColorFieldNumber = 2; - inline ::google::protobuf::uint32 color() const; - inline void set_color(::google::protobuf::uint32 value); - - // optional uint32 stroke_color = 3; - inline bool has_stroke_color() const; - inline void clear_stroke_color(); - static const int kStrokeColorFieldNumber = 3; - inline ::google::protobuf::uint32 stroke_color() const; - inline void set_stroke_color(::google::protobuf::uint32 value); - - // optional int32 offset_x = 4; - inline bool has_offset_x() const; - inline void clear_offset_x(); - static const int kOffsetXFieldNumber = 4; - inline ::google::protobuf::int32 offset_x() const; - inline void set_offset_x(::google::protobuf::int32 value); - - // optional int32 offset_y = 5; - inline bool has_offset_y() const; - inline void clear_offset_y(); - static const int kOffsetYFieldNumber = 5; - inline ::google::protobuf::int32 offset_y() const; - inline void set_offset_y(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:CaptionDefProto) - private: - inline void set_has_height(); - inline void clear_has_height(); - inline void set_has_color(); - inline void clear_has_color(); - inline void set_has_stroke_color(); - inline void clear_has_stroke_color(); - inline void set_has_offset_x(); - inline void clear_has_offset_x(); - inline void set_has_offset_y(); - inline void clear_has_offset_y(); - - ::google::protobuf::int32 height_; - ::google::protobuf::uint32 color_; - ::google::protobuf::uint32 stroke_color_; - ::google::protobuf::int32 offset_x_; - ::google::protobuf::int32 offset_y_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static CaptionDefProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class CaptionRuleProto : public ::google::protobuf::MessageLite { - public: - CaptionRuleProto(); - virtual ~CaptionRuleProto(); - - CaptionRuleProto(const CaptionRuleProto& from); - - inline CaptionRuleProto& operator=(const CaptionRuleProto& from) { - CopyFrom(from); - return *this; - } - - static const CaptionRuleProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const CaptionRuleProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(CaptionRuleProto* other); - - // implements Message ---------------------------------------------- - - CaptionRuleProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const CaptionRuleProto& from); - void MergeFrom(const CaptionRuleProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .CaptionDefProto primary = 1; - inline bool has_primary() const; - inline void clear_primary(); - static const int kPrimaryFieldNumber = 1; - inline const ::CaptionDefProto& primary() const; - inline ::CaptionDefProto* mutable_primary(); - inline ::CaptionDefProto* release_primary(); - inline void set_allocated_primary(::CaptionDefProto* primary); - - // optional .CaptionDefProto secondary = 2; - inline bool has_secondary() const; - inline void clear_secondary(); - static const int kSecondaryFieldNumber = 2; - inline const ::CaptionDefProto& secondary() const; - inline ::CaptionDefProto* mutable_secondary(); - inline ::CaptionDefProto* release_secondary(); - inline void set_allocated_secondary(::CaptionDefProto* secondary); - - // required int32 priority = 3; - inline bool has_priority() const; - inline void clear_priority(); - static const int kPriorityFieldNumber = 3; - inline ::google::protobuf::int32 priority() const; - inline void set_priority(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:CaptionRuleProto) - private: - inline void set_has_primary(); - inline void clear_has_primary(); - inline void set_has_secondary(); - inline void clear_has_secondary(); - inline void set_has_priority(); - inline void clear_has_priority(); - - ::CaptionDefProto* primary_; - ::CaptionDefProto* secondary_; - ::google::protobuf::int32 priority_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static CaptionRuleProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class CircleRuleProto : public ::google::protobuf::MessageLite { - public: - CircleRuleProto(); - virtual ~CircleRuleProto(); - - CircleRuleProto(const CircleRuleProto& from); - - inline CircleRuleProto& operator=(const CircleRuleProto& from) { - CopyFrom(from); - return *this; - } - - static const CircleRuleProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const CircleRuleProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(CircleRuleProto* other); - - // implements Message ---------------------------------------------- - - CircleRuleProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const CircleRuleProto& from); - void MergeFrom(const CircleRuleProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required double radius = 1; - inline bool has_radius() const; - inline void clear_radius(); - static const int kRadiusFieldNumber = 1; - inline double radius() const; - inline void set_radius(double value); - - // required uint32 color = 2; - inline bool has_color() const; - inline void clear_color(); - static const int kColorFieldNumber = 2; - inline ::google::protobuf::uint32 color() const; - inline void set_color(::google::protobuf::uint32 value); - - // optional .LineDefProto border = 3; - inline bool has_border() const; - inline void clear_border(); - static const int kBorderFieldNumber = 3; - inline const ::LineDefProto& border() const; - inline ::LineDefProto* mutable_border(); - inline ::LineDefProto* release_border(); - inline void set_allocated_border(::LineDefProto* border); - - // required int32 priority = 4; - inline bool has_priority() const; - inline void clear_priority(); - static const int kPriorityFieldNumber = 4; - inline ::google::protobuf::int32 priority() const; - inline void set_priority(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:CircleRuleProto) - private: - inline void set_has_radius(); - inline void clear_has_radius(); - inline void set_has_color(); - inline void clear_has_color(); - inline void set_has_border(); - inline void clear_has_border(); - inline void set_has_priority(); - inline void clear_has_priority(); - - double radius_; - ::LineDefProto* border_; - ::google::protobuf::uint32 color_; - ::google::protobuf::int32 priority_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static CircleRuleProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class PathTextRuleProto : public ::google::protobuf::MessageLite { - public: - PathTextRuleProto(); - virtual ~PathTextRuleProto(); - - PathTextRuleProto(const PathTextRuleProto& from); - - inline PathTextRuleProto& operator=(const PathTextRuleProto& from) { - CopyFrom(from); - return *this; - } - - static const PathTextRuleProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const PathTextRuleProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(PathTextRuleProto* other); - - // implements Message ---------------------------------------------- - - PathTextRuleProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const PathTextRuleProto& from); - void MergeFrom(const PathTextRuleProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .CaptionDefProto primary = 1; - inline bool has_primary() const; - inline void clear_primary(); - static const int kPrimaryFieldNumber = 1; - inline const ::CaptionDefProto& primary() const; - inline ::CaptionDefProto* mutable_primary(); - inline ::CaptionDefProto* release_primary(); - inline void set_allocated_primary(::CaptionDefProto* primary); - - // optional .CaptionDefProto secondary = 2; - inline bool has_secondary() const; - inline void clear_secondary(); - static const int kSecondaryFieldNumber = 2; - inline const ::CaptionDefProto& secondary() const; - inline ::CaptionDefProto* mutable_secondary(); - inline ::CaptionDefProto* release_secondary(); - inline void set_allocated_secondary(::CaptionDefProto* secondary); - - // required int32 priority = 3; - inline bool has_priority() const; - inline void clear_priority(); - static const int kPriorityFieldNumber = 3; - inline ::google::protobuf::int32 priority() const; - inline void set_priority(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:PathTextRuleProto) - private: - inline void set_has_primary(); - inline void clear_has_primary(); - inline void set_has_secondary(); - inline void clear_has_secondary(); - inline void set_has_priority(); - inline void clear_has_priority(); - - ::CaptionDefProto* primary_; - ::CaptionDefProto* secondary_; - ::google::protobuf::int32 priority_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static PathTextRuleProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class DrawElementProto : public ::google::protobuf::MessageLite { - public: - DrawElementProto(); - virtual ~DrawElementProto(); - - DrawElementProto(const DrawElementProto& from); - - inline DrawElementProto& operator=(const DrawElementProto& from) { - CopyFrom(from); - return *this; - } - - static const DrawElementProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const DrawElementProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(DrawElementProto* other); - - // implements Message ---------------------------------------------- - - DrawElementProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const DrawElementProto& from); - void MergeFrom(const DrawElementProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required int32 scale = 1; - inline bool has_scale() const; - inline void clear_scale(); - static const int kScaleFieldNumber = 1; - inline ::google::protobuf::int32 scale() const; - inline void set_scale(::google::protobuf::int32 value); - - // repeated .LineRuleProto lines = 2; - inline int lines_size() const; - inline void clear_lines(); - static const int kLinesFieldNumber = 2; - inline const ::LineRuleProto& lines(int index) const; - inline ::LineRuleProto* mutable_lines(int index); - inline ::LineRuleProto* add_lines(); - inline const ::google::protobuf::RepeatedPtrField< ::LineRuleProto >& - lines() const; - inline ::google::protobuf::RepeatedPtrField< ::LineRuleProto >* - mutable_lines(); - - // optional .AreaRuleProto area = 3; - inline bool has_area() const; - inline void clear_area(); - static const int kAreaFieldNumber = 3; - inline const ::AreaRuleProto& area() const; - inline ::AreaRuleProto* mutable_area(); - inline ::AreaRuleProto* release_area(); - inline void set_allocated_area(::AreaRuleProto* area); - - // optional .SymbolRuleProto symbol = 4; - inline bool has_symbol() const; - inline void clear_symbol(); - static const int kSymbolFieldNumber = 4; - inline const ::SymbolRuleProto& symbol() const; - inline ::SymbolRuleProto* mutable_symbol(); - inline ::SymbolRuleProto* release_symbol(); - inline void set_allocated_symbol(::SymbolRuleProto* symbol); - - // optional .CaptionRuleProto caption = 5; - inline bool has_caption() const; - inline void clear_caption(); - static const int kCaptionFieldNumber = 5; - inline const ::CaptionRuleProto& caption() const; - inline ::CaptionRuleProto* mutable_caption(); - inline ::CaptionRuleProto* release_caption(); - inline void set_allocated_caption(::CaptionRuleProto* caption); - - // optional .CircleRuleProto circle = 6; - inline bool has_circle() const; - inline void clear_circle(); - static const int kCircleFieldNumber = 6; - inline const ::CircleRuleProto& circle() const; - inline ::CircleRuleProto* mutable_circle(); - inline ::CircleRuleProto* release_circle(); - inline void set_allocated_circle(::CircleRuleProto* circle); - - // optional .PathTextRuleProto path_text = 7; - inline bool has_path_text() const; - inline void clear_path_text(); - static const int kPathTextFieldNumber = 7; - inline const ::PathTextRuleProto& path_text() const; - inline ::PathTextRuleProto* mutable_path_text(); - inline ::PathTextRuleProto* release_path_text(); - inline void set_allocated_path_text(::PathTextRuleProto* path_text); - - // @@protoc_insertion_point(class_scope:DrawElementProto) - private: - inline void set_has_scale(); - inline void clear_has_scale(); - inline void set_has_area(); - inline void clear_has_area(); - inline void set_has_symbol(); - inline void clear_has_symbol(); - inline void set_has_caption(); - inline void clear_has_caption(); - inline void set_has_circle(); - inline void clear_has_circle(); - inline void set_has_path_text(); - inline void clear_has_path_text(); - - ::google::protobuf::RepeatedPtrField< ::LineRuleProto > lines_; - ::AreaRuleProto* area_; - ::SymbolRuleProto* symbol_; - ::CaptionRuleProto* caption_; - ::CircleRuleProto* circle_; - ::PathTextRuleProto* path_text_; - ::google::protobuf::int32 scale_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static DrawElementProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class ClassifElementProto : public ::google::protobuf::MessageLite { - public: - ClassifElementProto(); - virtual ~ClassifElementProto(); - - ClassifElementProto(const ClassifElementProto& from); - - inline ClassifElementProto& operator=(const ClassifElementProto& from) { - CopyFrom(from); - return *this; - } - - static const ClassifElementProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const ClassifElementProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(ClassifElementProto* other); - - // implements Message ---------------------------------------------- - - ClassifElementProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const ClassifElementProto& from); - void MergeFrom(const ClassifElementProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required string name = 1; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 1; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // repeated .DrawElementProto element = 2; - inline int element_size() const; - inline void clear_element(); - static const int kElementFieldNumber = 2; - inline const ::DrawElementProto& element(int index) const; - inline ::DrawElementProto* mutable_element(int index); - inline ::DrawElementProto* add_element(); - inline const ::google::protobuf::RepeatedPtrField< ::DrawElementProto >& - element() const; - inline ::google::protobuf::RepeatedPtrField< ::DrawElementProto >* - mutable_element(); - - // @@protoc_insertion_point(class_scope:ClassifElementProto) - private: - inline void set_has_name(); - inline void clear_has_name(); - - ::std::string* name_; - ::google::protobuf::RepeatedPtrField< ::DrawElementProto > element_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static ClassifElementProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class ContainerProto : public ::google::protobuf::MessageLite { - public: - ContainerProto(); - virtual ~ContainerProto(); - - ContainerProto(const ContainerProto& from); - - inline ContainerProto& operator=(const ContainerProto& from) { - CopyFrom(from); - return *this; - } - - static const ContainerProto& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const ContainerProto* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(ContainerProto* other); - - // implements Message ---------------------------------------------- - - ContainerProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const ContainerProto& from); - void MergeFrom(const ContainerProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .ClassifElementProto cont = 1; - inline int cont_size() const; - inline void clear_cont(); - static const int kContFieldNumber = 1; - inline const ::ClassifElementProto& cont(int index) const; - inline ::ClassifElementProto* mutable_cont(int index); - inline ::ClassifElementProto* add_cont(); - inline const ::google::protobuf::RepeatedPtrField< ::ClassifElementProto >& - cont() const; - inline ::google::protobuf::RepeatedPtrField< ::ClassifElementProto >* - mutable_cont(); - - // @@protoc_insertion_point(class_scope:ContainerProto) - private: - - ::google::protobuf::RepeatedPtrField< ::ClassifElementProto > cont_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_drules_5fstruct_2eproto_impl(); - #else - friend void protobuf_AddDesc_drules_5fstruct_2eproto(); - #endif - friend void protobuf_AssignDesc_drules_5fstruct_2eproto(); - friend void protobuf_ShutdownFile_drules_5fstruct_2eproto(); - - void InitAsDefaultInstance(); - static ContainerProto* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -// DashDotProto - -// repeated double dd = 1; -inline int DashDotProto::dd_size() const { - return dd_.size(); -} -inline void DashDotProto::clear_dd() { - dd_.Clear(); -} -inline double DashDotProto::dd(int index) const { - return dd_.Get(index); -} -inline void DashDotProto::set_dd(int index, double value) { - dd_.Set(index, value); -} -inline void DashDotProto::add_dd(double value) { - dd_.Add(value); -} -inline const ::google::protobuf::RepeatedField< double >& -DashDotProto::dd() const { - return dd_; -} -inline ::google::protobuf::RepeatedField< double >* -DashDotProto::mutable_dd() { - return &dd_; -} - -// optional double offset = 2; -inline bool DashDotProto::has_offset() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void DashDotProto::set_has_offset() { - _has_bits_[0] |= 0x00000002u; -} -inline void DashDotProto::clear_has_offset() { - _has_bits_[0] &= ~0x00000002u; -} -inline void DashDotProto::clear_offset() { - offset_ = 0; - clear_has_offset(); -} -inline double DashDotProto::offset() const { - return offset_; -} -inline void DashDotProto::set_offset(double value) { - set_has_offset(); - offset_ = value; -} - -// ------------------------------------------------------------------- - -// PathSymProto - -// required string name = 1; -inline bool PathSymProto::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PathSymProto::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -inline void PathSymProto::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -inline void PathSymProto::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& PathSymProto::name() const { - return *name_; -} -inline void PathSymProto::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void PathSymProto::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void PathSymProto::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast<const char*>(value), size); -} -inline ::std::string* PathSymProto::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* PathSymProto::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void PathSymProto::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// required double step = 2; -inline bool PathSymProto::has_step() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PathSymProto::set_has_step() { - _has_bits_[0] |= 0x00000002u; -} -inline void PathSymProto::clear_has_step() { - _has_bits_[0] &= ~0x00000002u; -} -inline void PathSymProto::clear_step() { - step_ = 0; - clear_has_step(); -} -inline double PathSymProto::step() const { - return step_; -} -inline void PathSymProto::set_step(double value) { - set_has_step(); - step_ = value; -} - -// optional double offset = 3; -inline bool PathSymProto::has_offset() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PathSymProto::set_has_offset() { - _has_bits_[0] |= 0x00000004u; -} -inline void PathSymProto::clear_has_offset() { - _has_bits_[0] &= ~0x00000004u; -} -inline void PathSymProto::clear_offset() { - offset_ = 0; - clear_has_offset(); -} -inline double PathSymProto::offset() const { - return offset_; -} -inline void PathSymProto::set_offset(double value) { - set_has_offset(); - offset_ = value; -} - -// ------------------------------------------------------------------- - -// LineRuleProto - -// required double width = 1; -inline bool LineRuleProto::has_width() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void LineRuleProto::set_has_width() { - _has_bits_[0] |= 0x00000001u; -} -inline void LineRuleProto::clear_has_width() { - _has_bits_[0] &= ~0x00000001u; -} -inline void LineRuleProto::clear_width() { - width_ = 0; - clear_has_width(); -} -inline double LineRuleProto::width() const { - return width_; -} -inline void LineRuleProto::set_width(double value) { - set_has_width(); - width_ = value; -} - -// required uint32 color = 2; -inline bool LineRuleProto::has_color() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void LineRuleProto::set_has_color() { - _has_bits_[0] |= 0x00000002u; -} -inline void LineRuleProto::clear_has_color() { - _has_bits_[0] &= ~0x00000002u; -} -inline void LineRuleProto::clear_color() { - color_ = 0u; - clear_has_color(); -} -inline ::google::protobuf::uint32 LineRuleProto::color() const { - return color_; -} -inline void LineRuleProto::set_color(::google::protobuf::uint32 value) { - set_has_color(); - color_ = value; -} - -// optional .DashDotProto dashdot = 3; -inline bool LineRuleProto::has_dashdot() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void LineRuleProto::set_has_dashdot() { - _has_bits_[0] |= 0x00000004u; -} -inline void LineRuleProto::clear_has_dashdot() { - _has_bits_[0] &= ~0x00000004u; -} -inline void LineRuleProto::clear_dashdot() { - if (dashdot_ != NULL) dashdot_->::DashDotProto::Clear(); - clear_has_dashdot(); -} -inline const ::DashDotProto& LineRuleProto::dashdot() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dashdot_ != NULL ? *dashdot_ : *default_instance().dashdot_; -#else - return dashdot_ != NULL ? *dashdot_ : *default_instance_->dashdot_; -#endif -} -inline ::DashDotProto* LineRuleProto::mutable_dashdot() { - set_has_dashdot(); - if (dashdot_ == NULL) dashdot_ = new ::DashDotProto; - return dashdot_; -} -inline ::DashDotProto* LineRuleProto::release_dashdot() { - clear_has_dashdot(); - ::DashDotProto* temp = dashdot_; - dashdot_ = NULL; - return temp; -} -inline void LineRuleProto::set_allocated_dashdot(::DashDotProto* dashdot) { - delete dashdot_; - dashdot_ = dashdot; - if (dashdot) { - set_has_dashdot(); - } else { - clear_has_dashdot(); - } -} - -// required int32 priority = 4; -inline bool LineRuleProto::has_priority() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void LineRuleProto::set_has_priority() { - _has_bits_[0] |= 0x00000008u; -} -inline void LineRuleProto::clear_has_priority() { - _has_bits_[0] &= ~0x00000008u; -} -inline void LineRuleProto::clear_priority() { - priority_ = 0; - clear_has_priority(); -} -inline ::google::protobuf::int32 LineRuleProto::priority() const { - return priority_; -} -inline void LineRuleProto::set_priority(::google::protobuf::int32 value) { - set_has_priority(); - priority_ = value; -} - -// optional .PathSymProto pathsym = 5; -inline bool LineRuleProto::has_pathsym() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void LineRuleProto::set_has_pathsym() { - _has_bits_[0] |= 0x00000010u; -} -inline void LineRuleProto::clear_has_pathsym() { - _has_bits_[0] &= ~0x00000010u; -} -inline void LineRuleProto::clear_pathsym() { - if (pathsym_ != NULL) pathsym_->::PathSymProto::Clear(); - clear_has_pathsym(); -} -inline const ::PathSymProto& LineRuleProto::pathsym() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return pathsym_ != NULL ? *pathsym_ : *default_instance().pathsym_; -#else - return pathsym_ != NULL ? *pathsym_ : *default_instance_->pathsym_; -#endif -} -inline ::PathSymProto* LineRuleProto::mutable_pathsym() { - set_has_pathsym(); - if (pathsym_ == NULL) pathsym_ = new ::PathSymProto; - return pathsym_; -} -inline ::PathSymProto* LineRuleProto::release_pathsym() { - clear_has_pathsym(); - ::PathSymProto* temp = pathsym_; - pathsym_ = NULL; - return temp; -} -inline void LineRuleProto::set_allocated_pathsym(::PathSymProto* pathsym) { - delete pathsym_; - pathsym_ = pathsym; - if (pathsym) { - set_has_pathsym(); - } else { - clear_has_pathsym(); - } -} - -// optional .LineJoin join = 6; -inline bool LineRuleProto::has_join() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void LineRuleProto::set_has_join() { - _has_bits_[0] |= 0x00000020u; -} -inline void LineRuleProto::clear_has_join() { - _has_bits_[0] &= ~0x00000020u; -} -inline void LineRuleProto::clear_join() { - join_ = 0; - clear_has_join(); -} -inline ::LineJoin LineRuleProto::join() const { - return static_cast< ::LineJoin >(join_); -} -inline void LineRuleProto::set_join(::LineJoin value) { - assert(::LineJoin_IsValid(value)); - set_has_join(); - join_ = value; -} - -// optional .LineCap cap = 7; -inline bool LineRuleProto::has_cap() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void LineRuleProto::set_has_cap() { - _has_bits_[0] |= 0x00000040u; -} -inline void LineRuleProto::clear_has_cap() { - _has_bits_[0] &= ~0x00000040u; -} -inline void LineRuleProto::clear_cap() { - cap_ = 0; - clear_has_cap(); -} -inline ::LineCap LineRuleProto::cap() const { - return static_cast< ::LineCap >(cap_); -} -inline void LineRuleProto::set_cap(::LineCap value) { - assert(::LineCap_IsValid(value)); - set_has_cap(); - cap_ = value; -} - -// ------------------------------------------------------------------- - -// LineDefProto - -// required double width = 1; -inline bool LineDefProto::has_width() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void LineDefProto::set_has_width() { - _has_bits_[0] |= 0x00000001u; -} -inline void LineDefProto::clear_has_width() { - _has_bits_[0] &= ~0x00000001u; -} -inline void LineDefProto::clear_width() { - width_ = 0; - clear_has_width(); -} -inline double LineDefProto::width() const { - return width_; -} -inline void LineDefProto::set_width(double value) { - set_has_width(); - width_ = value; -} - -// required uint32 color = 2; -inline bool LineDefProto::has_color() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void LineDefProto::set_has_color() { - _has_bits_[0] |= 0x00000002u; -} -inline void LineDefProto::clear_has_color() { - _has_bits_[0] &= ~0x00000002u; -} -inline void LineDefProto::clear_color() { - color_ = 0u; - clear_has_color(); -} -inline ::google::protobuf::uint32 LineDefProto::color() const { - return color_; -} -inline void LineDefProto::set_color(::google::protobuf::uint32 value) { - set_has_color(); - color_ = value; -} - -// optional .DashDotProto dashdot = 3; -inline bool LineDefProto::has_dashdot() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void LineDefProto::set_has_dashdot() { - _has_bits_[0] |= 0x00000004u; -} -inline void LineDefProto::clear_has_dashdot() { - _has_bits_[0] &= ~0x00000004u; -} -inline void LineDefProto::clear_dashdot() { - if (dashdot_ != NULL) dashdot_->::DashDotProto::Clear(); - clear_has_dashdot(); -} -inline const ::DashDotProto& LineDefProto::dashdot() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dashdot_ != NULL ? *dashdot_ : *default_instance().dashdot_; -#else - return dashdot_ != NULL ? *dashdot_ : *default_instance_->dashdot_; -#endif -} -inline ::DashDotProto* LineDefProto::mutable_dashdot() { - set_has_dashdot(); - if (dashdot_ == NULL) dashdot_ = new ::DashDotProto; - return dashdot_; -} -inline ::DashDotProto* LineDefProto::release_dashdot() { - clear_has_dashdot(); - ::DashDotProto* temp = dashdot_; - dashdot_ = NULL; - return temp; -} -inline void LineDefProto::set_allocated_dashdot(::DashDotProto* dashdot) { - delete dashdot_; - dashdot_ = dashdot; - if (dashdot) { - set_has_dashdot(); - } else { - clear_has_dashdot(); - } -} - -// optional .PathSymProto pathsym = 4; -inline bool LineDefProto::has_pathsym() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void LineDefProto::set_has_pathsym() { - _has_bits_[0] |= 0x00000008u; -} -inline void LineDefProto::clear_has_pathsym() { - _has_bits_[0] &= ~0x00000008u; -} -inline void LineDefProto::clear_pathsym() { - if (pathsym_ != NULL) pathsym_->::PathSymProto::Clear(); - clear_has_pathsym(); -} -inline const ::PathSymProto& LineDefProto::pathsym() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return pathsym_ != NULL ? *pathsym_ : *default_instance().pathsym_; -#else - return pathsym_ != NULL ? *pathsym_ : *default_instance_->pathsym_; -#endif -} -inline ::PathSymProto* LineDefProto::mutable_pathsym() { - set_has_pathsym(); - if (pathsym_ == NULL) pathsym_ = new ::PathSymProto; - return pathsym_; -} -inline ::PathSymProto* LineDefProto::release_pathsym() { - clear_has_pathsym(); - ::PathSymProto* temp = pathsym_; - pathsym_ = NULL; - return temp; -} -inline void LineDefProto::set_allocated_pathsym(::PathSymProto* pathsym) { - delete pathsym_; - pathsym_ = pathsym; - if (pathsym) { - set_has_pathsym(); - } else { - clear_has_pathsym(); - } -} - -// optional .LineJoin join = 6; -inline bool LineDefProto::has_join() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void LineDefProto::set_has_join() { - _has_bits_[0] |= 0x00000010u; -} -inline void LineDefProto::clear_has_join() { - _has_bits_[0] &= ~0x00000010u; -} -inline void LineDefProto::clear_join() { - join_ = 0; - clear_has_join(); -} -inline ::LineJoin LineDefProto::join() const { - return static_cast< ::LineJoin >(join_); -} -inline void LineDefProto::set_join(::LineJoin value) { - assert(::LineJoin_IsValid(value)); - set_has_join(); - join_ = value; -} - -// optional .LineCap cap = 7; -inline bool LineDefProto::has_cap() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void LineDefProto::set_has_cap() { - _has_bits_[0] |= 0x00000020u; -} -inline void LineDefProto::clear_has_cap() { - _has_bits_[0] &= ~0x00000020u; -} -inline void LineDefProto::clear_cap() { - cap_ = 0; - clear_has_cap(); -} -inline ::LineCap LineDefProto::cap() const { - return static_cast< ::LineCap >(cap_); -} -inline void LineDefProto::set_cap(::LineCap value) { - assert(::LineCap_IsValid(value)); - set_has_cap(); - cap_ = value; -} - -// ------------------------------------------------------------------- - -// AreaRuleProto - -// required uint32 color = 1; -inline bool AreaRuleProto::has_color() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AreaRuleProto::set_has_color() { - _has_bits_[0] |= 0x00000001u; -} -inline void AreaRuleProto::clear_has_color() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AreaRuleProto::clear_color() { - color_ = 0u; - clear_has_color(); -} -inline ::google::protobuf::uint32 AreaRuleProto::color() const { - return color_; -} -inline void AreaRuleProto::set_color(::google::protobuf::uint32 value) { - set_has_color(); - color_ = value; -} - -// optional .LineDefProto border = 2; -inline bool AreaRuleProto::has_border() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AreaRuleProto::set_has_border() { - _has_bits_[0] |= 0x00000002u; -} -inline void AreaRuleProto::clear_has_border() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AreaRuleProto::clear_border() { - if (border_ != NULL) border_->::LineDefProto::Clear(); - clear_has_border(); -} -inline const ::LineDefProto& AreaRuleProto::border() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return border_ != NULL ? *border_ : *default_instance().border_; -#else - return border_ != NULL ? *border_ : *default_instance_->border_; -#endif -} -inline ::LineDefProto* AreaRuleProto::mutable_border() { - set_has_border(); - if (border_ == NULL) border_ = new ::LineDefProto; - return border_; -} -inline ::LineDefProto* AreaRuleProto::release_border() { - clear_has_border(); - ::LineDefProto* temp = border_; - border_ = NULL; - return temp; -} -inline void AreaRuleProto::set_allocated_border(::LineDefProto* border) { - delete border_; - border_ = border; - if (border) { - set_has_border(); - } else { - clear_has_border(); - } -} - -// required int32 priority = 3; -inline bool AreaRuleProto::has_priority() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AreaRuleProto::set_has_priority() { - _has_bits_[0] |= 0x00000004u; -} -inline void AreaRuleProto::clear_has_priority() { - _has_bits_[0] &= ~0x00000004u; -} -inline void AreaRuleProto::clear_priority() { - priority_ = 0; - clear_has_priority(); -} -inline ::google::protobuf::int32 AreaRuleProto::priority() const { - return priority_; -} -inline void AreaRuleProto::set_priority(::google::protobuf::int32 value) { - set_has_priority(); - priority_ = value; -} - -// ------------------------------------------------------------------- - -// SymbolRuleProto - -// required string name = 1; -inline bool SymbolRuleProto::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SymbolRuleProto::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -inline void SymbolRuleProto::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SymbolRuleProto::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& SymbolRuleProto::name() const { - return *name_; -} -inline void SymbolRuleProto::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void SymbolRuleProto::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void SymbolRuleProto::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast<const char*>(value), size); -} -inline ::std::string* SymbolRuleProto::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* SymbolRuleProto::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void SymbolRuleProto::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional int32 apply_for_type = 2; -inline bool SymbolRuleProto::has_apply_for_type() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void SymbolRuleProto::set_has_apply_for_type() { - _has_bits_[0] |= 0x00000002u; -} -inline void SymbolRuleProto::clear_has_apply_for_type() { - _has_bits_[0] &= ~0x00000002u; -} -inline void SymbolRuleProto::clear_apply_for_type() { - apply_for_type_ = 0; - clear_has_apply_for_type(); -} -inline ::google::protobuf::int32 SymbolRuleProto::apply_for_type() const { - return apply_for_type_; -} -inline void SymbolRuleProto::set_apply_for_type(::google::protobuf::int32 value) { - set_has_apply_for_type(); - apply_for_type_ = value; -} - -// required int32 priority = 3; -inline bool SymbolRuleProto::has_priority() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void SymbolRuleProto::set_has_priority() { - _has_bits_[0] |= 0x00000004u; -} -inline void SymbolRuleProto::clear_has_priority() { - _has_bits_[0] &= ~0x00000004u; -} -inline void SymbolRuleProto::clear_priority() { - priority_ = 0; - clear_has_priority(); -} -inline ::google::protobuf::int32 SymbolRuleProto::priority() const { - return priority_; -} -inline void SymbolRuleProto::set_priority(::google::protobuf::int32 value) { - set_has_priority(); - priority_ = value; -} - -// ------------------------------------------------------------------- - -// CaptionDefProto - -// required int32 height = 1; -inline bool CaptionDefProto::has_height() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CaptionDefProto::set_has_height() { - _has_bits_[0] |= 0x00000001u; -} -inline void CaptionDefProto::clear_has_height() { - _has_bits_[0] &= ~0x00000001u; -} -inline void CaptionDefProto::clear_height() { - height_ = 0; - clear_has_height(); -} -inline ::google::protobuf::int32 CaptionDefProto::height() const { - return height_; -} -inline void CaptionDefProto::set_height(::google::protobuf::int32 value) { - set_has_height(); - height_ = value; -} - -// required uint32 color = 2; -inline bool CaptionDefProto::has_color() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CaptionDefProto::set_has_color() { - _has_bits_[0] |= 0x00000002u; -} -inline void CaptionDefProto::clear_has_color() { - _has_bits_[0] &= ~0x00000002u; -} -inline void CaptionDefProto::clear_color() { - color_ = 0u; - clear_has_color(); -} -inline ::google::protobuf::uint32 CaptionDefProto::color() const { - return color_; -} -inline void CaptionDefProto::set_color(::google::protobuf::uint32 value) { - set_has_color(); - color_ = value; -} - -// optional uint32 stroke_color = 3; -inline bool CaptionDefProto::has_stroke_color() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void CaptionDefProto::set_has_stroke_color() { - _has_bits_[0] |= 0x00000004u; -} -inline void CaptionDefProto::clear_has_stroke_color() { - _has_bits_[0] &= ~0x00000004u; -} -inline void CaptionDefProto::clear_stroke_color() { - stroke_color_ = 0u; - clear_has_stroke_color(); -} -inline ::google::protobuf::uint32 CaptionDefProto::stroke_color() const { - return stroke_color_; -} -inline void CaptionDefProto::set_stroke_color(::google::protobuf::uint32 value) { - set_has_stroke_color(); - stroke_color_ = value; -} - -// optional int32 offset_x = 4; -inline bool CaptionDefProto::has_offset_x() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void CaptionDefProto::set_has_offset_x() { - _has_bits_[0] |= 0x00000008u; -} -inline void CaptionDefProto::clear_has_offset_x() { - _has_bits_[0] &= ~0x00000008u; -} -inline void CaptionDefProto::clear_offset_x() { - offset_x_ = 0; - clear_has_offset_x(); -} -inline ::google::protobuf::int32 CaptionDefProto::offset_x() const { - return offset_x_; -} -inline void CaptionDefProto::set_offset_x(::google::protobuf::int32 value) { - set_has_offset_x(); - offset_x_ = value; -} - -// optional int32 offset_y = 5; -inline bool CaptionDefProto::has_offset_y() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void CaptionDefProto::set_has_offset_y() { - _has_bits_[0] |= 0x00000010u; -} -inline void CaptionDefProto::clear_has_offset_y() { - _has_bits_[0] &= ~0x00000010u; -} -inline void CaptionDefProto::clear_offset_y() { - offset_y_ = 0; - clear_has_offset_y(); -} -inline ::google::protobuf::int32 CaptionDefProto::offset_y() const { - return offset_y_; -} -inline void CaptionDefProto::set_offset_y(::google::protobuf::int32 value) { - set_has_offset_y(); - offset_y_ = value; -} - -// ------------------------------------------------------------------- - -// CaptionRuleProto - -// required .CaptionDefProto primary = 1; -inline bool CaptionRuleProto::has_primary() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CaptionRuleProto::set_has_primary() { - _has_bits_[0] |= 0x00000001u; -} -inline void CaptionRuleProto::clear_has_primary() { - _has_bits_[0] &= ~0x00000001u; -} -inline void CaptionRuleProto::clear_primary() { - if (primary_ != NULL) primary_->::CaptionDefProto::Clear(); - clear_has_primary(); -} -inline const ::CaptionDefProto& CaptionRuleProto::primary() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return primary_ != NULL ? *primary_ : *default_instance().primary_; -#else - return primary_ != NULL ? *primary_ : *default_instance_->primary_; -#endif -} -inline ::CaptionDefProto* CaptionRuleProto::mutable_primary() { - set_has_primary(); - if (primary_ == NULL) primary_ = new ::CaptionDefProto; - return primary_; -} -inline ::CaptionDefProto* CaptionRuleProto::release_primary() { - clear_has_primary(); - ::CaptionDefProto* temp = primary_; - primary_ = NULL; - return temp; -} -inline void CaptionRuleProto::set_allocated_primary(::CaptionDefProto* primary) { - delete primary_; - primary_ = primary; - if (primary) { - set_has_primary(); - } else { - clear_has_primary(); - } -} - -// optional .CaptionDefProto secondary = 2; -inline bool CaptionRuleProto::has_secondary() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CaptionRuleProto::set_has_secondary() { - _has_bits_[0] |= 0x00000002u; -} -inline void CaptionRuleProto::clear_has_secondary() { - _has_bits_[0] &= ~0x00000002u; -} -inline void CaptionRuleProto::clear_secondary() { - if (secondary_ != NULL) secondary_->::CaptionDefProto::Clear(); - clear_has_secondary(); -} -inline const ::CaptionDefProto& CaptionRuleProto::secondary() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return secondary_ != NULL ? *secondary_ : *default_instance().secondary_; -#else - return secondary_ != NULL ? *secondary_ : *default_instance_->secondary_; -#endif -} -inline ::CaptionDefProto* CaptionRuleProto::mutable_secondary() { - set_has_secondary(); - if (secondary_ == NULL) secondary_ = new ::CaptionDefProto; - return secondary_; -} -inline ::CaptionDefProto* CaptionRuleProto::release_secondary() { - clear_has_secondary(); - ::CaptionDefProto* temp = secondary_; - secondary_ = NULL; - return temp; -} -inline void CaptionRuleProto::set_allocated_secondary(::CaptionDefProto* secondary) { - delete secondary_; - secondary_ = secondary; - if (secondary) { - set_has_secondary(); - } else { - clear_has_secondary(); - } -} - -// required int32 priority = 3; -inline bool CaptionRuleProto::has_priority() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void CaptionRuleProto::set_has_priority() { - _has_bits_[0] |= 0x00000004u; -} -inline void CaptionRuleProto::clear_has_priority() { - _has_bits_[0] &= ~0x00000004u; -} -inline void CaptionRuleProto::clear_priority() { - priority_ = 0; - clear_has_priority(); -} -inline ::google::protobuf::int32 CaptionRuleProto::priority() const { - return priority_; -} -inline void CaptionRuleProto::set_priority(::google::protobuf::int32 value) { - set_has_priority(); - priority_ = value; -} - -// ------------------------------------------------------------------- - -// CircleRuleProto - -// required double radius = 1; -inline bool CircleRuleProto::has_radius() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CircleRuleProto::set_has_radius() { - _has_bits_[0] |= 0x00000001u; -} -inline void CircleRuleProto::clear_has_radius() { - _has_bits_[0] &= ~0x00000001u; -} -inline void CircleRuleProto::clear_radius() { - radius_ = 0; - clear_has_radius(); -} -inline double CircleRuleProto::radius() const { - return radius_; -} -inline void CircleRuleProto::set_radius(double value) { - set_has_radius(); - radius_ = value; -} - -// required uint32 color = 2; -inline bool CircleRuleProto::has_color() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CircleRuleProto::set_has_color() { - _has_bits_[0] |= 0x00000002u; -} -inline void CircleRuleProto::clear_has_color() { - _has_bits_[0] &= ~0x00000002u; -} -inline void CircleRuleProto::clear_color() { - color_ = 0u; - clear_has_color(); -} -inline ::google::protobuf::uint32 CircleRuleProto::color() const { - return color_; -} -inline void CircleRuleProto::set_color(::google::protobuf::uint32 value) { - set_has_color(); - color_ = value; -} - -// optional .LineDefProto border = 3; -inline bool CircleRuleProto::has_border() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void CircleRuleProto::set_has_border() { - _has_bits_[0] |= 0x00000004u; -} -inline void CircleRuleProto::clear_has_border() { - _has_bits_[0] &= ~0x00000004u; -} -inline void CircleRuleProto::clear_border() { - if (border_ != NULL) border_->::LineDefProto::Clear(); - clear_has_border(); -} -inline const ::LineDefProto& CircleRuleProto::border() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return border_ != NULL ? *border_ : *default_instance().border_; -#else - return border_ != NULL ? *border_ : *default_instance_->border_; -#endif -} -inline ::LineDefProto* CircleRuleProto::mutable_border() { - set_has_border(); - if (border_ == NULL) border_ = new ::LineDefProto; - return border_; -} -inline ::LineDefProto* CircleRuleProto::release_border() { - clear_has_border(); - ::LineDefProto* temp = border_; - border_ = NULL; - return temp; -} -inline void CircleRuleProto::set_allocated_border(::LineDefProto* border) { - delete border_; - border_ = border; - if (border) { - set_has_border(); - } else { - clear_has_border(); - } -} - -// required int32 priority = 4; -inline bool CircleRuleProto::has_priority() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void CircleRuleProto::set_has_priority() { - _has_bits_[0] |= 0x00000008u; -} -inline void CircleRuleProto::clear_has_priority() { - _has_bits_[0] &= ~0x00000008u; -} -inline void CircleRuleProto::clear_priority() { - priority_ = 0; - clear_has_priority(); -} -inline ::google::protobuf::int32 CircleRuleProto::priority() const { - return priority_; -} -inline void CircleRuleProto::set_priority(::google::protobuf::int32 value) { - set_has_priority(); - priority_ = value; -} - -// ------------------------------------------------------------------- - -// PathTextRuleProto - -// required .CaptionDefProto primary = 1; -inline bool PathTextRuleProto::has_primary() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PathTextRuleProto::set_has_primary() { - _has_bits_[0] |= 0x00000001u; -} -inline void PathTextRuleProto::clear_has_primary() { - _has_bits_[0] &= ~0x00000001u; -} -inline void PathTextRuleProto::clear_primary() { - if (primary_ != NULL) primary_->::CaptionDefProto::Clear(); - clear_has_primary(); -} -inline const ::CaptionDefProto& PathTextRuleProto::primary() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return primary_ != NULL ? *primary_ : *default_instance().primary_; -#else - return primary_ != NULL ? *primary_ : *default_instance_->primary_; -#endif -} -inline ::CaptionDefProto* PathTextRuleProto::mutable_primary() { - set_has_primary(); - if (primary_ == NULL) primary_ = new ::CaptionDefProto; - return primary_; -} -inline ::CaptionDefProto* PathTextRuleProto::release_primary() { - clear_has_primary(); - ::CaptionDefProto* temp = primary_; - primary_ = NULL; - return temp; -} -inline void PathTextRuleProto::set_allocated_primary(::CaptionDefProto* primary) { - delete primary_; - primary_ = primary; - if (primary) { - set_has_primary(); - } else { - clear_has_primary(); - } -} - -// optional .CaptionDefProto secondary = 2; -inline bool PathTextRuleProto::has_secondary() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PathTextRuleProto::set_has_secondary() { - _has_bits_[0] |= 0x00000002u; -} -inline void PathTextRuleProto::clear_has_secondary() { - _has_bits_[0] &= ~0x00000002u; -} -inline void PathTextRuleProto::clear_secondary() { - if (secondary_ != NULL) secondary_->::CaptionDefProto::Clear(); - clear_has_secondary(); -} -inline const ::CaptionDefProto& PathTextRuleProto::secondary() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return secondary_ != NULL ? *secondary_ : *default_instance().secondary_; -#else - return secondary_ != NULL ? *secondary_ : *default_instance_->secondary_; -#endif -} -inline ::CaptionDefProto* PathTextRuleProto::mutable_secondary() { - set_has_secondary(); - if (secondary_ == NULL) secondary_ = new ::CaptionDefProto; - return secondary_; -} -inline ::CaptionDefProto* PathTextRuleProto::release_secondary() { - clear_has_secondary(); - ::CaptionDefProto* temp = secondary_; - secondary_ = NULL; - return temp; -} -inline void PathTextRuleProto::set_allocated_secondary(::CaptionDefProto* secondary) { - delete secondary_; - secondary_ = secondary; - if (secondary) { - set_has_secondary(); - } else { - clear_has_secondary(); - } -} - -// required int32 priority = 3; -inline bool PathTextRuleProto::has_priority() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PathTextRuleProto::set_has_priority() { - _has_bits_[0] |= 0x00000004u; -} -inline void PathTextRuleProto::clear_has_priority() { - _has_bits_[0] &= ~0x00000004u; -} -inline void PathTextRuleProto::clear_priority() { - priority_ = 0; - clear_has_priority(); -} -inline ::google::protobuf::int32 PathTextRuleProto::priority() const { - return priority_; -} -inline void PathTextRuleProto::set_priority(::google::protobuf::int32 value) { - set_has_priority(); - priority_ = value; -} - -// ------------------------------------------------------------------- - -// DrawElementProto - -// required int32 scale = 1; -inline bool DrawElementProto::has_scale() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void DrawElementProto::set_has_scale() { - _has_bits_[0] |= 0x00000001u; -} -inline void DrawElementProto::clear_has_scale() { - _has_bits_[0] &= ~0x00000001u; -} -inline void DrawElementProto::clear_scale() { - scale_ = 0; - clear_has_scale(); -} -inline ::google::protobuf::int32 DrawElementProto::scale() const { - return scale_; -} -inline void DrawElementProto::set_scale(::google::protobuf::int32 value) { - set_has_scale(); - scale_ = value; -} - -// repeated .LineRuleProto lines = 2; -inline int DrawElementProto::lines_size() const { - return lines_.size(); -} -inline void DrawElementProto::clear_lines() { - lines_.Clear(); -} -inline const ::LineRuleProto& DrawElementProto::lines(int index) const { - return lines_.Get(index); -} -inline ::LineRuleProto* DrawElementProto::mutable_lines(int index) { - return lines_.Mutable(index); -} -inline ::LineRuleProto* DrawElementProto::add_lines() { - return lines_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::LineRuleProto >& -DrawElementProto::lines() const { - return lines_; -} -inline ::google::protobuf::RepeatedPtrField< ::LineRuleProto >* -DrawElementProto::mutable_lines() { - return &lines_; -} - -// optional .AreaRuleProto area = 3; -inline bool DrawElementProto::has_area() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void DrawElementProto::set_has_area() { - _has_bits_[0] |= 0x00000004u; -} -inline void DrawElementProto::clear_has_area() { - _has_bits_[0] &= ~0x00000004u; -} -inline void DrawElementProto::clear_area() { - if (area_ != NULL) area_->::AreaRuleProto::Clear(); - clear_has_area(); -} -inline const ::AreaRuleProto& DrawElementProto::area() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return area_ != NULL ? *area_ : *default_instance().area_; -#else - return area_ != NULL ? *area_ : *default_instance_->area_; -#endif -} -inline ::AreaRuleProto* DrawElementProto::mutable_area() { - set_has_area(); - if (area_ == NULL) area_ = new ::AreaRuleProto; - return area_; -} -inline ::AreaRuleProto* DrawElementProto::release_area() { - clear_has_area(); - ::AreaRuleProto* temp = area_; - area_ = NULL; - return temp; -} -inline void DrawElementProto::set_allocated_area(::AreaRuleProto* area) { - delete area_; - area_ = area; - if (area) { - set_has_area(); - } else { - clear_has_area(); - } -} - -// optional .SymbolRuleProto symbol = 4; -inline bool DrawElementProto::has_symbol() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void DrawElementProto::set_has_symbol() { - _has_bits_[0] |= 0x00000008u; -} -inline void DrawElementProto::clear_has_symbol() { - _has_bits_[0] &= ~0x00000008u; -} -inline void DrawElementProto::clear_symbol() { - if (symbol_ != NULL) symbol_->::SymbolRuleProto::Clear(); - clear_has_symbol(); -} -inline const ::SymbolRuleProto& DrawElementProto::symbol() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return symbol_ != NULL ? *symbol_ : *default_instance().symbol_; -#else - return symbol_ != NULL ? *symbol_ : *default_instance_->symbol_; -#endif -} -inline ::SymbolRuleProto* DrawElementProto::mutable_symbol() { - set_has_symbol(); - if (symbol_ == NULL) symbol_ = new ::SymbolRuleProto; - return symbol_; -} -inline ::SymbolRuleProto* DrawElementProto::release_symbol() { - clear_has_symbol(); - ::SymbolRuleProto* temp = symbol_; - symbol_ = NULL; - return temp; -} -inline void DrawElementProto::set_allocated_symbol(::SymbolRuleProto* symbol) { - delete symbol_; - symbol_ = symbol; - if (symbol) { - set_has_symbol(); - } else { - clear_has_symbol(); - } -} - -// optional .CaptionRuleProto caption = 5; -inline bool DrawElementProto::has_caption() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void DrawElementProto::set_has_caption() { - _has_bits_[0] |= 0x00000010u; -} -inline void DrawElementProto::clear_has_caption() { - _has_bits_[0] &= ~0x00000010u; -} -inline void DrawElementProto::clear_caption() { - if (caption_ != NULL) caption_->::CaptionRuleProto::Clear(); - clear_has_caption(); -} -inline const ::CaptionRuleProto& DrawElementProto::caption() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return caption_ != NULL ? *caption_ : *default_instance().caption_; -#else - return caption_ != NULL ? *caption_ : *default_instance_->caption_; -#endif -} -inline ::CaptionRuleProto* DrawElementProto::mutable_caption() { - set_has_caption(); - if (caption_ == NULL) caption_ = new ::CaptionRuleProto; - return caption_; -} -inline ::CaptionRuleProto* DrawElementProto::release_caption() { - clear_has_caption(); - ::CaptionRuleProto* temp = caption_; - caption_ = NULL; - return temp; -} -inline void DrawElementProto::set_allocated_caption(::CaptionRuleProto* caption) { - delete caption_; - caption_ = caption; - if (caption) { - set_has_caption(); - } else { - clear_has_caption(); - } -} - -// optional .CircleRuleProto circle = 6; -inline bool DrawElementProto::has_circle() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void DrawElementProto::set_has_circle() { - _has_bits_[0] |= 0x00000020u; -} -inline void DrawElementProto::clear_has_circle() { - _has_bits_[0] &= ~0x00000020u; -} -inline void DrawElementProto::clear_circle() { - if (circle_ != NULL) circle_->::CircleRuleProto::Clear(); - clear_has_circle(); -} -inline const ::CircleRuleProto& DrawElementProto::circle() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return circle_ != NULL ? *circle_ : *default_instance().circle_; -#else - return circle_ != NULL ? *circle_ : *default_instance_->circle_; -#endif -} -inline ::CircleRuleProto* DrawElementProto::mutable_circle() { - set_has_circle(); - if (circle_ == NULL) circle_ = new ::CircleRuleProto; - return circle_; -} -inline ::CircleRuleProto* DrawElementProto::release_circle() { - clear_has_circle(); - ::CircleRuleProto* temp = circle_; - circle_ = NULL; - return temp; -} -inline void DrawElementProto::set_allocated_circle(::CircleRuleProto* circle) { - delete circle_; - circle_ = circle; - if (circle) { - set_has_circle(); - } else { - clear_has_circle(); - } -} - -// optional .PathTextRuleProto path_text = 7; -inline bool DrawElementProto::has_path_text() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void DrawElementProto::set_has_path_text() { - _has_bits_[0] |= 0x00000040u; -} -inline void DrawElementProto::clear_has_path_text() { - _has_bits_[0] &= ~0x00000040u; -} -inline void DrawElementProto::clear_path_text() { - if (path_text_ != NULL) path_text_->::PathTextRuleProto::Clear(); - clear_has_path_text(); -} -inline const ::PathTextRuleProto& DrawElementProto::path_text() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return path_text_ != NULL ? *path_text_ : *default_instance().path_text_; -#else - return path_text_ != NULL ? *path_text_ : *default_instance_->path_text_; -#endif -} -inline ::PathTextRuleProto* DrawElementProto::mutable_path_text() { - set_has_path_text(); - if (path_text_ == NULL) path_text_ = new ::PathTextRuleProto; - return path_text_; -} -inline ::PathTextRuleProto* DrawElementProto::release_path_text() { - clear_has_path_text(); - ::PathTextRuleProto* temp = path_text_; - path_text_ = NULL; - return temp; -} -inline void DrawElementProto::set_allocated_path_text(::PathTextRuleProto* path_text) { - delete path_text_; - path_text_ = path_text; - if (path_text) { - set_has_path_text(); - } else { - clear_has_path_text(); - } -} - -// ------------------------------------------------------------------- - -// ClassifElementProto - -// required string name = 1; -inline bool ClassifElementProto::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ClassifElementProto::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -inline void ClassifElementProto::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ClassifElementProto::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& ClassifElementProto::name() const { - return *name_; -} -inline void ClassifElementProto::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void ClassifElementProto::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void ClassifElementProto::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast<const char*>(value), size); -} -inline ::std::string* ClassifElementProto::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* ClassifElementProto::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void ClassifElementProto::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// repeated .DrawElementProto element = 2; -inline int ClassifElementProto::element_size() const { - return element_.size(); -} -inline void ClassifElementProto::clear_element() { - element_.Clear(); -} -inline const ::DrawElementProto& ClassifElementProto::element(int index) const { - return element_.Get(index); -} -inline ::DrawElementProto* ClassifElementProto::mutable_element(int index) { - return element_.Mutable(index); -} -inline ::DrawElementProto* ClassifElementProto::add_element() { - return element_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::DrawElementProto >& -ClassifElementProto::element() const { - return element_; -} -inline ::google::protobuf::RepeatedPtrField< ::DrawElementProto >* -ClassifElementProto::mutable_element() { - return &element_; -} - -// ------------------------------------------------------------------- - -// ContainerProto - -// repeated .ClassifElementProto cont = 1; -inline int ContainerProto::cont_size() const { - return cont_.size(); -} -inline void ContainerProto::clear_cont() { - cont_.Clear(); -} -inline const ::ClassifElementProto& ContainerProto::cont(int index) const { - return cont_.Get(index); -} -inline ::ClassifElementProto* ContainerProto::mutable_cont(int index) { - return cont_.Mutable(index); -} -inline ::ClassifElementProto* ContainerProto::add_cont() { - return cont_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::ClassifElementProto >& -ContainerProto::cont() const { - return cont_; -} -inline ::google::protobuf::RepeatedPtrField< ::ClassifElementProto >* -ContainerProto::mutable_cont() { - return &cont_; -} - - -// @@protoc_insertion_point(namespace_scope) - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_drules_5fstruct_2eproto__INCLUDED diff --git a/indexer/indexer.pro b/indexer/indexer.pro index c12f4be6db..b1483f1eb1 100644 --- a/indexer/indexer.pro +++ b/indexer/indexer.pro @@ -94,10 +94,5 @@ HEADERS += \ OTHER_FILES += drules_struct.proto -macx-*|win32-*|linux-* { - SOURCES += drules_struct.pb.cc - HEADERS += drules_struct.pb.h -} else { - SOURCES += drules_struct_lite.pb.cc - HEADERS += drules_struct_lite.pb.h -} +SOURCES += drules_struct.pb.cc +HEADERS += drules_struct.pb.h |