// Generated by the protocol buffer compiler. DO NOT EDIT! // source: fileanalysis.proto #include "fileanalysis.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include PROTOBUF_PRAGMA_INIT_SEG namespace protomsg { constexpr FileAnalysis::FileAnalysis( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , path_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , alias_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , snapshot_url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , duration_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , createtime_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , updatetime_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , identifier_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , stack_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , type_(0) , sort_(0) , is_running_(false) , progress_(0) , ruletype_(0) , status_(0) , size_(int64_t{0}){} struct FileAnalysisDefaultTypeInternal { constexpr FileAnalysisDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~FileAnalysisDefaultTypeInternal() {} union { FileAnalysis _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FileAnalysisDefaultTypeInternal _FileAnalysis_default_instance_; constexpr FileAnalysisSetting::FileAnalysisSetting( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : filedirectory_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , videoenable_(false) , videochannelcount_(0) , imgchannelcount_(0) , audiochannelcount_(0){} struct FileAnalysisSettingDefaultTypeInternal { constexpr FileAnalysisSettingDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~FileAnalysisSettingDefaultTypeInternal() {} union { FileAnalysisSetting _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FileAnalysisSettingDefaultTypeInternal _FileAnalysisSetting_default_instance_; constexpr FileStack::FileStack( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , createtime_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , updatetime_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , type_(0) , enable_(false) , isautodelfile_(false) , status_(0) , sort_(0) , resolution_width_(0) , resolution_height_(0){} struct FileStackDefaultTypeInternal { constexpr FileStackDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~FileStackDefaultTypeInternal() {} union { FileStack _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FileStackDefaultTypeInternal _FileStack_default_instance_; } // namespace protomsg static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_fileanalysis_2eproto[3]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_fileanalysis_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_fileanalysis_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_fileanalysis_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, id_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, name_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, path_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, type_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, sort_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, alias_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, snapshot_url_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, duration_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, is_running_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, progress_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, ruletype_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, status_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, createtime_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, updatetime_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, identifier_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, stack_id_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysis, size_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysisSetting, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysisSetting, videoenable_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysisSetting, filedirectory_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysisSetting, videochannelcount_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysisSetting, imgchannelcount_), PROTOBUF_FIELD_OFFSET(::protomsg::FileAnalysisSetting, audiochannelcount_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, id_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, name_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, type_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, enable_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, isautodelfile_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, status_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, createtime_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, updatetime_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, sort_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, resolution_width_), PROTOBUF_FIELD_OFFSET(::protomsg::FileStack, resolution_height_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::protomsg::FileAnalysis)}, { 22, -1, sizeof(::protomsg::FileAnalysisSetting)}, { 32, -1, sizeof(::protomsg::FileStack)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::protomsg::_FileAnalysis_default_instance_), reinterpret_cast(&::protomsg::_FileAnalysisSetting_default_instance_), reinterpret_cast(&::protomsg::_FileStack_default_instance_), }; const char descriptor_table_protodef_fileanalysis_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\022fileanalysis.proto\022\010protomsg\"\255\002\n\014FileA" "nalysis\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004pat" "h\030\003 \001(\t\022\014\n\004type\030\004 \001(\005\022\014\n\004sort\030\005 \001(\005\022\r\n\005a" "lias\030\006 \001(\t\022\024\n\014snapshot_url\030\007 \001(\t\022\020\n\010dura" "tion\030\010 \001(\t\022\022\n\nis_running\030\t \001(\010\022\020\n\010progre" "ss\030\n \001(\005\022\020\n\010ruleType\030\013 \001(\005\022\016\n\006status\030\014 \001" "(\005\022\022\n\ncreateTime\030\r \001(\t\022\022\n\nupdateTime\030\016 \001" "(\t\022\022\n\nidentifier\030\017 \001(\t\022\020\n\010stack_id\030\020 \001(\t" "\022\014\n\004size\030\021 \001(\003\"\220\001\n\023FileAnalysisSetting\022\023" "\n\013videoEnable\030\001 \001(\010\022\025\n\rfileDirectory\030\002 \001" "(\t\022\031\n\021videoChannelCount\030\003 \001(\005\022\027\n\017imgChan" "nelCount\030\004 \001(\005\022\031\n\021audioChannelCount\030\005 \001(" "\005\"\325\001\n\tFileStack\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(" "\t\022\014\n\004type\030\003 \001(\005\022\016\n\006enable\030\004 \001(\010\022\025\n\risAut" "oDelFile\030\005 \001(\010\022\016\n\006status\030\006 \001(\005\022\022\n\ncreate" "Time\030\007 \001(\t\022\022\n\nupdateTime\030\010 \001(\t\022\014\n\004sort\030\t" " \001(\005\022\030\n\020resolution_width\030\025 \001(\005\022\031\n\021resolu" "tion_height\030\026 \001(\005b\006proto3" ; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_fileanalysis_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_fileanalysis_2eproto = { false, false, 705, descriptor_table_protodef_fileanalysis_2eproto, "fileanalysis.proto", &descriptor_table_fileanalysis_2eproto_once, nullptr, 0, 3, schemas, file_default_instances, TableStruct_fileanalysis_2eproto::offsets, file_level_metadata_fileanalysis_2eproto, file_level_enum_descriptors_fileanalysis_2eproto, file_level_service_descriptors_fileanalysis_2eproto, }; PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_fileanalysis_2eproto_getter() { return &descriptor_table_fileanalysis_2eproto; } // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_fileanalysis_2eproto(&descriptor_table_fileanalysis_2eproto); namespace protomsg { // =================================================================== class FileAnalysis::_Internal { public: }; FileAnalysis::FileAnalysis(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:protomsg.FileAnalysis) } FileAnalysis::FileAnalysis(const FileAnalysis& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_id().empty()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), GetArenaForAllocation()); } name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_name().empty()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), GetArenaForAllocation()); } path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_path().empty()) { path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_path(), GetArenaForAllocation()); } alias_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_alias().empty()) { alias_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_alias(), GetArenaForAllocation()); } snapshot_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_snapshot_url().empty()) { snapshot_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_snapshot_url(), GetArenaForAllocation()); } duration_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_duration().empty()) { duration_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_duration(), GetArenaForAllocation()); } createtime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_createtime().empty()) { createtime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_createtime(), GetArenaForAllocation()); } updatetime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_updatetime().empty()) { updatetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_updatetime(), GetArenaForAllocation()); } identifier_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_identifier().empty()) { identifier_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_identifier(), GetArenaForAllocation()); } stack_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_stack_id().empty()) { stack_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_stack_id(), GetArenaForAllocation()); } ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&size_) - reinterpret_cast(&type_)) + sizeof(size_)); // @@protoc_insertion_point(copy_constructor:protomsg.FileAnalysis) } inline void FileAnalysis::SharedCtor() { id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); alias_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); snapshot_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); duration_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); createtime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); updatetime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); identifier_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); stack_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&size_) - reinterpret_cast(&type_)) + sizeof(size_)); } FileAnalysis::~FileAnalysis() { // @@protoc_insertion_point(destructor:protomsg.FileAnalysis) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void FileAnalysis::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); alias_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); snapshot_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); duration_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); createtime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); updatetime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); identifier_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); stack_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void FileAnalysis::ArenaDtor(void* object) { FileAnalysis* _this = reinterpret_cast< FileAnalysis* >(object); (void)_this; } void FileAnalysis::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void FileAnalysis::SetCachedSize(int size) const { _cached_size_.Set(size); } void FileAnalysis::Clear() { // @@protoc_insertion_point(message_clear_start:protomsg.FileAnalysis) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; id_.ClearToEmpty(); name_.ClearToEmpty(); path_.ClearToEmpty(); alias_.ClearToEmpty(); snapshot_url_.ClearToEmpty(); duration_.ClearToEmpty(); createtime_.ClearToEmpty(); updatetime_.ClearToEmpty(); identifier_.ClearToEmpty(); stack_id_.ClearToEmpty(); ::memset(&type_, 0, static_cast( reinterpret_cast(&size_) - reinterpret_cast(&type_)) + sizeof(size_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* FileAnalysis::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // string id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.id")); CHK_(ptr); } else goto handle_unusual; continue; // string name = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_name(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.name")); CHK_(ptr); } else goto handle_unusual; continue; // string path = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { auto str = _internal_mutable_path(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.path")); CHK_(ptr); } else goto handle_unusual; continue; // int32 type = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 sort = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { sort_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string alias = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { auto str = _internal_mutable_alias(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.alias")); CHK_(ptr); } else goto handle_unusual; continue; // string snapshot_url = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { auto str = _internal_mutable_snapshot_url(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.snapshot_url")); CHK_(ptr); } else goto handle_unusual; continue; // string duration = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { auto str = _internal_mutable_duration(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.duration")); CHK_(ptr); } else goto handle_unusual; continue; // bool is_running = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { is_running_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 progress = 10; case 10: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 ruleType = 11; case 11: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { ruletype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 status = 12; case 12: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string createTime = 13; case 13: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { auto str = _internal_mutable_createtime(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.createTime")); CHK_(ptr); } else goto handle_unusual; continue; // string updateTime = 14; case 14: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { auto str = _internal_mutable_updatetime(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.updateTime")); CHK_(ptr); } else goto handle_unusual; continue; // string identifier = 15; case 15: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { auto str = _internal_mutable_identifier(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.identifier")); CHK_(ptr); } else goto handle_unusual; continue; // string stack_id = 16; case 16: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { auto str = _internal_mutable_stack_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysis.stack_id")); CHK_(ptr); } else goto handle_unusual; continue; // int64 size = 17; case 17: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) { size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* FileAnalysis::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:protomsg.FileAnalysis) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string id = 1; if (!this->_internal_id().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_id().data(), static_cast(this->_internal_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.id"); target = stream->WriteStringMaybeAliased( 1, this->_internal_id(), target); } // string name = 2; if (!this->_internal_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_name(), target); } // string path = 3; if (!this->_internal_path().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_path().data(), static_cast(this->_internal_path().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.path"); target = stream->WriteStringMaybeAliased( 3, this->_internal_path(), target); } // int32 type = 4; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_type(), target); } // int32 sort = 5; if (this->_internal_sort() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sort(), target); } // string alias = 6; if (!this->_internal_alias().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_alias().data(), static_cast(this->_internal_alias().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.alias"); target = stream->WriteStringMaybeAliased( 6, this->_internal_alias(), target); } // string snapshot_url = 7; if (!this->_internal_snapshot_url().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_snapshot_url().data(), static_cast(this->_internal_snapshot_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.snapshot_url"); target = stream->WriteStringMaybeAliased( 7, this->_internal_snapshot_url(), target); } // string duration = 8; if (!this->_internal_duration().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_duration().data(), static_cast(this->_internal_duration().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.duration"); target = stream->WriteStringMaybeAliased( 8, this->_internal_duration(), target); } // bool is_running = 9; if (this->_internal_is_running() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_is_running(), target); } // int32 progress = 10; if (this->_internal_progress() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_progress(), target); } // int32 ruleType = 11; if (this->_internal_ruletype() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->_internal_ruletype(), target); } // int32 status = 12; if (this->_internal_status() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_status(), target); } // string createTime = 13; if (!this->_internal_createtime().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_createtime().data(), static_cast(this->_internal_createtime().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.createTime"); target = stream->WriteStringMaybeAliased( 13, this->_internal_createtime(), target); } // string updateTime = 14; if (!this->_internal_updatetime().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_updatetime().data(), static_cast(this->_internal_updatetime().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.updateTime"); target = stream->WriteStringMaybeAliased( 14, this->_internal_updatetime(), target); } // string identifier = 15; if (!this->_internal_identifier().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_identifier().data(), static_cast(this->_internal_identifier().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.identifier"); target = stream->WriteStringMaybeAliased( 15, this->_internal_identifier(), target); } // string stack_id = 16; if (!this->_internal_stack_id().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_stack_id().data(), static_cast(this->_internal_stack_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysis.stack_id"); target = stream->WriteStringMaybeAliased( 16, this->_internal_stack_id(), target); } // int64 size = 17; if (this->_internal_size() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(17, this->_internal_size(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:protomsg.FileAnalysis) return target; } size_t FileAnalysis::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protomsg.FileAnalysis) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1; if (!this->_internal_id().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_id()); } // string name = 2; if (!this->_internal_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // string path = 3; if (!this->_internal_path().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_path()); } // string alias = 6; if (!this->_internal_alias().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_alias()); } // string snapshot_url = 7; if (!this->_internal_snapshot_url().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_snapshot_url()); } // string duration = 8; if (!this->_internal_duration().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_duration()); } // string createTime = 13; if (!this->_internal_createtime().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_createtime()); } // string updateTime = 14; if (!this->_internal_updatetime().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_updatetime()); } // string identifier = 15; if (!this->_internal_identifier().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_identifier()); } // string stack_id = 16; if (!this->_internal_stack_id().empty()) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_stack_id()); } // int32 type = 4; if (this->_internal_type() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_type()); } // int32 sort = 5; if (this->_internal_sort() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_sort()); } // bool is_running = 9; if (this->_internal_is_running() != 0) { total_size += 1 + 1; } // int32 progress = 10; if (this->_internal_progress() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_progress()); } // int32 ruleType = 11; if (this->_internal_ruletype() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_ruletype()); } // int32 status = 12; if (this->_internal_status() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_status()); } // int64 size = 17; if (this->_internal_size() != 0) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_size()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileAnalysis::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, FileAnalysis::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileAnalysis::GetClassData() const { return &_class_data_; } void FileAnalysis::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from) { static_cast(to)->MergeFrom( static_cast(from)); } void FileAnalysis::MergeFrom(const FileAnalysis& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protomsg.FileAnalysis) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } if (!from._internal_path().empty()) { _internal_set_path(from._internal_path()); } if (!from._internal_alias().empty()) { _internal_set_alias(from._internal_alias()); } if (!from._internal_snapshot_url().empty()) { _internal_set_snapshot_url(from._internal_snapshot_url()); } if (!from._internal_duration().empty()) { _internal_set_duration(from._internal_duration()); } if (!from._internal_createtime().empty()) { _internal_set_createtime(from._internal_createtime()); } if (!from._internal_updatetime().empty()) { _internal_set_updatetime(from._internal_updatetime()); } if (!from._internal_identifier().empty()) { _internal_set_identifier(from._internal_identifier()); } if (!from._internal_stack_id().empty()) { _internal_set_stack_id(from._internal_stack_id()); } if (from._internal_type() != 0) { _internal_set_type(from._internal_type()); } if (from._internal_sort() != 0) { _internal_set_sort(from._internal_sort()); } if (from._internal_is_running() != 0) { _internal_set_is_running(from._internal_is_running()); } if (from._internal_progress() != 0) { _internal_set_progress(from._internal_progress()); } if (from._internal_ruletype() != 0) { _internal_set_ruletype(from._internal_ruletype()); } if (from._internal_status() != 0) { _internal_set_status(from._internal_status()); } if (from._internal_size() != 0) { _internal_set_size(from._internal_size()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FileAnalysis::CopyFrom(const FileAnalysis& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protomsg.FileAnalysis) if (&from == this) return; Clear(); MergeFrom(from); } bool FileAnalysis::IsInitialized() const { return true; } void FileAnalysis::InternalSwap(FileAnalysis* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &id_, GetArenaForAllocation(), &other->id_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &name_, GetArenaForAllocation(), &other->name_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &path_, GetArenaForAllocation(), &other->path_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &alias_, GetArenaForAllocation(), &other->alias_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &snapshot_url_, GetArenaForAllocation(), &other->snapshot_url_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &duration_, GetArenaForAllocation(), &other->duration_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &createtime_, GetArenaForAllocation(), &other->createtime_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &updatetime_, GetArenaForAllocation(), &other->updatetime_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &identifier_, GetArenaForAllocation(), &other->identifier_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &stack_id_, GetArenaForAllocation(), &other->stack_id_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(FileAnalysis, size_) + sizeof(FileAnalysis::size_) - PROTOBUF_FIELD_OFFSET(FileAnalysis, type_)>( reinterpret_cast(&type_), reinterpret_cast(&other->type_)); } ::PROTOBUF_NAMESPACE_ID::Metadata FileAnalysis::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_fileanalysis_2eproto_getter, &descriptor_table_fileanalysis_2eproto_once, file_level_metadata_fileanalysis_2eproto[0]); } // =================================================================== class FileAnalysisSetting::_Internal { public: }; FileAnalysisSetting::FileAnalysisSetting(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:protomsg.FileAnalysisSetting) } FileAnalysisSetting::FileAnalysisSetting(const FileAnalysisSetting& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); filedirectory_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_filedirectory().empty()) { filedirectory_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filedirectory(), GetArenaForAllocation()); } ::memcpy(&videoenable_, &from.videoenable_, static_cast(reinterpret_cast(&audiochannelcount_) - reinterpret_cast(&videoenable_)) + sizeof(audiochannelcount_)); // @@protoc_insertion_point(copy_constructor:protomsg.FileAnalysisSetting) } inline void FileAnalysisSetting::SharedCtor() { filedirectory_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&videoenable_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&audiochannelcount_) - reinterpret_cast(&videoenable_)) + sizeof(audiochannelcount_)); } FileAnalysisSetting::~FileAnalysisSetting() { // @@protoc_insertion_point(destructor:protomsg.FileAnalysisSetting) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void FileAnalysisSetting::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); filedirectory_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void FileAnalysisSetting::ArenaDtor(void* object) { FileAnalysisSetting* _this = reinterpret_cast< FileAnalysisSetting* >(object); (void)_this; } void FileAnalysisSetting::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void FileAnalysisSetting::SetCachedSize(int size) const { _cached_size_.Set(size); } void FileAnalysisSetting::Clear() { // @@protoc_insertion_point(message_clear_start:protomsg.FileAnalysisSetting) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; filedirectory_.ClearToEmpty(); ::memset(&videoenable_, 0, static_cast( reinterpret_cast(&audiochannelcount_) - reinterpret_cast(&videoenable_)) + sizeof(audiochannelcount_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* FileAnalysisSetting::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // bool videoEnable = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { videoenable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string fileDirectory = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_filedirectory(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileAnalysisSetting.fileDirectory")); CHK_(ptr); } else goto handle_unusual; continue; // int32 videoChannelCount = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { videochannelcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 imgChannelCount = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { imgchannelcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 audioChannelCount = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { audiochannelcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* FileAnalysisSetting::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:protomsg.FileAnalysisSetting) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // bool videoEnable = 1; if (this->_internal_videoenable() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_videoenable(), target); } // string fileDirectory = 2; if (!this->_internal_filedirectory().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_filedirectory().data(), static_cast(this->_internal_filedirectory().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileAnalysisSetting.fileDirectory"); target = stream->WriteStringMaybeAliased( 2, this->_internal_filedirectory(), target); } // int32 videoChannelCount = 3; if (this->_internal_videochannelcount() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_videochannelcount(), target); } // int32 imgChannelCount = 4; if (this->_internal_imgchannelcount() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_imgchannelcount(), target); } // int32 audioChannelCount = 5; if (this->_internal_audiochannelcount() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_audiochannelcount(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:protomsg.FileAnalysisSetting) return target; } size_t FileAnalysisSetting::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protomsg.FileAnalysisSetting) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string fileDirectory = 2; if (!this->_internal_filedirectory().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_filedirectory()); } // bool videoEnable = 1; if (this->_internal_videoenable() != 0) { total_size += 1 + 1; } // int32 videoChannelCount = 3; if (this->_internal_videochannelcount() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_videochannelcount()); } // int32 imgChannelCount = 4; if (this->_internal_imgchannelcount() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_imgchannelcount()); } // int32 audioChannelCount = 5; if (this->_internal_audiochannelcount() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_audiochannelcount()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileAnalysisSetting::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, FileAnalysisSetting::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileAnalysisSetting::GetClassData() const { return &_class_data_; } void FileAnalysisSetting::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from) { static_cast(to)->MergeFrom( static_cast(from)); } void FileAnalysisSetting::MergeFrom(const FileAnalysisSetting& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protomsg.FileAnalysisSetting) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_filedirectory().empty()) { _internal_set_filedirectory(from._internal_filedirectory()); } if (from._internal_videoenable() != 0) { _internal_set_videoenable(from._internal_videoenable()); } if (from._internal_videochannelcount() != 0) { _internal_set_videochannelcount(from._internal_videochannelcount()); } if (from._internal_imgchannelcount() != 0) { _internal_set_imgchannelcount(from._internal_imgchannelcount()); } if (from._internal_audiochannelcount() != 0) { _internal_set_audiochannelcount(from._internal_audiochannelcount()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FileAnalysisSetting::CopyFrom(const FileAnalysisSetting& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protomsg.FileAnalysisSetting) if (&from == this) return; Clear(); MergeFrom(from); } bool FileAnalysisSetting::IsInitialized() const { return true; } void FileAnalysisSetting::InternalSwap(FileAnalysisSetting* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &filedirectory_, GetArenaForAllocation(), &other->filedirectory_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(FileAnalysisSetting, audiochannelcount_) + sizeof(FileAnalysisSetting::audiochannelcount_) - PROTOBUF_FIELD_OFFSET(FileAnalysisSetting, videoenable_)>( reinterpret_cast(&videoenable_), reinterpret_cast(&other->videoenable_)); } ::PROTOBUF_NAMESPACE_ID::Metadata FileAnalysisSetting::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_fileanalysis_2eproto_getter, &descriptor_table_fileanalysis_2eproto_once, file_level_metadata_fileanalysis_2eproto[1]); } // =================================================================== class FileStack::_Internal { public: }; FileStack::FileStack(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:protomsg.FileStack) } FileStack::FileStack(const FileStack& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_id().empty()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), GetArenaForAllocation()); } name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_name().empty()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), GetArenaForAllocation()); } createtime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_createtime().empty()) { createtime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_createtime(), GetArenaForAllocation()); } updatetime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_updatetime().empty()) { updatetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_updatetime(), GetArenaForAllocation()); } ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&resolution_height_) - reinterpret_cast(&type_)) + sizeof(resolution_height_)); // @@protoc_insertion_point(copy_constructor:protomsg.FileStack) } inline void FileStack::SharedCtor() { id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); createtime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); updatetime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&resolution_height_) - reinterpret_cast(&type_)) + sizeof(resolution_height_)); } FileStack::~FileStack() { // @@protoc_insertion_point(destructor:protomsg.FileStack) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void FileStack::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); createtime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); updatetime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void FileStack::ArenaDtor(void* object) { FileStack* _this = reinterpret_cast< FileStack* >(object); (void)_this; } void FileStack::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void FileStack::SetCachedSize(int size) const { _cached_size_.Set(size); } void FileStack::Clear() { // @@protoc_insertion_point(message_clear_start:protomsg.FileStack) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; id_.ClearToEmpty(); name_.ClearToEmpty(); createtime_.ClearToEmpty(); updatetime_.ClearToEmpty(); ::memset(&type_, 0, static_cast( reinterpret_cast(&resolution_height_) - reinterpret_cast(&type_)) + sizeof(resolution_height_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* FileStack::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // string id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileStack.id")); CHK_(ptr); } else goto handle_unusual; continue; // string name = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_name(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileStack.name")); CHK_(ptr); } else goto handle_unusual; continue; // int32 type = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // bool enable = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // bool isAutoDelFile = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { isautodelfile_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 status = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string createTime = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { auto str = _internal_mutable_createtime(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileStack.createTime")); CHK_(ptr); } else goto handle_unusual; continue; // string updateTime = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { auto str = _internal_mutable_updatetime(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.FileStack.updateTime")); CHK_(ptr); } else goto handle_unusual; continue; // int32 sort = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { sort_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 resolution_width = 21; case 21: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { resolution_width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 resolution_height = 22; case 22: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { resolution_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* FileStack::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:protomsg.FileStack) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string id = 1; if (!this->_internal_id().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_id().data(), static_cast(this->_internal_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileStack.id"); target = stream->WriteStringMaybeAliased( 1, this->_internal_id(), target); } // string name = 2; if (!this->_internal_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileStack.name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_name(), target); } // int32 type = 3; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target); } // bool enable = 4; if (this->_internal_enable() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_enable(), target); } // bool isAutoDelFile = 5; if (this->_internal_isautodelfile() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_isautodelfile(), target); } // int32 status = 6; if (this->_internal_status() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_status(), target); } // string createTime = 7; if (!this->_internal_createtime().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_createtime().data(), static_cast(this->_internal_createtime().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileStack.createTime"); target = stream->WriteStringMaybeAliased( 7, this->_internal_createtime(), target); } // string updateTime = 8; if (!this->_internal_updatetime().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_updatetime().data(), static_cast(this->_internal_updatetime().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.FileStack.updateTime"); target = stream->WriteStringMaybeAliased( 8, this->_internal_updatetime(), target); } // int32 sort = 9; if (this->_internal_sort() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_sort(), target); } // int32 resolution_width = 21; if (this->_internal_resolution_width() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(21, this->_internal_resolution_width(), target); } // int32 resolution_height = 22; if (this->_internal_resolution_height() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_resolution_height(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:protomsg.FileStack) return target; } size_t FileStack::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protomsg.FileStack) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1; if (!this->_internal_id().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_id()); } // string name = 2; if (!this->_internal_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // string createTime = 7; if (!this->_internal_createtime().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_createtime()); } // string updateTime = 8; if (!this->_internal_updatetime().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_updatetime()); } // int32 type = 3; if (this->_internal_type() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_type()); } // bool enable = 4; if (this->_internal_enable() != 0) { total_size += 1 + 1; } // bool isAutoDelFile = 5; if (this->_internal_isautodelfile() != 0) { total_size += 1 + 1; } // int32 status = 6; if (this->_internal_status() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_status()); } // int32 sort = 9; if (this->_internal_sort() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_sort()); } // int32 resolution_width = 21; if (this->_internal_resolution_width() != 0) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_resolution_width()); } // int32 resolution_height = 22; if (this->_internal_resolution_height() != 0) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_resolution_height()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileStack::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, FileStack::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileStack::GetClassData() const { return &_class_data_; } void FileStack::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from) { static_cast(to)->MergeFrom( static_cast(from)); } void FileStack::MergeFrom(const FileStack& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protomsg.FileStack) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } if (!from._internal_createtime().empty()) { _internal_set_createtime(from._internal_createtime()); } if (!from._internal_updatetime().empty()) { _internal_set_updatetime(from._internal_updatetime()); } if (from._internal_type() != 0) { _internal_set_type(from._internal_type()); } if (from._internal_enable() != 0) { _internal_set_enable(from._internal_enable()); } if (from._internal_isautodelfile() != 0) { _internal_set_isautodelfile(from._internal_isautodelfile()); } if (from._internal_status() != 0) { _internal_set_status(from._internal_status()); } if (from._internal_sort() != 0) { _internal_set_sort(from._internal_sort()); } if (from._internal_resolution_width() != 0) { _internal_set_resolution_width(from._internal_resolution_width()); } if (from._internal_resolution_height() != 0) { _internal_set_resolution_height(from._internal_resolution_height()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FileStack::CopyFrom(const FileStack& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protomsg.FileStack) if (&from == this) return; Clear(); MergeFrom(from); } bool FileStack::IsInitialized() const { return true; } void FileStack::InternalSwap(FileStack* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &id_, GetArenaForAllocation(), &other->id_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &name_, GetArenaForAllocation(), &other->name_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &createtime_, GetArenaForAllocation(), &other->createtime_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &updatetime_, GetArenaForAllocation(), &other->updatetime_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(FileStack, resolution_height_) + sizeof(FileStack::resolution_height_) - PROTOBUF_FIELD_OFFSET(FileStack, type_)>( reinterpret_cast(&type_), reinterpret_cast(&other->type_)); } ::PROTOBUF_NAMESPACE_ID::Metadata FileStack::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_fileanalysis_2eproto_getter, &descriptor_table_fileanalysis_2eproto_once, file_level_metadata_fileanalysis_2eproto[2]); } // @@protoc_insertion_point(namespace_scope) } // namespace protomsg PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::protomsg::FileAnalysis* Arena::CreateMaybeMessage< ::protomsg::FileAnalysis >(Arena* arena) { return Arena::CreateMessageInternal< ::protomsg::FileAnalysis >(arena); } template<> PROTOBUF_NOINLINE ::protomsg::FileAnalysisSetting* Arena::CreateMaybeMessage< ::protomsg::FileAnalysisSetting >(Arena* arena) { return Arena::CreateMessageInternal< ::protomsg::FileAnalysisSetting >(arena); } template<> PROTOBUF_NOINLINE ::protomsg::FileStack* Arena::CreateMaybeMessage< ::protomsg::FileStack >(Arena* arena) { return Arena::CreateMessageInternal< ::protomsg::FileStack >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include